oracle表空間啟動數(shù)據(jù)庫命令

    時間:2024-05-07 06:56:54 Oracle認證 我要投稿
    • 相關推薦

    oracle表空間啟動數(shù)據(jù)庫命令

      為了方便大家學習,下面yjbys小編為大家準備了關于oracle表空間啟動數(shù)據(jù)庫命令的方法,歡迎閱讀。

      啟動數(shù)據(jù)庫命令分為三個階段:

      startup nomount

      alter database mount

      alter database open

      本用戶讀取其他用戶對象的權限:

      select * from user_tab_PRivs;

      本用戶所擁有的系統(tǒng)權限:

      select * from user_sys_privs;

      ———————————————————

      Oracle中數(shù)據(jù)字典視圖分為3大類, 用前綴區(qū)別,分別為:USER,ALL 和 DBA,許多數(shù)據(jù)字典視圖包含相似的信息。

      USER_*:有關用戶所擁有的對象信息,即用戶自己創(chuàng)建的對象信息

      ALL_*:有關用戶可以訪問的對象的信息,即用戶自己創(chuàng)建的對象的信息加上其他用戶創(chuàng)建的對象但該用戶有權訪問的信息

      DBA_*:有關整個數(shù)據(jù)庫中對象的信息

      ———————————————

      Oracle 10i

      ALTER DATABASE DEFAULT TABLESPACE 修改數(shù)據(jù)庫的默認表空間

      ———————————–

      set echo off;

      spool 產(chǎn)生腳本文件的路徑

      select ‘grant select,insert,delete,update on ’|| table_name||‘ to 用戶名;’ from user_tables;

      spool off;

      select ‘revoke select,insert,update,delete on ’||table_name||‘ from 用戶名;’ from user_tables;

      revoke select,insert,delete,update any table from 用戶名 with grant option;

      ————–

      grant select,insert,delete,insert,update any table to 用戶名 with grant option ;

      修改表 所屬的表空間

      alter table 表名 move tablespace 表空間名

      注意:在此操作之后,一定要把表上的索引重建, alter index index-name rebuild

      ——————-

      創(chuàng)建表空間語句:

      create tablespace tableName datafile ‘e:oracle/dbName.dbf’ size 1024M autoextend on next 100M maxsize unlimited;

    【oracle表空間啟動數(shù)據(jù)庫命令】相關文章:

    Oracle數(shù)據(jù)庫臨時表管理技巧06-15

    ORACLE與excel的數(shù)據(jù)互傳方法07-14

    Oracle認證:Oracle避免全表掃描方式10-04

    Oracle數(shù)據(jù)庫語句大全10-08

    ORACLE數(shù)據(jù)字典的有效利用08-24

    ORACLE數(shù)據(jù)庫碎片的整理08-18

    oracle數(shù)據(jù)庫基本語句08-21

    Oracle數(shù)據(jù)庫認證層次08-29

    Oracle數(shù)據(jù)庫的基本介紹09-04

    Oracle數(shù)據(jù)庫SQLPLUS介紹10-09

    91久久大香伊蕉在人线_国产综合色产在线观看_欧美亚洲人成网站在线观看_亚洲第一无码精品立川理惠

      亚洲美女午夜在线 | 亚洲男女在线观看视频 | 亚洲综合乱码在线 | 在线观看亚洲精品国产福利片 | 五月天网站在线观看 | 亚洲欧美日韩另类久久 |