- JDBC 4.0 and Oracle JDeveloper for J2EE Development
- Deepak Vohra
- 173字
- 2021-08-25 18:08:48
JDBC Configuration Errors
You might get errors while configuring a JDBC connection. If you are using MySQL, and the connection URL is incorrect, or the MySQL database is not running, the following error message is generated:
Communications link failure
If you are using Oracle database, some possible connection configuration errors are listed below:
IO exception: The Network Adapter could not establish the connection IO exception: Connection refused
The The Network Adapter could not establish the connection exception is caused by one or more of the following configuration errors:
- The database host name, port number, or database instance name is wrong.
- The database
TNSListener
has not been started. TheTNSListener
may be started with thelsnrctl
utility.C:\>lsnrctl start
The Connection refused exception is caused by one or more of the following configuration errors:
- The database SID specified is incorrect.
- The database instance has not been started. To start the database instance connect to
SQL*Plus as SYSDBA
.C:\>sqlplus SYS/<pwd> AS SYSDBA
At the SQL prompt, start the database instance with the startup
command.
SQL>startup
推薦閱讀
- 數碼攝影后期零基礎入門教程
- AutoCAD 2017實用教程
- 虛擬現實:開啟現實與夢想之門
- Swing Extreme Testing
- Moodle JavaScript Cookbook
- NHibernate 2 Beginner's Guide
- Lighttpd
- iPad+Procreate室內設計手繪表現技法
- 抖音+剪映+Premiere短視頻制作從新手到高手(第2版)
- Illustrator 2022從入門到精通
- Inkscape 0.48 Essentials for Web Designers
- 新編中文版Photoshop平面設計入門與提高(第2版)
- MATLAB 2008全程指南
- 速學Axure RP:產品原型設計從入門到進階
- AutoCAD2012中文版實例教程(第2版)