Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: - determine Operating system using pl/sql??
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