How to find User (who is connected to AS) in 3-Tier Architecture [message #225727] |
Wed, 21 March 2007 02:46 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
anil_mk
Messages: 146 Registered: August 2006 Location: Bangalore, India
|
Senior Member |
![anil_murlidhar%40yahoo.com](/forum/theme/orafaq/images/yahoo.png)
|
|
Hi all,
Consider i am going to use my application(3-Tier), when i connect to my application it will firct connect to Application Server and where i want to know the which user has connected to Server. In 2-Tier client/server we have used the
1-->Tool_Env.Getvar('HOMEDRIVE', home_drive);-->which is C:
2-->Tool_Env.Getvar('HOMEPATH', home_path);-->Which is \Documents and settings\anil_mk as considering my system.
But i used the same in 3-Tier which is no working & displaying nothing, means how to find the User who connects to application.
Here i want the user like which i mentioned above( C:\\Documents and settings\anil_mk)
And another way is to use
Tool_Env.Getvar('TEMP', varchar_var);
Here in my system for 2-Tier Architecture displayed
C:\DOCUME~1\anil_mk\LOCALS~1\Temp
But same for 3-Tier Architecture not displayed anything.
Please Suggest me, are there any other methods to be implemented in 3-Tier Architecture.
Regards
Anil Mk
[Updated on: Wed, 21 March 2007 03:00] Report message to a moderator
|
|
|
|
|
|
Re: How to find User (who is connected to AS) in 3-Tier Architecture [message #226002 is a reply to message #225909] |
Thu, 22 March 2007 04:26 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
anil_mk
Messages: 146 Registered: August 2006 Location: Bangalore, India
|
Senior Member |
![anil_murlidhar%40yahoo.com](/forum/theme/orafaq/images/yahoo.png)
|
|
Hi David,
[In 3-Tier]
As per your suggestion i tried to get the username who has connected to the application by using 'sys_context' (i.e.in my application form [ select sys_context('USERENV','OS_USER') into variable from dual; ] And displayed that variable which SYSTEM and i used [ select sys_context('USERENV','IP_ADDRESS') into variable from dual; ] which displayed the IP Address of Application Server.
[2-Tier]
And same thing i tried in local system,here i got the OS_USER as anil_mk which is correct and IP_ADDRESS which is also correct.
Please can you tell me exactly which function should we use to get the client system name e.g. which we got in 2-Tier as anil_mk Means if i connect to the application, the application should find the system name of the user who is connected.
Regards
AnilMK
[Updated on: Thu, 22 March 2007 04:29] Report message to a moderator
|
|
|
|
|
|
|