<?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 Re: Oracle RAC 18c compatibility with Sqoop (OraOop) 1.4.6 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Oracle-RAC-18c-compatibility-with-Sqoop-OraOop-1-4-6/m-p/318575#M227499</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/34533"&gt;@cardozogp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just wondering if you've seen the below documentation regarding the Sqoop - Oracle compatibility:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://support.oracle.com/knowledge/Oracle%20Database%20Products/1510470_1.html#aref_section24" target="_blank" rel="noopener"&gt;https://support.oracle.com/knowledge/Oracle%20Database%20Products/1510470_1.html#aref_section24&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope it helps you to move forward with your new requirement!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards:&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 06:38:12 GMT</pubDate>
    <dc:creator>Bender</dc:creator>
    <dc:date>2021-06-15T06:38:12Z</dc:date>
    <item>
      <title>Oracle RAC 18c compatibility with Sqoop (OraOop) 1.4.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oracle-RAC-18c-compatibility-with-Sqoop-OraOop-1-4-6/m-p/317727#M227297</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for ways to increase speed of data ingestion in my Company's Datalake with, specifically, use of Oracle Data Connector in Sqoop.&lt;/P&gt;
&lt;P&gt;Our HortonWorks(Now Cloudera) environment uses Sqoop 1.4.6.&lt;/P&gt;
&lt;P&gt;Following theses &lt;A href="https://sqoop.apache.org/docs/1.4.6/SqoopUserGuide.html#_data_connector_for_oracle_and_hadoop" target="_self"&gt;docs&lt;/A&gt; in sqoop site I asked our dba's Team a user with this features:&lt;/P&gt;
&lt;P&gt;A) create and &lt;U&gt;alter&lt;/U&gt; session&amp;nbsp;privileges&lt;/P&gt;
&lt;P&gt;B) Object privileges:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;select on dba_segments — Required for Sqoop imports only&lt;/LI&gt;
&lt;LI&gt;select on dba_constraints — Required for Sqoop imports only&lt;/LI&gt;
&lt;LI&gt;select on v_$database — Required for Sqoop imports only&lt;/LI&gt;
&lt;LI&gt;select on v_$parameter — Required for Sqoop imports only&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Playing with this Sqoop feature I ran this command:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Sqoop import&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Doraoop.jdbc.url.verbatim=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--direct&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--connect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jdbc:oracle:thin:@&lt;/SPAN&gt;&lt;STRONG&gt;myserver&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;STRONG&gt;myserver&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;STRONG&gt;myserver&lt;/STRONG&gt;&lt;SPAN&gt;:1521/&lt;/SPAN&gt;&lt;STRONG&gt;mydb&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;--username&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;myuser&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;--password-alias&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;********&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--table&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;myschema&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;STRONG&gt;mytable&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;--target-dir&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;STRONG&gt;mypath&lt;/STRONG&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;STRONG&gt;mytable&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;--verbose&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;And get this output:&lt;/P&gt;
&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; Invoking Sqoop command line now &amp;gt;&amp;gt;&amp;gt;

