java oracle 视图不存在,Oracle DB表或视图不存在

I'm trying to connect a Oracle database to my JAVA web project.

and when creating the connection to the database using system user connection is successfully established.

But when I execute a simple select * command in the connection it says

Error code 942, SQL state 42000: ORA-00942: table or view does not exist.

These sql queries work in sqldeveloper. No errors.

I'm using oracle 10g thin client ojdbc6 driver and jdk 1.7

what can be the problem?

Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

Error Code: 942

Call: SELECT USERID, FULLNAME, USERNAME, USER_CREDENTIALSID, USER_TYPEID FROM USERS

Query: ReadAllQuery(referenceClass=Users sql="SELECT USERID, FULLNAME, USERNAME, USER_CREDENTIALSID, USER_TYPEID FROM USERS")

解决方案

Problem was connecting as the system user. I saw an account in oracle administration page called JPAMAGAZINE. connected using that account and it worked.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值