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

Contd of Lesson 3 and Activities

Uploaded by

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

Contd of Lesson 3 and Activities

Uploaded by

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

Exploring the SQL PLUS

Prepared by: Annalyn Pelonio – Gelicame, LPT


Introduction

Tablespace Datafiles
collectively store all conforms to the OS of
the data of the your computer where
Oracle database Oracle is running
CREATING USERNAME AND PASSWORD
2 ways to Allocate space to a user

a. Allocate space after creating the


user
SQL Command:
ALTER USER USERNAME
DEFAULT TABLESPACE
TABLESPACE_NAME
QUOTA [NUMBER M/G] / UNLIMITED
ON TABLESPACE_NAME;
2 ways to Allocate space to a user

b. Allocate space at the time of creating


the user
SQL Command:
CREATE USER USERNAME
IDENTIFIED BY PASSWORD
DEFAULT TABLESPACE TABLESPACE_NAME
QUOTA [NUMBER M/G] / UNLIMITED
ON TABLESPACE_NAME;
REMEMBER:

1. Do not allocate space in the SYSTEM or SYSAUX tablespace for


any user because they are used for system generated objects
such as Dictionary.
To run a sql save file
First: Give Privileges to each database user
Second: Give Role to each users

• Role is a set of privileges are


packed together for the ease of
User Administration.
• CREATE SESSION being the
minimum Privilege that every user
will always need to start in the
Oracle Database.
SYSTEM DEFINED ROLES & USE DEFINED ROLES
USING DROP
USE TO CLEAR THE SCREEN
2 WAYS IN CHANGING THE PROMPT NAME

a. Using the sql plus


2 WAYS IN CHANGING THE PROMPT NAME

a. Using the File GLOGIN.SQL


TASK: GRANT AND REVOKE

1.CREATE AT LEAST 3 USERS


2. IT MUST HAVE THE SHOWN THE GRANT AND
REVOKE STATEMENT IN EACH USERS ACCESS
3. MUST HAVE ESTABLISH ROLE
4. EXPLAIN AFTER THE ACTIVITY
ASSIGNMENT: Execute the given below, put your
code in a notepad and send it in the google drive
•Document yourself through screen recording or
any means that it is you who do the assignment
below using SQL Plus.
•Note: If no device at home, you can use the
computer laboratory in any of your laboratory
time but not my subject because it is your
assignment
•Link:
https://www.youtube.com/watch?v=ey2PNZIQvX
s
•During checking of your activity, please show me
the taken video as a proof that it is you who do the
assignment

You might also like