Oracle and SQL Sub languages Flashcards
T/F – Oracle has market dominance in Online Transaction Processing (OLTP)
True
- What is Oracles command line administration tool?
o Sqlplus
- T/F - sqlplus will prompt for a password
True
Name this: Web-based admin tool for managing remote DB instances like replication, storage, provides usage data in graphics
Oracle Enterprise Manager
Name this: Recovery manager, manages full and incremental backups
Oracle RMAN
Name the 4 SQL sub languages
DDL, DML, TCL, and DCL
Explain what DDL does
Create, Alter, Truncate – Create the structures
Explain DML
Insert, Update, Delete – Popular the structures
Explain TCL
Commit, Rollback – Version control
Explain DCL
Grant, Revoke – Set privileges, control who uses your DB and how
Name the 4 oracle users that are automatically added to your system:
SYS, SYSTEM, SCOTT, HR
- What is SYS in oracle?
o SYS is the top level admin user of any oracle DB
- To login to SYS you must use the keyword ‘___ __ ______’ in the username field
o SYS AS SYSDBA
- What is SYSTEM in oracle DB?
o Another admin user
- To create another user in oracle you must be logged in as ___
SYS
Name this: The right to execute an SQL statement, or right to access another users object
Object privilege
- There are 2 types of auto-divided privileges, what are they?
System privilege, Object privilege
- System privileges and object privileges differ by who they can be granted by, explain who can grant what:
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
- What is a role? How can they be determined/defined?
o A role is a group of privileges
o They can be built in (DBA, Connect, Resource) or they can be user defined
- How can you give someone almost all of the privileges a DB developer could require, without giving them access to SYS?
o Login as SYS, grant them connect and resource
o SQL> GRANT connect,resource TO Sarfraz
System privileges allow
o System allows the creation of sessions, tables, views, and procedures in the DB
Object allows
o Object allows someone to access another users objects, I.E. Insert, Update, Delete, Execute
o T/F – You require object privileges for objects created by you
False. As owner of the object you have all privileges for that object