oracle数据库tomcat控制报错
Caused by: java.sql.SQLException: ORA-00942: 表或视图不存在 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:672) at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:598)
sqlserver数据库tomcat控制报错
Caused by: java.sql.SQLException: 对象名 'PM_CBCS_ZB' 无效。 at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365) at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781) at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2224)
mysql数据库tomcat控制报错
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'x5sys.sa_task_histroy' doesn't exist at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
使用的对应的数据库报这些错误说明数据库中到不到报错的表
sqlserver和mysql的可以直接看出具体是哪个表,oracle的要看tomcat控制台具体在执行那条sql时报的这个错误,说明执行这条语句中的表找不到
如果数据库中存在表要确认配置的数据源是否连的查看的查看的数据库
评一波