Oracle OCP10 G
Oracle OCP10 G
Oracle OCP10 G
Preparation
10g, 9i, 8i
[email protected]
[email protected] 1
Objective
2
Part 1 – OCP Format, Structure,
and Strategies
• What is OCP?
• How is it measured in the industry?
• What are the benefits from being
certified?
• What are the required steps for getting
certified?
• What’s the exam content / structure?
• How are the exams scored?
• Miscellaneous issues?
3
What Is OCP ?
Oracle Certification was developed by Oracle and
Sylvan Prometric. OCP is a valuable industry-
recognized credential that signifies a proven level of
knowledge and ability. An Oracle Certified
Professional establishes a standard of competence in
a specific job role.
4
OCP Format, Structure, and
Strategies
• What is OCP?
• How is OCP measured in the
industry?
• What are the benefits from being
certified?
• What are the required steps for getting
certified?
• What’s the exam content / structure?
• How are the exams scored?
• Miscellaneous issues?
5
How is OCP measured in the
industry ?
■ Oracle Certified Professionals were found to earn the highest
average salaries as compared to any other DBA or Developer
professionals.
professionals Certification Magazine –
http://www.certmag.com
■ The results from the 2001 CRN Certification Study show Oracle
certifications offer the best ROI for larger solution providers
-http://crn.channelsupersearch.com/news/CRN/30947.asp
6
OCP Format, Structure, and
Strategies
• What is OCP?
• How is it measured in the industry?
• What are the benefits from
being certified?
• What are the required steps for getting
certified?
• What’s the exam content / structure?
• How are the exams scored?
• Miscellaneous issues?
7
What are the benefits from being
Certified?
• Valuable to hiring managers
• Added credibility (Excellent for contractors who sell narrow skill
sets and must claim to be immediately productive.)
• Increased job opportunities (OCP members site and other job
sites). Depends on economy (job market).
• Use of Oracle certification program logo for endorsement of your
proven skill by Oracle corporation.
• Invaluable experience as a result of preparing
• New tricks and skills to add to your arsenal
• Looks good on resume (Receive certificate, logo, business card,
and access to OCA and OCP websites)
• Special discounts and offers (35% off Oracle Press Books)
• Exposure to features you haven’t used
8
OCP Format, Structure, and
Strategies
• What is OCP?
• How is it measured in the industry?
• What are the benefits from being
certified?
• What are the required steps
for getting certified?
• What’s the exam content / structure?
• How are the exams scored?
• Miscellaneous issues?
9
What are the required steps for
getting certified?
– Select a track
– Prepare for the test
– Schedule the test
– Take each test in the track
http://www.oracle.com/education/certification/ind
ex.html?starthere.html
Oracle University - (800) 529-0165
10
Tracks
Oracle Database Administrator:
• Oracle 10g DBA (OCA, OCP, OCM)
(FOCUS ON)
• Oracle 9i DBA (OCA, OCP, OCM)
11
What are the required steps for
getting certified?
– Select a track
– Prepare for the test
– Schedule the test
– Take each test in the track
12
Prepare for the test
• Self-Test Software (250-300 questions) and SYBEX OCP Books.
http://www.selftestsoftware.com. Software simulates actual
exam. Might get lucky and find 1-2 questions on the actual exam.
(Cost less / Cost: $99 per practice exam, $70 for the two books, $125 to take
More experience)
the exam. Beta exams, Self-Test and OPN offer discounts
http://www.2test.com. Quickest route with 2-3+ years exp
13
Prepare for the test
Ocp: Oracle 10g New Features For Administrators : Study Guide (Certification Study Guide)
by Bob Bryla, Biju Thomas
14
Additional resources used to prepare
for the exams
• Oracle University - (800) 529-0165
• Oracle Candidate Guide (test topics, preparation, and
registration material).
• Oracle doc set – http://technet.oracle.com/docs/content.html
• http://technet.oracle.com/training/content.html
• http://metalink.oracle.com
• Sybex flash cards – Included on CD with Book (Palm V)
• http://www.dbdomain.com
(Comes out of
• University Certificate programs (Columbia, NYU, Hofstra –
a separate budget) includes student kit, …etc)
15
What are the required steps for
getting certified?
– Select a track
– Prepare for the test
– Schedule the test
1800-891-exam or
http://www.2test.com
(Need 2 days notice)
– Take each test in the track
16
What are the required steps for
getting certified?
– Select a track
– Prepare for the test
– Schedule the test
– Take each test in the track
17
Database Administrator Exams
9i
Oracle 9i upgrade exam
– 1Z0-030 Oracle 9i Database: New features for Administrators (8i -> 9i)
18
Database Administrator Exams
10g
Oracle 10g upgrade exam
– 1Z0-040 Oracle 10g Database: New features for Administrators (9i ->
10g)
– 1Z1-045 Oracle 10g Database: New features for Administrators (8i ->
10g) - BETA
(Mo Money!) Oracle 10g DBA - (OCM) Oracle Certified Master 2 days hands-on
OCM practicum exam.
– Details to follow in the coming months
19
OCP Format, Structure, and
Strategies
• What is OCP?
• How is it measured in the industry?
• What are the benefits from being
certified?
• What are the required steps for getting
certified?
• What’s the exam content /
structure?
• How are the exams scored?
• Miscellaneous issues?
20
Exam Content / Structure
• Tests knowledge of Oracle concepts, practical
experience, and training.
• Each exam consists of 60-80 multiple choice
questions and given via computer.
• Allowed at least 90 minutes per exam.
• Incorrect answers are not subtracted from score.
Guess if you don’t know the answer
• Receive your grade back as soon as the exam is
finished.
• Beware of trick questions: Recommended vs
Required
21
OCP Format, Structure, and
Strategies
• What is OCP?
• How is it measured in the industry?
• What are the benefits from being
certified?
• What are the required steps for getting
certified?
• What’s the exam content / structure?
• How are the exams scored?
• Miscellaneous issues?
22
How are the exams scored ?
On average, allowed up to 17 questions wrong to pass
EXAM QUESTIONS
TRACK # EXAM TITLE TOTAL QUESTIONS CORRECT PASSING % DURATION
9i to 10g 1Z0- Oracle Database 10g New Features for 61 37 57% 1.5 hours
Upgrade 040 Administrators
Exam
8i to 10g 1Z1- Oracle Database 10g New Features for Oracle8i Not available at this n/a n/a n/a
Upgrade 045 OCPs time.
Exam
10g 1Z1- Oracle Database 10g: Administration II not yet available n/a n/a n/a
043
7.3 to 9i 1Z0- Oracle9i DBA: New Features for Oracle7.3 and 84 58 69% 2 hours
Upgrade 035 Oracle8 OCPs
Exam
24
Miscellaneous Issues
• Takes approx 1.5 – 3 months to get certified.
(approx 40 hours preparation time per exam)
• Wait 30 days to retake exams
• No time limit between passing first and last exam.
(Unless they announce retirement of track)
• Beta exams offer discounts
• Certification is valid for 6 months following a
general announcement of re-certification. (Valid for
approx 1.5 years) usually follows a new release,
8i, 9i,10g…etc
25
Oracle 10g (OCP) Certification
Preparation (end of part 1)
ANY QUESTIONS ?
10g, 9i, 8i
[email protected]
26
[email protected]
Part 2 – What will I be expected to
know for the exam?
10g New Features for
Administrators
(You will be tested on the same
material for Admin I and II)
27
10g New Features for Administrators
Automatic Shared Memory Management
8i method for automating SGA management
There is no method.
Workaround
28
10g New Features for Administrators
Automatic Shared Memory Management
9i method for automating SGA management.
Workaround
29
10g New Features for Administrators
Automatic Shared Memory Management
10g method for automating SGA management.
30
10g New Features for Administrators
Automatic Shared Memory Management
31
10g New Features for Administrators
Automatic Shared Memory Management
Online Large Batch Buffer Cache
Users Buffer Cache Jobs Automatically adapts
Large Pool to workload changes
Large Pool Maximizes memory
utilization
SQL Cache SQL Cache
Single Parameter
SGA Pool
Java Pool Java Pool makes it easier to
use
PGA Pool
Helps eliminate out
sort sort
of memory errors
Can help improve
performance
32
10g New Features for Administrators
Automatic Shared Memory Management
• Requires an SPFILE and SGA_TARGET > 0. Can not
exceed sga_max_size.
• Log Buffer
• Other Buffer Caches (KEEP/RECYCLE, other block sizes)
• Streams Pool (new in Oracle Database 10g)
• Fixed SGA and other internal allocations
33
10g New Features for Administrators
Upgrading the database
Definition
– You can upgrade an earlier release of Oracle to Oracle 10g by using direct or
indirect methods. Depending on the method will determine whether you use the
manual and/or DBUA utility to perform the upgrade.
Direct methods allow you to upgrade directly to 10g from the following
Oracle releases:
– Oracle 8 Release 8.0.6
– Oracle 8i Release 8.1.7
– Oracle 9i Release 1 – 9.0.1
– Oracle 9i Release 2 – 9.2.0
36
10g New Features for Administrators
Data Pump
• 8i / 9i method for suspending exports and imports. N/A
42
10g New Features for Administrators
Data Pump
Time is money. Data Pump has
cut down data movement/processing
times significantly.
2000
1500
Time in s
1000
500
0
Export
Original Data Pump
Import
43
10g New Features for Administrators
Flashback Database
48
10g New Features for Administrators
Flashback Database
49
10g New Features for Administrators
Flashback Database
■ New strategy for point-in-time recovery
■ Flashback Log captures old versions of
changed blocks.
Old • Think of it as a continuous backup
Disk Write Block • Replay log to restore DB to time
New Version • Restores just changed blocks
Block ■ It’s fast - recovers in minutes, not hours.
Version More over, this feature removes the
need for database incomplete recoveries
Flashback Log that require physical movement of
datafiles/restores.
■ It’s easy - single command restore
Like a “Rewind” button • SQL> Flashback Database to scn
for the Database 1329643
50
10g New Features for Administrators
Flashback Database
Restrictions
• V$Database
• V$Flashback_Database_Log
• V$Flashback_Database_Stat
51
10g New Features for Administrators
Segment Shrink
Definition
– Segment Shrink compresses the data blocks in a table or index and
optionally moves the HWM down, making the unused space available
for other segments in the tablespace. Prior to 10g, the HWM could be
moved down only if the segment was moved or truncated. Online
table redefinition and/or CTAS operations can also provide similar
results, however, these methods must temporarily provide double the
amount of space occupied by the table. Segment shrink is online and
in place.
Syntax
– Alter table hr.employees enable row movement; (prerequisite)
– Alter table hr.employees shrink space compact; (Compress the rows
without moving the HWM to prevent I/O throughput from decreasing).
– Alter table hr.employees shrink space; (Move the HWM and complete
the operation when the database isn’t as busy). A small number of
rows are locked for a brief amount of time.
– Alter table hr.employees shrink space cascade; (Also shrinks
dependent objects – indexes).
– Alter index hr.emp_emp_id_pk shrink space; (Without cascade, need55
to identify indexs from dba_indexes and shrink each one separately).
10g New Features for Administrators
Segment Shrink
Candidates
– Heap-organized and index-organized tables
– Indexes
– Partitions and subpartitions
– Materialized Views and materialized view logs
Non-Candidates
– Clustered tables
– Tables with Long Columns
– Tables with on-commit or ROWID-based MV’s
– LOB segments
– IOT mapping tables or overflow segments
– Tables with function-based indexes
Identify candidates
EM database control and Segment Advisor can assist you in identifying
segments that can leverage from segment shrink.
56
10g New Features for Administrators
RMAN Backupset Compression
60
10g New Features for Administrators
RMAN Backupset Compression
10g method for compressing backups
Cons:
62
10g New Features for Administrators
RMAN Fast Incremental Backups
Definition
– Speeds up RMAN Incremental backups by identifying those data
blocks that have already changed since the previous backup. It uses
a change-tracking-file to track the physical location of all database
changes. During an RMAN Incremental backup, RMAN uses the
change tracking file to identify only the blocks that have changed, as
opposed to reading the entire datafile to determine which blocks have
changed.
Syntax
– Alter database enable block change tracking using file
‘/u04/oradata/ord/changetracking/chg01.dbf’;
OR
– You can configure via EM Database Control
NOTES
– When using OMF, you only need to specify db_create_file_dest
parameter to /u04/oradata.
– A new background process is introduced - CTWR
65
10g New Features for Administrators
Flush Buffer Cache
8i/9i method for flushing the buffer cache
Prior to 10g, this wasn’t possible without shutting down and restarting the
database or using the following undocumented commands:
69
10g New Features for Administrators
Flush Buffer Cache
10g method for flushing the buffer cache
10g has provided the ability to flush the buffer cache. This isn’t suggested
for a production environment, but might be useful for QA/Testing. The
bigger the cache, the larger the LRU and dirty list becomes. That
results in longer search times. However, if the buffer cache is
undersized, than running the following command can improve
performance and take the burden off the DBWR. In addition to
decreasing free buffer waits.
70
10g New Features for Administrators
Rename Tablespace
4. Create a new tablespace with the same size as the original one.
(You have to make sure you have enough room on disk to store a
duplicate copy). Space pending, this might require additional
analysis of the original tablespace to determine if the new
tablespace can be resized/reorged.
6. Move objects from the original tablespace to the new one. (This
could take a while, depending on the size of the tablespace).
8. Drop the original tablespace and datafile(s) after the objects are
moved to the newly named tablespace.
72
10g New Features for Administrators
Rename Tablespace
73
10g New Features for Administrators
Rename Tablespace
Oracle allows the renaming of tablespaces in 10g. A
simple alter tablespace command is all you need.
Elapsed: 00:00:00.02
74
10g New Features for Administrators
Rename Tablespace
75
10g New Features for Administrators
Sysaux Tablespace
Definition
– The Sysaux tablespace is a required tablespace for Oracle 10g. It’s
used to store many of the objects that used to be stored in the System
tablespace. It removes a lot of the I/O and fragmentation that used to
occur in the System tablespace.
Restrictions
– Can’t be OFFLINE
– Can’t be Temporary
– Can’t be Read Only
– 78
Can’t be Dictionary Managed
10g New Features for Administrators
Sysaux Tablespace
Contents
– Some of the objects/occupants stored in the Sysaux tablespace:
• Logmnr
• Logstdby
• Streams
• AO
• Statspack
• ODM
• Text
• WM
• EM
• Job_scheduler
Syntax
– Select occupant_name, move_procedure, space_usage_kbytes
from v$sysaux_occupants;
Restrictions
– An occupant without a move procedure can’t be moved out of the Sysaux
tablespace. Only some of the objects can be moved. 79
Part 2 – What will I be expected to
know for the exam?
10g New Features for
Administrators
A few more practice questions on
some nice features.
83
Part 2 – What will I be expected to
know for the exam?
Additional 10g features worth mentioning
84
References
Books and Software:
• OCP Oracle 10g New Features for Administrators by Bob Bryla
and Biju Thomas
• Self-Test Software
Web Sites:
• http://www.dbdomain.com
• http://www.oracle.com/education/certification
• http://www.oracle.com/newsletters/itmanagers/itcurrent.html
(Oracle IT Manager News, “Certifying with Oracle” / By Mike Serpe
– Global Director for Oracle University)
90
Oracle 10g (OCP) Certification
Preparation
ANY QUESTIONS ?