网络编程
位置:首页>> 网络编程>> 数据库>> oracle命令行删除与创建用户的代码

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

 来源:asp之家 发布时间:2009-03-02 10:54:00 

标签: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;

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com