Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: - determine Operating system using pl/sql??
Herman de Boer wrote:
> Andre wrote: > >
> > > Hello Anneke, > > what about a simple: > > select dbms_utility.port_version from dual;
Nice idea. Shame it doesn't work in 8i or 9i or 10g.
Did you perhaps mean port_STRING??
And if you did, how do you account for this:
SQL> select dbms_utility.port_string from dual;
PORT_STRING
IBMPC/WIN_NT-8.1.0 SQL> select * from v$version;
BANNER
Now I realise that, regardless of version, the string is telling you that you're running on Windows NT (although this particular example happens to come from Windows 2000), which might be all that the original poster requires, but the wrong version number there is a bit of a worry, and makes me unconvinced that this is always going to be a reliable mechanism. Indeed, it reports "8.1.0" on 8.1.7, 9.2.0 and 10g, on both Windows and Linux.
Regards
HJR
Received on Wed Apr 28 2004 - 02:31:34 CDT