2021-06-04 18:05:04,323 [main] WARN  org.apache.sqoop.tool.SqoopTool  - $SQOOP_CONF_DIR has not been set in the environment. Cannot check for additional configuration.
2021-06-04 18:05:04,365 [main] INFO  org.apache.sqoop.Sqoop  - Running Sqoop version: 1.4.6.2.6.5.0-292
2021-06-04 18:05:04,388 [main] DEBUG org.apache.sqoop.tool.BaseSqoopTool  - Enabled debug logging.
2021-06-04 18:05:04,390 [main] DEBUG org.apache.sqoop.util.password.CredentialProviderHelper  - Reflecting credential provider classes and methods
2021-06-04 18:05:04,391 [main] DEBUG org.apache.sqoop.util.password.CredentialProviderHelper  - Found org.apache.hadoop.security.alias.CredentialProvider
2021-06-04 18:05:04,399 [main] DEBUG org.apache.sqoop.util.password.CredentialProviderHelper  - Found org.apache.hadoop.security.alias.CredentialProviderFactory
2021-06-04 18:05:04,400 [main] DEBUG org.apache.sqoop.util.password.CredentialProviderHelper  - Found CredentialProvider#createCredentialEntry
2021-06-04 18:05:04,400 [main] DEBUG org.apache.sqoop.util.password.CredentialProviderHelper  - Found CredentialProvider#flush
2021-06-04 18:05:04,401 [main] DEBUG org.apache.sqoop.util.password.CredentialProviderHelper  - Found Configuration#getPassword
2021-06-04 18:05:04,401 [main] DEBUG org.apache.sqoop.util.password.CredentialProviderHelper  - Found CredentialProviderFactory#getProviders
2021-06-04 18:05:04,402 [main] DEBUG&lt;SPAN&gt;org.apache.sqoop.util.password.CredentialProviderHelper - Resolving alias with credential provider path set to jceks://&lt;/SPAN&gt;&lt;STRONG&gt;hdfs/mypath/my.jceks&lt;/STRONG&gt;
2021-06-04 18:05:04,672 [main] WARN  org.apache.sqoop.ConnFactory  - $SQOOP_CONF_DIR has not been set in the environment. Cannot check for additional configuration.
2021-06-04 18:05:04,685 [main] DEBUG org.apache.sqoop.ConnFactory  - Loaded manager factory: org.apache.sqoop.manager.oracle.OraOopManagerFactory
2021-06-04 18:05:04,709 [main] DEBUG org.apache.sqoop.ConnFactory  - Loaded manager factory: com.cloudera.sqoop.manager.DefaultManagerFactory
2021-06-04 18:05:04,709 [main] DEBUG org.apache.sqoop.ConnFactory  - Trying ManagerFactory: org.apache.sqoop.manager.oracle.OraOopManagerFactory
2021-06-04 18:05:04,752 [main] DEBUG org.apache.sqoop.manager.oracle.OraOopManagerFactory  - Data Connector for Oracle and Hadoop can be called by Sqoop!
2021-06-04 18:05:04,771 [main] INFO  org.apache.sqoop.manager.SqlManager  - Using default fetchSize of 1000
2021-06-04 18:05:05,699 [main] DEBUG org.apache.sqoop.manager.oracle.OraOopUtilities  - The Oracle table context has been derived from:&lt;SPAN&gt;oracleConnectionUserName =&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;myuser&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;tableStr =&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;myschema&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;STRONG&gt;mytable&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;owner :&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;myschema&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;table :&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;mytable&lt;/STRONG&gt;
2021-06-04 18:05:06,333 [main] INFO  org.apache.sqoop.manager.oracle.OraOopManagerFactory  - 
**************************************************
*** Using Data Connector for Oracle and Hadoop ***
**************************************************
2021-06-04 18:05:06,334 [main] DEBUG org.apache.sqoop.manager.oracle.OraOopUtilities  - Updated mapred.child.java.opts from "-Xmx200m" to "-Djava.security.egd=file:///dev/urandom -Xmx200m"
2021-06-04 18:05:06,353 [main] ERROR org.apache.sqoop.manager.oracle.OraOopManagerFactory  - &lt;STRONG&gt;Unable to obtain the Oracle database version.&lt;/STRONG&gt;
&lt;STRONG&gt;java.sql.SQLException: Result set after last row&lt;/STRONG&gt;
	at oracle.jdbc.driver.GeneratedScrollableResultSet.getInt(GeneratedScrollableResultSet.java:570)
        [...]
2021-06-04 18:05:06,377 [main] INFO  org.apache.sqoop.manager.oracle.OraOopManagerFactory  - This Oracle database is a RAC.
2021-06-04 18:05:06,377 [main] INFO  org.apache.sqoop.manager.oracle.OraOopManagerFactory  - Data Connector for Oracle and Hadoop will not use dynamically generated JDBC URLs - this feature has been disabled.
2021-06-04 18:05:06,377 [main] INFO  org.apache.hadoop.conf.Configuration.deprecation  - mapred.map.max.attempts is deprecated. Instead, use mapreduce.map.maxattempts
2021-06-04 18:05:06,377 [main] DEBUG org.apache.sqoop.ConnFactory  - Instantiated ConnManager org.apache.sqoop.manager.oracle.OraOopConnManager@20134094
2021-06-04 18:05:06,378 [main] INFO  org.apache.sqoop.tool.CodeGenTool  - Beginning code generation
2021-06-04 18:05:06,391 [main] DEBUG org.apache.sqoop.manager.oracle.OraOopOracleQueries  - getTableColumns() : sql = 
SELECT column_name, data_type  FROM dba_tab_columns WHERE owner = ? and table_name = ?  and (DATA_TYPE IN ('BINARY_DOUBLE','BINARY_FLOAT','BLOB','CHAR','CLOB','DATE','FLOAT','LONG','NCHAR','NCLOB','NUMBER','NVARCHAR2','RAW','ROWID','URITYPE','VARCHAR2') OR DATA_TYPE LIKE 'INTERVAL YEAR(%) TO MONTH' OR DATA_TYPE LIKE 'INTERVAL DAY(%) TO SECOND(%)' OR DATA_TYPE LIKE 'TIMESTAMP(%)' OR DATA_TYPE LIKE 'TIMESTAMP(%) WITH TIME ZONE' OR DATA_TYPE LIKE 'TIMESTAMP(%) WITH LOCAL TIME ZONE') ORDER BY column_id
2021-06-04 18:05:06,605 [main] ERROR org.apache.sqoop.Sqoop  - Got exception running Sqoop: java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

