Oracle 10g Administration Database Architecture, Creation and Interfaces Copyright ©2006, Custom Training Institute.

Slides:



Advertisements
Similar presentations
CHAPTER 4 Tablespaces and Datafiles. Introduction After installing the binaries, creating a database, and configuring your environment, the next logical.
Advertisements

ITEC474 INTRODUCTION.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Installation – Lecture 2 Copyright System Managers LLC 2007 all rights reserved.
Oracle 10g Database Administrator: Implementation and Administration
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
2 Copyright © 2009, Oracle. All rights reserved. Installing your Oracle Software.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
Simplify your Job – Automatic Storage Management Angelo Session id:
Chapter 4 Physical Database Layouts Database Processing Chapter 4.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
M ODULE 2 D ATABASE I NSTALLATION AND C ONFIGURATION Section 1: DBMS Installation 1 ITEC 450 Fall 2012.
Database Administration TableSpace & Data File Management
CHAPTER 2 Implementing a Database. Introduction to Creating Databases After you’ve installed the Oracle software, the next logical step is to create a.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
1Introduction Objectives 1-2 Course Objectives 1-3 Oracle Products 1-4 Relational Database Systems 1-5 How the Data Is Organized 1-6 Integrity Constraints.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
A Guide to Oracle9i1 Database Instance startup and shutdown.
Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.
10/23/2015ISYS366 - Installation1 ISYS366 Installation.
Oracle 10g Database Administrator: Implementation and Administration Chapter 1 Oracle Architecture Overview.
Database Administration 3.Using Administration Tools.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
44 Creating a Database. 4-2 Objectives Preparing the operating system Preparing the parameter file Creating the database Preparing the operating system.
6 Copyright © 2007, Oracle. All rights reserved. Managing Database Storage Structures.
Week 2 Lecture 1 Creating an Oracle Instance. Learning Objectives  Learn the steps for creating a database  Understand the prerequisites for creating.
Creating an Oracle Database. Considerations before creating a DB Planning for Database Creation –Select the standard database block size. –Use an undo.
Oracle 10g Automatic Storage Management Overview of ASM as a Storage Option for Oracle 10g.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
2 Copyright © 2004, Oracle. All rights reserved. Installing Oracle Database 10g Software.
Week 1 Lecture 1 Oracle Architecture Overview. Learning Objectives Learn about Oracle9i architecture and key Oracle9i software components Discover differences.
Oracle Applications 11i Concepts II Brian Hitchcock OCP 11i DBA -- OCP 10g DBA Sun Microsystems Brian Hitchcock.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
I NTRODUCTION OF W EEK 2  Assignment Discussion  Due this week:  1-1 (Exam Proctor): everyone including in TLC  1-2 (SQL Review): review SQL  Review.
2 Copyright © 2006, Oracle. All rights reserved. RAC and Shared Storage.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
Oracle Database Architectural Components
Oracle 10g Administration Database Control and Storage Structures Copyright ©2006 Custom Training Institute.
Unit 2 Preparing the Database Environment.
Initialization Parameters
Creating an Oracle Database
Introduction of Week 3 Assignment Discussion
Oracle Architecture Overview
Index Index.
Database administration
Presentation transcript:

Oracle 10g Administration Database Architecture, Creation and Interfaces Copyright ©2006, Custom Training Institute.

Oracle's Optimal Flexible Architecture (OFA) OFA is a set of guidelines and recommendations for an Oracle installation. Based on years of UNIX experience Created by Oracle Consulting Most of the guidelines involve making directories and placing files appropriately. Obvious when explained Anarchy reigned before their publication

Copyright ©2006, Custom Training Institute. Why Use Optimal Flexible Architecture (OFA) The database's objects are separated by object type and activity type. OFA helps in organizing large amounts of information. The amount of administration, monitoring and tuning, after initial setup, is minimized. The DBA has maximum flexibility in planning the physical layout of the database.

Copyright ©2006, Custom Training Institute. Problem: Where can new releases be installed? Solution: Use a location with a unique directory name. This provides an easy method to distinguish old files from new files. Uniform naming also simplifies the creation and reuse of scripts. OFA: Installing New Releases

