Solved

Display Userid in Oracle Report

Posted on 2001-09-08
3
1,209 Views
Last Modified: 2008-03-04
Hello,

How to display userid on the Oracle Report

Thanks
Huong
0
Comment
Question by:hlinhdan
3 Comments
 

Expert Comment

by:FarazMSyed
ID: 6467395
hi there ...

if u r asking about Oracle user from which u logon when u run your report then just write user in your select statement .... as follows :

in SQL of your report ....
Select empno, user from emp;
this will return ...
empno    user
-----    ----
7862     SCOTT
7863     SCOTT
7866     SCOTT

u can print this user in the header of your report as well ...

regards
Faraz
0
 
LVL 2

Accepted Solution

by:
RMZ earned 20 total points
ID: 6468069
hi
u can make formulla column
declare
 v_user varchar2(25);
begin
select user into v_user from dual;
return(v_user);
end;
0
 

Author Comment

by:hlinhdan
ID: 6470592
Thank you very much for your help

Huong
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now