Database link between the databases with the same name

Hi,
I need to establish a db link between two databases that are named the same way on two different servers.
server 1 has a database dev1 and server2 has a database dev1. The tnsnames on server2:
DEV1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = server2)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = DEV1)
DEV1_server1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = dev1)
Can anyone let me know a way to create a database link between the two above?
Thanks.

Hi,
Am not sure what problem you are facing in creating a db link
create database link dev1_server1 connect to x identified by x using "dev1_server1"
create database link dev1_server2 connect to x identified by x using "dev1_server2"where dev1_server1 and dev2_server2 are the tns entry in tnsnames.ora file of server2 and server1 respectively.
Regards
Anurag

Similar Messages

  • How to create database link between oracle9i database and oracle10g

    How to create database link between oracle9i database and oracle10g
    oracle9i database name "Prod" windows server 2003 ( 172.x.x.x)
    oracle10g database name "TEST" sun solaris 9 (165.x.x.x.x)
    Please help me on this

    For connections between 10.2 and 9.2 the 9.2 end MUST be at 9.2.0.4 or higher. Connections between 10.2 and 9.2.0.1, 9.2.0.2 or 9.2.0.3 are not supported.
    Connections between 10.2 and 9.0.1 was never been supported.
    Cheers !!!!
    Bhupinder

  • Creating a database link to another schema in the same database

    Hello,
    I'm trying to create a database link to another schema in the same database. It was created without errors, but when I try to use it I receive "ORA-12154: TNS:could not resolve the connect identifier specified" message...
    I'm trying to do it because on my production enviroment the databases are separated, so there I can use database links without problem, but in my development environment it's all in one database separated by schemas...
    So I'm trying to simulate the same system to not need to rewrite the query every time I move from development to production environment.
    Any ideas?
    Thanks

    Hi,
    Yes, you can create a database link to your own database. I've done it before for exactly the same reason you want to.
    (By the way, I think it's a good reason. What are the alternatives?
    Having different versions of code for Development and Production? Absolutely not! Terrible idea!
    Using synonyms or substitution variables that are set differently in the different databases? That might be more efficient than a database link, but efficiency probably isn't such a big issue in Development.
    [Conditional compilation|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/fundamentals.htm#sthref250]? This might be good; it has all the efficienty of the above options, with more clarity.)
    Assuming you do want to stick with a database link, not all errors are caught when you create the link.
    Is the Development database in the tnsnames.ora file of the Development server? Do you have other database links, either in the Development server or pointing to it, that work? What is different about the ones that work, and the one that doesn't?
    Edited by: Frank Kulash on Oct 14, 2009 1:58 PM
    The more I think about this, the more I agree with the earlier respondent: synonymns are a good solution for this.
    To that suggestion you replied:
    On this way I might use "select * from SCHEMA.table" instead of "select * from table@SCHEMA"... I looking for an option to use the second way...Actually, the suggestion was that you say:
    select  *
    from    SCHEMA_table_ptr;where schema_table_ptr is a synonym.
    In Development, that synonym is defined as schema.table.
    In Production, that synonym is defined as table@SCHEMA
    Why are you "looking for an option to use the second way"?
    If you think that people reading the code should realize that the query is being done via a database link (at least in Production), then add a comment.

  • How to create database link between oracle and SQL Server

    Hello Everyone,
    Here i have Oracle Database 9i and SQL Server 2005 databases.
    I have some tables in sql server db and i want to access from Oracle.
    How to create a database link between these two servers
    Thanks,

    Thanks for Everyone,
    I was struggle with this almost 10 days....
    I created Database link from Oracle to SQL Server
    Now it is fine.........
    Here i am giving my servers configuration and proceedure how i created the db link...@
    Using Generic Connectivity (HSODBC) we can create db link between Oracle and SQL server.
    Machine (1)
    DB Version : Oracle 9.2.0.7.0
    Operating System : HP-UX Itanuim 64 11.23
    IP : 192.168.0.31
    Host : abcdbt
    Machine (2)
    Version : SQL Server 2005
    Operating System : Windows server 2003 x86
    IP : 192.168.0.175
    Host : SQLDEV1
    User/PW : sa/abc@123! (Connect to database)
    Database : SQLTEST (exsisting)
    Table : T (“ T “ is the table existing in SQLTEST database with 10 rows)
    Prerequisites in Machine (2):
    a)     Oracle 10g software
    b)     User account to access SQL Server database (sa/abc@123!)
    c)     Existing SQL Server Database (SQLTEST)
    d) Tables (testing purpose) (T)
    Steps:
    1)     Install Oracle 10.2.0.1 (Only SW,No need of database) *(Machine 2)*
    2)     Create a DSN where your windows Oracle 10g SW resides *(Machine 2)*
    Control panel >> Administrative Tools >> Data Source (ODBC) >> System DSN ADD
    You can follow this link also.....
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    I created DSN as
    DSN name : SQLTEST
    User : SA/abc@123! (Existing user account)
    Host : 192.168.0.175 (machine 2)
    Already I have 1 database in SQL Server with the name SQLTEST
    You can create DSN with different name also (not same as db name also)
    3)     Create a hsodbc init file in $ORACLE_HOME\hs\admin *(Machine 2)*
    Create init<DSN NAME> file
    Ex: initSQLTEST
    Copy inithsodbc to initSQLTEST
    And edit
    initSQLTEST file
    HS_FDS_CONNECT_INFO = SQLTEST    <DSN NAME>*
    HS_FDS_TRACE_LEVEL = OFF*
    save the file....@
    4)     Configure Listener.ora *(Machine 2)*
    LISTENER_NEW =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
    SID_LIST_LISTENER_NEW =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = SQLTEST) *+< Here SQLTEST is DSN NAME >+*
    (ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
    (PROGRAM = hsodbc))
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc) )
    :> lsnrctl start LISTENER_NEW
    5)     Configure tnsname.ora *(Machine 2)*
    SQLTEST11 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SQLTEST))
    (HS=OK)
    :> tnsping SQLTEST11
    If No errors then conti….
    6)     Configure a file *(Machine 1)*
    Cd $TNS_ADMIN ($ORACLE_HOME/network/admin)
    Create a file
    $ vi TEST_abcdbt_ifile.ora
    something=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST =192.168.0.175) (PORT=1525))
    (CONNECT_DATA=
    (SID=SQLTEST))
    (HS=OK)
    $ tnsping something
    $ sqlplus system/manager
    Your connected to Oracle database *(machine 1)*
    create database link xyz connect to “sa” identified by “abc@123!” using ‘SOMETHING’;
    select * from t@xyz;10 rows selected.
    Thanks,
    Edited by: ram5424 on Feb 10, 2010 7:24 PM

  • Database links between Oracle 10G and 7.1/7.3 & 8.0 databases

    Hi All..
    Unfortunately one of our customers is still using very very old unsupported versions of the database - 7.1 and 7.3 and 8.0. They wish to start an upgrade process - moving up to 10G (via staged upgrades) but wish to know whether they can still access information from old databases via database links.
    I know that the Oracle 10G client cannot connect to database versions this old, and I am presuming that the database itself cannot via DB links but I thought it wise to check.
    Any help appreciated. Thank you.

    Oracle 10.1 is certified to connect to 8.1.7 and later. Database links to earlier versions are not certified and generally do not work.
    The general solution to this sort of thing tends to be putting an older version of the database (8.1.7 or 9.0.1, usually) between the ancient databases and the new database. 10.1 can create a database link to 9.0.1. 9.0.1 can create a database link to 7.3.4 and create views that reference remote 7.3.4 objects that the 10.1 system can query. Of course, you're taking data over the network twice, so performance isn't ideal, but it can work in a pinch.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Database link between 8i and 7.3.2.3 servers

    Hi all,
    1 server
    HP9000 : ORACLE 8i 8.1.5.0
    O.S : hp unix
    2 server
    HP B132+ : ORACLE WG 7.3.2.3
    O.S : hp unix
    when i am trying to connect to the remote data base from
    server 1
    i am getting this error i.e ORA-12505:listener could not resolve SID given in connect descriptor
    If i try from the
    server 2
    i am getting this
    error i.e ORA-12154: TNS: could not resolve service name
    The steps i have done
    in both servers i have created database links and i updated
    $ORACLE_HOME/network/admin/tnsnames.ora files
    can anybody please solve this problem for me
    with regards
    a.ratna
    null

    ratna,
    for the server 2 error... could not resolve service name. check your tnsnames file and make sure that SID(not the alias) in tnsnames matches with the SID given in database link.
    "create database link test_link connect to scott identified by tiger using 'SID';
    for error 1 make sure you have the entry of the server 2 SID in server1 tnsnames file.
    good luck,

  • How to create database link between 2 servers to exports schemas

    Could any one please give Steps to create database link between 2 servers (linux)  to exports schemas like AR, INV, GL.......etc

    Hi Mouni,
    As i suggest above, please use the REMAP_SCHEMA parameter, so that you can create those objects which are getting created in the Apps Schema in the XBSI schema, I have already provided the syntax above.
    ORA-31684: Object type VIEW:"XBSI"."XBSI_ORDER_LINE_INFO_V" already exists
    ORA-31684: Object type VIEW:"XBSI"."XBSI_SERIAL_NO_V" already exists
    ORA-31684: Object type VIEW:"XBSI"."XBSI_ONHAND_BALANCES" already exists
    ORA-31684: Object type VIEW:"XBSI"."XBSI_PURCHASE_ORDERS" already exists
    ORA-31684: Object type VIEW:"XBSI"."XBSI_ORDER_HEADER_INFO_V" already exists
    ORA-31684: Object type VIEW:"XBSI"."XBSI_ORGANIZATION_ITEMS" already exists
    ORA-31684: Object type VIEW:"XBSI"."XBSI_PE_FIND_RESULT" already exists
    You are facing these errors as you have already done the import, and when you try to re-import it says those objects are already available. If this fresh import, Please drop the the new user you have already created in the Datawarehouse instance, and recreate the User and start a fresh import.
    Hope this help!
    Thanks &
    Best Regards,

  • How to create a database link between an 8i (apps) database and APEX

    Want to link my Oracle APPS databse on 8i with Oracle XE and APEX. Any idea how to achieve this ?

    I don't know what Apex is!!! But try to follow these instructions.
    It works for Oracle 9i.
    As far as I know, you are supposed to have installed other than ORACLE Client to complete these instructions.
    1. Control Panel / Administrative Tools / Data Sources (ODBC)
    Folder: System DSN /
    click add
    Choose : Microsoft Access Driver
    Data Source Name : my_test
    Description : any_description_you_want
    click Database/Select... : full pathname for <your_file.mdb>
    click OK
    Click OK
    2. Goto OH\hs\admin:
    2.1) Create a copy of "inithsodbc.ora" file giving it this name:
    initmy_test.ora
    2.2) Edit "initmy_test.ora" and change as below.
    # HS init parameters
    HS_FDS_CONNECT_INFO = my_test
    HS_FDS_TRACE_LEVEL = OFF
    3. Add this entry to listener ( Don't forget to stop/start the listener )
    (SID_DESC =
    (SID_NAME = my_teste)
    (ORACLE_HOME = <Path to OH> ) ### Ex: D:\ORANT901
    (PROGRAM = hsolesql)
    4. Now you need to add entries to point to the HS in the tnsnames.ora :
    access =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=<your_host>)(PORT=1521))
    (CONNECT_DATA=(SID=my_test))
    (HS=my_test)
    5. Now you need to go into the database and create the database link:
    CREATE PUBLIC DATABASE LINK "ACCESS_DB" USING 'access';
    6. select * from your_table@ACCESS_DB;
    HTH
    RK
    Message was edited by:
    RKravcenko

  • Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Hi,
    I have the check box on a second Partition  but not on the Time Machine one
    I forget what I did now to get this called "Recovery HD"
    For the rest try https://discussions.apple.com/docs/DOC-4055  User Tip that links to Pondini's work on Time Machine.
    10:17 pm      Friday; May 2, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • I have a new hard drive and itunes and my computer (windows XP) no longer recognise my ipod. I also had the problem with the registry keys not being present but this has now been fixed. However i can no longer link my ipod up with itunes.

    When I first tried itunes with my new hard drive there was the problem with the registry keys but something also flagged up about needing a signed driver. Is this anything to do with why Itunes and my computer no longer recognises when my ipod is linked up? Whatever i try under 'devices' my ipod is never available to sync up. If anyone can help I would be most grateful.

    Thanks for your reply. Unfortunately this has not worked. I didn't have quicktime to begin with so I don't know if that makes a difference? After following the instructions, I get the "registry keys missing" problem appear again (which I've subsequently fixed again) and then when I connected the ipod I got the following message - 'Device driver software was not successfully installed'.
    I've tried windows update but this doesn't do anything as '...the service is not running'.
    Any suggestions?

  • After installing OS8 my mail items On my iPad in trash often are mixed up with the body of the email in the wrong email. The iPhone with the same mail in trash is fine, as is the GMail trash on my PC.

    I Have IOS 8.1 on my iPad & iPhone And I use gmail. When I review email trash on the iPad, many of the emails in trash have the wrong content. The body of the email appears as the content of another email also in trash. The same emails in trash on the iPhone & in Gmail trash on the PC are all OK. if I file the email back in the inbox it Still has the body of the email with the wrong sender and addressee. Any ideas?

    Greetings,
    Mail doesn't create .txt files from email messages; it sends exactly what you type. If some of your recipients are claiming they receive .txt files, that would most likely be due to their email client, which no doubt is running Windoze. Only they can solve that problem. If the message is okay in your Sent mailbox, that's exactly what you sent, so the problem is on their end.

  • Trying to change reset my Apple ID as I can't remember it, however it is sending an email which says invalid link or a list with the option to change password which can't be clicked on? Can anybody please help?

    Trying to change reset my Apple ID as I can't remember it, however it is sending an email which says invalid link or a list with the option to change password which can't be clicked on? Can anybody please help? Going around in circles! Grrrrrrrrrrr

    Is this your machine or the company's?  Machines that came with Snow Leopard or earlier installed come with system and software install disks that can be used to reisntall the iApps that came with the machine orignally. 
    If this is your machine and it came with Snow Leopard or earlier installed the disk will look slimialr to one of these:
    If it is the company's machine see if they have the disks.
    Do a custom install and then use Software Update to update iPhoto to the highest version that is available.

  • HT4889 I just transferred data using migration assistant from a macbook prop to a macbook. I am trying to log back into the user that was on the pro but is now on the macbook with the same password as before, and it says my password is incorrect.

    I just transferred data using migration assistant from a macbook pro to a macbook. I am trying to log back into the user that was on the pro but is now on the macbook with the same password as before, and it says my password is incorrect?

    Suggest you try the password for the Macbook, not the previous one.

  • Do XI service users have to exist in the SLD with the same password?

    Hi All,
    Do XI service users have to exist in the SLD with the same password?
    We have a 3 system(development, QA and production) XI landscape with a single SLD. All systems are NW04s with support stack 9.
    We are required to change XI service user passwords. I have found OSS note 936093 for changing these passwords. What I am not sure of is if I can change XI service user passwords one system at a time. I am under the impression that XI service users must exist in the SLD with the same password as the XI system. If this is correct, I have to change service user passwords in all three systems at the same time which is not very feasible.
    Thanks,
    Hamid Lashgari

    Creation and Maintain Users
    For the transport of Integration Server content, it is a good idea to install CMS on an
    existing Integration Server. In this double-stack scenario, where an ABAP and J2EE
    stack is used, user management is different from a J2EE only installation.
    Note: For more information about using CMS on a J2EE only installation, see the
    CMS documentation.
    The following section describes the double-stack user management settings required
    when CMS is running on the Integration Server in the development environment. See
    Figure 2. The description we provide starts with ABAP user management and is followed
    by the maintenance in J2EE User Management Engine (UME). You proceed as follows:
    • Create the service user LSADMIN using transaction SU01.
    • Assign the ABAP roles SAP_XI_CMS_SERV_USER and
    SAP_SLD_ORGANIZER to the LSADMIN service user.
    • Create the ABAP role SAP_CMS_ADMINISTRATOR and assign this role to the
    ABAP dialog user(s) responsible for CMS administration.
    • In UME, create the role CMSDeveloper with the actions CMS.Display and
    CMS.Export.
    • In UME, create the role CMSAdministrator with the action CMS.Administrate.
    • In UME, assign the users representing “xirepuser” and “xidiruser” to the role
    CMSDeveloper.
    • In UME, assign the group SAP_CMS_ ADMINISTRATOR to the role
    CMSAdministrator.
    • Log on to CMS with the ABAP dialog user responsible for CMS administration.
    • Maintain the CMS service user (LSADMIN) for the domain.
    Task XI Dev
    With CMS XI Test XI Prod
    Create the service user LSADMIN in TA using transaction
    SU01. Yes Yes Yes
    Assign the ABAP roles SAP_XI_CMS_SERV_USER and
    SAP_SLD_ORGANIZER to the LSADMIN service user. Yes Yes Yes
    Create the ABAP role SAP_CMS_ADMINISTRATOR and
    assign this role to the ABAP dialog user(s) responsible for
    CMS administration.
    Yes No No
    In UME, create the role CMSDeveloper with the action
    CMS.Display and CMS.Export.
    Yes No No
    In UME, create the role CMSAdministrator with the action
    CMS.Administrate.
    Yes No No
    In UME, assign the group SAP_CMS_ ADMINISTRATOR to
    the role CMSAdministrator
    Yes No No
    Log on to CMS with the ABAP dialog user responsible for
    CMS administration.
    Yes No No
    Maintain the CMS service user (LSADMIN) for the domain. Yes No No
    Figure 4: Overview of User Management Tasks in Different Systems

  • Clicking on a link often causes the link to open behind the window with the linik.

    Clicking on a link often causes the link to open behind the window with the link.
    This occurs most frequently when only one or two windows are open.

    Work around found.
    The problem was occurring in links on a web page I created for my home page with "target=_new". Changing this to "target=_blank" fixed the problem. The old links worked fine before version16.

Maybe you are looking for

  • In search of Pattern

    I have a situation here and I havent been able to conceptualize a good solution. Background I have an object that processes changes in things that contribute to changes. And then I have this system of objects. Architecture System Component ComponentI

  • My speakers won't work on my new computer with a Soundblaster live! 24

    When I was in college, I bought a Gateway computer that came with with Boston Acoustics speaker model BA735. Recently, I bought a new Dell computer with the Soundblaster Li've! 24 bit and my speakers won't work. I have an old set at my house that wor

  • Can't Get Menus to show on DVDSP 4.2

    I have loaded DVD Studio Pro 4.2.  It opens just fine but the menus will not show in the pallette.  They are in the folder in the usr/library/application support/dvdstudio pro. What am I missing.  Never had a problem before. Thank you.

  • ECATT Vs QTP

    Hi all, Can someone list the differenece of this tools and suggest which tool is best suited for a SAP World. I knew eCATT is good at SAP Transactions and it cant test web applications and QTP is good at both. I'm looking something more points then t

  • Light Indicator based on condition.

    Hello Experts, I am displaying some data in a table. Now i want some light indicator on row level based on a  value of a perticular row. I tried it by creating a attribute of string type and bind it to the UI element of the table of Image type. Now i