SlideShare une entreprise Scribd logo
1  sur  35
Télécharger pour lire hors ligne
Oracle DBA
Some tips and Best Practices
To become a successful professional

APAC OTN Tour 2012
8/9i/10g/11g OCP, RAC OCE, AS OCA, E-Business OCP , SQL /PLSQL
OCA , Oracle 7 OCM
Oracle 7 , Oracle 11gR2 and OVM 3.1 Beta Tester
ITIL Certified
Blog: http://oraclenz.wordpress.com
Email: mbatec@hotmail.com
Twitter: fcomunoz

FRANCISCO MUNOZ ALVAREZ
Oracle ACE Director
NZOUG President
LAOUC President
CLOUG President
IOUC LA Spokesperson
Revera – Oracle Professional Services Manager

Revera - Copyright 2010

2
Revera - Copyright 2010

3
Revera - Copyright 2010

4
Born
here

Grow up
here

Got Married
Here

Revera - Copyright 2010

Mature
here

Now Living
here

5
Agenda
1

Change yourself

2

The 3 Rules

3

Evolution of the DBA Role

4

Some tips and best practices

5

The 3 DBAs

Revera - Copyright 2010

6
First: Learn to
Change Yourself
If do you want to
become a successful
professional, first you
need to educate yourself
to be successful!
Your future success
depends only in your
attitude today! You
control your life, nobody
else!

Comm.

SUCCESS
Attitude

Success

Innovate

Research

Revera - Copyright 2010

7
8
My 3 Rules

1

Protect Your Data

2

Always Try Before

3

Backup, Backup & Backup
Protect your data!

“The most important rule with
respect to data is to never put
yourself into an unrecoverable
situation.”

The importance of this guideline cannot be stressed enough,
but it does not mean that you can never use time saving or
performance enhancing options.

10
Always Try it Before!

When it comes to theory, “NEVER” believe anything you
hear or read until you have tried it yourself.

11
12
Backup, Backup &
Backup

Why? Because bad
stuff happens…

13
Servers (DB/AS)
, NET, Security ...

DBA

Oracle DBs

Backups

DW

Other DBAs
And Developers

RAC

DR &
Standby DBs

System & Net. Admin.

You named

Finance

HR

MySQL
SQL Server
DB2,etc

14
Some tips and Best Practices

Copyright 2010

15
Backup, Backup & Backup
Why

Normal
Approach

•Nothing bad will happen … is a
easy change…
•I test it before and nothing
happens …

•Remember each
environment is different
Always Backup before a
change
Always Backup after a
change
If possible Encrypt
Backups for your security

Copyright 2009

•Reduce Risks
Allow an easy Rollback if
necessary
Could save your job

16
Have a Good Backup Strategy
Normal
Approach

Backup your Archivelogs
to tape several times a day
Generate a daily
Datapump for logical
recover, just in case…

•I have a full backup daily, that’s
enough!

Revera - Copyright 2010

Why

Reduce Risks
Will have your users
happy when ask you to
recover a table from last
week…
Always be proactive, use
the “What if…” Methodology

17
A massive data outage for Sidekick handheld users has become a massive
PR headache for Microsoft and carrier T-Mobile.
A massive data outage in Microsoft's Danger unit left many T-Mobile
Sidekick users without access to their calendar, address book, and other
key data. However, things got even worse as Microsoft said in a statement
that data not recovered thus far may be permanently lost. Microsoft and
T-Mobile have not said how many of the roughly 800,000 Sidekick
customers have lost data.
T-Mobile USA has, at least temporarily, stopped selling all models of the
device as the company continues to investigate the recent problems.
Separate Environments
Why

Normal
Approach

Yes, we have a Dev/Test/Prod.
But they are in the same server…
Everyone know what each one
is doing…
We are saving money to the
company…

One server for each
environment (Think about
OVM)
Developers only need to
have full access to Dev
Transform Test and Prod
in High Secure areas

Revera - Copyright 2010

Reduce Risks
Allow you to be really
responsible for the
Environments
Protect System
Performance and Availability
Protect Business
Continuity

19
Have a Change Register
Normal
Approach

