grant select,insert on 'select table_name from ' || tablespace_name to user_name;
解决方案 »
- 怎样通过oracle磁盘文件查看版本?
- 一个存储过程语法问题?
- INSERT INTO TableName EXECUTE(@v_SQL)语句问题
- oracle 除法保留问题?
- 欢迎加入QQ oracle群----号:1617315
- 是权限的问题吗,请帮忙看一看!
- oracle 中有没有与 sql server 中@@rowcount类似的功能参数,或有其它的方式实现相同的功能。
- 时间问题
- 为什么会有错误?ORA-00933
- 更新F2列(用Oracle)
- 奇怪的问题:SQL*Plus 和ISQL*Plus下使用Select * from tablename得到不同的结果.
- j2ee 1.4server的deploytool中如何建立Oracle的数据源呢?
select 'grant select on '||table_name||' to user_name' from all_tables where tablespace_name='USERS';
(tb_name in varchar2,user_name in varchar2)
is
begin
for rec in (select table_name,OWNER
from all_tables
where tablespace_name=tb_name)
loop
execute immediate 'grant select on '||rec.table_name||' to '||user_name;
end loop;
end grant_on_tablespace;/*调用*/grant_on_tablespace ('tablespace_name','user_name')