DB link creation

Dear
please explain me the process of database link creation and making entry into tnsnames.ora.
I have two databases PCDB and IASDB on same server KSPCB.ORG, I want to access the IASDB database from PCDB database.what is the entry that i should make into the tnsnames.ora file before creating the db link.
I 'll be very thankfull to you if you can write down the process.
thanks

hi
the following script will create a dblink in first database whose name is local and it will be able to connect a database seconddb. you should be able to connect to second db on the first place. Donot forget to set initialization parameter global_names=false before using the dblink.
create database link LOCAL.WORLD
connect to SCOTT
using 'secondDB';
you will extract data from second db like this.
select * from scott.emp@secondDB;

Similar Messages

  • Problem in DB Link creation of Oracle Wraehouse Builder 3i - Updated question

    I am facing a problem in DB Link creation.
    Backend: Oracle 8i Server on my machine
    DW Software: Oracle warehouse builder 3i ( client , repository
    asistant.....)
    Operating system: Windows NT 4 SERVICE PACK 6
    I wants to use the scott database( default database given by oracle )
    as my input source.
    How can I create the DB LINK ( for scott database) ?
    How can I create the DB LINK ( for any other database) ?
    Should I need to add anything in Setting of"ODBC DATASOURCE
    ADMINISTRATION"
    ==================
    Settings done:
    ==================
    DB Link Name :prashant
    Host name
    Host name: my machine's ip address
    port number: 1521
    oracle sid: prashant ( my oracle sid)
    user name:scott
    password:tiger
    ==================
    Gives error:
    ==================
    Testing...
    Failed.
    Cwm Error Message: Failed in the WBAPIFactory.createDBLink()
    Cwm Error: SQL Exception
    Class Name: oracle.wh.ui.integrator.common.RepositoryUtils
    Method Name: createDBLink(String, String, String, String)
    Method Name: -1
    Repository Error Message: java.sql.SQLException: ORA-02082: a loopback database link must have a connection qualifier
    ==================
    ==================
    How should I proceed further.
    I am expecting URGENT FEEDBACK.
    Reply me on : [email protected] or this OTN Network
    From
    Prashant

    I solved the problem.
    Procedure I followed :
    UNINSTALL ORACLE WRAEHOUSE BUILDER SOFTAWARE.
    'GLOBAL_NAMES = FALSE' in init.ora file.
    RESTARTED MY MACHINE.
    INSTALL THE ORACLE WRAEHOUSE BUILDER SOFTAWARE.

  • Problem in DB Link creation ( Oracle warehouse builder 3i  )

    I am facing a problem in DB Link creation.
    Backend: Oracle 8i Server on my machine
    DW Software: Oracle warehouse builder 3i ( client , repository asistant.....)
    Operating system: Windows NT 4 SERVICE PACK 6
    I wants to use the scott database( default database given by oracle ) as my input source.
    How can I create the DB LINK ( for scott database) ?
    How can I create the DB LINK ( for any other database) ?
    Should I need to add anything in Setting of"ODBC DATASOURCE ADMINISTRATION"
    ==================
    Settings done:
    ==================
    DB Link Name :scott
    Host name
    Host name: my machine's ip address
    port number: 1521
    oracle sid: prashant ( my oracle sid)
    user name:scott
    password:tiger
    ==================
    Gives error:
    ==================
    Testing...
    Failed.
    ORA-02085 Database link %s connects to %s
    *Cause:   a database link connected to a database with a different name.
    The connection is rejected.
    *Action:   create a database link with the same name as the database it
    connects to, or set global_names=false.
    Please change it to false by doing :
    first option:
    Log in the database with DBA privilege and use the command:
    alter system set GLOBAL_NAMES = false
    second option:
    Change the GLOBAL_NAMES to false in database system parameter file, init.ora
    ==================
    Options tried:
    ==================
    1. I tried to change GLOBAL_NAMES = false but still not able to create the DB LINK.
    2. As per suggestion of one the friend
    "A file named "Logon.Properties" under the directory $OWB_HOME/wbapp
    in this file please set the property
    OWBSingleUserLockUsage = false"
    I tried the same but it is still not working.
    How should I proceed further.
    I am expecting URGENT FEEDBACK.
    Reply me on : [email protected]
    From
    Prashant

    I solved the problem.
    Procedure I followed :
    UNINSTALL ORACLE WRAEHOUSE BUILDER SOFTAWARE.
    'GLOBAL_NAMES = FALSE' in init.ora file.
    RESTARTED MY MACHINE.
    INSTALL THE ORACLE WRAEHOUSE BUILDER SOFTAWARE.

  • Newbie: How to automate link creation from a map index grid?

    We would like the user to jump to an atlas page from the index page (similar to table of contents in a book). There are more than 135 pages in the map atlas. we would like to automate the link creation.

    It might be possible to do this with a script, but it depends very much how the file was created and what the contents of it are.
    If you wish, you can send me the file to try6767 at gmail dot com and I'll have a look at it.

  • Databse link creation from 9i to 10g

    hii all
    i just want to create databse link as below"create databse link linkname connect to remoteuserid identified by remote password using "........"
    thats where iam getting confused what should we place if my tnsnames looks like "orcl.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ip address)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL)
    well after puting db name as using in statement i am getin error when i execute any table in remote db.
    1.tns -nolistener
    2.ORA-12545-Connect failed becos target host or object does not exit
    above r some of errors i get while iam trying to create databse link
    please put on some thoughts on this kindly..
    thanks

    copy, paste and post here for db link creation and the error returned. you can replace the username/password/host with dummy ones.
    Sean

  • Database link creation problem

    localhost environment:
    OS:windows 2000 server
    Database:oracle 8.5
    database name:orcl
    remotehost environment:
    OS:windows 2000 server
    Database:oracle 8.5
    database name:orac
    These two servers in network and in the same workgroup like peer to peer.There is no concept of domain here.
    Here in this environment i am getting the response from both of the servers at the time of using tnsping.
    C:\>tnsping orac
    TNS Ping Utility for 32-bit Windows: Version 8.1.5.0.0 - Production on 15-APR-06 21:30:54
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=azad)(PORT=1521))
    OK (70 msec)
    C:\>tnsping orcl
    TNS Ping Utility for 32-bit Windows: Version 8.1.5.0.0 - Production on 15-APR-06 21:31:02
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=pvs)(PORT=1521))
    OK (70 msec)
    But at the time of creating database links in between these databases at local host i am getting this error message when i am using connect_user method:
    SQL> create database link REMOTE_CONNECT connect to current_user using 'ORAC';
    Database link created.
    SQL> select * from emp@REMOTE_CONNECT;
    select * from emp@REMOTE_CONNECT
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kspgsp2], [64978272], [265], [ent_domain_name], [0],
    [1], [], []
    But at the time of creating database links in between these databases at local host i am getting this error message when i am using identified method:
    SQL> create database link REMOTE_CONNECT2 connect to scott identified by tiger using 'ORAC';
    Database link created.
    SQL> select * from emp@REMOTE_CONNECT2;
    select * from emp@REMOTE_CONNECT2
    ERROR at line 1:
    ORA-02085: database link REMOTE_CONNECT2 connects to ORACLE
    help me to create the database link in between these two databases..........

    Hi, I have read carefully your letter.
    Firt of all, when you use 'current_user' statement you must guarantee that such users have in both databases.If users exist in both databases and the error will appear again than try create database link with the option 'PUBLIC' as follow:
    CREATE PUBLIC DATABASE LINK REMOTE_CONNECT connect to scott identified by tiger using 'ORAC';
    and check the creation:
    SQL> COL OWNER FORMAT a10
    SQL> COL USERNAME FORMAT A8 HEADING "USER"
    SQL> COL DB_LINK FORMAT A30
    SQL> COL HOST FORMAT A7 HEADING "SERVICE"
    SQL> SELECT * FROM DBA_DB_LINKS;
    OWNER DB_LINK USER SERVICE CREATED
    PUBLIC REMOTE_CONNECT.US.ORACLE.COM SCOTT ORAC 17.04.06
    if the error appear again than checks parameter 'open_links' for your database instance. Default is 4. Increase that number. Good luck.Let me know if something go wrong.

  • Database Link Creation and Acessing

    i want to talk between two oracle server. i decided to go for snapshot creation with periodical refresh. For which i am having two oracle server's with different ip address located inside our office setup.
    I have created a database link between two servers.
    first server name global
    userid scott
    password tiger
    second server name asil
    userid scott
    password tiger
    both the user have been given dba rights.
    in both the server the services and listners are all started. i gave the following command to create database link.
    from asil server
    create public database link global connect by scott identified by tiger using 'global'
    the command was successful and the link was created. Now i tried to access a table of the scott user of the global server.
    select * from emp@global;
    now it is giving error. I want to know how the link can be created and how it can be accessed. i refered the 8i online documentation and done the things based on that. i expect valuble solution from all possible persons
    null

    See link http://kr.forums.oracle.com/forums/thread.jspa?threadID=221081
    Hope this helps solve your issue.
    thanks
    http://swervedba.wordpress.com/

  • View Object in the link - CREATION

    Below is the table schema. master1, slave2, cat3 are in the LINK.
    Master1 -----> Slave2 ------> Cat3.
    (id) (id, masterId) (id, slaveId)
    We are having the UIX pages to traverse starting for Master1 and down to Cat3.
    We need to have a url that takes us directly to the Cat3 UIX page.
    ex : www.something.com/catsBrowse.do?catdId=xxx&slaveId=yyy&masterId=zzzz.
    I am trying to initialize the view object. But on executeQuery(). It gives an exception.
    How do I initialize it. Is there any samples available???
    - Thanks.

    Hi,
    using ADF:
    1. Create a page that shows data for cat3
    2. Using the ADF binding (e.f. accessing it from a Struts Action) obtain teh iterator for master1 and set it to a specific row.
    3. Do the same for Detail 2
    4. Navigate to page cat3
    Note that you don't need to access teh VO drectly but can handle this all through the binding framework
    Frank

  • Bug in view link creation

    Here's an interesting bug in JDev 9.0.3.1, Win2k:
    I'm working with a view link using the Edit View Link dialog. It links two view objects, ViewA and ViewB, in a 1:* relationship. Entities EntityA and EntityB are the respective underliers of ViewA and ViewB. Under the View Link Properties node in the dialog, the only accessor generated is for the Destination view object.
    When I click OK, the column constants at the top of EntityA.java become messed up!!
    To be specific, all of the accessor column constants defined on the entity object are removed and then re-defined one line above the beginning of the column constants declaration section. They also are renumbered starting with zero, which causes them to have the same value as the first n column constant definitions. Naturally, this causes a "duplicate case label" compile error for the EntityA.java file.
    Even worse is if the column constant definitions start on the same line as the opening brace for the class, like so:
    public class EntityAImpl extends EntityImpl
    { protected static final int COLUMN_1 = 0;
    protected static final int COLUMN_2 = 1;
    // etc.
    The effect of clicking OK in the Edit View Link dialog is then to produce a ParseException error as the dialog is dismissed. Looking at the EntityA.java file, it's clear why:
    public class EntityAImpl extends EntityImpl
    protected static final int ACCESSOR_1 = 0;
    protected static final int ACCESSOR_2 = 1;
    // etc.
    { protected static final int COLUMN_1 = 0;
    protected static final int COLUMN_2 = 1;
    // etc.
    What puzzles me is:
    * Why is the entity object being affected at all, since the accessor was only supposed to be generated in ViewA?
    * Why are all the accessors being removed and re-added, even those that have nothing to do with the view link being edited?
    * Why, when the accessors are re-added, are the constant values duplicated?

    Please send a test case. I'm unable to reproduce this in a simple project in 9.0.3.1 or 9.0.3.2.
    Is there entity inheritance involved?
    Do your entity XML files mention _superAttr anywhere in them? If so, you might be hitting a known issue with 9.0.3 relating to entity inheritance at design time and the accessor attributes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Issue in DB Link creation

    Hi,
    I am trying to create the DB link across two different platforms where 32 bit oracle is installed in 32 bit windows platform and 64 bit mysql is installed in 64 bit HP_UX platform.
    After the initial configuration, I finally execute the following query and receive the error. What might be the reason? DB link between 32 bit oracle and 64 bit mysql is possible or not? or any addressing type conflicts exist between two installables(oracle and mysql) in creating the DB link? please let me know
    SQL> select * from title@vivdblink;
    select * from title@vivdblink
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this
    message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC Driver Manager] Data
    source name not found and no default driver specified (SQL State: IM002; SQL
    Code: 0) ORA-02063: preceding 2 lines from VIVDBLINK
    Thanks in advance
    With Regards
    Boo

    Hi,
    Still I am not getting.......... Can anyone please answer DB link between 32 bit oracle and 64 bit mysql is possible or not? Because I had been created the DB link between 32 bit oracle and 32 bit mysql but I am not able to create a link between 32 bit oracle and 64 bit mysql. when I try to do, it is throwing the above error
    So I suspect the problem with installables? can one clear my doubt
    With Regards
    Boo

  • Database link creation

    Hi i want to access the data from production to test
    let the production named as naren and other one as naren1
    this link has been created in naren
    create database link test
    connect to naren
    identified by naren
    using 'test'
    conn naren1/naren1;
    i want to access one of the table from naren
    select * from emp@test
    ora-02019 connection description not found
    is it the problem of priviliges or tnsnames

    First make sure you have tns name entry for prod in tnsnames.ora
    When you create the database link like below,
    CREATE DATABASE LINK dblink_name CONNECT TO  remote_username IDENTIFIED BY  remote_password
    USING 'tns_service_name';The tns_service name is the tnsname for PROD not TEST.
    Say if your tnsnames.ora file look like this for your PROD connection, You need to use the service_name value for the 'tns_service_name' above. In the below case it is 'ganesh'
    GANESH=
      (DESCRIPTION=
        (ADDRESS=
          (PROTOCOL=TCP)
          (HOST=GANESH)
          (PORT=1521)
        (CONNECT_DATA=
          (SERVER=dedicated)
          (SERVICE_NAME=ganesh)
      )G.

  • Problem in Databse Link Creation

    I have created two Databases Named 'DBOLMMS' and 'MMS2' on same Server. There is User 'MMSUSER' in both Database and there two diffrent services for both Databases Named 'DABOLMMS' and 'MMS2' respectively. I wish to share some of the tables in 'MMS2' into 'DABOLMMS'. So I tried to Create Database Link using following command is SQL Plus
    CREATE DATABASE LINK MMS2 CONNECT TO MMSUSER IDENTIFIED BY MMSUSER USING 'DABOLMMS2';
    Link is created without error but when I try to access data using this link as following
    SELECT * FROM TAB@MMS2;
    I get following error
    ERROR at line 1:
    ORA-02085: database link MMS2.US.ORACLE.COM connects to MMS2
    Pl. send solution on [email protected]
    Thanks
    Indraneel
    null

    Please check the following:
    1. Create the DBLink name different than the Database name of the second DB.
    2. in init.ora give global_names=false
    Hope this will solve.

  • Link creation in Acrobat - viewing on ipad

    Hi All
    As posted above im having problems with a pdf and links on an ipad.
    I have a 10 page pdf that I have created in indesign ( this doesnt have any interactivity set, just standard pdf output)
    I then set links using the link tool native in Acrobat pro. The links are simple links to open a page view ie, just linking to another page in the document.
    I have this set to 'Go to a page view'
    Once saved, it all works fine in acrobat.
    When viewed in Acrobat reader for iOS. one of the links works where all the others dont.
    I have checked and they all have the same settings.
    My client doesnt have the option of adding any other reader app, Acrobat reader is the only option as its for a large sales team.
    Surely Acrobat reader iOS should be able to read links natively created in Acrobat pro?
    Any help welcome
    Thanks
    Steve

    The only way to get the navigation buttons to work at this time on the iPad is to use the form tool. This article on Navigation Button Tricks for Interactive PDF on an iPad will explain how to do this.

  • View link creation on two view objects, and both view objects are populated program(not from sql)

    I have master and detail VO , both views data is loaded in program. Now for show/hide feature, I create View Link Object and using one element from both child and master VO , View Link Object created properly.
    But I can not able to add that view link object into AM.
    Now because of that , I cannot say what is a instance name of that view link object.
    Hence getting following error  -- Invalid or missing view link. Please attach view link with the bean.
    Please can you provide some directions.

    I have master and detail VO , both views data is loaded in program. Now for show/hide feature, I create View Link Object and using one element from both child and master VO , View Link Object created properly.
    But I can not able to add that view link object into AM.
    Now because of that , I cannot say what is a instance name of that view link object.
    Hence getting following error  -- Invalid or missing view link. Please attach view link with the bean.
    Please can you provide some directions.

  • Dreamweaver 13.1 OSX crashing on link creation. How Fix?

    I am using DW 13.1 on OSX 10.9 and have continous crashing problems. Most recently, a repeatable crash on turning text into a link.
    Anyone have this problem and found a fix for it?
    thanks

    If this just started happening, try deleting your Cache.
    http://forums.adobe.com/thread/494811
    Nancy O.

Maybe you are looking for

  • Mac App Store won't allow re-downloading of deleted apps

    I am experiencing very glitchy behaviour with the Mac App Store.  The store can't tell when individual apps are deleted, and therefore won't allow re-download.  This has been going on for a while - when I click on the Purchases tab all Apps are still

  • Why does the new CVI adapter not put the contextCVI parameter?

    Hi, With good old 2.0 prototype you could not specify arguments and you always used the parameters tTestData and tTestError. Now, with the TS3.x the recommended prototype is the new one. If I specify the standard prototype it puts some arguments whic

  • Print Preview of Purchasing Documents too small

    Some of my users are having difficulties with reading the content of Purchasing Document Previews as the font size selected for the documents is quite small. We want to increase the size of text on the screen without changing the document font size.

  • How do you display the capacity/free space for the hard drive......

    How do you display the capacity/free space for the hard drive on the desktop, under the hard drive icon.... I have seen this done, but I am not seeing any options to do so.... thanks.

  • Detail-preserving upscale is missing

    After Effects says it is fully updated but I still can not find this effect. Is it a seperate download? Am I missing something? Any help would be great, thank you