Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选

首页 / 数据库 / MySQL / 存储过程中遇到ORA-00942表或视图不存在

解决方法:grant select, insert, update, delete on bookmarks.* to bm_user@localhost identified by "password"授权语句:意思是把表 XXX select, insert, update, delete权限授给bm_user表以sys身份登录,为system赋予select 和delete sys.fga_log$的权限,否则下边的存储过程添加会有问题。Sql> grant select ,delete on sys.fga_log$ to system;原因:后来查资料得知如果用户有dba角色,角色里包含的权限在存储过程里不会被继承;所以又单独对tb_bil_acct_566 ,seq_bil_acct_his_hisid_566.nextval等作了显式赋权,问题得以解决。http://www.linuxidc.com/Linux/2014-09/106514.htmgrant 授权的授权结果从哪里看到?grant select ,delete on sys.fga_log$ to system;--改的是哪个基表? --dba_tab_privsselect * from dba_tab_privs where grantee="SYSTEM" AND TABLE_NAME="FGA_LOG$"[@more@]grant select ,delete on sys.fga_log$ to system;--改的是哪个基表? --dba_tab_privsselect * from dba_tab_privs where grantee="SYSTEM" AND TABLE_NAME="FGA_LOG$更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12本文永久更新链接地址