<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] Calling Oracle Stored Procedure in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266509#M45708</link>
    <description>Hi Arun
&lt;BR /&gt;After reading the code of your Oracle PROCEDURE, I see two output parameters(va_dn,va_curr_state).
&lt;BR /&gt;Just add two columns in tOracleSP and select 'OUT' type of 'Parameters' on tOracleSP.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
    <pubDate>Fri, 15 Jun 2012 08:05:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-15T08:05:41Z</dc:date>
    <item>
      <title>[resolved] Calling Oracle Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266506#M45705</link>
      <description>Hi Talend Gurus, 
&lt;BR /&gt;I am calling Oracle Stored Procedure which does not require any input parameters. So, below is the setup : 
&lt;BR /&gt;tOracleSP_1 --&amp;gt; tLogRow_1 --&amp;gt; tFileOutputDelimited_1 
&lt;BR /&gt;The configuration and parameters used for tOracleSP_1 is as attached. 
&lt;BR /&gt;I am not getting any Errors, but output of SP (which is DBMS_OUTPUT) is not passed to tLogRow_1 
&lt;BR /&gt;In the SP Name for tOracleSP_1, I have used "ni_fetch_sfc_reports_sx.safaricom_reports_simex" and no configuration done for Parameters part (since I don't have any input/output parameters) 
&lt;BR /&gt;The output of the t_OracleSP_1 just shows 1 rows Fetched (Please see attached Screenshot) 
&lt;BR /&gt;Please let me know if there is something like Set Serveroutput on to be done for the DBMS_OUTPUT to be displayed. 
&lt;BR /&gt;The output in execution is as below : 
&lt;BR /&gt;Starting job Safaricom_requirement at 11:00 15/06/2012. 
&lt;BR /&gt; connecting to socket on port 3597 
&lt;BR /&gt; connected 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job Safaricom_requirement ended at 11:00 15/06/2012. 
&lt;BR /&gt;Thanks in Advance. 
&lt;BR /&gt;Thanks &amp;amp; BR, 
&lt;BR /&gt;Arun</description>
      <pubDate>Fri, 15 Jun 2012 06:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266506#M45705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-15T06:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Calling Oracle Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266507#M45706</link>
      <description>Hi Arun&lt;BR /&gt;This topic may help you. 7942&lt;BR /&gt;It's the same with tOracleSP.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 15 Jun 2012 06:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266507#M45706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-15T06:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Calling Oracle Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266508#M45707</link>
      <description>Hi Pedro,
&lt;BR /&gt;Thank you so much for your reply.. I tried the same implementation. But, am getting error as below :
&lt;BR /&gt;Starting job Safaricom_requirement at 11:48 15/06/2012.
&lt;BR /&gt;
&lt;PRE&gt; connecting to socket on port 3686&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tOracleSP_1&lt;BR /&gt;java.sql.SQLException: ORA-06550: line 1, column 7:&lt;BR /&gt;PLS-00306: wrong number or types of arguments in call to 'ARUN_PROC'&lt;BR /&gt;ORA-06550: line 1, column 7:&lt;BR /&gt;PL/SQL: Statement ignored&lt;BR /&gt;	at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)&lt;BR /&gt;	at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)&lt;BR /&gt;	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)&lt;BR /&gt;	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)&lt;BR /&gt;	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)&lt;BR /&gt;	at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)&lt;BR /&gt;	at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)&lt;BR /&gt;	at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)&lt;BR /&gt;	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)&lt;BR /&gt;	at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)&lt;BR /&gt;	at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3488)&lt;BR /&gt;	at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3857)&lt;BR /&gt;	at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)&lt;BR /&gt;	at arun.safaricom_requirement_0_1.Safaricom_requirement.tOracleSP_1Process(Safaricom_requirement.java:555)&lt;BR /&gt;	at arun.safaricom_requirement_0_1.Safaricom_requirement.runJobInTOS(Safaricom_requirement.java:905)&lt;BR /&gt;	at arun.safaricom_requirement_0_1.Safaricom_requirement.main(Safaricom_requirement.java:773)&lt;BR /&gt; disconnected&lt;/PRE&gt;
&lt;BR /&gt;The SP is as below : 
&lt;BR /&gt;
&lt;PRE&gt;	PROCEDURE arun_proc AS&lt;BR /&gt;		va_dn VARCHAR_LIST;&lt;BR /&gt;		va_curr_state VARCHAR_LIST;&lt;BR /&gt;	BEGIN&lt;BR /&gt;		BEGIN&lt;BR /&gt;			SELECT dn,current_state BULK COLLECT INTO va_dn,va_curr_state&lt;BR /&gt;			FROM ni_dn&lt;BR /&gt;			WHERE rownum &amp;lt; 10;&lt;BR /&gt;			IF va_dn.count = 0 THEN&lt;BR /&gt;				DBMS_OUTPUT.PUT_LINE('No DNs found');&lt;BR /&gt;				GOTO the_end;&lt;BR /&gt;			END IF;&lt;BR /&gt;			FOR idx IN  va_dn.first..va_dn.last LOOP&lt;BR /&gt;				DBMS_OUTPUT.PUT_LINE('DN : '||va_dn(idx)||' Current_state : '||va_curr_state(idx));&lt;BR /&gt;			END LOOP;&lt;BR /&gt;		EXCEPTION&lt;BR /&gt;			WHEN OTHERS THEN&lt;BR /&gt;				RAISE_APPLICATION_ERROR(-20001,'Error - '||SQLCODE||' -ERROR Message- '||SQLERRM);&lt;BR /&gt;		END;&lt;BR /&gt;		&amp;lt;&amp;lt;the_end&amp;gt;&amp;gt;&lt;BR /&gt;		NULL;&lt;BR /&gt;	END arun_proc;&lt;BR /&gt;END call_arun;&lt;/PRE&gt;
&lt;BR /&gt;I have done the same setup as shown in above example..
&lt;BR /&gt;Please find the attached Screen shots. 
&lt;BR /&gt;Please let me know for any mistake.
&lt;BR /&gt;Thanks &amp;amp; BR,
&lt;BR /&gt;Arun</description>
      <pubDate>Fri, 15 Jun 2012 07:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266508#M45707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-15T07:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Calling Oracle Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266509#M45708</link>
      <description>Hi Arun
