当我连接数据库时,它显示以下错误
An error was encountered performing the requested operation:
The Network Adapter could not establish the connection
Vendor code 20
我认为这是由于我的类路径问题引起的,我试图修复它但未成功
我的课程路径是:
E:\app\JamesPJ\product\11.2.0\dbhome_1\jlib\orai18n.jar;E:\app\JamesPJ\product\11.2.0\dbhome_1\jdbc\lib\ojdc6_g.jar;E:\app\JamesPJ\product\11.2.0\dbhome_1\BIN;C:\Program Files\Java\jdk1.7.0_09\bin;C:\Users\JamesPJ\Documents;E:\app\JamesPJ\product\11.2.0\dbhome_1\jdbc\lib;E:\app\JamesPJ\product\11.2.0\dbhome_1\jlib;E:\app\JamesPJ\product\11.2.0\dbhome_1\jdbc\lib\ojdbc6.jar;E:\app\JamesPJ\product\11.2.0\dbhome_1\oc4j\jdbc\lib\orai18n.jar;E:\app\JamesPJ\product\11.2.0\dbhome_1\oc4j\jdbc\lib\ocrs12.jar
如果有人知道解决方案,请帮助我
提前致谢.....
最佳答案
如果使用的是oracle,请确保已启动Oracle Listener。