In ASM Instance:
SQL> create tablespace APPSREADONLY
2 datafile '+DATA/xyz/datafile/' size 500M;
Tablespace created.
Non-ASM Instance:
SQL> create tablespace APPSREADONLY
2 datafile '/xyz/datafile/APPSREADONLY01.dbf' size 500M;
Tablespace created.
SQL> create user APPSREADONLY identified by APPSREADONLY
2 DEFAULT TABLESPACE APPSREADONLY
3 TEMPORARY TABLESPACE temp
4 QUOTA UNLIMITED ON APPSREADONLY;
User created.
SQL> grant connect to APPSREADONLY;
Grant succeeded.
sql> spool appsreadonly.log
select 'grant select on '|| 'APPS.'||object_name ||' to '||'APPSREADONLY; 'from dba_objects where owner='APPS';
sql> spool off;
Now run this appsreadonly.log
sql> @appsreadonly.log
sql> conn APPSREADONLY/APPSREADONLY
sql> select * from APPS.fnd_languages;
it will display the contents from fnd_languages tables.
No comments:
Post a Comment