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

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 
主站蜘蛛池模板: 福泉市| 彝良县| 乌拉特中旗| 砀山县| 西安市| 云安县| 木兰县| 江川县| 梨树县| 虞城县| 申扎县| 宝坻区| 长岛县| 永城市| 信丰县| 百色市| 志丹县| 秦安县| 汾阳市| 威海市| 应城市| 社旗县| 虎林市| 浦城县| 鲁山县| 光泽县| 安塞县| 沾化县| 佳木斯市| 呼玛县| 潞西市| 清丰县| 东丰县| 年辖:市辖区| 青海省| 平果县| 南宫市| 封丘县| 宕昌县| 上栗县| 洞口县|