Solved

Display Userid in Oracle Report

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

Title # Comments Views Activity
Database Design Dilemma 6 58
Read XML values 8 42
minium over 4 numeric columns for each row in oracle 2 29
why truncate is faster than delete in oracle ? 4 28
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

830 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