Documente Academic
Documente Profesional
Documente Cultură
Brian Hitchcock OCP 11i DBA -- OCP 10g DBA Sun Microsystems
brian.hitchcock@sun.com brhora@aol.com
www.brianhitchcock.net
Page 1
Presentation is Available
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 2
Contents
Oracle Applications Concepts I
What is Oracle Applications? 11i Architecture Oracle Application Tiers Login to Oracle Applications Online Oracle Application environments 11i Applications Filesystem Applications DBA utilities Database DBA vs 11i DBA Backups Resources
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 3
Focus
Generic Oracle Applications concepts Not tied to specific installation(s) Provide background for how Apps works Help with support tasks in general Technical
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 4
Top directory for all Oracle Application software Contains $PROD_TOP for each product Applications patches make changes in APPL_TOP Environment files NFS mounted filesystem Shared by two or more application tier servers Apply patches once for all application tiers Single point of failure
Page 5
www.brianhitchcock.net
Brian Hitchcock February 10, 2008
APPL_TOP
Contains product directories
ORA_TOP
8.0.6 Forms - ORACLE_HOME for forms server iAS Web Server (Apache) - ORACLE_HOME for web server
COMMON_TOP
Directories/files used across products
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 6
ORACLE_HOME
ORACLE_HOME for database Database software
/oradata01-05
Database tablespace datafiles
Three ORACLE_HOMES
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 7
Environment Files
Many pieces of software All need to be configured Many environment variables to be setup How is this done?
Overall configuration file <context>.xml Context is <SID>_<hostname> Stored in $APPL_TOP/admin Multiple environment files sourced at login Stored in $APPL_TOP APPSORA.env calls other environment files
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 8
OS Users
Can install with single OS user We use two
UNIX user oracle UNIX user applmgr Refers to the application code owner Will be different for other installations
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 9
11i AutoConfig
Many configuration files
Automates most configuration tasks Make changes to context file Execute autoconfig Changes propagated to configuration files May overwrite non-standard modifications
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 10
11i Cloning
Create exact copy of applications environment
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 11
11i Patching
Never ending process Applications patches applied with adpatch
Some database patches applied with opatch Must be in maintenance mode to apply patch (11.5.10) Patch cant be removed Only recourse is to recover from filesystem backups
Patches change product software Patches change database objects Applied patches recorded in database
Database must be running while patch applied Applications tier processes down while patching
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 12
Show patches applied Show impact of new patches Performance metrics Monitor security Configure environment
Edit context file, run autoconfig
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 13
Oracle Database Users Access database (SQL*Plus, etc) Have specific privileges on database objects Stored in DBA_USERS table Oracle Application Users Dont access the database directly Dont have privileges on database objects Have responsibilities in Oracle Applications Access db through APPS db user - Access limited by responsibilities Stored in FND_USER table
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 14
Database
SYS, SYSTEM, db user with DBA role
Oracle Applications
SYSADMIN User with System Administrator responsibility
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 15
Granted on specific db objects Granted to specific db users or roles Assigned to Oracle Applications users Allow access to groups of db objects Access is through APPS db user
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 16
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 17
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 18
Backups
How can this be complicated? Database backups well defined
Copy all database datafiles (*.dbf files) Copy init.ora, tnsnames.ora etc. Copy archived redo logs if needed (hot db backup) Database Application software tree
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 19
Backups
Complete cold backup
Multi-tier
Shutdown all tiers Backup all filesystems on all tiers to tape
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 20
Backups
Hot backup version 1
Multi-tier
Hot db backup to disk Copy all filesystems to tape for all tiers
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 21
Backups
Hot backup version 1 issues
Assumes application code tree is static Assumes configuration static Log files may be lost
Generated during tape backup
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 22
Backups
Hot backup version 2
Multi-tier
Hot db backup to disk Copy only db backup files to tape
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 23
Backups
Hot backup version 2 issues
Same as for version 1 Over longer time Applications file system recovery
Back to most recent tape backup Out of synch with db backup
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 24
Backups DR Systems
How to keep DR system in synch?
Database
Apply redo logs from primary Keep DR database up with primary db
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 25
Resources
Oracle Documents
www.oracle.com/education/oln
education.oracle.com Oracle Applications Environments
Solution Beacon
Books
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 26
Oracle Documents
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 27
Oracle Documents
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 28
Oracle Documents
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 29
Oracle Documents
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 30
Oracle Documents
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 31
Oracle Documents
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 32
Documentation
Technical Overview
Available at
http://download.oracle.com/docs/cd/B25516_18/cu rrent/acrobat/11iconcepts.pdf
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 33
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 34
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 35
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 36
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 37
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 38
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 39
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 40
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 41
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 42
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 43
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 44
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 45
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 46
www.brianhitchcock.net
Brian Hitchcock February 10, 2008 Page 47