Oracle Gateway for MS SQL Server

I have a oracle 10g database installed on Linux platform. I have installed oracle 11g gateways in the same system in a different location other than that of ORACLE_HOME.
I have configured the initdg4msql.ora and configured the listener in the ORACLE_HOMEs listener.ora
When I try to query the SQL Server table with the db link then I am getting the following error
Error starting at line 1 in command:
select * from dbo.jobs@testlink
Error at Command Line:1 Column:23
Error report:
SQL Error: ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Oracle][ODBC SQL Server Driver][libssclient22]ConnectionOpen.[Oracle][ODBC SQL Server Driver]Invalid connection string attribute
ORA-02063: preceding 2 lines from TESTLINK
the following is my initdg4msql.ora configuration:
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=sqlserv:1433//pubs
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=DEBUG
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
can anyone tell me where am I going wrong?

the patch is not applied to 10g db. Here is the last few lines of the dg4msql trace file
Entered hgocont at 2007/11/13-12:38:05
HS_FDS_CONNECT_INFO = "sqlserv:1433//pubs"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2007/11/13-12:38:05
dsn:sqlserv:1433//pubs, name:sa
optn:
Entered shgogohn at 2007/11/13-12:38:05
Exiting shgogohn, rc=28500 at 2007/11/13-12:38:05
Entered hgocont_OracleCsidToIANA at 2007/11/13-12:38:05
Returning 3
Exiting hgocont_OracleCsidToIANA at 2007/11/13-12:38:05
##>Connect Parameters (len=200)<##
## DRIVER=Oracle 11g dg4msql;
## Address=sqlserv,1433;
## Database=pubs;
#! UID=sa;
#! PWD=*
## AnsiNPW=Yes;
## QuotedId=Yes;
## IANAAppCodePage=3;
## ArraySize=100;
## PadVarbinary=0;
## SupportNumericPrecisionGreaterThan38=1;
Exiting hgogenconstr, rc=0 at 2007/11/13-12:38:05
Entered hgopoer at 2007/11/13-12:41:14
hgopoer, line 159: got native error 0 and sqlstate HYT00; message follows...
[Oracle][ODBC SQL Server Driver][libssclient22]ConnectionOpen.[Oracle][ODBC SQL Server Driver]Invalid connection string attribute
Exiting hgopoer, rc=0 at 2007/11/13-12:41:14
hgocont, line 1890: calling SqlDriverConnect got sqlstate HYT00
Exiting hgocont, rc=28500 at 2007/11/13-12:41:14 with error ptr FILE:hgocont.c LINE:1910 FUNCTION:hgocont() ID:Something other than invalid authorization
Exiting hgolgon, rc=28500 at 2007/11/13-12:41:14 with error ptr FILE:hgolgon.c LINE:612 FUNCTION:hgolgon() ID:Calling hgocont
Entered hgoexit at 2007/11/13-12:41:14
Exiting hgoexit, rc=0 at 2007/11/13-12:41:14

