OS-level Database Status/Connectivty Check (*nix)

Hi all
What is the most comprehensive singular* check to monitor "running" and "connectivity" status of an ORACLE database on a Unix-like platform?
Does checking the status of SMON ps -ef | grep smon confirm both statements:
1) Database is running; and,
2) Can be locally connected using sqlplus
Or, does this require separate OS-level checks? If so, which ones?
Cheers.

Does checking the status of SMON ps -ef | grep smon confirm both statements:
1) Database is running; and,
2) Can be locally connected using sqlplusIf smon is running, my minimum assumption will be.....database is started in nomount state.
SQL> conn santu/santu
Connected.
SQL> conn /as sysdba
Connected.
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 1073741824 bytes
Fixed Size                  2034376 bytes
Variable Size             264246584 bytes
Database Buffers          801112064 bytes
Redo Buffers                6348800 bytes
SQL> !ps -ef|grep smon
  ora10g 23625 23587   0 09:31:06 pts/1       0:00 /bin/sh -c ps -ef|grep smon
  ora10g 23626 23625   0 09:31:06 pts/1       0:00 grep smon
  *ora10g 23615     1   0 09:30:46 ?           0:00 ora_smon_rtest*
SQL> conn santu/santu
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Warning: You are no longer connected to ORACLE.Regards,
S.K.

