Second listener on 19c (Linux) [message #676585] |
Thu, 20 June 2019 14:49 |
|
jr1
Messages: 7 Registered: June 2019
|
Junior Member |
|
|
Dear All,
I like to use a second listener on the database.
So I update the listener.ora
Starting listener works fine.
I'm able to build up the tcp connection to the listener.
after login I received:
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Additional information: 4376
Additional information: 350823935
Process ID: 0
Session ID: 0 Serial number: 0
I'm not able to understand the issue.
Using the stdanart listener : all works fine.
But wahts the problem.
As I understand: I seems a problem to get in contact to the SGA.
But why ?
Thanks a lot for any information
JR
|
|
|
|
Re: Second listener on 19c (Linux) [message #676588 is a reply to message #676587] |
Thu, 20 June 2019 15:41 |
|
jr1
Messages: 7 Registered: June 2019
|
Junior Member |
|
|
Here we go:
is it right to copy the logs as ascii ???
Thanks for your time
JR
1/ Your listener.ora
# listener.ora Network Configuration File: /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = kl3dbs.test.com)(PORT = 1524))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1524))
)
)
SID_LIST_LISTENER =
(SID_DESC =
(GLOBAL_DBNAME = kl3db)
(ORACLE_HOME = /opt/oracle/product/19c/dbhome_1)
(SID_NAME = kl3db)
)
)
LISTENER_2 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = kl3dbs.test.com)(PORT = 2524))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2524))
)
)
SID_LIST_LISTENER_2 =
(SID_DESC =
(GLOBAL_DBNAME = kl3db)
(ORACLE_HOME = /opt/oracle/product/19c/dbhome_1/)
(SID_NAME = kl3db)
)
)
#########################################################################
2/ Your client tnsnames.ora
(tnsnames.ora from the server, problems occurs using sqlplus on the server )
# tnsnames.ora Network Configuration File: /opt/oracle/product/19c/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
KL3DB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = kl3dbs.test.com)(PORT = 1524))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = KL3DB)
)
)
KL3DB-ADMIN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = kl3dbs.test.com)(PORT = 2524))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = KL3DB)
)
)
LISTENER_KL3DB =
(ADDRESS = (PROTOCOL = TCP)(HOST = kl3dbs.test.com)(PORT = 1524))
#############################################################################
3a/ The result of "lsnrctl status"
( this listener works fine )
[oracle@kl3dbs ~]$ /opt/oracle/product/19c/dbhome_1/bin/lsnrctl status LISTENER
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 20-JUN-2019 22:35:45
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=kl3dbs.test.com)(PORT=1524)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 20-JUN-2019 21:29:42
Uptime 0 days 1 hr. 6 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora
Listener Log File /opt/oracle/diag/tnslsnr/kl3dbs/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=kl3dbs.test.com)(PORT=1524)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1524)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=kl3dbs.test.com)(PORT=5500))(Security=(my_wallet_directory=/opt/oracle/product/19c/dbhome_ 1/admin/KL3DB/xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "8b8ad88a6a8c6388e0534a6ea8c06f80" has 1 instance(s).
Instance "KL3DB", status READY, has 1 handler(s) for this service...
Service "KL3DBXDB" has 1 instance(s).
Instance "KL3DB", status READY, has 1 handler(s) for this service...
Service "kl3db" has 2 instance(s).
Instance "KL3DB", status READY, has 1 handler(s) for this service...
Instance "kl3db", status UNKNOWN, has 1 handler(s) for this service...
Service "orclpdb1" has 1 instance(s).
Instance "KL3DB", status READY, has 1 handler(s) for this service...
The command completed successfully
####################################################################################
3b. This listern fires the error
[oracle@kl3dbs ~]$ /opt/oracle/product/19c/dbhome_1/bin/lsnrctl status LISTENER_2
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 20-JUN-2019 22:37:11
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=kl3dbs.test.com)(PORT=2524)))
STATUS of the LISTENER
------------------------
Alias LISTENER_2
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 20-JUN-2019 21:34:15
Uptime 0 days 1 hr. 2 min. 55 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora
Listener Log File /opt/oracle/diag/tnslsnr/kl3dbs/listener_2/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=kl3dbs.test.com)(PORT=2524)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2524)))
Services Summary...
Service "kl3db" has 1 instance(s).
Instance "kl3db", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
4/ Your connection string
[oracle@kl3dbs ~]$ sqlplus c##kl3@kl3db-admin
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Jun 20 22:38:10 2019
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Additional information: 4376
Additional information: 350823935
Process ID: 0
Session ID: 0 Serial number: 0
Enter user-name:
|
|
|
|
|
|
|
Re: Second listener on 19c (Linux) [message #676601 is a reply to message #676592] |
Fri, 21 June 2019 23:23 |
|
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
jr1 wrote on Thu, 20 June 2019 17:53Oh, that's very easy.
Shuting down one listener give a very comfortable feature, to avoid user to connect to the database , in case of mantanace for example.
Whatever floats your boat. What kind of maintenance would be done that would leave a dB up, thus requireing a listener to be up, yet would require a listener to be shut down "for maintenance"? I'm sorry, but I've only been at this for about 25 years and have never encountered such a situation.
Quote:
The Admin can use the second port with normal, remote, tools and there is no need for login into the server an use local tool ( sqlplus....)
We did this for some database for years well.
But now, ob 19c, it seems a little tricky.
Hopefully this expains.
Not really. It looks like a case of circular, self-justification. "We do it this way because this is how we have always done it."
|
|
|
Re: Second listener on 19c (Linux) [message #676602 is a reply to message #676599] |
Sat, 22 June 2019 00:35 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote:Is there a a problem with uppercase / lowercase ?
Can be.
When you "connect sys as sysdba" how was ORACLE_SID set?
Note that the current way to use listeners is to not statically configure the instances like in:
SID_LIST_LISTENER_2 =
(SID_DESC =
(GLOBAL_DBNAME = kl3db)
(ORACLE_HOME = /opt/oracle/product/19c/dbhome_1/)
(SID_NAME = kl3db)
but to let the instance registered to the listener setting "local_listener" parameter:
local_listener = 'ADDRESS=(PROTOCOL=TCP)(HOST=kl3dbs.outokumpu.com)(PORT=2524))'
The value is the one given by the listener in answer to "status" command.
Verify that the host is correct in tnsnames.ora.
[Edit: typo]
[Updated on: Sat, 22 June 2019 12:07] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Second listener on 19c (Linux) [message #676611 is a reply to message #676607] |
Mon, 24 June 2019 06:54 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
Please NOTE that nowhere in posted excerpt from listener log file does it show any connection attempt similar to previously reported below.
>[oracle@kl3dbs ~]$ sqlplus c##kl3@kl3db-admin
It shows only "(PROGRAM=sqlplus@kl3dbs)" & indicates that the request using "@kl3db-admin" NEVER gets to the listener & guarantees failure.
|
|
|