I'd like to parametise a sql script in this way ...
svrmgrl @createtablespaces.sql 'c:\oracle\data\'
So if the script connects say as system then issues ...
create tablespace t1 ... <path>\data01.dbf
/
create tablespace t2 ... <path>\index01.dbf
/
it will use the path in the parameter to tell it where to create the datafiles. Is this possible?
The alternative seems to be pass the path as a parameter to a batch file. The batch file generates a new script file which you under svmgrl/sql+. To do this though, I'd have a base script which has a path placeholder in it. But does anyone know how to create a windows batch file to replace an occurance of the placeholder string with a new value?
svrmgrl @createtablespaces.sql 'c:\oracle\data\'
So if the script connects say as system then issues ...
create tablespace t1 ... <path>\data01.dbf
/
create tablespace t2 ... <path>\index01.dbf
/
it will use the path in the parameter to tell it where to create the datafiles. Is this possible?
The alternative seems to be pass the path as a parameter to a batch file. The batch file generates a new script file which you under svmgrl/sql+. To do this though, I'd have a base script which has a path placeholder in it. But does anyone know how to create a windows batch file to replace an occurance of the placeholder string with a new value?