Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting a global user

Status
Not open for further replies.

Kido

Programmer
Dec 10, 2001
29
0
0
KE
In 6i, am able to select the global user as:

select <field> into <variable> from <table>
where <field>= upper:)global.sysuser);

but when i try the same in 9i i get the message 'no data'.

Anyone with a solution?
 
Kido,

Sorry for my density on this, but what is "6i"? Also, in my 17 years using Oracle, I don't recall encountering anything called ":global.sysuser". Could you please elaborate?

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)

Do you use Oracle and live or work in Utah, USA?
Then click here to join Utah Oracle Users Group on Tek-Tips.
 
Sorry I meant Oracle developer 6i and am trying to get the application user as in the user who is currently logged on to the application
 
The solution is simply getting the application property for the user!!!

<Variable>:= Get_Application_Property(USERNAME);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top