Vous êtes sur la page 1sur 23

UQM

Analyse dADN
Technologie Oracle RAC
(Base de donnes rpartie)
Mario Provenal
et
Martin Provenal

UQM

Introduction

Haute disponibilit (Bio-Info)


Pourquoi Oracle RAC?
Quest-ce que Oracle RAC (Real
Application Cluster)

UQM

Ordre du jour

Analyse concurrentielle
Oracle 10g RAC
Analyse dADN
Exemple dun basculement transparent
Conclusion
Priode de questions

UQM

Analyse concurrentielle

Concurrents
Veritas
Microsoft
SUN
HP
IBM

UQM

Analyse concurrentielle (suite)

Points en communs
Limite du nombre de nuds
Balancement de charge
Vitesse de basculement
Prix

UQM

Architecture matrielle

UQM

Architecture logiciel
Modle de donnes partages

UQM

Architecture technologique 10g

UQM

Composantes matrielles

RAC deux noeuds

1
2
1
2
2
1
1
4
4

Disque FireWire ou plus


cartes FireWire
HUB FireWire Hub (au besoin)
Cbles FireWire
Serveurs or vieux PC
Switch rseau
Hub rseau
cartes rseau Ethernet (Minimum)
cables rseau (Minimum)

UQM

tapes dinstallation
Configurer le matriel

Installer le logiciel Oracle


Incluant RAC et ASM

Configurer le SE,
Rseau public,
Interconnexion prive

Excuter VIPCA,
Automatiquement lanc
partir de RDBMS root.sh

Configurer le disque
partag

Crer la base de donnes


Avec DBCA

Installer Oracle CRS

Valider la configuration
Du cluster/RAC

UQM

Red Hat Advanced Server 3

Installation du systme
dexploitation
Configuration du module noyau
hangcheck-timer
Mise jour du module noyau pour les
disques partags FireWire.
Installation du module noyau pour le
systme de fichier OCFS et ASM

UQM

Installation du service CRS

CRS (Cluster Ready Services) donne les


services de haute disponibilits indpendant
de la plateforme pour les bases de donnes
rparties.

CRS donne tous les services requis (pas besoin


de recourir dautres fournisseurs de grappe)

CRS interagira avec le logiciel de grappe si


install.

CRS require le partage de 2 fichiers (OCR et


Voting Disk) entre tous les nuds de la
grappe.

UQM

Installation de la base de donnes

Choisir loption Oracle Real


Application Clusters database
Choisir lopration Create a database
Choisir loption ASM

UQM

Validation des services


HA Resource

Target

State

ora.orcl.db
ONLINE
ONLINE on rac1pub
ora.orcl.orcl1.inst
ONLINE
ONLINE on rac1pub
ora.orcl.orcl2.inst
ONLINE
ONLINE on rac2pub
ora.orcl.orcltest.cs
ONLINE
ONLINE on rac1pub
ora.orcl.orcltest.orcl1.srv
ONLINE
ONLINE on rac1pub
ora.orcl.orcltest.orcl2.srv
ONLINE
ONLINE on rac2pub
ora.rac1pub.ASM1.asm
ONLINE
ONLINE on rac1pub
ora.rac1pub.LISTENER_RAC1PUB.lsnr
ONLINE
ONLINE on rac1pub
ora.rac1pub.gsd
ONLINE
ONLINE on rac1pub
ora.rac1pub.ons
ONLINE
ONLINE on rac1pub
ora.rac1pub.orcl1.asm
ONLINE
ONLINE on rac1pub
ora.rac1pub.vip
ONLINE
ONLINE on rac1pub
ora.rac2pub.ASM2.asm
ONLINE
ONLINE on rac2pub
ora.rac2pub.LISTENER_RAC2PUB.lsnr
ONLINE
ONLINE on rac2pub
ora.rac2pub.gsd
ONLINE
ONLINE on rac2pub
ora.rac2pub.ons
ONLINE
ONLINE on rac2pub
ora.rac2pub.vip
ONLINE
ONLINE on rac2pub

UQM

Logiciel dAnalyse dADN

Requte HTTP la base de donne SGD


(Sacccharomyces Genome Database)
Requte locale pour trouver des patrons
spcifique

UQM

Tlchargement dune squence


