Oracle9i™ Database Administration Workshop
                                       5-8 Days

Description              This ...
Oracle9i Database Administration
                                                                                         ...
Oracle9i Database Administration
                                                                                         ...
Oracle9i Database Administration
                                                                                        P...
Oracle9i Database Administration
                                                                                       Pa...
Oracle9i Database Administration
                                                                                         ...
Oracle9i Database Administration
                                                                                        P...
Oracle9i Database Administration
                                                                                         ...
Oracle9i Database Administration
                                                                                         ...
Oracle9i Database Administration
                                                                                         ...
Oracle9i Database Administration
                                                                                         ...
Upcoming SlideShare
Loading in...5
×

Oracle9i_Administration.doc

627

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
627
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Oracle9i_Administration.doc"

  1. 1. Oracle9i™ Database Administration Workshop 5-8 Days Description This course provides you with the foundation skills necessary to create, maintain and manage an Oracle9i database. In this class you will concentrate on the techniques and skills necessary for day-to-day database administration tasks such as security, creating users, creating objects (tablespaces, tables, indexes, etc.) and backup and recovery. An in-depth discussion of database architecture is also provided. This course has been completely updated for Oracle9i. Working examples are included throughout the course book and students have access to electronic versions of all examples and lab solutions. Approximately 50% of class time is spent on hands-on exercises. The duration of the class depends on topics selected and pre-existing skills of the audience. Typical duration ranges from five days up to eight days. This class will help prepare you for Oracle Certified Professional exam “Oracle9i Database: Fundamentals I Exam #1Z0-031” It also covers some of the material required for the next test, “Oracle9i Database: Fundamentals II Exam #1Z0-032” Audience Database and System Administrators Prerequisites Students must have experience with Oracle SQL, SQL*Plus and PL/SQL. This can be obtained in SkillBuilders’ Introduction to Oracle9i for Developers class. Objectives After successfully completing this course, you will be able to: • Describe the major architectural components of Oracle9i, including the SGA, background processes and files that make up the physical database. • Use the data dictionary to to determine the structure and status of the database. This includes gaining a solid understanding of the purpose and content of many V$ and DBA-level views. • Create administrative users, including granting and using the SYSDBA privilege. Understand the purpose of supplied users SYS and SYSTEM. • Connect as SYSDBA, both from a host server or – via the use of password files – over a network. • Start and stop a database, including the use of various shutdown modes such as IMMEDIATE, TRANSACTIONAL and ABORT. • View and alter initialization parameter values, create and startup with secondary parameter files. This includes the use of the Oracle9i Server Parameter File. Copyright © 2004 SkillBuilders www.skillbuilders.com V2.0
  2. 2. Oracle9i Database Administration Page 2 of 11 • Create new users, provide tablespace quota and grant them the system or object privileges necessary to perform their work, including the use of roles. Secure the default users provided with database installation. • Implement the user password management features such as password expiration, account locking, password reuse prevention and password complexity enforcement. • Implement database auditing to track SYSDBA activity and general user activity. Also, code simple triggers to audit table data changes. • Create and manage locally managed tablespaces including adding free space, monitoring free/used space and using the Oracle9i Oracle Managed Files feature to control placement of and name the underlying datafiles. Also, implement Automatic Segment Space Management (new with Oracle9i) to efficiently manage free and used space within extents. • Manage storage for objects with disk striping and buffer pool assignment. • Describe the different types of Oracle tables, including heap, index-organized and clustered tables. • Create and manage heap-tables, including managing concurrency with the INITTRANS and MAXTRANS parameters, moving tables, using DBMS_STATS to collect statistics and increasing and measuring the performance benefits of NOLOGGING and table compression. • Describe the different types of Oracle indexes including B-tree, bitmap and reverse key. • Create simple B-Tree indexes on tables. This includes understanding the fundamental rules for when and where to create and when to avoid using indexes. Also, implement index options such as NOLOGGING. • Create constraints on tables including the use of options such as NOVALIDATE to allow existing legacy data with constraint violations. • Describe the techniques for managing undo including rollback segments ant the new Oracle9i feature Automatic Undo Management. • Implement Automatic Undo Management including creating and enabling new undo tablespaces and monitoring for space-related problems. • Manage the database redo logs including archiving, multiplexing and adding additional logs. Also, ensure that the database is recoverable by checking the archive log status of the database. • Understand the role and importance of control files. Add additional control files. Backup and recreate control files. • Use the basic features of Recovery Manager to perform simple backup and recovery operations in the event of a lost or corrupted datafile. • Use the export and import utilities to perform logical backups or move or copy objects. • Use the SQL*Loader utility to load data into the database. • Configure Oracle Net (SQL*Net) to connect to and listen for connections. Manage the database listener with the listener control utility. • Create a new database with the Database Configuration Assistant. • Optional lessons include: User Managed Backup and Recovery, Partitioning, Other Table Types (e.g. Clusters), and Fine Grained Auditing. Topic Summary Copyright © 2004 SkillBuilders Course Version 2.0
  3. 3. Oracle9i Database Administration Page 3 of 11 • A DBAs Introduction to the Oracle Data Dictionary • Lesson Objectives • Introduction • What is the Dictionary? • Static Views • Common DBA Views • Example: DBA_USERS • Example: DBA_SYS_PRIVS • Dynamic Performance Views • Example: V$PARAMETER • Miscellaneous Views • DICTIONARY View • Data Dictionary Workshop • Architecture, Part I • Lesson Objectives • Lesson Prerequisites • Database and Instance • The Big Picture • Database Files • Segments and Extents • DBA_DATA_FILES • DBA_SEGMENTS • Redo Log Files • Control Files • Temp Files • Parameter Files • Password Files • Architecture: Files Workshop • Architecture, Part II • Lesson Objectives • Lesson Prerequisites • Review: The Big Picture • The Processes • V$BGPROCESS • Database Block Writer • Log Writer - LGWR • System Monitor - SMON • Process Monitor - PMON • Checkpoint - CKPT • Archiver – ARCn • Miscellaneous Processes • Architecture: Processes Workshop • Architecture, Part III • Lesson Objectives • Lesson Prerequisites • The Big Picture • PGA and UGA • The Oracle9i SGA • Size of SGA Areas • Shared Pool • Library Cache • Library Cache Retention • SQL Statement Processing • Data Dictionary Cache • Buffer Cache Copyright © 2004 SkillBuilders Course Version 2.0
  4. 4. Oracle9i Database Administration Page 4 of 11 • Database Block Size • Non-Standard DB Size • Keep and Recycle Caches • Redo Log Buffer • Large Pool / Java Pool • Summary • Architecture: Memory Areas Workshop • Administrative Users • Lesson Objectives • The SYS User • The SYSTEM User • SYSDBA • DBA Role • Local Connections • Remote Connections • Creating a Password File • Password File Entries • Create New Administrators • Administrative Users Workshop • Starting and Stopping an Oracle Instance • Lesson Objectives • STARTUP Procedures • SQL*Plus for Startup • Connecting for STARTUP • Startup/Shutdown Basics • Startup Basics Workshop • Stages Of STARTUP • STARTUP Command • STARTUP Examples • ALTER DATABASE • Startup MOUNT Workshop • Restricted Access • Shutting Down • Shutdown Workshop • Initialization Parameter Files • Lesson Objectives • Review: Parameter Files • Text Parameter File • Introduction to SPFILE • Benefits of SPFILE • Creating an SPFILE • CREATE SPFILE Notes • Using SPFILE • Parameter Overrides • Am I Using SPFILE? • Helpful Dictionary Views • Export & Backup • Modifying Parameters • SCOPE Clause • Dynamic Parameters • Summary • Server Parameter Files Workshop • Creating and Managing Users • Lesson Objectives • Creating New Users • Intro to User Privileges Copyright © 2004 SkillBuilders Course Version 2.0
  5. 5. Oracle9i Database Administration Page 5 of 11 • Default and Temporary Parameters • Querying the Data Dictionary • Altering a User • Dropping a User • Terminating a User Session • User Basics Workshop • Introduction to Quota • Providing Quota • Unlimited and Zero Quota • Query Existing Quotas • User Space Used • Installation Users • Secure Installation Users • User Quota & Account Status Workshop • Password Management • Lesson Objectives • Password Aging • Manual Password Expiration • Account Locking • Password History • Password Complexity • User Passwords Workshop • Introduction to Auditing • Lesson Objectives • Auditing Technique Overview • Enabling the Audit Trail • Auditing SYSDBA • Auditing SYSDBA Tips • AUDIT Statement • Auditing Logons • Monitoring Logon Attempts • Audit System Grants • Monitor System Grants • Object-Level Auditing • Monitoring Object Activity • The SYSAUD$ Table • Auditing with Triggers • Auditing Summary • Fine Grained Auditing • Create FGA Policy • Display FGA Activity • Auditing Workshop • Managing Security • Lesson Objectives • Security Basics • Privilege Types • System Privileges • ANY-Type Privileges • PUBLIC Keyword • ADMIN OPTION • Revoking System Privileges • SESSION_PRIVS • DBA_SYS_PRIVS • System Privileges Workshop • Object Privileges • Grant Object-Level Privileges • Insert / Update Privileges Copyright © 2004 SkillBuilders Course Version 2.0
  6. 6. Oracle9i Database Administration Page 6 of 11 • WITH GRANT OPTION • Revoking Object Privileges • DBA_TAB_PRIVS • Object Privileges Workshop • Role Concepts • Predefined Roles • Giving Privileges To Roles • WITH ADMIN OPTION • Granting Role to Role • Role Privileges • PL/SQL and Roles • Revoking Roles • Dropping Roles • Data Dictionary Summary • Miscellaneous Role Topics • Roles Workshop • Tablespaces • Lesson Objectives • What is a Tablespace? • Data Dictionary • Why Tablespaces? • Locally Managed Tablespaces • Tablespace Basics Workshop • Tablespace Parameter • System-Managed LMT • Uniform LMT’s • ASSM • Oracle Managed Files • OMF Key Points • Configuration and File Location • Striping • Non-Standard Blocksize • Benefits • Monitoring Free Space • Adding Space • Offline Tablespace • Read-Only Tablespace • Dropping Tablespaces • Managing SYSTEM • Managing SYSTEM TS • Summary • Tablespaces Workshop • Tables • Lesson Objectives • Types of Tables • CREATE TABLE Statement • Column Definition • Character and Numeric Datatypes • Date and Time Datatypes • Binary Datatypes • ANSI and Miscellaneous Datatypes • Table Create Workshop • Create Table As Subquery • CTAS Options • CTAS Workshop • Collecting Statistics • GATHER_SCHEMA_STATS Copyright © 2004 SkillBuilders Course Version 2.0
  7. 7. Oracle9i Database Administration Page 7 of 11 • Gather Database Stats • Table MONITORING • Additional STATS Features • DBMS_STATS Workshop • Managing Table Storage • INITRANS & MAXTRANS • NOLOGGING • Mini-Workshop • Table Compression • Table Compression Workshop • ALTER TABLE MOVE • CTAS Nologging • DROP Column • Renaming Tables • Renaming Columns • Summary • Where To Go From Here • B-Tree Indexes • Lesson Objectives • Indexes: What and Why • Index Structures • B-Tree Organization • Unique Index Scan • AUTOTRACE • Important Points • CREATE INDEX • NOLOGGING • Statistics Collection • Indexes Workshop • Composite Indexes • Which Column First? • Index Key Compression • Descending Keys • Index Coalesce • Choosing Index Columns • Calculating Selectivity • Where to Look Next • Summary • Composite Index Workshop • Constraints • Lesson Objectives • Introduction to Constraints • Inline Syntax • Out-of-Line Syntax • Constraint Name • Violating Constraint • Constraints Workshop • Referential Integrity • Alter to Add Constraint • Identifying Exceptions • Constraint Exceptions Workshop • NOVALIDATE Option • Primary Key Index • USING INDEX Option • Modify State • Drop Constraint • Rename Constraint Copyright © 2004 SkillBuilders Course Version 2.0
  8. 8. Oracle9i Database Administration Page 8 of 11 • Data Dictionary • Summary • Constraint Indexes Workshop • Managing Undo • Lesson Objectives • What is Undo? • Where is Undo Kept? • Why Not Rollback Segments? • Why AUM? • Implementing AUM • Find Undo Tablespace • Create Undo Tablespace • Initialization Parameters • Switching Undo Tablespace • Dropping Undo Tablespace • Data Dictionary Views • Tuning AUM • Adding Space • Resources • Summary • Automatic Undo Management Workshop • Managing Redo Logs • Lesson Objectives • Review: Concepts • DBAs Responsibilities • Archiving Status • Enabling Archiving • Archiving Workshop • Multiplexing Archive Logs • Multiplex Archive Logs Workshop • Log Switch Delays • Adding Log Files • Review of OMF • Adding Log Files - OMF • Multiplexing Online Logs • Add Redo Log Workshop • Managing Control Files • Lesson Objectives • Control File Review • DBA Responsibilities • Adding Control Files • Add Control File Workshop • Backing Up Control File • Recreating Control File • Optional Create Control File Workshop • Introduction to RMAN • Lesson Objectives • What is RMAN? • RMAN Components • Starting and Connecting • Common RMAN Commands • Backup Concepts • Full Backup • Full Tablespace Backup • Datafile Backup • Incremental Backup Copyright © 2004 SkillBuilders Course Version 2.0
  9. 9. Oracle9i Database Administration Page 9 of 11 • Backups – Where to go from here • RESTORE Command • RECOVER Command • Complete Recovery – Database • Recover Tablespace • Summary: Restore and Recovery • Reporting • Report Need Backup • Show Stored Settings • What Else is There? • Getting More Information • RMAN Workshop • Logical Backups • Lesson Objectives • Introduction • Export Modes • User-Mode Export • Export Features • Import • Using Import • Import Tips • Resources • Logical Backups Workshop • SQL*Loader • Lesson Objectives • Introduction • Executing SQL*Loader • The Control File • Variable Format Data • Variable Format Data • Fixed Format Data • LOG File • Conditional Loads • SQL*Loader Workshop • Introduction to Oracle Networking • Lesson Objectives • Introduction to Oracle Net • Configuration Files • TNSNAMESORA • Introduction to the Listener • Listener Control Utility • Listener Started? • Stopping the Listener • Listener Password • LISTENER.ORA • Resources • Oracle Net Workshop • Creating a new Database • Lesson Objectives • Major Steps • What We Need to Know • The Oracle SID • Windows Services • Seeing the Active Threads • Listing Active Instances • Stopping Active Instances Copyright © 2004 SkillBuilders Course Version 2.0
  10. 10. Oracle9i Database Administration Page 10 of 11 • Database Configuration Assistant • Step 1: Select Operation • Step 2: Select Template • Step 3: Database ID • Step 4: Database Features • Step 5: Database Connection Options • Step 6:Init Parameters • Step 7:Database Storage • Step 8: Create Options • The BAT File • ORADIM • CREATEDB Script • Create New Database Workshop • Optional: User-Managed Backup and Recovery • Introduction • Failure Scenarios • Strategies • Archiving • Cold Backup • Cold Backup Workshop • Hot Backup • Hot Backup Workshop • Complete Recovery • PIT Recovery • Recovering File to New Location • Summary of B/R Dictionary • System Change Number (SCN) • Recovery Workshop • Optional: Introduction to Partitioning • Partitioning History • Range Partitioning • MAXVALUE and NULLs • Partition Storage Attributes • Multiple-Column Partitioning • Hash Partitioning • Composite Partitioning • List Partitioning • Composite Range-List Partitioning • Subpartition Template • IOT and Hash Partitioning • Global Indexes and Partitioning Maintenance • Row Movement • Maintenance: Rolling In • Maintenance: Rolling Out • Merge Partitions • Other Maintenance Operations • Data Dictionary Implications • Finding the Partitioning Key • Finding the Partitioning Bounds • Explicit Referencing • Table Partitioning Restrictions • Summary of Benefits • Optional: Introduction to Other Table Types • Index Organized Tables • Temporary Tables Concepts • Temporary Tables Management Copyright © 2004 SkillBuilders Course Version 2.0
  11. 11. Oracle9i Database Administration Page 11 of 11 • Creating Temporary Tables • Index Clustered Tables • Hash Clustered Tables • Nested Tables • Nested Table Examples • Object Tables • Optional: Introduction to Fine Grained Auditing • Fine Grained Auditing • Create FGA Policy • Display FGA Activity Software Requirements ♦ OS supported by Oracle including Windows NT 4.0 (SP5 or Higher), Windows 2000 (SP 1 or higher) Solaris, Linux, etc. ♦ Oracle9i Enterprise Edition, Release 2 required (9.2.0.4 or higher recommended). A new install is strongly recommended if the existing Oracle install is on a freely accessible machine, such as classroom machine. ♦ Microsoft Internet Explorer 5 or Netscape Navigator 4.5 ♦ Adobe Acrobat Reader or Acrobat 4.0 or later (for the course presentation) ♦ Student Files (supplied by SkillBuilders) ♦ Text Editor Hardware Requirements ♦ Hardware compatible with Oracle9i Release 2 (9.2.0.4). See the Oracle Installation manual for your platform for details: (http://otn.oracle.com/documentation/oracle9i.html) ♦ A connection to the Internet is desirable (but not absolutely necessary) to show students various Oracle-related sites. ♦ Video Projection for the instructor’s laptop. Copyright © 2004 SkillBuilders Course Version 2.0

×