You are on page 1of 1

CREATING A USER

SQL>CONNECT SYSTEM/MANAGER;
SQL>CREATE USER "USERNAME" IDENTIFIED BY "PASSWORD"
SQL>GRANT DBA TO "USERNAME"
SQL>CONNECT "USERNAME"/"PASSWORD";

EXAMPLE

CREATING A USER

SQL>CONNECT SYSTEM/MANAGER;
OUTPUT:-CONNECTED

SQL>CREATE USER CSE2 IDENTIFIED BY CSECSE;


OUTPUT:-USER CREATED

SQL>GRANT DBA TO CSE2;


OUTPUT:-GRANT SUCCEEDED

SQL>CONNECT CSE2/CSECSE;
OUTPUT:-CONNECTED

SQL>REVOKE DBA FROM CSE2;


OUTPUT:-REVOKE SUCCEEDED

SQL>CONNECT SYSTEM/MANAGER;
OUTPUT:-CONNECTED

SQL>DROP USER CSE2;


OUTPUT:-USER DROPPED