一、用户管理
1、创建用户的sql命令:
create user "NO_SYSTEM_V5" identified by "NO_SYSTEM_V5" limit failed_login_attemps 10, password_lock_time 10, password_grace_time 10 default tablespace "MAIN";
2、用户授权sql操作
grant "SOI" to "NO_SYSTEM_V5";
grant "DBA","PUBLIC","RESOURCE" to "NO_SYSTEM_V5";
3、给用户授予资源的权限
grant ALTER DATABASE,RESTORE DATABASE,CREATE USER,ALTER USER,DROP USER,CREATE ROLE,CREATE SCHEMA,CREATE TABLE,CREATE VIEW,CREATE PROCEDURE,CREATE SEQUENCE,CREATE TRIGGER,CREATE INDEX,CREATE CONTEXT INDEX,BACKUP DATABASE,CREATE LINK,CREATE REPLICATE,CREATE PACKAGE,CREATE SYNONYM,CREATE PUBLIC SYNONYM,ALTER REPLICATE,DROP REPLICATE,DROP ROLE,ADMIN ANY ROLE,ADMIN ANY DATABASE PRIVILEGE,GRANT ANY OBJECT PRIVILEGE to "NO_SYSTEM_V5";
4、给用户移除赋予的权限
revoke DBA from NO_SYSTEM_V5;
5、删除用户的操作
drop user NO_SYSTEM_V5;
drop user NO_SYSTEM_V5 cascade; //(删除用户带级联操作)
6、修改用户密码的操作
alter user NO_SYSTEM_V5 identified by "NO_SYSTEM_V55";
7、锁定用户操作
alter user NO_SYSTEM_V5 account lock;
8、解锁用户操作命令
alter user NO_SYSTEM_V5 account unlock;