![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have an application and those user accounts are application users, not database users, i.e. userid and password stored on the user table (e..g usr_user). Now, I would like to check with any multiple login of users (same machine or another user) and in case having, the application will warn the user and not allow further login. Currently, I think of checking with V$session. But then, may need to set the value of user id when user logins to the application. Is it possbile and any information can be shared? |
#3
| |||
| |||
|
|
I have an application and those user accounts are application users, not database users, i.e. userid and password stored on the user table (e..g usr_user). Now, I would like to check with any multiple login of users (same machine or another user) and in case having, the application will warn the user and not allow further login. Currently, I think of checking with V$session. But then, may need to set the value of user id when user logins to the application. Is it possbile and any information can be shared? |
#4
| |||
| |||
|
|
I have an application and those user accounts are application users, not database users, i.e. userid and password stored on the user table (e..g usr_user). Now, I would like to check with any multiple login of users (same machine or another user) and in case having, the application will warn the user and not allow further login. Currently, I think of checking with V$session. But then, may need to set the value of user id when user logins to the application. Is it possbile and any information can be shared? |
#5
| |||
| |||
|
|
On Sep 21, 1:50*am, Mullin Yu <mullin... (AT) gmail (DOT) com> wrote: I have an application and those user accounts are application users, not database users, i.e. userid and password stored on the user table (e..g usr_user). Now, I would like to check with any multiple login of users (same machine or another user) and in case having, the application will warn the user and not allow further login. Currently, I think of checking with V$session. But then, may need to set the value of user id when user logins to the application. Is it possbile and any information can be shared? Why do you want to do this? *For most apps I've seen, people love being able to have multiple windows on their display. *Sometimes it can be a PITA if you have special serialization requirements, I have a job barcoding time-series app like that which is very touchy about commits, but even so, there are other session variables available to limit what really needs to be limited. Normally when I hear a request like this there is either some serious misapprehension of multiuser capabilities, or people are worried about the wrong security issues. jg -- @home.com is bogus. "45 minutes 'til I go onstage at Moscone West L2 2014: Messed-Up Apps (3pm). Plz join me. " - Cary Millsap |
#6
| |||
| |||
|
|
On Tue, 21 Sep 2010 01:50:40 -0700, Mullin Yu wrote: I have an application and those user accounts are application users, not database users, i.e. userid and password stored on the user table (e..g usr_user). Now, I would like to check with any multiple login of users (same machine or another user) and in case having, the application will warn the user and not allow further login. Currently, I think of checking with V$session. But then, may need to set the value of user id when user logins to the application. Is it possbile and any information can be shared? You can use resource limits and set sessions_per_user in create/alter profile statement. |
#7
| |||
| |||
|
|
1. can't use sessions_per_user as those users are application users, not database users. that FAT client uses the same common database account to make connection to database. 2. it's for security concern to have that requirement |
|
3. expect to use "dbms_application_info" to set CLIENT_INFO with real application user id. just wonder if the FAT client quits gracefully or accidentally, will the session/record in V$Session be cleaned up at once as it's what i assume for this mechanism. if not, this approach may not be working. Don't top-post. People read from the top down. |
#8
| |||
| |||
|
|
Not if I understand "application users" correctly: there will be only one account that actually connects (application_owner) and all standard security is ignored. There will be only one user session. |
#9
| |||
| |||
|
|
On 09/21/2010 05:06 PM, Mladen Gogala wrote: On Tue, 21 Sep 2010 01:50:40 -0700, Mullin Yu wrote: I have an application and those user accounts are application users, not database users, i.e. userid and password stored on the user table (e..g usr_user). Now, I would like to check with any multiple login of users (same machine or another user) and in case having, the application will warn the user and not allow further login. Currently, I think of checking with V$session. But then, may need to set the value of user id when user logins to the application. Is it possbile and any information can be shared? You can use resource limits and set sessions_per_user in create/alter profile statement. Not if I understand "application users" correctly: there will be only one account that actually connects (application_owner) and all standard security is ignored. There will be only one user session. Your approach is valid when combined with proxy users. Still one application owner user from the middle tier... -- Regards, Frank van Bortel- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |