Oracle 9.2.0.1.0 transparent sqlserver gateway

Hi!
I have a sqlserver 2000 running. I also have a oracle 9.2 server with
windows 2003 running.
I installed after oracle enterprise edition setup the oracle gateway services for sqlserver on my oracle server and made some changes in the *.ora files.
Then I made some changes in the different oracle ora files.
That was all I have done.
My problem:
in the oracle enterprise console I can add my sqlserver database. But when I
enter my user and password I can not connect to my sqlserver database.
I also started the OracleOraHome92TNSListener new.
what is my problem?
In tg4msql_agt_3352.trc I saw the following error message:
heterogenous agent release
9.2.0.1.0
HS Agent diagnosed error on initial communication, probable cause is an error in network administration.
network error 2: NCR-00002:
here are my files:
inittg4msql.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for the Transparent Gateway for SQL Server
# HS init parameters
#HS_FDS_CONNECT_INFO="SERVER=dbserver;DATABASE=navision"
HS_FDS_CONNECT_INFO="192.168.200.247.navision"
HS_FDS_TRACE_LEVEL=DEBUG
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
listener.ora
# LISTENER.ORA Network Configuration File: E:\oracle\ora92\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oratest)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\ora92)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = dwdb.world)
(ORACLE_HOME = E:\oracle\ora92)
(SID_NAME = dwdb)
(SID_DESC =
(SID_NAME = tg4msql)
(ORACLE_HOME = E:\oracle\ora92)
(PROGRAM = tg4msql)
sqlnet.ora
# SQLNET.ORA Network Configuration File: E:\oracle\ora92\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
#SQLNET.AUTHENTICATION_SERVICES= (NTS)
SQLNET.AUTHENTICATION_SERVICES= (NONE)
#NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
tnsnames.ora
# TNSNAMES.ORA Network Configuration File: E:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oratest)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
DWDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oratest)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dwdb.world)
tg4msql =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oratest)(PORT = 1521))
(CONNECT_DATA = (SID = tg4msql))
(HS = OK)

you need to create the DATABASE LINK.
Opne SQL*Plus and connect as system user;
then create the database link to the SQL Server like:
create database link mssql connect to "sa" identified by " " using '<the tns alias of the gateway you specified in tnsnames.ora>';
Pay attention; the db link uses a blanc password for the SQL Server user sa. If your user has a password; then add the existing password between the double quotes.
Now to fetch some records, specify the select:
select * from all_catalog@mssql;

Similar Messages

  • MSTSQL: Oracle SQLDeveloper (V 1.5.4) from SQLServer

    Hello
    we try to migrate sqlserver to oracle, we obtain this error:Store procedure xyz has language id of "MSTSQL" so will not output for generation.
    Some of you can help us?
    Could you tell us which kind of error is it?
    Is it possible to solve this error?
    We use:
    OracleSQLDeveloper version 1.5.4
    SQLServer Express version 9.0.1399
    Oracle Express
    Thanks
    Matteo

    Matteo,
    The translation process is first duplicating the SQL Server stored procedure code and then is trying to convert it to PL/SQL.
    - When it succeeds, it replace the new code with the translated one and change the language to PLSQL.
    - When it fails, it leaves the code in TSQL and and the language column to MSTSQL.
    When you are generating the DDL script, this script will contain just the objects with language set to PLSQL and throw an error like the one below. This means the procedures that failed to translate will not be part of the script.
    You have (at least) 2 options:
    - generate the script with the translated objects and regenerate the remaining ones later. You can do this by using Translation Scratch Editor and identify the part in the procedure that is causing problems.
    - identify the problematic part with Translation S E, either correct the issue in SQL Server, either comment the issue, then update the TSQL code in the "Captured Objects" pane. After you are doing this for all objects that fail to convert, you can reconvert the whole model and get the script. You'll have to deal on the Oracle side with commented part in case that you chosen to comment them.
    Hope this help you,
    Andrei

  • Create a view on Oracle that points to a table on Sqlserver

    Need to make the contents of a table in Sqlserver visible to Oracle users through a view. Any idea how this could be done?
    I have read about Open Client Adaptor for ODBC, but the document keeps stressing that this can be done through a SqlForms, BUT I need a view.

    Oracle has something called heterogeneous services which essentially allows you to set up a database link using ODBC. You could then create your view based on this database link.
    The process on how to set it up is somewhat lengthy to write about in detail. If you have access to Oracle's Metalink look for Doc ID's 114820.1 and 115098.1, these should help you get it set up and the examples in the documents use SQL Server.
    Hope this helps.

  • Oracle 10.2.03 64bit and dg4odbc in gateway 11

    Hi,
    we want to implement a connection to our informix server
    from oracle 10.2 64bit on a SuSE SLES10 64bit machine.
    So i installed the gateway services for oracle 11g
    I also installed the required patch 5965763
    and configured the listener.ora (extract):
    (SID_DESC =
    (SID_NAME=IFAX)
    (ORACLE_HOME=/opt/oracle/product/11)
    (PROGRAM=dg4odbc) (ENVS=LD_LIBRARY_PATH=/opt/oracle/product/11/dg4/driver/lib:/opt/oracle/product/11/lib)
    and tnsnames.ora (extract):
    IFAXODBC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = tq-ifsrv-neu.tq-net.de)(PORT = 1521))
    (CONNECT_DATA =
    (SID = IFAX)
    (HS=OK)
    and the initIFAX.ora :
    HS_FDS_CONNECT_INFO = IFAX0001
    HS_FDS_TRACE_LEVEL = debug
    HS_FDS_SHAREABLE_NAME = /usr/local/informix/lib/cli/libifcli.so
    set ODBCINI=/etc/unixODBC/odbc.ini
    set LD_LIBRARY_PATH=/usr/local/informix/lib/cli:/usr/local/informix/lib/esql:$LD_LIBRARY_PATH
    set INFORMIXDIR=/usr/local/informix
    The odbc-driver is working fine (tested with:isql -v IFAX0001)
    In oracle i got the message:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Informix][Informix ODBC Driver]Driver not capable.
    ORA-02063 : preceding 2 lines from IFAX
    What is going wrong here?
    Regards Lothar

    i got a trace file by using #isql -v IFAX0001
    [ODBC][2917][SQLFreeHandle.c][268]
    Entry:
    Handle Type = 2
    Input Handle = 0x507fe0
    [ODBC][2917][SQLFreeHandle.c][317]
    Exit:[SQL_SUCCESS]
    [ODBC][2917][SQLFreeHandle.c][203]
    Entry:
    Handle Type = 1
    Input Handle = 0x5079c0
    but there are no entries caused by connecting via dg4odbc.
    the dg4odbc logs into /opt/oracle/product/11/hs/log/IFAX_agt_xxxx.trc
    Oracle Corporation --- FREITAG MRZ 07 2008 12:37:12.104
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- FREITAG MRZ 07 2008 12:37:12.104
    Version 11.1.0.6.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "debug"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:S
    QLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "IFAX"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.1.0.6.0_0006, Instance:IFAX
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=178
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2008/03/07-12:37:12
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libodbc.so"
    Entered hgolofns at 2008/03/07-12:37:12
    symbol_peflctx=0xaab1d0c0
    hoaerr:0
    Exiting hgolofns at 2008/03/07-12:37:12
    ..... this Block repeats several times .....
    Entered hgolofns at 2008/03/07-12:37:12
    symbol_peflctx=0xaab3a520
    hoaerr:0
    Exiting hgolofns at 2008/03/07-12:37:12
    Exiting hgolofn, rc=0 at 2008/03/07-12:37:12
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    Exiting hgoinit, rc=0 at 2008/03/07-12:37:12
    Entered hgolgon at 2008/03/07-12:37:12
    reco:0, name:cdix, tflag:0
    Entered hgosuec at 2008/03/07-12:37:12
    Exiting hgosuec, rc=0 at 2008/03/07-12:37:12
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using cdix as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2008/03/07-12:37:12
    HS_FDS_CONNECT_INFO = "IFAX0001"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2008/03/07-12:37:12
    dsn:IFAX0001, name:cdix
    optn:
    ##>Connect Parameters (len=32)<##
    ## DSN=IFAX0001;
    #! UID=cdix;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2008/03/07-12:37:12
    DriverName:iclis09b.so, DriverVer: 3.00.0000 3.00.U
    DBMS Name:Informix, DBMS Version:07.25.0000 UC4
    Exiting hgocont, rc=0 at 2008/03/07-12:37:12
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 18 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2008/03/07-12:37:12
    Entered hgoulcp at 2008/03/07-12:37:12
    Entered hgowlst at 2008/03/07-12:37:12
    Exiting hgowlst, rc=0 at 2008/03/07-12:37:12
    SQLGetInfo returns for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns N for SQL_COLUMN_ALIAS
    Exiting hgoulcp, rc=0 at 2008/03/07-12:37:12
    Entered hgouldt at 2008/03/07-12:37:12
    Exiting hgouldt, rc=0 at 2008/03/07-12:37:12
    Entered hgobegn at 2008/03/07-12:37:12
    tflag:0 , initial:1
    hoi:0x75b84908, ttid (len 23) is ...
    00: 42444649 6435352E 30356565 2E372E35 [IFDB.55dee505.7.]
    10: 312E3131 323238 [11.1228]
    tbid (len 10) is ...
    0: 000B0007 000004CC 0104 [..........]
    Entered hgopoer at 2008/03/07-12:37:12
    hgopoer, line 159: got native error -11092 and sqlstate HYC00; message follows...
    [Informix][Informix ODBC Driver]Driver not capable.
    Exiting hgopoer, rc=0 at 2008/03/07-12:37:12
    hgobegn, line 176: calling SQLEndTran got sqlstate HYC00
    Exiting hgobegn, rc=28500 at 2008/03/07-12:37:12 with error ptr FILE:hgobegn.c LINE:176 FUNCTION:hgobegn() ID:SqlEndTran call
    Is there any hint?

  • Error when insert data in Sql Server table(DateTime data type)

    Hello all,
    I have created a database link in oracle 11g to SQL Server 2008 using Sqlserver gateway for oracle,Oracle run on Linux and SQL Server run on Windows platform.
    I have queried a table and it fetches rows from the target table.
    I am using this syntax for insert a row in Sql Server table.
    Insert into Prod@sqlserver (NUMITEMCODE, NUMPREOPENSTOCK, NUMQNTY, NUMNEWOPENSTOCK, DATPRODDATE , TXTCOMPANYCODE, "bolstatus", NUMRESQNTY )
    Values (1118 , 1390.0 , 100.0 ,1490 , '2012-06-23 12:37:58.000','SFP' ,0 , 0 );
    but it give me error on DATPRODDATE,The data type of DATPRODDATE column in Sql Server is DATETIME.
    My Question is how can i pass the date values in INSERT statement for Sql Server DateTime data type.
    Regards

    Just as with Oracle, you have to specify the date using the to_date() function or use the native date format for the target database (if you can figure out what that is). This is good practice anyway and a good habit to get into.

  • Oracle 9.2.0.1.0 link to sqlserver 2000 tables

    Hi!
    I have a sqlserver 2000 running. I also have a oracle 9.2 server with
    windows 2003 running.
    I installed after oracle enterprise edition setup the oracle gateway
    services for sqlserver on my oracle server.
    Then I made some changes in the different oracle *.ora files. Then I
    restarted the oracle service OracleOraHome92TNSListener.
    My question:
    is that all I have to do on my oracle server? have I anything to do on my
    sqlserver 2000?
    can my oracle server be at the same time my gateway to sqlserver 2000 or
    must that be an other computer - sqlserver?
    Thanks

    Really I do not have a direct answer for your question because I have not used the oracle gateway services for sqlserver but if refer you this document. I hope this can help in something and if you any link with documentation about the theme I am going to please you if you replay it.
    Heterogeneous Connectivity Administrator's Guide Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96544.pdf
    Joel Pérez

  • Creating Oracle Obj Model hangs - SQLServer 2000 to Oracle9i

    Migration Workbench process appears to hang during "Mapping Priomary Keys" while creating Oracle Object Model. I am migrating SQLServer 2000 database to Oracle 9i. All on one single PC using Windows 2000 server. I downloaded latest SQLServer 2000 plugin and I have .NET Framework installed which inturn installs MDAC 2.7 (supposed have latest ODBC driver). ODBC driver for SQLServer 2000 version is : 2000.81.7713.00
    Following is the info in Error.log file I have under %ORACLE_HOME%\omwb\log directory.
    ERROR.LOG File Starts here
    =================================================================================
    ** Oracle Migration Workbench
    ** Release 2.0.2.0.0 Production
    ** ( Build 20011121 )
    ** ORACLE_HOME: D:\Oracle\Ora91
    ** user language: en
    ** user region: US
    ** user timezone: PST
    ** file encoding: Cp1252
    ** java version: 1.1.8.10
    ** java vendor: Oracle Corporation
    ** o.s. arch: x86
    ** o.s. name: Windows NT
    ** o.s. version: 5.0
    ** Classpath:
    D:\Oracle\Ora91\Omwb\olite\Oljdk11.jar;D:\Oracle\Ora91\Omwb\olite\Olite40.jar;D:\Program Files\Oracle\jre\1.1.8\lib\rt.jar;D:\Program Files\Oracle\jre\1.1.8\lib\i18n.jar;D:\Oracle\Ora91\Omwb\jlib;D:\Oracle\Ora91\Omwb\jlib\Omwb.jar;D:\Oracle\Ora91\jlib\oembase-9_0_1.jar;D:\Oracle\Ora91\jlib\netcfg.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer6.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer7.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer2K.jar;D:\Oracle\Ora91\Omwb\plugins\Sybase11.jar;D:\Oracle\Ora91\Omwb\plugins\Sybase12.jar;D:\Oracle\Ora91\Omwb\plugins\MSAccess.jar;D:\Oracle\Ora91\Omwb\plugins\MySQL.jar;D:\Oracle\Ora91\Omwb\drivers\mm.mysql.jdbc-1.2a;D:\Oracle\Ora91\Omwb\plugins\Informix7.jar;D:\Oracle\Ora91\Omwb\drivers\ifxjdbc.jar;D:\Oracle\Ora91\lib\xmlparserv2.jar;D:\Oracle\Ora91\rdbms\jlib\xsu111.jar;D:\Oracle\Ora91\jdbc\lib\classes111.zip;D:\Oracle\Ora91\lib\vbjorb.jar;D:\Oracle\Ora91\jlib\ewt-swingaccess-3_3_18.jar;D:\Oracle\Ora91\jlib\ewt-3_3_18.jar;D:\Oracle\Ora91\jlib\ewtcompat-3_3_15.jar;D:\Oracle\Ora91\jlib\share-1_1_9.jar;D:\Oracle\Ora91\jlib\help-3_2_9.jar;D:\Oracle\Ora91\jlib\ice-5_06_3.jar;D:\Oracle\Ora91\jlib\kodiak-1_2_1.jar
    ** Started : Fri Apr 05 13:31:12 PST 2002
    ** The following plugins are installed:
    ** Microsoft SQLServer 2000 Release 2.0.2.0.0 Production
    java.sql.SQLException: ORA-01418: specified index does not exist
    java.util.NoSuchElementException
         at java.util.Vector.firstElement(Vector.java:433)
         at oracle.mtg.oracleModel.server.OracleModelImpl.insertPrimaryKey(OracleModelImpl.java:4055)
         at oracle.mtg.oracleModel.server.OracleModelImpl.insertPrimaryKey(OracleModelImpl.java:4022)
         at oracle.mtg.sqlserver2k.server.SQLServer2KSourceModelMap._mapPrimaryKeys(SQLServer2KSourceModelMap.java:3092)
         at oracle.mtg.sqlserver2k.server.SQLServer2KSourceModelMap.mapSourceModel(SQLServer2KSourceModelMap.java:271)
         at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard.doCapture(SQLServer2KCaptureWizard.java:948)
         at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard._runDialog(SQLServer2KCaptureWizard.java:736)
         at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard.capture(SQLServer2KCaptureWizard.java:656)
         at oracle.mtg.migrationUI.ActionMenuHandler._capture(ActionMenuHandler.java:212)
         at oracle.mtg.migrationUI.ActionMenuHandler.run(ActionMenuHandler.java:89)
         at oracle.mtg.migration.WorkerThread.run(Worker.java:269)
    ** Shutdown : Fri Apr 05 13:34:39 PST 2002
    ===================================================================
    ERROR.LOG File ends here
    Any help is really appreciated
    Thanks,
    Brunda

    Migration Workbench process appears to hang during "Mapping Priomary Keys" while creating Oracle Object Model. I am migrating SQLServer 2000 database to Oracle 9i. All on one single PC using Windows 2000 server. I downloaded latest SQLServer 2000 plugin and I have .NET Framework installed which inturn installs MDAC 2.7 (supposed have latest ODBC driver). ODBC driver for SQLServer 2000 version is : 2000.81.7713.00
    Following is the info in Error.log file I have under %ORACLE_HOME%\omwb\log directory.
    ERROR.LOG File Starts here
    =================================================================================
    ** Oracle Migration Workbench
    ** Release 2.0.2.0.0 Production
    ** ( Build 20011121 )
    ** ORACLE_HOME: D:\Oracle\Ora91
    ** user language: en
    ** user region: US
    ** user timezone: PST
    ** file encoding: Cp1252
    ** java version: 1.1.8.10
    ** java vendor: Oracle Corporation
    ** o.s. arch: x86
    ** o.s. name: Windows NT
    ** o.s. version: 5.0
    ** Classpath:
    D:\Oracle\Ora91\Omwb\olite\Oljdk11.jar;D:\Oracle\Ora91\Omwb\olite\Olite40.jar;D:\Program Files\Oracle\jre\1.1.8\lib\rt.jar;D:\Program Files\Oracle\jre\1.1.8\lib\i18n.jar;D:\Oracle\Ora91\Omwb\jlib;D:\Oracle\Ora91\Omwb\jlib\Omwb.jar;D:\Oracle\Ora91\jlib\oembase-9_0_1.jar;D:\Oracle\Ora91\jlib\netcfg.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer6.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer7.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer2K.jar;D:\Oracle\Ora91\Omwb\plugins\Sybase11.jar;D:\Oracle\Ora91\Omwb\plugins\Sybase12.jar;D:\Oracle\Ora91\Omwb\plugins\MSAccess.jar;D:\Oracle\Ora91\Omwb\plugins\MySQL.jar;D:\Oracle\Ora91\Omwb\drivers\mm.mysql.jdbc-1.2a;D:\Oracle\Ora91\Omwb\plugins\Informix7.jar;D:\Oracle\Ora91\Omwb\drivers\ifxjdbc.jar;D:\Oracle\Ora91\lib\xmlparserv2.jar;D:\Oracle\Ora91\rdbms\jlib\xsu111.jar;D:\Oracle\Ora91\jdbc\lib\classes111.zip;D:\Oracle\Ora91\lib\vbjorb.jar;D:\Oracle\Ora91\jlib\ewt-swingaccess-3_3_18.jar;D:\Oracle\Ora91\jlib\ewt-3_3_18.jar;D:\Oracle\Ora91\jlib\ewtcompat-3_3_15.jar;D:\Oracle\Ora91\jlib\share-1_1_9.jar;D:\Oracle\Ora91\jlib\help-3_2_9.jar;D:\Oracle\Ora91\jlib\ice-5_06_3.jar;D:\Oracle\Ora91\jlib\kodiak-1_2_1.jar
    ** Started : Fri Apr 05 13:31:12 PST 2002
    ** The following plugins are installed:
    ** Microsoft SQLServer 2000 Release 2.0.2.0.0 Production
    java.sql.SQLException: ORA-01418: specified index does not exist
    java.util.NoSuchElementException
         at java.util.Vector.firstElement(Vector.java:433)
         at oracle.mtg.oracleModel.server.OracleModelImpl.insertPrimaryKey(OracleModelImpl.java:4055)
         at oracle.mtg.oracleModel.server.OracleModelImpl.insertPrimaryKey(OracleModelImpl.java:4022)
         at oracle.mtg.sqlserver2k.server.SQLServer2KSourceModelMap._mapPrimaryKeys(SQLServer2KSourceModelMap.java:3092)
         at oracle.mtg.sqlserver2k.server.SQLServer2KSourceModelMap.mapSourceModel(SQLServer2KSourceModelMap.java:271)
         at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard.doCapture(SQLServer2KCaptureWizard.java:948)
         at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard._runDialog(SQLServer2KCaptureWizard.java:736)
         at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard.capture(SQLServer2KCaptureWizard.java:656)
         at oracle.mtg.migrationUI.ActionMenuHandler._capture(ActionMenuHandler.java:212)
         at oracle.mtg.migrationUI.ActionMenuHandler.run(ActionMenuHandler.java:89)
         at oracle.mtg.migration.WorkerThread.run(Worker.java:269)
    ** Shutdown : Fri Apr 05 13:34:39 PST 2002
    ===================================================================
    ERROR.LOG File ends here
    Any help is really appreciated
    Thanks,
    Brunda

  • 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

  • Oracle 9i / sqlserver 2000

    My aim is to send the data from oracle 9i to sql server 2000 whenever there is data insertion, deletion or updation in the oracle table the same change needs to happen in the sql server having the same table structure as oracle.But I am not finding any way to accomplish this task.please help me. Have thanks in advance.
    Silvia

    I think you can go for creating a DB link between the two dbs and just write a procedure which is triggered when an updation is happening in the Oracle 9i to insert data in the sqlserver.....
    coding it not eazy to define here...
    Sorryy.. just search on net you will get the code..
    Nandhan(alias)
    DBA/CC

  • Bad performing update query - converting from sqlserver to oracle

    SQLSERVER UPDATE
    =================
    UPDATE
    netVIEWplus.dbo.DIM_OUC_Latest
    SET
    OUC = LatestDIM.OUC,
    OUC_Desc = LatestDIM.OUC_Desc,
    OUC_Level = LatestDIM.OUC_Level,
    Parent_OUC = LatestDIM.Parent_OUC,
    CC_Type = LatestDIM.CC_Type,
    GFR = LatestDIM.GFR,
    CORP = LatestDIM.CORP,
    SOB = LatestDIM.SOB,
    Div_Unit = LatestDIM.Div_Unit,
    Div_Desc = LatestDIM.Div_Desc,
    L1_OUC = LatestDIM.L1_OUC, L1_DEPT_DESC = LatestDIM.L1_DEPT_DESC,
    L2_OUC = LatestDIM.L2_OUC, L2_DEPT_DESC = LatestDIM.L2_DEPT_DESC,
    L3_OUC = LatestDIM.L3_OUC, L3_DEPT_DESC = LatestDIM.L3_DEPT_DESC,
    L4_OUC = LatestDIM.L4_OUC, L4_DEPT_DESC = LatestDIM.L4_DEPT_DESC,
    L5_OUC = LatestDIM.L5_OUC, L5_DEPT_DESC = LatestDIM.L5_DEPT_DESC,
    L6_OUC = LatestDIM.L6_OUC, L6_DEPT_DESC = LatestDIM.L6_DEPT_DESC,
    L7_OUC = LatestDIM.L7_OUC, L7_DEPT_DESC = LatestDIM.L7_DEPT_DESC,
    L8_OUC = LatestDIM.L8_OUC, L8_DEPT_DESC = LatestDIM.L8_DEPT_DESC,
    Current_Flag = LatestDIM.Current_Flag,
    INF_Div_Unit_Only = LatestDIM.INF_Div_Unit_Only,
    INF_DIM_OUC_Id_Used = LatestDIM.DIM_OUC_Id
    FROM
    netVIEWplus.dbo.DIM_OUC_Latest
    INNER JOIN
    netVIEWplus.dbo.DIM_OUC HistoryDIM
    ON
    HistoryDIM.DIM_OUC_Id = netVIEWplus.dbo.DIM_OUC_Latest.DIM_OUC_Id
    INNER JOIN
    netVIEWplus.dbo.DIM_OUC LatestDIM
    ON
    LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id
    Oracle Version
    ===========
    UPDATE
    netVIEWplus.DIM_OUC_Latest T1
    SET (OUC,OUC_Desc,OUC_Level,Parent_OUC,CC_Type,GFR,CORP,SOB,Div_Unit,Div_Desc,L1_OUC,L1_DEPT_DESC,L2_OUC,
    L2_DEPT_DESC,L3_OUC,L3_DEPT_DESC,L4_OUC,L4_DEPT_DESC,L5_OUC,L5_DEPT_DESC,L6_OUC,L6_DEPT_DESC,L7_OUC,L7_DEPT_DESC,
    L8_OUC,L8_DEPT_DESC,Current_Flag,INF_Div_Unit_Only,INF_DIM_OUC_Id_Used) =
    ( SELECT LatestDIM.OUC OUC,LatestDIM.OUC_Desc OUC_Desc,
    LatestDIM.OUC_Level OUC_Level,LatestDIM.Parent_OUC Parent_OUC,LatestDIM.CC_Type CC_Type,LatestDIM.GFR GFR,
    LatestDIM.CORP CORP,LatestDIM.SOB SOB,LatestDIM.Div_Unit Div_Unit,LatestDIM.Div_Desc Div_Desc,
    LatestDIM.L1_OUC L1_OUC,LatestDIM.L1_DEPT_DESC L1_DEPT_DESC,LatestDIM.L2_OUC L2_OUC,
    LatestDIM.L2_DEPT_DESC L2_DEPT_DESC,LatestDIM.L3_OUC L3_OUC,LatestDIM.L3_DEPT_DESC L3_DEPT_DESC,
    LatestDIM.L4_OUC L4_OUC,LatestDIM.L4_DEPT_DESC L4_DEPT_DESC,LatestDIM.L5_OUC L5_OUC,
    LatestDIM.L5_DEPT_DESC L5_DEPT_DESC,LatestDIM.L6_OUC L6_OUC,LatestDIM.L6_DEPT_DESC L6_DEPT_DESC,
    LatestDIM.L7_OUC L7_OUC,LatestDIM.L7_DEPT_DESC L7_DEPT_DESC,LatestDIM.L8_OUC L8_OUC,
    LatestDIM.L8_DEPT_DESC L8_DEPT_DESC,LatestDIM.Current_Flag Current_Flag,
    LatestDIM.INF_Div_Unit_Only INF_Div_Unit_Only,LatestDIM.DIM_OUC_Id INF_DIM_OUC_Id_Used
    FROM
    netVIEWplus.DIM_OUC HistoryDIM,netVIEWplus.DIM_OUC LatestDIM
    where
    HistoryDIM.DIM_OUC_Id = T1.DIM_OUC_Id
    and
    LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id and rownum=1)
    where exists ( SELECT 1
    FROM
    netVIEWplus.DIM_OUC HistoryDIM,netVIEWplus.DIM_OUC LatestDIM
    where
    HistoryDIM.DIM_OUC_Id = T1.DIM_OUC_Id
    and
    LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id )
    Problem is oracle update is taking long time than sqlserver update. Can it be written in some orhet way.
    Regards,
    Koushik

    Hi,
    Have you gathered stats as well ? Did the query use index(es) as well ?
    Without any more info like explain plan, indexes, etc., further help will be unable.
    Nicolas.

  • Dblink to SqlServer using more than one user...

    Hi All,
    I'm in a migration project, SqlServer to Oracle. I'm using the Transparent Gateway to connect from Oracle to SqlServer, using the database link process.
    When I created the dblink I used the SA (SqlServer sysdba user), and in the future tests I need to connec with others users, not SA.
    Anyone knows how can I create a dblink to connect with more than one user?
    Thanks,
    Gustavo.

    you need to create a new database link.

  • 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

  • Configuration issue with DRDA Oracle 10g to DB2 UDB v8

    Oracle 10.2.0.4 linux RH 64 bit - DB2 UDB v8.2 linux 32 bit. I'm attempting to install transparent gateway to connect from my oracle instance to the db2 instance. I was successful until the step requiring the package rebind and this is the error I get:
    SQL> exec GTW$_BIND_PKG@MYDB2SERVER;
    BEGIN GTW$_BIND_PKG@MYDB2SERVER; END;
    ORA-04052: error occurred when looking up remote object
    DB2USER.GTW$[email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28527: Heterogeneous Services datatype mapping error
    TG4DRDA v10.2.0.1.0 grc=0, drc=-332 (865B,0001), errp=GDJREACS
    errmc=1208,819
    ORA-02063: preceding 3 lines from MYDB2SERVERMy TNSNAME entry:
    MYDB2SERVER =
      (DESCRIPTION =
            (ADDRESS=
              (PROTOCOL=TCP)
              (PORT=1521)
              (HOST=172.xx.xx.xx))
            (CONNECT_DATA=(SID=MYDB2SERVER)
            (HS=)
    LISTENER entry:
       (SID_DESC=
            (SID_NAME=MYDB2SERVER)
            (ORACLE_HOME=/home/oracle/oraHomes/gateway)
            (PROGRAM=g4drsrv)
       )DBlink:
    SQL> create public database link MYDB2SERVER
      2  connect to db2user identified by mypass
      3  using 'MYDB2SERVER';initMYDB2SERVER.ora (lines I changed):
    DRDA_CONNECT_PARM=172.xx.xx.xx:50000
    DRDA_REMOTE_DB_NAME=db2
    DRDA_RECOVERY_PASSWORD=mypassI'm sure it's just a simple config issue, but I've been racking my rain for hours trying different things and cannot figure it out.
    Question - DRDA_REMOTE_DB_NAME - is the the O/S user? or the database instance name? For example, when accessing the DB2 instance, I login to the O/S as db2user but issue 'db2 connect to db2' when connecting to the instance - which value is DRDA_REMOTE_DB_NAME looking for?
    Any help is appreciated - thanks

    Hi,
    You are right, DRDA_REMOTE_DB_NAME should have the name of the Db2 instance.
    The error you are getting points to the fact that you are an multibyte character set in either Oracle and/or DB2. The gateway can connect, but first have to be able to map the character sets indicated by the error message:
    TG4DRDA v10.2.0.1.0 grc=0, drc=-332 (865B,0001), errp=GDJREACS errmc=1208,819 <<== 1208 and 819 are the CCSIDs
    Add the following entries to the gateway codepage.map file -
    S 367 > US7ASCII
    D 13488 > AL16UTF16
    D 1200 = AL16UTF16
    M 1208 = UTF8
    MBC 1208 = 1208 1200
    The default location of the file is $ORACLE_HOME/tg4drda/admin/codepage.map
    These values map code page 1208 to Oracle's UTF8 character sets so that the gateway can translate UTF8 data into code page 819 (WE8ISO8859P1).
    Regards,
    Ed

  • How to get "Oracle Services for MTS" working?

    I've implemented the microsoft code example (see at the bottom) for the use of distributed transactions (with system.transactions and MTS support). The code works fine as long as I use only MS sqlserver.
    Well, I tried one connection to an oracle database and one connection to the sqlserver - and here the trouble starts ;-)
    Oracle doesn't care about the transaction. After the command is executed the changes are made to the oracle database at once (no commit has occured at that point) even if the second command isn't successfull.
    I suppose at the moment that the problem must be something around the interaction between MTS and oracle database, more precisly the oracle Services for MTS.
    I've installed the odp.net client (ODAC1020221.exe).
    The installer tells me that oracle data access components 10.2.0.2.21 and within the Oracle Services for MTS are installed.
    But I cannot find a service with that name in the service list, OracleMTSRecoveryService is listed, but I'm not sure if that's the right one.
    So here are my questions:
    What's the name for 'Oracle Services for MTS' in the services list?
    Do I have to install more than the odp.net client to get the MTS support running?
    Is there a mistake in the code I'm running?
    any help is welcome ...
    thanx in advance!!!
    And here's the code I'm working with:
    [Transaction(TransactionOption.RequiresNew)]
    public class Worker : ServicedComponent
    [AutoComplete]
    public void Test()
    using (TransactionScope scope = new TransactionScope(TransactionScopeOption.RequiresNew, new TimeSpan(0, 5, 0)))
    DbProviderFactory theFactory = DbProviderFactories.GetFactory("Oracle.DataAccess.Client");
    using (DbConnection connection1 = theFactory.CreateConnection())
    try
    connection1.ConnectionString = ".........";
    connection1.Open();
    DbCommand command1 = theFactory.CreateCommand();
    command1.Connection = connection1;
    command1.CommandText = "Insert into user (name, surname,benoid) values ('hans','wurst','32315134512345')";
    object returnValue = command1.ExecuteNonQuery();
    using (SqlConnection connection2 = new SqlConnection("Data Source=localhost;Database=UserManagement;Trusted_Connection=true;"))
    try
    connection2.Open();
    //this command fails
    SqlCommand command2 = new SqlCommand("Insert into uuuu (name, vorname) values ('hans','wurst')", connection2);
    object retValue = command2.ExecuteNonQuery();
    catch (Exception ex)
    return;
    catch (Exception ex)
    return;
    scope.Complete();
    }

    hey what's up you figured out your problem with M$DTC/Oracle 11i with ODP.NET trying to do a TransactionScope?
    I saw your problem - and I ran into the same.
    Re: 10g Express + ODP.NET (version 2.111.6.20) > support TransactionScope?
    Trying to install "Oracle Services for MTS" not sure how but working on it now. Doc looks old however,
    http://www.oracle.com/technology/tech/windows/ora_mts/index.html
    Did you get pass this already?

  • Ora-12154  problem with database link and transparent gateway

    Hello,
    I’m trying to make a communication between oracle and SQL server 2005.
    I use oracle 10g E.E Release 10.2.0.3.0 and the transparent gateway for SQL server 10201_gatway_win32.zip.
    Install:
    The oracle database is installed into a server named ss-serv. This server has two partition disk C and E. Oracle database is installed in E and the gateway in C. There is already a database (instance) running in the oracle home (in E).
    I configured the gateway as described into: http://download.oracle.com/docs/cd/B...3/conf_sql.htm.
    In sql server 2005, there is a database running named ClientTricks.
    I created a user named Avogadro with a login.
    In the partition C where the gateway is installed, the file inittg4msql.ora is like this:
    HS_FDS_CONNECT_INFO= ss-serv. ClientTricks
    The file sqlnet.ora where the gateway is installed is configured like this:
    SQLNET.AUTHENTIFICATION_SERVICES=(NTS)
    NAMES.DIRECTORY_PATH = (TNSNAMES, EZCONNECT)
    I configured the listener that is in the C partition where the gateway is installed, and the tnsnames that is in the oracle database in E partition disk like this:
    Listener :
    LISTENER=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=ss-serv)
    (PORT=1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=tg4msql)
    (ORACLE_HOME=C:\oracle\product\10.2.0\tg_1)
    (PROGRAM=tg4msql)
    tnsnames:
    mytg4msql=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=ss-serv)
    (PORT=1521)
    (CONNECT_DATA=
    (SID=tg4msql))
    (HS=OK))
    After edited the listener, I stop and start the listener for the transparent gateway from administrative tools in the services.
    Then, connected in oracle (in a database named fakeclient) I created a database link in sqlplus.The the dblink were created, but when I tried to querry some data from ClientTricks by executing the following instructions:
    select * from s_client@dblink
    i got this fatal and terrible error :
    ora-12154 TNS:could not resolve the connect identifier specified
    I verified all my procedure and stapes, all seems to be good. I did a tnsping of mytg4msql
    I got this error in the command prompt:TNS-03505 fail to resolve name
    Could someone help me ?
    Sorry for my English ,I’m French
    best regards

    Hi Mkirtley,
    i clarify you what i've done:
    Pease have a look in the link in my first post. Then, i said that in oracle database home the listener is in port 1521
    here is this listener:
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=PLSExtproc)
    (ORACLE_HOME=E:\oracle\production\10.2.0\db_1)
    (PROGRAM=extproc)
    LISTENER=
    (DESCRIPTION_LIST=
    (DESCRIPTION=
    (ADDRESS= (PROTOCOL=TCP)(HOST=ss-serv)(PORT=1521))
    (ADDRESS= (PROTOCOL=IPC)(KEY=EXTPROC0))
    Here is the tnsnames.ora in oracle database home:
    N.B in this ora file, there's already some descriptions for the database running, so i just add these lines under the description in ora file.Here is:
    Jest=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=TCP)(HOST=ss-serv)(PORT=2000))
    (CONNECT_DATA=
    (SID=tg4msql)
    (HS=OK)
    for the listener of the gateway (installed in C partition):
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=tg4msql)
    (ORACLE_HOME=C:\oracle\production\10.2.0\tg_1)
    (PROGRAM=tg4msql)
    LISTENER=
    (DESCRIPTION_LIST=
    (DESCRIPTION=
    (ADDRESS= (PROTOCOL=TCP)(HOST=ss-serv)(PORT=2000))
    (ADDRESS= (PROTOCOL=IPC)(KEY=EXTPROC1))
    here are all i did.
    Best regards

Maybe you are looking for

  • ID in Document library in SharePoint 2013

    Hi, I have an document library in SharePoint 2013.I uploaded some documents to document library for testing.Now I deleted these testing documents.And when user starts adding documents,the id of the document  is not started from 1. So how I will get t

  • Billing changes

    My bill is normaly between 175.00 to 225.00 a month with 3 lines friends and family....my self and my daughter have 1000 text mgs each a month and my hubby has the 7pm option.my daughter had gotten a new phone in nov 24,2010.i  informed them i want t

  • How do I get the latest camera raw for Lightroom 4.2?

    How do I get the latest camera raw for Lightroom 4.2?

  • No iPod connected after I try to install latest version

    Help! Two weeks ago I tried to update iTunes to the latest version (which I always do) and it didn't work. Ever since then iTunes is showing that my iPod is not connected. The computer says it is, but not itunes. I have done all of the troubleshootin

  • JSF Popup Menu on right click

    Hi , I want to popup menu on right click of any component(say tree).I searched on the net and found the tomahawk <t:popup> component. This component popup the menu when mouse pointer enter in to the component but I don't want this behavior. I want to