Problem:
We have granted user DUMMY with select on all tables and views of APPS schema. But the user wants to access the tables of APPS schema without using prefix.
SQL> select count(*) from fnd_user;
ORA-00942: table or view does not exist
Fix:
Create a trigger for schema to set current_schema at session level to apps and user need not use the prefix anymore.
SQL> conn apps/apps
SQL> CREATE OR REPLACE TRIGGER dummy_logon_trg
AFTER logon ON DUMMY.SCHEMA
DECLARE
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION SET CURRENT_SCHEMA =APPS';
END;
/
SQL> conn dummy/dummy
SQL> select count(*) from fnd_user;
COUNT(*)
----------
43
Blog dedicated to Oracle Database, E-Business Suite; covers Apps Architecture, Administration and Fusion Middleware
Oracle Management Cloud
Introduction to Oracle Management Cloud We have been seeing so many products of Oracle off late. A new suite from Oracle named Oracle Manage...
Subscribe to:
Post Comments (Atom)
Most Viewed Posts
-
Problem: While creating a database link, the user is getting insufficient privileges error: SQL> create database link ASCP_TO_PROD connec...
-
This post provides with 2 scripts. First to check the Usage of each ASM disk groups. Second to check the free space and percent of ASM dis...
-
Aim: How to clear cache in Oracle Apps R12 without logging into Applications. Procedure: Login to Middletier and use below commands. ...
No comments:
Post a Comment