Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: The OS name of the server from PLSQL ?
On Thu, 22 Oct 1998 11:48:02 +0200, Yves DEBIZET <yves.debizet_at_mc2.fr> wrote:
>How to retrieve the OS name of the server from PLSQL ?
>
>That would be useful in order to switch from WIN to UNIX pathnames
>replacing '\' with '/' and vice-versa.
I belive you could use a function PORT_STRING from a package SYS.DBMS_UTILITY. The comment in a dbmsutil.sql says that this function "return a string that uniquely identifies the version of Oracle and the port (operating system). EG "VAX/VMX-7.1.0.0"
Although I wouldn't bet the output of this function is 100% accurate regarding the RDBMS release and the OS (see below what it reports for my Personal Oracle *7.3.2* on *Win95* :-(( !!!), I belive it will distinguish betwen the WIN and UNIX reliably enough.
PORT_STRING
PORT_STRING
Jurij Modic <jmodic_at_src.si>
Certified Oracle7 DBA (OCP)