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

站在用戶的角度思考問題,與客戶深入溝通,找到文成網(wǎng)站設(shè)計(jì)與文成網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個(gè)性化、用戶體驗(yàn)好的作品,建站類型包括:成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作、外貿(mào)營(yíng)銷網(wǎng)站建設(shè)、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、空間域名、虛擬空間、企業(yè)郵箱。業(yè)務(wù)覆蓋文成地區(qū)。
Oracle創(chuàng)建用戶實(shí)例:
首先,使用sys用戶登陸sqlplus,然后新建用戶名密碼均為test的用戶,表空間為users
后給test賦resource,connect,dba權(quán)限
Cmd代碼
- D:\>sqlplus /nolog
- SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 1月 26 13:34:09 2010
- Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
- SQL> conn / as sysdba;
- 已連接。
- SQL> create user test identified by test default tablespace users;
- 用戶已創(chuàng)建
- SQL> grant resource,connect,dba to test;
- 授權(quán)成功。
- SQL> commit;
- 提交完成。
- SQL>
- D:\>sqlplus /nolog
- SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 1月 26 13:34:09 2010
- Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
- SQL> conn / as sysdba;
- 已連接。
- SQL> create user test identified by test default tablespace users;
- 用戶已創(chuàng)建
- SQL> grant resource,connect,dba to test;
- 授權(quán)成功。
- SQL> commit;
- 提交完成。
- SQL>
刪除用戶實(shí)例:
刪除用戶后邊必須跟cascade,否則失敗
Sql代碼
- SQL> drop user test cascade;
- 用戶已丟棄
- SQL>
- SQL> drop user test cascade;
- 用戶已丟棄
- SQL>
網(wǎng)站欄目:Oracle創(chuàng)建用戶及刪除用戶的實(shí)例
分享鏈接:http://m.5511xx.com/article/cdpopsi.html


咨詢
建站咨詢
