Solved

Display Userid in Oracle Report

Posted on 2001-09-08
3
1,215 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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to recover a database from a user managed backup

810 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