oracle命令行删除与创建用户的代码

WBOY
发布: 2016-06-07 18:05:06
原创
927 人浏览过

oracle命令行删除与创建用户的代码

oracle命令行删除用户:
代码如下:
connect / as sysdba;
shutdown abort;
startup;
drop user user1 cascade;
exit

oracle命令行创建用户:
代码如下:
create user user1
identified by values 'fa091872a2cc669c'
default tablespace user1
temporary tablespace temp
profile default
account unlock;
-- 4 roles for user1
grant recovery_catalog_owner to user1 with admin option;
grant resource to user1 with admin option;
grant dba to user1 with admin option;
grant connect to user1 with admin option;
alter user user1 default role all;
-- 3 system privileges for user1
grant select any dictionary to user1 with admin option;
grant unlimited tablespace to user1 with admin option;
grant alter any procedure to user1 with admin option;
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板