title: Sqoop - getting java.lang.NullPointerException when trying to connect to Oracle DB Server
body: <p>Using Sqoop, I am trying to connect to Oracle DB and then list the databases available. 
  But when I try to execute the command, I am getting java.lang.NullPointerException</p>
  
  <p>Please find the command and the exception that I get as mentioned below:</p>
  
  <pre><code>[hadoop@njpas01 bin]$ ./sqoop list-databases --connect jdbc:oracle:thin@DEVDB1:1521 --username dev_user -P
  Warning: $HADOOP_HOME is deprecated.
  
  15/04/01 14:56:24 INFO sqoop.Sqoop: Running Sqoop version: 1.4.5
  Enter password:
  15/04/01 14:56:35 INFO oracle.OraOopManagerFactory: Data Connector for Oracle and Hadoop is disabled.
  15/04/01 14:56:35 INFO manager.SqlManager: Using default fetchSize of 1000
  15/04/01 14:56:35 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
  java.lang.NullPointerException
          at org.apache.sqoop.manager.OracleManager.listDatabases(OracleManager.java:695)
          at org.apache.sqoop.tool.ListDatabasesTool.run(ListDatabasesTool.java:49)
          at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
          at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
          at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
          at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
          at org.apache.sqoop.Sqoop.main(Sqoop.java:236)
  </code></pre>
  
  <p>There is <strong>no firewall issue</strong>. The port 1521 is accessible from the machine where I run the Sqoop command.
  <strong>Oracle Version - 11g</strong> Enterprise edition.
  <strong>ojdbc6.jar</strong> Oracle connector is placed in the Sqoop lib folder.</p>
  
  <p>Please let me know what is the cause of this issue. I have done a similar operation with SQL Server and successfully listed the data base, imported the data from DB to HDFS. But I am facing this issue in Oracle DB. Please help. </p>
  
  <p>Thanks.</p>