Vous êtes sur la page 1sur 3

If I start the listener manually, it is ok:

oraprod@dbproa01bk:/home/oraprod(V2P1) $ lsnrctl start V2P_ADM


LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production on 11-NOV2016 11:47:05
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Starting /opt/oracle/base/product/11.2.0.4/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production
System parameter file is /opt/oracle/base/product/11.2.0.4/dbhome_1/network/admi
n/V2P1_dbproa01bk/listener.ora
Log messages written to /opt/oracle/base/product/11.2.0.4/dbhome_1/network/log/v
2p_adm.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.206.45.67)(PORT=1523)
))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.206.45.21)(PORT=1523)
))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=V2P_ADM)))
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=10.206.45.67)(Port=1523)(IP=FIRST))
STATUS of the LISTENER
-----------------------Alias V2P_ADM
Version TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production
Start Date 11-NOV-2016 11:47:05
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File /opt/oracle/base/product/11.2.0.4/dbhome_1/network/admin
/V2P1_dbproa01bk/listener.ora
Listener Log File /opt/oracle/base/product/11.2.0.4/dbhome_1/network/log/v2p_adm
.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.206.45.67)(PORT=1523)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.206.45.21)(PORT=1523)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=V2P_ADM)))
Services Summary...
Service "V2P1" has 1 instance(s).
Instance "V2P1", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
oraprod@dbproa01bk:/home/oraprod(V2P1) $
Obs: Manually, listener says that listener is using file:
/opt/oracle/base/product/11.2.0.4/dbhome_1/network/admin/V2P1_dbproa01bk/listene
r.ora
but this file contains an ifile redirection to the same listener_ifile.ora, wher
e is the definition of the listener:
IFILE=/opt/oracle/base/product/11.2.0.4/dbhome_1/network/admin/V2P1_dbproa01bk/l
istener_ifile.ora
Started by cluster, it says is using file:
/opt/oracle/base/product/11.2.0.4/dbhome_1/network/admin/listener.ora
But, this default listener.ora file also contains (as I told you) a redirection
to
/opt/oracle/base/product/11.2.0.4/dbhome_1/network/admin/V2P1_dbproa01bk/listene
r_ifile.ora

Strange: started by cluster, listener is using just the vip address (10.206.45.2
1) but no the physical address (10.206.45.67).
Started manually, listener is using both the addresses and is working well.
Customer Visible
[Open Update screen]
[Double Click on Activity Text to enable
Save operation]
[Audit]
You didn't even read what I wrote in this SR. You have a lot of examples with -s
and you tell me that, after weeks, like a beginer!
See the SR:
As I already mentioned in this SR, one solution to the problem with specific TNS
_ADMIN locations on each node could be to insert a line like this in $ORACLE_HOM
E/network/admin/listener.ora file, on each node:
-- node 1 (dbproa01bk):
IFILE=/opt/oracle/base/product/11.2.0.4/dbhome_1/network/admin/V2P1_dbproa01bk/l
istener_ifile.ora
-- node 2 (dbproa02bk):
IFILE=/opt/oracle/base/product/11.2.0.4/dbhome_1/network/admin/V2P2_dbproa02bk/l
istener_ifile.ora
I succeded to add a new listener ($TNS_ADMIN/listener_ifile.ora - where TNS_ADMI
N is different on each node) using note 1063571.1 :
# srvctl add network -k 2 -S 10.206.16.0/255.255.255.0/en2
# srvctl add vip -n dbproa01bk -k 2 -A 10.206.16.123/255.255.255.0/en2
# srvctl add vip -n dbproa02bk -k 2 -A 10.206.16.124/255.255.255.0/en2
$ srvctl add listener -l V2P_NET -s -o /opt/oracle/base/product/11.2.0.4/dbhome_
1 -p 1523 -k 2
$ srvctl start listener -l V2P_NET
lsnrctl status V2P_NET => OK
The problem is I cannot add the THIRD listener using the same method:
# srvctl add network -k 3 -S 10.206.45.0/255.255.255.0/en0
# srvctl add vip -n dbproa01bk -k 3 -A 10.206.45.21/255.255.255.0/en0
# srvctl add vip -n dbproa02bk -k 3 -A 10.206.45.22/255.255.255.0/en0
$ srvctl add listener -l V2P_ADM -s -o /opt/oracle/base/product/11.2.0.4/dbhome_
1 -p 1523 -k 3
$ srvctl start listener -l V2P_ADM
lsnrctl status V2P_ADM => NOT OK:
oraprod@dbproa01bk:/home/oraprod(V2P1) $ srvctl config network
Network exists: 1/192.168.160.0/255.255.255.0/en5, type static
Network exists: 2/10.206.16.0/255.255.255.0/en2, type static
Network exists: 3/10.206.45.0/255.255.255.0/en0, type static
oraprod@dbproa01bk:/home/oraprod(V2P1) $ srvctl config vip -n dbproa01bk
VIP exists: /10.206.16.123/10.206.16.123/10.206.16.0/255.255.255.0/en2, hosting
node dbproa01bk
VIP exists: /10.206.45.21/10.206.45.21/10.206.45.0/255.255.255.0/en0, hosting no
de dbproa01bk
VIP exists: /dbproa01bk-vip/192.168.160.200/192.168.160.0/255.255.255.0/en5, hos
ting node dbproa01bk
oraprod@dbproa01bk:/home/oraprod(V2P1) $ srvctl config vip -n dbproa02bk
VIP exists: /10.206.16.124/10.206.16.124/10.206.16.0/255.255.255.0/en2, hosting
node dbproa02bk
VIP exists: /10.206.45.22/10.206.45.22/10.206.45.0/255.255.255.0/en0, hosting no
de dbproa02bk
VIP exists: /dbproa02bk-vip/192.168.160.210/192.168.160.0/255.255.255.0/en5, hos

ting node dbproa02bk


oraprod@dbproa01bk:/home/oraprod(V2P1) $
oraprod@dbproa01bk:/home/oraprod(V2P1) $ lsnrctl status V2P_ADM
LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production on 11-NOV2016 11:58:36
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=10.206.45.67)(Port=1523))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
IBM/AIX RISC System/6000 Error: 79: Connection refused
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=10.206.45.21)(Port=1523))
STATUS of the LISTENER
-----------------------Alias V2P_ADM
Version TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production
Start Date 11-NOV-2016 11:58:11
Uptime 0 days 0 hr. 0 min. 25 sec
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File /opt/oracle/base/product/11.2.0.4/dbhome_1/network/admin
/listener.ora
Listener Log File /opt/oracle/base/product/11.2.0.4/dbhome_1/network/log/v2p_adm
.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=V2P_ADM)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.206.45.21)(PORT=1523)))
Services Summary...
Service "V2P1" has 1 instance(s).
Instance "V2P1", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
oraprod@dbproa01bk:/home/oraprod(V2P1) $
If I start manually this listener, it is ok.

Vous aimerez peut-être aussi