java.sql.SQLSyntaxErrorException:ORA-00942:表或视图不存在

时间:2016-08-09 10:24:49

标签: java oracle jdbc

我在Eclipse中使用Tomcat 5.5安装设置了一个动态Web项目。 任何人都可以帮我解决以下异常。我已经配置了构建路径(servlet.api和ojdbc6.jar)

java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
    oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:951)
    oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:513)
    oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:227)
    oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
    oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:195)
    oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:876)
    oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1175)
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1296)
    oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1498)
    oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:406)
    org.apache.jsp.NewFile1_jsp._jspService(NewFile1_jsp.java:66)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

1 个答案:

答案 0 :(得分:0)

这意味着您没有要存储的数据的表格。首先创建具有必需属性的表,然后尝试运行您的程序。