&amp;lt;&amp;lt;&amp;lt; Invocation of Sqoop command completed &amp;lt;&amp;lt;&amp;lt;&lt;/PRE&gt;
&lt;P&gt;After some googling about the message "Unable to obtain the Oracle database version." I arrived on this &lt;A href="https://github.com/aixuebo/sqo1.4.6/blob/05f821936b194a7dddaa115f3bcc8d1b8d0eb42d/src/java/org/apache/sqoop/manager/oracle/OraOopOracleQueries.java#L458" target="_self"&gt;link&lt;/A&gt; where I can see how OraOop identifys Oracle Database Version between lines 163 and 190 with this query:&lt;/P&gt;
&lt;PRE&gt;SELECT&lt;BR /&gt; v.banner,&lt;BR /&gt; rtrim(v.version) full_version,&lt;BR /&gt; rtrim(v.version_bit) version_bit,&lt;BR /&gt; substr(v.version, 1, instr(v.version, '.', 1, 1) - 1) major,&lt;BR /&gt; substr(v.version, instr(v.version, '.', 1, 1) + 1, instr(v.version, '.', 1, 2) - instr(v.version, '.', 1, 1) - 1) minor,&lt;BR /&gt; substr(v.version, instr(v.version, '.', 1, 2) + 1, instr(v.version, '.', 1, 3) - instr(v.version, '.', 1, 2) - 1) version,&lt;BR /&gt; substr(v.version, instr(v.version, '.', 1, 3) + 1, instr(v.version, '.', 1, 4) - instr(v.version, '.', 1, 3) - 1) patch,&lt;BR /&gt; decode(instr(v.banner, '64bit'), 0, 'False', 'True') isdb64bit,&lt;BR /&gt; decode(instr(b.banner, 'HPUX'), 0, 'False', 'True') ishpux&lt;BR /&gt;FROM (&lt;BR /&gt;  SELECT&lt;BR /&gt;  ROWNUM row_num,&lt;BR /&gt;  banner,&lt;BR /&gt;  substr(substr(banner, instr(banner, 'Release ') + 8), 1) version_bit,&lt;BR /&gt;  substr(substr(banner, instr(banner, 'Release ') + 8), 1, instr(substr(banner, instr(banner, 'Release ') + 8), ' ')) version&lt;BR /&gt;  FROM&lt;BR /&gt;  v$version&lt;BR /&gt;  WHERE&lt;BR /&gt;  banner LIKE 'Oracle%'&lt;BR /&gt;  OR banner LIKE 'Personal Oracle%'&lt;BR /&gt;  ) v,&lt;BR /&gt;v$version b&lt;BR /&gt;WHERE v.row_num = 1 &lt;STRONG&gt;and b.banner like 'TNS%'&lt;/STRONG&gt; ;&lt;/PRE&gt;
&lt;P&gt;When I run the query in Database it returned me no lines, but when I run the query without the bold part above i receve this line as aswer:&lt;/P&gt;
&lt;PRE&gt;BANNER FULL_VERSION VERSION_BIT MAJOR MINOR VERSION PATCH ISDB6 ISHPU&lt;BR /&gt;------------------------------------------------------------------------- -------------- ------------------------- ------- ------- --------- ------ ----- -----&lt;BR /&gt;Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production 18.0.0.0.0 18.0.0.0.0 - Production 18 0 0 0 False False&lt;/PRE&gt;
&lt;P&gt;So the OraOop code will only work when this query return at least one line, but I cannot modidy this class code for my needs.... after this long way now I m looking for a compatibility matrix between sqoop 1.4.6 versus Oracle Database versions, but couldn't find one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone can help me with it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm in the right way to solve this problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="resultText"&gt;Any thoughts will be appreciated.&lt;/P&gt;
&lt;P class="resultText"&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 14:34:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oracle-RAC-18c-compatibility-with-Sqoop-OraOop-1-4-6/m-p/317727#M227297</guid>
      <dc:creator>cardozogp</dc:creator>
      <dc:date>2021-06-07T14:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle RAC 18c compatibility with Sqoop (OraOop) 1.4.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oracle-RAC-18c-compatibility-with-Sqoop-OraOop-1-4-6/m-p/318575#M227499</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/34533"&gt;@cardozogp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just wondering if you've seen the below documentation regarding the Sqoop - Oracle compatibility:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://support.oracle.com/knowledge/Oracle%20Database%20Products/1510470_1.html#aref_section24" target="_blank" rel="noopener"&gt;https://support.oracle.com/knowledge/Oracle%20Database%20Products/1510470_1.html#aref_section24&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope it helps you to move forward with your new requirement!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards:&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 06:38:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oracle-RAC-18c-compatibility-with-Sqoop-OraOop-1-4-6/m-p/318575#M227499</guid>
      <dc:creator>Bender</dc:creator>
      <dc:date>2021-06-15T06:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle RAC 18c compatibility with Sqoop (OraOop) 1.4.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oracle-RAC-18c-compatibility-with-Sqoop-OraOop-1-4-6/m-p/318747#M227523</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12296"&gt;@Bender&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your replay. The Faq wasn't useful. It's aswer is:&lt;/P&gt;&lt;P&gt;"With BDA V2.0 Sqoop automatically supports Oracle Database and MySQL. Hence connect strings beginning with jdbc:oracle or jdbc:mysql:// are handled with no additional setup."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 18:41:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oracle-RAC-18c-compatibility-with-Sqoop-OraOop-1-4-6/m-p/318747#M227523</guid>
      <dc:creator>cardozogp</dc:creator>
      <dc:date>2021-06-15T18:41:05Z</dc:date>
    </item>
  </channel>
</rss>

