创建用户test
SQL> create user test identified by test;
User created.
指定 profile
SQL> alter user test profile wangjia;
User altered.
查看 test 的 profile
SQL> select PROFILE from dba_users where username='TEST';
PROFILE
------------------------------
WANGFJIA
测试删除,删除失败
SQL> drop profile wangjia;
drop profile wangjia
*
ERROR at line 1:
ORA-02382: profile wangjia has users assigned, cannot drop without CASCADE
修改为默认的 profile
SQL> alter user test profile default;
User altered.
测试删除,删除成功
SQL> drop profile wangjia;
Profile dropped.