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