Exception in thread "main" java.sql.SQLException: Io 异常: Connection refused(DE
SCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12500)(EM
FI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=530)(EMFI=4))(ERROR=(BUF='32-bit
Windows Error: 2: No such file or directory'))))
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:335)
        at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:361)        at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:442)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
        at java.sql.DriverManager.getConnection(DriverManager.java:525)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at Test.main(Test.java:30)

解决方案 »

  1.   

    ORA-12500: TNS:listener failed to start a dedicated server process 
    Cause: 
       The process of starting up a dedicated server process failed. The executable could not be found or the environment may be set up incorrectly.
    Action: 
       Turn on tracing at the ADMIN level and reexecute the operation. Verify that the ORACLE Server executable is present and has execute permissions enabled. Ensure that the ORACLE environment is specified correctly in LISTENER.ORA. The Oracle Protocol Adapter that is being called may not be installed on the local hard drive. Please check that the correct Protocol Adapter are successfully linked. If error persists, contact Oracle Customer Support.