Results 1 to 4 of 4

Thread: Creating Database link in database

  1. #1
    Join Date
    Jan 2010
    Posts
    49

    Creating Database link in database

    I am using oracle 9i enterprise edition and it would a new practice for me.I, actually wanted to know the basic concepts of database link and what are the privileges should I have to create this link.What is database link? What is the difference between a public and a private database link?

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Database link in database

    Database Link:

    Database link is a pointer that is used to access the data from remote database while you are working on local database.You have some proper privileges to create this link.

    To know the current privilege regarding database link,you have to query on the ROLE_SYS_PRIVS view :

    SELECT DISTINCT PRIVILEGE AS "Database Link Privileges"
    FROM ROLE_SYS_PRIVS
    WHERE PRIVILEGE IN ( 'CREATE SESSION','CREATE DATABASE LINK',
    'CREATE PUBLIC DATABASE LINK');


    Or you can execute the privs.sql script to know about link privileges type :

    SQL> @privs

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Creating private database link

    When you create a database link, you have to decide which user will permission to access it.

    I am going to create a private database link which will point to remote database. I am a normal user and have such privilege to create the private database link.

    The syntax would be as follows :

    CREATE DATABASE LINK <Link name>
    CONNECT TO <current user> USING <Remote database>;

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Creating public database link

    Creating public database link:

    The creation of public database link,you have "CREATE PUBLIC DATABASE LINK" privilege and use the PUBLIIC keyword.

    The syntax to create the public database link:

    CREATE PUBLIC DATABASE LINK <Public_Link_name>
    CONNECT TO <Current user> USING <'Name of remote database'>;

Similar Threads

  1. How to link access database with VB 6.0 in VB projects.
    By Meena89 in forum Software Development
    Replies: 3
    Last Post: 17-11-2010, 01:49 AM
  2. Creating savepoint in database
    By afidelino in forum Software Development
    Replies: 4
    Last Post: 13-03-2010, 10:14 PM
  3. Creating view in oracle database
    By Aileen_L in forum Software Development
    Replies: 5
    Last Post: 11-02-2010, 04:27 PM
  4. Creating partition of database tables
    By LaMarcus in forum Software Development
    Replies: 4
    Last Post: 30-01-2010, 11:48 AM
  5. Creating xml File from database table in VB.Net
    By Jateen in forum Software Development
    Replies: 2
    Last Post: 29-12-2008, 06:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,896,408.44232 seconds with 17 queries