Home » Other » Client Tools » Passing parameter to sqlplus script
Passing parameter to sqlplus script [message #674400] |
Fri, 25 January 2019 05:06  |
ramya29p
Messages: 146 Registered: November 2007 Location: Chennai
|
Senior Member |
|
|
Hi,
I want to pass parameter to the .sql file via sqlplus script for connecting the Database.
I have created a batch file having below script.
sqlplus /nolog @schema_compile.sql
schema_compile.sql file with below script
conn schema_name
sho user
exec dbms_utility.compile_schema('schema_name',FALSE)
I tried passing the parameter, but it did not work.
sqlplus /nolog @schema_compile.sql schema_name
schema_compile.sql file with below script
conn &1
sho user
exec dbms_utility.compile_schema('&1',FALSE)
Could anyone please help me.
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Jun 06 22:23:53 CDT 2025
|