Why use Transparent gateway in stead of heterogenous Connectivity

I am looking for a solution to update data in a AS400 environment through a oracle DB.
I found information to do this. I can use transparent gateways or Generic Connectivity.
Generic connectivity is free and for transparent gateways I have to pay.
But what is the different between the two?
What is the limitation of Generic connectivity?

As you stated, Generic Connectivity is for free - from the Oracle license point of view.
But it requires a 32bit ODBC driver from a 3rd party vendor which might require to purchase a license for the ODBC driver.
The big difference is GC (=HSODBC) is NOT availbale for all platforms (only in 10g for Sun Sparc Solaris, AIX, HP-UX RISC, Linux 32bit and Windows) AND it is bundled with the Oracle database. This means you MUST have an Oracle database installed on the machine where you configure generic connectivity.
The gateway (TG4DRDA) or TG4DB2400 is independant from an Oracle db.
TG4DB2400 is installed on the AS400 machine and you can connect from any Oracle db on any platform to the gateway which then handles the connection.
Similar for TG4DRDA; only the platform availibility is different.
The next big difference/advantage of the gateways is the 2PC (2 phase commit) or distributed update control. You can insert something into the Oracle db and without commiting into the foreign db. Now commit your work and the gateway takes care that the transaction is only valid if BOTH inserts went well.

