Linux oracle資料庫建立資料表空間、使用者並賦予許可權

來源:互聯網
上載者:User

標籤:connect   toe   extend   pac   taf   tor   使用者登入   end   資料表空間   

管理使用者登入oracle資料庫

1、建立暫存資料表空間

select name from v$tempfile;查出當前資料庫暫存資料表空間,主要是使用裡面的存放路徑;

得到其中一條記錄/opt/oracle/oradata/orcl/temp01.dbf

建立暫存資料表空間:create temporary tablespace plncontrol_temp tempfile ‘/opt/oracle/oradata/orcl/plncontrol_temp.dbf‘ size 100m reuse autoextend on next 20m maxsize unlimited; 

2、建立資料表空間

select name from v$datafile;查詢出當前資料庫資料表空間,使用裡面的路徑

得到其中一條記錄/opt/oracle/oradata/orcl/system01.dbf

建立資料表空間:create tablespace plncontrol datafile ‘/opt/oracle/oradata/orcl/plncontrol.dbf‘ size 100M reuse autoextend on next 40M maxsize unlimited default storage(initial 128k next 128k minextents 2 maxextents unlimited);

3、建立使用者並指定資料表空間

create user plncontrol identified by plncontrol default tablespace plncontrol temporary tablespace plncontrol_temp;

4、賦予使用者權限

grant connect,resource,dba to plncontrol;

Linux oracle資料庫建立資料表空間、使用者並賦予許可權

聯繫我們

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