Last active
January 27, 2022 17:10
-
-
Save infamousjoeg/e473ffdbb70556c4ef23ebcacedf46df to your computer and use it in GitHub Desktop.
AIM Kornshell to SQLPlus Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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