I want to create a new oracle user with ReadOnly access to my 'UserB' oracle account schema/data.
CREATE USER userRO IDENTIFIED BY userRO
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
GRANT CONNECT,
CREATE SESSION,
SELECT ANY TABLE to userRO;
--My question is when I log in as userRO and try to read data from UserB, I get an error. How do I do it.?
SQL> select count(*) from userB_table;
select count(*) from userB_table
*
ERROR at line 1:
ORA-00942: table or view does not exist
If I log in as UserB:
SQL> select count(*) from userB_table;
COUNT(*)
----------
0
thanks.
CREATE USER userRO IDENTIFIED BY userRO
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
GRANT CONNECT,
CREATE SESSION,
SELECT ANY TABLE to userRO;
--My question is when I log in as userRO and try to read data from UserB, I get an error. How do I do it.?
SQL> select count(*) from userB_table;
select count(*) from userB_table
*
ERROR at line 1:
ORA-00942: table or view does not exist
If I log in as UserB:
SQL> select count(*) from userB_table;
COUNT(*)
----------
0
thanks.