Configuration of Oracle Foundation-listner

Source: Internet
Author: User
Tags sqlplus

1. Static configuration

Oracle has long supported dynamic listener, but still requires static configuration when using premium goods such as the OEM (Oracle Enterprise Manager)

Tools: Netca+netmgr (or directly modify the/network/admin below the Listener.ora, if the file is wood, you can open the NETCA configuration to get a simple)

PS. means that through these tools I can configure n linstener, by command Lsnrctl LISTENERNN start can be started (of course, if these listener corresponding ports are open)

NETCA is very simple, the popup interface after the step by step down the line

Netmgr on the basis of NETCA can be configured to detail information, such as specifying the database service is also very simple

After the configuration, you can see what Listener.ora has become.

In this case, you can use Sqlplus in Windows to see

Sqlplus Scott/[email PROTECTED]/ORCL (currently the client has not configured Tnsname.ora, just use IP access bar)

At the same time with the tail command to view the next log, it is obvious that after the connection is established, there is a log write every time (found 1s and 30s two time intervals, do not know hey)

You may encounter problems with Windows connectivity, be aware that the firewall has no open 1521 port (ORA-12179 error)

Reference: http://www.cnblogs.com/kerrycode/archive/2012/12/14/2818421.html

2. Dynamic configuration

Very easy, only requires spfile inside the Service_names,isntance_name configuration is correct.

SPFile path $ORACLE _home/dbs below

Strings command Check Strings Spfileorcl.ora | grep Inst

Check Inst,db_name,service_names, right?

If you find any matching, match the alter system set Instance_name= ' ORCL ' scope=spfile

Alter system set service_names= ' ORCL ' scope=spfile

After the configuration is complete, you need to restart the database and check that the spfile changed.

Look at the same directory, whether there is a listener configuration, some words moved (because no need)

MV Listener.ora/tmp

Then start listener and you can find Lisntener now support No service

Then start the database and review the LSNRCTL status to find out that Pmon has notified listener.

Last Windows end to even try

Configuration of Oracle Foundation-listner

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: [email protected] 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.