Oracle Create Dblink

Source: Internet
Author: User
Tags create database
  1. View the permissions required to create Dblink

    Sqlplus/as SYSDBA

    SELECT * from User_sys_privs t where T.privilege like Upper ('%link% ');

  2. Authorization to the appropriate user

    Grant drop public database link, create DATABASE link, create the public database link to oracle_user_name;

  3. Login to create a dblink user

    Conn Oracle_user_name/password

  4. Create 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)

    )

    )‘;

    To see if the creation was successful

    SELECT * from Dba_db_links;

Oracle Create Dblink

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.