Solved

Cannot change current_listener on linux Oracle10g server

Posted on 2008-10-08
3
590 Views
Last Modified: 2013-12-18
Hello

I'm trying to change the current_listener on our linux oracle10g server. This is what i do
LSNRCTL>l show current_listener
Current listener is LISTENER
LSNRCTL>set current_listener LISTENER_S2
Current listener is LISTENER_S2
LSNRCTL>exit
$lsnrctl
LSNRCTL>show current_listener
Current listener is LISTENER

It changes when i set it but it doesn't save it. I've tryied from lsnrctl to save_config but the result it the same.

Thank you.
Teo


0
Comment
Question by:temmelv
  • 2
3 Comments
 
LVL 73

Accepted Solution

by:
sdstuber earned 500 total points
ID: 22668655
set current_listener  doesn't change the processes running it only changes which listener the lsnrctl program will modify for unclarified commands.

It simply changes which listener that lsnrctl will run commands for.

so,  if you do...

$lsnrctl
LSNRCTL>     <<<  at this point nothing happens, the current listener is LISTENER
LSNRCTL>start    <<<<-  this will start a listener called LISTENER
LSNRCTL>set current_listener LISTENER_S2  <<<<-  this changes which listener will be operated on
LSNRCTL>start   <<<<<-  this will start a listener called LISTENER_S2
LSNRCTL>exit

you will now have 2 listeners running   LISTENER  and LISTENER_S2

$ lsnrctl stop LISTENER    <<<< this will stop the listener called LISTENER
$ lsnrctl stop LISTENER_S2   <<< this will stop the listener called LISTENER_S2

lsnrctl always defaults to LISTENER as the current_listener

you can specify actions by including the listener you want with the command to override the default

$ lsnrctl start LISTENER_S2  <<< this will start the LISTENER_S2 listener




0
 

Author Closing Comment

by:temmelv
ID: 31504142
Thank you that clarified it
0
 
LVL 73

Expert Comment

by:sdstuber
ID: 22669836
you're welcome,  but why only a B?  if you needed additional information, just ask,
please don't assign a penalty grade with giving the volunteers (not just me) a chance.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now