Administrator
|
There is no need to create synonyms.. You can just use the schema name to access the objects stored in Apps.
The following query is a dynamic sql to create the statements for granting select privilege to APPSREAD user. But it does that for all the objects which are table, view or Synonym and which are not owned by SYSTEM or SYS..
grant select on ‘|| OWNER ||’.’ ||OBJECT_NAME || ‘ to APPSREAD;’ from all_objects where OWNER not in (‘SYS’,’SYSTEM’) and OBJECT_NAME not like ‘%/%’ and OBJECT_TYPE in (‘TABLE’,’VIEW’,’SYNONYM’);
However, I suggested you something different.
You asked to have a read only APPS user.
I said, check the objects which APPS user has rights for select, and grant select privilege for those objects to APPSREAD user..
You can accomplish this by doing some simple modifications in the query above.
Note that, also you can use the query as is.. But this time you will have some extra select privileges for APSREAD user.. If it is okay for you , then you can go ahead with the actions written in that post.
|