oracle建立資料表空間、使用者、和許可權配置,oracle建立

來源:互聯網
上載者:User

oracle建立資料表空間、使用者、和許可權配置,oracle建立

oracle資料庫和mysql、sqlserver不同,它是在同一個資料庫中可以定義多個資料表空間,不同資料表空間是相互獨立的,每個使用者都有預設的資料表空間,所以基本上不同的使用者操作的資料表都可以不同,當然如果要相同的話可以在定義資料表空間的時候設定好那個資料表空間就行。

建立資料表空間:

create tablespace (你的資料表空間名字如 pfm)datafile 'D:\oracle\product\10.2.0\oradata\orcl\pfm.dbf' size 100Mautoextend on next 32M maxsize 200M extent management local;
建立暫存資料表空間:

create temporary tablespace (你的資料表空間名字如 pfm)tempfile 'D:\oracle\product\10.2.0\oradata\orcl\pfm.dbf' size 100Mautoextend on next 32M maxsize 200M extent management local;

建立新使用者並定義預設資料表空間:

create user (你要定義的使用者名稱)identified by (你的密碼)default tablespace (你要定義的資料表空間) temporary tablespace (你的暫存資料表空間);

配置使用者權限:
grant connect,resource,dba to (使用者名稱);

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.