Is there a way to detect missing command line parameters from the oracle script
for example my oracle script test.sql expects 3 parameters to run. my script is executed from the install program like this
sqlplus /NOLOG @test.sql userid pw tablespace
When one of the parameters is missing, the sqlplus prompting for the userinput. This cannot be recognized from install program. I need to find the missing param inside the script and exit with error code. Is it feasible ?
I don’t think there is a way to do this directly with sqlplus. You can wrap the sqlplus execution in a command/shell script that checks the parameters, then calls sqlplus with the validated parameter list.