Oracle Database Administrator’s Guide 10g Release 2 Administrator
Administrator's%20Guide
User Manual: Pdf
Open the PDF directly: View PDF
Page Count: 876 [warning: Documents this large are best viewed by clicking the View PDF Link!]
- Contents
- Send Us Your Comments
- Preface
- What's New in Oracle Database Administrator's Guide?
- Part I Basic Database Administration
- 1 Overview of Administering an Oracle Database
- Types of Oracle Database Users
- Tasks of a Database Administrator
- Task 1: Evaluate the Database Server Hardware
- Task 2: Install the Oracle Database Software
- Task 3: Plan the Database
- Task 4: Create and Open the Database
- Task 5: Back Up the Database
- Task 6: Enroll System Users
- Task 7: Implement the Database Design
- Task 8: Back Up the Fully Functional Database
- Task 9: Tune Database Performance
- Task 10: Download and Install Patches
- Task 11: Roll Out to Additional Hosts
- Selecting an Instance with Environment Variables
- Identifying Your Oracle Database Software Release
- Database Administrator Security and Privileges
- Database Administrator Authentication
- Creating and Maintaining a Password File
- Server Manageability
- 2 Creating an Oracle Database
- Deciding How to Create an Oracle Database
- Manually Creating an Oracle Database
- Considerations Before Creating the Database
- Creating the Database
- Step 1: Decide on Your Instance Identifier (SID)
- Step 2: Establish the Database Administrator Authentication Method
- Step 3: Create the Initialization Parameter File
- Step 4: Connect to the Instance
- Step 5: Create a Server Parameter File (Recommended)
- Step 6: Start the Instance
- Step 7: Issue the CREATE DATABASE Statement
- Step 8: Create Additional Tablespaces
- Step 9: Run Scripts to Build Data Dictionary Views
- Step 10: Run Scripts to Install Additional Options (Optional)
- Step 11: Back Up the Database.
- Understanding the CREATE DATABASE Statement
- Protecting Your Database: Specifying Passwords for Users SYS and SYSTEM
- Creating a Locally Managed SYSTEM Tablespace
- Creating the SYSAUX Tablespace
- Using Automatic Undo Management: Creating an Undo Tablespace
- Creating a Default Permanent Tablespace
- Creating a Default Temporary Tablespace
- Specifying Oracle-Managed Files at Database Creation
- Supporting Bigfile Tablespaces During Database Creation
- Specifying the Database Time Zone and Time Zone File
- Specifying FORCE LOGGING Mode
- Understanding Initialization Parameters
- Determining the Global Database Name
- Specifying a Flash Recovery Area
- Specifying Control Files
- Specifying Database Block Sizes
- Managing the System Global Area (SGA)
- Components and Granules in the SGA
- Limiting the Size of the SGA
- Using Automatic Shared Memory Management
- Enabling Automatic Shared Memory Management
- Setting Minimums for Automatically Sized SGA Components
- Automatic Tuning and the Shared Pool
- Dynamic Modification of SGA Parameters
- Dynamic Modification of SGA_TARGET
- Modifying Parameters for Automatically Managed Components
- Modifying Parameters for Manually Sized Components
- Using Manual Shared Memory Management
- Viewing Information About the SGA
- Specifying the Maximum Number of Processes
- Specifying the Method of Undo Space Management
- The COMPATIBLE Initialization Parameter and Irreversible Compatibility
- Setting the License Parameter
- Troubleshooting Database Creation
- Dropping a Database
- Managing Initialization Parameters Using a Server Parameter File
- What Is a Server Parameter File?
- Migrating to a Server Parameter File
- Creating a Server Parameter File
- The SPFILE Initialization Parameter
- Using ALTER SYSTEM to Change Initialization Parameter Values
- Exporting the Server Parameter File
- Backing Up the Server Parameter File
- Errors and Recovery for the Server Parameter File
- Viewing Parameter Settings
- Defining Application Services for Oracle Database 10g
- Considerations After Creating a Database
- Viewing Information About the Database
- 3 Starting Up and Shutting Down
- Starting Up a Database
- Options for Starting Up a Database
- Understanding Initialization Parameter Files
- Preparing to Start Up an Instance
- Starting Up an Instance
- Starting an Instance, and Mounting and Opening a Database
- Starting an Instance Without Mounting a Database
- Starting an Instance and Mounting a Database
- Restricting Access to an Instance at Startup
- Forcing an Instance to Start
- Starting an Instance, Mounting a Database, and Starting Complete Media Recovery
- Automatic Database Startup at Operating System Start
- Starting Remote Instances
- Altering Database Availability
- Shutting Down a Database
- Quiescing a Database
- Suspending and Resuming a Database
- Starting Up a Database
- 4 Managing Oracle Database Processes
- About Dedicated and Shared Server Processes
- Configuring Oracle Database for Shared Server
- About Oracle Database Background Processes
- Managing Processes for Parallel SQL Execution
- Managing Processes for External Procedures
- Terminating Sessions
- Monitoring the Operation of Your Database
- Part II Oracle Database Structure and Storage
- 5 Managing Control Files
- 6 Managing the Redo Log
- What Is the Redo Log?
- Planning the Redo Log
- Creating Redo Log Groups and Members
- Relocating and Renaming Redo Log Members
- Dropping Redo Log Groups and Members
- Forcing Log Switches
- Verifying Blocks in Redo Log Files
- Clearing a Redo Log File
- Viewing Redo Log Information
- 7 Managing Archived Redo Logs
- What Is the Archived Redo Log?
- Choosing Between NOARCHIVELOG and ARCHIVELOG Mode
- Controlling Archiving
- Specifying the Archive Destination
- Specifying the Mode of Log Transmission
- Managing Archive Destination Failure
- Controlling Trace Output Generated by the Archivelog Process
- Viewing Information About the Archived Redo Log
- 8 Managing Tablespaces
- Guidelines for Managing Tablespaces
- Creating Tablespaces
- Specifying Nonstandard Block Sizes for Tablespaces
- Controlling the Writing of Redo Records
- Altering Tablespace Availability
- Using Read-Only Tablespaces
- Renaming Tablespaces
- Dropping Tablespaces
- Managing the SYSAUX Tablespace
- Diagnosing and Repairing Locally Managed Tablespace Problems
- Scenario 1: Fixing Bitmap When Allocated Blocks are Marked Free (No Overlap)
- Scenario 2: Dropping a Corrupted Segment
- Scenario 3: Fixing Bitmap Where Overlap is Reported
- Scenario 4: Correcting Media Corruption of Bitmap Blocks
- Scenario 5: Migrating from a Dictionary-Managed to a Locally Managed Tablespace
- Migrating the SYSTEM Tablespace to a Locally Managed Tablespace
- Transporting Tablespaces Between Databases
- Introduction to Transportable Tablespaces
- About Transporting Tablespaces Across Platforms
- Limitations on Transportable Tablespace Use
- Compatibility Considerations for Transportable Tablespaces
- Transporting Tablespaces Between Databases: A Procedure and Example
- Using Transportable Tablespaces: Scenarios
- Moving Databases Across Platforms Using Transportable Tablespaces
- Viewing Tablespace Information
- 9 Managing Datafiles and Tempfiles
- Guidelines for Managing Datafiles
- Creating Datafiles and Adding Datafiles to a Tablespace
- Changing Datafile Size
- Altering Datafile Availability
- Renaming and Relocating Datafiles
- Dropping Datafiles
- Verifying Data Blocks in Datafiles
- Copying Files Using the Database Server
- Mapping Files to Physical Devices
- Viewing Datafile Information
- 10 Managing the Undo Tablespace
- Part III Automated File and Storage Management
- 11 Using Oracle-Managed Files
- What Are Oracle-Managed Files?
- Enabling the Creation and Use of Oracle-Managed Files
- Creating Oracle-Managed Files
- How Oracle-Managed Files Are Named
- Creating Oracle-Managed Files at Database Creation
- Specifying Control Files at Database Creation
- Specifying Redo Log Files at Database Creation
- Specifying the SYSTEM and SYSAUX Tablespace Datafiles at Database Creation
- Specifying the Undo Tablespace Datafile at Database Creation
- Specifying the Default Temporary Tablespace Tempfile at Database Creation
- CREATE DATABASE Statement Using Oracle-Managed Files: Examples
- Creating Datafiles for Tablespaces Using Oracle-Managed Files
- Creating Tempfiles for Temporary Tablespaces Using Oracle-Managed Files
- Creating Control Files Using Oracle-Managed Files
- Creating Redo Log Files Using Oracle-Managed Files
- Creating Archived Logs Using Oracle-Managed Files
- Behavior of Oracle-Managed Files
- Scenarios for Using Oracle-Managed Files
- 12 Using Automatic Storage Management
- What Is Automatic Storage Management?
- Overview of the Components of Automatic Storage Management
- Administering an Automatic Storage Management Instance
- Administering Automatic Storage Management Disk Groups
- Considerations and Guidelines for Configuring Disk Groups
- Creating a Disk Group
- Altering the Disk Membership of a Disk Group
- Mounting and Dismounting Disk Groups
- Checking Internal Consistency of Disk Group Metadata
- Dropping Disk Groups
- Managing Disk Group Directories
- Managing Alias Names for ASM Filenames
- Dropping Files and Associated Aliases from a Disk Group
- Managing Disk Group Templates
- Using Automatic Storage Management in the Database
- What Types of Files Does ASM Support?
- About ASM Filenames
- Starting the ASM and Database Instances
- Creating and Referencing ASM Files in the Database
- Creating a Database in ASM
- Creating Tablespaces in ASM
- Creating Redo Logs in ASM
- Creating a Control File in ASM
- Creating Archive Log Files in ASM
- Recovery Manager (RMAN) and ASM
- Migrating a Database to Automatic Storage Management
- Accessing Automatic Storage Management Files with the XML DB Virtual Folder
- Viewing Information About Automatic Storage Management
- Part IV Schema Objects
- 13 Managing Schema Objects
- Creating Multiple Tables and Views in a Single Operation
- Analyzing Tables, Indexes, and Clusters
- Truncating Tables and Clusters
- Enabling and Disabling Triggers
- Managing Integrity Constraints
- Renaming Schema Objects
- Managing Object Dependencies
- Managing Object Name Resolution
- Switching to a Different Schema
- Displaying Information About Schema Objects
- 14 Managing Space for Schema Objects
- Managing Tablespace Alerts
- Managing Space in Data Blocks
- Managing Storage Parameters
- Identifying the Storage Parameters
- Specifying Storage Parameters at Object Creation
- Setting Storage Parameters for Clusters
- Setting Storage Parameters for Partitioned Tables
- Setting Storage Parameters for Index Segments
- Setting Storage Parameters for LOBs, Varrays, and Nested Tables
- Changing Values of Storage Parameters
- Understanding Precedence in Storage Parameters
- Managing Resumable Space Allocation
- Reclaiming Wasted Space
- Understanding Reclaimable Unused Space
- Using the Segment Advisor
- Shrinking Database Segments Online
- Deallocating Unused Space
- Understanding Space Usage of Datatypes
- Displaying Information About Space Usage for Schema Objects
- Capacity Planning for Database Objects
- 15 Managing Tables
- About Tables
- Guidelines for Managing Tables
- Design Tables Before Creating Them
- Consider Your Options for the Type of Table to Create
- Specify the Location of Each Table
- Consider Parallelizing Table Creation
- Consider Using NOLOGGING When Creating Tables
- Consider Using Table Compression when Creating Tables
- Estimate Table Size and Plan Accordingly
- Restrictions to Consider When Creating Tables
- Creating Tables
- Loading Tables
- Automatically Collecting Statistics on Tables
- Altering Tables
- Redefining Tables Online
- Features of Online Table Redefinition
- Performing Online Redefinition with DBMS_REDEFINITION
- Results of the Redefinition Process
- Performing Intermediate Synchronization
- Aborting Online Table Redefinition and Cleaning Up After Errors
- Restrictions for Online Redefinition of Tables
- Online Redefinition of a Single Partition
- Online Table Redefinition Examples
- Privileges Required for the DBMS_REDEFINITION Package
- Auditing Table Changes Using Flashback Transaction Query
- Recovering Tables Using the Flashback Table Feature
- Dropping Tables
- Using Flashback Drop and Managing the Recycle Bin
- Managing Index-Organized Tables
- Managing External Tables
- Viewing Information About Tables
- 16 Managing Indexes
- About Indexes
- Guidelines for Managing Indexes
- Create Indexes After Inserting Table Data
- Index the Correct Tables and Columns
- Order Index Columns for Performance
- Limit the Number of Indexes for Each Table
- Drop Indexes That Are No Longer Required
- Estimate Index Size and Set Storage Parameters
- Specify the Tablespace for Each Index
- Consider Parallelizing Index Creation
- Consider Creating Indexes with NOLOGGING
- Consider Costs and Benefits of Coalescing or Rebuilding Indexes
- Consider Cost Before Disabling or Dropping Constraints
- Creating Indexes
- Altering Indexes
- Monitoring Space Use of Indexes
- Dropping Indexes
- Viewing Index Information
- 17 Managing Partitioned Tables and Indexes
- About Partitioned Tables and Indexes
- Partitioning Methods
- Creating Partitioned Tables
- Creating Range-Partitioned Tables and Global Indexes
- Creating Hash-Partitioned Tables and Global Indexes
- Creating List-Partitioned Tables
- Creating Composite Range-Hash Partitioned Tables
- Creating Composite Range-List Partitioned Tables
- Using Subpartition Templates to Describe Composite Partitioned Tables
- Using Multicolumn Partitioning Keys
- Using Table Compression with Partitioned Tables
- Using Key Compression with Partitioned Indexes
- Creating Partitioned Index-Organized Tables
- Partitioning Restrictions for Multiple Block Sizes
- Maintaining Partitioned Tables
- Updating Indexes Automatically
- Adding Partitions
- Coalescing Partitions
- Dropping Partitions
- Exchanging Partitions
- Merging Partitions
- Modifying Default Attributes
- Modifying Real Attributes of Partitions
- Modifying List Partitions: Adding Values
- Modifying List Partitions: Dropping Values
- Modifying a Subpartition Template
- Moving Partitions
- Redefining Partitions Online
- Rebuilding Index Partitions
- Renaming Partitions
- Splitting Partitions
- Truncating Partitions
- Dropping Partitioned Tables
- Partitioned Tables and Indexes Example
- Viewing Information About Partitioned Tables and Indexes
- 18 Managing Clusters
- 19 Managing Hash Clusters
- 20 Managing Views, Sequences, and Synonyms
- 21 Using DBMS_REPAIR to Repair Data Block Corruption
- Part V Database Security
- 22 Managing Users and Securing the Database
- Part VI Database Resource Management and Task Scheduling
- 23 Managing Automatic System Tasks Using the Maintenance Window
- 24 Using the Database Resource Manager
- What Is the Database Resource Manager?
- Administering the Database Resource Manager
- Creating a Simple Resource Plan
- Creating Complex Resource Plans
- Managing Resource Consumer Groups
- Enabling the Database Resource Manager
- Putting It All Together: Database Resource Manager Examples
- Monitoring and Tuning the Database Resource Manager
- Interaction with Operating-System Resource Control
- Viewing Database Resource Manager Information
- 25 Moving from DBMS_JOB to DBMS_SCHEDULER
- 26 Scheduler Concepts
- 27 Using the Scheduler
- Scheduler Objects and Their Naming
- Using Jobs
- Using Programs
- Using Schedules
- Using Job Classes
- Using Windows
- Using Window Groups
- Using Events
- Using Chains
- Allocating Resources Among Jobs
- 28 Administering the Scheduler
- Configuring the Scheduler
- Monitoring and Managing the Scheduler
- How to View Scheduler Information
- How to View the Currently Active Window and Resource Plan
- How to View Scheduler Privileges
- How to Find Information About Currently Running Jobs
- How the Job Coordinator Works
- How to Monitor and Manage Window and Job Logs
- How to Manage Scheduler Privileges
- How to Drop a Job
- How to Drop a Running Job
- Why Does a Job Fail to Run?
- Job Recovery After a Failure
- How to Change Job Priorities
- How to Monitor Running Chains
- Why Does a Program Become Disabled?
- Why Does a Window Fail to Take Effect?
- How the Scheduler Guarantees Availability
- How to Handle Scheduler Security
- How to Manage the Scheduler in a RAC Environment
- Import/Export and the Scheduler
- Examples of Using the Scheduler
- Part VII Distributed Database Management
- 29 Distributed Database Concepts
- Distributed Database Architecture
- Database Links
- Distributed Database Administration
- Transaction Processing in a Distributed System
- Distributed Database Application Development
- Character Set Support for Distributed Environments
- 30 Managing a Distributed Database
- Managing Global Names in a Distributed System
- Creating Database Links
- Using Shared Database Links
- Managing Database Links
- Viewing Information About Database Links
- Creating Location Transparency
- Managing Statement Transparency
- Managing a Distributed Database: Examples
- 31 Developing Applications for a Distributed Database System
- Managing the Distribution of Application Data
- Controlling Connections Established by Database Links
- Maintaining Referential Integrity in a Distributed System
- Tuning Distributed Queries
- Handling Errors in Remote Procedures
- 32 Distributed Transactions Concepts
- What Are Distributed Transactions?
- Session Trees for Distributed Transactions
- Two-Phase Commit Mechanism
- In-Doubt Transactions
- Distributed Transaction Processing: Case Study
- Stage 1: Client Application Issues DML Statements
- Stage 2: Oracle Database Determines Commit Point Site
- Stage 3: Global Coordinator Sends Prepare Response
- Stage 4: Commit Point Site Commits
- Stage 5: Commit Point Site Informs Global Coordinator of Commit
- Stage 6: Global and Local Coordinators Tell All Nodes to Commit
- Stage 7: Global Coordinator and Commit Point Site Complete the Commit
- 33 Managing Distributed Transactions
- Specifying the Commit Point Strength of a Node
- Naming Transactions
- Viewing Information About Distributed Transactions
- Deciding How to Handle In-Doubt Transactions
- Manually Overriding In-Doubt Transactions
- Purging Pending Rows from the Data Dictionary
- Manually Committing an In-Doubt Transaction: Example
- Data Access Failures Due to Locks
- Simulating Distributed Transaction Failure
- Managing Read Consistency
- Index