Failed to create Database Link in OWB 9.2 for remote SQL Server

Hi,
I have to create Database link for connecting to SQL server in a different machine.I am using OWB 9.2 and XP.
Dataserver is the machine name which is running SQL Server
I included follwing lines in TNSNAMES.ORA file
hsodbc.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
(CONNECT_DATA = (SID=hsodbc.world)
(HS =OK)
I included follwing lines in Listener.ORA file
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
(SID_DESC=
(SID_NAME=hsodbc.world)
(ORACLE_HOME=C:\ora92)
(PROGRAM=hsodbc)
I included follwing lines in inithsodbc.ORA file
HS_FDS_CONNECT_INFO = testdsn
HS_FDS_TRACE_LEVEL = 0
While creating new database link I gave the follwing values
DB Link Name : Mylink
SQL * Net Connect String: hsodbc
User Name: sa
password:<my password>
Then clicked "Create and Test" button to get the follwing error message
Testing...
Failed.
ORA-12154 TNS:could not resolve service name
*Cause: The service name specified is not defined correctly in the TNSNAMES.ORA file
*Action: Make the following checks and correct the error:
- Verify that a TNSNAMES.ORA file exists on your repository server
in the proper place and is accessible. See the operating
system specific manual for details on the required name and location.
- Check to see that the service name exists in one of the
TNSNAMES.ORA files and add it if necessary.
- Make sure there are no syntax errors in the file.
Particularly look for unmatched parentheses or stray characters.
Any error in a TNSNAMES.ORA file makes it unusable. See
Chapter 4 in the SQL*Net V2 Administrator's Guide. If possible,
regenerate the configuration files using the Oracle Network Manager.
Is there anything wrong in my configuration. Please help me in getting out of this problem.
Thanks in advance
Andy

Hi Mark,
Thanks Mark.I did the changes in the specified .ora file but now it shows a different error message.
The error is
Testing...
Failed.
Cwm Error Message: SQL Exception
Cwm Error: SQL Exception
Class Name: CacheMediator
Method Name: getDDEntryFromDB
Repository Error Message: ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from MYLINK
Query: select 1 from dual@MyLink
I got the same error when i tried manually in sql plus.
Please help me in getting out of thid problem
Thanks in advance
Andy

Similar Messages

  • Database link from Oracle DBMS 1g to MS SQL Server

    Hi,
    I would need to know, if there is some out of the box functionality from the Oracle DBMS 11g where I can connect to MS SQL Server (2005/2008)? If there is good tutorial on how to do it, I would very much appreciate it.
    Thanks!
    Dejan

    Hi,
    I have created following:
    1. Oracle DBMS 11g Enterprise installe (guessing that also the ODBC drivers for Oracle should)
    2. Using MS SQL 2009 Native Client for ODBC connectivity
    3. global_names set to false by
    alter system set global_names=false;
    4. Configures Oracle Heterogeneous services in initHS_ORCL.ora under \hs\admin to
    HS_FDS_CONNECT_INFO = HS_ORCL
    HS_FDS_TRACE_LEVEL = off
    5. Modified listerner.ora to
    SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = ORCL) (ORACLE_HOME = C:\oracle\product\11.1.0\db_1) (SID_NAME = ORCL) ) )
    LISTENER = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = nt-topobase)(PORT = 1521)) )
    # Connecting to MS SQL Server via ODBC
    SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = HS_ORCL) (ORACLE_HOME = C:\oracle\product\11.1.0\db_1) (PROGRAM = hsodbc) ) )
    6. Modified TNSnames.ora to
    ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = nt-topobase.cgs-lj.si)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORCL) ) )
    # Connecting to MS SQL Server via ODBC (added newly)
    HS_ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS= (PROTOCOL = TCP) (HOST = nt-topobase) (PORT = 1521)) (CONNECT_DATA = (SID=HS_ORCL)) (HS=OK))
    7.Restarted Oracle service
    8. Created Database link for an existing user sz that is sysdba in the ORCL instance:
    create database link hs_orcl connect to sz identified by admin using 'HS_ORCL';
    Database link created.
    9. Tried logging:
    C:\>sqlplus sz/admin@hs_orcl
    SQL*Plus: Release 11.1.0.7.0 - Production on Pon Mar 1 14:58:40 2010
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    11. Tried logging (successful)
    C:\>sqlplus sz/admin@orcl
    SQL*Plus: Release 11.1.0.7.0 - Production on Pon Mar 1 14:58:52 2010
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from ges@hs_orcl;
    select * from ges@hs_orcl
    ERROR at line 1:
    ORA-02019: connection description for remote database not found
    SQL> select * from ges@hs_orcl;
    select * from ges@hs_orcl
    ERROR at line 1:
    ORA-02019: connection description for remote database not found
    Cannot get the select from the MS SQL Server 2005 on the table 'GES'.

  • Change of a database link in OWB

    I have a good suggestion to change a a database link when a server is moved to another location (in that case the database link of the source module has to be changed)
    In OWB 9.0.2 it's not impossible to delete a database link in OWB, so you have to do it manually
    (in 9.0.4 it should be possible, but this version is also not easy to use).
    - Start SQL Plus and log in as the schema on which the OWB repository is created (e.g. OWB).
    - Drop the database link ('drop database link <dblink name>')
    - Create a new database link in the same schema with the new parameters, e.g:
    CREATE DATABASE LINK "<dblink name>"
    CONNECT TO "<...>" IDENTIFIED BY "<...>"
    USING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = <hostname>) (PORT = 1521))) (CONNECT_DATA = (SID = <sid> )))'
    Done!
    No stupid errors in OWB when you create the database link in OWB itself.
    Regards,
    Maurice
    ;

    SQL> create view test_view as select dummy from [email protected]
    2 ;
    View created.
    SQL> select dummy from test_view;
    D
    X
    Execution Plan
    0 SELECT STATEMENT (REMOTE) Optimizer=CHOOSE
    1 0 TABLE ACCESS (FULL) OF 'DUAL' FIRST9.XXXX.COM
    Statistics
    7 recursive calls
    4 db block gets
    2 consistent gets
    0 physical reads
    212 redo size
    363 bytes sent via SQL*Net to client
    425 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed
    NOW WE PULL OUT THE NETWORK CABLE connecting the two servers.
    SQL> select dummy from test_view;
    select dummy from test_view
    ERROR at line 1:
    ORA-02068: following severe error from FIRST9.XXXX.COM
    ORA-03113: end-of-file on communication channel
    So all you have to do is to test for the communications error.

  • OWB 10g -- Can't Create Database Links for Data Source and Target

    We installed OWB 10g server components on a Unix box running Oracle 10g (R2) database. The Designer Repository is in one instance. The Runtime Repository and the Target are in another instance. The OWB client component was installed on Windows XP. We create a data source module and a target module in OWB. The data source is on another Unix box running Oracle 9i (R2) database. We try to create database links for data source module and target module, respective. But when we created and tested the DB links, the DB links were failed.
    For the database link of data source, we got the following error message:
    Testing...
    Failed.
    SQL Exception
    Repository Error:SQL Exception..
    Class Name: CacheMediator.
    Method Name: getDDEntryFromDB.
    Repository Error Message: ORA-12170: TNS:Connect timeout occurred
    For the database link of target , we got the following error message:
    Testing...
    Failed.
    API2215: Cannot create database link. Please contact Oracle Support with the stack trace and the details on how to reproduce it.
    Repository 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-00933: SQL command not properly ended.
    However, we could connect to the two databases (data source and target) using the OWB’s utility SQL Plus.
    Please help us to solve this problem. Thank you.

    As I said prior the database link creation should work from within the OWB client (also in 10).
    Regarding your issue when deploying, have you registered your target locations in the deployment manager and did you first deployed your target location's connector which points out to your source?
    I myself had some problems with database link creations in the past and I can't remember exactly what they were but it had something to do with
    - the use of abnormal characters in the database link name
    - long domain name used in as names.default_domain in my sqlnet.ora file
    What you can do is check the actual script created when deploying the database link so see if there's something strange and check if executing the created script manually works or not.

  • OWB can not create database link

    Hello!
    We use OWB 10.1. We are unable to create database link in the owb as a source for metadata information. The database user we use to connect to the owb have got the right to create database links and the same user can create database links outside the owb. we get the error message
    Testing...
    Failed.
    API2215: Cannot create database link. Please contact Oracle Support with the stack trace and the details on how to reproduce it.
    the database user is not the owner of the repository. if we use the repository owner to create the database link it works.
    it is also impossible to use a database link, that is created outside the owb, if we use an user that is not the repository owner.
    the error message is:
    java.sql.SQLException: ORA-02019: connection description for remote database not found
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:158) ....
    with the owner everything works fine.
    Regards Alex

    hi,
    If public dblink is a problem then u can create the table with PUBLIC SYNONYM and create a synonym of the table in ur DB so that u can access the table in ur DB and still make I/U/D in the table in the other DB. We just have to grant previlege for the synonym created for DML statements.
    Regards
    Bharath

  • Error Creating Database link

    Hello Everybody,
    I am getting the following error while creating the database link using the connection information at OWB Client.
    Testing...
    Failed.
    ORA-12514 TNS: no listener
    *Cause:   The connection request could not be completed because the listener is not running
    *Action:   Ensure that the supplied destination address matches one of the addressed used by the listener
    -compare the TNSNAMES.ORA entry with the appropriate LISTENER.ORA file
    Start the listener on the remote machine.
    The version of OWB Client is 10.1.0.2.0.
    When queried at oracle using the userid which i used to login OWB Client i.e. as shown below
    select db_link from all_db_links - the database link is created. But none of the obects are accessable with the db link.
    Note: I am able to create a database link explicity by issuing the command at backend oracle i.e create database link etc. and also able to access the tables.
    Kindly help.
    Thanks
    Prashanth

    Prashanth
    my guess is that you can create the database link, which simply points to the remote instance. however, the problem is on the remote instance.
    As the error message suggest, make sure that the listener is up and running on the remote machine. The link can be created, but if there is no listener on the other side, you will not get any response.

  • 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

  • Create database link not working..

    sir,
    i have created a database link using the following statement.
    create database link orcl.vishnu.com;
    but when i tried to insert the data it i get
    ora-02019 connect description for remote database not found..
    on both the database i have the same logins with the same passwords.. i have even created a serice name called orcl.vishnu.com. and it works well when connect manually.
    when i use the following statement it works..
    create database link link1 connect to vishnu identified by password using 'orcl.vishnu.com';
    and also the insert statement works.
    when i use the below statement then it fails again...
    create database link link1 connect to current_user using orcl.vishnu.com...
    it fails again.. saying that the userid and password is wrond...

    hi,
    You have must first read through the documentation and understand things, then you will understand the difference and you will not get the Issues.
    http://www.psoug.org/reference/db_link.html
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_5005.htm
    Wish you Happy New Year 2010...!!
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • Urgent: How to create db link in OWB through wizard ? Where is that wizard

    Hi,
    I am facing problem in finding database link creation wizard in OWB.
    Connectors are created. How to use them in creating database link and where is the option to create the database link in OWB?
    Thank you in advance.
    Regards,
    Amit.

    Ola Amit,
    You can create database links within the ORACLE Modules you define.
    Expand Databases/Oracle and right click on one of the modules.
    You will see four tabs. The third will allow you to select or define database links
    Select one of the already existing links or create a new one by selecting the Create DB Link button...
    This is for the OWB version 10.1.x
    Regards,
    Moscowic

  • About 'create database link ...'

    Dear all,
    I just have forgotten to have the exact syntax for such statement. I even used this:
    create database link te
    connect to testdb identified by test using 'abc';
    But it failed.
    Thks & Rgds,
    Edward

    From the looks of your statement, I'm guessing that "testdb" is your instance name, and "test" is the user name. If that's right, then the statement is wrong.
    It should be like this:
      create database link te
      connect to test identified by <tests_password> using 'abc'Of course, fill in <tests_password>.
    Note that 'abc' needs to be in the local DB's tnsnames.ora file.
    Tom Best

  • Can't create database link when password has special character

    I'm trying to execute the following statement within sqlplus
    create database link alpha connect to scott identified by tiger! using 'db_alpha'
    note that the password for the account has an exclamation point in it. the command fails. I've tried placing the password in quotes (') and double-quotes ("). The double-quotes work, but then the link fails to function properly.
    We are required to have a special character in our passwords... so how do I get that special character into the password for the database link?
    Thanks in advance,
    Darren

    for some weird reason, I can't post the reply I want. every time I try, the forum hangs and doesn't save the message. give me a sec...
    I have put the password within double quotes... so I'm starting to think the problem is something else. I've been reading other posts regarding creating database links and I've obtained limited results. Here's what I've done, and the results I'm getting.
    (names changed to protect the innocent)
    My oracle database is on SYSA. I'm on SYSB. I set my TWO_TASK=SYSA and just use sqlplus to connect as user1.
    I want to run a command on user2's tables. Normally I would just grant read access to user1 on user2's tables and use a command like
    nert spaces to get this to save (weird forum bug here, I can't delete the text to the left)
    SQL> sel{color:black}{color}ect * fr{color:black}{color}om u{color:black}{color}s{color:black}{color}e{color:black}{color}r{color:black}{color}2{color:black}{color}.{color:black}{color}m{color:black}{color}y{color:black}{color}_{color:black}{color}t{color:black}{color}a{color:black}{color}b{color:black}{color}l{color:black}{color}e{color:black}{color};
    However, user2 is for test data and those tables get dropped and recreated often and it is cumbersome to try to remind everyone to recreate the grants. So I can't trust that user1 will have access to user2's tables. So my goal with the database link is to create a private (for user1 only) database link and access the tables that way, that way I bypass the grant issue. This works out better for me because we only change that password every 2 months. I just recreate the database link once every two months, rather than recreate grants multiple times every week. Well, that's the theory anyway.
    Back to creating the database link, I thought my issue was the special character in the password because if I remove the exclamation point everyting works (except that the password is invalid). Below is what it looks like when I do this...
    Attempt #1:
    SQL> create database link BLAH connect to user2 identified by "tiger" using 'BLAH';
    Database link created
    SQL> sel{color:black}{color}ect * fr{color:black}{color}om my{color:black}{color}_{color:black}{color}table{color:black}{color}@{color:black}{color}BLAH;
    sel{color:black}{color}ect * fr{color:black}{color}om my{color:black}{color}_{color:black}{color}ta{color:black}{color}ble{color:black}{color}@{color:black}{color}BLAH
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from BLAH
    So that looks like it's just a password issue. If I put in the correct password... the error changes to this...
    Attempt #2:
    SQL> create database link BLAH connect to user2 identified by "tiger!" using 'BLAH';
    Database link created
    SQL> sel{color:black}{color}ect {color:black}{color}* fr{color:black}{color}om my{color:black}{color}_{color:black}{color}table{color:black}{color}@BLAH;
    sel{color:black}{color}ect * fr{color:black}{color}om my{color:black}{color}_ta{color:black}{color}ble{color:black}{color}@BLAH
    ERROR at line 1:
    ORA-02085: database link BLAH.AAA.BB.CCC.DDD connects to
    DEVDB.AAA.BB.CCC.DDD
    To me, that doesn't make sense. If the link isn't working... how did it get the "invalid username/password" in Attempt #1?
    Anyway, in perusing other forum posts, one post said to put in the full text from the tnsnames.ora file instead of the alias. So I do a little cut/paste and try this...
    Attempt #3:
    SQL> create database link BLAH connect to user2 identified by "tiger!" using
    2 '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = server001.aaa.bb.ccc.ddd)(PORT = 9999)))
    3 (CONNECT_DATA = (SERVICE_NAME = devdb)))';
    Database link created.
    SQL> sel{color:black}{color}ect {color:black}{color}* fro{color:black}{color}m my{color:black}{color}_{color:black}{color}tab{color:black}{color}le{color:black}{color}@BLAH;
    sel{color:black}{color}ect {color:black}{color}* fr{color:black}{color}om {color:black}{color}my_{color:black}{color}tab{color:black}{color}le@B{color:black}{color}LAH
    ERROR at line 1:
    ORA-02085: database link BLAH.AAA.BB.CCC.DDD connects to
    DEVDB.AAA.BB.CCC.DDD
    Any ideas on what I'm doing wrong?
    Darren

  • Special characters in password for "create database link"

    It seems that one cannot create a DB link if the password has a special character in it (like '!')?
    create database link MYLINK connect to SOURCE identified by mypwd! using 'MYDB'
    - returns "ORA-00933: Command not properly ended"
    create database link MYLINK connect to SOURCE identified by values 'mypwd!' using 'MYDB'
    - returns "ORA-00988: missing or invalid password(s). This is the syntax that works in "create user".
    Nikolai

    1* create database link MYLINK connect to SOURCE identified by "mypwd!" using 'MYDB'
    SQL> /
    Database link created.
    SQL>
    Joel Pérez

  • To create database link to connect to remote database

    Hi all
    I am using 10g with apex4.
    My apex application is running on our server.
    I need to connect to a remote server to get data from there.for that i need to create a database link from apex.
    When i tried to create a database link from apex sql commands window it is showing insufficient privilages.
    So i created one database link from back end but it is not accessible from apex...
    can some one help me in this...
    its urgent.....
    thanks in advance

    Hi,
    You need create database link to schema that is assigned to your workspace (application parsing schema)
    Schema need have CREATE DATABASE LINK system privilege.
    Regards,
    Jari
    Edited by: jarola on Aug 1, 2011 3:34 PM
    See documentation
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/advnc.htm#BABBFICH

  • How can i Create Database Link

    Dear Expert,
    I have two servers on that there are two databases then
    how can i create database link.

    CREATE [SHARED][PUBLIC] DATABASE LINK link_name
    [CONNECT TO user IDENTIFIED BY password]
    [AUTHENTICATED BY user IDENTIFIED BY password]
    [USING 'connect_string']

  • 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,

Maybe you are looking for

  • 3rd Strike -or- How I Learned to Hate Skype

    I believe I've made a huge mistake with my serious efforts to embrace Skype as a viable option to conduct personal business, let alone relying on Skype to keep me in touch with my loved ones. I type "3rd Strike" in my subject-line, but it's more like

  • How to enable the default pdf viewer of firefox after installing acrobat 11?

    I installed acrobat 11, and i dont like its pdf viewer add-on, so i want to switch back to firefox's default pdf viewe, but i cant change the action in the application option to preview in firefox. i also tried disabling the acrobat plugin. Firefox 2

  • My mac mini crash too often

    I get a mac mini last month with OSX 10.4.1 i18n version, upgraded to 10.4.2. It has 512MB ram and 80GB hard disk. I have X, Java 1.5 and fink installed. It crash a lot, like as if I am running windows 98. I erased the current user's perference and I

  • A save request exceeded the quantity limits for a given structure type.

    I am running PI7.1 SP6.. I have created all the objects and done all of the configuration in the Enterprise Service Builder and the Integration Builder and I am trying to publish the Webservice in the Service Registry, but after displaying the WSDL,

  • Not getting Movies in UK

    I am based in the UK and used to have a movies section on my Apple TV. However just recently I only have a Trailers section. I have checked that I have the latest updates. What is going on ?