官术网_书友最值得收藏!

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:

  1. The database host name, port number, or database instance name is wrong.
  2. The database TNSListener has not been started. The TNSListener may be started with the lsnrctl utility.
    C:\>lsnrctl start 
    

The Connection refused exception is caused by one or more of the following configuration errors:

  1. The database SID specified is incorrect.
  2. 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 
主站蜘蛛池模板: 汤阴县| 吐鲁番市| 潍坊市| 新化县| 桃园市| 鄢陵县| 道孚县| 搜索| 吉林市| 钟祥市| 永德县| 睢宁县| 罗山县| 甘洛县| 玉林市| 六枝特区| 昌黎县| 鹰潭市| 微山县| 揭西县| 腾冲县| 白河县| 正蓝旗| 大同市| 吕梁市| 延长县| 合阳县| 平塘县| 北安市| 正宁县| 阆中市| 永川市| 瑞丽市| 定安县| 富宁县| 武宁县| 安塞县| 海宁市| 福泉市| 阿鲁科尔沁旗| 正镶白旗|