DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: OS name

  1. #11
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    You can't see the OS name and version from Database (SVRMGRL or SQLPLUS).
    Should consult your DBA or use OS commands.

    Sanjay

  2. #12
    Join Date
    Apr 2000
    Location
    Russia
    Posts
    11
    If you want see OS name from svrmgrl then
    SVRMGR>host hostname
    Tatyana

  3. #13
    Join Date
    Jun 2000
    Posts
    417
    When you say OS name, what do you want returned?

    The hostname of the machine (eg, machine1)? Or the Operating system name and version (eg SunOS 5.6).

    If it's the former you can get it out of v$instance.

    If it's the latter you will probably need to use a host command. 'uname -a' will give that and some other information, 'uname -sr' will give just the OS and Version.

  4. #14
    Join Date
    Dec 2000
    Posts
    32
    Hi Pwoneill,

    I need to get the operating system name. Like "windows 4.0"
    Could you explain how to use the host command ? That would be very helpful.

    Thanks.

    ---RS

  5. #15
    Join Date
    Jun 2000
    Posts
    417
    Well, are you on windows? If so then I can't think of a DOS command off the top of my head that will give you that information, maybe I'll remember one or someone else knows.

    I know you can install unix packages for WinNT and Windows that include normal unix command, maybe uname is included.

    If you're on a unix machine you can use what I told you before, "uname -sr" is the command to execute to show you just the operating system and version.

  6. #16
    Join Date
    Jun 2000
    Posts
    417
    Also, where do you need this information?

    Are you in a SQL or PL/SQL script and it needs to print out the version? Or is it some other application that is pulling data from the database that needs to know the OS it's running on? Or does it need to know the OS the Database is running on?

    Or are you just sitting at a machine and need to know what OS and version it is?

  7. #17
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    select * from v$version

    BANNER
    ----------------------------------------------------------------
    Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    PL/SQL Release 8.1.6.0.0 - Production
    CORE 8.1.6.0.0 Production
    TNS for 32-bit Windows: Version 8.1.6.0.0 - Production
    NLSRTL Version 3.4.1.0.0 - Production





    BANNER
    ----------------------------------------------------------------
    Oracle8i Enterprise Edition Release 8.1.6.0.0, 64 bit - Production
    PL/SQL Release 8.1.6.0.0 - Production
    CORE 8.1.6.0.0 Production
    TNS for HPUX: Version 8.1.6.0.0 - Production
    NLSRTL Version 3.4.0.0.0 - Production



    First is from WinNT 4.0
    Second from HP-UX 64 Bits

    And I deduced it from TNS entry in v$version

    Regards

  8. #18
    Join Date
    Nov 2000
    Posts
    71
    If you are using Oracle 8 or above you can query the V$INSTANCE system view which also contain information about the oracle serve name in the HOST_NAME file.
    I hope this is what can hel you.
    Bye.

  9. #19
    Join Date
    Dec 2000
    Posts
    43

    Wink

    Select hostname from v$instance will give you the machine name and not the OS version. Also in V$VERSION you cannot see the OS version anywhere, it has only the versions for the Oracle products installed. You will have to get it from an operating system command like

    for UNIX: $uname -sr.
    for Windows: c:\>ver

    [Edited by arshiah on 12-19-2000 at 01:03 PM]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width