0% found this document useful (0 votes)
7 views2 pages

Opening SQL PLUS

The document provides instructions for opening SQL Plus, creating and modifying users, and managing passwords in an Oracle database. It includes syntax for creating users, granting permissions, altering passwords, and dropping users. Additionally, it outlines how to clear the screen and check the current username in SQL Plus.

Uploaded by

techbuzzitsol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Opening SQL PLUS

The document provides instructions for opening SQL Plus, creating and modifying users, and managing passwords in an Oracle database. It includes syntax for creating users, granting permissions, altering passwords, and dropping users. Additionally, it outlines how to clear the screen and check the current username in SQL Plus.

Uploaded by

techbuzzitsol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like