Similar Messages

  • Oracle gateway for MS sql server 2005

    Is Oracle 9i Gateway for MS SQL Server compatible with SQL 2005? If not what are the other options?

    Check the support matrix at metalink.
    But be advised that Oracle 9i is in desupport mode.

  • Oracle Database Gateway for MS SQL server

    Hi,
    we have Oracle Database Appliance.
    OS: Oracle Linux 5 x64
    DB: 11.2.0.3 enterprise (Oracle Database Gateway for MS SQL server at the same version)
    Communication with remote DB is OK, but CPU load is too high without any reason. CPU waste, useless HW load, energy waste.
    Enterprise manager console:
    http://81.89.49.222/em.JPG
    OS top:
    http://81.89.49.222/top.JPG
    Please can you help me how to solve this issue? How can I restart these procesess? Any ideas?
    Thank you
    Michal

    Hi,
    we are using connection to multiple MS SQL servers:
    [oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initaqpdb01.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=[172.18.250.141]://master
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    HS_NLS_LENGTH_SEMANTICS=CHAR
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
    [oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initcosima.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=[172.20.250.99]//COSIMA
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    # custom init parameters
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    HS_NLS_LENGTH_SEMANTICS=CHAR
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
    [oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initepos.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=[172.18.250.41]:1433//epos
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    HS_NLS_LENGTH_SEMANTICS=CHAR
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
    [oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initepospasohlavky.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=[172.31.250.41]/SQL2012/epos
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    HS_NLS_LENGTH_SEMANTICS=CHAR
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
    dg4msl process, look at posted attachment (print screen of enterprise manager and top from OS).
    Thank you
    Michal

  • Oracle Transparent Gateway for MS SQL Server

    Hello,
    I successfully installed the Oracle transparent Gateway for MS SQL Server for Oracle 8i. Now I am doing the same for Oracle 9i.
    Does anyone know how to 'create a new gateway service' on 9i???
    This is how you would do that on 8i on the Windows box...
    1) At the MS-DOS prompt, enter:
    > set GTW_EXE=TG4MSQL.EXE
    2) To create a new gateway service name, enter:
    > GTWSRV73 sid -CREATE | MORE
    -where sid is the gateway sid.
    Does anyone know how to do those steps for 9i Oracle Transparent Gateway?
    Thank you.

    Hi
    I need oracle Tranparent Gateway for Microsoft Sqlserver (tg4msql) for oracle 10g on linux x86-64 bit. I have searched for it on otn.oracle.com and on edelivery.oracle.com. But couldn't find it.
    Can any one help me in this regard.
    Regards
    Nadir.

  • Need help trouble shooting Database Gateway for MS SQL Server setup, getting ORA-28546 error

    Dear All,
    I am trying to setup Oracle Database Gateway for MS SQL Server(I don't have admin access to the MS SQL Server).  When I try to test the dblink connection, I get the following error.
    I issued select * from dual@xyz;
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=dg4msql)))
    ORA-02063: preceding 2 lines from xyz
    28546. 0000 -  "connection initialization failed, probable Net8 admin error"
    My setup is the following.
    1. Oracle 11gR2 running on Oracle Linux 6, the same version gateway is installed on the same server, but different home directory.
    2. Oracle DB home directory is /u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is /u01/gateway.
    3. I use the same listener.ora file for both the db and the gateway.
    4. the contents of my listener.ora, tnsnames.ora and the initdg4msql.ora are below.
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          #(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    mssql =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME=db.abc.com.tw)
          (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME=orcl)
    SID_LIST_mssql =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME=dg4msql)
          (ENVS=LD_LIBRARY_PATH=/u01/gateway/dg4msql/driver/lib:/u01/gateway/lib)
          (PROGRAM_NAME=/u01/gateway/bin/dg4msql)
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.abc.com.tw)
    dg4msql  =
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521))
        (CONNECT_DATA=(SID=dg4msql))
        (HS=OK)
    /u01/gateway/dg4msql/admin/initdg4msql.ora
    HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=255
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    dblink was created using statement below.
    CREATE DATABASE LINK "xyz.abc.COM.TW"
    CONNECT TO SA IDENTIFIED BY
    USING 'dg4msql';
    Couple more things, that I have done to check the work above.
    [oracle@db admin]$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=61 time=7.61 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=61 time=7.41 ms
    ^C
    --- 192.168.0.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1818ms
    rtt min/avg/max/mdev = 7.417/7.516/7.615/0.099 ms
    [oracle@db admin]$ tnsping dg4msql
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:53:11
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
    OK (0 msec)
    [oracle@db admin]$ lsnrctl status mssql
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:54:23
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     mssql
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                11-SEP-2013 10:09:46
    Uptime                    0 days 0 hr. 44 min. 37 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/db/mssql/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "dg4msql" has 1 instance(s).
      Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Obviously, I would like to get this setup to work, but I also have couple other questions regarding this setup.
    1. When installing the gateway, it asks to run the root.sh script.  the root.sh script as for the following.
    Enter the full pathname of the local bin directory: [/usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    is the above answer correct?
    Thanks for reading.

    Dear Klaus,
    I did start a new SQL*PLUS session
    The output of  /u01/gateway/bin/dg4msql is
    [oracle@db log]$ /u01/gateway/bin/dg4msql
    Oracle Corporation --- WEDNESDAY SEP 11 2013 14:45:06.604
    Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production  Built with
       Oracle Database Gateway for MSSQL
    The output of env is
    HOSTNAME=db.abc.com.tw
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    ORACLE_UNQNAME=orcl
    TMPDIR=/tmp
    QTDIR=/usr/lib64/qt-3.3
    QTINC=/usr/lib64/qt-3.3/include
    USER=oracle
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib
    LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
    ORACLE_SID=orcl
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOSTNAME=db.abc.com.tw
    MAIL=/var/spool/mail/oracle
    PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle
    LANG=en_US.UTF-8
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    HISTCONTROL=ignoredups
    SHLVL=1
    HOME=/home/oracle
    TMP=/tmp
    LOGNAME=oracle
    QTLIB=/usr/lib64/qt-3.3/lib
    CVS_RSH=ssh
    CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/jlib:/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/jlib
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    G_BROKEN_FILENAMES=1
    _=/bin/env

  • Help Configuring Transparent Gateway for Ms Sql Server

    I have Installed Oracle 9.2.0.1.0 with Transparent Gateway for Ms Sql Server.
    Followed the configuration furnished therein the Documents for Tnsnames.ora & Listener.ora.
    Connection to Sql Server 2000 is NOT SUCCESSFUL. Trace File contents from Tg4sql is furnished below :
    Oracle Corporation --- WEDNESDAY DEC 18 2002 22:32:50.625
    Heterogeneous 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: NCR: Invalid usage
    Note :- Sql Server & Oracle Server are on the same Machine running of Windows 2000 Server.
    Am i missing something !!!
    TIA

    Please guide me, would appreciate your suggestions to solve this heck....
    TIA

  • Oracle Book for experienced SQL Server developer

    Hi everyone
    I'm looking for suggestions for a book to start with Oracle database development. Though, I'm not looking for a beginner book that starts with explaining what tables, views and procedures are.
    I'm doing database development on MS SQL Server since 12 years. I also know things like relational algebra, no-cursors and other general database guidelines.
    What do you think about one of those books?
    Oracle Essentials: Oracle Database 11g: http://www.amazon.com/Oracle-Essentials-Database-11g/dp/0596514549/
    Oracle PL/SQL Programming: Covers Versions Through Oracle Database 11g Release 2: http://www.amazon.com/Oracle-PL-SQL-Programming-Versions/dp/0596514468/
    Any suggestions would be great. :-)
    Thanks in advance
    Flo
    BTW: I'm not looking for free web resources, I'm looking for a paperback.
    Edited by: Florian Reischl on Jun 24, 2012 3:06 AM

    >
    Hi and welcome to the forums.
    What do you think about one of those books?
    Oracle Essentials: Oracle Database 11g: http://www.amazon.com/Oracle-Essentials-Database-11g/dp/0596514549/
    Just download the Concepts manual. I was disappointed with my purchase.
    Oracle PL/SQL Programming: Covers Versions Through Oracle Database 11g Release 2: http://www.amazon.com/Oracle-PL-SQL-Programming-Versions/dp/0596514468/
    The "bible" of PL/SQL is by Steve Fueurstein. Get it.
    Any suggestions would be great. :-)Toim Kyte's books will explain the "philosophy" of Oracle- youi can comapre it to
    your SQL Server knowledge. Start with these and the Concepts manual.
    These forums are a great resource if you're not sure of something.
    Read the FAQ.
    HTH and good luck :)
    Paul...
    Edited by: Paulie on 24-Jun-2012 15:25

  • Oracle equivalent for MS Sql Server WITH(NOLOCK)

    Hi all :-)
    What is the equivalent of MS Sql Server WITH(NOLOCK)
    hint in Oracle ... or ... how can I achieve the same
    effect in Oracle SELECT queries ?

    = dirty read .
    to the op : read the concepts guide before going further; Oracle implements a different concurrency model than SQL Server

  • Transparent Gateway for MS SQL Server on Win 2000

    Can anyone tell me where I can get this software from? I was led
    to believe it was part of the 9.0.1 CD Pack for Microsoft
    Windows but it doesnt appear to part of it. Do I have to
    purchase another piece of software or can I download it from
    somewhere?
    Regards,

    The gateway is available on the Oracle database CD v9.0.1. There
    is no separate CD for the gateway as of v9.0.1.
    You can install the gateway but choosing the custom install
    option during the installation process.

  • GATEWAY CONFIGURE GUIDE FOR MS SQL SERVER

    제품 : GATEWAY
    작성날짜 : 1999-04-27
    configure gateway for ms sql server
    ===================================
    1. ODBC 환경 설정
    a: odbc driver install
    b: system data source 설정
    2. Gateway 설정
    a. gateway SID 를 선택 ( 제약 조건 : 문자와 숫자로 이루어진 4개의 문자 길이)
    sid 기본값은 MSQL 임
    b. Gateway 초기화 file 을 환경에 맞게 수정
    > CD <ORACLE_HOME>\TGMSQL80\ADMIN
    > COPY INITMSQL.ORA INIT<YOUR_GATEWAY_SID>.ORA
    초기 환경 화일을 수정한다
    c. 새로운 gateway service 를 생성
    ( gateway service 를 gateway sid 값을 MSQl 로 install 할시에는 이미
    생성이 됨 )
    > SET GTW_EXE=TGMSQL80.EXE
    > GTWSRV80 <YOUR_GATEWAY_SID> -CREATE
    d. gateway service 를 시작
    Control Panel -> Services Icon -> OracleTGServices<GATEWAY_SID> 를
    선택하여 시작
    3. SQL*NET 설정
    a. gateway service 를 위한 listener 설정
    <GATEWAY_HOME>\TGMSQL80\ADMIN directory 에 listener.ora file
    b. Listener Service 시작
    4. Gateway 접근을 위한 oracle db 쪽 설정
    a. Net8 설정
    tnsnames.ora file 에 gateway 에 대한 항목을 추가
    5. 기타
    sql server 에서 data dictionary table ( dualmsql ) 을 생성
    DUALMSQL 은 oracle data dicationnary 에 mapping 되어 있음
    > isql -U<username> -P<password> -iTGMSQLDU.sql
    6. Gateway 이용
    a. Logon to the Oracle Server
    b. SQL Server Database 에 대한 database link 생성
    SQL> create database link MSQL connect to <MSQL_USERNAME> identified
    by <MSQL_PASSWORD> using 'MSQL';

    제품 : GATEWAY
    작성날짜 : 1999-04-27
    configure gateway for ms sql server
    ===================================
    1. ODBC 환경 설정
    a: odbc driver install
    b: system data source 설정
    2. Gateway 설정
    a. gateway SID 를 선택 ( 제약 조건 : 문자와 숫자로 이루어진 4개의 문자 길이)
    sid 기본값은 MSQL 임
    b. Gateway 초기화 file 을 환경에 맞게 수정
    > CD <ORACLE_HOME>\TGMSQL80\ADMIN
    > COPY INITMSQL.ORA INIT<YOUR_GATEWAY_SID>.ORA
    초기 환경 화일을 수정한다
    c. 새로운 gateway service 를 생성
    ( gateway service 를 gateway sid 값을 MSQl 로 install 할시에는 이미
    생성이 됨 )
    > SET GTW_EXE=TGMSQL80.EXE
    > GTWSRV80 <YOUR_GATEWAY_SID> -CREATE
    d. gateway service 를 시작
    Control Panel -> Services Icon -> OracleTGServices<GATEWAY_SID> 를
    선택하여 시작
    3. SQL*NET 설정
    a. gateway service 를 위한 listener 설정
    <GATEWAY_HOME>\TGMSQL80\ADMIN directory 에 listener.ora file
    b. Listener Service 시작
    4. Gateway 접근을 위한 oracle db 쪽 설정
    a. Net8 설정
    tnsnames.ora file 에 gateway 에 대한 항목을 추가
    5. 기타
    sql server 에서 data dictionary table ( dualmsql ) 을 생성
    DUALMSQL 은 oracle data dicationnary 에 mapping 되어 있음
    > isql -U<username> -P<password> -iTGMSQLDU.sql
    6. Gateway 이용
    a. Logon to the Oracle Server
    b. SQL Server Database 에 대한 database link 생성
    SQL> create database link MSQL connect to <MSQL_USERNAME> identified
    by <MSQL_PASSWORD> using 'MSQL';

  • GATEWAY INSTALL GUIDE FOR MS SQL SERVER

    제품 : GATEWAY
    작성날짜 : 1999-04-27
    how to install the gateway for MS SQL server
    Software 요구 사항:
    Operating System:      Windows NT 4.0
    Oracle Server:           Oracle8 Server Enterprise Edition Version 8.0.4.0.0
    Oracle Networking:     On gateway:     Net8 Server Version 8.0.4; Oracle Adapter
                   On Oracle:      Net8 Client Version 8.0.4; Oracle Adapter
    Microsoft:          Network transport protocol software, included with Windows NT
                   ODBC Driver Manager Version 2.x or 3.0 (included with Microsoft ODBC
                   Software Development Kit)
                   ODBC SQL Server Driver Version 2.5 or 2.65
                   SQL Server Version 6.0 or 6.5
    Installing the Gateway:
    Step 1: Log on to the Windows NT machine
    Step 2: disk space 확인; 약 50Mb 정도가 gateway 설치를 위해서 필요
    Step 3: Stop all Oracle NT services
    Step 4: Run setup.exe from Stage area (\\guest01-osd\tgmsql804ship)
    Step 5: Choose Language
    Step 6: Oracle Home 의 위치 설정
    Step 7: Installation 방법을 설정. Custom Installation 을 선택하여
    the Transparent gateway 제품 선택
    Step 8: Click on [Install] button
    Step 9: Net8 adapters 가 install 되지 않았다면 install 할 것
    Step 10: Reboot your machine

    제품 : GATEWAY
    작성날짜 : 1999-04-27
    how to install the gateway for MS SQL server
    Software 요구 사항:
    Operating System:      Windows NT 4.0
    Oracle Server:           Oracle8 Server Enterprise Edition Version 8.0.4.0.0
    Oracle Networking:     On gateway:     Net8 Server Version 8.0.4; Oracle Adapter
                   On Oracle:      Net8 Client Version 8.0.4; Oracle Adapter
    Microsoft:          Network transport protocol software, included with Windows NT
                   ODBC Driver Manager Version 2.x or 3.0 (included with Microsoft ODBC
                   Software Development Kit)
                   ODBC SQL Server Driver Version 2.5 or 2.65
                   SQL Server Version 6.0 or 6.5
    Installing the Gateway:
    Step 1: Log on to the Windows NT machine
    Step 2: disk space 확인; 약 50Mb 정도가 gateway 설치를 위해서 필요
    Step 3: Stop all Oracle NT services
    Step 4: Run setup.exe from Stage area (\\guest01-osd\tgmsql804ship)
    Step 5: Choose Language
    Step 6: Oracle Home 의 위치 설정
    Step 7: Installation 방법을 설정. Custom Installation 을 선택하여
    the Transparent gateway 제품 선택
    Step 8: Click on [Install] button
    Step 9: Net8 adapters 가 install 되지 않았다면 install 할 것
    Step 10: Reboot your machine

  • Connect Oracle Reports to Ms Sql Server DB

    Is it possilbe to Connect Oracle Reports to Microsoft Sql Server database. If yes then how. Please advice.
    Thanks
    Sami.

    It is possible to connect Oracle database to MS Sql server database using the Oracle Transparent Gateway for MS SQL Server.
    You can use the following links to configure such connection:
    Oracle Transparent Gateways - General Description - Part I
    http://oracle-apps-dba.blogspot.com/2008/04/oracle-transparent-gateways-general.html
    Oracle Transparent Gateway for MS SQL Server - Part II
    http://oracle-apps-dba.blogspot.com/2008/04/oracle-transparent-gateway-for-ms-sql_16.html
    Aviad

  • Oracle 10g/11g to Sql Server 2005 Migration

    Dear All,
    I am a beginner to this migration Activities..
    We have designed one Application which is havin Database as Oracle 10g.
    and We had another small Application which is having Sql Server 2005 has Database.
    Daily we need to convert DB of Oracle to Sql server DB in order to acces recent updated data..
    Pls help me how to convert Database in Oracle 10g/11g to Database in sqlserver 2005..

    Hello,
    this is an Oracle forum and we are handling here migrations from foreign databases to an Oracle database.
    For migrations in the other direction, in your case from Oracle to MS SQL Server, you need to read the Microsoft pages, e.g.:
    http://www.microsoft.com/sqlserver/2005/en/us/migration.aspx
    Daily we need to convert DB of Oracle to Sql server DB in order to acces recent updated data..Normally a migration is not a daily process, so I guess that you just want to transfer data from Oracle to SQL Server on a daily basis. If that is the case, you should consider to use our Gateways. Please start reading here:
    http://www.oracle.com/technetwork/database/gateways/index-100140.html
    Using the Database Gateway for MS SQL Server (DG4MSQL) or the Database Gateway for ODBC (DG4ODBC) you can copy your data from your Oracle database to your SQL Server database, using a database link in the Oracle database.
    Please let me know whether this answer helped you.
    Regards
    Wolfgang

  • Oracle 8i to MS SQL Server replication

    Im new to Oracle, but a MS SQL Server DBA. Im helping in the architecture of a data warehouse that pulls from some disparate sources, including Oracle 8i, into a SQL Server 2000 box. We could use batch processing to pull updated data from the Oracle database to populate our data warehouse, but we were hoping to get real-time transactional processing via some replication scenario. My terminology may be wrong from the Oracle perspective, but I think the transactional replication that SQL Server supports is called synchronous replication in Oracle. My question is, does anybody know how to do synchronous replication from an Oracle server to a SQL Server? Or perhaps which Oracle product supports it? Thanks!
    null

    ===========================================================
    I'm working on the similar requirements, exactly my source DB is DB2, and the target DB is Oracle. I have two year experience with Oracle, but I know nothing about DB2. There a about 50 tables in source DB. Transactions on source DB is not too heavy(less than 10/Second), and the mainfram are all powerful.
    I've though about Oracle Gateway, but I'd rather save it as the backup solution. For one thing, neither co-workers nor I have experience with it. Second, I'm afraid the Gateway performance would not be satisfactory. Furthermore, words has it that we should pay for the Gateway. So My ideas to real-time replication of the two DB is as following:
    (1) use trigger in DB2 to reponse to immediate transactions in source DB;
    (2) use Embedded C/SQL to extract those transactions into flat files;
    (3) FTP files to the target server;
    (4) On target server, SHELL scripts read the files and call Pro*C to apply the transactions into Oracle DB.
    but, some problems really get me.
    A: in step(1) and (2), How to set EC to do its work in reponse to trigger? I know that one can call host script in Oracle trigger, but I have no idea about DB2 trigger. Maybe, I can create a real-time monitoring EC process to address it. what's your opinion?
    B: I should maintain all transaction metadata by myself. e.g. INSERT, UPDATE old/new data, DELETE info. It is originally covered by the database, and it isn't easy to handle it squarely.
    C: How to address some exception? like database rollback, the process recovery in case of any interruptions in the above steps.
    Could you share me some idea, Thank you!
    eilison
    [email protected]

  • Need help setting up DB Link from my Oracle 11g XE to SQL Server.

    Hi,
    I'm trying to create a DB Link from my Oracle 11g Express Edition in a Windows XP machine to an SQL Server. Here are the steps I've done so far.
    1. Created and setup an ODBC Connection for the SQL Server DB. Named it SQLSERVER. Windows Authenticated.
    2. Modified listener.ora. See below.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = SQLSERVER)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = hsodbc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)3. Modified tnsnames.ora. See below.
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    SQLSERVER =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT=1521))
        (CONNECT_DATA =
          (SID = SQLSERVER)
      (HS = OK)
    )4. Copied C:\oraclexe\app\oracle\product\11.2.0\server\hs\admin\initdg4odbc.ora to C:\oraclexe\app\oracle\product\11.2.0\server\hs\admin\initSQLSERVER.ora and modified it. See below.
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = SQLSERVER
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>5. Restarted listener.
    C:\>lsnrctl stop
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2012 11:33
    :51
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    The command completed successfully
    C:\>lsnrctl start
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2012 11:33
    :54
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    System parameter file is C:\oraclexe\app\oracle\product\11.2.0\server\network\ad
    min\listener.ora
    Log messages written to C:\oraclexe\app\oracle\diag\tnslsnr\PHAILORTD000012\list
    ener\alert\log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Start Date                18-SEP-2012 11:33:57
    Uptime                    0 days 0 hr. 0 min. 3 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   C:\oraclexe\app\oracle\product\11.2.0\server\network\a
    dmin\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\diag\tnslsnr\PHAILORTD000012\li
    stener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "SQLSERVER" has 1 instance(s).
      Instance "SQLSERVER", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully6. Created database link using the following command.
    create database link sqlserver using 'SQLSERVER';7. Test using
    select * from "dbo.mytable"@sqlserver;
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from SQLSERVER
    select * from dbo.mytable@sqlserver;
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from SQLSERVER
    select * from mytable@sqlserver;
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from SQLSERVERI followed the steps provided in this link but not sure where I went wrong. Can someone help me.
    http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
    Thanks,
    Allen

    Here's more information on the machines.
    Machine where the Oracle Database 11g Express Edition: IP Address is 10.162.128.67
    Machine where the SQL Server database: IP Address is 142.120.51.30.
    I've modified the tnsnames.ora to the following:
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 10.162.128.67)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    SQLSERVER =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 142.120.51.30)(PORT=1433))
        (CONNECT_DATA =
          (SID = SQLSERVER)
      (HS = OK)
    )But now I'm getting the following error:
    C:\>tnsping sqlserver
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2
    012 14:52:59
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 142.120.51.30)(PORT=1434))) (CONNECT_DATA = (SID = SQLSERVER)) (HS = OK)
    TNS-12541: TNS:no listener
    C:\>Regards,
    Allen

