ORA-13776: User “string” has not been granted the “SELECT” privilege on the “SQL tuning set” DBA views. ORACLE 报错 故障修复 远程处理

文档解释

ORA-13776: User “string” has not been granted the “SELECT” privilege on the “SQL tuning set” DBA views.

Cause: The user attempted to read a SQL tuning set belonging to someone else without having SELECT privilege on the DBA views

Action: User should be granted the privilege or only access his own STS

这条ORA-13776错误信息是指用户没有被授予“SELECT”权限在SQL优化集DBA视图上。 换句话说,这个用户没有足够的权限来提取SQL优化集相关的信息。

官方文档:ORA-13776表示操作失败,原因是指定的用户没有获得相应的SELECT权限,以查看有关SQL tuning Sets的DBA视图,例如V_$SQL_TUNING_SET。

常见案例

正常处理方法及步骤

1、使用管理员帐号登录Oracle,执行以下SQL语句:

GRANT SELECT ON V_$SQL_TUNING_SET TO 用户名;

2、重新登录数据库,使用新增用户登录,可以使用SQL优化集视图查询了;


数据运维技术 » ORA-13776: User “string” has not been granted the “SELECT” privilege on the “SQL tuning set” DBA views. ORACLE 报错 故障修复 远程处理