資料庫建立資料表空間、暫存資料表空、使用者、授權

來源:互聯網
上載者:User

標籤:style   dbf檔案   空間   datafile   next   resource   ace   auto   create   

備忘:oracle版本Oracle Database 11g Enterprise Edition Release 11.2.0.1.0

說明:建立暫存資料表空間注意關鍵字和建立資料表空間有所差別,語句類似

關於建立語句解說請查看:http://blog.chinaunix.net/uid-20802110-id-2105656.html

所列語句都是經過測試實戰!

1.建立表資料空間

說明:該版本資料庫建立資料表空間執行logging時報錯,不執行logging,預設也是logging

  create tablespace cimp_space
  datafile ‘d:\app\plm\oradata\orcl\cimp_space.dbf‘
  size 50m
  autoextend on
  next 50m maxsize 20480m
  extent management local;

2.建立暫存資料表空間

說明:臨時檔案(.dbf檔案)放置的位置隨意,一般放置在oracle安裝目錄中的oradata檔案夾

  create temporary tablespace data_temp 
  tempfile ‘D:\oracle\oradata\Oracle9i\user_temp.dbf‘ 
  size 50m 
  autoextend on 
  next 50m maxsize 20480m 
  extent management local; 

3.建立使用者以及設定資料表空間

  create user cimp
  identified by hp242g2
  default tablespace cimp_space
  temporary tablespace cimp_temp;

4.授權

  grant connect,resource,dba to cimp;

 

資料庫建立資料表空間、暫存資料表空、使用者、授權

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.