Logging SQL in ODI
Is there a way to log all the SQL that is generated by ODI to a text file. I thought that there was a switch like -V=5 to accomplish this. I have a lot of SQL statements in a procedure where the table name is made up from an ODI variable. want to make sure that ODI is outputing the right sql statements. I don't have accesss to the remote Netezza server, so I can't turn on any type of logging there.
Suggestions?
John
You can create a meaningful query using the work repository tables. Look into SNP_ORIG_TXT and SNP_TXT .SNP_ORIG_TXT give you the details of which column stores the required TXT information which can be linked to SNP_TXT.I_TXT and get the TXT information.
and once you got the query , you can using odisqlunload import it into txt file, but still i dont think that ODI calculates the value and stores inside these TXT tables they just stores with variable name as you see in the operator .
its just the value of the variables are stored in SNP_EXP_TXT. [ I am not extremely sure of this , please have a look at it ]
(or)
You can also export the log from the operator. File - > Export the log.
(or)
I would say run the particualr procedure , copy the codes into a sql developer or toad , go the top of that particualr session and expand the variable and you should find the value of the variable and get the value and replace with the required variable and this way, you can check if the values are coming correct or not, for the variable .
Hope this helps.
Similar Messages
-
Hello all,
I am getting this following error , when trying to load from files to Oracle (used this link as reference : http://john-goodwin.blogspot.com/2009/06/odi-series-processing-all-files-in.html)
ODI 11g 11.1.1.6
Database
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
any help would be greatly appreciated
7000 : null : java.sql.SQLException: ODI-40400: Invalid format description
java.sql.SQLException: ODI-40400: Invalid format description
at com.sunopsis.jdbc.driver.file.impl.metadata.MetaDataExtractor.buildTableDescFromRequestSQLExceptionOnly(MetaDataExtractor.java:479)
at com.sunopsis.jdbc.driver.file.FilePreparedStatement.buildGenericRow(FilePreparedStatement.java:75)
at com.sunopsis.jdbc.driver.file.FilePreparedStatement.<init>(FilePreparedStatement.java:57)
at com.sunopsis.jdbc.driver.file.FileConnection.prepareStatement(FileConnection.java:299)
at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.odi.core.datasource.dwgobject.support.OnConnectOnDisconnectDataSourceAdapter$OnDisconnectCommandExecutionHandler.invoke(OnConnectOnDisconnectDataSourceAdapter.java:200)
at $Proxy2.prepareStatement(Unknown Source)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.doInitializeStatement(SQLCommand.java:82)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.getStatement(SQLCommand.java:117)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.getBatchCommand(SQLCommand.java:329)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.processRecord(SQLCommand.java:137)
at oracle.odi.runtime.agent.execution.cmd.TextCommand.processRecord(TextCommand.java:1)
at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:86)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:561)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
at java.lang.Thread.run(Thread.java:662)Question2:
I am calling
OdiStartScen -SCEN_NAME=ALL_FILES -SCEN_VERSION=001 "-ACTIVITIES.CURRFILENAME=#LOADFILE"
in ODI procedure and when I execute I am getting this following error two
OdiStartScen -SCEN_NAME=ALL_FILES -SCEN_VERSION=001 "-ACTIVITIES.CURRFILENAME=#LOADFILE"
Exception getTargetTable("METADATA_DESC") : ODI-15081: There is no Target TableBoth these errors are happening the same procedure with two commandsHello,
I am getting the same error too. I am just trying to load simple (13 columns all number) txt to oracle table. My interface defination doesn't contain any transformation, filter or join.
7000 : null : java.sql.SQLException: ODI-40400: Invalid format description
java.sql.SQLException: ODI-40400: Invalid format description
at com.sunopsis.jdbc.driver.file.impl.metadata.MetaDataExtractor.buildTableDescFromRequestSQLExceptionOnly(MetaDataExtractor.java:479)
at com.sunopsis.jdbc.driver.file.FilePreparedStatement.<init>(FilePreparedStatement.java:62)
at com.sunopsis.jdbc.driver.file.FileConnection.prepareStatement(FileConnection.java:299)
at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.odi.core.datasource.dwgobject.support.OnConnectOnDisconnectDataSourceAdapter$OnDisconnectCommandExecutionHandler.invoke(OnConnectOnDisconnectDataSourceAdapter.java:200)
Source Code:
select
CITY_ID
C1_CITY_ID,
DISTRICT_ID
C2_DISTRICT_ID,
TOWNSHIP_ID
C3_TOWNSHIP_ID,
VILLAGE_ID
C4_VILLAGE_ID,
QUARTER_ID
C5_QUARTER_ID,
STREET_ID
C6_STREET_ID,
BUILDING_ID
C7_BUILDING_ID,
INDEPENDENTSECTION_ID
C8_INDEPENDENTSECTION_ID,
MATCH_LEVEL
C9_MATCH_LEVEL,
SERIAL_NUM_SEQ
C10_SERIAL_NUM_SEQ,
POLICY_NUM
C11_POLICY_NUM,
RENEWAL_NUM
C12_RENEWAL_NUM,
ADDRESS_NUM
C13_ADDRESS_NUM
from
TABLE
/*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=ADDRESS_HINT_FLSNP$CRLOAD_FILE=C:/temi/adress_hints.txtSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=0x0009SNP$CRFILE_SEP_LINE=0x000D0x000ASNP$CRFILE_FIRST_ROW=1SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=CITY_IDSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=1SNP$CRLINE_OFFSET=1SNP$CRLENGTH=3SNP$CRSCALE=0SNP$CRPRECISION=3SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=DISTRICT_IDSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=2SNP$CRLINE_OFFSET=4SNP$CRLENGTH=5SNP$CRSCALE=0SNP$CRPRECISION=5SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=TOWNSHIP_IDSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=3SNP$CRLINE_OFFSET=9SNP$CRLENGTH=5SNP$CRSCALE=0SNP$CRPRECISION=5SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=VILLAGE_IDSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=4SNP$CRLINE_OFFSET=14SNP$CRLENGTH=10SNP$CRSCALE=0SNP$CRPRECISION=10SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=QUARTER_IDSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=5SNP$CRLINE_OFFSET=24SNP$CRLENGTH=10SNP$CRSCALE=0SNP$CRPRECISION=10SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=STREET_IDSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=6SNP$CRLINE_OFFSET=34SNP$CRLENGTH=10SNP$CRSCALE=0SNP$CRPRECISION=10SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=BUILDING_IDSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=7SNP$CRLINE_OFFSET=44SNP$CRLENGTH=15SNP$CRSCALE=0SNP$CRPRECISION=15SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=INDEPENDENTSECTION_IDSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=8SNP$CRLINE_OFFSET=59SNP$CRLENGTH=15SNP$CRSCALE=0SNP$CRPRECISION=15SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=MATCH_LEVELSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=9SNP$CRLINE_OFFSET=74SNP$CRLENGTH=2SNP$CRSCALE=0SNP$CRPRECISION=2SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=SERIAL_NUM_SEQSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=10SNP$CRLINE_OFFSET=76SNP$CRLENGTH=10SNP$CRSCALE=0SNP$CRPRECISION=10SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=POLICY_NUMSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=11SNP$CRLINE_OFFSET=86SNP$CRLENGTH=10SNP$CRSCALE=0SNP$CRPRECISION=10SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=RENEWAL_NUMSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=12SNP$CRLINE_OFFSET=96SNP$CRLENGTH=2SNP$CRSCALE=0SNP$CRPRECISION=2SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=ADDRESS_NUMSNP$CRTYPE_NAME=NUMERICSNP$CRORDER=13SNP$CRLINE_OFFSET=98SNP$CRLENGTH=20SNP$CRSCALE=0SNP$CRPRECISION=20SNP$CR$$SNPS_END_KEY*/
Target Code:
insert into DASK_DWH.C$_0ADDRESS_HINT
C1_CITY_ID,
C2_DISTRICT_ID,
C3_TOWNSHIP_ID,
C4_VILLAGE_ID,
C5_QUARTER_ID,
C6_STREET_ID,
C7_BUILDING_ID,
C8_INDEPENDENTSECTION_ID,
C9_MATCH_LEVEL,
C10_SERIAL_NUM_SEQ,
C11_POLICY_NUM,
C12_RENEWAL_NUM,
C13_ADDRESS_NUM
values
:C1_CITY_ID,
:C2_DISTRICT_ID,
:C3_TOWNSHIP_ID,
:C4_VILLAGE_ID,
:C5_QUARTER_ID,
:C6_STREET_ID,
:C7_BUILDING_ID,
:C8_INDEPENDENTSECTION_ID,
:C9_MATCH_LEVEL,
:C10_SERIAL_NUM_SEQ,
:C11_POLICY_NUM,
:C12_RENEWAL_NUM,
:C13_ADDRESS_NUM -
Using DEBUG Mode in Oracle SQL Developer Data Modeler to Log SQL
Hello,
I am looking for the possibilty to enable the logging of SQL in Data Modeler.
Jeff Smith wrote an article how to do this for SQL Developer, for Data Modeler there are other configuration files. Does anyone have an idea?
Best regards,
JoopHello Philip,
the URL to the article of Jeff is: http://www.thatjeffsmith.com/archive/2012/10/using-debug-mode-in-oracle-sql-developer-to-log-sql/
in the install directory of Data Modeler 3.3.0.734 exists a file datamodeler\datamodeler\bin\datamodeler.conf. This analogue the situation for sql Developer.
However in this file there is no reference to a (non)debug file.
In ide/bin directory there is a ide-logging-debug.conf and ide-logging.conf file. But they are not referenced. Should one of them be included?
Joop -
Dear all,
Is there any ways to keep log sql statement after insert,update,delete as the example below :
==========================================
user01 client01 prog01.exe update emp set name='test';
user02 client02 prog02.exe delete from emp1;
I 'm not sure.Can use trigger? Is anybody have the example code?
Oracle9i + windows2000
Thank you for advance
CharaHi,
Here is a small resumen About Basic Auditing in Oracle.
For any Oracle versions prior to 9i you will need to set audit_trail parameter in the pfile ie.g.:
audit_trail = DBFor later Oracle Versions:
SQL>alter system set audit_trail = DB;To enable auditing for a specific object run the following command:
SQL>AUDIT SELECT, INSERT, UPDATE, DELETE ON SCHEMA.TABLE;To stop auditing use:
SQL>NOAUDIT SELECT, INSERT, UPDATE, DELETE ON SCHEMA.TABLE;Or to audit any statement that queries, delete, insert or updates any table, issue the following statement:
SQL>AUDIT SELECT TABLE, DELETE TABLE, INSERT TABLE, UPDATE TABLE;If you want to audit a specific user will need to run the following commands:
SQL>AUDIT ALTER TABLE, SELECT TABLE, INSERT TABLE, … ,GRANT PROCEDURE by <USERNAME>;To stop the audit for the user you will need to run:
SQL>NOAUDIT ALTER TABLE, SELECT TABLE, INSERT TABLE, … ,GRANT PROCEDURE by <USERNAME>;To see the results of the auditing use please run:
SQL> select * from dba_audit_trail;This is an excellent Oracle documentation to learn how to implement it:
- http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14266/cfgaudit.htm
Also I’ll recommend you to take a look on the following links:
- http://www.oracle-base.com/articles/8i/Auditing.php
Cheers,
Francisco Munoz Alvarez
http://www.oraclenz.com -
Hi,
I'd like to log SQL statements using the JDBC driver logging facility.
I'm using the driver named ojdbc14_g.jar and the following properties are set:
-Doracle.jdbc.Trace=true -Doracle.jdbc.LogFile=g:\temp\jdbc.log
The JDBC driver activity is logged, but the information which is displayed is unuseful, because the SQL statements are not displayed.
Is it possible to see the SQL statements?tassoc,
I don't know how you can see the SQL statements using only the Oracle JDBC driver, but perhaps P6 Spy may be helpful for you.
Good Luck,
Avi. -
I want to create a permanent file (SQLError.log) where i will be logging all SQL error messages. How can I designate such a file in my code and how to write to it?
Thankswell you could write a class something like this:
public class MySQLLog {
static String filename = "\logs\sql.log";
public static logError(String err)
File f = new File(filename);
if( !f.exists() )
f.createNewFile();
FileOutputStream fos = new FileOutputStream(f.toString(),true);
fos.write(err.getBytes());
fod.close();
of course you should probably get the file name from a props file instead of hard coding it. the problem here is you have no log file roll over and other nice features you get with logging packages. -
SQL in ODI procedure truncated while execution
My repsoitory is upgraded from Sunopsisv3 to ODI 10.1.x . I was trying to execute the package . There is a procedure with a SQL in it. While executing it works fine sometimes and sometimes it errors out saying Syntax error or table alias not found .When i look into the logs i see that the query is truncated as a result it failed.During success the query looks fine.
It is behaving in a wierd way. Is there any solution to fix this issue.
Thanks,
Gupta.Hi,
Try use #:
begin
select ename from emp where empid=#empno;
proc1(#empno);
end;
character '#' replace variable with value in the source
Edited by: Uthred on Sep 9, 2008 11:43 AM
Edited by: Uthred on Sep 9, 2008 11:43 AM -
Default Data Server for Hypersonic SQL in ODI 11g
Hi All,
I installed ODI 11g 11.1.1.6.0 for Win 7 with 10g DB R2 and WLS 10.3.5 successfully without any issues.
Created DEV_ODI_REPO Repository also without any issues.
Created Master Repository snpm1 and Work Repository as snpw1.
Created the Agents (Physical and Logical) and tested successfully.
Created the data servers for respective technologies
1) Technology Oracle -
Data Server - ORACLE_ORCL_LOCAL
Physical Schemas - SALES_DEV & SALES_PROD and
Logical Schema as ORACLE_ORCL_LOCAL_SALES
2) Technology FILE -
Data Server - FILE_GENERIC
Physical Schema - FILE_GENERIC.E:/oracle/Middleware/Oracle_ODI1/oracledi/demo/file
Logical Schema - FILE_DEMO_SRC
3) Technology - XML
Data Server - XML FILE
Physical Schema - GEO_D
Logical Schema - GEO_DIM
4) Technology - Hypersonic SQL
Data Server - HSQL (Is this the correct name or some other name is recommended ? )
Physical Schema - HSQL_LOCALHOST_20001_Default and HSQL_LOCALHOST_20001_Default
Logical Schema - HSQL_DEMO_SRC and HSQL_DEMO_TARG
All the Mappings are done properly using Development & Production context for Physical and Logical Schemas.
I am able to create the Models for Oracle, FIle and XML with successful Reverse Engineering (standard with development context )
with all the data displayed correctly.
The issue starts here
The Main issue is for Hypersonic SQL where I am not able to get the Reverse Engineering.
Technology - Hypersonic SQL I have defined the data server as HSQL
Is this correct data server or some other name for data server is suggested ?
I am able to start the startdemo.bat file successfully opening the 3 dos prompt windows as
a) Oracle DI Demo - Repository Server
b) Oracle DI Demo - Source Server
c) Oracle DI Demo - Target Server
Later I make entries on the JDBC tab od HSQL - Data Server as
JDBC Driver : org.hsqldb.jdbc.JDBCDriver
JDBC Url : jdbc:hsqldb:hsql://localhost
Test Connection - ok with successful connection.
Prior to this I already run the script created schemas and inserted data to the SRC_ tables in my 10g Database as
ORDERS - containing the Tables as SRC_CITY, SRC_CUSTOMER, SRC_PRODUCT, SRC_REGION.....
In the Designer I create a new Model as HSQL_SRC
Technology - Hypersonic SQL
Logical Schema - HSQL_DEMO_SRC as defined earlier in logical schema.
Reverse Engineer Tab - Selected as Standard Context selected as Development from drop down list.
When I right click on HSQL_SRC model for reverse engineer, it executes, however it does not display any tables inserted
as shown for ORDERS Schema.
Please correct me where I am wrong in giving the name for data server ? or some other place.
Thanks
AjazHi,
according to docs
http://docs.oracle.com/cd/E23943_01/integrate.1111/e12644/hypersonic_sql.htm#ODIKM590
i see
JDBC Driver: org.hsqldb.jdbcDriver
JDBC URL: jdbc:hsqldb:hsql://<host>:<port>
could you modify
JDBC Driver : org.hsqldb.jdbc.JDBCDriver
JDBC Url : jdbc:hsqldb:hsql://localhost
according to docs?
Thanks -
Logging SQL parameters in Database Adapter??
Hi there!!
We'd like to be able to log all the parameters that are used in a SQL operation in Database Adapters. So far, we've been able to log the query with '?' instead of the real parameters. For example: select t.* from tsupcontact t WHERE t.idsupplier = ? AND t.idproject IS NULL AND (t.iduser = ? OR ? IS NULL)
But we need to be able to see the actual parameters that are passed to the query (we're having some trouble with the database adapters and we need to see what's really going on the database).
Any ideas? Thanks in advance!!You need to edit the the aslbdebug.xml file in ./user_projects/domains/<your domain>. Then go into the weblogic console and change the levels to debug. You will get lots of debugging. Below are the settings in my file.
<java:sb-debug-logger xmlns:java="java:com.bea.wli.debug">
<java:alsb-stages-transform-runtime-debug>true</java:alsb-stages-transform-runtime-debug>
<java:alsb-alert-manager-debug>false</java:alsb-alert-manager-debug>
<java:alsb-credential-debug>false</java:alsb-credential-debug>
<java:alsb-jms-reporting-provider-debug>false</java:alsb-jms-reporting-provider-debug>
<java:alsb-management-credential-debug>false</java:alsb-management-credential-debug>
<java:alsb-management-dashboard-debug>false</java:alsb-management-dashboard-debug>
<java:alsb-management-debug>false</java:alsb-management-debug>
<java:alsb-management-user-mgt-debug>false</java:alsb-management-user-mgt-debug>
<java:alsb-module-debug>true</java:alsb-module-debug>
<java:alsb-monitoring-aggregator-debug>false</java:alsb-monitoring-aggregator-debug>
<java:alsb-monitoring-debug>false</java:alsb-monitoring-debug>
<java:alsb-pipeline-debug>true</java:alsb-pipeline-debug>
<java:alsb-security-wss-debug>false</java:alsb-security-wss-debug>
<java:alsb-service-account-manager-debug>false</java:alsb-service-account-manager-debug>
<java:alsb-service-provider-manager-debug>false</java:alsb-service-provider-manager-debug>
<java:alsb-service-repository-debug>false</java:alsb-service-repository-debug>
<java:alsb-service-security-manager-debug>false</java:alsb-service-security-manager-debug>
<java:alsb-service-validation-debug>false</java:alsb-service-validation-debug>
<java:alsb-test-console-debug>true</java:alsb-test-console-debug>
<java:alsb-transports-debug>true</java:alsb-transports-debug>
<java:alsb-uddi-debug>true</java:alsb-uddi-debug>
<java:alsb-wsdl-repository-debug>false</java:alsb-wsdl-repository-debug>
<java:alsb-wspolicy-repository-debug>false</java:alsb-wspolicy-repository-debug>
<java:alsb-security-encryption-debug>false</java:alsb-security-encryption-debug>
<java:alsb-security-module-debug>false</java:alsb-security-module-debug>
<java:alsb-sources-debug>false</java:alsb-sources-debug>
<java:alsb-custom-resource-debug>true</java:alsb-custom-resource-debug>
<java:alsb-mqconnection-debug>false</java:alsb-mqconnection-debug>
<java:alsb-throttling-debug>false</java:alsb-throttling-debug>
<java:alsb-flow-resource-debug>false</java:alsb-flow-resource-debug>
<java:alsb-flow-transport-debug>false</java:alsb-flow-transport-debug>
<java:alsb-flow-deployment-debug>false</java:alsb-flow-deployment-debug>
<java:alsb-debugger-debug>true</java:alsb-debugger-debug>
</java:sb-debug-logger> -
Hi
Is there a way to trace all the sql query of a specific user in Oracle 9i ?
I already try logminer but i find it not very flexible.
Thanks for answer.Hi,
You can use sql trace on a session level even you can set this parameter on db level. There might be no other way to get a log of a particular user's queries.
Thanks -
SQL Override. How to use custom SQL in ODI?
I am new to ODI & have an Informatica background. I am looking for an SQL override capability in ODI. I have an existing SQL which has complex joins, in-line queries, filters, unions & many other complexities. The query reads many existing tables & output 5 fields, which I need to populate in the target table. In Informatica, I would simply create a Target table of these 5 fields, import the same table as both source & target, & then override the source qualifier with the existing SQL. Does ODI have a similar feature?
I know that the same can be achieved using core ODI features, but I am trying to get it done quickly without re-inventing the wheels.
Thanks,
Dinesh.Dinesh
you can not use SQL over-ride feature which informatica has. I am an informatica developer myself. So I can feel your pain. You are gonna miss a lot of features Informatica has. the one you are looking can not be done using ODI Interfaces. But can be done using ODI Procedures. When you create a step in Procedure you would mention the Source and target schema informations/Context Logical Schema info which should do the work for you. If your source and targets are in different Server then create a DBlink between two servers. Now when you put your select query in it put it like an insert query. -
Logging sql queries without any changes in existing apps
Hi!
Is it possible to log all SQL queries send from application to database via JDBC without any (or really small) changes in code of existing applications?
I'm new to JDBC so any suggestions/ideas/best practices are welcome ;)
Best regards.
Edited by: matthew_ on Mar 16, 2008 5:35 PMIs it possible to log all SQL queries send from application to database via JDBCFirst is an assumption that the driver does in fact sends SQL. It might send some other form.
But excluding that and excluding that the driver explicitly sends it then you can create a proxy driver. You implement the driver to pass everything to the real driver. Along the way it collects the information.
You will find that that is quite bit of work. However it impacts the actual code very little and requires nothing more than loading the driver and changing the connection string in the code where it is used. -
Jdbc adapter log sql statement to file
Hi,
I'm using a Proxy to Jdbc scenario.
In the Adapter Configuration the logSQLStatement is set to true.
Is it possible to log the sql statement shown in the Audit to a file?
Regards RalfHi
please try the below query in Update sql statement
update table_name set fieldname = systimestamp where .....
or
update table_name set fieldname = current_timestamp where .....
Regards
Ramg. -
Site System Status Error Message on SiteStat.log : SQL statement with Incorrect Syntax
Hi Folks,
We are getting the below system status error in the primary servers site status log (SiteStat.log) every minute. It relates to the updating of a secondary site.
I have worked out where the SQL syntax is wrong (TimeReported=,) and that it more than likely relates to the day light saving settings last weekend on the secondary sites virtual's host which caused the secondary site server time to go way
into the future, this has now been fixed.
Is there anyway of removing/deleting this system status/SQL query? I have restarted Primary, Secondary and SQL server, to no avail.
Any help would be greatly appreciated.
*** [42000][102][Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near ','. SMS_SITE_SYSTEM_STATUS_SUMMARIZER 01/11/2012 14:45:58 5756 (0x167C)
---->: Could not execute the SQL command:
UPDATE Summarizer_SiteSystem SET Status=0,SiteCode='001',SiteSystem='["Display=\\SERVER\"]MSWNET:["SMS_SITE=001"]\\SERVER\',SiteObject='["Display=\\SERVER\D$\SCCM\"]MSWNET:["SMS_SITE=001"]\\SERVER\D$\SCCM\',ObjectType=0,Role='SMS Component 847496,DownSince=NULL,Replicate=1,PercentFree=76,WarnLevel=102400,ErrorLevel=51200,TimeReported=,AvailabilityState=4
WHERE SiteCode='001' AND SiteSystem='["Display=\\SERVER\"]MSWNET:["SMS_SITE=001"]\\SERVER\' AND SiteObject='["Display=\\SERVER\D$\SCCM\"]MSWNET:["SMS_SITE=001"]\\SERVER\D$\SCCM\' AND Role='SMS Component Server' AND ObjectType=0. Will try again in 60 seconds. SMS_SITE_SYSTEM_STATUS_SUMMARIZER 01/11/2012
14:45:58 5756 (0x167C)
---->: Clearing lost SQL connection and reinitializing it SMS_SITE_SYSTEM_STATUS_SUMMARIZER 01/11/2012 14:46:58 5756 (0x167C)
Thanks
JTeQYes, I know this is an old post, but I’m trying to clean them up.
There is not supported way to fix this. As such I recommend that you contract CSS directly, they will work with you to solve this problem.
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
How to use SIMPLE CDC log MINER in ODI ?
Can you please let me the step to do the simple cdc using log miner
ya that link only tells us about consistent set journalizing . i want to know how to do simple journalizing using log miner ?
when we import the JKM Oracle 11g Consistent (LOGMINER) . we can select in the KM if we want to use simple set or consistent set
I am getting an error at the lock Journalizing step .
update schema_name.J$S_TRG
set JRN_CONSUMED = '1'
where (1=1)
AND JRN_SUBSCRIBER = 'SUNOPSIS' /* AND JRN_DATE < sysdate */
i check the J$S_TRG table it does not have the jrn_consumed and jrn_subscriber column names in it .
error message
904 : 42000 : java.sql.SQLException: ORA-00904: "JRN_SUBSCRIBER": invalid identifier
Maybe you are looking for
-
How do I re-update my walkman app?
In the app setting screen there is an option of deleting the walkman app's update. After deleting that update, I am now stuck with the older version of the app. Is there a way for me to re-update to the newest version? Repairing my phone through the
-
ABAP short dump error while creating an invoice
Hi All, We are creating a delivery(Unit is EA) for the material for which the Unit Conversion is maintained as 1CS = 48 EA. So while creating a delivery If I maintain the delivered quantity is less than 24, I am not able to create an invoice.It's thr
-
IPhoto iCloud - My Photo Stream
"My Photo Stream" on Shared - iCloud folder in iPhoto is not receiving any updates from iCloud. My iPad is getting photos i take on my iphone and visa versa though my iPhoto application on my Mac is not getting any photos. Everything on the iMac is c
-
Hello everyone, On the latest release of InDesign CC for an ePub is it possible to create a popup that contains a slideshow done with Object States? So in other words, the user taps on a button (Show/Hide Buttons and Forms Action), a pop up windows a
-
Why would adjustment layers stop working?
I was retouching a painting earlier and i could not get every detail because my adjustment layers stopped allowing me to paint on the mask. I spent about 1hr trying to figure it out. I never did. I switched from ps v13 and v12 and niether would allow