Day 2
Day 2
SQL*PLUS:-
**********
SQL * PLUS is a default client tool and acts as an interface between client user
and database.
request processed on
Developer----------> SQL * PLUS----------------> DB
Query |
output |
<------------------------V
LOG ON PROCEDURE:
START
|
V
Programs
|
V
select Oracle Folder
|
V
application development
|
V
Select SQL PLUS
sql>
Note:
SHOW USER;
system
4) show con_name;
PDBORCL
Ex:
CREATE USER DINESH IDENTIFIED BY WELCOME
QUOTA 100M ON USERS;
user created.
grant succeeded.
-----------------------------------------------------------------------------------
CREATING USER ACCOUNT UNDER Oracle 11g
***************************************
Open sql * plus
1) connect as DBA?
username: system
password: manager
4) connect as dinesh?
a) connect as DBA
b) DROP USER DINESH cascade;
-----------------------------------------------------------------------------------
-------
SQL COMMANDS
------------
SQL is divided into 5 types of Sub Languages based on nature of commands.
Sub Languages
-------------
DDL
DML
DCL
TCL
DQL/DRL
Used to enter new data/ changing old data / deleting the data
from table.
GRANT REVOKE
-----------------------------------------------------------------------------------
-----Questions:
What is multitenancy?
What is a pluggable database?
Advantages of oracle 12c
What are the types of RDBMS?