Hi,
Is it possible to have a connect string AND specify a SQL script to run within the same SVRMGR30 command line string?
Basically, I've created a DOS script to perform a backup of an 8.0.5 database. This script calls a SQL script that dumps the control file to trace and shuts down the database. I know that I can specify the connect string within the SQL script but that would mean hardcoding the SYSTEM password, which I'm reluctant to do. At the moment I can successfully connect to the database using:
SVRMGR30 "CONNECT SYSTEM/pwd@sid AS SYSDBA"
If I slap a '@c:\sqlscript.sql' at the end I get a 'Too many parameters' error. Is it possible to have both like SQLPLUS in Oracle 8.1.6 or am I stuffed??![[dazed] [dazed] [dazed]](/data/assets/smilies/dazed.gif)
Is it possible to have a connect string AND specify a SQL script to run within the same SVRMGR30 command line string?
Basically, I've created a DOS script to perform a backup of an 8.0.5 database. This script calls a SQL script that dumps the control file to trace and shuts down the database. I know that I can specify the connect string within the SQL script but that would mean hardcoding the SYSTEM password, which I'm reluctant to do. At the moment I can successfully connect to the database using:
SVRMGR30 "CONNECT SYSTEM/pwd@sid AS SYSDBA"
If I slap a '@c:\sqlscript.sql' at the end I get a 'Too many parameters' error. Is it possible to have both like SQLPLUS in Oracle 8.1.6 or am I stuffed??
![[dazed] [dazed] [dazed]](/data/assets/smilies/dazed.gif)