linux怎么切换为oracle用户权限,linux肿么给oracle中用户权限
--//給用戶授予權限
grant connect,resource to test;
--//刪除表空間
drop tablespace test_temp including CONTENTS and datafiles;
--//修改用戶密碼
alter user test identified by new_password;
--//刪除用戶
drop user 用戶名 cascade; --//執行該語句請小心,會級聯刪除該用戶下所有對象。
--//給用戶分配權限
SQL> grant connect to test_user;
SQL> grant resource to test_user;
SQL> grant create view to test_user;
SQL> GRANT DEBUG CONNECT SESSION TO test_user;
SQL> GRANT DEBUG ANY PROCEDURE TO test_user;
實例如下:
數據庫用戶的創建、權限的分配
數據庫安裝完成后,有兩個系統級的用戶:
1、system 默認密碼為:manager
2、sys 默認密碼為:change_on_install
在安裝的數據庫目錄中找到\oracle\product\9.2\bin 中的sqlplus程序,運行:./sqlplussystem/manager@ora9i
用system用戶創建自己的用戶、權限;sql語句如下:
1、創建用戶:
create user username identified by pwd default tablespace users Temporary TABLESPACE Temp;
2、用戶授權
grant connect,resource,dba to business;
3、提交
commit;
取消
評論
總結
以上是生活随笔為你收集整理的linux怎么切换为oracle用户权限,linux肿么给oracle中用户权限的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: em oracle 安装,oracle-
- 下一篇: if判断用户名 linux,linux