使用oracle命令行创建及删除用户的方法

数据库 Oracle
oracle命令行可以实现很多我们需要的功能,下文就为您介绍如何使用oracle命令行创建及删除用户,如果您感兴趣的话,不妨一看。

oracle命令行相信大家都有一定的了解,下面就为您详细介绍使用oracle命令行创建及删除用户的方法,希望对您能够有所帮助。

oracle命令行删除用户:

  1. connect / as sysdba;   
  2. shutdown abort;   
  3. startup;   
  4. drop user user1 cascade;   
  5. exit  

oracle命令行创建用户:

  1. create user user1   
  2. identified by values 'fa091872a2cc669c'   
  3. default tablespace user1   
  4. temporary tablespace temp   
  5. profile default   
  6. account unlock;   
  7. -- 4 roles for user1   
  8. grant recovery_catalog_owner to user1 with admin option;   
  9. grant resource to user1 with admin option;   
  10. grant dba to user1 with admin option;   
  11. grant connect to user1 with admin option;   
  12. alter user user1 default role all;   
  13. -- 3 system privileges for user1   
  14. grant select any dictionary to user1 with admin option;   
  15. grant unlimited tablespace to user1 with admin option;   
  16. grant alter any procedure to user1 with admin option;  

 

 

 

【编辑推荐】

查看Oracle表空间大小的方法

Oracle创建视图的语法

oracle创建表空间的语句写法

oracle重建索引的实现

利用with语句提高Oracle查询效率

责任编辑:段燃 来源: 互联网
相关推荐

2010-11-16 13:40:52

Oracle命令行

2011-04-08 15:22:56

Oracle导入导出命令

2010-11-19 10:26:19

Oracle创建用户

2009-10-26 18:09:31

Oracle用户解锁

2021-07-08 08:56:30

Linux命令删除用户

2010-10-14 09:52:35

MySQL命令行

2010-11-24 16:35:01

MYSQL命令行

2010-11-16 11:50:21

oracle命令行登录

2009-08-11 09:26:06

2010-10-29 10:33:55

ORACLE默认用户

2011-09-05 15:09:07

Ubuntuw3m

2017-04-12 13:29:08

Linux命令行工具

2017-03-27 14:40:01

Linux命令行工具技巧

2017-04-05 14:10:55

Linux命令行工具技巧

2011-08-30 16:14:38

命令行Oracle服务

2017-04-10 13:26:00

Linux命令技巧

2009-08-09 09:27:41

linux命令行浏览器linux打开浏览器命linux命令行

2017-06-15 10:32:56

OracleDBV命令行工具

2022-09-27 13:07:41

clickPython命令行

2009-09-22 14:17:05

点赞
收藏

51CTO技术栈公众号