Similar Messages

  • Lost RPC connection - Oracle 8 to DB2 using Transparent Gateway

    Frequently I'm getting the following message when connecting to DB2 database:
    "lost RPC connection to heterogeneous remote agent using..."
    The problem is that most of the time it works fine, but at least once a day I get this error... and the system is in production phase!!!
    *I have Oracle8 connected to DB2 using Transparent Gateway
    Any clue? Please help...
    Thanks Eduardo

    I am also getting this error while connecting to DB2. It works some time.

  • Hang using Transparent Gateway

    Hi,
    I am configuring the Transparent Gateway for connecting oracle to mssql. But it hangs when I execute a query.
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from v$mystat where rownum=1;
    SID STATISTIC# VALUE
    145 0 1
    SQL> select count(*) from dbo.Deps@SYMANSITESDB; ---- It hangs here.
    SQL> select a.SESSION_ID,b.OBJECT_NAME,a.LOCKED_MODE from v$locked_object a,dba_objects b where a.OBJECT_ID=b.OBJECT_ID;
    SESSION_ID OBJECT_NAME LOCKED_MODE
    145 HS$_FDS_CLASS 3
    145 HS$_FDS_INST 3
    145 HS$_CLASS_CAPS 2
    145 HS$_INST_CAPS 2
    145 HS$_CLASS_DD 2
    145 HS$_INST_DD 2
    145 HS$_CLASS_INIT 2
    145 HS$_INST_INIT 2
    145 HS$_FDS_CLASS_DATE 3
    9 rows selected
    SQL> select * from v$lock where sid=145;
    ADDR KADDR SID TYPE ID1 ID2 LMODE REQUEST CTIME BLOCK
    41043E18 41043E2C 145 CU 1020195160 0 6 0 1132 0
    40090F90 40090FA8 145 TM 8543 0 3 0 1132 0
    40091054 4009106C 145 TM 8549 0 3 0 1129 0
    40091118 40091130 145 TM 8559 0 2 0 1132 0
    400911DC 400911F4 145 TM 8577 0 2 0 1132 0
    400912A0 400912B8 145 TM 8589 0 2 0 1132 0
    40091364 4009137C 145 TM 8607 0 3 0 1129 0
    40091428 40091440 145 TM 8565 0 2 0 1129 0
    400914EC 40091504 145 TM 8583 0 2 0 1129 0
    400915B0 400915C8 145 TM 8595 0 2 0 1129 0
    400F158C 400F15B0 145 TX 65548 104600 6 0 1129 0
    11 rows selected
    SQL>
    SQL> select event from v$session_wait where sid=145;
    EVENT
    HS message to agent
    Please give me some suggests how to resolve it?
    Thanks.

    Hello,
    why are you using special character name @ in the select statement?
    select count(*) from dbo.Deps@SYMANSITESDB??
    Kind regards
    mohamed

  • Linking to SQL Server using Transparent Gateways

    I want to use the Transparent Gateways to link to a SQL Server DB.
    I downloaded Oracle Enterprise Server from OTN.
    As far as I can tell, the Transparent Gateways are supposed to be bundled with Oracle Enterprise Server, but I can't find them from the Universal Installer.
    Does anyone know how I install the Gateways? Are they included with the downloaded Oracle Enterprise Server? If not, do I need to get the Oracle Enterprise Server CD Pack?
    Thanks
    Mike

    You did create a DUAL table in the Sqlserver database?
    Sybrand Bakker
    Senior Oracle DBA

  • Accessing SQL Server from ORACLE using Transparent Gateway

    So I had downloaded the gateway installer and was following the guide here to set up the Transparent Gateway for SQL Server: http://www.orafusion.com/art_orahs.htm
    After I had created the database link, I was prompted the following error when trying to do a simple select statement from the SQL Server DB:
    >
    ORA-12154: TNS:could not resolve service name
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    *Action:  
    - If you are using local naming (TNSNAMES.ORA file):
    - Make sure that "TNSNAMES" is listed as one of the values of the
    NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
    (SQLNET.ORA)
    - Verify that a TNSNAMES.ORA file exists and is in the proper
    directory and is accessible.
    - Check that the net service name used as the connect identifier
    exists in the TNSNAMES.ORA file.
    - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
    file. Look for unmatched parentheses or stray characters. Errors
    in a TNSNAMES.ORA file may make it unusable.
    - If you are using directory naming:
    - Verify that "LDAP" is listed as one of the values of the
    NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    (SQLNET.ORA).
    - Verify that the LDAP directory server is up and that it is
    accessible.
    - Verify that the net service name or database name used as the
    connect identifier is configured in the directory.
    - Verify that the default context being used is correct by
    specifying a fully qualified net service name or a full LDAP DN
    as the connect identifier
    - If you are using easy connect naming:
    - Verify that "EZCONNECT" is listed as one of the values of the
    NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    (SQLNET.ORA).
    - Make sure the host, port and service name specified
    are correct.
    - Try enclosing the connect identifier in quote marks.
    Error at Line: 3 Column: 27
    >
    Here are my configuration files:
    initMSQL.ora
    >
    HS_FDS_CONNECT_INFO=webdatasvr:1433.InfoWeb
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    >
    listener.ora
    >
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC=
    (GLOBAL_DBNAME=UGCMAC)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (SID_NAME=UGCMAC)
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = MSQL)
    (ORACLE_HOME = C:\oracle\product\11.2.0\tg_1)
    (PROGRAM = dg4msql)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS LIST=
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1524))
    >
    tnsname.ora
    >
    UGCMAC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = UGCMAC)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    MSQL=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1524))
    (CONNECT_DATA =
    (SID = MSQL)
    (HS=OK)
    >
    Can anyone assist me? thanks!

    Hi kgronau,
    >
    After changing a listener.ora file you need to STOP and START the listener to get the changes loaded. It looks like your listener is not serving the 1524 port which could be related to the fact that you didn't stop/start the listener after you've edited the listener.ora file.
    ... But as stated earlier - please do not use a 10.2 listener to start an 11g gateway. Instead configure the listener of the gateway home.
    >
    I did restart my listener under services.msc whenever I make the changes but there are no effect. Please also note that I can only find "OracleOraDb10g_home1TNSListener" under my services.msc. There is no 11.2 Listener. I did install the gateway and the installation was successful as far as I can tell. But perhaps because there's no 11.2 Listerner under my services.msc, could that mean it was a bad installation?
    >
    Next point is the tnsping you've used is 11.2. You need to make sure that you use the tnsping of the Oracle Database home as the database initiates the gateway connection so the database home tnsnames,ora needs the tns entry for the gateway.
    >
    My current PATH environment variables setting is as follow: C:\oracle\product\11.2.0\tg_1\bin;C:\oracle\product\10.2.0\db_1\bin; So perhaps, I just need to ensure the 10.2 ORACE home is the first?
    >
    As a final tip: There are so many web sites explaining how to configure DG4ODBC - many of them are faulty. If you need a reliable configuration, please have a look at "My Oracle Support" => How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install     [Document 466225.1]     )
    >
    Is there a link?
    Edited by: omnri on 21-Jul-2011 23:59

  • Can I join two tables from two different dbs by using transparent gateway?

    E.g.:
    select * from t1@rdb1, t1@rdb2
    Can this work?

    As previously stated you options depend on your Oracle version and platform and the target version and platform for the remote non-Oracle (well in this case mySQL) database.
    Oracle replaced HS or Generic Connectiivy with a new name and support module on 11g and maybe in 10g. You can see your manual CD or check the online documentation.
    For that matter you need to check to see if the Transparent Gateway product has a mySQL driver.
    The following Oracle support articles may be of interest.
    Master Note For The Oracle ODBC Driver [ID 741033.1]
    Detailed overview of connecting Oracle to MySQL using DG4ODBC database link [ID 1320645.1]
    Gateway Configuration Utility for Database Gateway for ODBC - DG4ODBC - to Connect to Non-Oracle Databases For Example - DB2, SQL*Server, Sybase, Informix, MySQL [ID 1274143.1]
    HTH -- Mark D Powell --

  • Nvarchar fields using Transparent Gateway for MS SQL

    We are using TG to make a number of tables/views available in an Oracle database. The tables in question contain a number of nvarchar fields which are expected to contain Unicode data. These fields cause a number of problems when accessed in Oracle. Firstly, queries returning any nvarchar(x) (for some x) fields hang when they are run in Oracle and it is necessary to reset the connection before running another query! Fields with type nvarchar(max) do come through, however they come through as type LONG, which is very difficult to do anything useful with in Oracle and cannot be searched on.
    We are working around the problem by creating views in MS SQL on top of our original tables/views which cast nvarchar(x) to varchar(x). We are then able to query these new views in Oracle, search on text fields etc. However, MS SQL does not properly support UTF-8 in varchar fields and the conversion results in downgrading our data to the latin-1 character set. Note casting nvarchar(x) to nvarchar(max) in MS SQL does not work, the queries still hang. We also have a problem where the length of the nvarchar field in MS SQL is longer than the max supported varchar2 length in Oracle. In this case TG will again provide a LONG converted field.
    We would like to know how to get full Unicode data to come across Transparent Gateway. We would be happy to get our data in the Oracle nvarchar2 type, or varchar2 with utf8 would also be fine, ideally with clob/nclob for over-length fields. Alternatively any solution which allows us to access full Unicode data would probably be acceptable. We only need to query the data from inside one ETL package, which will store the transformed data in Oracle, so a solution which involves a cast at this stage would also be acceptable, although obviously having the data show up correctly directly through TG would be better.

    Heya,
    Here is an example table in SQL Server:
    CREATE TABLE [dbo].[tblPnLCostNames](
         [ID] [int] IDENTITY(1,1) NOT NULL,
         [Name] [nvarchar](2048) NOT NULL,
         [Group] [nvarchar](50) NULL,
          [nvarchar](50) NULL,
         [Description] [nvarchar](1024) NULL,
    CONSTRAINT [PK_tblPnLCostNames] PRIMARY KEY CLUSTERED
         [ID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    And in Oracle I did this:
      CREATE TABLE "FOR_DW_DEV01"."UNICODE_COST_TEST"
       (     "ID_" NUMBER,
         "NAME_" LONG,
         "GROUP_" VARCHAR2(50 CHAR),
         "CODE_" VARCHAR2(50 CHAR),
         "DESCRIPTION_" VARCHAR2(1024 CHAR)
    Now I want to be able to say:
    insert into unicode_cost_test ( id_, name_, group_, code_, description )
    select "ID", to_lob( "Name" ), "Group", "Code", "Description" from tblPnlCostNames@my_link;
    The other fields are shorter and will go straight in to varchar2 fields as UTF-8 with no problems following some tweaks to the gateway ini file. Anything over 2000 characters comes across as a LONG, but trying to use the to_lob function results in "ORA-00997: illegal use of LONG datatype". Doing the same thing using a local table with a LONG field as the source works fine. Is to_lob supposed to work on LONG fields that come across the gateway?
    I found this in the 11.2.0.2.2 bugfix list:
    10157402 - lob segment has null data after long to lob conversion in parallel mode
    (ftp://ftp.hj.se/Oracle/Patchar/11.2.0.2/psu_april_2011/download.htm#BABDIEDD)
    Could this be related?
    The only way I have found to read the LONG fields so far that works is to use select into, and read each value individually!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Why use transparent firewall in data center?

    I've seen Cisco documentation recommendation transparent mode for firewall deployment in the data center, e.g. 5585X. I understand the key reasons for this are:
    - easy "insertion" of firewall in pre-existing network
    - speed (since there is no "hair-pinning")
    Assume that the above two are not a major concern (i.e. you can redesign your network to have the firewall hold default gateways and your firewall is much more powerful than your needs). Then from a financial perspective, it doesn't seem to make sense to do transparent firewall deployment of the 5585X for the following reasons:
    - you are limited to a maximum of 8 bridge-groups
    If you really want to follow best practices and implement fine segmentation of your network, you'll need to create 10s or 100s of VLANs and perform access-control on them. This limit of 8 BVIs means that you basically can have only 8 "segments" per context. After that, you have to resort to adding contexts as your grow (contexts introduce their own cost AND complexity).
    Am I missing something? Why would Cisco recommend transparent firewall for data center if cost is remotely a concern? I can't seem to find any good documentation justifying this. Thanks in advance for your experiences/insight.

    Hello Fouzan,
    I think you already covered it
    good job with the analisys, basically as you said is the hability to place the Transparent mode into the network enviroment , no routing stuff complications, etc , BUT as you said there are limitations,
    I would still use the routed mode due to the requirements you set but there will be scenarios when this will not be the case and a bridge-group or 2 will take care of everything so I transparent mode firewall would do it,
    Regards

  • Error while connecting oracle11g to sql server through transparent gateway

    Hello
    i'm facing this errors when i try to connect oracle 11g to sql server through transparent gateway:
    http://www.freeimagehosting.net/newuploads/d4454.jpg
    the directory for my db is : C:\oracle\product\11.1.0\db1
    and for the gateway: C:\oracle\product\11.1.0\dg4msql
    the configurations i used:
    gateway :
    tnsnames.ora:
    dg4msql =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=Kinda-PC)(PORT=1522))
    (CONNECT_DATA=(SID=dg4msql))
    (HS=OK)
    listener.ora:
    GATELIST =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Kinda-PC)(PORT = 1522))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = dg4msql)
    (SID_NAME = dg4msql)
    (ORACLE_HOME = C:\oracle\product\11.1.0\dg4msql)
    and for the oracle database :
    listener.ora
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = Kinda-PC)(PORT = 1521))
    tnsnames.ora:
    DB1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Kinda-PC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = db1)
    gateway =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=Kinda-PC)(PORT=1522))
    (CONNECT_DATA=(SID=dg4msql)
    (HS=OK)
    thanks :)
    Edited by: 903043 on Dec 18, 2011 6:18 AM

    Did you go through the various steps in the doc?
    There is a gateway specific forum below;
    Heterogeneous Connectivity
    Cheers
    David

  • Is transparent gateway needed to connect to IS Cache database?

    Hello,
    I have been asked by one of our developers how to create a connection from his Oracle 11.2 database to SQL Server and also InterSystems Cache' databases without having to use Transparent Gateway?
    Is this possible, and if so, how can it be done?
    (thanks in advance)

    Hi,
    You say - "I guess it means that Oracle Database Gateway is FREE (per se)" but to make the point again - only the Database Gateway for ODBC (DG4ODBC) is free. The other gateways need a license.
    If you run on Windows then many of the Microsoft ODBC drivers are free or included as part of other products so you do not need to pay for them, and also many non-Oracle database providers include an ODCB driver as part of the product, so again you do not need to pay for anything else to use DG4ODBC, for example MySQL.
    To interface with a Cache database you can use Dg4ODBC but you need to provide the ODBC driver. There is not a 'dedicated' database gateway for that product. That is why we provide the DG4ODBC which can interface with any non-Oracle database or datastore for which a compatible ODBC driver is available.
    This note available on My Oracle Support has information about the install notes on various platforms -
    Note.1083703.1 Master Note for Oracle Gateway Products
    Regards,
    Mike

  • A question about transparent gateway,sb help me plz!!

    hi all:
    i met a problem while trying the transparent gateway for ibm drda
    1.i have the listner.ora configured like this:
    =================================================================
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = felix)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = tg4drda)
    (SID_NAME = TEST)
    (ORACLE_HOME = E:\oracle\oradrda)
    =================================================================
    2.and the tnsnames.ora configured like this:
    =================================================================
    TEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.10.11)(PORT = 1521))
    (CONNECT_DATA =
    (SID = TEST)
    (SERVER = DEDICATED)
    (HS = ok)
    (HS = OK)
    =================================================================
    3.and the initTEST.ora configured like this:
    =================================================================
    set DRDA_CONNECT_PARM=localhost:446
    DRDA_REMOTE_DB_NAME=test (database name of db2)
    =================================================================
    then i log on as user system and create a database link dblink1.But when i try the sql statment "select * from t1@dblink1"
    such error came up:
    # ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    #ORA-02063:preceding 2 lines from dblink1
    somebody help me plz,tell me how to deal with such a problem,thanks a lot!!!
    Best regards!

    Hi Felix,
    Please take a look at note 234517.1 on metalink (copied below).
    This note explains how to resolve the following error messages when using Transparent Gateways or Generic Connectivity:
    ORA-3113; ORA-2019; ORA-2085; ORA-12154; ORA-28545; ORA-28546; ORA-28509; ORA-942; ORA-904; ORA-28500;ORA-28528
    SCOPE & APPLICATION
    This note should help to solve common error messages when using generic
    connectivity or gateways.
    Common errors with gateways or generic connectivity
    Here are the English descriptions of each error; to compare your message
    with the message below, you can alter your current SQL*Plus session
    and compare your message with the messages listed in this note:
    alter session set nls_language=american;
    ORA-3113:
    SQL> connect system/manager@tg4msql;
    ERROR:
    ORA-03113: end-of-file on communication channel
    Resolution:
    You can't connect with SQL*Plus directly to the foreign
    data store. HS or Gateways are only designed to work with
    a database link from an Oracle database to the foreign
    data store
    ORA-2019:
    SQL> select * from all_catalog@demo;
    select * from all_catalog@demo
    ERROR at line 1:
    ORA-02019: connection description for remote database not found
    Resolution:
    Create a database link to connect to the foreign database
    create [public] database link <db link name>
    connect to <user of the foreign datastore>
    identified by <password of this user>
    using '<SQL*Net ALIAS>';
    For case sensitive usernames/passwords of foreign databases,
    surround the user and password with double quotes.
    create [public] database link <db link name>
    connect to "<user of the foreign datastore>"
    identified by "<password of this user>"
    using '<SQL*Net ALIAS>';
    ORA-2085:
    SQL> select * from all_catalog@tg4msql_v91;
    select * from all_catalog@tg4msql_v91
    ERROR at line 1:
    ORA-02085: database link TG4MSQL_V91.DE.ORACLE.COM
    connects to HO.WORLD
    Resolution:
    This problem is related to GLOBAL NAMES.
    The simplest way to disable global naming is to alter
    the current session.
    alter session set global_names=false;
    The other solution is to add a global_name to the
    gateway/hs:
    HS_DB_NAME = <datasource>
    HS_DB_DOMAIN = <DOMAIN>
    But the HS_DB_NAME must not exceed 8 characters and
    must not contain any extra characters. If this is not
    possible, the globale naming can be disabled by setting
    GLOBAL_NAMES = FALSE in the init.ora of the database
    as well
    ORA-12154:
    SQL> select * from all_catalog@demo;
    select * from all_catalog@demo
    ERROR at line 1:
    ORA-12154: TNS:could not resolve service name
    Resolution:
    The database link uses a SQL*Net alias not specified
    in the TNSNAMES.ORA of the database server.
    Query the data dictionary to figure out the 'HOST'
    specified for the database link:
    select db_link, host from user_db_links;
    or
    select db_link, host from dba_db_links;
    The 'HOST' value is the alias of the SQL*Net.
    Please make sure it exists in the TNSNAMES.ORA file
    present at the Oracle database server.
    ORA-28545:
    SQL> select * from all_catalog@demo;
    select * from all_catalog@demo
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from DEMO
    Resolution:
    There's something wrong with the SQL*Net connection:
    - checking the SQL*Net -> Listener configuration with TNSPING:
    tnsping <SQL*Net alias>
    TNS-12545: Connect failed because target host or object
    does not exist
    The HOSTNAME specified in the TNSNAMES.ORA is invalid
    Try with the OS ping to resolve the hostname / IP adddress
    TNS-12541: TNS:no listener
    The hostname specified in the listener.ora points to a
    machine without an Oracle listener, the listener on that
    machine is not running or the port number is wrong.
    NO ERROR with TNSPING:
    This might be caused by an invalid SID configuration.
    Please make sure, that the SID in the listener refelects the
    SID specified in the TNSNAMES.ORA. Make sure you don't mix
    SID syntax with SERVICE_NAME syntax.
    If everything is configured well, please make sure that
    lsnrctl status shows at least one service handler for
    hsodbc. Probably restart the listener AFTER changing
    the listener.ora file.
    Still no error found, then please enable listener tracing
    (level support) and have a look at the listener.trace file
    after retrying the same select statement again.
    In the file you should see the connect from the Oracle
    database to the listener. After a few lines you should see that
    the listener tries to open 2 pipes. Does this work or does it
    fail and again a few lines later you see a hex/ascii block that
    conatins an error stack like:
    ERR=12500, CODE=12500, EMFI=4, CODE=12560, EMFI=4?
    Then please check again the listener.ora file; is the
    ORACLE_HOME directory specified within the listener.ora file
    correct? Or if you are using environment variables in the
    listener.ora please replace them with absolute paths.
    ORA-28546
    CAUSE 1:
    SQL> select * from all_catalog@demo;
    ERROR at line 1:
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-02068: following severe error from DEMO
    ORA-03113: end-of-file on communication channel
    Resolution:
    This error might be caused by a misplaced 'HS=' or 'HS=OK' key
    word in the tnsnames.ora.
    Make sure HS= or HS=OK is present and that the SID Connect String
    looks like:
    (CONNECT_DATA =
    (SID = tg4msql)) <= there are 2 closing brackets! The HS
    (HS=)) <= key word is OUTSIDE of connect_data
    CAUSE 2:
    SQL> select * from all_catalog@test;
    ora-28546: connection initialization failed, probable net8 admin error
    ora-29511 lost rpc connection to heterogeneous remote agent SID ...
    ora-02063 preceding 2 lines from test
    Resolution:
    This behaviour can be found in situations with a version missmatch.
    For example the Oracle database is release 9.2.0.4 and the gateway
    itself 9.2.0.1
    => The fix is to apply the same database patchset (gateway patches
    are part of the database patchsets) to the gateway home as well;
    or if the gateway 9.2.0.1 was installed into a 9.2.0.4 database
    directory to reapply the database patchset.
    ORA-28509:
    Older gateways report this error instead of giving a
    deltailed error description.
    Resolution:
    This error indicates the same as the errors described above.
    They can be solved by checking the SQL*Net configuration
    for the gateway / generic connectivity setup.
    ORA-942:
    SQL> select irgendwas from demo@demo;
    select irgendwas from demo@demo
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ...(the text here depends on the library/odbc...
    ORA-02063: preceding 2 lines from DEMO
    Resolution:
    make sure the table exists in the foreign data store.
    Pay attention that some foreign data stores are case
    sensitive and thus the table_name must be surrounded
    by double quotes.
    ORA-904:
    SQL> select irgendwas from "demo"@demo;
    select irgendwas from demo@demo
    ERROR at line 1:
    ORA-00904: "IRGENDWAS": invalid identifier
    Resolution:
    Make sure the column name specified exists at the foreign
    table and if it is case sensitive, surround it by double quotes.
    ORA-28500:
    CAUSE 1:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned
    this message:
    [Generic Connectivity Using ODBC][H006] The init parameter
    <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora
    file.
    ORA-02063: preceding 2 lines from HSODBC
    Resolution:
    The connect information to the remote database or the ODBC DSN is not
    found. Add the proper connect string required by the gateway or hs/
    generic connectivity agent.
    CAUSE 2:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-28541: Error in HS init file on line 11.
    ORA-02063: preceding 2 lines from HSODBC
    Resolution:
    The init.ora of the gateway / generic connectivity contains an
    invalid parameter in line 11
    CAUSE 3:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]DRV_InitTdp: errors.h (2005): ;
    [Microsoft][ODBC SQL Server Driver][SQL Server]Error authenticating user
    'sa'. (SQL State: 00000; SQL Code: 18456)
    ORA-02063: preceding 2 lines from HSODBC
    Resolution:
    The username password for the database link is wrong or no connect
    information was specified.
    Make sure that for case sensitive usernames/passwords the create
    database link statement contains the double quotes for the
    username/passwords.
    Further make sure you specified a username and password. OS
    Authentication is currently not supported by most of the
    gateways of by generic connectivity.
    CAUSE 4:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned
    this message:
    [Generic Connectivity Using ODBC]DRV_InitTdp: errors.h (2005): ;
    [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does
    not exist or access denied.[Microsoft][ODBC SQL Server Driver]
    [TCP/IP Sockets]ConnectionOpen (Connect()).
    (SQL State: 00000; SQL Code: 10061)
    ORA-02063: preceding 2 lines from HSODBC
    Resolution:
    Make sure the foreign database is up and running on the configured
    machine.
    ORA-28528:
    SQL> select * from DecimalType@hsodbc;
    ERROR:
    ORA-28528: Heterogeneous Services datatype
    conversion error
    Resolution:
    The language of the foreign data store (remote database)
    does not match with your Oracle database settings.
    Starting with 9.2.0.l4 this error might occure for example '
    if numeric values will be truncated.
    Adapt in the Gateway/Generic Connectivity initialisation file
    the parameter HS_LANGUAGE.
    HS_LANGUAGE must be set to the LANGUAGE used in the FOREIGN
    database.
    as a play with 2 settings and check out which one works:
    1. Try:
    HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
    Do you still get the error? Yes, proceed with the second try:
    2. Try:
    HS_LANGUAGE=GERMAN_GERMANY.WE8ISO8859P1
    (or to any other territory that uses a komma as decimal separator)
    ORA-24274:
    SQL> select * from all_catalog@<db_link>;
    select * from all_catalog@<db_link>
    ERROR at line 1:
    ORA-28522: error initializing heterogeneous capabilities
    ORA-28522: error initializing heterogeneous capabilities
    ORA-28559: FDS_CLASS_NAME is <GTW>9.2.0.5.0_128, FDS_INST_NAME is <link>
    ORA-02063: preceding 3 lines from %s
    ORA-00604: error occurred at recursive SQL level 1
    ORA-24274: no row exists in the HS$_BASE_CAPS table for these parameters
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_HS_UTL", line 431
    ORA-06512: at "SYS.DBMS_HS_CHK", line 51
    ORA-06512: at "SYS.DBMS_HS_UTL", line 48
    ORA-06512: at "SYS.DBMS_HS", line 38
    ORA-06512: at line 1
    Resolution:
    This special combination of errors might occure after applying
    the Oracle database and gateway patchset 9.2.0.5 WITHOUT
    running catpatch (=the upgrade script of the database).
    => Please run catpatch. If it ran successfully but connectivity
    still fails you may run
    cathnohs.sql and caths.sql to recreate the HS data
    dictionary tables. BUT BE CAREFUL: Running CATHNOHS drops ALL
    gateway/generic connectivity related database links!
    Hope this helps,
    Mark.

  • Error while using tranaparent gateways.

    Hi All,
    I have sql server source and i am using transparent gateways to connect to sqlserver from Oracle(not OWB).
    I have created view on Oracle database for the sql server tables. i was able to query the view which i created for sql server sources.
    i have created a simple pass through mapping using that view. when i try to deploy that mapping, it is shwoing error message "table or view doesn't exist". when i look into oracle package for the error lines, they are pointing to view which i created for sql server tables.
    Please help me ouit what i am missing.
    Thanks,
    Chandu

    Hi All,
    I got the solution. I didn't have permissions on the view.
    Thank you all.
    Chandu

  • Discoverer over transparent gateway

    I would like to know if any one has deployed Discoverer over non Oracle db using transparent gateway, particularly on DB2 or Teradata?
    Regards,
    Rocky

    Hi,
    I've been on sites where it has been done and seen it done. Unfortunately we aren't using it on our site here for me to give specific examples - but it works.
    As soon as you can inter-link the RDBMS engines via SQL*Net and create your database link, your in business. Disco will natively pick up the remote objects and treat them as local. We have this piece of the puzzle working on-site.
    You do however have to think about the performance of your remote and local RDBMS's, the network speed/loading and the volume of data your talking about.
    Let me know if you have more specific questions - I have a very Senior Ex Oracle DBA sitting beside me. We were discussing this very topic yesterday - regarding a recent post "Can't create EUL in Oracle Discoverer" - where the poster was trying to hook-up Discoverer into a SQL*Server DB.
    hope this helps,
    Lance

  • Use of Bind variables on Transparent Gateway

    Are there any known issues of using bind variables with queries using the Transparent Gateway? I've included two queries that access data from V_PERSON (alias r) which is a SQL Server 2000 table. We're using TG for MSQL 9.0.1 and calling from an Oracle 8.1.7.4 database.
    All help appreciated.
    - Scott
    SELECT r.lastname,r.email_addr1,MGM_.PHONESTR (r.hmph_ac,r.hmph_number, r.hmph_xten,r.hmph_input),r.hmph_ac,r.hmph_number,r.hmph_xten,r.maiden_name
    FROM V_PERSON r WHERE r.vmn_person_id=184468;
    213 msecs
    SELECT r.lastname,r.email_addr1,MGM_.PHONESTR (r.hmph_ac,r.hmph_number, r.hmph_xten,r.hmph_input),r.hmph_ac,r.hmph_number,r.hmph_xten,r.maiden_name
    FROM V_PERSON r WHERE r.vmn_person_id=:1;
    :1 = 184468
    23 secs

    Scott,
    We are not aware of any issues with bind variables. The time is takes to execute the query depends on the query that is sent over to the non-Oracle system.

  • Oracle transparent gateway sql server ORA.28511

    Hello,
    I tried to install the gateway for ms sql server and failed, can anyone help me?
    the 1. computer - database server is a hpux with oracle 8.1.7
    the 2. computer - gateway computer is a win 2k with oracle transparent gateway 9.0.1
    the 3. computer - Sql Server is a Computer with WinXP and SQL Server 2000 SP3
    what i did:
    -i created an entry in tnsnames.ora at the database server
    -i cerated an entry in listener.ora at the gateway computer.
    -i created the file inittg4nidb.ora (tg4nidb = SID)
    -i created a database user at the sql server
    -i created a database link in oracle
    then i tried to select data from the sql server database and i got the following message:
    SQL> select * from tab_ScriptCoordination@thomas1;
    select * from tab_ScriptCoordination@thomas1
    ERROR at line 1:
    ORA-02068: following severe error from THOMAS1
    ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=mucsai18.muc.infineon.com)(PORT=1521)))(CONNECT_DATA=(SID=tg4nidb))
    the listener seems to be ok (i get an new entry in listener.log when i execute a selectstatement in sql+), also i can see the program tg4msql in the taskmanager of the gatewaycomputer after executing a select.
    there must be something wrong in the file inittg4nidb.ora
    Here are the entries of this file:
    HS_FDS_CONNECT_INFO=ricsa103netinst.SoftwareDistribution
    HS_FDS_TRACE_LEVEL=ON
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    at the authentication on the SQL Server.
    Here is the Trace of the gateway:
    Oracle Corporation --- FRIDAY FEB 14 2003 14:53:25.284
    Heterogeneous Agent Release
    9.0.1.1.1
    (0) [Transparent gateway for MSSQL] version: 2.0.4.0.0030
    (0) connect string is:
    (0) YEAR2000_POLICY=-1;CONSUMER_API=1;SESSION_BEHAVIOR_FLAGS=4;PARSER_DEPTH=2000;E-
    (0) XEC_FLAGS =
    (0) 131080;defTdpName=tg4nidb;binding=(tg4nidb,MSSQL,"ricsa103netinst.SoftwareDist-
    (0) ribution");
    (0) ORACLE SQL SERVER GATEWAY Log File Started at 14-Feb-03 14:53:25
    Does anyone know this problem and how to solve it?
    Regards,
    Thomas

    Thomas,
    There is not enough information for me to figure out why you are getting this error. Basically the error indicates that the gateway has crashed.
    Please set the HS_FDS_TRACE_LEVEL = DEBUG and take a look at the trace file.
    Also send the tnsnames entry as well as the listener.ora

Maybe you are looking for

  • Error while printing generated XML doc using DBMS_OUTPUT

    while generating XML document using XDK for PL/SQL i am getting " ORU-10027: buffer overflow, limit of 1000000 bytes " error even though i had set DBMS_OUTPUT to 1000000. Is there any way to getrid of this problem . i am using this code .. CREATE OR

  • Can i access my itunes library from  a different pc?

    i have all music saved at home but want to access it and update iphone at work as well. is this possible?

  • Need help with select within select - daterange

    I use Crystal Reports v12.3.0.601 - I am a beginner. Problem: TABLE: ACCOUNTBILLFEE Columns are    FOLDERRSN STAMPDATE BILLNUMBER PAYMENTAMOUNT There are over 500,000 rows/ records... And I need to report the FOLDERRSN which has at least one {ACCOUNT

  • Single page exportation pdf

    Hello! I usually work on my Indesign document double spreaded and what I need to send to my printer is a single page pdf with 3mm bleed. Bleed is related to the 4 sides of each single page: the side of the spine includes me a short bit 3mm of the oth

  • URGENT!!!! NEED to reinstall os9 and OSX10.4

    My machine is playing up, so I have decided to wipe it and start again from scratch! I have duplicated everything I need and now want to install OS9.2 and OSX10.4. (I need to run the OS Classic because I have an old but excellent SCSI Scanner working