Copyright ©2006, Custom Training Institute. OFA Paths Path: $ORACLE_BASE/product/TYPE_COUNT ER Example: /u01/app/oracle/product/10.1.0/ db_1 $ORACLE_BASE is /u01/app/oracle TYPE is db (for database) COUNTER is 1

Copyright ©2006, Custom Training Institute. OFA: Installing Scripts Problem: How can you create scripts that will not break with new releases? Solution: Use variables and wildcards. The instance "demo" might have administrative files: $ORACLE_BASE/admin/demo/pfile/* $ORACLE_BASE/admin/demo/create/* You can create a script using a variable for the SID (demo) that will work on any machine with any Oracle release.

Copyright ©2006, Custom Training Institute. OFA: Data File Placement Problem: Where should new data files be placed? Make the following considerations: Drives must be maintained. Scripts must be modified to find the data files. Backups must be executed. Solution: Use a uniform directory name at a uniform depth such as: \oradata\sid\system01.dbf. Create a script that references your data files using variables and wildcards.

Copyright ©2006, Custom Training Institute. Characteristics of an OFA-Compliant Installation Distributed, tuned I/O loads Safeguards against drive failures Distribution of Home directories Consistent database file naming Separation of tablespace contents

Copyright ©2006, Custom Training Institute. Separating Segments Special tablespaces: SYSAUX, SYSTEM, TEMP, UNDOTS required EXAMPLE and USERS tablespaces are optional

Copyright ©2006, Custom Training Institute. Occupants of the SYSAUX Tablespace Enterprise Manager Repository LogMiner Oracle Data Mining Statspack Job Scheduler Workspace Manager

Copyright ©2006, Custom Training Institute. ORACLE_HOME All files that relate to an Oracle release are stored in the ORACLE_HOME directory. You must monitor and record patch releases manually. Oracle10g allows you to define multiple ORACLE_HOMEs.

Copyright ©2006, Custom Training Institute. Syntax for Naming Oracle Home Directories /pm/h/u/v/type_n: /pm -- standard mount point h -- standard directory name u -- name of owner of directory v -- version of software type -- of installation n -- counter variable

Copyright ©2006, Custom Training Institute. Sample Syntax for Naming Oracle Home Directories /u01/app/oracle Oracle base directory created by user oracle /u01/app/applmgr Oracle base directory created by user applmgr

Copyright ©2006, Custom Training Institute. Sample OFA Directory Path /u01/app/oracle/10.1.0/db_1 First installation of the Oracle database software performed by user oracle /u01/app/jdoe/10.1.0/client_2 Second installation of the Oracle client software performed by user jdoe

Copyright ©2006, Custom Training Institute. Syntax for Naming Oracle Database Files under OFA Controlfiles: / /oradata/ /control##.ctl Redo log files: / /oradata/ /redo##.log Data files: / /oradata/ / ##.dbf

Copyright ©2006, Custom Training Institute. Sample OFA Data File Names Controlfile: /u01/oradata/ORCL/control01.ctl Redo log file: /u01/oradata/ORCL/redo03.log Data file: /u01/oradata/ORCL/system02.dbf

Copyright ©2006, Custom Training Institute. Naming Tablespaces under OFA Use maximum of eight characters for tablespace name. Effect on names of associated data files: Must be able to add two-digit counter and the four characters ". dbf " to end of file name Portable UNIX filenames are limited to 14 characters, so (( ) - 4 ) = 8: ENDUSERS01.DBF NAMERICA04.DBF ACCNTG11.DBF

Copyright ©2006, Custom Training Institute. OFA Layout Tips Group tables based on the following considerations and place them appropriately in different tablespaces. Fragmentation: Group tables with similar propensity to fragment. This helps in storage management. Life span: Dropping tables causes fragmentation. Group tables by their life span.

Copyright ©2006, Custom Training Institute. Contention: Two segments can be hot at the same time. Place them on different I/O controllers. Avoid placing them in the same tablespace. Operational ease: Group tables by the frequency of their backups or type of use. More OFA Layout Tips

Copyright ©2006, Custom Training Institute. Further Reading on OFA Consult the Oracle online documentation: docs/html/B10811_01/app_ofa.htm

Copyright ©2006, Custom Training Institute. Automatic Storage Management High-performance storage management feature. Special Oracle instance (ASM Instance) spreads data across devices in "disk groups." Data may be two-way mirrored or three- way mirrored. Instance balances data to eliminate most manual disk tuning issues.

Copyright ©2006, Custom Training Institute. ASM Disk Space Requirements External redundancy: One disk Minimum 1.15 GB for data files Minimum 2.30 GB for recovery files Minimum 3.45 GB for data and recovery files

Copyright ©2006, Custom Training Institute. ASM Disk Space Requirements Normal redundancy: Two disks Minimum 2.30 GB for data files Minimum 4.60 GB for recovery files Minimum 6.90 GB for data and recovery files

Copyright ©2006, Custom Training Institute. ASM Disk Space Requirements High redundancy: Three disks Minimum 3.45 GB for data files Minimum 6.90 GB for recovery files Minimum GB for data and recovery files

Copyright ©2006, Custom Training Institute. Verifying ASM File system: more /etc/oratab more /var/opt/etc/oratab Look for line of the form +ASM:oracle_home_path:N Set ORACLE_HOME and ORACLE_SID. Connect to ASM instance as SYS user with SYSDBA privilege. Start instance, if needed.

Copyright ©2006, Custom Training Institute. Verifying ASM Connect: sqlplus "SYS/syspassword AS SYSDBA" Start ASM instance, if needed. startup Verify: select name, type, total_mb, free_mb from v$asm_diskgroup

Copyright ©2006, Custom Training Institute. Oracle Database Architecture Physical Files: Data files Control files Redo log files Logical Architecture: Tablespaces Extents Segments Blocks

Copyright ©2006, Custom Training Institute. Tablespace Types Smallfile tablespace (default): Up to 1022 files in a tablespace Up to 4 million blocks in each file Bigfile tablespace: One file per tablespace Up to 4 billion blocks in the file

Copyright ©2006, Custom Training Institute. Oracle Instance Architecture Dedicated server vs. Shared server ASM instances vs. "regular instances"

Copyright ©2006, Custom Training Institute. Oracle Dedicated Server Architecture One-to-one mapping between end user processes and server processes. Server process goes idle in between handling end user requests.

Copyright ©2006, Custom Training Institute. Oracle Dedicated Server Architecture

Copyright ©2006, Custom Training Institute. Oracle Dedicated Server Architecture More information is available online at

Copyright ©2006, Custom Training Institute. Oracle Shared Server Architecture Requests come in from many users. Dispatcher directs requests to 'pool' of shared server processes. Once request is handled, process returns to pool. More efficient use of resources. More simultaneous users.

Copyright ©2006, Custom Training Institute. Oracle Shared Server Architecture

Copyright ©2006, Custom Training Institute. Oracle Shared Server Architecture More information is available in the online documentation at

Copyright ©2006, Custom Training Institute. Oracle Database Interfaces SQL Interface Java Interface C++ Interface PL/SQL Interface

Copyright ©2006, Custom Training Institute. SQL Interface Ultimate final gateway into an Oracle database. Uses built-in security checks to protect data.

Copyright ©2006, Custom Training Institute. Java Interface Direct interaction with Java Virtual Machine (JVM). Ability to call Java stored procedures from PL/SQL, and vice versa. Ability to access SQL data directly from Java.

Copyright ©2006, Custom Training Institute. Java Component Structure

Copyright ©2006, Custom Training Institute. C++ Interface Oracle Pro*C/C++ Precompiler Embeds SQL statements in C/C++ application code Precompiler generates calls to Oracle Runtime Library (SQLLIB) Compile, link and execute C/C++ program using usual techniques

Copyright ©2006, Custom Training Institute. Conceptual Use of the Pro*C/C++ Precompiler Copyright ©2006, Custom Training Institute.

PL/SQL Interface Embed PL/SQL calls in Pro*C/C++ code: EXEC SQL EXECUTE DECLARE … BEGIN … END; END-EXEC;

Copyright ©2006, Custom Training Institute. Precompiler Options SQLCHECK=SEMANTICS PL/SQL code needs to be parsed at the server USERID Specify user ID (for server connection) Additional precompiler options available at

Copyright ©2006, Custom Training Institute. Summary Oracle Database Architecture Oracle Database Creation and Layout Oracle Database Interfaces