Thread: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
I am using Oracle 12c to test migration from Oracle to PostgreSQL. I am using windows OS. I have copied ojdbc7.jar file under lib folder of "EnterpriseDB-MigrationToolkit"
I am getting following error:
E:\sandeep\postgres\EnterpriseDB-MigrationToolkit>runMTK.bat -verbose on -source
dbtype "oracle" @//localhost:1521/pdbsales.igatecorp.com
Source database connectivity info...
conn =jdbc:oracle:thin:@//localhost:1521/pdbsales.igatecorp.com
user =scott_name
password=******
Target database connectivity info...
conn =jdbc:postgresql://localhost:5432/postgres
user =postgres
password=******
Connecting with source Oracle database server...
Error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
One or more schema objects could not be imported during the migration process. P
lease review the migration output for more details.
Migration logs have been saved to C:\Users\gondhasa.IGATECORP\.enterprisedb\migr
ation-toolkit\logs
******************** Migration Summary ********************
Total objects: 0
Successful count: 0
Failure count: 0
Re: [ADMIN] java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
On Dec 27, 2014, at 9:29 AM, Sandeep Gondhalekar <sandeep.gondhalekar1@gmail.com> wrote: > > Migration logs have been saved to C:\Users\gondhasa.IGATECORP\.enterprisedb\migr > ation-toolkit\logs Pretty sure you're going to have to look in the logs as suggested by the message before anyone can help. -- Scott Ribe scott_ribe@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice
Re: [ADMIN] [ADMIN] java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
On Dec 27, 2014, at 10:31 AM, Scott Ribe <scott_ribe@elevated-dev.com> wrote: > > Pretty sure you're going to have to look in the logs as suggested by the message before anyone can help. Oops, missed the line about Oracle driver class not being found. I don't know EnterpriseDb, but it seems highly suspect that you're putting an jdbc jar file into the enterprise manager directorystructure rather than in a folder in a standard location for jar files, in other words something on your java CLASSPATH--which,unfortunately, I have no idea what that would be for Windows OS. -- Scott Ribe scott_ribe@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice
Re: [ADMIN] java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
I am using Oracle 12c to test migration from Oracle to PostgreSQL. I am using windows OS. I have copied ojdbc7.jar file under lib folder of "EnterpriseDB-MigrationToolkit"
I am getting following error:
E:\sandeep\postgres\EnterpriseDB-MigrationToolkit>runMTK.bat -verbose on -source
dbtype "oracle" @//localhost:1521/pdbsales.igatecorp.com
Source database connectivity info...
conn =jdbc:oracle:thin:@//localhost:1521/pdbsales.igatecorp.com
user =scott_name
password=******
Target database connectivity info...
conn =jdbc:postgresql://localhost:5432/postgres
user =postgres
password=******
Connecting with source Oracle database server...
Error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
export CLASSPATH= "$CLASSPATH:path/to/jar/file"
One or more schema objects could not be imported during the migration process. P
lease review the migration output for more details.Migration logs have been saved to C:\Users\gondhasa.IGATECORP\.enterprisedb\migr
ation-toolkit\logs******************** Migration Summary ********************
Total objects: 0
Successful count: 0
Failure count: 0
Github/JacksonIsaac
Re: [ADMIN] java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
On Sat, Dec 27, 2014 at 9:59 PM, Sandeep Gondhalekar <sandeep.gondhalekar1@gmail.com> wrote:
I am using Oracle 12c to test migration from Oracle to PostgreSQL. I am using windows OS. I have copied ojdbc7.jar file under lib folder of "EnterpriseDB-MigrationToolkit"
I am getting following error:
E:\sandeep\postgres\EnterpriseDB-MigrationToolkit>runMTK.bat -verbose on -source
dbtype "oracle" @//localhost:1521/pdbsales.igatecorp.com
Source database connectivity info...
conn =jdbc:oracle:thin:@//localhost:1521/pdbsales.igatecorp.com
user =scott_name
password=******
Target database connectivity info...
conn =jdbc:postgresql://localhost:5432/postgres
user =postgres
password=******
Connecting with source Oracle database server...
Error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriverOne or more schema objects could not be imported during the migration process. P
lease review the migration output for more details.Migration logs have been saved to C:\Users\gondhasa.IGATECORP\.enterprisedb\migr
ation-toolkit\logs******************** Migration Summary ********************
Total objects: 0
Successful count: 0
Failure count: 0
Harshad Adalkonda
Database Administrator
Re: [ADMIN] java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
On Sat, Dec 27, 2014 at 9:59 PM, Sandeep Gondhalekar <sandeep.gondhalekar1@gmail.com> wrote:
Hi Sandeep,I am using Oracle 12c to test migration from Oracle to PostgreSQL. I am using windows OS. I have copied ojdbc7.jar file under lib folder of "EnterpriseDB-MigrationToolkit"
I am getting following error:
E:\sandeep\postgres\EnterpriseDB-MigrationToolkit>runMTK.bat -verbose on -source
dbtype "oracle" @//localhost:1521/pdbsales.igatecorp.com
Source database connectivity info...
conn =jdbc:oracle:thin:@//localhost:1521/pdbsales.igatecorp.com
user =scott_name
password=******
Target database connectivity info...
conn =jdbc:postgresql://localhost:5432/postgres
user =postgres
password=******
Connecting with source Oracle database server...
Error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriverOne or more schema objects could not be imported during the migration process. P
lease review the migration output for more details.Migration logs have been saved to C:\Users\gondhasa.IGATECORP\.enterprisedb\migr
ation-toolkit\logs******************** Migration Summary ********************
Total objects: 0
Successful count: 0
Failure count: 0First you need to copy ojdbc7.jar in proper location, then edit the toolkit.properties file which is located in etc folder of installation of MTK.Example:SRC_DB_URL=jdbc:oracle:thin:@localhost:1521:xeSRC_DB_USER=hrSRC_DB_PASSWORD=hrTARGET_DB_URL=jdbc:postgresql://localhost:5432/postgresTARGET_DB_USER=postgresTARGET_DB_PASSWORD=postgresAfter saving the toolkit.properties file run runMTK.bat from cmd as follows:runMTK.bat -sourcedbtype source_database_name -targetdbtype target_database_name schema_nameExample:runMTK.bat -sourcedbtype oracle -targetdbtype postgres publicI hope this will solve your problem.Thanks & Regards,Harshad Adalkonda
Database Administrator
Re: [ADMIN] java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
On Sun, Dec 28, 2014 at 8:55 PM, Sandeep Gondhalekar <sandeep.gondhalekar1@gmail.com> wrote:
Thanks all for prompt replies.I have copied ojdbc7.jar under "C:\Program Files (x86)\Java\jre7\lib" andSET CLASSPATH="C:\Program Files (x86)\Java\jre7\lib"still no luck.On Sun, Dec 28, 2014 at 1:57 PM, Harshad Adalkonda <adalkondaharshad@gmail.com> wrote:On Sat, Dec 27, 2014 at 9:59 PM, Sandeep Gondhalekar <sandeep.gondhalekar1@gmail.com> wrote:
Hi Sandeep,I am using Oracle 12c to test migration from Oracle to PostgreSQL. I am using windows OS. I have copied ojdbc7.jar file under lib folder of "EnterpriseDB-MigrationToolkit"
I am getting following error:
E:\sandeep\postgres\EnterpriseDB-MigrationToolkit>runMTK.bat -verbose on -source
dbtype "oracle" @//localhost:1521/pdbsales.igatecorp.com
Source database connectivity info...
conn =jdbc:oracle:thin:@//localhost:1521/pdbsales.igatecorp.com
user =scott_name
password=******
Target database connectivity info...
conn =jdbc:postgresql://localhost:5432/postgres
user =postgres
password=******
Connecting with source Oracle database server...
Error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriverOne or more schema objects could not be imported during the migration process. P
lease review the migration output for more details.Migration logs have been saved to C:\Users\gondhasa.IGATECORP\.enterprisedb\migr
ation-toolkit\logs******************** Migration Summary ********************
Total objects: 0
Successful count: 0
Failure count: 0First you need to copy ojdbc7.jar in proper location, then edit the toolkit.properties file which is located in etc folder of installation of MTK.Example:SRC_DB_URL=jdbc:oracle:thin:@localhost:1521:xeSRC_DB_USER=hrSRC_DB_PASSWORD=hrTARGET_DB_URL=jdbc:postgresql://localhost:5432/postgresTARGET_DB_USER=postgresTARGET_DB_PASSWORD=postgresAfter saving the toolkit.properties file run runMTK.bat from cmd as follows:runMTK.bat -sourcedbtype source_database_name -targetdbtype target_database_name schema_nameExample:runMTK.bat -sourcedbtype oracle -targetdbtype postgres publicI hope this will solve your problem.Thanks & Regards,Harshad Adalkonda
Database Administrator