Listener won’t register database
I must admit, I’m a sqlnet hack. I never really sat down to figure it out. If I have problems getting a database to register with a currently listener then I generally just add a separate listener. Well, today I was stuck on a system where I couldn’t add a second listener. Everything seems fine. There was a default listener running on 1521 with a database instance already registered. The first and second database were in the same ORACLE_HOME but I just couldn’t get the listener to pick up the second databases. I bounced and reloaded the listener and registered the second database
- lsnrctl start
- lsnrctl stop
- lsnrctl start
- alter system register
No dice. Then I tried
alter system set local_listener='(ADDRESS = (PROTOCOL=TCP)(HOST =myhost)(PORT=1521))’
and bang, it registered.
Of course, I guess I should track down why it wouldn’t register in the first place but getting it working for now was enough.
Trackbacks
Comments
Would “ALTER SYSTEM REGISTER; ” also work in this instance?
nope, as stated above “alter system register” didn’t work.
– Kyle
Thakns a lot dude….it worked for me too….when alter system register did not register, this alter system set local_listener worked
can I register one listener to multiple database within one server?If yes how can I process?
Didn’t work for me:
SQL> alter system set local_listener='(ADDRESS = (PROTOCOL=TCP)(HOST=renonaodb20)(PORT=1521)’;
alter system set local_listener='(ADDRESS = (PROTOCOL=TCP)(HOST=renonaodb20)(PORT=1521)’
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name ‘(ADDRESS =
(PROTOCOL=TCP)(HOST=renonaodb20)(PORT=1521)’
@Michael:
there error says “syntax error or unresolved network name”
can you ping renonaodb20?
have you tried an IP instead of the host name?
Hi,
I have had the same issue, which your solution did fix. However I was also able to fix it by ensuring the service_names where listed in /etc/hosts against 127.0.0.1
thanks a lot!
Worked:-)
Thank you! It worked for me too.
Can’t find the reason why conventional ‘alter system register’ doesn’t work. I made a test env of my production db, everything is completely the same but this.
@Igor Gorbatovsky
still I was able to make it work with ‘alter system register’. Once I added entry of this db to tnsnames-file, ‘alter system register’ started to work as it should.
If you are going for best contents like myself, simply go to see this web site every day as it offers feature contents, thanks
Thanks for this info – it helped.
Let me share my observations on why I think this works.
I have two machines where the db service/pmon binding to the default listener did not work; machine A(port=1523) and machine B (port=15210)…in both machines, the default listener is not using the Oracle default port of 1521.
Whereas in my third machine C, pmon binding to the listener works because the listener use the default port of 1521 <- It would seem that pmon automatic bind to the listener only works when the default LISTENER also use the default PORT=1521
So, if the default listener does not use default PORT 1521, then one has to set the DB local_listener parameter as originally shared by Kyle above (which I had to for my A and B machines). I read somewhere for 11gR2 *This parameter value (local_listener) is actually meant if you want to have the db service/pmon to use a different port other than the default (1521).
This happened to me when we had problems with our network interfaces (interconnect), it worked with local_listener but we hope this will be solved when the problem is corrected.
@Michael Fontana
Sorry I know this is a response to an old post, but yours likely didn’t work because you are missing the last parenthesis.