Dear MO22,
The following SQL Expressions all return information use sys_context or UserENV.
This one returns the database name:
(sys_context ( 'USERENV', 'DB_NAME', 30 ))
This returns the Host Name:
(sys_context ( 'USERENV', 'HOST', 54 ))
This returns the machine name the session was initiated from:
(USERenv('TERMINAL'))
Introduced in Oracle 8i it is supported in later versions, however there may be syntax changes.
There is much more information that can be gleaned like IP address and such.
Look at this link for some examples in Oracle 9:
regards,
ro
Rosemary Lieberman
rosemary-at-microflo.com,
Microflo provides expert consulting on MagicTSD and Crystal Reports.
You will get answers more quickly if you read this before posting: faq149-3762