时间:2021-07-01 10:21:17 帮助过:2人阅读
(1) 在oracle中,如果需要执行多条相同的语句,可以通过ping语句实现,例如:在user_obejects表中有多张表的表名存在列OBJECT_NAME中,此时通过以下语句:
SELECT ‘grant select,update on user_name1.‘||object_name||‘ to user_name;‘ from user_objects where OBJECT_TYPE in (‘TABLE‘ ,‘VIEW‘)
(2) 创建用户:
create user user_name1 identified by "password"
default tablespace tablespace_name
temporary tablespace temporarytable_name
profile DEFAULT;
(3)给对象赋权:-- Grant/Revoke object privileges
grant connect to user_name1;
grant resource to user_name1;
grant select,update on user_name.table_name to user_name1
Oracle
标签: