![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Anybody can help me? |
#3
| |||
| |||
|
|
On Wed, 11 Feb 2004 13:06:36 +0100, "Kiko" <kiko (AT) terra (DOT) es> wrote: Anybody can help me? Check out the sys_context function in the SQL reference manual. -- Sybrand Bakker, Senior Oracle DBA |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Only valid for Oracle 9.2 and latter versions? My D.B. server has Oracle 8.0.6 versión. I try to run: SELECT sys_context('USERENV', 'USERNAME') FROM dual; with error. ---- ¿Esta función solo es válida para la versión 9.2 de Oracle, y posteriores? Mi servidor Oracle tiene la 8.0.6. Intenté ejecutar : SELECT sys_context('USERENV', 'USERNAME') FROM dual; dándome error. first try it with: |
#6
| |||
| |||
|
|
first try it with: SELECT SYS_CONTEXT ('USERENV', 'CURRENT_USER') from dual; I don't think 'USERNAME' is a valid option. If that doesn't work, then check out: http://download-west.oracle.com/docs.../doc/index.htm and look for userenv There aren't too many options for that one though. |
#7
| |||
| |||
|
|
Bricklen wrote: first try it with: SELECT SYS_CONTEXT ('USERENV', 'CURRENT_USER') from dual; I don't think 'USERNAME' is a valid option. If that doesn't work, then check out: http://download-west.oracle.com/docs.../doc/index.htm and look for userenv There aren't too many options for that one though. Alternatively, try it with OS_USER if that's what you're looking for: SELECT SYS_CONTEXT ('USERENV', 'OS_USER') from dual; |
#8
| |||
| |||
|
|
It doesn't work. userenv doesn't work? Bit more specific please. |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
SQLWKS> SELECT SYS_CONTEXT ('USERENV', 'CURRENT_USER') from dual; SELECT SYS_CONTEXT ('USERENV', 'CURRENT_USER') from dual * ORA-00904: nombre de columna no válido - I translate : (Column name not valid) SQLWKS SQLWKS> SELECT SYS_CONTEXT ('USERENV', 'OS_USER') from dual; SELECT SYS_CONTEXT ('USERENV', 'OS_USER') from dual * ORA-00904: nombre de columna no válido read the rest of my post (and Niall's) about USERENV, and follow the |
![]() |
| Thread Tools | |
| Display Modes | |
| |