只提供对 Oracle 中特定视图的只读访问
Provide read only access only to specific View in Oracle
我的 Oracle 数据库模式中有 5 个视图。我需要为用户提供对一个视图的只读访问权限。
我正在考虑以下方法,但不确定是否可行,因为我不擅长 dba。
a) Create a new user or the corresponding business role APP_ROLE and assign "CREATE SESSION" rights.
b) GRANT SELECT ON <view> TO {APP | APP_ROLE}
在实际的oracle版本中(>=12.1.0.2)最好使用read
权限:
在以前的版本上 - 是的,grant select
没问题。
我的 Oracle 数据库模式中有 5 个视图。我需要为用户提供对一个视图的只读访问权限。
我正在考虑以下方法,但不确定是否可行,因为我不擅长 dba。
a) Create a new user or the corresponding business role APP_ROLE and assign "CREATE SESSION" rights.
b) GRANT SELECT ON <view> TO {APP | APP_ROLE}
在实际的oracle版本中(>=12.1.0.2)最好使用read
权限:
在以前的版本上 - 是的,grant select
没问题。