用默认用户名密码system/manager登录:
CREATE USER username
IDENTIFIED BY password;
GRANT CONNECT TO username;
GRANT RESOURCE TO username;
GRANT CREATE SESSION TO username;
GRANT CREATE ANY INDEX TO username;
GRANT CREATE ANY VIEW TO username;
GRANT SELECT ANY TABLE TO username;
GRANT UPDATE ANY TABLE TO username;
GRANT DELETE ANY TABLE TO username;
--授权DBA权限给用户
GRANT DBA TO username;
--修改用户密码:
ALTER USER username IDENTIFIED BY newpassword;
--删除用户
DROP USER username CASCADE;
CREATE USER username
IDENTIFIED BY password;
GRANT CONNECT TO username;
GRANT RESOURCE TO username;
GRANT CREATE SESSION TO username;
GRANT CREATE ANY INDEX TO username;
GRANT CREATE ANY VIEW TO username;
GRANT SELECT ANY TABLE TO username;
GRANT UPDATE ANY TABLE TO username;
GRANT DELETE ANY TABLE TO username;
--授权DBA权限给用户
GRANT DBA TO username;
--修改用户密码:
ALTER USER username IDENTIFIED BY newpassword;
--删除用户
DROP USER username CASCADE;