It’s an small change, no one
will notice…
It will not affect no one…
It’s better to say sorry than ask
for authorization…

Why
Create your own
promotion procedures
Always create a Change
Request
Always try to involve all
affected users
Always only promote
changes after obtain all
approvals
(Share responsibility)

Revera - Copyright 2010

Will allow you to
document and review the
process.
Will allow others to
review your process.
Will contain all approvals
and tests (for your safety
and mental health)
In case a system is
affected, will be easy to
detect was changed!

20
What’s an Incident?
“An incident is always when something affects the
business continuity or the business revenue”

Copyright 2010

21
Incident is always a priority
Investigate and solve it as
soon as possible
After solved, create an
Incident report, it will help
you to:
1. Detect the root cause of
the problem
2. Document how it can be
prevented to happen
again
3. Document all steps to
solve the problem

Normal
Approach

I will do it early in the morning
when back to the office…
It can wait a few minutes
more, I’m on break now…
It’s lunch time, will take a look
when back…

Copyright 2010

Why

Reduce Company
Revenue losses
Will save your job
Shows that you really
care about your Employer

22
Avoid Dead Locks
Normal
Approach

•Dead Locks are Developers
fault…

Why
Create Index on Foreign
Keys (Script on
oraclenz.wordpress.com )
Check for Bitmap Indexes
on OLTP Environment

Copyright 2010

Improves DB Performance
Will help you to have a
good relationship with
Developers

23
Automatic Processes
Normal
Approach

I can do it by myself…
I love to be involved on
everything…
I love to create users, extend
tablespaces, change passwords…
I love to run a checklist every
day…

Why
If a process or work can
be made automatic, do it!
If it can’t be made
automatic, try to delegate
it!

Copyright 2010

•You have more important
stuff to do!

24
Oracle Homes
Why

Normal
Approach

/u01/app/oracle/product/10.2/db_
1
Patches are applied to the same
Oracle Home

•Reduce Risks
Allow an easy Rollback if
necessary
All versions Catalog
scripts will be preserved

Use a different Oracle Home for each upgrade
or Patching, example:
/u01/app/oracle/product/10.2/db_02
For the next patch, use a new Oracle Home
/u01/app/oracle/product/10.2/db_03
/u01/app/oracle/product/10.2/asm_02

Copyright 2010

25
DB Init Parameters
Normal
Approach

Will change them only when
required!

Be proactive, set all
parameters your
environment will need now,
specially the ones you can’t
not modify later using
ALTER SYSTEM.
Remember to set
_trace_files_public = TRUE,
soon or later you will need
to give access to some trace
files to the developers.

Copyright 2010

Why

•Will avoid inconvenient
restarts of the DB.
•Will save you time and
headaches
•Be proactive always will
improve your DB
performance and availability

26
.LOG Extension
Why

Normal
Approach

I always use .log for my redolog
files… is the standard!

•Someone (including you)
could delete it by mistake.
•Use a different extension
for redo logs like .RDO

Copyright 2010

27
Metadata Repository
Normal
Approach

I have all I need on my current
DB.
I use my Dev/Test as a DDL
repository.

Why

Allow you to detect
changes easily.
Allow you to create your
own Version Control.
You never know when
you will need it

Create your own metadata
repository.
Use datapump for this :

$ expdp user/password content=metadata_only full=y directory=datapump dumpfile=metadata_24112010.dmp
$ impdp user/password directory=datapump dumpfile= metadata_24112010.dmp sqlfile=metadata_24112010.sql

Copyright 2010

28
Non OFA Layout

Normal
Approach

Let’s Oracle manage all using
OFA, that way all will be standard
on all environments.

