Home » RDBMS Server » Server Administration » TNS-01151 - problem with starting the listener for standby database (Oracle 12.2, Linux)
icon7.gif  TNS-01151 - problem with starting the listener for standby database [message #675889] Sat, 27 April 2019 12:58 Go to next message
petar97
Messages: 120
Registered: October 2018
Senior Member
I set the listener.ora - for standby db - I am trying to implement data guard

The listener.ora look like:
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)
    )
  )
When I tried to start listener I got this error:
[code]
[oracle@localhost admin]$ lsnrctl start standby_test

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 27-APR-2019 13:42:35

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/standby_test/alert/log.xml
TNS-01151: Missing listener name, standby_test, in LISTENER.ORA

Listener failed to start. See the error message(s) above...
Re: TNS-01151 - problem with starting the listener for standby database [message #675890 is a reply to message #675889] Sat, 27 April 2019 13:06 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Why are you starting a listener with non-default listener name?

Which part of below do you NOT understand?
>TNS-01151: Missing listener name, standby_test, in LISTENER.ORA

>lsnrctl start standby_test
Oracle does not know what "standby_test" is since it does not exist in LISTENER.ORA file.

Issue OS command below

lsnrctl status
Copy the results from above then PASTE all back here

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 Go to previous messageGo to next message
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 #675893 is a reply to message #675891] Sat, 27 April 2019 14:23 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Why are/were you trying to start a second listener when there is already a listener configured & running on this system?

What problem are you trying to solve?
Re: TNS-01151 - problem with starting the listener for standby database [message #675894 is a reply to message #675893] Sat, 27 April 2019 14:25 Go to previous messageGo to next message
petar97
Messages: 120
Registered: October 2018
Senior Member
standby_test not started.

Re: TNS-01151 - problem with starting the listener for standby database [message #675896 is a reply to message #675894] Sat, 27 April 2019 14:32 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

standby_test not configured!

Re: TNS-01151 - problem with starting the listener for standby database [message #675898 is a reply to message #675896] Sat, 27 April 2019 14:37 Go to previous messageGo to next message
petar97
Messages: 120
Registered: October 2018
Senior Member
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)
    ) [color=red]
    (SID_DESC =
      (GLOBAL_DBNAME = standby_test)
      (SID_NAME = standby_test)
      (ORACLE_HOME = /u01/app/oracle/product/12.2/db_1)
    )
  )[/color]
Re: TNS-01151 - problem with starting the listener for standby database [message #675900 is a reply to message #675898] Sat, 27 April 2019 14:41 Go to previous messageGo to next message
petar97
Messages: 120
Registered: October 2018
Senior Member
above, is the standby_test configured?
Re: TNS-01151 - problem with starting the listener for standby database [message #675901 is a reply to message #675898] Sat, 27 April 2019 14:42 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

SID_LIST_LISTENER

In red the name of the listener.
Please read the documentation.

Re: TNS-01151 - problem with starting the listener for standby database [message #675902 is a reply to message #675900] Sat, 27 April 2019 14:45 Go to previous messageGo to next message
petar97
Messages: 120
Registered: October 2018
Senior Member
Complete listener.ora file:

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)
    ) [color=red]
    (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))
    )
    (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 = 127.0.0.5)(PORT = 1521))
    )
  )
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 Go to previous messageGo to next message
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

Re: TNS-01151 - problem with starting the listener for standby database [message #675906 is a reply to message #675903] Sun, 28 April 2019 01:56 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Same answer.

Re: TNS-01151 - problem with starting the listener for standby database [message #675908 is a reply to message #675903] Sun, 28 April 2019 08:34 Go to previous messageGo to next message
EdStevens
Messages: 1376
Registered: September 2013
Senior Member
You still have not answered two vital questions:

1) why do you want a second listener when you already have one perfectly good listener. Remember, one single listener, with the default name of LISTENER, on the default port of 1521, is perfectly capable of -- indeed, was designed for -- servicing mulitple databases of multiple versions from multiple HOMEs.

2) why would you want a listener with a non-default name? See #1.
Re: TNS-01151 - problem with starting the listener for standby database [message #675909 is a reply to message #675894] Sun, 28 April 2019 12:16 Go to previous message
EdStevens
Messages: 1376
Registered: September 2013
Senior Member
petar97 wrote on Sat, 27 April 2019 14:25
standby_test not started.

Standby_test not needed.
Previous Topic: invalid datafile
Next Topic: Split partition notes
Goto Forum:
  


Current Time: Thu Mar 28 13:13:50 CDT 2024