bluethundr has asked for the wisdom of the Perl Monks concerning the following question:
#!/bin/perl # credentials / environment variables $ORACLE_HOME="/u01/app/oracle/product/10.2.0.4"; $ORACLE_SID=qaecom1; $sqlplus="/u01/app/oracle/product/10.2.0.4/bin/sqlplus"; $USERNAME=dbuser; $PASS=pass; $SID=${ORACLE_SID}; @TSPACES=`$sqlplus -s -l $USERNAME/$PASS@$SID \@/opt/bin/ops/mlb_tabl +espace.sql | awk '{print $1}' $sqlplus -s -l $USERNAME/$PASS@$SID +\@/opt/bin/ops/mlb_tablespace.sql | awk '{print $3}' $sqlplus -s -l +$USERNAME/$PASS@$SID \@/opt/bin/ops/mlb_tablespace.sql | awk '{print + $2}' $sqlplus -s -l $USERNAME/$PASS@$SID \@/opt/bin/ops/mlb_table +space.sql | awk '{print $4}'`;
Then it just hangs.. I was wondering if anyone might have some advice on how to get this script to work with Oracle DB. Thanks[db07-dc2:~] root% Error 6 initializing SQL*Plus Message file sp1<lang>.msb not found SP2-0750: You may need to set ORACLE_HOME to your Oracle software dire +ctory
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use oracle home in script
by Perlbotics (Archbishop) on May 24, 2012 at 20:30 UTC | |
|
Re: use oracle home in script
by roboticus (Chancellor) on May 24, 2012 at 20:43 UTC |