Oracle and SQL Sub languages Flashcards

1
Q

T/F – Oracle has market dominance in Online Transaction Processing (OLTP)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • What is Oracles command line administration tool?
A

o Sqlplus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • T/F - sqlplus will prompt for a password
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name this: Web-based admin tool for managing remote DB instances like replication, storage, provides usage data in graphics

A

Oracle Enterprise Manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Name this: Recovery manager, manages full and incremental backups

A

Oracle RMAN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name the 4 SQL sub languages

A

DDL, DML, TCL, and DCL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Explain what DDL does

A

Create, Alter, Truncate – Create the structures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Explain DML

A

Insert, Update, Delete – Popular the structures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Explain TCL

A

Commit, Rollback – Version control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Explain DCL

A

Grant, Revoke – Set privileges, control who uses your DB and how

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Name the 4 oracle users that are automatically added to your system:

A

SYS, SYSTEM, SCOTT, HR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  • What is SYS in oracle?
A

o SYS is the top level admin user of any oracle DB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  • To login to SYS you must use the keyword ‘___ __ ______’ in the username field
A

o SYS AS SYSDBA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • What is SYSTEM in oracle DB?
A

o Another admin user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  • To create another user in oracle you must be logged in as ___
A

SYS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Name this: The right to execute an SQL statement, or right to access another users object

A

Object privilege

17
Q
  • There are 2 types of auto-divided privileges, what are they?
A

System privilege, Object privilege

18
Q
  • System privileges and object privileges differ by who they can be granted by, explain who can grant what:
A

o System privileges can only be granted by the DBA,
o Object privileges can be granted by the owner of the object or the DBA

19
Q
  • What is a role? How can they be determined/defined?
A

o A role is a group of privileges
o They can be built in (DBA, Connect, Resource) or they can be user defined

20
Q
  • How can you give someone almost all of the privileges a DB developer could require, without giving them access to SYS?
A

o Login as SYS, grant them connect and resource
o SQL> GRANT connect,resource TO Sarfraz

21
Q

System privileges allow

A

o System allows the creation of sessions, tables, views, and procedures in the DB

22
Q

Object allows

A

o Object allows someone to access another users objects, I.E. Insert, Update, Delete, Execute

23
Q

o T/F – You require object privileges for objects created by you

A

 False. As owner of the object you have all privileges for that object