How to configure distributed transaction in Oracle Database Gateway for ODBC? (ORA-02047)
I am connecting from Oracle to another database server (MS SQL Server, DB2 the error message is the same) through an ODBC connection using Oracle SQL Developer. (This is how I set up)
I want to query the schema of a non-Oracle database using the data dictionary mapping of the Oracle Database Gateway for ODBC.
This works well:
select * from all_tables@katimssql;
But this doesn't:
create table alltables_mssql as
select * from all_tables@katimssql;
Output:
Error report:
SQL Error: ORA-00604: error occurred at recursive SQL level 1
ORA-02047: cannot join the distributed transaction in progress
ORA-06512: at "SYS.HS$_DDTF_SQLTABLES", line 58
ORA-06512: at line 1
Does anyone know the solution of this?
Thanks in advance,
Kata
Details:
Oracle Database 11g Express Edition Release 11.2.0.2.0
Microsoft SQL Server 2008 (SP2) - 10.0.4000.0 (X64)
ODBC Driver: SQL Server Native Client 11.0 (32 bit)
initkatimssql.ora:
HS_FDS_CONNECT_INFO=katimssql
HS_FDS_TRACE_LEVEL = ON
HS_TRANSACTION_MODEL = READ_ONLY_AUTOCOMMIT
I tried these, none of them worked, the error message is the same.
HS_FDS_TRACE_LEVEL = off
HS_TRANSACTION_MODEL = SINGLE_SITE
HS_TRANSACTION_MODEL = READ_ONLY_AUTOCOMMIT
HS_TRANSACTION_MODEL = READ_ONLY
Hi Kata,
this won't work as the ALL_TABLES is not a table that exists in your SQl Server - instead it is a "mimicked" table. This means the gateway will check if you have on your SQL Server a table called all_tables and when there's no table it will start an internal mechanism to check out what sort of tables exist in your SQL Server database. So the gateway is starting internally another transaction to get details from the foreign database and DG4ODBC can't participate in distributed transactions at all. Instead of using all_tables you have to use a real SQL Server table like SQ Server sys.objects or sys.tables.
- Klaus
Similar Messages
-
Oracle Database Gateway for ODBC with Oracle XE
Dear Colleague,
Is it possible to use the Oracle Database Gateway for ODBC in conjunction with the Oracle Express Edition (or does one have to use the Standard or Enterprise Editions)? If yes, are there any restrictions when using the Oracle Database Gateway for ODBC in the context of Oracle XE?
Best regards,
RandyHi,
As it says, as long as you have an RDBMS license then you do not need a separate license for DG4ODBC. If the confusion is where it says "Oracle Database Gateway for ODBC can be installed and used on a machine different" then that is just to clarify that you can run the gateway on a completely separate machine from where the licensed RDBMS is running, but you can also run DG4ODBC on the same machine where the RDBMS is installed.
If you install 11g DG4ODBC on the same machine where you have a 10g RDBMS then it must be installed into a separate ORACLE_HOME.
If this is still not clear then please get back and let us know exactly what you need clarifying.
Regards,
Mike -
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
MichalHi,
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 -
Hi,
I am tring Gateway for SQL Server ..
I want to Select Oracle Database Gateway for SQL Server 11.1.0.6.0 at the time of installation, but It is not coming in the Avaliable Components List..
Is there any prerequisite for SQL server ?
Any Help please ?Are you following the "Step Through the Oracle Universal Installer" section under
http://download.oracle.com/docs/cd/B28359_01/gateways.111/b31043/sqlserver.htm#CCHEDECC
? -
How to configure global transaction wthin Oracle AS JMS and Oracle JMS
How to configure global transaction if I take a message from Oracle JMS(AQ) and send it to the Oracle JMS?
Which version of OC4J are you working on?
In OC4J 10.1.3.x, presume your OC4J JMS listens messages via MDB which uses a resource adapter as a message listener. The resouce adaper could be the generic JMS adapter deployed in OC4J as the default.
Resource adapter configuration to support MDBs is included in the standard ra.xml file, which lists the message listener types that the resource adapter supports.
The MDB developer or deployer configures the MDB in the ejb-jar.xml file, through a <message-driven> element.
In addition to above, configuration in the ejb-jar.xml file specifies whether an MDB uses transactions.
1) The <transaction-type> subelement of <message-driven> in ejb-jar.xml has a value of Container, and the <trans-attribute> subelement of <container-transaction> (under the <assembly-descriptor> element) has a value of Required. In this circumstance, if there is an imported transaction, then message delivery and related work are performed within that transaction. If there is no imported transaction, OC4J creates a transaction, and message delivery and related work are performed within that transaction.
2) The <transaction-type> subelement of <message-driven> in ejb-jar.xml has a value of Bean. In this circumstance, the MDB manages the transaction. If a transaction is imported, OC4J will suspend it before the message delivery method call to the MDB, in order to avoid conflict.
Message delivery is not transacted if the <transaction-type> subelement of <message-driven> in ejb-jar.xml has a value of Container, but the <trans-attribute> element has a value of NotSupported. If there is an imported transaction in this circumstance, OC4J will suspend the transaction before the message delivery method call to the MDB.
Details could be found from OC4J Resource Adapter Guide. -
Error using Oracle Database Gateway for DRDA
Hello All,
We're encountering issues while trying to query a table using a db link to DB2 database.
We are running oracle 11g R1 on windows and we have DB2 installed on the box. We've installed database gateway for DRDA also on the same box. The gateway is running on a different home location within the same machine. But we get the following error while trying to query across the db link. Would be great if you can take a look and suggest appropriate changes.
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 UDB
Here's how we configured the gateway:
Listener:
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=DB2)
(ORACLE_HOME=E:\app\Oracle\product\11.1.0\db_1)
(PROGRAM=g4drsrv)
(SID_DESC=
(SID_NAME=PLSExtProc)
(ORACLE_HOME=E:\app\Oracle\product\11.1.0\db_1)
(PROGRAM=extproc)
Tns:
dg4drda.idc.oracle.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xpone.idc.oracle.com)
(PORT = 1521))
(CONNECT_DATA =
(SID= DB2))
(HS=OK)
initDB2.ora
HS_COMMIT_POINT_STRENGTH=255
HS_NLS_DATE_FORMAT=YYYY-MM-DD
HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
HS_RPC_FETCH_REBLOCKING=off
HS_RPC_FETCH_SIZE=32767
HS_FDS_FETCH_ROWS=20
FDS_CLASS=DG4DRDA_DB2UDB
DRDA_CONNECT_PARM=xpone.idc.oracle.com:50000
DRDA_REMOTE_DB_NAME=SAMPLE
DRDA_PACKAGE_COLLID=ORA11
DRDA_PACKAGE_NAME=G2DRSQL
DRDA_PACKAGE_CONSTOKEN=A929B170D366FB00
DRDA_RECOVERY_USERID=ORADRDA
DRDA_RECOVERY_PASSWORD=ORADRDA
DRDA_ISOLATION_LEVEL=CS
DRDA_DISABLE_CALL=TRUE
DRDA_CODEPAGE_MAP=codepage.map
heres how we created the db link:
CREATE DATABASE LINK udb CONNECT TO ORACLE IDENTIFIED BY "welcome1" USING 'dg4drda.idc.oracle.com';
and this was the sql executed
select * from employee@udb;
Really appreciate your assistance.
Regards
KrishnaHello Mike,
Here's the entire listener entry (I've changed the SID to DB2. Consequently I have also changed the SID in tns and gateway init under folder "11.1.0\tg_1\dg4drda\admin"
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = XPONE)(PORT = 1521))
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=DB2)
(ORACLE_HOME=E:\app\Oracle\product\11.1.0\db_1)
(PROGRAM=g4drsrv)
(SID_DESC=
(SID_NAME=PLSExtProc)
(ORACLE_HOME=E:\app\Oracle\product\11.1.0\db_1)
(PROGRAM=extproc)
I've also added the necessary IP entry to my host file.
Here's the listener log. I've grabbed it for 2 consecutive attempts to bind the package.
<msg time='2010-02-11T11:11:25.562-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Trace information written to e:\app\oracle\diag\tnslsnr\xpone\listener\trace\ora_752_2136.trc
</txt>
</msg>
<msg time='2010-02-11T11:11:25.562-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Trace level is currently 0
</txt>
</msg>
<msg time='2010-02-11T11:11:25.578-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>
</txt>
</msg>
<msg time='2010-02-11T11:11:25.578-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Started with pid=752
</txt>
</msg>
<msg time='2010-02-11T11:11:25.593-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
</txt>
</msg>
<msg time='2010-02-11T11:11:25.609-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xpone)(PORT=1521)))
</txt>
</msg>
<msg time='2010-02-11T11:11:28.031-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Listener completed notification to CRS on start
</txt>
</msg>
<msg time='2010-02-11T11:11:28.062-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
</txt>
</msg>
<msg time='2010-02-11T11:11:29.546-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xpone)(PORT=8080))(Presentation=HTTP)(Session=RAW))
</txt>
</msg>
<msg time='2010-02-11T11:11:29.578-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:11:29 * service_register * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:11:45.015-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:11:44 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)(CID=(PROGRAM=E:\app\Oracle\product\11.1.0\db_1\bin\sqlplus.exe)(HOST=XPONE)(USER=Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1076)) * establish * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:11:47.500-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:11:47 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:11:49.890-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:11:49 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)(CID=(PROGRAM=E:\app\Oracle\product\11.1.0\db_1\bin\sqlplus.exe)(HOST=XPONE)(USER=Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1077)) * establish * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:11:53.500-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:11:53 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:11:54.343-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:11:54 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)(CID=(PROGRAM=E:\app\Oracle\product\11.1.0\db_1\bin\sqlplus.exe)(HOST=XPONE)(USER=Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1078)) * establish * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:11:56.515-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:11:56 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:12:02.531-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:12:02 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:12:11.546-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:12:11 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:12:13.140-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:12:13 * (CONNECT_DATA=(SID=DB2)(CID=(PROGRAM=)(HOST=MSHOME\XPONE)(USER=XPONE\Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1080)) * establish * DB2 * 12518
</txt>
</msg>
<msg time='2010-02-11T11:12:13.156-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directory
</txt>
</msg>
<msg time='2010-02-11T11:12:13.390-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:12:13 * (CONNECT_DATA=(SID=DB2)(CID=(PROGRAM=)(HOST=MSHOME\XPONE)(USER=XPONE\Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1081)) * establish * DB2 * 12518
</txt>
</msg>
<msg time='2010-02-11T11:12:13.437-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directory
</txt>
</msg>
<msg time='2010-02-11T11:12:35.578-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:12:35 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:13:41.718-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:13:41 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:14:11.765-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:14:11 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:14:14.781-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:14:14 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:14:23.796-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:14:23 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:15:53.843-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:15:53 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:16:11.875-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:16:11 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:16:26.890-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:16:26 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:17:35.921-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:17:35 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:17:37.546-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:17:37 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:17:42.203-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xpone)(PORT=8080))(Presentation=HTTP)(Session=RAW))
</txt>
</msg>
<msg time='2010-02-11T11:17:42.218-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:17:42 * service_died * orcl * 12537
</txt>
</msg>
<msg time='2010-02-11T11:17:54.265-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>System parameter file is E:\app\Oracle\product\11.1.0\db_1\network\admin\listener.ora
</txt>
</msg>
<msg time='2010-02-11T11:17:54.281-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Log messages written to e:\app\oracle\diag\tnslsnr\xpone\listener\alert\log.xml
</txt>
</msg>
<msg time='2010-02-11T11:17:54.281-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Trace information written to e:\app\oracle\diag\tnslsnr\xpone\listener\trace\ora_3060_3104.trc
</txt>
</msg>
<msg time='2010-02-11T11:17:54.281-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Trace level is currently 0
</txt>
</msg>
<msg time='2010-02-11T11:17:54.296-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>
</txt>
</msg>
<msg time='2010-02-11T11:17:54.296-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Started with pid=3060
</txt>
</msg>
<msg time='2010-02-11T11:17:54.296-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
</txt>
</msg>
<msg time='2010-02-11T11:17:54.328-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xpone)(PORT=1521)))
</txt>
</msg>
<msg time='2010-02-11T11:17:56.578-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Listener completed notification to CRS on start
</txt>
</msg>
<msg time='2010-02-11T11:17:56.609-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
</txt>
</msg>
<msg time='2010-02-11T11:18:06.562-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:18:06 * service_register * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:18:09.578-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:18:09 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:18:12.609-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:18:12 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:18:18.625-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:18:18 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:18:39.625-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xpone)(PORT=8080))(Presentation=HTTP)(Session=RAW))
</txt>
</msg>
<msg time='2010-02-11T11:18:39.625-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:18:39 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:18:42.609-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:18:42 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:18:48.609-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:18:48 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:19:00.687-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:19:00 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)(CID=(PROGRAM=E:\app\Oracle\product\11.1.0\db_1\bin\sqlplus.exe)(HOST=XPONE)(USER=Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1095)) * establish * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:19:03.625-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:19:03 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:19:17.140-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:19:17 * (CONNECT_DATA=(SID=DB2)(CID=(PROGRAM=)(HOST=MSHOME\XPONE)(USER=XPONE\Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1096)) * establish * DB2 * 12518
</txt>
</msg>
<msg time='2010-02-11T11:19:17.171-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directory
</txt>
</msg>
<msg time='2010-02-11T11:19:17.265-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:19:17 * (CONNECT_DATA=(SID=DB2)(CID=(PROGRAM=)(HOST=MSHOME\XPONE)(USER=XPONE\Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1097)) * establish * DB2 * 12518
</txt>
</msg>
<msg time='2010-02-11T11:19:17.296-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directory
</txt>
</msg>
<msg time='2010-02-11T11:19:20.578-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:19:20 * (CONNECT_DATA=(SID=DB2)(CID=(PROGRAM=)(HOST=MSHOME\XPONE)(USER=XPONE\Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1098)) * establish * DB2 * 12518
</txt>
</msg>
<msg time='2010-02-11T11:19:20.609-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directory
</txt>
</msg>
<msg time='2010-02-11T11:19:20.671-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:19:20 * (CONNECT_DATA=(SID=DB2)(CID=(PROGRAM=)(HOST=MSHOME\XPONE)(USER=XPONE\Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1099)) * establish * DB2 * 12518
</txt>
</msg>
<msg time='2010-02-11T11:19:20.703-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directory
</txt>
</msg>
<msg time='2010-02-11T11:19:21.640-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:19:21 * service_update * orcl * 0
</txt>
</msg>
<msg time='2010-02-11T11:19:23.015-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:19:22 * (CONNECT_DATA=(SID=DB2)(CID=(PROGRAM=)(HOST=MSHOME\XPONE)(USER=XPONE\Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1100)) * establish * DB2 * 12518
</txt>
</msg>
<msg time='2010-02-11T11:19:23.046-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directory
</txt>
</msg>
<msg time='2010-02-11T11:19:23.156-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>11-FEB-2010 11:19:23 * (CONNECT_DATA=(SID=DB2)(CID=(PROGRAM=)(HOST=MSHOME\XPONE)(USER=XPONE\Oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=1101)) * establish * DB2 * 12518
</txt>
</msg>
<msg time='2010-02-11T11:19:23.187-05:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='XPONE'
host_addr='192.168.0.100'>
<txt>TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directory
</txt>
</msg>
And finally, the listener is starting from Oracle Home and I do not have any other Oracle products installed.
Thanks a billion for all your suggestions.
Regards
Krishna -
Weblogic 5.1, Distributed Transaction and Oracle Database Link
We are planning to add a new functionality to run in Weblogic server and it
needs to update tables in two different Oracle databases. Since we are using
Weblogic 5.1 and it is unrealistic to upgrade to 6.1 in short term, we have
to deal with the fact that distributed transaction is not supported by JTS
on 5.1.
One workaround we can think of is to utilize Oracle database link. Instead
of having two connection pools, the application talks to only one database
and access the tables on the other ones through Oracle database link.
Therefore, when a session bean tries to update two tables on database 1 in
one transaction, one of the tables is just a link to the other database. We
hope that even though distributed transaction is not supported by JTS in
Weblogic 5.1, but since it is supported by Orable, it would work.
Do you think the above workaround would work? Does anyone have experience on
something like that?
Thanks in advance,
David Chen
[email protected]Hi. You should be able to use any JDBC driver with WebLogic 5.1.
It may be the JVM that complains, if you use too old a JVM...
Joe Weinstein at BEA Systems -
Oracle optimizer and heterogeneous services (Transparent Gateway for ODBC)
Hi everyone!
We have the following configuration:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production.
Oracle Database Gateway for ODBC 11.2.0.2.0 on the same machine as Oracle DB.
Non-Oracle DB installed on a different hardware accessed through Oracle Gateway for ODBC via dblink.
Now, we have to query the remote non-Oracle system and retrieve some data. For the sake of brevity let's suppose we have the following table in our non-Oracle DB:
create table test (
ip_address varchar(15),
start_time datetime,
end_time datetime
And we run the following SQL query against the remote table on our Oracle DB:
SELECT start_time,end_time,ip_address
FROM remote_table@db_link
WHERE
end_time >= to_date('2011-10-11 00:00:00','rrrr-mm-dd hh24:mi:ss')
OR (
end_time IS NULL AND start_time >= to_date('2011-10-11 00:00:00','rrrr-mm-dd hh24:mi:ss')
AND start_time <= to_date('2011-10-12 00:00:00','rrrr-mm-dd hh24:mi:ss')
AND ip_address = '127.0.0.1';
But, having query monitoring on the remote DB enabled, we see that the actual query on the remote site looks like this:
SELECT "START_TIME","END_TIME","IP_ADDRESS"
FROM "REMOTE_TABLE"
WHERE "IP_ADDRESS"='127.0.0.1' AND "START_TIME"<=?
All references to END_TIME column are gone from WHERE clause for whatever reason.
However, Oracle execution plan shows us the following:
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Inst |IN-OUT|
| 0 | SELECT STATEMENT | | 1 | 27 | 200 (0)| 00:00:03 | | |
|* 1 | FILTER | | 1 | 27 | 200 (0)| 00:00:03 | | |
| 2 | REMOTE | REMOTE_TABLE | | | | | DB_LINK | R->S |
Predicate Information (identified by operation id):
1 - filter("END_TIME">=TO_DATE('2011-10-11 00:00:00','rrrr-mm-dd hh24:mi:ss') OR
"END_TIME" IS NULL AND "START_TIME">=TO_DATE('2011-10-11 00:00:00','rrrr-mm-dd hh24:mi:ss'))
Remote SQL Information (identified by operation id):
2 - SELECT "END_TIME","IP_ADDRESS","START_TIME" FROM "REMOTE_TABLE" WHERE
"IP_ADDRESS"='127.0.0.1' AND "START_TIME"<=:1 (accessing 'DB_LINK' )
This actually means that Oracle CBO decided that it will apply filter on END_TIME column after having retrieved the data from the remote site. We don't want this behaviour but have no idea how to affect execution plan in this case.
So, the question is: How can we force Oracle CBO to not change the initial query and pass it to the remote site "as is"? Is there any way we can achieve this goal?
Edited by: user12024904 on 28-Oct-2011 04:05Hi,
Our Oracle DB and Gateway are running on the following system:
HP-UX B.11.31 U ia64
The following SQL code is executed in SQLPlus:
SELECT start_time,end_time,ip_address
FROM ip_acc_complete@gr_link
WHERE
END_TIME >= to_date('2010-10-21 00:00:00','rrrr-mm-dd hh24:mi:ss')
OR (
END_TIME is null AND START_TIME >= to_date('2010-10-21 00:00:00','rrrr-mm-dd hh24:mi:ss')
AND START_TIME <= to_date('2010-10-22 00:00:00','rrrr-mm-dd hh24:mi:ss')
AND IP_ADDRESS = '127.0.0.1';
Gateway debug trace shows the following:
Oracle Corporation --- TUESDAY NOV 01 2011 14:59:15.254
Heterogeneous Agent Release
11.2.0.2.0
Oracle Corporation --- TUESDAY NOV 01 2011 14:59:15.254
Version 11.2.0.2.0
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "ON"
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/greenwich64/lib/libodbc.so.1"
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 ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using query as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
SQL text from hgopars, id=1, len=117 ...
00: 53454C45 43542022 454E445F 54494D45 [SELECT "END_TIME]
10: 222C2249 505F4144 44524553 53222C22 [","IP_ADDRESS","]
20: 53544152 545F5449 4D452220 46524F4D [START_TIME" FROM]
30: 20224950 5F414343 5F434F4D 504C4554 [ "IP_ACC_COMPLET]
40: 45222057 48455245 20224950 5F414444 [E" WHERE "IP_ADD]
50: 52455353 223D2731 32372E30 2E302E31 [RESS"='127.0.0.1]
60: 2720414E 44202253 54415254 5F54494D [' AND "START_TIM]
70: 45223C3D 3F [E"<=?]
Deferred open until first fetch.
Performing delayed open.
The non-Oracle DB is CopperEye Retrieval Server with its own custom ODBC driver.
CopperEye query log shows that the following query is received from Oracle Gateway:
01/11/2011 14:26:31 - NEW QUERY :
SELECT "END_TIME","IP_ADDRESS","START_TIME" FROM "IP_ACC_COMPLETE" WHERE "IP_ADDRESS"='127.0.0.1' AND "START_TIME"<=?
which complies with the information in Oracle Gateway trace file.
So, it seems that it's Oracle DB decision to split the original WHERE clause into two parts, delegate one part to the remote site, retrieve the data and then apply the remaining filter locally. -
Error fetching data from a foxpro db using Oracle Gateway for ODBC
Hi.
I have an 10.2.0.1 database an a 11.2.0 Oracle Gateway for ODBC installed and configured.
The dblink test works fine, I can connect with the foxpro database because if I execute desc centros I can see the
columns of table centros.
The problem comes when I try to execute Select * from centros@fox1;
A syntax error is returned ([Microsoft][ODBC Visual FoxPro Driver]Syntax error. {42000,NativeErr = 200})
I paste down the output of the trace file with HS_FDS_TRACE_LEVEL=255
If I run select codcen from centros@fox1; another error is shown. Tell me if you want the other trace file.
select codcen from centros@fox1
ERROR en lÝnea 1:
ORA-00904: "CODCEN": identificador no vßlido
Oracle Corporation --- JUEVES MAY 31 2012 13:11:24.765
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- JUEVES MAY 31 2012 13:11:24.750
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
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_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "UCS2"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
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_RSET_RETURN_ROWCOUNT 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"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 32 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "DAVID"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:DAVID
Exiting hgogprd, rc=0
hostmstr: 2057416704: HOA After hoagprd
hostmstr: 2057416704: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=178
HOCXU_DRV_NCHAR=1000
HOCXU_DB_CSET=178
HOCXU_SEM_VER=102000
Entered hgolofn at 2012/05/31-13:11:25
Exiting hgolofn, rc=0 at 2012/05/31-13:11:25
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 ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 32 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2012/05/31-13:11:25
hostmstr: 2057416704: HOA After hoainit
hostmstr: 2057416704: HOA Before hoalgon
Entered hgolgon at 2012/05/31-13:11:25
reco:0, name:SYSTEM, tflag:0
Entered hgosuec at 2012/05/31-13:11:25
Exiting hgosuec, rc=0 at 2012/05/31-13:11:25
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using SYSTEM as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2012/05/31-13:11:25
HS_FDS_CONNECT_INFO = "Prueba_Foxpro"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2012/05/31-13:11:25
dsn:Prueba_Foxpro, name:SYSTEM
optn:
Entered hgocip at 2012/05/31-13:11:25
dsn:Prueba_Foxpro
Exiting hgocip, rc=0 at 2012/05/31-13:11:25
##>Connect Parameters (len=39)<##
## DSN=Prueba_Foxpro;
#! UID=SYSTEM;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2012/05/31-13:11:25
Entered hgopoer at 2012/05/31-13:11:26
hgopoer, line 233: got native error 0 and sqlstate 01000; message follows...
[*Microsoft][Administrador de controladores ODBC] El controlador no admite una versión de ODBC distinta de la que la necesita la aplicación (vea SQLSetEnvAttr)*. {01000}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:26
hgocont, line 2686: calling SqlDriverConnect got sqlstate 01000
Entered hgolosf at 2012/05/31-13:11:26
ODBC Function-Available-Array 0xFFFE 0x00FF 0xFF00 0xAA7F 0x03B3 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0xEE00 0x395C
Exiting hgolosf, rc=0 at 2012/05/31-13:11:26
DriverName:VFPODBC.DLL, DriverVer:06.86.0001
DBMS Name:Visual FoxPro, DBMS Version:03.00.0000
Exiting hgocont, rc=0 at 2012/05/31-13:11:26 with error ptr FILE:hgocont.c LINE:2686 ID:SQLDriverConnect
Entered hgopoer at 2012/05/31-13:11:26
hgopoer, line 233: got native error 0 and sqlstate HYC00; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Driver not capable {HYC00}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:26
hgolgon, line 795: calling SQLGetInfo got sqlstate HYC00
SQLGetInfo returns N for SQL_CATALOG_NAME
Exiting hgolgon, rc=0 at 2012/05/31-13:11:26 with error ptr FILE:hgolgon.c LINE:795 ID:GetInfo: Support catalogs
hostmstr: 2036506624: HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 2036506624: RPC Before Upload Caps
hostmstr: 2036506624: HOA Before hoaulcp
Entered hgoulcp at 2012/05/31-13:11:26
Entered hgowlst at 2012/05/31-13:11:26
Exiting hgowlst, rc=0 at 2012/05/31-13:11:26
SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
TXN Capable:1, Isolation Option:0x2
SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 128 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
SQLGetInfo returns ` (0x60) for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo returns Y for SQL_COLUMN_ALIAS
16 instance capabilities will be uploaded
capno:1964, context:0x00000000, add-info: 0
capno:1989, context:0x00000000, add-info: 0
capno:1991, context:0x0001ffff, add-info: 0
capno:1992, context:0x0001ffff, add-info: 1, translation:"`"
capno:3042, context:0x00000000, add-info: 0, translation:"42"
capno:3047, context:0x00000000, add-info: 0, translation:"57"
capno:3049, context:0x00000000, add-info: 0, translation:"59"
capno:3050, context:0x00000000, add-info: 0, translation:"60"
capno:3066, context:0x00000000, add-info: 0
capno:3067, context:0x00000000, add-info: 0
capno:3068, context:0x00000000, add-info: 0
capno:3069, context:0x00000000, add-info: 0
capno:3500, context:0x00000001, add-info: 91, translation:"42"
capno:3501, context:0x00000001, add-info: 93, translation:"57"
capno:3502, context:0x00000001, add-info: 107, translation:"59"
capno:3503, context:0x00000001, add-info: 110, translation:"60"
Exiting hgoulcp, rc=0 at 2012/05/31-13:11:26
hostmstr: 2036506624: HOA After hoaulcp
hostmstr: 2036506624: RPC After Upload Caps
hostmstr: 2036506624: RPC Before Upload DDTR
hostmstr: 2036506624: HOA Before hoauldt
Entered hgouldt at 2012/05/31-13:11:27
NO instance DD translations were uploaded
Exiting hgouldt, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624: HOA After hoauldt
hostmstr: 2036506624: RPC After Upload DDTR
hostmstr: 2036506624: RPC Before Begin Trans
hostmstr: 2036506624: HOA Before hoabegn
Entered hgobegn at 2012/05/31-13:11:27
tflag:0 , initial:1
hoi:0x12f094, ttid (len 54) is ...
00: 54455354 2E524547 52455353 2E524442 [TEST.REGRESS.RDB]
10: 4D532E44 45562E55 532E4F52 41434C45 [MS.DEV.US.ORACLE]
20: 2E434F4D 2E663033 63383037 372E392E [.COM.f03c8077.9.]
30: 34342E37 3735 [44.775]
tbid (len 10) is ...
0: 09002C00 07030000 0104 [..,.......]
Exiting hgobegn, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624: HOA After hoabegn
hostmstr: 2036506624: RPC After Begin Trans
hostmstr: 2036506624: RPC Before Describe Table
hostmstr: 2036506624: HOA Before hoadtab
Entered hgodtab at 2012/05/31-13:11:27
count:1
table: CENTROS
Entered hgopdsc at 2012/05/31-13:11:27
Describing procedure CENTROS
Output hoada
hgopdsc, line 1426: NO hoada to print
Exiting hgopdsc, rc=942 at 2012/05/31-13:11:27
The hoada for table CENTROS follows...
hgodtab, line 904: NO hoada to print
Exiting hgodtab, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624: HOA After hoadtab
hostmstr: 2036506624: RPC After Describe Table
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2012/05/31-13:11:27
type:0
SQL text from hgopars, id=1, len=23 ...
00: 53454C45 4354202A 2046524F 4D202243 [SELECT * FROM "C]
10: 454E5452 4F5322 [ENTROS"]
Exiting hgopars, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoxpars
hostmstr: 2036506624: RPC After SQL Bundling
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624: HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2012/05/31-13:11:28
hgoopen, line 87: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoxopen
hostmstr: 2036506624: HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2012/05/31-13:11:28
Allocate hoada @ 023E983C
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]*Descriptor type out of range* {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:1(codcen): dtype:1 (CHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:2(litcen): dtype:1 (CHAR), prc/scl:45/0, nullbl:0, octet:45, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:3(codpos): dtype:1 (CHAR), prc/scl:5/0, nullbl:0, octet:5, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:4(codprov): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:5(codmun): dtype:1 (CHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:6(codecol): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:7(codesin): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:8(cb): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:9(cs): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:10(digitocon): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:11(cuenta): dtype:1 (CHAR), prc/scl:10/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopcda at 2012/05/31-13:11:28
Column:12(solar): dtype:2 (NUMERIC), prc/scl:5/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopcda at 2012/05/31-13:11:28
Column:13(construido): dtype:2 (NUMERIC), prc/scl:5/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:14(domicen): dtype:1 (CHAR), prc/scl:40/0, nullbl:0, octet:40, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:15(telef): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:16(fax): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:17(cif): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:18(litloc): dtype:1 (CHAR), prc/scl:30/0, nullbl:0, octet:30, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
hgodscr, line 910: Printing hoada @ 023E983C
MAX:18, ACTUAL:18, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR N 8 8 0/ 0 0 0 200 codcen
1 CHAR N 45 45 0/ 0 0 0 200 litcen
1 CHAR N 5 5 0/ 0 0 0 200 codpos
1 CHAR N 2 2 0/ 0 0 0 200 codprov
1 CHAR N 3 3 0/ 0 0 0 200 codmun
1 CHAR N 2 2 0/ 0 0 0 200 codecol
1 CHAR N 2 2 0/ 0 0 0 200 codesin
1 CHAR N 4 4 0/ 0 0 0 200 cb
1 CHAR N 4 4 0/ 0 0 0 200 cs
1 CHAR N 2 2 0/ 0 0 0 200 digitocon
1 CHAR N 10 10 0/ 0 0 0 200 cuenta
3 DECIMAL N 7 7 5/ 0 0 0 0 solar
3 DECIMAL N 7 7 5/ 0 0 0 0 construido
1 CHAR N 40 40 0/ 0 0 0 200 domicen
1 CHAR N 11 11 0/ 0 0 0 200 telef
1 CHAR N 11 11 0/ 0 0 0 200 fax
1 CHAR N 11 11 0/ 0 0 0 200 cif
1 CHAR N 30 30 0/ 0 0 0 200 litloc
Exiting hgodscr, rc=0 at 2012/05/31-13:11:28 with error ptr FILE:hgodscr.c LINE:615 ID:Transfer Octet Length
hostmstr: 2036506624: HOA After hoxdscr
hostmstr: 2036506624: RPC After SQL Bundling
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624: HOA Before hoxclse
Entered hgoclse, cursor id 1 at 2012/05/31-13:11:28
Exiting hgoclse, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoxclse
hostmstr: 2036506624: HOA Before hoadafr
Entered hgodafr, cursor id 1 at 2012/05/31-13:11:28
Free hoada @ 023E983C
Exiting hgodafr, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoadafr
hostmstr: 2036506624: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2012/05/31-13:11:28
type:0
SQL text from hgopars, id=1, len=235 ...
00: 53454C45 43542041 312E2263 6F646365 [SELECT A1."codce]
10: 6E222C41 312E226C 69746365 6E222C41 [n",A1."litcen",A]
20: 312E2263 6F64706F 73222C41 312E2263 [1."codpos",A1."c]
30: 6F647072 6F76222C 41312E22 636F646D [odprov",A1."codm]
40: 756E222C 41312E22 636F6465 636F6C22 [un",A1."codecol"]
50: 2C41312E 22636F64 6573696E 222C4131 [,A1."codesin",A1]
60: 2E226362 222C4131 2E226373 222C4131 [."cb",A1."cs",A1]
70: 2E226469 6769746F 636F6E22 2C41312E [."digitocon",A1.]
80: 22637565 6E746122 2C41312E 22736F6C ["cuenta",A1."sol]
90: 6172222C 41312E22 636F6E73 74727569 [ar",A1."construi]
A0: 646F222C 41312E22 646F6D69 63656E22 [do",A1."domicen"]
B0: 2C41312E 2274656C 6566222C 41312E22 [,A1."telef",A1."]
C0: 66617822 2C41312E 22636966 222C4131 [fax",A1."cif",A1]
D0: 2E226C69 746C6F63 22204652 4F4D2022 [."litloc" FROM "]
E0: 43454E54 524F5322 204131 [CENTROS" A1]
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 200 and sqlstate 42000; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Syntax error. {42000,NativeErr = 200}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgopars, line 457: calling SQLPrepare got sqlstate 42000
Exiting hgopars, rc=28500 at 2012/05/31-13:11:28 with error ptr FILE:hgopars.c LINE:487 ID:Prepare stmt
hostmstr: 2036506624: HOA After hoxpars
hostmstr: 2036506624: RPC After SQL BundlingThe first issue I see is that Oracle 10.2.0.1 was never certified with DG4ODBC 11. Only 10.2.0.4 or 10.2.0.5 can be used as the Oracle database HS kernel requires a gateway compatibility patch and this patch is included in 10.2.0.4 or 10.2.0.5 Oracle database patch set.
Then another error in the trace is that for each column description you have an error:
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]*Descriptor type out of range* {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
It seems it is not critical as DG4ODBC continues, but a more detailed analysis would require an ODBC trace.
When looking at the table description it seems the column names are all in lower letters, for example: solar. So commonly Dg4ODBC needs to quote the names
00: 53454C45 43542041 312E2263 6F646365 [SELECT A1."codce]
10: 6E222C41 312E226C 69746365 6E222C41 [n",A1."litcen",A]
20: 312E2263 6F64706F 73222C41 312E2263 [1."codpos",A1."c]
30: 6F647072 6F76222C 41312E22 636F646D [odprov",A1."codm]
40: 756E222C 41312E22 636F6465 636F6C22 [un",A1."codecol"]
50: 2C41312E 22636F64 6573696E 222C4131 [,A1."codesin",A1]
60: 2E226362 222C4131 2E226373 222C4131 [."cb",A1."cs",A1]
70: 2E226469 6769746F 636F6E22 2C41312E [."digitocon",A1.]
80: 22637565 6E746122 2C41312E 22736F6C ["cuenta",A1."sol]
90: 6172222C 41312E22 636F6E73 74727569 [ar",A1."construi]
A0: 646F222C 41312E22 646F6D69 63656E22 [do",A1."domicen"]
B0: 2C41312E 2274656C 6566222C 41312E22 [,A1."telef",A1."]
C0: 66617822 2C41312E 22636966 222C4131 [fax",A1."cif",A1]
D0: 2E226C69 746C6F63 22204652 4F4D2022 [."litloc" FROM "]
E0: 43454E54 524F5322 204131 [CENTROS" A1]
and according to the trace the FoxPro ODBC driver doesn't like these quotes and reports a syntax error.
So this explains at least why select codcen from centros@fox1 will fail. In general the Oracle database is case insensitive and translates all object names to upper case and the select it will pass to the foreign database would be similar to:
select CODCEN from CENTROS => which will fail as FoxPro is case sensitive. So the error message ORA-00904 (missing column name) is correct and the statement you need to use is:
select "codcen" from centros@fox1;
But this might lead again to the Syntax error you got earlier => You need to check which sign (single quote, back tick, double quote) Foxpro uses to quote object names and then set the gateway parameter HS_FDS_QUOTE_IDENTIFIER accordingly.
To check which character can be used to quote column/table names you might use the Microsoft ODBc test utility which was distributed in the old MDAC 2.8:
http://www.microsoft.com/downloads/details.aspx?familyid=5067faf8-0db4-429a-b502-de4329c8c850&displaylang=en
Edited by: kgronau on Jun 1, 2012 7:27 AM
If you know where I can download the MS FoxPro ODBC driver, please let me know and I'll check. -
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 HartmutAt 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 -
Hi,
I have joined a company which has a legacy 10.2.0.4 RAC on windows. They did not have anyone to manage and now i am in.
I recommended them to upgrade to the certified version, but they do not want it as it will be decommissioned.
Now we have to connect to sql server from this database. I want to install gateway for that but i cannot find it for download.
Please let me know from where can i download.
And also i saw some discussions, where in it says it is possible to do this with out gateway?
Regardskgronau wrote:
Ed,
here the gateway would be installed on a RAC cluster.
I would put the emphasis on the first part of your statement:
here the gateway would be installed on a RAC cluster.
Installing on the cluster, and the further decision to install on multiple nodes of the cluster, is a local decision. There is nothing about the gateway itself that requires this.
So you have n-node installations (as it does not ake sense to have the gateway just on one node which might be down). When you install DG4MSQL (not DG4ODBC) on 2 machines then you need two licenses as the gateway is licensed on a machine basis and it does not matter to how many MS SQL Server machines you're going to connect to.
- Klaus
I would agree with the obvious. IF (and I doubly-emphasize the "IF") one determined they wanted to install on multiple nodes of a cluster, they would have to consider the licensing implications.
However, my point is that there is no inherent need to install the gateway on a cluster in the first place, and so no need to incur that licensing issue.
From Oracle® Database Gateway Installation and Configuration Guide 11g Release 2 (11.2) for AIX 5L Based Systems (64-Bit), HP-UX Itanium, Solaris Operating System (SPARC 64-Bit), Linux x86, and Linux x86-64 E12013-07 (http://docs.oracle.com/cd/E11882_01/gateways.112/e12013/newoverview.htm#OTGIS100)
1.1 Gateway Installation Configurations
You can install Oracle Database Gateway in either of the following configurations:
On the same computer as an existing Oracle database but in a different Oracle home.
On a system with no Oracle database.
On the same computer as the Oracle database and in the same Oracle home directory. Note that in this case, the Oracle database and the gateway must be at the same release level.
And if anyone is tempted to say "well, that's for *nix installations", the Windows installation guide says the same thing:
From Oracle® Database Gateway Installation and Configuration Guide 11g Release 2 (11.2) for Microsoft Windows E12061-06 (http://docs.oracle.com/cd/E11882_01/gateways.112/e12061/overview.htm#OTGIW100)
1.1 Gateway Installation Configurations
You can install Oracle Database Gateway in either of the following configurations:
On the same computer as an existing Oracle database but in a different Oracle home.
On a system with no Oracle database.
On the same computer as the Oracle database and in the same Oracle home directory. Note that in this case, the Oracle database and the gateway must be at the same release level.
Which is exactly what we opted for at my shop. Since the gateway is a system-wide resource, used to connect ANY of our oracle databases to ANY of our MSSQL databases, no one server made any more sense than any other. I wanted to have to manage only a single gateway and not have to worry about which gateway was on which machine to service which databases. -
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 -
How to configure debug mode in Oracle 11g ?
I am making Oracle Argus system based on Oracle 11g DB.
I heard there is debugging mode in Oracle DB to investigate trouble.
How to configure debug mode in Oracle 11g ?Are you talking about oradebug:
SQL> oradebug setmypid
SQL> oradebug unlimit
SQL> oradebug dump systemstate 266
SQL> oradebug dump systemstate 266
SQL> oradebug -g all hanganalyze 3 ---> g is for RAC database instances
Thanks,
http://gssdba.wordpress.com -
How to configure email Alerts in OEM Cloud 12c for Database Servers up/down
Hi everybody,
How to configure email Alerts in OEM Cloud 12c for Database Servers up/down status?
Regards,
Miguel VegaHi Miguel Vega,
Information regarding the notifications:
==============================
Configuring notification rules in 12c is different from earlier releases.
The concept and function of notification rules has been replaced with a two-tier system consisting of Incident Rules and Incident Rule Sets :
1. Incident Rules: Operate at the lowest level granularity (on discrete events) and performs the same role as notification rules from earlier releases.
By using incident rules, you can automate the response to incoming incidents and their updates.
A rule contains a set of automated actions to be taken on specific events, incidents or problems.
The actions taken are for example : sending e-mails, creating incidents, updating incidents, and creating tickets.
2. Incident Rule Set: A rule set is a collection of rules that applies to a common set of objects, for example, targets, jobs, and templates.
To help you to achieve the Notification Rules configuration, refer those notes :
How To Configure Notification Rules in 12C Enterprise Manager Cloud Control ? Doc ID 1368036.1
EM12c How to Add and Configure Email Addresses to EM Administrators and Update the Notification Schedule ?Doc ID 1368262.1
EM12c How to Subscribe or Unsubscribe for Email Notification for an Incident Rule Set ?Doc ID 1389460.1
EM 12c How to Configure Notifications for Job Executions ? Doc ID 1386816.1
Best Regards,
Venkat -
How to search this value in oracle database to find out the table
Hi expert,
I know there is a value in oracle database, please show me how to search this value in oracle database to find out the table holding this value.
Many Thanks,918440 wrote:
Hi friends,
this question is really practical, I already know there is value from application saved in database, I want to search the whole database to figure out which table the value is contained.write SQL that writes SQL to query every table.
Handle: 918440
Status Level: Newbie
Registered: Mar 2, 2012
Total Posts: 20
Total Questions: 10 (10 unresolved)
why do you waste time here when you NEVER get any answer to any question you post?
Maybe you are looking for
-
We have a Cisco 515 as a headend firewall with ~30 VPN connections to remote sites. The existing remote sites are using Cisco 506 firewalls and work fine. I am trying to setup an ASA 5505 as a rmote firewall as a future replacement for the PIX 506's.
-
Unquoted special character error
Am reading data from a file and parsing through it using StringTokenizer. I am putting the data into DB2 tables and therefore need to set the integer and fraction count for decimal numbers so they won't abend the program if they are over the DB2 sett
-
IPhone 3gs 4.0 update - camera
Where is the 5 x zoom option??????
-
Hi All, I have around 300+ files in eps format but i need them to convert it to word format. Any options availble. I have tried the eps to pdf and convert the pdf to word, but this doesnt worked for me. Any help. Regards, Vinoth
-
Air for Android no video playback controls
Hi there I'm using Flash Professional CS5.5 I'm currently developing a Android app, I've imported a video clip using the import video wizard. I've tested it by publisihng it to my Android device, the video clip plays fine but there are no play/pause