使用oracle命令行創(chuàng)建及刪除用戶的方法
作者:佚名
oracle命令行可以實現(xiàn)很多我們需要的功能,下文就為您介紹如何使用oracle命令行創(chuàng)建及刪除用戶,如果您感興趣的話,不妨一看。
oracle命令行相信大家都有一定的了解,下面就為您詳細介紹使用oracle命令行創(chuàng)建及刪除用戶的方法,希望對您能夠有所幫助。
oracle命令行刪除用戶:
- connect / as sysdba;
- shutdown abort;
- startup;
- drop user user1 cascade;
- exit
oracle命令行創(chuàng)建用戶:
- create user user1
- identified by values 'fa091872a2cc669c'
- default tablespace user1
- temporary tablespace temp
- profile default
- account unlock;
- -- 4 roles for user1
- grant recovery_catalog_owner to user1 with admin option;
- grant resource to user1 with admin option;
- grant dba to user1 with admin option;
- grant connect to user1 with admin option;
- alter user user1 default role all;
- -- 3 system privileges for user1
- grant select any dictionary to user1 with admin option;
- grant unlimited tablespace to user1 with admin option;
- grant alter any procedure to user1 with admin option;
【編輯推薦】
責(zé)任編輯:段燃
來源:
互聯(lián)網(wǎng)