自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle創(chuàng)建用戶及刪除用戶的實例

數(shù)據(jù)庫 Oracle
Oracle數(shù)據(jù)庫中經(jīng)常會用到創(chuàng)建用戶操作,下文對Oracle創(chuàng)建刪除用戶實例及用戶權(quán)限分配作了詳細的描述,供您參考學習之用。

Oracle創(chuàng)建用戶及刪除用戶都是我們經(jīng)常會用到的,下面就以實例的形式為您介紹Oracle創(chuàng)建用戶及刪除用戶的實現(xiàn)過程,希望對您能有所幫助。

Oracle創(chuàng)建用戶實例:

首先,使用sys用戶登陸sqlplus,然后新建用戶名密碼均為test的用戶,表空間為users

后給test賦resource,connect,dba權(quán)限

Cmd代碼

  1. D:\>sqlplus /nolog    
  2.      
  3. SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 1月 26 13:34:09 2010    
  4.     
  5. Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.    
  6.     
  7. SQL> conn / as sysdba;    
  8. 已連接。    
  9. SQL> create user test identified by test default tablespace users;    
  10.     
  11. 用戶已創(chuàng)建    
  12.     
  13. SQL> grant resource,connect,dba to test;    
  14.     
  15. 授權(quán)成功。    
  16.     
  17. SQL> commit;    
  18.     
  19. 提交完成。    
  20.     
  21. SQL>    
  22.  
  23. D:\>sqlplus /nolog  
  24.  
  25. SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 1月 26 13:34:09 2010  
  26.  
  27. Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.  
  28.  
  29. SQL> conn / as sysdba;  
  30. 已連接。  
  31. SQL> create user test identified by test default tablespace users;  
  32.  
  33. 用戶已創(chuàng)建  
  34.  
  35. SQL> grant resource,connect,dba to test;  
  36.  
  37. 授權(quán)成功。  
  38.  
  39. SQL> commit;  
  40.  
  41. 提交完成。  
  42.  
  43. SQL> 
  44.  

刪除用戶實例:

刪除用戶后邊必須跟cascade,否則失敗  

Sql代碼

  1. SQL> drop user test cascade;    
  2.     
  3. 用戶已丟棄    
  4.     
  5. SQL>    
  6.  
  7. SQL> drop user test cascade;   
  8.  
  9. 用戶已丟棄   
  10.  
  11. SQL>   
  12.  

 

 

 

【編輯推薦】

oracle時間加減的語句寫法

Oracle死鎖的處理

Oracle分頁查詢語句的寫法

Oracle條件分支語句示例

詳解oracle授權(quán)語句

責任編輯:段燃 來源: 互聯(lián)網(wǎng)
相關(guān)推薦

2010-11-16 11:46:03

oracle命令行

2009-10-27 17:39:39

Oracle用戶權(quán)限

2010-04-15 14:30:35

Oracle創(chuàng)建

2010-10-29 10:33:55

ORACLE默認用戶

2010-06-02 15:07:22

MySQL 用戶

2010-11-16 16:16:42

Oracle創(chuàng)建用戶

2010-11-29 15:39:28

2020-09-16 23:04:32

Linux創(chuàng)建用戶主adduser

2010-10-29 09:36:18

ORACLE用戶

2010-03-31 15:38:33

Oracle用戶

2010-01-14 15:06:27

CentOS用戶

2015-07-23 17:02:55

oracle創(chuàng)建數(shù)據(jù)庫

2010-05-07 12:19:38

Oracle刪除用戶表

2009-10-27 18:01:46

2010-10-29 11:55:48

oracle用戶

2009-11-02 15:15:43

Oracle授予用戶權(quán)

2010-11-19 09:48:48

ORACLE創(chuàng)建實例

2009-11-04 10:50:48

Oracle創(chuàng)建用戶授

2011-03-03 09:42:13

PureFTPd

2009-11-02 14:53:30

Oracle創(chuàng)建用戶權(quán)
點贊
收藏

51CTO技術(shù)棧公眾號