How to resolve  database link issue???

Hello all,
actuall i want to access a remote database server which is basically an Oracle8 server and i want to access that server while sitting in Oracle8i server....
I have tried create database link but it's not functioning properly ..........
it's giving an error some think like "Can not resole TSN Service name....."
Now plz help me to resolve that issue and kindly tell me all the pre-requsits and plz send me a piece of code as well..................
Thanks In Advance,
Omer Saeed Khan.

it's giving an error some think like "Can not resole TSN Service name....." Honestly. Give us a proper error message with a number. "something like" is not good enough.
Have you read the documentation?
http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76960/toc.htm
If I have to guess I'd guess that you haven't included the remote database in the server-side TNSNAMES.ORA file.
Regards, APC

Similar Messages

  • How to create database link from oracle to sql server

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal
    Hi Vishal,
    I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
    https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
    We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
    Regards,
    Elvis Long
    TechNet Community Support

  • How to resolve database PSU conflict errors

    Hello:
    I am in process of applying the database PSU Patch 18522512 for 11.2.0.3 and running into conflict issues with other patches, please take a look at the following conflict issues and let me know how to resolve these conflict issues and installed the PSU patch 18522512.
    /cherdb_1/oracle/VIS12/11.2.0/PATCHES/PSU/18522512
    cheron.aarcorp.com:(oracle):> opatch apply
    Oracle Interim Patch Installer version 11.2.0.3.6
    Copyright (c) 2013, Oracle Corporation.  All rights reserved.
    Oracle Home       : /cherdb_1/oracle/VIS12/11.2.0
    Central Inventory : /vol01/app/oraInventory
    from           : /cherdb_1/oracle/VIS12/11.2.0/oraInst.loc
    OPatch version    : 11.2.0.3.6
    OUI version       : 11.2.0.3.0
    Log file location : /cherdb_1/oracle/VIS12/11.2.0/cfgtoollogs/opatch/opatch2014-08-06_10-59-59AM_1.log
    Verifying environment and performing prerequisite checks...
    Composite Patch 18522512 is a bug superset of 16929165,16992075,17468141,13001379,14123213,13931044,9858539,8547978,14237793,14207902,13923995,13544396,13528551,13499128,13477790,13466801,13366202,13259364,13070939,13036331,12971775,12845115,12780983 in OH.
    Composite Patch 18522512 conflicts with installed patch(es) 17875948, 16040940, 19078951, 17693770, 17912217, 13004894, 14649883, 12942119, 16438289, 13040331, 17600719, 13146719, 18116376
    Conflict Description:
    Here are the specific sub-patches of composite patch 18522512 that conflict with 17875948, 16040940, 19078951, 17693770, 17912217, 13004894, 14649883, 12942119, 16438289, 13040331, 17600719, 13146719, 18116376
    Sub-Patch 13696216 conflicts with 19078951 conflicts with 18116376
    Sub-Patch 13923374 conflicts with 19078951
    Sub-Patch 16056266 conflicts with 19078951
    Sub-Patch 16619892 conflicts with 19078951 conflicts with 17912217 conflicts with 17875948 conflicts with 17600719 conflicts with 16438289 conflicts with 13004894
    Sub-Patch 16902043 conflicts with 19078951 conflicts with 17875948 conflicts with 12942119 conflicts with 13146719 conflicts with 13040331
    Sub-Patch 17540582 conflicts with 19078951 conflicts with 17693770 conflicts with 14649883
    Sub-Patch 18031683 conflicts with 19078951 conflicts with 17875948
    Sub-Patch 18522512 conflicts with 19078951 conflicts with 16040940
    Conflict Remedy:
    Refer to My Oracle Support Note 1299688.1 for instructions on resolving patch conflicts.
    UtilSession failed: Composite conflicts with existing oneoffs.
    Log file location: /cherdb_1/oracle/VIS12/11.2.0/cfgtoollogs/opatch/opatch2014-08-06_10-59-59AM_1.log
    OPatch failed with error code 73
    Thanks & appreciated for your help.
    Syed.

    Hi Syed,
    You can raise SR for merging the conflict patches and refer to the MOS document provided to resolve.
    Thanks,
    Uday

  • 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

  • How to improve database link performance?

    Hello all,
    We use db links to do DML operations on remote databases. For OLTP applications we are facing performance problems for transactions dependent on data on remote database.
    For legal and business reasons we cannot state all the data locally.
    Could anybody suggest how to improve database links performance or suggest methods/procedures/techniques to enhance speed of OLTP applications going against remote databases ?
    Thanks
    Sky

    AQ is as reliable as Oracle-- the guarantees about delivery of queued messages are the same as the guarantees about committed transactions (i.e. ACID). AQ is designed for asynchronous operation, though. If you are batching transactions, it sounds like you are already doing some sort of asynchronous operations-- I've generally found AQ a lot easier to administer & maintain than rolling your own batching system.
    If you want to tune the Oracle side of things, you'll need to explain more about the system(s) involved here. Architecture, data flow, operations that involve the dblink, etc. If you're not comfortable posting that sort of information to a public forum, feel free to send me mail directly [email protected]
    As an aside, I'm interested in how you can legally pull data from the remote system to display to your users but that you can't legally cache that data in your system via replication. Sounds like an odd constraint.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to resolve Oracle lock issue

    Hi All,
    What is Oracle lock issue in BW and how to resolve it.
    Regards,
    Ravi

    Hi Ravi,
    The object lock issues that we sometimes encounter in SAP BW production support role.
    Lets take the below example where the InfoObject(0material) load has failed and the load monitor (T-Code: RSMO) looks like this.
    Go through the link below
    http://proradian.com/blog/2008/07/sap-bw-production-support-object-lock-issues/
    Regards,
    Marasa.

  • Database links issue ORA-01017 ORA-02063

    Oracle 11g R1 , RHEL 5 64bit
    HI all,
    I am having this strange issue with my database links. They used to work in the past but now they are not. Here is what I have checked:
    - All the TNSnames.ora file entries are there and are correct...I double checked with tnsping
    - I changed all the passwords to be the same on all environments (DEV/QA/PROD)
    - I have dropped and re-created all the database links
    However, I still get the same error when I test them:
    ORA-01017: invalid username/password; logon denied ORA-02063: preceding line from <database_name>
    Here are the links created on DEV:
    SQL> select * from dba_db_links;
    OWNER DB_LINK USERNAME HOST CREATED
    PUBLIC FPRCQA.FPRC.OPHTH.WISC.EDU FPRCQA 01282009
    FPRCHR FPRCQA.FPRC.OPHTH.WISC.EDU FPRCHR FPRCQA 01282009
    PUBLIC FPRCPROD.FPRC.OPHTH.WISC.EDU FPRCPROD 01282009
    FPRCHR FPRCPROD.FPRC.OPHTH.WISC.EDU FPRCHR FPRCPROD 01282009
    The above links were created using the following syntax:
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> create public database link FPRCQA.FPRC.OPHTH.WISC.EDU using 'FPRCQA';
    Database link created.
    SQL> create public database link FPRCPROD.FPRC.OPHTH.WISC.EDU using 'FPRCPROD';
    Database link created.
    SQL> conn fprchr
    Enter password:
    Connected.
    SQL> CREATE DATABASE LINK FPRCQA.FPRC.OPHTH.WISC.EDU CONNECT TO FPRCHR IDENTIFIED by <passwd> using 'FPRCQA';
    Database link created.
    SQL> CREATE DATABASE LINK FPRCPROD.FPRC.OPHTH.WISC.EDU CONNECT TO FPRCHR IDENTIFIED by <passwd> using 'FPRCPROD';
    Database link created.
    Now when I do a simple query, I get the error:
    SQL> select count(*) from fprchr.department@FPRCQA;
    select count(*) from fprchr.department@FPRCQA
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from FPRCQA
    I have read some notes on metalink, but they were talking about situations where you have a 10g database connecting to an 11g database and the whole password case-sensitivity issue, but this is not the case here as all the databases are 11g.
    I would appreciate any and all help on this issue.
    Thank you much.

    The documentation has the answer:
    user IDENTIFIED BY passwordSpecify the username and password used to connect to the remote database using a fixed user database link. If you omit this clause, the database link uses the username and password of each user who is connected to the database. This is called a connected user database link.>
    Since you haven't specified user/password in your public database links, then Oracle will try to create a connection on the remote db with the same user/password who is trying to use the database link. If the user doesn't exists or has a different password then you get an error (the same you mentioned in you original post)
    HTH
    Enrique

  • How to create Database link

    Hi all,
    While trying to create a database link i am getting the following error:
    Create Database Link Failed.
    ORA-01031: insufficient privileges
    Could you please tell me how to create a database link.
    Thanks
    Grishma

    Hi Grishma,
    Login as DBA (SYSTEM or SYS for ex.) in SQL*Plus and run this command:
    SELECT *
    FROM dba_sys_privs
    WHERE grantee = 'USERNAME'
    AND PRIVILEGE = 'CREATE DATABASE LINK'
    Change the USERNAME by the USER you're trying to create the database link from. (CAPITALS!)
    Dimitri

  • 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

  • How to complie database link in forms 6i

    Dear All,
    how can i compile database link in forms 6i ??
    Mujtaba

    follow the below step to connect database from 6i forms.
    Open C:\orant\net80\admin\tnsnames.ora in notepad as below.
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = servername)(PORT = 1521))
        (CONNECT_DATA = (SID = ORCL))
      )look orcl as above in host put your servername or IP address where database installed . restart the pc and connect with scott/tiger@orcl.
    Hope it helps.
    Regards
    Moazam

  • How to create database links

    Hi,
    We have two databases on two differenet servers and we want both of the databases to be synched and application is running only on one server.
    Is it possible through DB links if yes then how.
    If any better solution than DB links is there then pl tell.

    850520 wrote:
    I think DATA GUARD is good from recovery point of view..but i want that my application will update one database & same data will be updated on 2nd DB automatically means application need not to update second database by querying it..
    Is there anything like this.And what is the second database going to be USED for? Until we know that, we can only guess at the best solution, which in any event is probably NOT database links.

  • 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 use database link to create table in other database?

    e.g., java jdbc is connected to the database A.
    i want to create one table (Table1)in database B, and then insert data into Table1 select ....from Table2 which is in database A.
    i used the create database link (database name) connect to (database) indentified by .....
    but ...i got the sqlException as i wrote before.
    Thanks again.

    http://forum.java.sun.com/thread.jspa?threadID=656868&messageID=3860293#3860293

  • How to use database link in from6i?

    I can use database link in sql plus,but i can't use it in forms6i,why? thanks

    Don't know why.
    What I always do is create a synonym on the local database which points (through the db link) to the object on the other database.
    Regards,
    Meine

  • Database Migration:Resolving DB links issue.

    Hi,
    We are to migrate one of our production database to a new server. The DB version is 11.2.0.3 and it is on AIX 6.1. There will be no change in version of DB or OS.
    In our setup there are some number of other Oracle databases which connects to this database using DB links. We do not use DNS so, DB links are completely dependent on IP address. In this case the IP of the database server will change due to migration.
    My Question, Is there any way I can determine which databases connects to this database using DB links? We need to resolve those db links post migration.
    Looking for kind help. Thanks.
    -Gourab

    940748 wrote:
    Thanks for reply.
    What I tried is to query dba_audit_trail and found a distinct list of USERHOST. These contains clients as PC/Application Servers/Other Database servers. This narrow down my search though, I can not confirm this list is 100%. DBA_AUDIT_TRAIL has a retention and there may be an application that runs twice a year.
    --Gourab
    Well, consider this.  Your connecting clients fall into three groups:
    1) End-user desktops
    2) Application servers
    3) other databases using db links.
    Hopefully, group 2 is already well known.
    Group requires a bit of research, but is actually pretty easy to collect on an ad-hoc basis.
    Create two sql script files.
    -- sweep_db.sql --
    spool sweep_db.log
    connect system/manager@db_1
    @query_db_links.sql
    connect system/manager@db_2
    @query_db_links.sql
    -- etc, etc
    spool off
    exit
    and
    -- query_db_links.sql
    select * from dba_db_links.
    exit
    You will need to know the names and connection credentials of all possible 'client' databases in order to build 'sweep_db.sql'.  And it will take a manual reading of sweep_db.log, but for a one-time effort that's not all that bad.
    You may want to add some sqlplus formatting commands to sweep_db.sql

Maybe you are looking for