Database Link with 11g R2 and Teradata

Trying to create a database link from Oracle to a Teradata database using Oracle Database Gateway, and I'm receiving ORA-12154: TNS:could not resolve the connect identifier specified...
I'm pretty new at this and my head is spinning a bit.  After following the gateway configuration instructions it seems there are 3 sets of tnsnames.ora/listener.ora/sqlnet.ora files
1) on the database server
2) on my local computer where oracle is installed
3) on my local computer where the gateway is installed
Is this how it should be?  Which set should I be working with to resolve this error?  Any other advice for this newbie would be amazing!  Let me know what other information I can share to help describe the issue.  I've tried so many things at this point, I'm not really sure what's relevant and what's not anymore.

Ok, got it.  I was not in the command prompt as an administrator for my first couple attempts.  Results are below.  I have been replacing host names with italicized descriptions because this is my first time posting on a forum and I'm not sure that my employer would be okay with me posting those specifics.  Let me know if this is hindering the troubleshooting process.
STATUS of the LISTENER
Alias                     LISTENER
Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date                18-JUN-2014 10:01:08
Uptime                    0 days 0 hr. 0 min. 5 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   C:\product\11.2.0\tg_1\network\admin\listener.ora
Listener Log File         c:\product\11.2.0\tg_1\log\diag\tnslsnr\COQC2DPRDMGT00
1\listener\alert\log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=local computer where gateway is installed)(P
ORT=1521)))
Services Summary...
Service "dg4tera" has 1 instance(s).
  Instance "dg4tera", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\WINDOWS\system32>
C:\WINDOWS\system32>tnsping dg4tera
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 18-JUN-2
014 10:02:03
Copyright (c) 1997, 2010, Oracle.  All rights reserved.
Used parameter files:
C:\oracle\product\11.2.0\client_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=local computer where gateway is installed) (PORT=1521)) (CONNECT_DATA= (SID=dg4tera)) (HS=OK))
OK (10 msec)
C:\WINDOWS\system32>
C:\WINDOWS\system32>

