Does anyone know how to change USER in Oracle report.
Is it possible to log all USERS into Report as SAME USER, ie TEST1,TEST2,TEST3 all logs in as 'REPORTER' and this USER will have the database privileges( select,update,insert). I'll be grateful for any help
use the grant command to give permissions to all the users. If you are writting sql statements in your reports write SchemaName.ObjectName notations.
For example, if you are using emp table in scott user. meens emp table is created in scott user.
Step 1.
In your reports sql coding use the following sql statement
select * from scott.emp
Step 2.
give grant permission to all other users for the required objects(tables, views, stored procedures) in the following manner.
grant select, insert,update, delete on scott.emp to Test1;
grant select, insert,update, delete on scott.emp to Test2;
grant select, insert,update, delete on scott.emp to Test3;
Step 3.
Execute the reports by connecting with different users. No need to change the reports code.
Regards
Krishna Reddy M
VisualSoft Technologies
Hyderabad, India.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.