Home » Server Options » RAC & Failsafe » 2 node RAC always connect to 2nd instance (11.2.0.4 SE, SUSE Linux Enterprise Server 11 SP2 (x86_64) - Kernel \r (\l).)
|
Re: 2 node RAC always connect to 2nd instance [message #642153 is a reply to message #642149] |
Fri, 04 September 2015 01:39   |
John Watson
Messages: 8976 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
You have not shown any evidence that all your sessions are going to one node.
Can you logon through the SCAN a few times concurrently, and then run these queries:
select inst_id,host_name,instance_name from gv$instance;
select inst_id,username from gv$session where username is not null;
HOwever, your installation is little odd: you appear to have only one SCAN address. You should discuss this with whomever did the install.
It is correct that the SCAN is not in your hosts files, but there should be multiple addresses in your DNS (unless you use GPnP, as you should)
THere may be other anomalies too.
Lastly, you seem to be assuming a relationship between node name, node number, instance name, and instance number. There is none.
[Updated on: Fri, 04 September 2015 01:42] Report message to a moderator
|
|
|
Re: 2 node RAC always connect to 2nd instance [message #642158 is a reply to message #642153] |
Fri, 04 September 2015 02:39   |
 |
juniordbanewbie
Messages: 250 Registered: April 2014
|
Senior Member |
|
|
oracle@imdb1:~> sqlplus scheduler/scheduler@imdb-scan.imworld.net:1521/orcl
SQL*Plus: Release 11.2.0.4.0 Production on Fri Sep 4 08:19:21 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
08:19:21 SCHEDULER@imdb-scan.imworld.net:1521/orcl[]> select inst_id,host_name,instance_name from gv$instance;
INST_ID HOST_NAME INSTANCE_NAME
---------- ---------------------------------------------------------------- ----------------
2 imdb2 orcl2
1 imdb1 orcl1
Elapsed: 00:00:00.01
08:19:25 SCHEDULER@imdb-scan.imworld.net:1521/orcl[]> select host_name,instance_name from v$instance;
HOST_NAME INSTANCE_NAME
---------------------------------------------------------------- ----------------
imdb2 orcl2
oracle@imdb2:~> sqlplus scheduler/scheduler@imdb-scan.imworld.net:1521/orcl
SQL*Plus: Release 11.2.0.4.0 Production on Fri Sep 4 08:20:54 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
08:20:54 SCHEDULER@imdb-scan.imworld.net:1521/orcl[]> select inst_id,host_name,instance_name from gv$instance;
INST_ID HOST_NAME INSTANCE_NAME
---------- ---------------------------------------------------------------- ----------------
2 imdb2 orcl2
1 imdb1 orcl1
Elapsed: 00:00:00.01
08:21:31 SCHEDULER@imdb-scan.imworld.net:1521/orcl[]> select host_name,instance_name from v$instance;
HOST_NAME INSTANCE_NAME
---------------------------------------------------------------- ----------------
imdb2 orcl2
As can be seem above whether it's from imdb1 or imdb2, it is always to orcl2 on imdb2. This is despite the fact that scan_listener1 is on imdb1
What should I do next? stop the scan_listener, remove scan_listener, add scan_listener again?
and many many thanks
|
|
|
|
|
|
Re: 2 node RAC always connect to 2nd instance [message #642196 is a reply to message #642190] |
Fri, 04 September 2015 12:04   |
 |
juniordbanewbie
Messages: 250 Registered: April 2014
|
Senior Member |
|
|
but still it could not explain the fact that scan_listener was on imdb1, but I got connected to orcl2
04-SEP-2015 04:29:46 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus@imdb1)(HOST=imdb1)(USER=oracle))(SERVER=dedicated)(INSTANCE_NAME=orcl2)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.50.82)(PORT=33597)) * establish * orcl * 0
orcl1 resides on imdb1 and not orcl2
the real issue is imdb-scan is not working as expected.
there's also the unexplained missing scan_listener logs
ls -l $GRID_BASE/diag/tnslsnr/imdb1
oracle@imdb1:~> ls -l $GRID_BASE/diag/tnslsnr/imdb1
total 8
drwxr-xr-x 13 oracle oinstall 4096 Oct 22 2012 listener
drwxr-xr-x 13 oracle oinstall 4096 Sep 11 2014 listener_11204
and many many thanks for your kind assistance!
[Updated on: Fri, 04 September 2015 12:05] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri May 02 14:02:50 CDT 2025
|