How To Find Out the OS that the user is Logged into [message #672902] |
Wed, 31 October 2018 14:07 |
wtolentino
Messages: 421 Registered: March 2005
|
Senior Member |
|
|
how can I find out what is the OS that a user is logged into. I tried the v$session and SYS_CONTEXT function but could not find the info that I am looking for. for example a user is on windows 10 and runs some SQL on SQL*Developer or login to the unix and runs some script in there thru SQLplus. i need to be able to see if the user is in the Windows 10 or unix or any OS.
thanks,
warren
|
|
|
|
|
|
|
Re: How To Find Out the OS that the user is Logged into [message #672941 is a reply to message #672917] |
Thu, 01 November 2018 07:25 |
wtolentino
Messages: 421 Registered: March 2005
|
Senior Member |
|
|
BlackSwan wrote on Wed, 31 October 2018 22:27
What about a 3-tier application like below? What OS should be reported when access is via smart phone?
In a 3-tier application, the database server is far removed from the end user clicking the button.
EndUser<=>browser<=>webserver<=>ApplicationServer<=>DatabaseServer
we also thought about that if there is a middle tier and others. but for now we need to know how to get the OS where the user had log into and from there it will be a big help for us to trace back.
|
|
|
Re: How To Find Out the OS that the user is Logged into [message #672942 is a reply to message #672932] |
Thu, 01 November 2018 07:30 |
wtolentino
Messages: 421 Registered: March 2005
|
Senior Member |
|
|
EdStevens wrote on Thu, 01 November 2018 07:37It's still not clear exactly what you are looking for (or why). Suppose I'm on my windows workstation and ssh to a linux db server. From that ssh session, I start sqlplus and issue queries to the database. Which OS do you consider the client to be on, which OS do you want to report. And what process, where, wants to interrogate and get this information?
good point and we also thought about that. as long as we can get the OS it will be a big help for us to trace back where the user logs into, one step at a time.
|
|
|
|
Re: How To Find Out the OS that the user is Logged into [message #673013 is a reply to message #672942] |
Thu, 01 November 2018 16:59 |
|
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
wtolentino wrote on Thu, 01 November 2018 07:30EdStevens wrote on Thu, 01 November 2018 07:37It's still not clear exactly what you are looking for (or why). Suppose I'm on my windows workstation and ssh to a linux db server. From that ssh session, I start sqlplus and issue queries to the database. Which OS do you consider the client to be on, which OS do you want to report. And what process, where, wants to interrogate and get this information?
good point and we also thought about that. as long as we can get the OS it will be a big help for us to trace back where the user logs into, one step at a time.
Yeah, so WHICH OS? THat's what I tried to ask before but your answer is not as explicit as my question and ignored part of my questions.. like what process do you envision collecting this information and how do you envision it being reported? Perhaps you should step back and tell us what you are really trying to get and quite worrying (for now) about the technique. Suppose that, somehow, you come up with 'connection x is from a client on Windows 7'. Now what do you do with that? Answering these types of question may very well reveal that you are trying to solve the wrong problem.
|
|
|
Re: How To Find Out the OS that the user is Logged into [message #673028 is a reply to message #673013] |
Fri, 02 November 2018 09:15 |
wtolentino
Messages: 421 Registered: March 2005
|
Senior Member |
|
|
EdStevens wrote on Thu, 01 November 2018 17:59
Yeah, so WHICH OS? THat's what I tried to ask before but your answer is not as explicit as my question and ignored part of my questions.. like what process do you envision collecting this information and how do you envision it being reported? Perhaps you should step back and tell us what you are really trying to get and quite worrying (for now) about the technique. Suppose that, somehow, you come up with 'connection x is from a client on Windows 7'. Now what do you do with that? Answering these types of question may very well reveal that you are trying to solve the wrong problem.
hopefully this examples helps explains what we need to accomplish.
supposed that a user KSPADE connects to the database using SQL*Developer to run some SQL statement from windows 10. In this example the OS windows 10 is what we needed.
second example is supposed user MKORRS is on unix and connects to the database by running some cronjobs. in this second example the unix is what we needed.
another example is supposed the user JLACOSTE is on windows 8 then runs some web application connects to oracle database that is housed on a middleware/application server. in this example the windows 8 is what we needed.
thanks.
[Updated on: Fri, 02 November 2018 09:16] Report message to a moderator
|
|
|
|
Re: How To Find Out the OS that the user is Logged into [message #673047 is a reply to message #673028] |
Sat, 03 November 2018 08:19 |
|
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
OK that clarifies a bit, though as cookiemonster said, oracle can only know about the client process that is connected to it.
client on Windows workstation ---> browswer connection to web app --> oracle db
Oracle db has no way of knowing what is behind the web app that is connecting to the db.
Then there is the bigger question I posed and you ignored.
Perhaps you should step back and tell us what you are really trying to get and quite worrying (for now) about the technique. Suppose that, somehow, you come up with 'connection x is from a client on Windows 7'. Now what do you do with that? Answering these types of question may very well reveal that you are trying to solve the wrong problem.
We see this all the time. Someone is driving down a road passing signs that say 'dead end'. Driver stops at a mechanic's shop, not to ask directions, but for help making his car go faster so he can go to Aintry. Driver ignores advice from mechanic that the road is a dead end and insists of focusing on the fact that his car doesn't go fast enough
|
|
|