<?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>question Sqoop export fails from hive to oracle when column names are numeric in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-export-fails-from-hive-to-oracle-when-column-names-are/m-p/391181#M247514</link>
    <description>&lt;P&gt;We have a hive table in cloudera data platform and we need to export the same to oracle.&lt;/P&gt;&lt;P&gt;hive:&lt;/P&gt;&lt;P&gt;create external table temp_fns .ABC(account_id NUMBER,&lt;/P&gt;&lt;P&gt;`1234` number) stored as orc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oracle :&amp;nbsp;&lt;/P&gt;&lt;P&gt;create table schema.ABC(account_id decimal(28,0),&lt;/P&gt;&lt;P&gt;"1234" decima;(28,0)) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sqoop export command :&lt;/P&gt;&lt;P&gt;sqoop export&amp;nbsp; --connect jdbc:oracle:thin:@//server:1521/xyz --username pravin --P --num-mappers 5 --hcatalog-database temp_fns --hcatalog-table ABC -table&amp;nbsp;schema.ABC -- --batch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ORA error I am getting is&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error: java.io.IOException: java.sql.SQLSyntaxErrorException: ORA-01747: invalid user.table.column, table.column, or column specification&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;We cannot alter the oracle structure and most important thing is the same sqoop export works from HDP but it fails while exporting from CDP.&lt;/P&gt;&lt;P&gt;THe error is because of numeric column name "1234" when sqoop generates insert into statements like&amp;nbsp;&lt;/P&gt;&lt;P&gt;insert into schema.ABC (account_id,1234) values (1,234)&lt;/P&gt;&lt;P&gt;it fails with ORA error&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ORA-01747: invalid user.table.column, table.column, or column specification.&lt;BR /&gt;&lt;BR /&gt;Need help if anyone has ever encountered such scenario and how did they tackle.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 06:28:03 GMT</pubDate>
    <dc:creator>pravin_speaks</dc:creator>
    <dc:date>2026-04-21T06:28:03Z</dc:date>
    <item>
      <title>Sqoop export fails from hive to oracle when column names are numeric</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-export-fails-from-hive-to-oracle-when-column-names-are/m-p/391181#M247514</link>
      <description>&lt;P&gt;We have a hive table in cloudera data platform and we need to export the same to oracle.&lt;/P&gt;&lt;P&gt;hive:&lt;/P&gt;&lt;P&gt;create external table temp_fns .ABC(account_id NUMBER,&lt;/P&gt;&lt;P&gt;`1234` number) stored as orc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oracle :&amp;nbsp;&lt;/P&gt;&lt;P&gt;create table schema.ABC(account_id decimal(28,0),&lt;/P&gt;&lt;P&gt;"1234" decima;(28,0)) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sqoop export command :&lt;/P&gt;&lt;P&gt;sqoop export&amp;nbsp; --connect jdbc:oracle:thin:@//server:1521/xyz --username pravin --P --num-mappers 5 --hcatalog-database temp_fns --hcatalog-table ABC -table&amp;nbsp;schema.ABC -- --batch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ORA error I am getting is&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error: java.io.IOException: java.sql.SQLSyntaxErrorException: ORA-01747: invalid user.table.column, table.column, or column specification&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;We cannot alter the oracle structure and most important thing is the same sqoop export works from HDP but it fails while exporting from CDP.&lt;/P&gt;&lt;P&gt;THe error is because of numeric column name "1234" when sqoop generates insert into statements like&amp;nbsp;&lt;/P&gt;&lt;P&gt;insert into schema.ABC (account_id,1234) values (1,234)&lt;/P&gt;&lt;P&gt;it fails with ORA error&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ORA-01747: invalid user.table.column, table.column, or column specification.&lt;BR /&gt;&lt;BR /&gt;Need help if anyone has ever encountered such scenario and how did they tackle.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:28:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-export-fails-from-hive-to-oracle-when-column-names-are/m-p/391181#M247514</guid>
      <dc:creator>pravin_speaks</dc:creator>
      <dc:date>2026-04-21T06:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop export fails from hive to oracle when column names are numeric</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-export-fails-from-hive-to-oracle-when-column-names-are/m-p/391372#M247587</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/86030"&gt;@pravin_speaks&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I see some typo error&amp;nbsp; in the oracle create table stmt&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;create table schema.ABC(account_id decimal(28,0), "1234" &lt;FONT color="#FF0000"&gt;decima&lt;/FONT&gt;;(28,0)) ;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;Is that the exact copy and paste ??&lt;BR /&gt;Geoffrey&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 18:11:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-export-fails-from-hive-to-oracle-when-column-names-are/m-p/391372#M247587</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2024-08-05T18:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop export fails from hive to oracle when column names are numeric</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-export-fails-from-hive-to-oracle-when-column-names-are/m-p/397846#M249996</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/86030"&gt;@pravin_speaks&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you export the below before running the sqoop command and see if it helps?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;export HADOOP_CLIENT_OPTS="-Dsqoop.oracle.escaping.disabled=false -Djava.security.egd="file:///dev/../dev/urandom"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chethan YM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 06:12:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-export-fails-from-hive-to-oracle-when-column-names-are/m-p/397846#M249996</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2024-11-22T06:12:14Z</dc:date>
    </item>
  </channel>
</rss>

