DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: connecting to another DB as an alias

  1. #1
    Join Date
    Mar 2005
    Posts
    143

    connecting to another DB as an alias

    While connected to one db I want to compare the data in a table to the data in a table in another Db. How can I connect to another db as an alias. Both db's are 9i.

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    with a database link

  3. #3
    Join Date
    Mar 2005
    Posts
    143
    Thanks I think I got it. For those interested in Db links but don't know how to create it (like I me) this sytax worked for me.
    create database link dbname conect to schema name identified by pwd using 'link name';

  4. #4
    Join Date
    Feb 2006
    Posts
    37
    query this table
    select * from dba_db_links


    make certain the db_links is set properly.

  5. #5
    Join Date
    Mar 2005
    Posts
    143
    here is a problem I am having. I have succsessfully created a few db links. I went to create another one using the same syntax and I get the following error ORA-02082 a loopback database link must have a connection qualifier. I can connect to the db using the schema name and pwd I am using in my create db statement. Here is the statement
    create databse link PROD connect to sysdba identified by pwd using 'PROD';

  6. #6
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    well sysdba isnt a user and what is the tns entry for PROD

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width