Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: find out os from pl/sql
Mark D Powell wrote:
> On Oct 18, 11:22 am, DA Morgan <damor..._at_psoug.org> wrote:
> > Radoulov, Dimitre wrote:
> > > "Loial" <a..._at_loial.co.uk> wrote in message
> > >news:1161173211.505459.159290_at_e3g2000cwe.googlegroups.com...
> > >> Is there any table I can query to find out the operating
> > >> system(Linux/AIX etc) from pl/sql?
> >
> > > Check dbms_utility.port_string.
> >
> > > On RH:
> >
> > > SQL> select dbms_utility.port_string from dual;
> >
> > > PORT_STRING
> > > --------------------------------------------------------------------------------
> > > Linuxi386/Linux-2.0.34-8.1.0
> >
> > > On Solaris:
> >
> > > SQL> select dbms_utility.port_string from dual;
> >
> > > PORT_STRING
> > > --------------------------------------------------------------------------------
> > > SVR4-be-64bit-8.1.0
> >
> > > Regards
> > > DimitreAlso:
> > SELECT * FROM gv$version;
> > --
> > Daniel A. Morgan
> > University of Washington
> > damor..._at_x.washington.edu
> > (replace x with u to respond)
> > Puget Sound Oracle Users Groupwww.psoug.org- Hide quoted text -- Show quoted text -
>
>
>
>
>
SQL> connect / as sysdba
Connected.
SQL> select dbms_utility.port_string from dual;
HP9000/800-64.0.8.1.0
SQL> SELECT * FROM gv$version;
1 Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
1 PL/SQL Release 9.2.0.6.0 - Production 1 CORE 9.2.0.6.0 Production 1 TNS for HPUX: Version 9.2.0.6.0 - Production 1 NLSRTL Version 9.2.0.6.0 - Production
SQL> !uname -svr
HP-UX B.11.11 U
The above was cut and pasted.
I guess it depends on what you want to know about the operating system.
SQL> / INST_ID BANNER
1 Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
1 PL/SQL Release 10.2.0.1.0 - Beta
1 CORE 10.2.0.1.0 Beta
1 TNS for 32-bit Windows: Version 10.2.0.1.0 - Beta
1 NLSRTL Version 10.2.0.1.0 - Beta
SQL> edit
Wrote file afiedt.buf
1* select * from gv$version
SQL>
SQL> /
INST_ID BANNER
1 Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
1 PL/SQL Release 10.2.0.1.0 - Beta
1 CORE 10.2.0.1.0 Beta
1 TNS for 32-bit Windows: Version 10.2.0.1.0 - Beta
1 NLSRTL Version 10.2.0.1.0 - Beta
SQL> edit
Wrote file afiedt.buf
1* select dbms_utility.port_string from dual SQL> / PORT_STRING
[said Microsoft Windows 2000, but not in spool file]
jg
-- @home.com is bogus. Yay scientists! http://www.signonsandiego.com/uniontrib/20061018/news_1n18video.htmlReceived on Wed Oct 18 2006 - 18:48:46 CDT
![]() |
![]() |