question

Cee avatar image
Cee asked

Can I find out host OS details by querying a system table?

Can I find out host OS details by querying a system table?

table
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

user-74 avatar image
user-74 answered

You were not very clear what os details you are interested in.

The OS can be determined with one of the following queries: 1)

select dbms_utility.port_string from dual

2)

select rtrim(substr(replace(banner,'TNS for ',''),
       1,
       instr(replace(banner,'TNS for',''),':')-1)) os
  from v$version
 where banner like 'TNS for %'

The os statistics can be determined by querying the view V$osstat

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dmann avatar image
dmann answered

Basic platform information is in v$database:

select platform_id, platform_name from v$database;
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.