首页 > 数据库技术 > 详细

Oracle创建dblink

时间:2018-09-05 16:45:37      阅读:134      评论:0      收藏:0      [点我收藏+]
  1. 查看创建dblink所需权限

    sqlplus / as sysdba

    select * from user_sys_privs t where t.privilege like upper(‘%link%‘);

  2. 给相应的用户授权

    grant drop public database link, create database link, create public database link to oracle_user_name;

  3. 登陆要创建dblink的用户

    conn oracle_user_name/password

  4. 创建dblink

    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;

Oracle创建dblink

原文:https://www.cnblogs.com/hongyunshui666/p/9592143.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!