SQL Server Gateway

Can't get Gateway to SQL Server to work...
Error from Oracle database when trying to access SQL Server DB, through DB Link that was set up in Oracle:
ORA-02068: following severe error from PMCDEV ORA-03114: not connected to ORACLE
Trace from gateway (for above Oracle error):
Remote HO Agent received unexpected RPC disconnect
status 2: ncrorpi_recv_procid, called from horg.c
(Gateway, Oracle Server, SQL Server on seperate machines.
Using Oracle 8.1.6, SQL Server 2000 on NT 4)
Because of the fact that the gateway creates a trace file, I assume that the listener etc is configured correctly and that the problem is on the gateway, not being able to connect to the SQL Server database or something. I have installed SQL Server client side software on gateway machine as a test, and it can connect to the SQL Server database with no problems.
What else needs to be installed on the gateway machine, except for the Gateway installation and the configuration as in the Oracle documentation? I have tried all kinds of different configurations but always get same result. I know it's probably something stupid that I overlooked, but I can't find the problem...

I've included what I can here, hope it's enough info.
What would be other possible reasons for the error that I'm getting? (not connected to ORACLE) Would it be
possible to get gateway working with SQL Server 2000 without upgrading the Oracle database? (not my database, and client does not want to upgrade now) Are there any tools available to test that the setup worked, or pinpoint the problem if any?
inittg4msql.ora
HS_FDS_CONNECT_INFO=pmc_dev.pmcdev
HS_FDS_TRACE_LEVEL=on
HS_FDS_RESULTSET_SUPPORT=true
listener.ora (on gateway machine)
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=tg4msql)
(ORACLE_HOME=E:\Oracle\Ora81)
(PROGRAM=tg4msql)
tnsnames.ora (on Oracle Server and Gateway machine)
tg4msql.investec.co.za =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.100.85.204)(PORT = 1521))
(CONNECT_DATA =
(SID = tg4msql)
(HS=OK)
DB Link
CREATE PUBLIC DATABASE LINK pmcdev.investec.co.za
CONNECT TO MAVEN IDENTIFIED BY *
USING 'tg4msql.investec.co.za'
For the trace file...
I was not sure how or where to set the trace level to debug, but here's what I could come up with...
(For trying to do: 'SELECT * FROM all_tables@pmcdev')
tg4msql_agt_???.trc (Gateway trace file (HS_FDS_TRACE_LEVEL=on))
Remote HO Agent received unexpected RPC disconnect
status 2: ncrorpi_recv_procid, called from horg.c
listener.trc (Listener trace file (trc_level = support)) - Don't know if this is what you asked for...
sntseltst: FOUND: connection request on socket 164
nsevwait: 1 newly-posted event(s)
nsevfnt: cxd: 0x4d4100 stage 0: NT events set:
     CONNECTION REQUEST
nsevfnt: cxd: 0x4d4100 stage 0: NS events set:
     INCOMING CALL
nsevwait: event is 0x1, on 1
nsevwait: 1 posted event(s)
nsevwait: exit (0)
nsglhe: entry
nsglhe: Event on cxd 0x4d4100.
nsglhc: Allocating cxd 0x4d7100
nsanswer: entry
nsopen: entry
nsmal: entry
nsmal: 428 bytes at 0x4d7270
nsmal: normal exit
nsopenmplx: entry
nsmal: entry
nsmal: 1712 bytes at 0x1bad650
nsmal: normal exit
nsopenmplx: normal exit
nsopen: opening transport...
nttcon: entry
nttcon: toc = 3
nttcnp: entry
ntvlin: entry
ntvlin: exit
nttcnp: Validnode Table IN use; err 0x0
nttcnp: getting sockname
nttcnp: exit
nttcnr: entry
nttcnr: waiting to accept a connection.
nttvlser: entry
nttvlser: valid node check on incoming node 10.0.32.106
nttvlser: Accepted Entry: 10.0.32.106
nttcnr: exit
nttcon: NT layer TCP/IP connection has been established.
nttcon: exit
nsopen: transport is open
nsnainit: entry
nsnainit: answer
nsnadct: entry
nsnadct: normal exit
nsnasvnainfo: entry
nsnasvnainfo: NA disabled for this connection
nsnasvnainfo: normal exit
nainit: entry
nagblini: entry
nau_gin: entry
nau_gparams: entry
nam_gbp: Reading parameter "sqlnet.authentication_required" from parameter file
nam_gbp: Parameter not found
nau_gparams: Using default value "FALSE"
nau_gslf: entry
nam_gic: entry
nam_gic: Counting # of items in "sqlnet.authentication_services" parameter
nam_gic: Parameter not found
nam_gic: Found 0 items
nam_gic: exit
nau_gslf: Using default value "all available adapters"
nauss_set_state: entry
nauss_set_state: exit
nau_gslf: exit
nau_gparams: exit
nau_gin: exit
nagblini: exit
na_saveprot: entry
na_saveprot: exit
nacomin: entry
nas_init: entry
nas_init: exit
nau_ini: entry
naugcp_get_connect_parameters: entry
nauss_set_state: entry
nauss_set_state: exit
naugcp_get_connect_parameters: exit
nau_gettab: entry
nau_tadv: entry
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: orank58.dll
nau_fad: exit
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: orangss8.dll
nau_fad: exit
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: oranidx8.dll
nau_fad: exit
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: oransid8.dll
nau_fad: exit
nau_fad: entry
nau_fad: exit
nau_fad: entry
nau_fad: exit
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: oranoss8.dll
nau_fad: exit
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: oranrad8.dll
nau_fad: exit
nau_tadv: Found at least one invalid entry
nau_tadv: exit
nau_gettab: using authentication adapter table "dynamic table"
nau_gettab: dynamic table contains the following services:
nau_gettab:      NDS
nau_gettab:      NTS
nau_gettab: exit
nau_sini: entry
nau_sini: exit
nau_ini: connection type: "standard"
nau_ini: exit
naeeinit: entry
nam_gbp: Reading parameter "SQLNET.FIPS_140" from parameter file
nam_gbp: Parameter not found
nam_gnsp: Reading parameter "SQLNET.ENCRYPTION_SERVER" from parameter file
nam_gnsp: Parameter not found
naequad: Using default value "ACCEPTED"
nam_gic: entry
nam_gic: Counting # of items in "SQLNET.ENCRYPTION_TYPES_SERVER" parameter
nam_gic: Parameter not found
nam_gic: exit
naesno: Using default value "all available algorithms"
naeshow: entry
naeshow: These are the encryption algorithms that the server will accept, in decreasing order of preference:
naeshow: Choice 0: no algorithm; encryption inactive
naeshow: exit
naeeinit: exit
naecinit: entry
nam_gnsp: Reading parameter "SQLNET.CRYPTO_CHECKSUM_SERVER" from parameter file
nam_gnsp: Parameter not found
naequad: Using default value "ACCEPTED"
nam_gic: entry
nam_gic: Counting # of items in "SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER" parameter
nam_gic: Parameter not found
nam_gic: exit
naesno: Using default value "all available algorithms"
naeshow: entry
naeshow: These are the checksumming algorithms that the server will accept, in decreasing order of preference:
naeshow: Choice 0: no algorithm; checksumming inactive
naeshow: exit
naecinit: exit
nainit: native services disabled - disconnecting
nadisc: entry
nacomtm: entry
nacompd: entry
nacompd: exit
nacompd: entry
nacompd: exit
nacomtm: exit
nas_dis: entry
nas_dis: exit
nau_dis: entry
nau_fad: exit
nau_dis: exit
naeetrm: entry
naeetrm: exit
naectrm: entry
naectrm: exit
nagbltrm: entry
nau_gtm: entry
nau_gtm: exit
nagbltrm: exit
nadisc: exit
nainit: exit
nsnainit: NS Connection version: 310
nsnainit: inf->nsinfflg[0]: 0xd inf->nsinfflg[1]: 0xd
nsnainit: "or" info flags: 0xd     Translations follow:
     native service(s) is (are) wanted
     NA disabled remotely for this connection
     NA services unavailable on both processes - negotiation not needed
nsnainit: "or" info flags: 0xd     Translations follow:
     native service(s) is (are) wanted
     NA disabled remotely for this connection
     NA services unavailable on both processes - negotiation not needed
"and" info flags: 0xd     Translations follow:
     native service(s) is (are) wanted
     NA disabled remotely for this connection
     NA services unavailable on both processes - negotiation not needed
nsnainit: normal exit
nsopen: global context check-in (to slot 4) complete
nsopen: lcl[0]=0x1fefff, lcl[1]=0x12003, gbl[0]=0x783f, gbl[1]=0x2001, tdu=32767, sdu=8192
nsdo: entry
nsdo: cid=4, opcode=65, bl=0, what=0, uflgs=0x0, cflgs=0x2
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=7, flg=0x4200, mvd=0
nsbal: entry
nsbgetfl: entry
nsbgetfl: normal exit
nsbal: normal exit
nsbal: entry
nsbgetfl: entry
nsbgetfl: normal exit
nsbal: normal exit
nsdo: nsctxrnk=0
nsdo: normal exit
nsopen: normal exit
nsanswer: deferring connect attempt; at stage 5
nsanswer: normal exit
nsevreg: entry
nsevreg: begin registration process for 4
nsevregPrePost: entry
nsevregPrePost: normal exit
nsevreg: sgt=0, evn=1, evt[2]=0x0
nsevreg: begin notification process for 4
nsevregAffectNotif: entry
nsevregAffectNotif: exit (0)
nsevreg: rdm=0, sgt=0, evt[0]=0x20, [1]=0x20, [2]=0x0, nrg=0
nsevreg: registering for 0x20
nsevreg: normal exit
nsglhe: exit
nsevwait: entry
nsevwait: 3 registered connection(s)
nsevwait: 1 added to NT list for 0x8
nsevwait: 3 added to NT list for 0x8
nsevwait: 4 added to NT list for 0x2
nsevwait: 0 pre-posted event(s)
nsevwait: waiting for transport event (1 thru 4)...
ntctst: size of NTTEST list is 2 - calling poll
ntctspoll: Testing for 2 cxds on protocol select
sntseltst: Testing for CONNECTIONS on socket 164
sntseltst: Testing for DATA on socket 208
ntctspoll: Testing for 1 cxds on protocol Named Pipes NT Protocol Adapter
sntseltst: FOUND: read request on socket 208
nsevwait: 1 newly-posted event(s)
nsevfnt: cxd: 0x4d7100 stage 5: NT events set:
     READ
nsevfnt: cxd: 0x4d7100 stage 5: NS events set:
     OUTGOING CALL COMPLETE
nsprecv: entry
nsbal: entry
nsbgetfl: entry
nsbgetfl: normal exit
nsbal: normal exit
nsprecv: reading from transport...
nttrd: entry
nttrd: socket 208 had bytes read=257
nttrd: exit
nsprecv: 257 bytes from transport
nsprecv: tlen=257, plen=257, type=1
nsprecv: normal exit
nsevfnt: cxd: 0x4d7100 stage 5: NT events set:
     READ
nsevfnt: cxd: 0x4d7100 stage 5: NS events set:
     OUTGOING CALL COMPLETE
nsevdansw: entry
nsevdansw: at STAGE 5
nsdo: entry
nsdo: cid=4, opcode=68, bl=2040, what=8, uflgs=0x0, cflgs=0x3
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=14, flg=0x4204, mvd=0
nsdo: gtn=0, gtc=0, ptn=10, ptc=8191
nscon: entry
nscon: doing connect handshake...
nscon: recving a packet
nsprecv: entry
nsprecv: 257 bytes from leftover
nsprecv: tlen=257, plen=257, type=1
nsprecv: packet dump
nsprecv: 01 01 00 00 01 00 00 00 |........|
nsprecv: 01 36 01 2C 00 00 08 00 |.6.,....|
nsprecv: 7F FF A3 0A 00 00 01 00 |........|
nsprecv: 00 C7 00 3A 00 00 02 00 |...:....|
nsprecv: 21 21 00 00 00 00 00 00 |!!......|
nsprecv: 00 00 00 00 01 5A 00 EF |.....Z..|
nsprecv: 10 02 00 00 00 00 00 00 |........|
nsprecv: 00 00 28 44 45 53 43 52 |..(DESCR|
nsprecv: 49 50 54 49 4F 4E 3D 28 |IPTION=(|
nsprecv: 41 44 44 52 45 53 53 3D |ADDRESS=|
nsprecv: 28 50 52 4F 54 4F 43 4F |(PROTOCO|
nsprecv: 4C 3D 54 43 50 29 28 48 |L=TCP)(H|
nsprecv: 4F 53 54 3D 69 6E 76 31 |OST=inv1|
nsprecv: 30 35 2E 70 76 62 2E 63 |05.pvb.c|
nsprecv: 6F 72 70 2E 69 6E 76 65 |orp.inve|
nsprecv: 73 74 65 63 2E 63 6F 6D |stec.com|
nsprecv: 29 28 50 4F 52 54 3D 31 |)(PORT=1|
nsprecv: 35 32 31 29 29 28 43 4F |521))(CO|
nsprecv: 4E 4E 45 43 54 5F 44 41 |NNECT_DA|
nsprecv: 54 41 3D 28 53 49 44 3D |TA=(SID=|
nsprecv: 74 67 34 6D 73 71 6C 29 |tg4msql)|
nsprecv: 28 48 53 3D 4F 4B 29 28 |(HS=OK)(|
nsprecv: 43 49 44 3D 28 50 52 4F |CID=(PRO|
nsprecv: 47 52 41 4D 3D 64 3A 5C |GRAM=d:\|
nsprecv: 6F 72 61 63 6C 65 5C 6F |oracle\o|
nsprecv: 72 61 38 31 5C 62 69 6E |ra81\bin|
nsprecv: 5C 4F 52 41 43 4C 45 2E |\ORACLE.|
nsprecv: 45 58 45 29 28 48 4F 53 |EXE)(HOS|
nsprecv: 54 3D 49 49 42 5F 49 4E |T=IIB_IN|
nsprecv: 53 49 47 48 54 32 4B 29 |SIGHT2K)|
nsprecv: 28 55 53 45 52 3D 50 54 |(USER=PT|
nsprecv: 72 75 74 65 72 29 29 29 |ruter)))|
nsprecv: 29 00 00 00 00 00 00 00 |).......|
nsprecv: normal exit
nscon: got NSPTCN packet
nsconneg: entry
nsconneg: vsn=310, lov=300, opt=0x0, sdu=2048, tdu=32767, ntc=0xa30a
nsconneg: vsn=310, gbl=0x1, sdu=2048, tdu=32767
nsconneg: normal exit
nscon: got 199 bytes connect data
nscon: exit (0)
nsdo: nsctxrnk=0
nsdo: normal exit
nsevdansw: exit
nttctl: entry
nttctl: Clearing non-blocking mode
nsevwait: event is 0x20, on 4
nsevwait: 1 posted event(s)
nsevwait: exit (0)
nsglhe: entry
nsglhe: Event on cxd 0x4d7100.
nsglfc: Assume establishing a connection: look for SID
nsglfc: command = establish
nttaddr2bnd: entry
nttaddr2bnd: exit
nsbequeath: entry
nsc2addr: entry
nlpcaini: entry
nlpcaini: prg =
nlpcaini: arg[0] =
nlpcaini: arg[1] =
nlpcaini: exit
nsc2addr: normal exit
nsbeqaddr: entry
nsbeqaddr: connecting...
ntpcon: entry
ntpcon: toc = 1
sntpcall: entry
snlpcss: entry
snlpcss: exit
sntpcall: Attempting to open pipe \\.\PIPE\ORANTP110.10A
sntpcall: Successfully established pipe 228 to child
sntpcall: exit
ntpcon: NT layer IPC connection has been established
ntpcon: exit
nsbeqaddr: doing connect handshake...
nttaddr2bnd: entry
nttaddr2bnd: exit
nsbequeath: doing connect handshake...
ntpwr: entry
ntpwr: exit
ntpwr: entry
ntpwr: exit
ntpwr: entry
ntpwr: exit
ntprd: entry
ntprd: exit
ntprd: entry
ntprd: exit
nsbequeath: REDIR="(ADDRESS=(PROTOCOL=tcp)(HOST=10.100.85.204)(PORT=4152))"
ntpdisc: entry
ntpdisc: exit
nsbeqaddr: handshake is complete; redirecting
nsredirect: entry
nsdo: entry
nsdo: cid=4, opcode=67, bl=55, what=11, uflgs=0x0, cflgs=0x3
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=2, flg=0x4204, mvd=0
nsdo: gtn=257, gtc=257, ptn=10, ptc=8191
nscon: entry
nscon: sending NSPTRD packet
nspsend: entry
nspsend: plen=65, type=5
nttwr: entry
nttwr: socket 208 had bytes written=65
nttwr: exit
nspsend: 65 bytes to transport
nspsend: packet dump
nspsend: 00 41 00 00 05 00 00 00 |.A......|
nspsend: 00 37 28 41 44 44 52 45 |.7(ADDRE|
nspsend: 53 53 3D 28 50 52 4F 54 |SS=(PROT|
nspsend: 4F 43 4F 4C 3D 74 63 70 |OCOL=tcp|
nspsend: 29 28 48 4F 53 54 3D 31 |)(HOST=1|
nspsend: 30 2E 31 30 30 2E 38 35 |0.100.85|
nspsend: 2E 32 30 34 29 28 50 4F |.204)(PO|
nspsend: 52 54 3D 34 31 35 32 29 |RT=4152)|
nspsend: 29 00 00 00 00 00 00 00 |).......|
nspsend: normal exit
nscon: exit (0)
nsdo: nsctxrnk=0
nsdo: normal exit
nsclose: entry
nstimarmed: entry
nstimarmed: no timer allocated
nstimarmed: normal exit
nsdo: entry
nsdo: cid=4, opcode=66, bl=0, what=0, uflgs=0x0, cflgs=0x2
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=2, flg=0x4200, mvd=0
nsevunreg: entry
nsevunreg: cid=4, sgt=0, rdm=0
nsrah: entry
nsevunreg: 2 registered connection(s)
nsevunreg: normal exit
nsbfr: entry
nsbaddfl: entry
nsbaddfl: normal exit
nsbfr: normal exit
nsbfr: entry
nsbaddfl: entry
nsbaddfl: normal exit
nsbfr: normal exit
nsdo: nsctxrnk=0
nsdo: normal exit
nsclose: closing transport
nttdisc: entry
nttdisc: Closed socket 208
nttdisc: exit
nsclose: global context check-out (from slot 4) complete
nsnadisc: entry
nsbfr: entry
nsbaddfl: entry
nsbaddfl: normal exit
nsbfr: normal exit
nsmfr: entry
nsmfr: 1712 bytes at 0x1bad650
nsmfr: normal exit
nsmfr: entry
nsmfr: 428 bytes at 0x4d7270
nsmfr: normal exit
nsclose: normal exit
nsredirect: exit (0)
nsbeqaddr: connect handshake is complete
nsbeqaddr: normal exit
nsbequeath: normal exit
tnslsnr: entry
tnslsnr: entry
nttaddr2bnd: entry
nttaddr2bnd: exit
tnslsnr: connect string inst->lcxd[0]: (ADDRESS=(PROTOCOL=tcp)(HOST=inv105.pvb.corp.investec.com)(PORT=1521))
tnslsnr: connect string inst->lcxd[1]: (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc))
tnslsnr: exit
nsglhe: exit
nsevwait: entry
nsevwait: 2 registered connection(s)
nsevwait: 1 added to NT list for 0x8
nsevwait: 3 added to NT list for 0x8
nsevwait: 0 pre-posted event(s)
nsevwait: waiting for transport event (1 thru 3)...
ntctst: size of NTTEST list is 2 - calling poll
ntctspoll: Testing for 1 cxds on protocol select
sntseltst: Testing for CONNECTIONS on socket 164
ntctspoll: Testing for 1 cxds on protocol Named Pipes NT Protocol Adapter

