Chapter 9 Create a Database Flashcards

1
Q
  1. Evaluating Database server hardware
  2. Installing Oracle
  3. Planning DB and Security Strategy
  4. Creating, migrating, opening DB
  5. Backing up DB
  6. Enrolling system users and planning Oracle Network
  7. Implement DB design
  8. Recovering DB failure
  9. Monitoring DB performance
A

Designing, implementing, maintaining Oracle DB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
Logical storage structure of DB and its physical implementation:
How many:
Disk Drives?
Type of storage?
Tablespaces
A

DB Planning

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

- DB backup strategy

A

DB Planning cont.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
Data warehouse:
- research & marketing data
Transaction processing:
- Store checkout register system
General purpose:
- Retail billing system
A

Types of DB

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

NetCA - Listener

Steps

A
Configure Listener
Add
Name
Select protocol
Port number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

DBCA - Create DB

A

Create
Select Template - General purpose
Assign ID - listener must be configured
Set Access Control - set admin pw

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

SYS user owns all base tables and user-accessible view of

A

Administrative Users

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

user is used to create additional tables and views that display admin info

A

SYSTEM

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

user represents Enterprise Manager super admin account

A

SYSMAN

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

user is used by EM to monitor DB; used to access performance stats about DB

A

DBSNMP

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

SYSOPER are admin privileges to perform high-level admin operations (creating, starting up, shutting down, backing up, recover DB)

A

Super roles (access DB instance - non open mode)

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

can do SYSOPER plus can look at user data

Control of these privileges is therefore completely outside DB

A

SYSDBA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
startup DB
shutdown
backup 
recover
create
A

5 operations only performed by SYSDBA

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

DBCA Create DB - File System

A

Select File System
Use DB file location from template
Specify flash recovery area
Sample Schemas

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

oracle_home=/u01/app/oracle/product/11.2.0/db_1
oracle_home/dbs/spfilemydb.ora
/u01/app/oracle/oradata/admin/mydb/pfile/init.ora
/u01/app/oracle/oradata/mydb/.. (ctl, redologs, dbf ..)
/u01/app/oracle/flash_recovery_area/mydb/control02.ctl
/u01/app/oracle/cfgtoollogs/dbca/mydb/trace.log

A

Files Locations

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

DBCA - Create DB - Memory

A
Typical
Custom
Memory Management
SGA
PGA Size
17
Q

DBCA - Create DB - Maintenance Settings

A

Enable automatic maintenance tasks

Keep enhanced 11g default security settings

18
Q

Create DB - Create Options

A

Datafiles
Create DB
Save DB template
PW management

19
Q

DBCA - Create Templates

A

Create DB template
From an existing DB
DBA role

20
Q

DBCA - Delete DB

A

Select DB = hist
Finish
Yes

21
Q

DBCA - Other Available Tasks

A

Select operation:
Configure DB options
Configure Automatic Storage Management

22
Q

Shutdown -> Nomount - Instance started, parameter file read, background process initiated; Mount - Control file opened for this instance Open All files opened as described by control file Startup

A

Starting up Oracle DB Instance

23
Q

sql> startup nomount;
sql> startup mount;
sql> startup open [read only] [recover];
sql> startup force;
–performs a shutdown abort then restarts
sql> startup restrict;
–open to only restricted session privilege
sql> alter database [mount|open];
–increase the database availability state

A

Startup DB Options

24
Q

sql> shutdown; default to shutdown normal
–wait till all users are disconnected
sql> shutdown transactional;
–wait till all active transactions are completed
sql> shutdown immediate;
–roll back uncommitted transactions
–disconnect all clients immediately
sql> shutdown abort;
–terminate current sql statements, no roll back
–disconnect all clients immediately
–requires instance recovery in next startup

A

Shutdown DB Options

25
Q

sql> startup [nomount|mount|open|force|restrict]
sql> shutdown [normal|transactional|immediate|abort]
Alert log contains chronological summary of startup, shutdown, alter activities (see text pages 506-510)
Find location of alert logs diag trace and diag alert:
sql> select name, value from v$diag_info
Alert log is continuously appended, purging is required.

A

Alert log