Oracle on Linux, what you should know - PowerPoint PPT Presentation

1 / 39
About This Presentation
Title:

Oracle on Linux, what you should know

Description:

SAN DIEGO. 3. 4835 OAK ST. 100. BIGONGER. BRENT. COUNTRY. POSTALCODE. STATE. CITY. APARTMENT ... Usually for very high traffic systems. Storage Options. Oracle ... – PowerPoint PPT presentation

Number of Views:162
Avg rating:3.0/5.0
Slides: 40
Provided by: BB187
Category:
Tags: diego | know | linux | oracle | san | traffic

less

Transcript and Presenter's Notes

Title: Oracle on Linux, what you should know


1
Oracle on Linux, what you should know
  • Brent Bigonger, Manager of Technical Services
  • ServerCare, Inc. www.servercare.com 888.918-6309

2
  • Managed Services (Remote DBA)
  • Installation
  • Configuration and troubleshooting
  • Performance Tuning
  • Security Checks
  • Systems Administration
  • Backup and Recovery

October SDOSSO Members Only Special Free Basic
Oracle Database Health Check
3
Good Evening, Im
  • Brent Bigonger, Manager of Technical Services
  • Using Oracle since version 7
  • Worked in various industries including utilities,
    telecom and education
  • Background in Systems Administration
  • Significant experience with RAC and Data Guard
    environments on Linux and Solaris

888-918-6309 http//www.ServerCare.com
4
Presentation Outline
  • Why and Why not Oracle
  • Oracle and Linux
  • Versions of Oracle
  • Oracle Database Architecture
  • Database Management
  • Backups
  • Best Practices
  • Gotchas
  • High Availability
  • Oracle 11g Notable New Features

5
Why and Why not Oracle
6
Why Not Oracle?
  • Cost!!!
  • Complexity?
  • Free competition
  • Other reasons??

7
Why Oracle
  • Overall performance
  • Very, very mature - Reliable
  • Ease of expansion/growth
  • Backup/Recovery
  • Online maintenance, patches and upgrades
  • LOTS of online resources
  • Availability of Oracle tools
  • Runs on almost any server platform
  • High Availability Options
  • Clustering Technology
  • Light years ahead of others
  • Flashback Technology
  • Options ONLY available on Oracle

8
Oracle and Linux
9
Oracle and Linux
  • Tier 1 development platform
  • First platform for upgrades
  • Open source donation of Clustered File System
    (OCFS2)
  • Offering Linux Support for Red Hat SUSE
  • Oracle Enterprise Linux
  • Oracle Database 10g Express Edition
  • Development, deployment and distribution
  • Berkeley Embedded DB (open source)

10
Versions of Oracle
11
Oracle Versions
  • Oracle Enterprise Edition
  • Oracle Standard Edition
  • Oracle Standard Edition One
  • Very minor limitations
  • 2 CPUs
  • 5 User minimum
  • Oracle 10g Express Edition
  • Free!!
  • Some Limitations
  • CPU
  • Memory
  • DB Size
  • No official Oracle support

12
Oracle 10g Express Edition
  • Available for
  • Debian, Mandriva, Novell, Red Hat and Ubuntu
  • Installs as RPM or DEB
  • Up and running in minutes
  • Good documentation
  • 4 GB space limitation
  • Larger than you may think
  • Prune data
  • Link to other DBs
  • Management
  • Extremely simplified
  • NOT less featured

13
Oracle Database Architecture
14
Entity Relationship Diagram
15
Rows and Columns
16
Oracle Architecture
17
Database Management
18
Oracle Tools
  • sqlplus, lsnrctl, exp/imp, dbca, netca
  • JDeveloper
  • Eclipse Plug-in
  • Oracle Designer
  • Migration Workbench
  • Application Express (APEX)
  • Statspack
  • SQL Developer
  • Oracle Enterprise Manager
  • Many others

19
Oracle Enterprise Manager
  • Dbconsole
  • Included in every 10g database
  • Graphical Administration for most tasks
  • Administer the complete Oracle environment
  • Database, application servers, hosts, storage
  • Grid Control
  • Diagnose, modify, and tune multiple databases
  • Share tasks with other administrators
  • Plug-in Architecture
  • Firewalls, 3rd party Storage Vendors, Load
    Balancers, etc.

20
Database Management Demos
21
SQL Developer
22
SQL Developer
23
SQL Developer
24
SQL Developer
25
Oracle Enterprise Manager
26
Oracle Enterprise Manager
27
Oracle Enterprise Manager
28
Oracle Enterprise Manager
29
Oracle Enterprise Manager
30
Oracle Enterprise Manager
31
Oracle Enterprise Manager
32
Oracle Enterprise Manager
33
(No Transcript)
34
Oracle Enterprise Manager
35
Backups
36
Backups
  • Hot vs. Cold
  • Archive log mode
  • Use Recovery Manager (RMAN)!
  • Far superior to older user managed hot backups
  • Key data structures for backup/recovery
  • Datafiles
  • Control files
  • Online redo logs DONT backup them up though
  • Mirror or multiplex them
  • Archived redo logs
  • Oracle software home
  • Configuration files
  • init.ora or spfile, password file, tnsnames.ora,
    sqlnet.ora

37
RMAN
  • Block level backups
  • Used for hot and cold backups
  • Use repository, if possible
  • Retention policy
  • Recovery Window
  • Backup Redundancy
  • Database cloning
  • Backup validation options
  • Built in management
  • Good options for very large databases
  • Only for Oracle database files