Similar Messages

  • Database link with the alias and full description in the connect string

    Hi,
    i have created database link with alias in tnsentry and full description
    and suppose i have removed the tnsnames.ora file what will be the impact on the database link that is whether database link will work or not i am sure db link created with alias won't work and how about db link created with full description and which one you prefer
    Thanks

    # Parameter file initora for Database prd
    ### Global database name is db_name.db_domain
    global_names = TRUE
    db_name = prd
    db_domain = world
    # TNSNAMES.ORA for prd ###############################
    prd.world = (DESCRIPTION = (ADDRESS = (COMMUNITY = tcp.world)
    (PROTOCOL = TCP) (Host = 100.10.100.1) (Port = 1521))
    (CONNECT_DATA = (SID = prd) (GLOBAL_NAME = prd.world)
    (SERVER = DEDICATED)))
    Our database link points from the local database test to the remote database prd. Therefore we need the global database name for prd. Ask the remote database administrator for these information or connect to prd and execute the following query on prd:
    SQL> select GLOBAL_NAME from GLOBAL_NAME;
    GLOBAL_NAME
    prd.WORLD
    CREATE DATABASE LINK prd
    CONNECT TO system IDENTIFIED BY system_passwd
    USING 'prd';--- alias
    so the connection description will be ---select ename from [email protected]
    useful link
    http://www.akadia.com/services/ora_dblinks.html

  • Using database link  with a dynamic SQL in Forms 5

    I have a Form 5 application where a database link is specified in a client version of dynamic SQL. The function that the application is designed to perform is to access data in a table in a remote database and use it to populate another table in a local database with the same structure as the source table. Dynamic SQL is used because the name of the table can only be resolved during run time.
    The problem is that it gives error with code 'ORA-03113' and text 'End-of-file on communication channel' when you try to run it.
    Is it not possible to use a database link with a dynamic SQL? What can I do to overcome the problem ?

    Try to create a local view based ao the remote table and use the view.

  • Database link with current_user

    I'm logged on database EMSDB.D710.DE and created a database link to EMSDB.D999.DE with current_user(...same user, same credentials I'm logged in). When I tried to use that created link I get the errorcode:"ORA-01017: Benutzername/Kennwort ungültig; Anmeldung abgelehnt". What I don't understand is, why I can connect to EMSDB.D999.DE --- but not access to the same database with a database link???
    SELECT     'EMSDB.D999.DE'               REMOTE_DB   --NAME OF DATABASE 
    FROM DUAL;
    VARIABLE VAR_REMOTE_DB VARCHAR2(15);
    BEGIN
        :VAR_REMOTE_DB := '&REMOTE_DB';
    END;
    SELECT  :VAR_REMOTE_DB                REMOTE_DB    
    FROM DUAL;
    CREATE DATABASE LINK &REMOTE_DB CONNECT TO CURRENT_USER USING '&REMOTE_DB' ;
    SELECT TABLE_NAME FROM ALL_TABLES@&REMOTE_DB;output
    SQL> @test
    REMOTE_DB
    EMSDB.D999.DE
    REMOTE_DB
    EMSDB.D999.DE
    SELECT TABLE_NAME FROM [email protected]
    FEHLER in Zeile 1:
    ORA-01017: Benutzername/Kennwort ungültig; Anmeldung abgelehnt
    SQL>Edited by: user5116754 on 22.02.2011 04:33

    user5116754 wrote:
    Thank you, John...but should it be possible for me to create this database link then???
    As I said, if you are not a global user according to Oracle, you would need to create a database link supplying the username and password of the user at the remote database that you want to use. Something like:
    CREATE DATABASE LINK EMSDB.D999.DE
    CONNECT TO username IDENTIFIED BY password
    USING 'EMSDB.D999.DE';
    How to spy out, what kind of user (GLOBAL...) I am?Log into the local database and do:
    SELECT external_name
    FROM user_uses;If that return null, then you are not a global user, if it returns a value, you are a global user in that database. Log into the remote database (whatever is identified by emsdb.d999.de) and do the same thing. If the external names on both databases are not null and have the same value, then you are a global user on both databases, and the current_user should work, otherwise you are ethe not a global user on one or both databases, or you are a different global user on the two databases.
    John

  • Please can you help me to solve my problem  ( I have iphone is linked with Apple ID and I forgot that Apple ID and I can't remember it , I need thats Apple ID to activate my iphone ,,, what should I do ?

    please can you help me to solve my problem  ( I have iphone is linked with Apple ID and I forgot that Apple ID and I can't remember it , I need thats Apple ID to activate my iphone ,,, what should I do ?

    mohammed aljasim wrote:
    there are many people that error is happened with them and one of this people is me ,, Apple must be find the solution for this problem
    You are absolutely WRONG. Apple bears no responsibility in this at all. YOU purchased a STOLEN phone. You are guilty of receiving stolen property at best. Take it back to wherever you bought it and demand a refund. Failing that, turn it over to the police. You got ripped off. I'm sorry you wasted your money, but there is NOTHING Apple or anyone else can do for you. Only the rightful owner of the phone can unlock it.

  • HT2500 Hi, I have a problem with my mac mail account. Its linked with my website and i've just transferred my domain and host plan to 123-reg.co.uk Now for some reason emails disappear from my inbox! Emails come in and then my inbox is empty.. Help!

    Hi, I have a problem with my mac mail account. Its linked with my website and i've just transferred my domain and host plan to 123-reg.co.uk Now for some reason emails disappear from my inbox! Emails come in and then my inbox is empty.. Help!

    Lord K.  Thank you. Yes I am within the 90 time period, however I travel Intertionally and I can not receive not make a call to Apple. I was just at the Genius Bar in Chicago and they said, don't worry about it.  It just floats out there, however, I can not recover my messages on a flash drive. I need to go back to my old computer which I don't have with me.  My messages were in folders for a lawsuit.  It is going to take an incredible amount of work for me to, you have no Idea.  We are talking thousands of pages!  I the defendent will have them during discovery so I am not so worried.  However, I can not bring them to him on a Flashdrive when I meet with him without an extraordinary amount of presssure on my part.  THis is not just some little email issue. This is suing EXPEDIA and Tripadviosr.com

  • Database link from 11g to 10g

    I am trying to create a database link from the 11g database to the 10g database using:
    create database link ORCL10R2 connect to <username10g> identified by <password10g> using <db10g>;
    It Returns
    Database link created.
    select sysdate from dual@ORCL10R2 returns error:
    ERROR at line 1:
    ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    Please let me know what changes I need to make to tnsnames and listener at both servers.

    11g database: 10.1.1.10
    10g database: 10.1.1.12
    TNSNAMES.ORA at 10.1.1.10
    XYZ =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.10)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XYZ)
    LISTENER.ORA at 10.1.1.10
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.10)(PORT = 1521))
    what needs to be modified here?
    Edited by: 944558 on 5 Jul, 2012 12:27 AM

  • Database link from 11g to 10 g

    I am trying to create a database link from the 11g database to the 10g database using:
    create database link ORCL10R2 connect to <username10g> identified by <password10g> using <db10g>;
    It Returns
    Database link created.
    select sysdate from dual@ORCL10R2 returns error:
    ERROR at line 1:
    ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    Please let me know what changes I need to make to tnsnames and listener at both servers.

    i think this question is not related to sql or pl sql.
    Please Post here
    General Database Discussions
    Venkadesh

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

  • Stored procedure with database link with "from table(...)"

    Hi guys,
    I've been told I can't create views on a database by the design team and so have to use this stored procedure to obtain the values.
    select HAN_ID, HAN_DS, GLOBAL_IN, LOCAL_IN
    from table(cast(ODADMIN.ODP00002_QUERY.Execute001@DBLINK(11312,'EN') as
    ODADMIN.ODP00002_001_Array@DBLINK)) WHERE LOCAL_IN = 'Y';I've been told that it works when you remove the database links (so on the actual database) when you remove the cast part. I've tried it with my link and with/without the cast part but it doesn't work. With the example above I get the error: ORA-00907: missing right parenthesis.
    When I remove the CAST-AS and the additional parenthesis it brings i get the error: ORA-00904: "ODADMIN"."ODP00002_QUERY"."EXECUTE001": invalid identifier
    When I do table( *"* ODADMIN.ODP00002_QUERY.Execute001@MWW_DEV(11312,'EN') *"* )... -- wrapping the call in speech marks I get: ORA-00972: identifier is too long
    Anyone see what's wrong? Thanks for any help.
    Mike

    Hi Ben,
    Asking now. By a view I mean one local to the database; I could create one on APEX but then I use the database link twice instead of just 1.
    His reasoning Ben:
    Firstly, Maintenance. We will have to maintain additional views (at additional code). Secondly, if the view has a JOIN, then you can't update through it (without complexities). If we have to get the View to pass the data to a Procedure (that's a pain). Also, standards..
    All update occur via either a Procedure, or a Base view, across over 1000 tables
    That's the standard, and doing things differently is costly long term
    People will not know how it works, it will have to be explained, maintained..etc.
    If the Application has the Business Rules, then updates via Base Views, that's a more standard way of developing. Also, if you update via this view, you'll update multiple rows in one call, which is in-effficient if only ONE row needs to change. Therefore, single row updates from the Application is more efficient
    The procedure is as follows:
    --SET SERVEROUTPUT ON
    DECLARE
    nPBusLoc       NUMBER(5):=11312;
    sPHanId        VARCHAR2(3):='SB1';
    sPLngId        VARCHAR2(2):='EN';
    sPDesc         VARCHAR2(30);
    sPAllowAlloc   VARCHAR2(1);
    sPShowEnq      VARCHAR2(1);
    sPAllowDel     VARCHAR2(1);
    sPShowScan     VARCHAR2(1);
    sPGlobalLocal  VARCHAR2(1);
    sPReturnCd     VARCHAR2(2);
    sPReturnTx     VARCHAR2(100);                  
    BEGIN
    ODADMIN.ODP00001.getHandlingCodes
                           (nPBusLoc    --  IN   NUMBER
                          ,sPHanId      -- IN   VARCHAR2
                          ,sPLngId      -- IN   VARCHAR2
                          ,sPDesc       -- OUT  VARCHAR2
                          ,sPAllowAlloc -- OUT  VARCHAR2
                          ,sPShowEnq    -- OUT  VARCHAR2
                          ,sPAllowDel   -- OUT  VARCHAR2
                          ,sPShowScan   -- OUT  VARCHAR2
                          ,sPGlobalLocal-- OUT  VARCHAR2
                          ,sPReturnCd   -- OUT  VARCHAR2
                          ,sPReturnTx   -- OUT  VARCHAR2                                    
    DBMS_OUTPUT.PUT_LINE('nPBusLoc                 = '||nPBusLoc              );
    DBMS_OUTPUT.PUT_LINE('sPHanId                  = '||sPHanId               );
    DBMS_OUTPUT.PUT_LINE('sPLngId                  = '||sPLngId               );
    DBMS_OUTPUT.PUT_LINE('sPDesc                   = '||sPDesc                );
    DBMS_OUTPUT.PUT_LINE('sPAllowAlloc             = '||sPAllowAlloc          );
    DBMS_OUTPUT.PUT_LINE('sPShowEnq                = '||sPShowEnq             );
    DBMS_OUTPUT.PUT_LINE('sPAllowDel               = '||sPAllowDel            );
    DBMS_OUTPUT.PUT_LINE('sPShowScan               = '||sPShowScan            );
    DBMS_OUTPUT.PUT_LINE('sPGlobalLocal            = '||sPGlobalLocal         );
    DBMS_OUTPUT.PUT_LINE('sPReturnCd               = '||sPReturnCd            );
    DBMS_OUTPUT.PUT_LINE('sPReturnTx               = '||sPReturnTx            );
    END;
    /Mike
    Edited by: Dird on 27-Aug-2009 01:50

  • Slow Query over Database Link with Bind Variable

    I have a query over a DB link, with all tables on the remote database.
    If I use a bind variable (from Toad), the query takes 4 minutes. If I replace the bind variable with a constant or substitution variable, it takes 1 second.
    The query runs fine when run directly on the remote database using bind variable.
    9.2.0.7

    Look up "Bind variable peeking"
    What's happened is you have an execution plan that differs from the one with the constant. Why? My bet is that Oracle "peeked" at the bind variable to help it decide which execution plan to build. It then cached it. It probably cached an execution with an index when it should be doing a full table scan or a hash join instead of a nested loop. It's hard to say specifically what it is.
    Try this, flush your shared pool and rerun the query with the bind and let us know if it takes 1 second or 4 minutes. If it takes 1 second, then that was probably it.
    Read part 2 of Tom Kyte's blog post on what it is and it's behavior.
    http://tkyte.blogspot.com/2007/09/sqltracetrue-part-two.html

  • My iphone is linked with my pc and i want to use my laptop for the icloud

    My iphone is linked with my pc but i want to use my laptop and connet via icloud HOW????

    is your pc you mentioned the same as your laptop?
    here's a link
    http://www.apple.com/icloud/setup/pc.html

  • G/L accounts linking with sales tax and VAT

    Hi gurus,
             I want to link the G/L account with Sales tax and VAT for this wat i can do and where,plz help me, it is very urgent.
    Regards,
    Dharma.

    there r four steps to link sale tax
    step 1  go to OBYZ
    Create tax procedure to your company code
    step 2 Go to FTXP
    step 3 Go to FS00
    step 4 go to OB40
    srikant

  • Link with table CAWN and MSEG

    Hi Friend how can i link with clasification
    fields(CAWN-ATWRT) with meterial document no(MSEG-MBLNR)
    in MM in the transaction migo.
    Thanks and Regards
    D Tarun Kumar
    Edited by: Devalla Tarun Kr. on Sep 9, 2008 2:29 PM

    If you want the Material Classification, then for each Material in the Material Document (MSEG-MBLNR) get the CUOBJ value from the MARC Table. Input the MARC-CUOBJ in the CAWN-ATINN to get the ATWRT Value for the same.
    Hope it was clear.
    Thanks and Regards,
    Venkat Phani Prasad Konduri
    Edited by: Konduri Venkata Phani Prasad on Sep 9, 2008 6:15 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

Maybe you are looking for

  • How do I scan with a white background? Instead of a black background.

    WHen I scan something with my flatbed scanner there is black All around the area expect for the image or documents I am scanning. How do I remove or scan to where it will be white in the background ?

  • Business Objects Homogeneous System Copy for [PCM - VENDAVO - Dataserver ]

    I am looking for any SAP supported process/method to perform system copies or transports with these products to set a standardized landscape where N1 (DEV) -> N1 (QA) --> [ Block Point ] --> N (DEV) --> N (QA) --> N (Pre-Prod) --> N (Prod). With ECC,

  • "Your browser does not support applets" Error

    No matter what site I go to I get a Box with a small red x in it, instead of the applet. I have removed all versions of Java. Reinstalled IE7 to the latest version. And reinstalled Java to the latest version. I've checked the settings in both the IE

  • FTI_TR_POSITIONS with LDB_PROCESS

    Hello everybody I am trying to get data ouf of the LDB FTI_TR_POSITIONS but all I get is a runtime error: LDB_SELECTIONS_NOT_ACCEPTED what am I doing wrong? DATA callback LIKE ldbcb OCCURS 0 WITH HEADER LINE.     DATA seltab   LIKE rsparams OCCURS 0

  • Dynamically calculating values and validating in reports

    Hi I need to be able to calculate and display the running total of column (representing a % - sales allocation) within an updatable report as the users steps off the row after making a change to the allocation. Greatful for your suggestions on ways o