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;
您可能感兴趣的文章:- 解决oracle12c创建用户提示ORA-65096:公用用户名或角色无效问题
- Oracle数据库创建用户与数据库备份小结(必看篇)
- 使用sqlplus命令行工具为oracle创建用户和表空间
- oracle创建表空间、授权、创建用户、导入dmp文件
- Oracle 创建用户及数据表的方法
- oracle创建用户过程详解