Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: HELP! CAN't STARTUP REMOTE DATABASE USING SQL*PLUS - BUG?-NADA o

Re: HELP! CAN't STARTUP REMOTE DATABASE USING SQL*PLUS - BUG?-NADA o

From: Yechiel Adar <adar76_at_inter.net.il>
Date: Thu, 19 Sep 2002 02:23:25 -0800
Message-ID: <F001.004D3506.20020919022325@fatcity.com>


HELP! CAN't STARTUP REMOTE DATABASE USING SQL*PLUS - BUG?-NADA on METASTINK





Hello
 
I noticed that your sqlplus logon connects to an idle instance.
That's mean that you are NOT connected to the remote database.
You need to set oracle_sid or use connect system/password@database.
 
Also why not do shutdown immediate instead of abort?
 
Yechiel Adar
Mehish
----- Original Message -----
From: Paula_Stankus@doh.state.fl.us
To: Multiple recipients of list ORACLE-L
Sent: Wednesday, September 18, 2002 6:18 PM
Subject: HELP! CAN't STARTUP REMOTE DATABASE USING SQL*PLUS - BUG?-NADA o

Guys

Trying to automate rman cold backups using sql*plus versus svrmgrl.  RMAN is local and target databases are remote. 
Executing the following (just from a script seems to work just fine interactively):

         $ORACLE_HOME/bin/sqlplus  /nolog <<-EOD                            
         connect system/password;                                             
         @tst2.sql;                                                         
         shutdown abort                                                     
         @tst2.sql;                                                                                                      

         startup  pfile=$ORACLE_HOME/dbs/init$DBNAME.ora;                   
         spool $STATUSFILE                                                  
         select status from v\$instance where status = 'MOUNTED';           
         spool off                                                          
         EOD                                                                
                                                                            
                                                                            

SQL> Connected.                                                                
SQL> Connected to an idle instance.                                            
SQL> ORACLE instance shut down.                                                
SQL> Connected to an idle instance.                                            
SQL> ORA-01031: insufficient privileges                                        
SQL> not spooling currently                                                    
SQL>      select status from v$instance where status = 'MOUNTED'               
*                                                                              
ERROR at line 1:                                                               
ORA-01034: ORACLE not available                                                
                                                                               
                                                                               
SQL> not spooling currently                                                    
SQL> SP2-0042: unknown command "EOD" - rest of line ignored.                   
SQL> SQL> Disconnected                                                         
irm00swas04:oracle:/usr/oracle/tools/backups/callscripts                       

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Yechiel Adar

INET: adar76_at_inter.net.il
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Received on Thu Sep 19 2002 - 05:23:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US