howto check substitution variable in sqlplus
47564Oct 23 2009 — edited Nov 2 2009Hi all,
Is there a way to pass a parameter to a sql script (&1) and set a default if the parameter was not passed.
This should be possible without sqlplus asking for OBJECT_OWNER at runtime.
Something like IFDEF would be fine ;-)
DEFINE OBJECT_OWNER = nvl(&1,'OO')
PROMPT Run for schema: &OBJECT_OWNER
thanks for your help
chris