RE: infoworld call

From: Allen, Brandon <Brandon.Allen_at_OneNeck.com>
Date: Fri, 20 Jan 2012 19:01:00 +0000
Message-ID: <A250F0C68C23514CA9F3DF63D60EE10E0ACAF6_at_onews31>



Yes, test case and doc reference below:

http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5005.htm:

"To create a private database link, you must have the CREATE DATABASE LINK system privilege. To create a public database link, you must have the CREATE PUBLIC DATABASE LINK system privilege. Also, you must have the CREATE SESSION system privilege on the remote Oracle database."

##### TEST03 DATABASE ######
SYS_at_test03>create user db_link_test identified by temporary112233;

User created.

SYS_at_test03>grant create session to db_link_test;

Grant succeeded.

##### DEMO DATABASE ######
SYS_at_demo>create user db_link_test identified by temporary112233;

User created.

SYS_at_demo>grant create session to db_link_test;

Grant succeeded.

SYS_at_demo>conn db_link_test
Enter password:
Connected.

DB_LINK_TEST_at_demo>create database link db_link_test connect to db_link_test identified by temporary112233 using 'test03'; create database link db_link_test connect to db_link_test identified by temporary112233 using 'test03'

                     *

ERROR at line 1:
ORA-01031: insufficient privileges

DB_LINK_TEST_at_demo>conn / as sysdba
Connected.

SYS_at_demo>grant create database link to db_link_test;

Grant succeeded.

_at_>conn db_link_test/temporary112233
Connected.

DB_LINK_TEST_at_demo>conn / as sysdba
Connected.

SYS_at_demo>select dbms_flashback.get_system_change_number from dual;

GET_SYSTEM_CHANGE_NUMBER


               869661524

SYS_at_demo>conn db_link_test/temporary112233 Connected.

DB_LINK_TEST_at_demo>create database link db_link_test connect to db_link_test identified by temporary112233 using 'test03';

Database link created.

##### TEST03 DATABASE ######
SYS_at_test03>select dbms_flashback.get_system_change_number from dual;

GET_SYSTEM_CHANGE_NUMBER


               721203624

##### DEMO DATABASE ######
DB_LINK_TEST_at_demo>select count(*) from user_tables_at_db_link_test;

  COUNT(*)


         0

##### TEST03 DATABASE ######
SYS_at_test03>/

GET_SYSTEM_CHANGE_NUMBER


               869661584

-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Taylor, Chris David

Right. Any user that has create session privilege can have a db link created to it, right?


Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Jan 20 2012 - 13:01:00 CST

Original text of this message