---登录服务器删除用户----
sqlplus sys/oracle as sysdba
drop user 用户名 CASCADE;
---创建用户:
-- Create the user
create user 用户名 identified by 密码;
赋权DBA权限给用户
GRANT DBA TO 用户名;
赋权给用户
grant create any table to 用户名;
grant select any table to 用户名;
grant unlimited tablespace to 用户名;
GRANT EXECUTE ANY PROCEDURE TO 用户名;
grant resource,connect to 用户名;
grant create session to 用户名;
grant create table to 用户名;
grant create view to 用户名;
grat create trigger to 用户名;
grant create procedure to 用户名;
grant create sequence to 用户名;
grant alter any table to 用户名;
grant alter any trigger to 用户名;
grant alter any procedure to 用户名;
grant alter any sequence to 用户名;
|