ORA-30990: insufficient privileges to change owner of resource string ORACLE 报错 故障修复 远程处理
ORA-30990: insufficient privileges to change owner of resource string
Cause: An attempt was made to change the field of an XML DB resource without sufficient privileges to do so.
Action: Switch to SYS before performing the ownership change, or have the intended recipient of the resource perform the transfer.
错误说明
ORA-30990: insufficient privileges to change owner of resource string 错误,指用户在尝试更改拥有某一资源权限时,由于权限不够以致产生的 Oracle 错误代码。这里的 resource string 表示所尝试更改权限的某个资源对象,例如表、索引、序列等,但用户没有足够权限更改它的所有者,所以会报此错误。
常见案例
典型的情况有:
1. 用户尝试修改其他用户拥有的资源对象的状态,例如:用户 A 尝试修改用户 B 所拥有的表:
ALTER TABLE B.TABLE_NAME OWNER TO USER_C;
此时,用户 A 将会收到 ORA-30990 错误,因为 A 用户没有足够权限更改 B 用户拥有对象的所有者。
2. 用户尝试给其他用户授予某一资源权限,例如用户 A 尝试授予用户 B 对表的 INSERT 权限:
GRANT INSERT ON TABLE_NAME TO USER_B;
此时,如果 A 用户没有给 B 用户授予此资源的权限,就会报 ORA-30990 错误。
解决方法
1. 如果是自己的对象,需要自己有权限才能修改它的对象权限,此时可以使用 GRANT 来授予自己足够的权限,然后再执行更改权限的操作即可。
例如:GRANT ALTER ANY OBJECT 权限
2. 如果要更改其他用户拥有的对象状态,此时就需要用到 ALTER USER 权限,此权限默认只有 DBA 用户和 Sysdba 用户有,所以如果你没有这两种权限,就需要找相关的权限用户来给你授予 ALTER USER 权限,这样你就可以使用 ALTER USER 语句来修改其他用户拥有资源对象的状态了。
3. 如果要给其他用户授权,可以用 GRANT 来授予相关权限即可,但是要授权给其他用户,需要你有 GRANT ANY PRIVILEGE 权限,即用户可以给其他用户授予任何权限,如果你没有 GRANT ANY PRIVILEGE 权限,就无法给其他用户授予权限:
GRANT GRANT ANY PRIVILEGE TO USER_A
此时,也可以向相关的权限用户申请,让其授予你 GRANT ANY PRIVILEGE 权限,这样就可以给其他用户授予相关权限了。
我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题
本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 ORA-30990: insufficient privileges to change owner of resource string ORACLE 报错 故障修复 远程处理
相关文章
- ORA-19598: can not backup SPFILE because the instance was not started with SPFILE ORACLE 报错 故障修复 远程处理
- ORA-19664: file type: string, file name: string ORACLE 报错 故障修复 远程处理
- ORA-39022: Database version string is not supported. ORACLE 报错 故障修复 远程处理
- ORA-39962: invalid parameter for PLSQL_CCFLAGS ORACLE 报错 故障修复 远程处理
- ORA-53032: The default preference document cannot be found. ORACLE 报错 故障修复 远程处理
- ORA-54653: CREATE_TIN: specified total dimensionality cannot exceed 8 ORACLE 报错 故障修复 远程处理
- ORA-55568: The maximum query length (mql) value should be atmost string based on the current _highthreshold_undoretention setting. ORACLE 报错 故障修复 远程处理
- ORA-00228: length of alternate control file name exceeds maximum of string ORACLE 报错 故障修复 远程处理
- ORA-06912: CMX: write error in datarq ORACLE 报错 故障修复 远程处理
- ORA-07502: scgcmn: $enq unexpected return ORACLE 报错 故障修复 远程处理
- ORA-09954: scgcc: unexpected return status to callback of lock close ORACLE 报错 故障修复 远程处理
- ORA-12089: cannot online redefine table “string”.”string” with no primary key ORACLE 报错 故障修复 远程处理
- ORA-12899: value too large for column string (actual: string, maximum: string) ORACLE 报错 故障修复 远程处理
- ORA-12921: database is not in force logging mode ORACLE 报错 故障修复 远程处理
- ORA-13290: the specified unit is not supported ORACLE 报错 故障修复 远程处理
- ORA-14512: cannot perform operation on a clustered object ORACLE 报错 故障修复 远程处理
- 从Oracle到Hive:数据导入指南(oracle导入hive)
- Oracle实现快速增加行数据(oracle增加一行数据)
- 深入了解Oracle数据库中的触发器类型(oracle触发器类型)
- 计算Oracle中日期差值的四种函数(oracle日期差函数)
- 解决Oracle数据库中出现的无效月份错误(无效的月份oracle)
- 横跨业务有效性:持续雇用Oracle EBS顾问(oracle ebs顾问)
- Oracle共享集锁解决数据安全性的重要一步(oracle 共享集锁)
- Oracle故障文件异常处理细节(oracle出现文件异常)
- Oracle数据库中实现全拼排序的实践(oracle全拼排序)
- 分析Oracle OIF的应用价值(oif oracle)
- 紧急修复Oracle ERP系统漏洞发现(oracle erp漏洞)