内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

oracle創(chuàng)建用戶及授權(quán)創(chuàng)建表

--================================

創(chuàng)新互聯(lián)專注于蓬江網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗。 熱誠為您提供蓬江營銷型網(wǎng)站建設(shè),蓬江網(wǎng)站制作、蓬江網(wǎng)頁設(shè)計、蓬江網(wǎng)站官網(wǎng)定制、小程序制作服務(wù),打造蓬江網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供蓬江網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。

--Oracle 用戶、對象權(quán)限、系統(tǒng)權(quán)限

--================================

  1. 建立表空間和用戶的步驟:

  2. 用戶

  建立:create user 用戶名 identified by "密碼";

  授權(quán):grant create session to 用戶名;

  grant create table to  用戶名;

  grant create tablespace to  用戶名;

  grant create view to  用戶名;

grant resource to
grant connect,resource,dba to 用戶;
select * from user_sys_privs;查詢當(dāng)前用戶權(quán)限
grant connect,resource,dba to 用戶;給dba權(quán)限
grant connect,resource to 用戶;
grant unlimited tablespace to 用戶;
grant create database link to 用戶;
grant select any sequence,create materialized view to 用戶;
grant unlimited tablespace to 用戶;//授予不限制的表空間
grant select any table to 用戶;//授予查詢?nèi)魏伪?br />grant是關(guān)鍵字,select any table是權(quán)限,to后面是用戶賬號

[sql] view plain copy

  1. 表空間

  2. 建立表空間(一般建N個存數(shù)據(jù)的表空間和一個索引空間):

  3. create tablespace 表空間名

  4. datafile ' 路徑(要先建好路徑)\***.dbf  ' size *M

  5. tempfile ' 路徑\***.dbf ' size *M

  6. autoextend on  --自動增長

  7. --還有一些定義大小的命令,看需要

  8.  default storage(

  9.  initial 100K,

  10.  next 100k,

  11. );

[sql] view plain copy

  1. 例子:創(chuàng)建表空間

  2. create tablespace DEMOSPACE

  3. datafile 'E:/oracle_tablespaces/DEMOSPACE_TBSPACE.dbf'

  4. size 1500M

  5. autoextend on next 5M maxsize 3000M;

  6. 刪除表空間

  7. drop tablespace DEMOSPACE including contents and datafiles

 


[sql] view plain copy

  1. 用戶權(quán)限

  2. 授予用戶使用表空間的權(quán)限:

  3. alter user 用戶名 quota unlimited on 表空間;

  4. 或 alter user 用戶名 quota *M on 表空間;

完整例子:

[sql] view plain copy

  1. --表空間

  2. CREATE TABLESPACE sdt

  3. DATAFILE 'F:\tablespace\demo' size 800M

  4.          EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

  5. --索引表空間

  6. CREATE TABLESPACE sdt_Index

  7. DATAFILE 'F:\tablespace\demo' size 512M

  8.          EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

  9. --2.建用戶

  10. create user demo identified by demo

  11. default tablespace demo;

  12. --3.賦權(quán)

  13. grant connect,resource to demo;

  14. grant create any sequence to demo;

  15. grant create any table to demo;

  16. grant delete any table to demo;

  17. grant insert any table to demo;

  18. grant select any table to demo;

  19. grant unlimited tablespace to demo;

  20. grant execute any procedure to demo;

  21. grant update any table to demo;

  22. grant create any view to demo;

[sql] view plain copy

  1. --導(dǎo)入導(dǎo)出命令   

  2. ip導(dǎo)出方式: exp demo/demo@127.0.0.1:1521/orcl file=f:/f.dmp full=y

  3. exp demo/demo@orcl file=f:/f.dmp full=y

  4. imp demo/demo@orcl file=f:/f.dmp full=y ignore=y

    大臉貓運維博客更多姿勢www.itlinux.cn

網(wǎng)站標(biāo)題:oracle創(chuàng)建用戶及授權(quán)創(chuàng)建表
網(wǎng)址分享:http://www.rwnh.cn/article32/jcgppc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計企業(yè)網(wǎng)站制作、全網(wǎng)營銷推廣、云服務(wù)器建站公司、網(wǎng)站內(nèi)鏈

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

微信小程序開發(fā)
汉寿县| 岗巴县| 吉安市| 通许县| 孝义市| 平南县| 临清市| 中牟县| 娄烦县| 涿鹿县| 清河县| 通海县| 南阳市| 水城县| 朔州市| 隆化县| 建德市| 图片| 驻马店市| 祥云县| 白银市| 武宣县| 伊金霍洛旗| 巴中市| 西安市| 平利县| 尼勒克县| 科技| 光山县| 通许县| 泰兴市| 公主岭市| 荣昌县| 南丹县| 天祝| 永泰县| 壤塘县| 潞西市| 筠连县| 津南区| 陆河县|