Unlike the previous versions, CodeSmith6.5 requires the user to manually add Oracle drivers, which are internally integrated with the Oracle driver.
There are many Win7 64-bit machines on the Internet when using Codesmith to connect Oracle, errors occur as follows:
This is because a 32-bit Oracle Client connection was used on a 64-bit machine, causing the connection to fail.
Solution: Install Oracle's 64-bit client connection
1 first to the official website download file:http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html? Sssourcesiteid=ocomen
Required files (64-bit system): (32-bit system download 32-bit client)
Instantclient-basic-windows.x64-11.2.0.3.0.zip
Instantclient-jdbc-windows.x64-11.2.0.3.0.zip
Instantclient-odbc-windows.x64-11.2.0.3.0.zip
Instantclient-sqlplus-windows.x64-11.2.0.3.0.zip
Unzip the file to the same directory
2 Setting environment variables
Nls_lang=simplified Chinese_china. Zhs16gbk
Tns_admin=e:\oracle\instantclient_11_2
Path=e:\oracle\instantclient_11_2;
Once configured, re-open codesmith.
Test failed thrown badimageformatexception when attempting to load the Oracle client library