解決:Cannot load ocl.dll library(error code 126). The ocil.dll library may be missing from the system


       因為這兩天在做將springboot 項目使用的數據庫MySQL轉換Oracle數據庫,所以在網上查找相關資料后開始使用 Convert-Mysql-to-Oracle4.0做轉換;

但是在連接oracle數據庫時候始終報錯:Cannot load ocl.dll library(error code 126). The ocil.dll library may be missing from the system

按照網上的多種辦法均未解決,即使上個報錯解決,又出現ORA-12154: TNS: 無法解析指定的連接標識符

       經過多種不同方法的嘗試最終找到解決辦法,分享大家: 

        在系統變量或者用戶變量中添加這兩個環境變量:

       ORACLE_HOME= E:\instantclient-basic-win32-11.2.0.1.0\instantclient_11_2

       TNS_ADMIN=E:\instantclient-basic-win32-11.2.0.1.0\instantclient_11_2

       E:\instantclient-basic-win32-11.2.0.1.0\instantclient_11_2這個是我電腦的配置,改成自己電腦的就可以,然后退出從連接OK;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM