还有问题,这里我的dba都是系统默认的sys,不过在jbuilder的database空间连接时
我用sys连,却返回说不是dba,后来发现只能用system能够连接成功,但还是发生上面的错误
另外我在sql*plus中却可以用sys登陆dba,
请高手指教

解决方案 »

  1.   

    现在sql*plus中执行sql,看看能行吗?
      

  2.   

    salesman 应该不是system用户的表吧,这样调用 用户名.salesman
      

  3.   

    的确不是,是用sys建的,因为在sql*plus中sys是dba,但在java中用sys连接出错,却说sys不是dba,所以才用system,我也试过sys.salesman,但同样错误,现在我也把system改为dba,问题还是没有解决
      

  4.   

    在sql*plus中,使用正常,表没有问题
    在jbuilder中用dbswing的控件,也能看到表的内容,
    但无法对表进行操作,就会出现如上的0942错误
      

  5.   

    ORA-00942 table or view does not existCause: The table or view entered does not exist, a synonym that is not allowed here was used, or a view was referenced where a table is required. Existing user tables and views can be listed by querying the data dictionary. Certain privileges may be required to access the table. If an application returned this message, the table the application tried to access does not exist in the database, or the application does not have access to it.Action: Check each of the following:the spelling of the table or view name. 
    that a view is not specified where a table is required. 
    that an existing table or view name exists. 
    Contact the database administrator if the table needs to be created or if user or application privileges are required to access the table.
    (注意这句)
    Also, if attempting to access a table or view in another schema, make certain the correct schema is referenced and that access to the object is granted
      

  6.   

    以上几句,都检查过,但还是没有发现问题的根源
    不过还是谢谢各位
    仍然是运行到类似语句
     myStatement.executeUpdate就出现错误
      

  7.   

    现在就是查询语句可以,
    但调用executeUpdate方法,更新是还是出错0942