Similar Messages

  • SQL Server Gateway Licensing - Production and Test

    I have a client who has two databases that need to use the SQL Server Gateway - production and test (two separate servers).
    As the gateway is separately licensed and can be installed on a separate machine from the database server am I right in saying that only one license is needed for the Gateway
    and that both test and production databases can use it?
    The Oracle Partner that they use is telling them that they need to buy two Gateway licences.
    Can any one help? Thanks!

    Hello User,
    You can find the application under below path
    Domain_name - Expand "Environment" and Select " Deployments " - here your application will show which are deployed in this domain.
    Please refer -http://docs.oracle.com/cd/E13222_01/wls/docs100/intro/console.html
    Regards
    Laksh

  • Sql server gateways generating prety huge logs.

    Hi All,
    We are having a sql server gateways for 11GR2 and somehow , it's going crazy , in terms of generating the trace files. I am a newbie here , and have no clue , where to start troubleshooting on this. Following is the information , I tried to explore and did not find anything, which is causing this.
    [oracle@ampxp1d1]:$pwd
    /u01/app/oracle/product/gwy11.2.0.3/dg4msql/log
    [oracle@ampxp1d1]:$du -sh *|grep G
    18G     ARTEMISDW_agt_100099.trc
    4.0G    ARTEMISDW_agt_101783.trc
    19G     ARTEMISDW_agt_110159.trc
    4.2G    ARTEMISDW_agt_118527.trc
    3.9G    ARTEMISDW_agt_120435.trc
    14G     ARTEMISDW_agt_122942.trc
    [oracle@ampxp1d1]:$cat initARTEMISDW.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO=10.160.162.159:1433//ArtemisDW
    #HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    TRACE_LEVEL=0
    [oracle@ampxp1d1]:$cat initArtemisDW.ora
    # HS init parameters
    HS_FDS_CONNECT_STRING = "LoginTimeout=120"
    HS_FDS_CONNECT_INFO=10.161.160.40:1433//ArtemisDW
    #HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    TRACE_LEVEL=0

    Hi,
      The only way trace files should be generated is if the HS_FDS_TRACE_LEVEL has been set but this doesn't seem to be the case here.
    What are the dates and contents of the log files ?  Do they show 'hgopars' statements for the SQL being executed and then 'fetch' statements ?
    Could you do the following -
    - comment out the TRACE_LEVEL parameters.
    - comment out the HS_FDS_TRACE_LEVEL parameters
    Do you still see traces generated ?
    If you did have the trace level set to something other than OFF and changed it then it will only be picked up by users when they make a new gateway connection.  If they have an existing connection then it will still be producing trace files until they close the existing connection and create a new one.
    Regards,
    Mike

  • Insert/Update On Oracle to MS SQL Server Gateway

    I have been successful in creating a gateway between Oracle and SQL Server.
    Everything works fine for a Select Stmt.
    But not for an Insert or Update,
    I get a message about a "Read Only Cursor".
    I have setup a HS_TRANSACTION_LOG table in the SQL Server DB. The user that I created the table with is the same as the user in the "tg4msql" file for recovery. The table has also been granted PUBLIC Access.
    What am I missing?
    MESSAGE:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for MSSQL]FOR UPDATE cannot be specified on a READ ONLY cursor.

    Hi,
    I don't think the 32 vs. 64 bit is the issue. Have you tried checking OSS note: 512739. It describes the prerequisites for accessing MS SQLServer via DB Connect. Normally problems occurs due to unsupported data types being used in SQLServer - in such cases you have to create views in the source system and then use these views instead of the actual database tables. In the view you can perform the necessary data type conversion.
    Hth,
    Jacob

  • Using "Top" keyword in Microsoft SQL Server Gateway?

    I want to query the top 5 records in sqlserver. Such as select top 5 * from table1
    But, oracle doesn't support "top"keyword and
    Gateway doesn't support rowid. Is there a solution?
    Thanks

    There is indeed no direct gateway support for this SQL Server specific 'top' function. However with the use of the DBMS_HS_PASSTHROUGH it should be possible to use the top-function. The DBMS_HS_PASSTHROUGH package allows you to move a SQL-statement 'as-is' to the remote non-Oracle database.
    Have a look at an example of the DBMS_HS_PASSTHROUGH usage (with a resultset) at the MetaLink document with DocID: 412491.1
    Regards,
    Ed

  • Where can I find the SQL Server Gateway for 816 and beyond?

    All,
    What CD is used to install the SQLServer Gateway?
    Any info would be great. Thanks.

    If you are talking about SQL Server Transparent Gateway, you
    need to buy it separate and it costs around $15K.
    It does not come with the standard enterprise edition.

  • Oracle 8i to SQL Server by Gateway

    Trying to setup a Transparent Gateway between Oracle 8.1.7 using Gateway 8.1.6 to MS SQL Server.
    Tried Gateway on both NT and 2000 Server.
    Here is the Error Message:
    SQL Plus Error Message
    SQL*Plus: Release 8.1.7.0.0 - Production on Thu Jul 8 16:37:36 2004
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    ERROR:
    ORA-03113: end-of-file on communication channel
    Any suggestions?
    Here are all the *.ora files.
    ORACLE: Release 8.1.7.0.0
    GATEWAY:Release 8.1.6.0.0
    SQLNET.ORA
    # SQLNET.ORA Network Configuration File: D:\Oracle\Ora81\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    LISTENER.ORA
    # LISTENER.ORA Network Configuration File: D:\oracle\ora81\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DENTMW2S)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DENTMW2S)(PORT = 1522))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\ora81)
    (SID_NAME = PLSExtProc)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = TG4MSQL)
    (ORACLE_HOME = D:\oracle\ora81)
    (SID_NAME = TG4MSQL)
    (PROGRAM=tg4msql)
    (SID_DESC =
    (GLOBAL_DBNAME = LUWC)
    (ORACLE_HOME = D:\oracle\ora81)
    (SID_NAME = LUWC)
    TNSNAMES.ORA
    # TNSNAMES.ORA Network Configuration File: d:\oracle\ora81\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    TG4MSQL =
    (DESCRIPTION =
    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = DENTMW2S)(PORT = 1522)))
    (CONNECT_DATA = (SID = TG4MSQL))
    (HS = OK)
    LUWDEV =
    (DESCRIPTION =
    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = DENTMW2S)(PORT = 1522)))
    (CONNECT_DATA = (SERVICE_NAME = LUWC))
    inittg4msql.ora
    # INITTG4MSQL.ORA Agent init file for MS SQL Server gateway Agent
    # HS Parameters File: d:\oracle\ora81\tg4msql\inittg4msql.ora
    HS_FDS_CONNECT_INFO=DENTMW6x.LAFCOMNM
    HS_FDS_TRACE_LEVEL=OFF

    I am a new member for OTN. I am facing a problem while connecting msassess database with oracle 9.2.0 with the help of hetrogeneous connectivity feature.
    I have done all the needful as suggested by many members in this forum. but finally when accessing a assess table with the help of the link , get the error "ORA-12154: TNS:could not resolve service name "
    I have checked all relevant entries in sqlnet.ora,hssid.ora,tnsnames.ora and listener.ora.. also created ODBC dsn. but couldn't resolve my problem.
    listener is regestering the service. but when tried tnsping . this utility shows following message and keeps on trying to contact: "
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = tcp)(HOST = bsesxx)(PORT = 1521)))"..................
    but not connect_data string. perhaps this is the cause of whole mess.
    I am posting contents of all relevant files.
    Oblized if anybody could help me as for last 2 days I ahve been storming my brain but no success.
    -------------sqlnet.ora-------------
    SQLNET.AUTHENTICATION_SERVICES= (NT)
    NAMES.DIRECTORY_PATH= (ONAMES, HOSTNAME , TNSNAMES )
    ----------listener.ora------------------------
    # LISTENER.ORA Network Configuration File: C:\Oracle\Ora9i\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bsesxx)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = DCC)
    (ORACLE_HOME = C:\Oracle\Ora9i)
    (SID_NAME = DCC)
    (SID_DESC =
    (GLOBAL_DBNAME = NEWDTS)
    (PROGRAM = HSODBC)
    (SID_NAME = NEWDTS)
    (ORACLE_HOME = C:\ORACLE\ORA9i)
    ----------------------tnsnames.ora-------------------
    # TNSNAMES.ORA Network Configuration File:
    C:\Oracle\Ora9i\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    MYDBASE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bsesxx)(PORT =
    1521))
    (CONNECT_DATA =
    (SID = MYDBASE)
    (SERVER = DEDICATED)
    # Date..........: Fri Apr 23 12:42:55 GMT+05:30 2004
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bsesxx)(PORT =
    1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC3))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    DCC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bsesxx)(PORT =
    1521))
    (CONNECT_DATA =
    (SID = DCC)
    (SERVER = DEDICATED)
    DCC_VIJAYDOFE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vijaydofe)(PORT =
    1521))
    (CONNECT_DATA =
    (SID = dcc)
    (SERVER = DEDICATED)
    RILDCC_BSESXX =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bsesxx)(PORT =
    1521))
    (CONNECT_DATA =
    (SID = rildcc)
    (SERVER = DEDICATED)
    RICDCC_BSESXX =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bsesxx)(PORT =
    1521))
    (CONNECT_DATA =
    (SID = RICDCC)
    (SERVER = DEDICATED)
    NEWDTS =
    (DESCRIPTION =
    (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = tcp)(HOST = bsesxx)(PORT =
    1521)))
    (CONNECT_DATA =
    (SID = NEWDTS)
    (HS = OK)
    -----------------init<hssid>.ora---------------
    HS_FDS_CONNECT_INFO = NEWDTS
    HS_DB_NAME = c:\NEWDTS.MDB
    HS_FDS_TRACE_LEVEL = OFF
    here NEWDTS is the DSN name as well source ms access database name,
    obliged if somebody could help me.

  • 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

  • Transparent Gateway Oracle 9i - MS SQL Server

    Hello from Germany,
    I tried to generate a gateway from my Oracle 9i Database to the MSSQL, both databases running on the same machine!
    I don´t know why, but its not working! TNSPing is ok, but a select to the databaselink gives me the ORA-28500 mistake.
    Here are my facts:
    MSSQL-User: Test Password: tt (everything granted)
    SQL-Server-DB: "Videothek"
    ###########init.ora (initvideothek.ora)#########
    HS_FDS_CONNECT_INFO=localhost.videothek
    HS_FDS_RECOVERY_ACCOUNT=Test
    HS_FDS_RECOVERY_PWD=tt
    HS_FDS_TRACE_LEVEL=DEBUG
    ###########listener.ora###################
    LISTENER=
    (DESCRIPTION_LIST=
    (ADDRESS_LIST=
    (ADDRESS = (PROTOCOL = TCP)
    (HOST = 127.0.0.1)
    (PORT = 1521)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = Videothek)
    (ORACLE_HOME = D:\Programme\DB\Oracle\Ora92)
    (PROGRAM = tg4msql)
    #########tnsnames.ora#####################
    Videothek =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SID = Videothek)
    (HS=OK)
    ########database-link#########
    create database link Videothek
    connect to Test identified by tt
    using 'Videothek'
    select * from tbkunde@videothek gives me the mistake:
    ORA-02068
    ORA-28511 and
    ORA-28509
    It would be very kind of You to give me a hint!
    Best Regards
    Marlon Schreiber

    Hello Tak, hello Scott,
    thank You for the suggestions You gave me meanwhile!
    Returned from holidays I'm still frustrated because my Transparent gateway is not working!
    From my point of view I tried everything!
    Listener is starting up without any problems and tnsping is working also!
    Again I'll give You my konfiguration-information hoping You can help me!
    Transparent gateway installed on Win2003 (Oracle 9.2i with 9.2.0.4-Patch)
    MSSQL-Server installed on seperate Win2003-machine (IP: 192.168.48.15)
    MSSQL-User: sa --> password:dd
    ######### initMARLONTG.ora ############
    # HS init parameters
    HS_FDS_CONNECT_INFO="SERVER=192.168.48.15;DATABASE=Videothek"
    HS_FDS_FEFAULT_OWNER=sa
    #HS_FDS_RECOVERY_ACCOUNT=sa
    #HS_FDS_RECOVERY_PWD=dd
    HS_FDS_TRACE_LEVEL=DEBUG
    ######### listener.ora ##############
    LISTENER=
    (DESCRIPTION_LIST=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS = (PROTOCOL = TCP)
    (HOST = 127.0.0.1)
    (PORT = 1521)
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS = (PROTOCOL = TCP)
    (HOST = 127.0.0.1)
    (PORT = 1434)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = BNS)
    (ORACLE_HOME = D:\Programme\DB\Oracle\Ora92)
    (SID_NAME = BNS)
    (SID_DESC =
    (SID_NAME = MARLONTG)
    (ORACLE_HOME = D:\Programme\DB\Oracle\Ora92)
    (PROGRAM = tg4msql)
    ########### tnsnames.ora #############
    BNS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = BNS)
    (SERVER = DEDICATED)
    TG4MSSQL =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1434))
    (CONNECT_DATA=(SID=MARLONTG))
    (HS=OK)
    ########## SQLNET.ora #########
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    ########## Created database-link #######
    create database link TESTLINK
    connect to SA identified by DD
    using 'TG4MSSQL';
    When I try a select on the database-link I get the ORA-02068, ORa-28511 and ORA-28509 failure-messages!
    If I look the trace-files it appears as I'm able to connect to MSSQL but somewhere is an unknown error:
    ######### trace-file ######
    Oracle Corporation --- MITTWOCH SEP 07 2005 14:17:06.853
    Heterogeneous Agent Release
    9.2.0.4.0
    (0) hoagprd (2): ; Entered.
    (0) (0): ; [Transparent gateway for MSSQL] version: 3.3.00.00.0030
    (0) (0): ; Class version: 117
    (0) hoagprd (2): ; Exited with retcode = 0.
    (0) hoainit (3): ; Entered.
    (0) (0): ; connect string is: defTdpName=MARLONTG;SYNTAX=(ORACLE8_HOA,
    (0) BASED_ON=ORACLE8, IDENTIFIER_QUOTE_CHAR="",
    (0) CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);BINDING=<navobj>
    <binding>
    <datasources>
    (0) <datasource name='MARLONTG' type='MSSQLODBC'
    (0) connect='SERVER=192.168.48.15;DATABASE=Videothek'>
    (0) <driverProperties/></datasource></datasources><environment>
    <misc
    (0) year2000Policy='-1' consumerApi='1' sessionBehavior='4'/><queryProcessor
    (0) parserDepth='2000' noInsertParameterization='true'
    (0) noThreadedReadAhead='true'/><debug
    (0) generalTrace='true'/></environment></binding></navobj>
    (0) ORACLE SQL SERVER GATEWAY Log File Started at 07-Sep-05 14:17:06
    (0) hoainit (3): ; Exited with retcode = 0.
    (0) hoalgon (7): ; Entered. name = SA.
    (0) Created new MSSQLODBC connection (15668040)
    (0) MESSAGE.C (1): ; Unexpected error opening message catalog
    (0) D:\Programme\DB\Oracle\Ora92\tg4msql\nls\eng\msg_base.msg
    (0) MESSAGE.C (190): ;
    (0) MESSAGE.C (11): ; Cannot open message file
    (0) D:\Programme\DB\Oracle\Ora92\tg4msql\nls\eng\msg_base.msg
    (0) DATABASE.C (475): ;
    (0) hoalgon (7): ; Exited with retcode = 0.
    (0) hoaulcp (4): ; Entered.
    (0) hoaulcp (4): ; Exited with retcode = 0.
    (0) hoauldt (5): ; Entered.
    (0) hoauldt (5): ; Exited with retcode = 0.
    (0) hoabegn (9): ; Entered. formatID = 306206, hoagttln = 24, hoagttid =
    (0) BUILD.06bf057.2.19.40973, hoagtbln = 10, hoagtbid = , tflag = 0, initial = 1
    (0) hoabegn (9): ; Exited with retcode = 0.
    (0) hoadtab (26): ; Entered. count = 1
    (0) hoadtab (26): ; schema_name = , table_name = TBKUNDE
    It would be very kind of You to give me any hint!
    Thanks for Your patience!
    Best regards from Germany!
    Marlon

  • Simple way to connect Oracle 11g XE with MS SQL Server 2000

    Is there a simple way to access SQL server database/ Tables within from Oracle 11g XE (Windows-32bit) on same machine. I am a novice so kindly keep it simple. Thanks

    To connect to a SQL Server you need to use an Oracle product called Database gateway for ODBC which uses a 3rd party ODBC driver to connect to the SQL Server.
    The easiest set up is to install DG4ODBC release 11.2 on the SQL Server. How to configure the Database Gateway for ODBC is described in note:
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install          [Document 466225.1]     
    when you install DG4ODBC on a 32bit Windows operating system and the instructions for a 64bit Widnows operating system can be found in this note:
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on 64bit Windows Operating Systems to Connect to Non-Oracle Databases Post Install          [Document 1266572.1]     
    The database gateway for ODBC is available for free from here:
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
    Please make sure you select the 32bit or 64bit Windows operating system depending on the platform where you've installed the SQL Server and on which you now install the gateway and download the <win32/64>_11gR2_gateways.zip CD.
    Once downloaded, unzip it and install it using the Oracle Universal installer. Make sure you select the product Database Gateway for ODBC (there's also a dedicated SQL server gateway called Database Gateway for MS SQL Server - this gateway is NOT for free and it requires a separate license).

  • Replication sql server to oracle

    Hi all,
    Anyone here good at replication?
    Can you help me what freeware, or poor woman's script, or cheaper tool (compared to GG) to replicate table from sql server to oracle?
    I tried googling it but it just too complex to understand :(
    Please help....
    Thanks,
    zxy

    There is a world of difference between a latency of 1 minute and a latency of 30 minutes. If you don't know for sure what sort of latency you can tolerate, you'll really need to figure out your requirements before anyone is going to be able to help.
    If you can tolerate a 30 minute latency and you can identify changes that need to be replicated from the SQL Server side, you may be able to cobble something together by using Heterogeneous Services to create a database link to SQL Server and scheduling a job in Oracle to run every, say, 15 minutes to replicate the changes. Assuming that you don't want to buy the SQL Server gateway, that would involve using the ODBC gateway. If your Oracle database is on Windows, that's not too big of a deal. If you're on something other than Windows, that would either require that you license a SQL Server ODBC driver that runs on whatever operating system you use (which will likely cost less than GoldenGate but more than nothing) or it will require a non-standard configuration where the gateway is installed on the machine that SQL Server is running on (or you could introduce a third Windows box that just runs the ODBC Gateway).
    Justin

  • DB Link to SQL Server (11gR2 64-bit Windows 7)

    Without going into all the gruesome details, it is mostly straightforward to set up a DB Link to SQL Server from an Oracle 10 instance on 32 bit Windows 7. However I simply cannot get the link to work on 11gR2. I tried the simplistic ds4odbc interface and the more complex SQL Server gateway. Nothing works. The connection always times out. Has anyone been able to create a SQL Server DB link from 11gR2 on Windows 7? (The Oracle instance is 32 bit. The OS is 64 bit). I know Win7 is unsupported at present.
    Edited by: user2190753 on Oct 14, 2010 4:51 PM

    Hi,
    first of all you need to check the ODBC connectivity between Oracle and SQL Server and the Data source,try to load data from oracle to Sql Server to check the ODBC connection is working properly and then create database link from sql server to oracle ,you can create stored procedures in SQL server to get data from Oracle to sql server or Oracle PL/SQL Packages to data from sql server to Oracle Database
    To setup ODBC and datasource
    see this link
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    and then create link server in sql server after you test connenction with oracle

  • Unable to refresh SQL Server data source through Data Management Gateway

    I just installed the version 1.1.5226.8 of Data Management Gateway and tried to refresh a simple query on a table connected to SQL Server, with no transformations in Power Query.
    This is the error I obtain:
    Errors in the high-level relational engine. The following exception occurred while the managed IDataReader interface was being used: transfer service job status is invalid.
    I am wondering whether my Power BI is still not updated to handle such a connection type, or there could be something else not working?
    I correctly created the data source in admin panel following instructions in Release Notes, and
    test Power Query connection is ok.
    Marco Russo http://www.sqlbi.com http://www.powerpivotworkshop.com http://sqlblog.com/blogs/marco_russo

    I made other tests and I found important information (maybe there is a bug, but read the following).
    The functions DateTime.LocalNow and DateTime.FixedLocalNow
    work correctly, generating these statements to SQL Server:
        convert(datetime2, '2014-05-03 06:37:52.1135108') as [LocalNow],
        convert(datetime2, '2014-05-03 06:37:52.0525061') as [FixedLocalNow],
    The functions DateTimeZone.FixedLocalNow, DateTimeZone.FixedUtcNow,
    DateTimeZone.LocalNow, and DateTimeZone.UtcNow
    stop the scheduled refresh with the error I mentioned
    in my previous messages, generating these statements to SQL Server:
        '2014-05-03 06:37:52.0525061+02:00' as [TZFixedLocalNow],
        '2014-05-03 04:37:52.0525061+00:00' as [TZFixedUtcNow],
        '2014-05-03 06:37:52.1135108+02:00' as [TZLocalNow],
        '2014-05-03 04:37:52.1135108+00:00' as [TZUtcNow]
    I solved the issue by placing the DateTimeZone calls after a Table.Buffer call, so query folding does not translate in SQL these functions. However, it seems like something to fix.
    Marco Russo http://www.sqlbi.com http://www.powerpivotworkshop.com http://sqlblog.com/blogs/marco_russo

  • 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

  • Problem with "Database Gateway for SQL Server"

    Hello,
    i am testing the different technologies for connecting an oracle database with a sql-server database.
    The way using 10g-generic-connectivity with ODBC works fine, but the 11g-DG4MSQL makes problems.
    Environment:
    Server PEGASUS (32bit Windows Server 2003 R2 SP2) with Oracle Database 10g Release 10.2.0.4.0
    Server OBELIXUS (32bit Windows 2000 Sp4) with MS-SQL-Server 2005
    On PEGASUS i have installed the gateway in a new oracle home directory:
    "D:\oracle\product\10.2.0\db_1" => home directory of 10g
    "D:\oracle\product\11.1.0\tg_1\" => home directory of the gateway
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora:
    MSSQLDG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DG4MSQL)
    (HS = OK)
    MSSQL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = MSSQLTEST)
    (HS = OK)
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = INTEGRAT)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = INTEGRAT)
    (SID_DESC =
    (SID_NAME = MSSQLTEST)
    (PROGRAM = D:\oracle\product\10.2.0\db_1\bin\hsodbc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_DESC=
    (SID_NAME=DG4MSQL)
    (ORACLE_HOME=D:\oracle\product\11.1.0\tg_1)
    (PROGRAM=D:\oracle\product\11.1.0\tg_1\BIN\dg4msql)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1521))
    D:\oracle\product\11.1.0\tg_1\dg4msql\admin\initDG4MSQL.ora:
    HS_FDS_CONNECT_INFO=OBELIXUS/MSSQLSERVER/testuju
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    D:\oracle\product\10.2.0\db_1\hs\admin\initMSSQLTEST.ora:
    HS_FDS_CONNECT_INFO=DSN_MSSQL
    HS_FDS_TRACE_LEVEL=OFF
    HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
    HS_FDS_FETCH_ROWS=100
    HS_RPC_FETCH_REBLOCKING=OFF
    How mentioned above, the access from oracle to sqlserver using MSSQL(10g hsodbc.exe) works fine.
    But when trying to acces the sqlserver using MSSQLDG (11g dg4msql.exe) I get the following error:
    ORA-28500: Verbindung von ORACLE zu Fremdsystem gab diese Nachricht zurück:
    [Oracle][ODBC SQL Server Driver][DBNETLIB]Ungültige Verbindung.
    [Oracle][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConnectParams()).
    [Oracle][ODBC SQL Server Driver]Ungültiges Attribut für die Verbindungszeichenfolge
    ORA-02063: vorherige 2 lines von DBL_MSSQL4
    Here the contect of the file "DG4MSQL_agt_2332.trc":
    Oracle Corporation --- FREITAG AUG 22 2008 16:17:42.198
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- FREITAG AUG 22 2008 16:17:42.198
    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
    HOSGIP returned value of "RECOVER" for HS_FDS_RECOVERY_ACCOUNT
    HOSGIP returned a value for HS_FDS_RECOVERY_PWD
    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 "AL16UTF16"
    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 "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "DG4MSQL"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for MSSQL
    Facility:hsa
    Class:MSSQL, ClassVsn:11.1.0.6.0_0006, Instance:DG4MSQL
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=2000
    HOCXU_DB_CSET=178
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2008/08/22-16:17:42
    RC=-1 from HOSGIP for "PATH"
    PATH from environment is "d:\oracle\product\11.1.0\tg_1\bin;D:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\IBM\Informix\Client-SDK\bin"
    Exiting hgolofn, rc=0 at 2008/08/22-16:17:43
    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/08/22-16:17:43
    Entered hgolgon at 2008/08/22-16:17:43
    reco:0, name:testuju, tflag:0
    Entered hgosuec at 2008/08/22-16:17:43
    uencoding=UTF16
    Entered shgosuec at 2008/08/22-16:17:43
    Exiting shgosuec, rc=0 at 2008/08/22-16:17:43
    shgosuec() returned rc=0
    Exiting hgosuec, rc=0 at 2008/08/22-16:17:43
    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 testuju as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2008/08/22-16:17:43
    HS_FDS_CONNECT_INFO = "OBELIXUS/MSSQLSERVER/testuju"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2008/08/22-16:17:43
    dsn:OBELIXUS/MSSQLSERVER/testuju, name:testuju
    optn:
    Entered shgogohn at 2008/08/22-16:17:43
    ohn is 'OraGtw11g_home1'
    Exiting shgogohn, rc=0 at 2008/08/22-16:17:43
    Entered hgocont_OracleCsidToIANA at 2008/08/22-16:17:43
    Returning 2252
    Exiting hgocont_OracleCsidToIANA at 2008/08/22-16:17:43
    ##>Connect Parameters (len=223)<##
    ## DRIVER=Oracle 11g dg4msql-OraGtw11g_home1;
    ## SERVER=OBELIXUS\MSSQLSERVER;
    ## Database=testuju;
    #! UID=testuju;
    #! PWD=*
    ## AnsiNPW=Yes;
    ## QuotedId=Yes;
    ## IANAAppCodePage=2252;
    ## ArraySize=100;
    ## PadVarbinary=0;
    ## SupportNumericPrecisionGreaterThan38=1;
    Exiting hgogenconstr, rc=0 at 2008/08/22-16:17:44
    Entered hgopoer at 2008/08/22-16:18:00
    hgopoer, line 159: got native error 14 and sqlstate 08001; message follows...
    [Oracle][ODBC SQL Server Driver][DBNETLIB]Ungültige Verbindung.[Oracle][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConnectParams()).[Oracle][ODBC SQL Server Driver]Ungültiges Attribut für die Verbindungszeichenfolge
    Exiting hgopoer, rc=0 at 2008/08/22-16:18:00
    hgocont, line 1890: calling SqlDriverConnect got sqlstate 08001
    Exiting hgocont, rc=28500 at 2008/08/22-16:18:00 with error ptr FILE:hgocont.c LINE:1910 ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2008/08/22-16:18:00 with error ptr FILE:hgolgon.c LINE:612 ID:Calling hgocont
    Entered hgoexit at 2008/08/22-16:18:00
    Exiting hgoexit, rc=0 at 2008/08/22-16:18:00
    Many thanks in advance for any help!
    Regards Hartmut

    At first your configuration is not really correct.
    =====================================================
    In the LISTENER.ORA from 10g, you must only refer to the database and hsodbc 10g
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = INTEGRAT)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = INTEGRAT)
    (SID_DESC =
    (SID_NAME = MSSQLTEST)
    (PROGRAM = D:\oracle\product\10.2.0\db_1\bin\hsodbc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1521))
    ===========================================================
    Then you have to create a new listener (new name) in the gateway oracle_home on a different port than instance database:
    D:\oracle\product\11.1.0\tg_1\network\admin\listener.ora
    SID_LIST_LISTENERGTW =
    (SID_LIST =
    (SID_DESC=
    (SID_NAME=DG4MSQL)
    (ORACLE_HOME=D:\oracle\product\11.1.0\tg_1)
    (PROGRAM=D:\oracle\product\11.1.0\tg_1\BIN\dg4msql)
    LISTENERGTW=
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1522))
    To start it, use the command below:
    D:\oracle\product\11.1.0\tg_1\bin\LSNRCTL start listenergtw
    ===========================================================
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora:
    match the DG4MSQL with the listener on 1522 port
    HSODBC match with binary10g on listener 1521 port
    MSSQLDG =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1522))
    (CONNECT_DATA =(SERVICE_NAME = DG4MSQL))
    (HS = OK)
    MSSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =(SERVICE_NAME = MSSQLTEST))
    (HS = OK)
    Try to configure and let me know your feedback
    regards,
    Mireille

Maybe you are looking for