Home » RDBMS Server » Server Administration » Check DB listener and Read Only from DB query
Check DB listener and Read Only from DB query [message #460632] Sun, 13 June 2010 13:13 Go to next message
casttree
Messages: 83
Registered: August 2008
Member
I need to display the parameter and status of DB for listener and Read Only.

I know those value could be get from command line , but could we get the values of Listener and Read only by SQL/PlSQL? So I can get it through the query of DB.

Thanks,

Re: Check DB listener and Read Only from DB query [message #460633 is a reply to message #460632] Sun, 13 June 2010 14:06 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>I know those value could be get from command line
Please demonstrate answer you desire
Re: Check DB listener and Read Only from DB query [message #460636 is a reply to message #460633] Sun, 13 June 2010 14:47 Go to previous messageGo to next message
casttree
Messages: 83
Registered: August 2008
Member
I hope to check if the value for listener and read only can be retrieved from table, so I can get it from SQL or PL/SQL through JDBC.

From lsnrctl status, we can show the listener , but it is a little difficult to integrate it in java code. For Read only, I only know Alter Tablespace xxx Read Only, I don't know how we can check if a table space is read only or not by SQL or unix command.

Thanks,
Re: Check DB listener and Read Only from DB query [message #460638 is a reply to message #460636] Sun, 13 June 2010 14:50 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
when all else fails Read The Fine Manual

http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_4157.htm#i1627812
Re: Check DB listener and Read Only from DB query [message #460641 is a reply to message #460638] Sun, 13 June 2010 15:09 Go to previous messageGo to next message
casttree
Messages: 83
Registered: August 2008
Member
Thanks, dba_tabelspaces is good enough for me to get the Read Only . Is there database table store listener information too?

Re: Check DB listener and Read Only from DB query [message #460645 is a reply to message #460641] Sun, 13 June 2010 15:27 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Oracle RDBMS does not know or care if listener exists or not.
Re: Check DB listener and Read Only from DB query [message #460668 is a reply to message #460638] Mon, 14 June 2010 01:02 Go to previous messageGo to next message
casttree
Messages: 83
Registered: August 2008
Member
Thanks, but I realized that there are multiple table spaces and could have different status for each table spaces (online, read only) . It is not what I need, sorry for providing the wrong information.

I need the read only status for DB (like through ALTER DATABASE OPEN READ ONLY) , do we have the table for DB read only information ?

Thanks,

Re: Check DB listener and Read Only from DB query [message #460671 is a reply to message #460668] Mon, 14 June 2010 01:35 Go to previous messageGo to next message
Michel Cadot
Messages: 68653
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
v$database.open_mode

Regards
Michel
Re: Check DB listener and Read Only from DB query [message #460676 is a reply to message #460632] Mon, 14 June 2010 01:52 Go to previous message
casttree
Messages: 83
Registered: August 2008
Member
Thanks a lot!
Previous Topic: 11g upgrade
Next Topic: Need help with ORA-1654
Goto Forum:
  


Current Time: Sun May 19 20:32:12 CDT 2024