1. Change sqlnet.ora file from SQLNET.AUTHENTICATION_SERVICES= (NTS) to SQLNET.AUTHENTICATION_SERVICES= (NONE)
2. Create public database link with command:
CREATE PUBLIC DATABASE LINK DBLINK1
CONNECT TO REMOTE_USER_NAME IDENTIFIED BY password
USING '(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.2 )(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
)
)';
COMMIT;
3. Test link with command:
select * from table_name@DBLINK1;
4. Drop link with command:
DROP DATABASE LINK DBLINK1;
COMMIT;
No comments:
Post a Comment