/oracle/(prod/qa/test/dev)/SID/*
/u01/udump – for user files
/proddata/SID/*
/prodbackup/SID/*
/prodlogs/SID/*

Copyright 2010

Why

•Easy to manage and keep
organized
•Allow you to use different
mount points
•Reduce Risks

29
Study, Study & Study
Why

Normal
Approach

I know everything I need…

•Will keep you up to date
• You never know when you
will need to use it
Will help with your
professional development

Read Manuals
/Read the official documentation at http://tahiti.oracle.com
Read and practice OBE at OTN website
Help others at OTN Forums (Fantastic way to learn)
Participate at OUG Activities (If possible try to speak)

Copyright 2010

30
Listen! Ask Question! Be involved
Why

Normal
Approach

I just will do something when
asked to do…
If is working I don’t need to
care…

Don't just sit back
waiting for the create table
requests.
Learn more about your
systems and users

Copyright 2010

•Know what to do before
necessary
•Allow you to know who to
contact in case of…
•Show how engaged you
are with the company

31
3 Kind of DBA’s

1

The Firefighter

2

The Proactive

3

The Balanced
What kind of DBA are you?

Copyright 2010

34
Questions? Comments?
Francisco Munoz Alvarez

Auckland
New Zealand
mbatec@hotmail.com

Copyright 2010

35

Contenu connexe

Similaire à DBA Tips and Tricks - Presentation

White Paper, How to improve your Oracle career
White Paper, How to improve your Oracle careerWhite Paper, How to improve your Oracle career
White Paper, How to improve your Oracle careerFrancisco Alvarez
 
A33 tips and best practice for db as by francisco alvarez
A33 tips and best practice for db as by francisco alvarezA33 tips and best practice for db as by francisco alvarez
A33 tips and best practice for db as by francisco alvarezInsight Technology, Inc.
 
Top 10 DBA Mistakes on Microsoft SQL Server
Top 10 DBA Mistakes on Microsoft SQL ServerTop 10 DBA Mistakes on Microsoft SQL Server
Top 10 DBA Mistakes on Microsoft SQL ServerKevin Kline
 
Dev Ops for systems of record - Talk at Agile Australia 2015
Dev Ops for systems of record - Talk at Agile Australia 2015Dev Ops for systems of record - Talk at Agile Australia 2015
Dev Ops for systems of record - Talk at Agile Australia 2015Mirco Hering
 
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent OzarGeek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent OzarIDERA Software
 
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...Pini Dibask
 
2014-10 DevOps NFi - Why it's a good idea to deploy 10 times per day v1.0
2014-10 DevOps NFi - Why it's a good idea to deploy 10 times per day v1.02014-10 DevOps NFi - Why it's a good idea to deploy 10 times per day v1.0
2014-10 DevOps NFi - Why it's a good idea to deploy 10 times per day v1.0Joakim Lindbom
 
Magic With Oracle - Presentation
Magic With Oracle - PresentationMagic With Oracle - Presentation
Magic With Oracle - PresentationFrancisco Alvarez
 
What is DevOps?
What is DevOps?What is DevOps?
What is DevOps?jeckels
 
Oracle R12 Upgrade Lessons Learned
Oracle R12 Upgrade Lessons LearnedOracle R12 Upgrade Lessons Learned
Oracle R12 Upgrade Lessons Learnedbpellot
 
How to Create a Runbook: A Guide for Sysadmins & MSPs
How to Create a Runbook: A Guide for Sysadmins & MSPsHow to Create a Runbook: A Guide for Sysadmins & MSPs
How to Create a Runbook: A Guide for Sysadmins & MSPsLizzyManz
 
Pareto will tell you to stop using your ORM - Mateo Collina
Pareto will tell you to stop using your ORM - Mateo CollinaPareto will tell you to stop using your ORM - Mateo Collina
Pareto will tell you to stop using your ORM - Mateo CollinaWey Wey Web
 
DevOps - Understanding Core Concepts
DevOps - Understanding Core ConceptsDevOps - Understanding Core Concepts
DevOps - Understanding Core ConceptsNitin Bhide
 
Troubleshooting: The Two Laws - IXIASOFT User Conference 2016
Troubleshooting: The Two Laws - IXIASOFT User Conference 2016Troubleshooting: The Two Laws - IXIASOFT User Conference 2016
Troubleshooting: The Two Laws - IXIASOFT User Conference 2016IXIASOFT
 
Become a Better Developer with Debugging Techniques for Drupal (and more!)
Become a Better Developer with Debugging Techniques for Drupal (and more!)Become a Better Developer with Debugging Techniques for Drupal (and more!)
Become a Better Developer with Debugging Techniques for Drupal (and more!)Acquia
 
Derby con 2014
Derby con 2014Derby con 2014
Derby con 2014TonikJDK
 
The 5 Minute MySQL DBA
The 5 Minute MySQL DBAThe 5 Minute MySQL DBA
The 5 Minute MySQL DBAIrawan Soetomo
 
Myths & Reality - Choose a DBMS tailored to your use cases
Myths & Reality - Choose a DBMS tailored to your use casesMyths & Reality - Choose a DBMS tailored to your use cases
Myths & Reality - Choose a DBMS tailored to your use casesOVHcloud
 

Similaire à DBA Tips and Tricks - Presentation (20)

Dba tips and_tricks
Dba tips and_tricksDba tips and_tricks
Dba tips and_tricks
 
White Paper, How to improve your Oracle career
White Paper, How to improve your Oracle careerWhite Paper, How to improve your Oracle career
White Paper, How to improve your Oracle career
 
A33 tips and best practice for db as by francisco alvarez
A33 tips and best practice for db as by francisco alvarezA33 tips and best practice for db as by francisco alvarez
A33 tips and best practice for db as by francisco alvarez
 
Top 10 DBA Mistakes on Microsoft SQL Server
Top 10 DBA Mistakes on Microsoft SQL ServerTop 10 DBA Mistakes on Microsoft SQL Server
Top 10 DBA Mistakes on Microsoft SQL Server
 
Dev Ops for systems of record - Talk at Agile Australia 2015
Dev Ops for systems of record - Talk at Agile Australia 2015Dev Ops for systems of record - Talk at Agile Australia 2015
Dev Ops for systems of record - Talk at Agile Australia 2015
 
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent OzarGeek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
 
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...
 
2014-10 DevOps NFi - Why it's a good idea to deploy 10 times per day v1.0
2014-10 DevOps NFi - Why it's a good idea to deploy 10 times per day v1.02014-10 DevOps NFi - Why it's a good idea to deploy 10 times per day v1.0
2014-10 DevOps NFi - Why it's a good idea to deploy 10 times per day v1.0
 
Lug
LugLug
Lug
 
Magic With Oracle - Presentation
Magic With Oracle - PresentationMagic With Oracle - Presentation
Magic With Oracle - Presentation
 
What is DevOps?
What is DevOps?What is DevOps?
What is DevOps?
 
Oracle R12 Upgrade Lessons Learned
Oracle R12 Upgrade Lessons LearnedOracle R12 Upgrade Lessons Learned
Oracle R12 Upgrade Lessons Learned
 
How to Create a Runbook: A Guide for Sysadmins & MSPs
How to Create a Runbook: A Guide for Sysadmins & MSPsHow to Create a Runbook: A Guide for Sysadmins & MSPs
How to Create a Runbook: A Guide for Sysadmins & MSPs
 
Pareto will tell you to stop using your ORM - Mateo Collina
Pareto will tell you to stop using your ORM - Mateo CollinaPareto will tell you to stop using your ORM - Mateo Collina
Pareto will tell you to stop using your ORM - Mateo Collina
 
DevOps - Understanding Core Concepts
DevOps - Understanding Core ConceptsDevOps - Understanding Core Concepts
DevOps - Understanding Core Concepts
 
Troubleshooting: The Two Laws - IXIASOFT User Conference 2016
Troubleshooting: The Two Laws - IXIASOFT User Conference 2016Troubleshooting: The Two Laws - IXIASOFT User Conference 2016
Troubleshooting: The Two Laws - IXIASOFT User Conference 2016
 
Become a Better Developer with Debugging Techniques for Drupal (and more!)
Become a Better Developer with Debugging Techniques for Drupal (and more!)Become a Better Developer with Debugging Techniques for Drupal (and more!)
Become a Better Developer with Debugging Techniques for Drupal (and more!)
 
Derby con 2014
Derby con 2014Derby con 2014
Derby con 2014
 
The 5 Minute MySQL DBA
The 5 Minute MySQL DBAThe 5 Minute MySQL DBA
The 5 Minute MySQL DBA
 
Myths & Reality - Choose a DBMS tailored to your use cases
Myths & Reality - Choose a DBMS tailored to your use casesMyths & Reality - Choose a DBMS tailored to your use cases
Myths & Reality - Choose a DBMS tailored to your use cases
 

Plus de Francisco Alvarez

11g New Features and Enhancements for Backup and Recovery
11g New Features and Enhancements for Backup and Recovery11g New Features and Enhancements for Backup and Recovery
11g New Features and Enhancements for Backup and RecoveryFrancisco Alvarez
 
Don't be afraid of auditors - Presentation
Don't be afraid of auditors - PresentationDon't be afraid of auditors - Presentation
Don't be afraid of auditors - PresentationFrancisco Alvarez
 
White Paper - What is new at 11g for Backup and Recovery
White Paper - What is new at 11g for Backup and RecoveryWhite Paper - What is new at 11g for Backup and Recovery
White Paper - What is new at 11g for Backup and RecoveryFrancisco Alvarez
 
White Paper - Why Use Oracle VM for Oracle Databases
White Paper - Why Use Oracle VM for Oracle DatabasesWhite Paper - Why Use Oracle VM for Oracle Databases
White Paper - Why Use Oracle VM for Oracle DatabasesFrancisco Alvarez
 
Why Use Oracle VM for Oracle Databases? Revera Presentation
Why Use Oracle VM for Oracle Databases? Revera PresentationWhy Use Oracle VM for Oracle Databases? Revera Presentation
Why Use Oracle VM for Oracle Databases? Revera PresentationFrancisco Alvarez
 
Oracle Security Presentation
Oracle Security PresentationOracle Security Presentation
Oracle Security PresentationFrancisco Alvarez
 
Oracle Enterprise Manager 12c - OEM12c Presentation
Oracle Enterprise Manager 12c - OEM12c PresentationOracle Enterprise Manager 12c - OEM12c Presentation
Oracle Enterprise Manager 12c - OEM12c PresentationFrancisco Alvarez
 
Why everyone speaks about DR but only few use it?
Why everyone speaks about DR but only few use it?Why everyone speaks about DR but only few use it?
Why everyone speaks about DR but only few use it?Francisco Alvarez
 
What is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? PresentationWhat is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? PresentationFrancisco Alvarez
 

Plus de Francisco Alvarez (9)

11g New Features and Enhancements for Backup and Recovery
11g New Features and Enhancements for Backup and Recovery11g New Features and Enhancements for Backup and Recovery
11g New Features and Enhancements for Backup and Recovery
 
Don't be afraid of auditors - Presentation
Don't be afraid of auditors - PresentationDon't be afraid of auditors - Presentation
Don't be afraid of auditors - Presentation
 
White Paper - What is new at 11g for Backup and Recovery
White Paper - What is new at 11g for Backup and RecoveryWhite Paper - What is new at 11g for Backup and Recovery
White Paper - What is new at 11g for Backup and Recovery
 
White Paper - Why Use Oracle VM for Oracle Databases
White Paper - Why Use Oracle VM for Oracle DatabasesWhite Paper - Why Use Oracle VM for Oracle Databases
White Paper - Why Use Oracle VM for Oracle Databases
 
Why Use Oracle VM for Oracle Databases? Revera Presentation
Why Use Oracle VM for Oracle Databases? Revera PresentationWhy Use Oracle VM for Oracle Databases? Revera Presentation
Why Use Oracle VM for Oracle Databases? Revera Presentation
 
Oracle Security Presentation
Oracle Security PresentationOracle Security Presentation
Oracle Security Presentation
 
Oracle Enterprise Manager 12c - OEM12c Presentation
Oracle Enterprise Manager 12c - OEM12c PresentationOracle Enterprise Manager 12c - OEM12c Presentation
Oracle Enterprise Manager 12c - OEM12c Presentation
 
Why everyone speaks about DR but only few use it?
Why everyone speaks about DR but only few use it?Why everyone speaks about DR but only few use it?
Why everyone speaks about DR but only few use it?
 
What is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? PresentationWhat is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? Presentation
 

Dernier

Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 

Dernier (20)

Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 

DBA Tips and Tricks - Presentation

  • 1. Oracle DBA Some tips and Best Practices To become a successful professional APAC OTN Tour 2012
  • 2. 8/9i/10g/11g OCP, RAC OCE, AS OCA, E-Business OCP , SQL /PLSQL OCA , Oracle 7 OCM Oracle 7 , Oracle 11gR2 and OVM 3.1 Beta Tester ITIL Certified Blog: http://oraclenz.wordpress.com Email: mbatec@hotmail.com Twitter: fcomunoz FRANCISCO MUNOZ ALVAREZ Oracle ACE Director NZOUG President LAOUC President CLOUG President IOUC LA Spokesperson Revera – Oracle Professional Services Manager Revera - Copyright 2010 2
  • 5. Born here Grow up here Got Married Here Revera - Copyright 2010 Mature here Now Living here 5
  • 6. Agenda 1 Change yourself 2 The 3 Rules 3 Evolution of the DBA Role 4 Some tips and best practices 5 The 3 DBAs Revera - Copyright 2010 6
  • 7. First: Learn to Change Yourself If do you want to become a successful professional, first you need to educate yourself to be successful! Your future success depends only in your attitude today! You control your life, nobody else! Comm. SUCCESS Attitude Success Innovate Research Revera - Copyright 2010 7
  • 8. 8
  • 9. My 3 Rules 1 Protect Your Data 2 Always Try Before 3 Backup, Backup & Backup
  • 10. Protect your data! “The most important rule with respect to data is to never put yourself into an unrecoverable situation.” The importance of this guideline cannot be stressed enough, but it does not mean that you can never use time saving or performance enhancing options. 10
  • 11. Always Try it Before! When it comes to theory, “NEVER” believe anything you hear or read until you have tried it yourself. 11
  • 12. 12
  • 13. Backup, Backup & Backup Why? Because bad stuff happens… 13
  • 14. Servers (DB/AS) , NET, Security ... DBA Oracle DBs Backups DW Other DBAs And Developers RAC DR & Standby DBs System & Net. Admin. You named Finance HR MySQL SQL Server DB2,etc 14
  • 15. Some tips and Best Practices Copyright 2010 15
  • 16. Backup, Backup & Backup Why Normal Approach •Nothing bad will happen … is a easy change… •I test it before and nothing happens … •Remember each environment is different Always Backup before a change Always Backup after a change If possible Encrypt Backups for your security Copyright 2009 •Reduce Risks Allow an easy Rollback if necessary Could save your job 16
  • 17. Have a Good Backup Strategy Normal Approach Backup your Archivelogs to tape several times a day Generate a daily Datapump for logical recover, just in case… •I have a full backup daily, that’s enough! Revera - Copyright 2010 Why Reduce Risks Will have your users happy when ask you to recover a table from last week… Always be proactive, use the “What if…” Methodology 17
  • 18. A massive data outage for Sidekick handheld users has become a massive PR headache for Microsoft and carrier T-Mobile. A massive data outage in Microsoft's Danger unit left many T-Mobile Sidekick users without access to their calendar, address book, and other key data. However, things got even worse as Microsoft said in a statement that data not recovered thus far may be permanently lost. Microsoft and T-Mobile have not said how many of the roughly 800,000 Sidekick customers have lost data. T-Mobile USA has, at least temporarily, stopped selling all models of the device as the company continues to investigate the recent problems.
  • 19. Separate Environments Why Normal Approach Yes, we have a Dev/Test/Prod. But they are in the same server… Everyone know what each one is doing… We are saving money to the company… One server for each environment (Think about OVM) Developers only need to have full access to Dev Transform Test and Prod in High Secure areas Revera - Copyright 2010 Reduce Risks Allow you to be really responsible for the Environments Protect System Performance and Availability Protect Business Continuity 19
  • 20. Have a Change Register Normal Approach It’s an small change, no one will notice… It will not affect no one… It’s better to say sorry than ask for authorization… Why Create your own promotion procedures Always create a Change Request Always try to involve all affected users Always only promote changes after obtain all approvals (Share responsibility) Revera - Copyright 2010 Will allow you to document and review the process. Will allow others to review your process. Will contain all approvals and tests (for your safety and mental health) In case a system is affected, will be easy to detect was changed! 20
  • 21. What’s an Incident? “An incident is always when something affects the business continuity or the business revenue” Copyright 2010 21
  • 22. Incident is always a priority Investigate and solve it as soon as possible After solved, create an Incident report, it will help you to: 1. Detect the root cause of the problem 2. Document how it can be prevented to happen again 3. Document all steps to solve the problem Normal Approach I will do it early in the morning when back to the office… It can wait a few minutes more, I’m on break now… It’s lunch time, will take a look when back… Copyright 2010 Why Reduce Company Revenue losses Will save your job Shows that you really care about your Employer 22
  • 23. Avoid Dead Locks Normal Approach •Dead Locks are Developers fault… Why Create Index on Foreign Keys (Script on oraclenz.wordpress.com ) Check for Bitmap Indexes on OLTP Environment Copyright 2010 Improves DB Performance Will help you to have a good relationship with Developers 23
  • 24. Automatic Processes Normal Approach I can do it by myself… I love to be involved on everything… I love to create users, extend tablespaces, change passwords… I love to run a checklist every day… Why If a process or work can be made automatic, do it! If it can’t be made automatic, try to delegate it! Copyright 2010 •You have more important stuff to do! 24
  • 25. Oracle Homes Why Normal Approach /u01/app/oracle/product/10.2/db_ 1 Patches are applied to the same Oracle Home •Reduce Risks Allow an easy Rollback if necessary All versions Catalog scripts will be preserved Use a different Oracle Home for each upgrade or Patching, example: /u01/app/oracle/product/10.2/db_02 For the next patch, use a new Oracle Home /u01/app/oracle/product/10.2/db_03 /u01/app/oracle/product/10.2/asm_02 Copyright 2010 25
  • 26. DB Init Parameters Normal Approach Will change them only when required! Be proactive, set all parameters your environment will need now, specially the ones you can’t not modify later using ALTER SYSTEM. Remember to set _trace_files_public = TRUE, soon or later you will need to give access to some trace files to the developers. Copyright 2010 Why •Will avoid inconvenient restarts of the DB. •Will save you time and headaches •Be proactive always will improve your DB performance and availability 26
  • 27. .LOG Extension Why Normal Approach I always use .log for my redolog files… is the standard! •Someone (including you) could delete it by mistake. •Use a different extension for redo logs like .RDO Copyright 2010 27
  • 28. Metadata Repository Normal Approach I have all I need on my current DB. I use my Dev/Test as a DDL repository. Why Allow you to detect changes easily. Allow you to create your own Version Control. You never know when you will need it Create your own metadata repository. Use datapump for this : $ expdp user/password content=metadata_only full=y directory=datapump dumpfile=metadata_24112010.dmp $ impdp user/password directory=datapump dumpfile= metadata_24112010.dmp sqlfile=metadata_24112010.sql Copyright 2010 28
  • 29. Non OFA Layout Normal Approach Let’s Oracle manage all using OFA, that way all will be standard on all environments. /oracle/(prod/qa/test/dev)/SID/* /u01/udump – for user files /proddata/SID/* /prodbackup/SID/* /prodlogs/SID/* Copyright 2010 Why •Easy to manage and keep organized •Allow you to use different mount points •Reduce Risks 29
  • 30. Study, Study & Study Why Normal Approach I know everything I need… •Will keep you up to date • You never know when you will need to use it Will help with your professional development Read Manuals /Read the official documentation at http://tahiti.oracle.com Read and practice OBE at OTN website Help others at OTN Forums (Fantastic way to learn) Participate at OUG Activities (If possible try to speak) Copyright 2010 30
  • 31. Listen! Ask Question! Be involved Why Normal Approach I just will do something when asked to do… If is working I don’t need to care… Don't just sit back waiting for the create table requests. Learn more about your systems and users Copyright 2010 •Know what to do before necessary •Allow you to know who to contact in case of… •Show how engaged you are with the company 31
  • 32.
  • 33. 3 Kind of DBA’s 1 The Firefighter 2 The Proactive 3 The Balanced
  • 34. What kind of DBA are you? Copyright 2010 34
  • 35. Questions? Comments? Francisco Munoz Alvarez Auckland New Zealand mbatec@hotmail.com Copyright 2010 35