The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Tanul.
Asked: October 18, 2016 - 7:31 pm UTC
Last updated: October 19, 2016 - 2:26 am UTC
Version: 11g
Viewed 1000+ times
-- -- database 1 -- SQL> create user B identified by B; User created. SQL> grant create session to B; Grant succeeded. SQL> create user C identified by C; User created. SQL> alter user C quota 100m on users; User altered. SQL> create table c.demo as select * from all_objects; Table created. SQL> grant select on c.demo to b; Grant succeeded. -- -- database 2 -- SQL> create user A identified by A; User created. SQL> grant create session, create database link to a; Grant succeeded. SQL> connect A/A Connected. SQL> create database link remote connect to B identified by B using 'db1'; Database link created. SQL> select count(*) from c.demo@remote; COUNT(*) ---------- 96893 1 row selected. SQL>
Share and learn SQL and PL/SQL; free access to the latest version of Oracle Database!
Classes, workouts and quizzes on Oracle Database technologies. Expertise through exercise!