38
Backups and Exports
  • Backup
  • Binary format
  • Used for database disaster recovery
  • Bring database to particular point in time (with
    archive logs)
  • Export
  • Uses insert statements
  • Usually for fine-grained data recovery
  • Accidental data deletes, table drops, etc.
  • An export is not a backup, a backup is not quite
    an export
  • Flashback technology

39
Best Practices
40
General Best Practices
  • Always use ARCHIVELOG mode in production
  • Always mirror or multiplex redo logs
  • Use RMAN for easy backups
  • Take backups AND exports if possible
  • Patch to latest service release
  • Separate database machine from backups!!
  • Always keep up with security updates
  • database root kits
  • Keep up with patches if possible
  • Apply few changes at a time

41
Storage Layout Best Practices
  • More disks are better!
  • Consider separating redo logs
  • Physically separate data datafiles index
    datafiles old concept
  • Spread out control files
  • Avoid RAID 5 if possible
  • Use large stripe size, if applicable
  • Use asynchronous I/O
  • Need support in OS and DB
  • Can sometime use slack redo space for backups

42
Hardware Best Practices
  • Use a 64-bit architecture machine
  • Oracle specifically compiled for optimization
  • Redundant server and/or storage infrastructure if
    possible
  • Dual Core CPUs only counts as a of a CPU
  • Usually more bang for buck

43
Gotchas
44
Gotchas
  • Installation Issues
  • Required packages (especially 64-bit Linux)
  • Documentation is good, but not perfect
  • No text based installer anymore
  • Management
  • NEVER delete the oldest archive log
  • Archive logs not deleted automatically
  • RMAN
  • Many minor RAC issues fixed in latest DB version
  • Oracle Support
  • Expensive
  • Difficult to work with

45
High Availability
46
RAC Architecture
  • Clustered nodes
  • Interconnect Network
  • Shared storage

47
Oracle Data Guard
1) Write local redo 2) SYNC send redo 3) Receive
redo 4) Acknowledge 5) Post receipt to LGWR
48
Standby Database
49
Oracle 11g Notable New Features
50
11g - Notable New Features
  • Workload Capture and Replay (load testing)
  • New ASM cloning features to rapidly add new nodes
  • ASM Preferred Mirror reads
  • Rolling upgrades of ASM mixed versions of ASM
    okay
  • Can convert single instance to RAC if on ASM
  • Improved management diagnostics of RAC
  • New Data Guard features (another HA product)
  • New direct NFS client in the Oracle kernel

51
Where to get more information
  • Oracle Technical Network
  • http//www.oracle.com/technology/index.html
  • Ask me
  • bbigonger_at_servercare.com
  • 888-918-6309
  • ServerCare web site for this presentation and
    others
  • http//www.servercare.com/downloads-page.html
  • Lots of info all over the internet

52
Questions?
  • Lots of items covered
  • If we didnt cover something you wanted to hear,
    please ask or contact me

bbigonger_at_servercare.com 888-918-6309
www.ServerCare.com
53
Oracle on Linux, what you should know
THANK YOU!
bbigonger_at_servercare.com 888-918-6309
www.ServerCare.com
54
ORACLE RAC DETAILS
55
Why RAC?
  • Load Balancing
  • Automatic (and in come cases transparent)
    failover
  • Lower cost hardware
  • Ease of expansion/growth
  • Total performance
  • Free with Standard Edition of Oracle
  • Can avoid single point of failure

56
Why Not RAC?
  • Complexity, difficult to manage
  • Site disaster (Data Guard instead)
  • Raw performance (overhead)
  • Extra cost with Enterprise Edition of Oracle
  • Deserves careful planning and setup
  • Somewhat sensitive/fickle

57
Network Interfaces
  • Public IP
  • Private IPs
  • Virtual IP

Public Network
Switch
Public IP VIP
Public IP VIP
eth0
eth0
rac2
rac1
eth1
eth1
Interconnect
Interconnect
Gigabit switch
Private network
Fibre Channel
Fibre Channel
58
Interconnect Network
  • Main component for Cache Fusion
  • Interconnect uses non-routable, private network
  • Protocol UDP and RDS gt 10.2.0.3
  • Typical bandwidth utilization 20-30, saturated
    gt 70

59
SGA Structure Processes
60
Storage
61
SAN vs. NAS
  • SAN
  • Offers the top performance
  • Typically SCSI/Fiber Channel
  • More expensive
  • Usually harder to manage
  • Only server-class machines usually able to
    connect
  • NAS
  • Multi-host filesystem access for all machines
  • Less Expensive
  • Usually easier to manage
  • Only certain vendors certified for Oracle RAC
  • Theoretically latency can play a factor
  • Usually for very high traffic systems

62
Storage Options
  • Oracle Cluster File System 2 (OCFS2)
  • Certified Vendor Cluster File System
  • Sun, Red Hat, HP, IBM
  • Automatic Storage Management (ASM)
  • NFS
  • Raw
  • iSCSI

63
ASM
  • Out-Of-The-Box Functionality
  • Flexible Storage Configuration
  • Fault Tolerance
  • I/O Load Balancing
  • Uses OS raw devices

64
Oracle Enterprise Manager
Write a Comment
User Comments (0)
About PowerShow.com