Results 1 to 3 of 3

Thread: Instance of Database

  1. #1
    Contributing Member
    Join Date
    Apr 2007
    Answers
    41

    Instance of Database

    Hello,

    I Have sevral databases running.
    But before i start any new database need to know the instance of database running presently?
    Can anyone let me know the command for that?


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Instance of Database

    Use TSNPING to check for the status of all the database instances.


  3. #3
    Junior Member
    Join Date
    Dec 2006
    Answers
    2

    Re: Instance of Database

    Select 'Hostname : ' || host_name
    ,'Instance Name : ' || instance_name
    ,'Started At : ' || to_char(startup_time,'DD-MON-YYYY HH24:MI:SS') stime
    ,'Uptime : ' || floor(sysdate - startup_time) || ' days(s) ' ||
    trunc( 24*((sysdate-startup_time) -
    trunc(sysdate-startup_time))) || ' hour(s) ' ||
    mod(trunc(1440*((sysdate-startup_time) -
    trunc(sysdate-startup_time))), 60) ||' minute(s) ' ||
    mod(trunc(86400*((sysdate-startup_time) -
    trunc(sysdate-startup_time))), 60) ||' seconds' uptime
    from sys.v_$instance;


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact