sqlplus / as sysdba -- does not work [message #485785] |
Thu, 09 December 2010 22:23 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/5f676106b0e766d41f35ad6e58f809e3?s=64&d=mm&r=g) |
ssahib
Messages: 7 Registered: December 2010 Location: Melbourne
|
Junior Member |
|
|
The main issue is "Cannot use sqlplus / as sysdba to logon to the two nodes of a RAC".This is a new 2 node install. I can log onto sqlplus sys/password@SID as sysdba, sqlplus sys/password@SID1 as sysdba & sqlplus sys/password@SID2 as sysdba from both nodes. I cannot logon as sys / as sysdba (running Oracle 10gR2Enterprise Edition - 64bit Windows 2008r2). We need this to run because I am trying to set system in archivelog mode. Once I shut the database down -- I cannot log onto sqplus to perform the following; startup no mount. Even when all the instances are up -- I cannot logon sqlplus / as sysdba -- I get ORA-12560:TNS:protocol adapter error. The login OS user is part of the local administrator and ora_dba group (Windows), in the registery autostart, shutdown is set to TRUE, shutdowntype is set to immediate & ORAMTS_OSCREDS_MATCH_LEVEL is set to OS_Auth_Login.In sqlnet.ora suthentication_service = (NTS). I have even set environment on node 1 as set ORACLE_SID=SID1.
Any help would be appreciated.
Cheers Al
|
|
|
|
|
Re: sqlplus / as sysdba -- does not work [message #485904 is a reply to message #485897] |
Sat, 11 December 2010 02:34 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
As I ubderstand it, your immediate problem is that you can't startup in mode mount, which is necessary to enable archivelog mode. Have you tried with the srvctl utility? Do this, from either node:
srvctl stop database -d SID -o immediate
srvctl start instance -d SID -i SID1 -o mount
sqlplus sys/password@sid1 as sysdba
alter database archivelog
alter database open
srvctl start instance -d SID -i SID2
Then you can sort out your problem, which is that your operating system authentication isn't working.
|
|
|
|
|
Re: sqlplus / as sysdba -- does not work [message #486017 is a reply to message #486015] |
Sun, 12 December 2010 20:36 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
"the cursor hangs up and there is no output" is not an Oracle error message. You need to describe your problem better, using copy-paste would help.
In your first post you said "I can log onto sqlplus sys/password@SID as sysdba" are you saying that you can't do this anymore?
|
|
|
|
|
Re: sqlplus / as sysdba -- does not work [message #486323 is a reply to message #486049] |
Tue, 14 December 2010 18:11 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/5f676106b0e766d41f35ad6e58f809e3?s=64&d=mm&r=g) |
ssahib
Messages: 7 Registered: December 2010 Location: Melbourne
|
Junior Member |
|
|
Hi John, I have managed to setup the RAC in archivelog mode. I followed your steps(again) and was successful -- thank you for that. Briefly the steps where;
From node1 (hbris01)
(1) ran the cluster status checks
C:\>crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....s1.inst application ONLINE ONLINE hbris01
ora....s2.inst application ONLINE ONLINE hbris02
ora.sid.db application ONLINE ONLINE hbris02
ora....01.lsnr application ONLINE ONLINE hbris01
ora....s01.gsd application ONLINE ONLINE hbris01
ora....s01.ons application ONLINE ONLINE hbris01
ora....s01.vip application ONLINE ONLINE hbris01
ora....02.lsnr application ONLINE ONLINE hbris02
ora....s02.gsd application ONLINE ONLINE hbris02
ora....s02.ons application ONLINE ONLINE hbris02
ora....s02.vip application ONLINE ONLINE hbris02
(2) connect to db via
C:\>sqlplus sys/password@sid as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Dec 15 10:05:42 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> exit
(3) connect to db via
C:\>sqlplus sys/password@sid1 as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Dec 15 10:06:30 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL>exit
(4) connect to db via
C:\>sqlplus sys/password@sid2 as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Dec 15 10:08:28 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> exit
(5) connect via -- (this is my 1st issue - have to press Ctrl C to break the loop)
C:\>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Dec 15 10:10:43 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
(6) Now to follow your steps
(Step 1)
C:\>srvctl stop database -d sid -o immediate
C:\>crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....s1.inst application OFFLINE OFFLINE
ora....s2.inst application OFFLINE OFFLINE
ora.sid.db application OFFLINE OFFLINE
ora....01.lsnr application ONLINE ONLINE hbris01
ora....s01.gsd application ONLINE ONLINE hbris01
ora....s01.ons application ONLINE ONLINE hbris01
ora....s01.vip application ONLINE ONLINE hbris01
ora....02.lsnr application ONLINE ONLINE hbris02
ora....s02.gsd application ONLINE ONLINE hbris02
ora....s02.ons application ONLINE ONLINE hbris02
ora....s02.vip application ONLINE ONLINE hbris02
(Step 2)
C:\>srvctl start instance -d sid -i sid1 -o mount
C:\>crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....s1.inst application ONLINE ONLINE hbris01
ora....s2.inst application OFFLINE OFFLINE
ora.sid.db application ONLINE ONLINE hbris02
ora....01.lsnr application ONLINE ONLINE hbris01
ora....s01.gsd application ONLINE ONLINE hbris01
ora....s01.ons application ONLINE ONLINE hbris01
ora....s01.vip application ONLINE ONLINE hbris01
ora....02.lsnr application ONLINE ONLINE hbris02
ora....s02.gsd application ONLINE ONLINE hbris02
ora....s02.ons application ONLINE ONLINE hbris02
ora....s02.vip application ONLINE ONLINE hbris02
As seen from the above -- sid1 and sid are both ONLINE.
(Step 3)
C:\>sqlplus sys/password@sid1 as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Dec 15 10:18:56 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL>
(Step 4)
SQL> alter database archivelog;
Database altered.
(Step 5)
SQL> alter database open;
Database altered.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
(Step 6)
C:\>srvctl start instance -d sid -i sid2
C:\>crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....s1.inst application ONLINE ONLINE hbris01
ora....s2.inst application ONLINE ONLINE hbris02
ora.sid.db application ONLINE ONLINE hbris02
ora....01.lsnr application ONLINE ONLINE hbris01
ora....s01.gsd application ONLINE ONLINE hbris01
ora....s01.ons application ONLINE ONLINE hbris01
ora....s01.vip application ONLINE ONLINE hbris01
ora....02.lsnr application ONLINE ONLINE hbris02
ora....s02.gsd application ONLINE ONLINE hbris02
ora....s02.ons application ONLINE ONLINE hbris02
ora....s02.vip application ONLINE ONLINE hbris02
To check if db is in archivelog mode;
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination C:\oracle\product\10.2.0\db_1\RDBMS
Oldest online log sequence 81
Next log sequence to archive 82
Current log sequence 82
To set up db_recovery_file_size;
SQL> alter system set db_recovery_file_dest_size=300G scope=both sid='*';
System altered.
To set up db_recovery_file_destination;
SQL> alter system set db_recovery_file_dest='L:\FlashRecovery' scope=both sid='*';
System altered.
SQL>exit
Reboot both nodes (node 1 and then node 2)
From node 1
C:\>sqlplus sys/password@sid as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Dec 15 10:55:34 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 82
Next log sequence to archive 82
Current log sequence 83
Shows that database is in archive mode and archive destination is using parameter file db_recovery.
SQL> show parameters db_recovery;
NAME TYPE VALUE
------------------------------------ ----------- ----------------
db_recovery_file_dest string L:\FlashRecovery
db_recovery_file_dest_size big integer 300G
Shows the db_recovery_file_destination and db_recovery_file_destination size.
Thanks for all who have contributed.
Cheers Al
|
|
|
|
|
|
|
|
|