I have spent hours trying various suggestions and combinations but for the life of me cannot get a call to sqlplus from direct linux command line or from a bash script to work with a password containing a $
I have tried these
sqlplus -S mylogin/'"my$password"'@My_DBName
sqlplus -S mylogin/'my$password'@My_DBName
sqlplus -S mylogin/"my$password"@My_DBName
I have tried the same as above but putting \ before the $, and various other attempts not shown...
Have tried using CONNECT instead both plain password, and with the various quotes and backslashes (only one example shown here)
sqlplus -S /nolog << EOF
CONNECT mylogin/my$password@My_DBName;
sqlplus -S /nolog << EOF
CONNECT mylogin/'"my$password"'@My_DBName;
I do know that the general sqlplus commands as single command, or with CONNECT works for passwords that do NOT contain $.
Can someone tell me what I'm doing wrong and why? If so, I thank you profusely!
EDITED - MY BAD - ARGH!
Turns out someone changed the password. In fact it does work even the $ and specifying the single quotes like:
sqlplus -S mylogin/'my$password'@My_DBName
bashputting the password between single quotes should work. - piforset -xto check the full sqlplus command that the shell is running. - pifor