oracle 建立使用者練習

2021-06-04 11:10:38 字數 1957 閱讀 2402

-- create the user 

create user ygwstu

default tablespace ygwstu

temporary tablespace temp

profile default

password expire;

-- grant/revoke object privileges

grant select on ygwcrm.c_sale_contract to ygwstu;

grant select on ygwcrm.c_sale_curriculm to ygwstu;

grant select on ygwcrm.c_sale_customerinfo to ygwstu;

grant select on ygwcrm.ps_dic_category to ygwstu;

grant select on ygwcrm.ps_dic_info to ygwstu;

grant select on ygwoa.bin$5nlyupb2tbc4ozbssf8rww==$0 to ygwstu;

grant select on ygwoa.bin$bonsclf9t2gaywmmvmafsg==$0 to ygwstu;

grant select on ygwoa.bin$hijynpe7sjs1vtlwuy0riw==$0 to ygwstu;

grant select on ygwoa.bin$qq9lne8ys1qyxhqtj5h56q==$0 to ygwstu;

grant select on ygwoa.bin$cuwr6tmrtuklnaeuknq9ya==$0 to ygwstu;

grant select on ygwoa.bin$f3kadm8hrog+uajzl7pcta==$0 to ygwstu;

grant select on ygwoa.bin$jiaolibdtbmc+yq+wuwzja==$0 to ygwstu;

grant select, update on ygwoa."bin$zedydf4ntcymmkny7lv/0a==$0" to ygwstu;

grant select on ygwoa.oa_pm_employee to ygwstu;

grant select on ygwoa.ps_attachment to ygwstu;

grant select on ygwoa.ps_dic_category to ygwstu;

grant select on ygwoa.ps_dic_info to ygwstu;

grant select on ygwoa.ps_group to ygwstu;

grant select on ygwoa.ps_position to ygwstu;

grant select on ygwoa.ps_position_config to ygwstu;

grant select, update on ygwoa.ps_user to ygwstu;

grant select on ygwoa.ps_user_group to ygwstu;

grant select on ygwoa.ps_user_position to ygwstu;

grant select on ygwoa.ps_view_dept_position to ygwstu;

-- grant/revoke role privileges

grant connect to ygwstu;

grant dba to ygwstu;

grant resource to ygwstu;

-- grant/revoke system privileges

grant create view to ygwstu;

grant unlimited tablespace to ygwstu;

Oracle 使用者建立

執行 cmd 進入 dos視窗 c sqlplus sys password as sysdba 使用sys使用者登入 sql create user username identified by password 建立使用者名稱和密碼 sql create tablespace ts userna...

Oracle建立使用者

當你建立使用者時,應該定義它的表空間 default tablespace 否則,它會使用系統表空間 system tablespace 這是應該避免的。這是常用的建立使用者的乙個例子 create user xx identified by xx profile default default t...

oracle 建立使用者

oracle10g建立使用者 oracle10g 的建立使用者名稱 1 linux 下oracle 的啟動以 oracle 身份登入 啟動lsnrctl start 登入sqplus nolog 連線資料庫 connect assysdba 啟動資料庫 startup 關閉資料庫 shutdown ...