Skip to content

Instantly share code, notes, and snippets.

@infamousjoeg
Last active January 27, 2022 17:10
Show Gist options
  • Save infamousjoeg/e473ffdbb70556c4ef23ebcacedf46df to your computer and use it in GitHub Desktop.
Save infamousjoeg/e473ffdbb70556c4ef23ebcacedf46df to your computer and use it in GitHub Desktop.
AIM Kornshell to SQLPlus Example
#/bin/ksh
# SET AIM VARIABLES #
appID = "<Application ID>"
safe = "<Safe Name>"
folder = "Root"
name = "<Name of Account in Vault>"
# BEGIN AIM CALL #
password = CLIPasswordSDK GetPassword -p AppDescs.AppID=$appID -p Query="Safe=$safe;Folder=$folder;Object=$name" -o Password
. /u01/app/oracle/.profile
sqlplus -s << EOF
tester/$password@dcms_prod
select * from global_name;
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment