Originally posted by: Kepa_Screen
Hi:
I'm making a map using WSTX 8.1.0.3 that reads data from an Oracle 10g database and puts data at a Sql Server 2008 database.
I was able to connect to the database using the Database Interface Designer, and able to create a .mtt for my target table dbo.COM_INBOX, at EROBOX database
<7140-6524>: Validating the adapter command...
<7140-6524>: Database type is MS SQL Server 7
<7140-6916>: Connecting...
<7140-6916>: Datalink: 10.56.255.100\\EROBOX
<7140-6916>: UserId : eroski
<7140-6916>: Password: *****
<7140-6916>: Context: Output Card, Transaction scope: Map
<7140-6916>: On Failure: Rollback, On Success: Create
<7140-6916>: AUDIT command specified, file: c:\audit.txt
<7140-6916>: TRACE command specified, file: c:\trace.txt
<7140-6916>: Table name: dbo.COM_INBOX
<7140-6916>: Local transaction usage: Transaction ID 0x05766228
<7140-6916>: Transaction started - ISOLATIONLEVEL_READCOMMITTED
<7140-6916>: Connection to SQL Server 10.56.255.100 has been established.
<7140-6916>: Retrieving 1 rows per fetch.
<7140-6916>: Returned status: (0) Success
<7140-6916>: Interface library version 8.1(38)
<7140-6916>: Map: C:\Documents and Settings\S8991\Mis documentos\Oracle_TO_SqlServer.mmc, Timestamp: 10/07/11 16:08:07.
<7140-6916>: Loading data for output card 1.
<7140-6916>: Database adapter: OLE DB / SQL7 Version 8.1(38)
<7140-6916>: Starting database load to table dbo.COM_INBOX...
<7140-6916>: Datalink: 10.56.255.100\\EROBOX
<7140-6916>: UserId : eroski
<7140-6916>: Password: *****
<7140-6916>: Context: Output Card, Transaction scope: Map
<7140-6916>: On Failure: Rollback, On Success: Create
<7140-6916>: AUDIT command specified, file: c:\audit.txt
<7140-6916>: TRACE command specified, file: c:\trace.txt
<7140-6916>: Table name: dbo.COM_INBOX
<7140-6916>: Update mode is off.
<7140-6916>: Retrieving 1 rows per fetch.
<7140-6916>: The columns are of the following types:
<7140-6916>: Column 1 (SECUENCIA) type is int
DBTYPE_I4.
<7140-6916>: Column 2 (COD_INT) type is smallint
DBTYPE_I2.
<7140-6916>: Column 3 (CONTENIDO) type is ntext
DBTYPE_WSTR.
<7140-6916>: Column 4 (FLG_ESTADO) type is varchar(1)
DBTYPE_STR.
<7140-6916>: Column 5 (COD_ERROR) type is smallint
DBTYPE_I2.
<7140-6916>: Column 6 (MSG_ERROR) type is varchar(2000)
DBTYPE_STR.
<7140-6916>: Column 7 (FEC_EMISION) type is datetime
DBTYPE_DBTIMESTAMP.
<7140-6916>: Column 8 (FEC_TRATO) type is datetime
DBTYPE_DBTIMESTAMP.
<7140-6916>: Column 9 (MSGID) type is varchar(32)
DBTYPE_STR.
<7140-6916>: Column 10 (ORIGEN) type is varchar(100)
DBTYPE_STR.
<7140-6916>: Column 11 (COD_APLICACION) type is int
DBTYPE_I4.
<7140-6916>: Column 12 (USUARIO) type is varchar(200)
DBTYPE_STR.
<7140-6916>: Column 13 (PROCESO) type is varchar(200)
DBTYPE_STR.
<7140-6916>: Column 14 (ZIP_CONTENIDO) type is image
DBTYPE_BYTES.
<7140-6916>: The insert statement to be executed is:
<7140-6916>: INSERT INTO dbo.COM_INBOX VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)
<7140-6916>: OLE DB Error code: 0x80040e2f
<7140-6916>: Se terminó la instrucción.
<7140-6916>: The following values were being inserted:
<7140-6916>: Column 1 SECUENCIA : 12002
<7140-6916>: Column 2 COD_INT : 1000
<7140-6916>: Column 3 CONTENIDO : NULL
<7140-6916>: Column 4 FLG_ESTADO : P
<7140-6916>: Column 5 COD_ERROR : NULL
<7140-6916>: Column 6 MSG_ERROR : NULL
<7140-6916>: Column 7 FEC_EMISION : 2011-10-07
<7140-6916>: Column 8 FEC_TRATO : NULL
<7140-6916>: Column 9 MSGID : 12351
<7140-6916>: Column 10 ORIGEN : DLOGAPL
<7140-6916>: Column 11 COD_APLICACION : NULL
<7140-6916>: Column 12 USUARIO : NULL
<7140-6916>: Column 13 PROCESO : NULL
<7140-6916>: Column 14 ZIP_CONTENIDO : binary data length 94
<7140-6916>: Failed to insert a row (rc = -6).
<7140-6916>: Failed after 0 rows inserted.
<7140-6916>: Database load complete.
<7140-6916>: Returned status: (-6) No error text found
<7140-6916>: Cleaning up and closing the transaction...
<7140-6916>: Returned status: (0) Success
Could anyone give some light ¿?
I'm using PUT command :
-SOURCE 10.56.255.100\\EROBOX -DBTYPE SQLSVR7 -USER eroski -PASSWORD xxxxxx -TABLE dbo.COM_INBOX -AUDIT c:\audit.txt -TRACE c:\trace.txt
Also tried using a .mdq file, but it gives me database error
<TargetReport card="1" adapter="DB" bytes="13488" adapterreturn="-6">
<Message>No error text found</Message>
</TargetReport>
User has grants insert, update, select, and delete at SQLServer table....
Thanks in advance
#DataExchange#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender