- 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
推薦閱讀
- WS/BPEL 2.0 for SOA Composite Applications with IBM WebSphere 7
- PS職場達人煉成記:人人都能學會的Photoshop辦公設計技巧
- Ext JS 3.0 Cookbook
- 數碼攝影后期高手之路(第2版)
- CoffeeScript Application Development
- Oracle Siebel CRM 8 User Management: LITE
- 中文版AutoCAD 2014高手之道
- Excel 2016入門與提高
- 中文版Photoshop CC平面設計從入門到精通(唯美)
- SolidWorks 2020中文版從入門到精通
- 剪映短視頻剪輯從入門到精通:宣傳短片+電商視頻+產品廣告+活動慶典
- 3ds Max 印象 影視粒子特效全解析
- 企業微信公眾平臺開發實戰:再小的個體也有自己的品牌
- Photoshop-CorelDRAW 基礎培訓教程
- Flash with Drupal