Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: - determine Operating system using pl/sql??

Re: - determine Operating system using pl/sql??

From: koert54 <nospam_at_spam.com>
Date: Tue, 27 Apr 2004 14:55:13 GMT
Message-ID: <lvujc.14179260$Of.2367949@news.easynews.com>


You could use a java stored procedure that does : Properties p = System.getProperties() ;
p.getProperty("os.name") ; -> gets you the OS name (example 'Windows 2000', 'AIX', ...)

p.getProperty("os.version") ; -> gives the OS version (example '5.1', '5.2',
...)
p.getProperty("os.arch")   ; -> gives you the architecure (example 'x86',
'ppc' for powerpc)

"Andre" <avanrossem_at_hotmail.com> wrote in message news:4d32d1be.0404262122.6ae83050_at_posting.google.com...
> Hello all,
>
> I've written a pl/sql package. Within this package I want to know if
> the Operating system on which the Database is running is UNIX or
> Windows-based.
>
> Is there a way to do this?
>
> regards,
> Anneke
> The Netherlands
Received on Tue Apr 27 2004 - 09:55:13 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US