Midterm Review Flashcards

1
Q

Name 4 default tablespaces created with Oracle.

A
  1. User
    * stores all user table data
    * administrator set up
    * many user tablespaces (each have a different name)
  2. System SYSAUX
    * stores the data dictionary for the entire database
    * the database schema, user names, passwords, user schemas …
  3. Undo (Rollback)
    * stores any data as it was prior to a transaction start
  4. Temporary
    * stores and sorts data when creating indexes, performing calculations, joining tables …
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the “physical” components of Oracle?

A

Physical (the disk files):
 Datafiles: the schema & the data
 Redo log files: the files with copy of all committed + uncommitted transactions
 Control files: the oracle configuration files (so software starts up correctly)
 Software files: the oracle programs

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

When is a redo entry is written to the redo file?

A

When a commit occurs.

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

What does RAID stand for?

A

Redundant Array of Inexpensive Devices

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

Describe a “transaction”.

A

“A transaction is a logical unit of work that contains one or more SQL statements”

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

Describe a “ Oracle Instance”.

A

“…the set of Oracle Database background processes that operate on the stored data and the shared allocated memory that those processes use to do their work.”

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

What are 3 components of the SGA (System Global Area)?

A
  1. Database Buffer Cache
  2. Shared Pool: - Library and Data Dictionary Cache
  3. Redo Log Buffer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What might a user schema contain?

A

 Tables
 Views
 Indexes
 Stored procedures

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

What are some of the more commonly used data types within Oracle?

A
  • Char
  • Varchar2
  • Number
  • Date
  • Long char
  • Raw or longraw
  • Blob
  • ROWID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are 4 role types within Oracle?

A
  1. DBA
  2. CONNECT
  3. RESOURCE
  4. EXP_FULL_DATABASE, IMP_FULL_DATABASE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

SQL as a language can be catagorized into 4 language structures. What are these?

A
  1. Data Definition Language (DDL) statements are used to define the database structure or schema.
    Example CREATE, DROP
  2. Data Manipulation Language (DML) statements are used for managing data within schema objects.
    Some examples: SELECT,UPDATE, INSERT, DELETE
  3. Data Control Language (DCL) statements.
    Example: GRANT,REVOKE
  4. **Transaction Control Language (TCL) **– statements to control transactions
    e.g. COMMIT, ROLLBACK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does MDSYS stand for?

A

Multi-dimensional Data SYStem

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

What are 5 elements of MDSYS.SDO_GEOMETRY?

A
  1. SDO_GTYPE - Number, indicates point, line, polygon
  2. SDO_SRID - Number, reference to coordinate system or Null
  3. SDO_POINT_TYPE - Only for points, coordinate pair, or Null
  4. SDO_ELEM_INFO - Define how coordinates are listed. Contains Ordinate offset, Element type & Interpretation, or Null for points
  5. SDO_ORDINATE - The list of coordinates, or Null for points
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In order to create spatial data in Oracle five steps are taken.

A
  1. Create a table with a column of type MDSYS.SDO_GEOMETRY
  2. Load data to the table
  3. Register the table with the database
  4. Validate the geometry
  5. Index the data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe the following geometry.
ETYPE: 1
INTERP: 1

A

A single point.

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

Describe the following geometry.
ETYPE: 1003
INTERP: 2

A

An exterior or stand alone polygon as 3 point arcs segments that are connected and closed.

17
Q

Describe the following geometry.
ETYPE: 1003
INTERP: 4

A

An exterior or stand alone polygon based on an optimized 3 point arc segments that close to form a perfect circle.

18
Q

Describe the following geometry.
ETYPE: 2
INTERP: 2

A

A line as one or more 3 point arcs.

19
Q

Describe the following geometry.
ETYPE: 2003
INTERP: 3

A

An interior polygon based on an optimized rectangle that uses only two vertices.

20
Q

What is the difference between a Discard File and a Bad File (SQL Loader)?

A

Bad File: Does not match the control file specs.
Discard File: Does not match the control file “when” conditions.