06 March 2025 17:26
Opening SQL PLUS:
• Press Windows + R. Displays RUN dialog box.
• type "sqlplus" command.
• Enter username: system
• Enter password: [at the time of oracle installation you have given password]
• Displays SQL command prompt.
Creating User:
Syntax:
CREATE USER <username>
INDEINTIFIED BY <password>
connect permission for login
resource permission for creating table
Unlimited permission for inserting
tablespace records
Example:
Login as DBA c##techbuzz Common user
CREATE USER c##batch730pm techbuzz Local user
IDENTIFIED BY techb;
Output:
User created.
GRANT connect, resource, unlimited tablespace
TO c##batch730pm;
Output:
Grant Succeeded.
Modifying Password:
Syntax:
ALTER USER <username> Dropping User: //delete the user
IDENTIFIED BY <new_password>;
Syntax:
NOTE:
give password in alphanumerics only Syntax:
DROP USER <user_name> CASCADE;
TechBuzz It Solutions Class Room Notes Page 1
NOTE:
give password in alphanumerics only Syntax:
DROP USER <user_name> CASCADE;
Example:
Login as DBA
Example:
ALTER USER c##batch11pm DROP USER c##batch730pm CASCADE;
IDENTIFIED BY tb;
clear the screen
we use
CL SCR //CLEAR SCREEN
Modifying DBA's Password:
username: sys as sysdba
password: [don't enter any password ]
ALTER USER system
IDENTIFED BY <new_password>;
TO see current username:
SQL> SHOW USER
To Login from SQL command prompt:
SQL> Conn <user_name>/<password>
Conn[ect]:
It is used to login from SQL command prompt
TechBuzz It Solutions Class Room Notes Page 2