I am trying to put together a batch file to simply execute a .sql file I have. The code I'm using in the batch is:
REM JOB.BAT
SQLPLUS -S username/password@db @C:\Users\username\Desktop\testsql.sql
EXIT
I am getting the error:
"ERROR: ORA-12154: TNS:could not resolve the connect identifier specified"
I think the issue is that my password contains the @ symbol, so it starts reading the remote database name in the middle of the password instead of just reading 'db'. So if my password were "p@ssword", it's looking for a database called "ssword@db" which does not exist.
Is there a short way around this or is changing my password the only way to do it?
Thanks!