Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to get client machine name from database ?

9189Sep 4 2008 — edited Oct 7 2008
Hiya

As part of the user authentication in our application, the requirement is that if a user has logged in from one machine, the same user cannnot login from different machine at the same time.

In Forms6i, we had accomplished this using the following query:

Select Terminal
From v$session
Where username = v_username
And terminal <> v_terminal;

Where
v_username = USER -> Oracle Forms Reserve Word
v_terminal = Client_Win_API_Environment.Get_Windows_Username

In Forms 6i, the Terminal column of V$Session used to return the name of the local client machine.

However, in Forms 10g, it returns the machine name on which Oracle Application Server is installed, which I believe is correct.

So my question is how do we get the client machine name from database in the context of Oracle Forms 10g ? Is there another view/table or database package that returns the client machine name ?

Your suggestions/comments will be much appreciated.

Cheers

Mayur
This post has been answered by Andreas Leidner on Sep 4 2008
Jump to Answer

Comments

anishjp

Anybody?

Answer

No...if you need more than that, might be time to look at something like APEX. Or build a rest api to pull the data and use your favorite js library to chart the data.
We're building this feature into SQL Developer Web - stay tuned.

Marked as Answer by anishjp · Apr 23 2021
anishjp

Okay, thank you. I will look at APEX then.

Regards,
Anish

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 4 2008
Added on Sep 4 2008
13 comments
9,050 views