标签:ddr script sel oracle sele 1.2 sqlplus base upper
sqlplus / as sysdba
select * from user_sys_privs t where t.privilege like upper(‘%link%‘);
grant drop public database link, create database link, create public database link to oracle_user_name;
conn oracle_user_name/password
create database link my_dblink_name
connect to oracle_user_naem identified by password
using ‘(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.238)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
)
)‘;
查看是否创建成功
select * from dba_db_links;
标签:ddr script sel oracle sele 1.2 sqlplus base upper
原文地址:https://www.cnblogs.com/hongyunshui666/p/9592143.html