Maybe you are looking for

  • I need help its urgent.

    hi, i have fields :  S_DISCTY FOR  VBAK-ZZDISCTY1                   S_DISPRT FOR  VBAK-ZZDISPORT1 in data base tables zzdiscty1 lenght is 3 charaters. my requirememnt is at selection screen the length of these field should make itas 2 characters.how

  • ERROR ITMS-9000: "Images larger than 2000000 pixels are not allowed in books

    How to reduce image to resolve following issue ? ERROR ITMS-9000: "Images larger than 2000000 pixels are not allowed in books Thanks.

  • ReInstallation of iTunes/iPod Updating

    Here's the deal: My hard drive had to be replaced because of an unexpected meltdown. Luckily, I had all my songs on my ipod, so I didn't lose my music. However, now that I've installed iTunes onto my new hard drive and retrieved my purchased music fr

  • How to remove mouseover help in WDA?

    Hello Guys, I am getting mouse over kind of help whenever I am taking mouse cursor over inputfield or button. we are on ERP 6.0 EhP4 system. for e.g. button with name Process, the text is "Process - Button -  Process - To activate, press spacebar" In

  • Rebate Agreement against Payer (HeadOffice)

    Dear Experts, I have a scenario where one of my customer is having several branches and one head office. I customer master against each branch customer we have maintained the main customer number in Head office field and sort key as '004'. The head o