java连接oracle表或视图不存在
但是我登录的时候连接的数据库里user表就没问题,登陆以后任何一个表都开始报错2017-03-0308:47:54:DEBUGPreparedStatement:42-=...
但是我登录的时候连接的数据库里user表就没问题,登陆以后任何一个表都开始报错
2017-03-03 08:47:54:DEBUG PreparedStatement:42 - ==> Parameters: 10(Integer), 1(Integer)
2017-03-03 08:47:54:INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2017-03-03 08:47:54:INFO SQLErrorCodesFactory:126 - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]
2017-03-03 08:47:54:DEBUG SqlSessionUtils:42 - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@b4cbc5]
2017-03-03 08:47:54:ERROR ExceptionInterceptor:36 - 系统捕捉到内部错误:org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: java.sql.SQLSyntaxErrorException: ORA-00942: 表或视图不存在
我是用myibatis的配置如下
<proxool>
<alias>BJ</alias>
<driver-url>jdbc:oracle:thin:@localhost:1521:ORCL</driver-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<driver-properties>
<property name="user" value="crjdata" />
<property name="password" value="crjdata" />
</driver-properties>
我用这个用户在PL/SQL下连接查询一切正常 展开
2017-03-03 08:47:54:DEBUG PreparedStatement:42 - ==> Parameters: 10(Integer), 1(Integer)
2017-03-03 08:47:54:INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2017-03-03 08:47:54:INFO SQLErrorCodesFactory:126 - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]
2017-03-03 08:47:54:DEBUG SqlSessionUtils:42 - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@b4cbc5]
2017-03-03 08:47:54:ERROR ExceptionInterceptor:36 - 系统捕捉到内部错误:org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: java.sql.SQLSyntaxErrorException: ORA-00942: 表或视图不存在
我是用myibatis的配置如下
<proxool>
<alias>BJ</alias>
<driver-url>jdbc:oracle:thin:@localhost:1521:ORCL</driver-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<driver-properties>
<property name="user" value="crjdata" />
<property name="password" value="crjdata" />
</driver-properties>
我用这个用户在PL/SQL下连接查询一切正常 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询