Hi all
In the following script I am getting an error on the 'if' line. I'm guessing the problem is with the brackets. Any ideas?
if [ $db_status = "MOUNTED" -o $db_status = "OPEN" ]; then
#
# Get the archivelog-mode of the database
#
ARCHIVELOG=`sqlplus -s "/ as sysdba" <<EOF
set heading off
set feedback off
set verify off
select log_mode from v\\$database;
exit
EOF
`
In the following script I am getting an error on the 'if' line. I'm guessing the problem is with the brackets. Any ideas?
if [ $db_status = "MOUNTED" -o $db_status = "OPEN" ]; then
#
# Get the archivelog-mode of the database
#
ARCHIVELOG=`sqlplus -s "/ as sysdba" <<EOF
set heading off
set feedback off
set verify off
select log_mode from v\\$database;
exit
EOF
`