ORA-12523 errors caused by static listening in Oracle

Source: Internet
Author: User
Tags reserved oracle database sqlplus

After configuring the shared server mode today, we found that the error ORA-12523 in the process of logging in, and found that static monitoring was the bane of the investigation.

There are two listening on the machine, a static listening 1521 port, and a dynamic listening 1526 port.

Listener=

(description=

(address_list=

(Address= (PROTOCOL=TCP) (HOST=JP) (port=1521))

(Address= (PROTOCOL=IPC) (Key=extproc)))

Lsnr2=

(description=

(address_list=

(Address= (PROTOCOL=TCP) (HOST=JP) (port=1526))

(Address= (PROTOCOL=IPC) (Key=extproc1)))

Trace_level_lsnr2=support

Sid_list_listener=

(sid_list=

(sid_desc=

(Global_dbname=prod)

(oracle_home=/u01/app/oracle/product/10.2.0/db_1)

(Sid_name=prod))

(sid_desc=

(Sid_name=plsextproc)

(oracle_home=/u01/app/oracle/product/10.2.0/db_1)

(Program=extproc)))

TNSNames configuration When an error occurs:

prod_s=

(Description =

(address = (protocol = TCP) (host = JP) (port = 1521))

(Connect_data =

(Server = shared)

(service_name = PROD)

)

)

Connection Database times Error:

[Oracle@jp admin]$ sqlplus sys/oracle@prod_s as Sysdba

Sql*plus:release 10.2.0.1.0-production on Sat Mar 8 10:43:54 2014

Copyright (c) 1982, +, Oracle. All rights reserved.

ERROR:

Ora-12523:tns:listener could not find instance appropriate for the client

Connection

After the inspection found that the prod_s connection string is static listening, the shared server mode needs to register the information of the scheduling process into the monitoring, when there is a connection, listening to select a load of the lowest scheduling process. Static monitoring does not have information about the scheduling process, which causes the error to be connected through Shared_server mode.

Modify TNSNames

prod_s=

(Description =

(address = (protocol = TCP) (host = JP) (port = 1526))

(Connect_data =

(Server = shared)

(service_name = PROD)

)

)

Re-connect through Shared_server, success:

[Oracle@jp admin]$ sqlplus sys/oracle@prod_s as Sysdba

Sql*plus:release 10.2.0.1.0-production on Sat Mar 8 10:42:22 2014

Copyright (c) 1982, +, Oracle. All rights reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-production

With the partitioning, OLAP and Data Mining options

Sys@prod_s>select server from V$session;

SERVER

---------

SHARED

Dedicated

Dedicated

Dedicated

Dedicated

Dedicated

Dedicated

Dedicated

Dedicated

Dedicated

Dedicated

SERVER

---------

Dedicated

Dedicated

Dedicated

Dedicated

Dedicated

Rows selected.

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.