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

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 
主站蜘蛛池模板: 明光市| 福海县| 香格里拉县| 长泰县| 修水县| 南通市| 金溪县| 峨山| 绿春县| 黄浦区| 怀化市| 曲麻莱县| 中方县| 怀化市| 偏关县| 商水县| 德化县| 韶山市| 常熟市| 万盛区| 大理市| 平凉市| 昂仁县| 宾阳县| 宁河县| 赤城县| 许昌市| 寿光市| 岢岚县| 浙江省| 梁河县| 科技| 寿阳县| 石渠县| 门头沟区| 虎林市| 元谋县| 岐山县| 久治县| 顺昌县| 沙河市|