[oracle@rac1pub src]$ sqlplus scott/tiger@orcltest @dna_analysis.sql
SQL*Plus: Release 10.1.0.3.0 - Production on Sun May 1 11:16:01 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
Enter value for region: YMR317W
old 9: region_id :='&region' ;
new 9: region_id :='YMR317W' ;
Enzyme Position Analysis for YMR317W Genome DNA Sequence
----------------------------------------------------------------------------ENZYME NAME
POSITION (First occurrence )
----------------------------------------------------------------------------EcoRI_Enzyme
0
BamHI_Enzyme
0
HindII_Enzyme
313
Ama87I_Enzyme
190
Asp700I_Enzyme
0
----------------------------------------------------------------------------PL/SQL procedure successfully completed.

UQM

Recherche dans la BD locale


[oracle@rac1pub src]$ sqlplus scott/tiger@orcltest @search_localdb.sql
SQL*Plus: Release 10.1.0.3.0 - Production on Sun May 1 11:18:50 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
Pattern analysis on locally stored DNA Sequence
REGION
-------------YDR511W
YBL086C
YMR318C
YBL094C
YOR239W
YMR317W

ECORI
---------345
0

HINDII
---------0
354
0
0
0
0

AMA87I
---------0
0
263
0
154
313

ASP700I
---------0
431
0
170
0
190

0
0
0
0

UQM

Exemple de basculement transparent


SELECT
instance_name, host_name, NULL AS failover_type, NULL AS failover_method, NULL AS
failed_over
FROM
v$instance
UNION SELECT
NULL, NULL, failover_type, failover_method, failed_over
FROM
v$session
WHERE
username = 'SCOTT';

INSTANCE_NAME HOST_NAME FAILOVER_TYPE FAILOVER_METHOD FAILED_OV


--------------------------- --------------------- ------------------------- -------------------------------- -----------------orcl2
rac2pub
SELECT
BASIC
NO

UQM

Exemple de basculement transparent


SELECT
instance_name, host_name, NULL AS failover_type, NULL AS failover_method, NULL AS
failed_over
FROM
v$instance
UNION SELECT
NULL, NULL, failover_type, failover_method, failed_over
FROM
v$session
WHERE
username = 'SCOTT';

INSTANCE_NAME HOST_NAME FAILOVER_TYPE FAILOVER_METHOD FAILED_OV


--------------------------- --------------------- ------------------------- -------------------------------- -----------------orcl1
rac1pub
SELECT
BASIC
YES

UQM

Exemple de basculement transparent


# tnsnames.ora Network Configuration File
# Generated by Oracle configuration tools.
ORCLTEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcltest)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5)
)
)
)

UQM

Conclusion

Installation facile
Mme fournisseur
Utilisation lgrement complexe
Excution transparente lapplication
4,200 RAC Oracle dans le monde (sept.
2004).

UQM

Priode de question

Q
&
R
uestions

ponses

UQM

Rfrences

Build Your Own RAC Cluster on Linux and FireWire


by Jeffrey Hunter
http://www.oracle.com/technology/pub/articles/hunter_rac.html
Installing Oracle Database 10g with Real Application Cluster (RAC)
on Red Hat Enterprise Linux Advanced Server 3
by Werner Puschitz
http://www.puschitz.com/InstallingOracle10gRAC.shtml
Oracle Real Application Clusters Installation and Configuration Guide
10g Release 1 (10.1.0.3) for Linux x86-64
http://download-east.oracle.com/docs/html/B14406_01/toc.htm
Oracle Database 10g High Availability with RAC, Flashback & Data Guard
(Maintain 24/7 Database Uptime)
Matthew Hart, Scott Jesse, McGraw-Hill,2004
http://books.mcgraw-hill.com/getbook.php?isbn=0072254289&template=oraclepress
Regular Expression Sample Application - DNA Analysis 01-Dec-2004
http://www.oracle.com/technology/sample_code/tech/pl_sql/regexp/dnasample/readme.html
Centre Oracle pour Linux
http://www.oracle.com/technology/tech/linux/index.html
Documentation de la base de donnes Oracle 10g
http://www.oracle.com/technology/documentation/database10g.html
Documentation du projet OCFS
http://oss.oracle.com/projects/ocfs/documentation/
Installation de Oracle ASMLib
http://www.oracle.com/technology/tech/linux/asmlib/install.html