Similar Messages

  • My Sites database status changed to "Database is up to date, but some sites are not completely upgraded."

    We have a brand new SharePoint 2013 farm which we just put into production. As users have begun creating their My Sites, the My Sites web application database changed to a status of "Database is up to date, but some sites are not completely upgraded."
    Huh?
    Prior to deploying to production, we had some test users that had created My Sites, and everything was fine. The database status was "No action required".
    Anyone know why the creation of My Sites would cause the database status to flip to this warning?

    HI Kleung,This seems to be that after the patch upgradation some of the sites are not upgraded properly.Please check the below thread that exactly talking about the issue that see in your enviornment.
    http://expertsharepoint.blogspot.de/2014/03/data-base-is-up-to-date-but-some-sites.html
    First of all, to identify what site collection doesn't got upgraded.
             Run: stsadm.exe -o localupgradestatus > upgradestatus.txt
    or
    PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures  (Run from one of the WFE server)    
    In below as you see, there no site collection that need upgrade. If you have any, you can identify
    them by searching by word "Needs upgrade" in this file.                  
    Secondly, run the command in the Power Shell:
    For resuming the upgrade, you’ll need the ID for the database :
    Get-SPContentDatabase -Identity <your content database name>
    When you got the GUID for the database you can then resume the upgrade
             upgrade-spcontentdatabase -id <database
    GUID>
    Finally, check the upgrade status by running stsadm again:
    stsadm.exe -o localupgradestatus > upgradestatus.
    Thanks
    Anil Avula See Me At: http://expertsharepoint.blogspot.de/

  • How to turn a database status from "in recovery" to "online"?

    How to turn a database status from "in recovery" to "online"?
    We were trying to turn a datase to offline status using management studio - the operation was closed before it could reach the end.

    Hi Brian,
    Thanks for your feedback;
    I have completed the following actions to solve the issue:
    1. Start SQL Server in single user mode.
    2. Check database status: there i noticed that it was normal
    3. Restart SQL Server in multi-user mode
    4. Check database status: normal
    5. Check my data: ok
    Thank you again
    Lulu01
    You should have wait for an while or atleaset you need to check in the sql errorlog, what phases it is or if any issues persists that shows in the errorlog messages.
    also you would have been used sys.databases, to seewhat's the value for state_desc for your database.
    Thanks, Rama Udaya.K (http://rama38udaya.wordpress.com) ---------------------------------------- Please remember to mark the replies as answers if they help and UN-mark them if they provide no help,Vote if they gives you information.

  • Database is UP- But OEM says DATABASE status is currently unavailable

    If anybody can help me why this message occurs when i open oem. although the database is up and running and i am making changes to it through sqlplus

    well guys
    i check SYSMAN & DBSNMP accounts in dba_users and i'm sure thier account_status r open but i still got the same message i delete the ORCL database and recreate it again but i got another prb the EM open but the database status in home page is DOWN i have 10g R1 so i hope i can find a soltion with u
    by the way this prb happen coz of changing
    ip
    computer name
    puting the computer in a network or domain
    i hope i can find help here
    urs
    Yasser

  • SqlServer 2008 Database Status Showing(Recovery pending)..How to get this database in online?

    SqlServer 2008 Database Status Showing(Recovery pending)
    How to get this database in online?
    This is SharePoint Content database.
    Badri

    SqlServer 2008 Database Status Showing(Recovery pending)
    How to get this database in online?
    This is SharePoint Content database.
    Badri
    Hi,
    Please try running below in master database
    restore database db_name with recovery
    Chances are that this command would not succeed because I guess there was corruption in database and you restarted SQL Server service. Or can you please tell how your database went into recovery pending state.
    Please check SQL Server errorlog you would find information regarding this change. Please post relevant log information here. Please check event viewer as well
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • EM gives wrong database status.

    Hi!
    EM is giving me this status:
    The database status is currently unavailable. It is possible that the database is in mount or nomount state. Click 'Startup' to obtain the current status and open the database. If the database cannot be opened, click 'Perform Recovery' to perform an appropriate recovery operation.
    While,I can see from SQL plus as a sysdba from v$instance that the database staus is open.
    I try to startup the database from EM,but it throws an SQL exception and tells me to shutdown the database.
    I say yes.
    I get an error: Premature EOF encountered, no trailer found
    And the database status is still unavailable.Can anyone help me on this?Thanks.

    Check previous posts on the same topic. You never mentioned the O/S either.

  • SQL 2008R2 Database status not reflecting on SCOM 2012

    Hi Everyone,
    I am using SQL server 2008R2 with 2 instance and 9 database, SCOM agent installed on that server.
    When i put 2 database offline i am not getting any alert, and  i also delete 3 database its not reflecting on scom server.
    I also verified SCOM services running and done re-install the agent.
    Please suggest 

    Hi,
    Have you imported the proper version of SQL MP for SCOM?
    http://www.microsoft.com/en-us/download/details.aspx?id=10631
    The details below are related to SQL MP.
    SQL MP has database status monitor - the information from user manual:
    "Periodically the monitor checks the status of the database as reported by SQL Server. This is done by running a query against the master database of the SQL Server instance and returning the state of the database. If you receive
    an alert from this monitor, an action is required in order to bring the database back to an operational state."
    SQL Server database state
    Monitor health state
    ONLINE
    GREEN
    OFFLINE
    RED
    RECOVERY PENDING
    RED
    SUSPECT
    RED
    EMERGENCY
    RED
    RESTORING
    YELLOW
    RECOVERING
    YELLOW
    Alert is generated when monitor switches to Critical (red) state.
    Deleted databases will disappear after the next DB instances discovery which is performed every 4 hours by default. In order to initialize discovery manually you can restart SCOM Agent Health service on SQL Server and wait for a while.
    Igor Savchenko, VIAcode Consulting LLC (http://www.viacode.com/)

  • Oracle Database Audit Health Check

    Hi Experts,
    I have been looking for checklist to perform the oracle database audit.
    what is the best practise to perfrom the database audit health check.
    Regards
    Mohammed. Abdul Muqeet

    Hi,
    What is it mean for Health Check, You mean you have audit enable in your database and you want to manage it. if so
    then you have to take care of Audit area at OS level and sys/aud$ table
    for Audit Area: you can schedule a job to clear that are time to time
    for sys.aud$: Move this table to non- system tablespace and moniter the uage. can purge the data if not required after taking the backup..
    HTH

  • Database status is currently unavailable

    hi!
    the web-based 10g OEM of our database displays "database status is currently unavailable" upon login as sysdba. but the database instance has already been started/opened. could it be because of the "UNKNOWN" status in my listener? if yes, what are things should i look for to solve this problem? thank you very much.
    Services Summary...
    Service "bdsprod" has 1 instance(s).
    Instance "bdsprod", status UNKNOWN, has 1 handler(s) for this service...

    Click on the performance tab, does it prompt for userid/password. If so its the credentials to check the db.
    Also check the oracle home that OEM thinks your db is at, sometimes it gets messed up.

  • Database Status report.

    Hi Export,
    Currently i joined a company as a Oracle Dba. i am new to DBA world, My manager told me to prepare a database status report. Please suggest me how can i create the report.
    Regards...
    Asmit

    EdStevens wrote:
    marksmithusa wrote:
    That's an awesome idea - just one problem.
    If it's tall enough for all to see, this also includes management and if they notice the chicken, your cube will be instantly surrounded by various management types asking 'when will it be back up?'
    You're, almost literally, hoisting yourself with your own petard.True, but I think he had the understanding with mgmt that if the chicken was up, they'd best leave him alone until the chicken came down.Wow. I'm actually stunned - I didn't think that was possible within the physical laws of the universe that we occupy.
    He achieved 'DBA Hero' status.

  • Content Database Status Error in SharePoint 2010 Central Administration

    Hi,
    I am having a new problem with SharePoint 2010 on Windows Server 2008 R2. I have SQL Server 2008 R2 as SharePoint Database on Windows Server 2008 R2. I have total no. of
    Seven Content Databases for one Web Application. I found
    two of my Content Databases showing Error under the
    Database Status column in Manage Content Database section in
    Central Administration. Five Content Databases are showing
    Started.
    Would someone please guide how to resolve it and whats wrong is going on? 
    Thanks in advance.

    What is the output of:
    $db = Get-SPContentDatabase <error'ed db name>
    $db.Status
    And can you set it to Started?
    $db = Get-SPContentDatabase <error'ed db name>
    $db.Status = "Online"
    $db.Update()
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • RE: UNABLE TO FIND DATABASE TABLE FOR CHECK NO, IN ISU

    HI,
    CAN ANY BODY TELL ME DATABASE TABLE FOR CHECK NO IN ISU.
    THANKS,
    SARANG

    hey sarang
      i will tell u  a short  cut  to  know vat is the table for all ur desired fields,
    just  enter  a worng  value in the particular  filed.. and then u can  see a error message displayed like the follwing  example
    entry  01 not  found in  table erro1
    just  try  giving  wrong  values for check number..and just  enter
    then u  will get a error message with the table information..
    check wthere this trick  works in ur system
    kr
    prince

  • Current database status does not match sitemap page

    After I had to drop and recreate an 10g instance the OEM Home tab displays Status Pending. The instance, however, is available and all other OEM functions like Performance, Installation, and Maintenance work fine.
    If I try to shutdown the instance the I get this message in the Startup/Shutdown:Confirmation screen :
    Current Status open
    This is the correct current database status, although it doesn't match the current status in the sitemap page.
    Stopping and starting the instance through OEM did not change this condition.
    How do you get OEM to update the status to what it knows it correct instead of what is stored in the sitemap page?

    Ok, I did that many times already. The command is 'emctl stop dbconsole' and 'enctl start dbconcole'. OEM still thinks the instance is Pending.
    Becasue of this and other problems with this instance I am going to cut my losses and uninstall 10.1 then reinstall 10.2 this weekend.
    For example, I am now getting messages like this on Startup and the database will not Open:
    ORA-04030: out of process memory when trying to allocate 41987820 bytes (pga
    heap,KCL disk IO request block array)
    If I allocate much LESS memory to SGA and PGA and then Startup the instance comes right up.
    Thanks for you help.

  • Database Status Inactive Sessions

    On OAM Applications Dashboard > Navigate to "DATABASE STATUS" > Sessions "#"
    I see alot of inactive sessions. Is it okay to terminate all of the inactive sessions? does it affect system performance? THanks!
    Message was edited by:
    chaseeem

    Oracle will clean them up for you. In addition, you could terminate a session that's simply idle.

  • The database status is currently unavailable.

    Hi,
    I have a probem in my production database -
    Server - Windows 2003
    DB - Oracle 10g
    When i try to open Enterprise Manager I get the below error message. This was working fine since last month. But I haven't made any changes to this DB. But I noticed that disk space was very less so I deleted files from recycle bin, temp internet files, cookies and some unwanted documents i copied on the server. No disc space is OK. I have 10 GB free space. Also i am getting DB warning notification because table space is 92 % full so I want to increase it. But I dont know why I am getting this because I had already set to grow table space automatically.
    Is there any other way to increase table space other than that in Enter prise manager ?
    Message:*
    *"The database status is currently unavailable. It is possible that the database is in mount or nomount state...."*
    I tried to troubleshoot as per some forums but it doesnt work. If i use command prompt or sql plus to connect to DB it works but only enterprise manager has this issue. Also my Documentum Application connected to this DB works fine.
    listner is fine. Also I added server login account in 'log on as batch john' in local policies.
    I do not have a back up to restore also.
    Regards,
    Ranjith John

    Øyvind Isene wrote:
    Regarding the tablespace you may consider extend it yourself and not wait for the autoextend to kick in. This way you avoid future problems if for some strange reason the datafile cannot be extended. Not ignoring this error and being reminded every time the tablespace reaches some limit gives you a feeling of how fast your data grows, which is useful (if the alert comes too often you have to increase with bigger chunks). Autoextend is a feature invented for the lazy dbas out there (imho), a responsible one should not rely on it for production systems with any serious load.
    As for the connection problem from EM, I suspect the agent has a connection problem. Have you verified the username and password it is using? Can you connect to the db with the same combination?Yes, I can connect to DB with the same user name and password using command prompt or sql plus. Also my Documentum Application is connecting fine to this oracle DB.
    This is the full message.
    *"The database status is currently unavailable. It is possible that the database is in mount or nomount state. Click 'Startup' to obtain the current status and open the database. If the database cannot be opened, click 'Perform Recovery' to perform an appropriate recovery operation.":*
    Previously I used to get login page but now instead of login page I get this warning. There is also 'Startup' and 'Perform Recovery' button. Even if I use 'startup' button it does not resolve issue. It gives me the bellow message -
    SQLException
    ORA-28000: the account is locked
    Startup/Shutdown:Confirmation
    Current Status open
    Operation shutdown immediate
    Are you sure you want to perform this operation?
    I used this to unlock my oracle user yesterday
    SQL> alter user username identified by password account unlock;
    Regards,
    Ranjith john

Maybe you are looking for