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.