Folks,
NEWBIE POST - you've just been warned...
I know nothing about PERL and have never used it. However, I'm considering learning it to solve a particular problem, and would like to know if it can do what I need, before investing significant effort.
I routinely use slqplus scripts to upgrade Oracle databases. Unfortunately, sqlplus does not provide conditional logic, i.e. there's no such thing as an IF ... THEN statement. By means of cumbersome and involved scripting, I have achieved a pseudo IF statement, but the work involved is becoming more and more onerous.
I want to be able to inspect a variable (the db version_number) and if it's less than the current version, sequentially trigger sqlplus upgrade scripts, to bring the db up to date.
Can PERL programatically get a value from an Oracle database, inspect it, and based on the value either do nothing, or invoke one or more operating system files?
Regards
Tharg
Grinding away at things Oracular
NEWBIE POST - you've just been warned...
I know nothing about PERL and have never used it. However, I'm considering learning it to solve a particular problem, and would like to know if it can do what I need, before investing significant effort.
I routinely use slqplus scripts to upgrade Oracle databases. Unfortunately, sqlplus does not provide conditional logic, i.e. there's no such thing as an IF ... THEN statement. By means of cumbersome and involved scripting, I have achieved a pseudo IF statement, but the work involved is becoming more and more onerous.
I want to be able to inspect a variable (the db version_number) and if it's less than the current version, sequentially trigger sqlplus upgrade scripts, to bring the db up to date.
Can PERL programatically get a value from an Oracle database, inspect it, and based on the value either do nothing, or invoke one or more operating system files?
Regards
Tharg
Grinding away at things Oracular