Solved

Display Userid in Oracle Report

Posted on 2001-09-08
3
1,213 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
Cannot open form error 6 66
Oracle Database Upgrade 13 62
Oracle TEXT search question 9 48
sort a spool into file output in oracle 1 22
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 …
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

863 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

26 Experts available now in Live!

Get 1:1 Help Now