| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> SGADEF no longer supported in Oracle 8.1.5 .. need to find how to detect a db is open from a script !
Hi,
I am currently migrating a script that we used to take cold backups of an Oracle DB on a Unix Sun Solaris machine. We are currently using Oracle8i 8.1.5, my problem is that "sgadef" is no longer supported in the version of Oracle. Can anyone advise my on what the equivalent or similar variable is in Oracle 8.1.5 .... or what setting tells the script that the database is currently open.
Any advice would be great. Thanks.
D.
P.S - a sample of the code we used is as follows:
#
# Now check that the database is actualy up and running
#
if [ ! -f $ORACLE_HOME/dbs/sgadef$ORACLE_SID.dbf ]
then
echo "Oracle instance "$ORACLE_SID" did not appear to start"
>>$LOGFILES/coldbackup.log
![]() |
![]() |