|
|
Re: TNS-01151 - problem with starting the listener for standby database [message #675891 is a reply to message #675890] |
Sat, 27 April 2019 13:34 |
|
petar97
Messages: 120 Registered: October 2018
|
Senior Member |
|
|
[oracle@localhost admin]$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 27-APR-2019 14:34:10
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 27-APR-2019 13:14:06
Uptime 0 days 1 hr. 20 min. 4 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service orcl12c
Listener Parameter File /u01/app/oracle/product/12.2/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.2)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.3)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=8081))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "51c99766d7e2568de0530100007f4fae" has 1 instance(s).
Instance "orcl12c", status READY, has 1 handler(s) for this service...
Service "TESTCDB" has 2 instance(s).
Instance "TESTCDB", status UNKNOWN, has 1 handler(s) for this service...
Instance "TESTCDB", status READY, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl12c", status READY, has 1 handler(s) for this service...
Service "orcl12c" has 2 instance(s).
Instance "orcl12c", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl12c", status READY, has 1 handler(s) for this service...
Service "orcl12cXDB" has 1 instance(s).
Instance "orcl12c", status READY, has 1 handler(s) for this service...
Service "testDB" has 2 instance(s).
Instance "testDB", status UNKNOWN, has 1 handler(s) for this service...
Instance "testDB", status READY, has 1 handler(s) for this service...
The command completed successfully
|
|
|
|
|
|
|
|
|
|
Re: TNS-01151 - problem with starting the listener for standby database [message #675903 is a reply to message #675902] |
Sat, 27 April 2019 15:07 |
|
petar97
Messages: 120 Registered: October 2018
|
Senior Member |
|
|
I set listener.ora like this:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl12c)
(SID_NAME = orcl12c)
(ORACLE_HOME = /u01/app/oracle/product/12.2/db_1)
)
(SID_DESC =
(GLOBAL_DBNAME = testDB)
(SID_NAME = testDB)
(ORACLE_HOME = /u01/app/oracle/product/12.2/db_1)
)
(SID_DESC =
(GLOBAL_DBNAME = TESTCDB)
(SID_NAME = TESTCDB)
(ORACLE_HOME = /u01/app/oracle/product/12.2/db_1)
)
(SID_DESC =
(GLOBAL_DBNAME = standby_test)
(SID_NAME = standby_test)
(ORACLE_HOME = /u01/app/oracle/product/12.2/db_1)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
)
Now, when I started listener.ora file I got:
[oracle@localhost admin]$ lsnrctl start
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 27-APR-2019 16:01:53
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Starting /u01/app/oracle/product/12.2/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 12.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/12.2/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 27-APR-2019 16:01:54
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service orcl12c
Listener Parameter File /u01/app/oracle/product/12.2/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "TESTCDB" has 1 instance(s).
Instance "TESTCDB", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl12c" has 1 instance(s).
Instance "orcl12c", status UNKNOWN, has 1 handler(s) for this service...
Service "standby_test" has 1 instance(s).
Instance "standby_test", status UNKNOWN, has 1 handler(s) for this service...
Service "testDB" has 1 instance(s).
Instance "testDB", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@localhost admin]$ vi listener.ora
|
|
|
|
|
|