oracle建立使用者

來源:互聯網
上載者:User

標籤:

 1 --建立暫存資料表空間 2 create temporary tablespace pr_temp 3 tempfile ‘F:\app\data\tablespace\pr_temp.dbf‘ 4 size 50m 5 autoextend on next 50m maxsize 2048m 6 extent management local; 7 --建立資料資料表空間 8 create tablespace pr_data 9 logging10 datafile ‘F:\app\data\tablespace\pr_data.dbf‘11 size 50m12 autoextend on next 50m maxsize 2048m13 extent management local;14 --查看目前使用者的預設資料表空間15 select username,default_tablespace from user_users;16 --查看所有使用者資料表空間17 select username,default_tablespace,temporary_tablespace from dba_users where username=‘PRDB‘;18 --查看所有使用者19 select * from dba_users;20 select * from all_users;21 select * from user_users;22 --查看目前使用者的角色23 select * from user_role_privs;24 --查看目前使用者的系統許可權和表級許可權25 select * from  user_sys_privs;26 select * from user_tab_privs;27 --查看使用者下所有的表28 select * from user_tables;29 --刪除使用者30 drop user prorderdb cascade;31 drop tablespace pr_temp including contents and datafiles;32 drop tablespace pr_data including contents and datafiles;33 --建立使用者並制定資料表空間34 create user prorderdb identified by "123456"35 default tablespace pr_data36 temporary tablespace pr_temp;37 --給使用者授權38 grant connect,resource to prorderdb;

 

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.