<?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: tOracleRow - Execute SQL which calls to_timestamp function? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367919#M131247</link>
    <description>&lt;P&gt;I was running into the problem of the table being locked after I ran the insert if I didn't commit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running the insert for over 33 million rows to convert from VARCHAR datatype in one table to timestamp(0) in the final table.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2017 21:06:08 GMT</pubDate>
    <dc:creator>talendtester</dc:creator>
    <dc:date>2017-12-15T21:06:08Z</dc:date>
    <item>
      <title>tOracleRow - Execute SQL which calls to_timestamp function?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367913#M131241</link>
      <description>&lt;P&gt;I have a &lt;STRONG&gt;tOracleRow&lt;/STRONG&gt; component and SQL for an insert statement that calls the to_timestamp function. The SQL runs fine outside of Talend DI.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Why do I need two &lt;STRONG&gt;single quotes&lt;/STRONG&gt; around the date time formatting in order for the component not to throw an error?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;"begin&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;execute immediate 'INSERT INTO myDatabase.myTable&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp;to_timestamp( myDATE, &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;'&lt;/STRONG&gt;yyyy-mm-dd HH24:MI:ss&lt;STRONG&gt;'&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt; )&amp;nbsp; as myDATE&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;FROM myDatabase.myOtherTable';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;execute immediate 'commit';&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;end;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is the error I get without the two single quotes:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;ORA-06550: line 4, column 23:&lt;BR /&gt;PLS-00103: Encountered the symbol "YYYY" when expecting one of the following:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &amp;amp; = - + ; &amp;lt; / &amp;gt; at in is mod remainder not rem return&lt;BR /&gt;&amp;nbsp;&amp;nbsp; returning &amp;lt;an exponent (**)&amp;gt; &amp;lt;&amp;gt; or != or ~= &amp;gt;= &amp;lt;= &amp;lt;&amp;gt; and or&lt;BR /&gt;&amp;nbsp;&amp;nbsp; like like2 like4 likec between into using || multiset bulk&lt;BR /&gt;&amp;nbsp;&amp;nbsp; member submultiset&lt;BR /&gt;The symbol "*" was substituted for "YYYY" to continue.&lt;BR /&gt;ORA-06550: line 4, column 37:&lt;BR /&gt;PLS-00103: Encountered the symbol "HH24" when expecting one of the following:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; . ( * @ % &amp;amp; = - + ; &amp;lt; / &amp;gt; at in is mod remainder not rem&lt;BR /&gt;&amp;nbsp;&amp;nbsp; return returning &amp;lt;an exponent (**)&amp;gt; &amp;lt;&amp;gt; or != or ~= &amp;gt;= &amp;lt;= &amp;lt;&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; and or like like2 like4 likec between into using || bulk&lt;BR /&gt;&amp;nbsp;&amp;nbsp; member submultiset&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 19:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367913#M131241</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2017-12-15T19:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleRow - Execute SQL which calls to_timestamp function?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367914#M131242</link>
      <description>&lt;P&gt;I tried this&amp;nbsp;"INSERT INTO test_date SELECT TO_DATE('20171210','YYYYMMDD') as myDATE FROM DUAL"&lt;/P&gt; 
&lt;P&gt;This is working fine. Are you inserting data into Oracle DB or SQL Server?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tOracle.PNG" style="width: 902px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ls7S.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138716i037977B7FF568F5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ls7S.png" alt="0683p000009Ls7S.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 20:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367914#M131242</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2017-12-15T20:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleRow - Execute SQL which calls to_timestamp function?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367915#M131243</link>
      <description>Oracle database.&lt;BR /&gt;&lt;BR /&gt;What happens when you change to use the to_timestamp function?</description>
      <pubDate>Fri, 15 Dec 2017 20:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367915#M131243</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2017-12-15T20:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleRow - Execute SQL which calls to_timestamp function?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367916#M131244</link>
      <description>&lt;P&gt;Using &lt;SPAN&gt;TO_TIMESTAMP&amp;nbsp;&lt;/SPAN&gt; also working as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"INSERT INTO test_date SELECT&amp;nbsp; TO_TIMESTAMP ('20171210', 'yyyymmdd') as myDATE FROM DUAL"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 20:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367916#M131244</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2017-12-15T20:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleRow - Execute SQL which calls to_timestamp function?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367917#M131245</link>
      <description>What happens when you are pulling the datetime from a different table and converting the time too? And then doing the 'commit' in the same component?
&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Dec 2017 20:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367917#M131245</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2017-12-15T20:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleRow - Execute SQL which calls to_timestamp function?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367918#M131246</link>
      <description>&lt;P&gt;Why you need to commit. I think by default it will commit after execution. Why you are converting date to date time again ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 20:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367918#M131246</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2017-12-15T20:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: tOracleRow - Execute SQL which calls to_timestamp function?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367919#M131247</link>
      <description>&lt;P&gt;I was running into the problem of the table being locked after I ran the insert if I didn't commit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running the insert for over 33 million rows to convert from VARCHAR datatype in one table to timestamp(0) in the final table.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 21:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tOracleRow-Execute-SQL-which-calls-to-timestamp-function/m-p/2367919#M131247</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2017-12-15T21:06:08Z</dc:date>
    </item>
  </channel>
</rss>