&lt;BR /&gt;After reading the code of your Oracle PROCEDURE, I see two output parameters(va_dn,va_curr_state).
&lt;BR /&gt;Just add two columns in tOracleSP and select 'OUT' type of 'Parameters' on tOracleSP.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 15 Jun 2012 08:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266509#M45708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-15T08:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Calling Oracle Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266510#M45709</link>
      <description>Hi Pedro, 
&lt;BR /&gt;Thank you so much for your help so far, but, I modified the t_Oracle_SP and ParseRecord such that the OUT Parameters are defined. But, I got the below error : 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job Safaricom_requirement at 15:13 15/06/2012.&lt;BR /&gt; connecting to socket on port 3879&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tOracleSP_1&lt;BR /&gt;java.sql.SQLException: Invalid column type: 1111&lt;BR /&gt;	at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)&lt;BR /&gt;	at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)&lt;BR /&gt;	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)&lt;BR /&gt;	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)&lt;BR /&gt;	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)&lt;BR /&gt;	at oracle.jdbc.driver.OracleStatement.getInternalType(OracleStatement.java:3521)&lt;BR /&gt;	at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:126)&lt;BR /&gt;	at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:288)&lt;BR /&gt;	at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:379)&lt;BR /&gt;	at oracle.jdbc.driver.OracleCallableStatementWrapper.registerOutParameter(OracleCallableStatementWrapper.java:1568)&lt;BR /&gt;	at arun.safaricom_requirement_0_1.Safaricom_requirement.tOracleSP_1Process(Safaricom_requirement.java:538)&lt;BR /&gt;	at arun.safaricom_requirement_0_1.Safaricom_requirement.runJobInTOS(Safaricom_requirement.java:891)&lt;BR /&gt;	at arun.safaricom_requirement_0_1.Safaricom_requirement.main(Safaricom_requirement.java:759)&lt;BR /&gt; disconnected&lt;BR /&gt;Job Safaricom_requirement ended at 15:13 15/06/2012. &lt;/PRE&gt; 
&lt;BR /&gt;Can you please advise. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Arun</description>
      <pubDate>Fri, 15 Jun 2012 10:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266510#M45709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-15T10:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Calling Oracle Stored Procedure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266511#M45710</link>
      <description>Hi Pedro,&lt;BR /&gt;Thank you for your help. The problem was with the Stored Procedure returning the Cursor. Issue Resolved.&lt;BR /&gt;Thanks a Bunch..&lt;BR /&gt;Thanks &amp;amp; BR,&lt;BR /&gt;Arun</description>
      <pubDate>Fri, 15 Jun 2012 13:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Calling-Oracle-Stored-Procedure/m-p/2266511#M45710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-15T13:08:52Z</dc:date>
    </item>
  </channel>
</rss>

