SlideShare a Scribd company logo
1 of 21
Kmall.com Inc. Database System High
Availability Design and Implementation Based
on Oracle 11gR2
By Chip Sokear
Grade 2011 class II
Major: Computer Science
Instructor: Sun SiLiang
1 Kmall Database System Analysis and Design
2
3
3
Summary
Kmall Database System Implementation
High Availability Testing
4
Outline
kmall.com
kmall.com Inc. Intro
Kmall DBS Design
OS: Oracle Solaris 10 (x86)
OS Selection
Hardware: Oracle Sun Server X4-2L
X4-2L Key Features:
• 2U enterprise-class server with flexible
storage options
• Intel Xeon processor E5-2600 v2
product family CPUs
• Sixteen DIMM slots
• Six PCIe 3.0 slots
• Four 10GBase-T ports
• Four Sun Flash Accelerator F80 PCIe
Cards
• Hot-swappable and redundant disks,
cooling fans, and power
Hardware Selection
Primary DB Structure Design
2 Nodes RAC
Data Guard Design
Service
name
DB unique
name
Preferred Instance Available
Instance
Service
goal
DB Role Description
kmall_app Kmalldb_prim kmalldb1,kmalldb2 SHORT Primary Application Server,
OLTP
kmall_inner Kmalldb_prim Kmalldb2 Kmalldb1 SHORT Primary All departments
inside the company
kmall_report Kmalldb_stby Kmalldb1 LONG Physical
Standby
Report User Group
Service Design
1 Kmall Database System Analysis and Design
2
3
3
Summary
Kmall Database System Implementation
High Availability Testing
4
Outline
Node name Role OS CPU RAM Storage
Interface1
(private)
Interface2
(pubic)
Node01 Primary
Oracle Solaris
10 1/13 (64bit)
2x2.66Ghz 2048MB 30GB e1000g1 e1000g2
Node02 Primary
Oracle Solaris
10 1/13 (6bit)
2x2.66Ghz 2048MB 30GB e1000g1 e1000g2
Node_stby01 Standby
Oracle Solaris
10 1/13 (64bit)
2x2.66Ghz 2048MB 30GB e1000g1 e1000g2
Hard disk Controller Size Description
c1t0d0 SCSI 1:0 1GB OCR, Voting Disk
c1t1d0 SCSI 1:1 6GB Database File (DATA)
c1t2d0 SCSI 1:2 6GB Flash Recovery Area (FRA)
Node name Interface 1 Interface 2 Private IP Public IP
node01 E1000g0 E1000g1 2.0.0.11/24 191.168.56.11/24
node02 E1000g0 E1000g1 2.0.0.12/24 191.168.56.12/24
NodeShareStorageNetwork
Hardware
Configuration
#e100g0 - PUBLIC
192.168.56.11 node01.kmall.com node01
192.168.56.12 node02.kmall.com node02
#VIP
192.168.56.101 node01-vip.kmall.com node01-vip
192.168.56.102 node02-vip.kmall.com node02-vip
#e1000g1 - PRIVATE
2.0.0.11 node01-priv.kmall.com node01-priv
2.0.0.12 node02-priv.kmall.com node02-priv
#scan-ip
192.168.56.51 rac-scan.kmall.com rac-scan
192.168.56.52 rac-scan.kmall.com rac-scan
192.168.56.53 rac-scan.kmall.com rac-scan
OS Group : oinstall, dba,
asmadmin,asmdba,asmoper
User
Name
Initial
Group
OS
Group
Description
grid oinstall asmadmin
asmdba
asmoper
Grid Infrastructure
owner
oracle oinstall dba
asmdba
RDBMS owner
Users & Groups
Network Configuration: /etc/hosts
Environment Prep
Hard Disk Partition Cylinders Size Blocks Description
c1t0d0 /dev/rdsk/c1t0d0s0 1-1018 1GB (1018/0/0) 2084864 OCR, Voting Disk
c1t1d0 /dev/rdsk/c1t1d0s0 1-3066 6GB (3066/0/0) 12558336 Database Files (DATA)
c1t2d0 /dev/rdsk/c1t2d0s0 1-3066 6GB (3066/0/0) 12558336 Flash Recovery Area (FRA)
Storage Configuration
GI installation
Grid Infrastructure
Installation
RDBMS Installation
Create Kmalldb
Database
RAC Installation
Node DB role DB Name DB SID DB Unique Name
Node01
Primary kmalldb
Kmalldb1
Kmalldb_prim
Node02 Kmalldb2
Node_stby01 Standby kmalldb Kmalldb1 Kmalldb_stby
SQL> alter system set db_unique_name='kmalldb_prim' scope=spfile sid='*';
SQL> alter system set log_archive_config = 'DG_CONFIG=( kmalldb_prim, kmalldb_stby)' scope=both sid='*';
SQL> alter system set standby_file_management=AUTO scope=both sid='*';
SQL> alter system set log_archive_dest_2='SERVICE=kmalldb_stby VALID_
FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME= kmalldb_stby ' scope=spfile sid='*';
SQL> alter system set fal_server='kmalldb_prim' scope=spfile sid='*';
Kmall Data Guard configuration
Primary DB preparation
Data Guard
Configuration
$ srvctl add service -d kmalldb -s kmall_app -r kmalldb1,kmalldb2 -l primay -j SHORT
$ srvctl add service -d kmalldb -s kmall_inner -r kmalldb2 -a kmalldb1 -l primay -j SHORT
$ srvctl add service -d kmalldb -s kmall_report -r kmalldb1 -l physical_standby -j LONG
SQL> SELECT NAME,NETWORK_NAME, CREATION_DATE, GOAL, DTP,
AQ_HA_NOTIFICATION FROM V$SERVICES;
NAME NETWORK_NAME CREATION GOAL D
-------------------- --------------- --------- ------------ -
kmall_report kmall_report 21-NOV-14 NONE N
kmall_inner kmall_inner 21-NOV-14 NONE N
kmall_app kmall_app 21-NOV-14 NONE N
kmalldbXDB kmalldbXDB 17-NOV-14 NONE N
kmalldb_prim.kmall.com kmalldb_prim.kmall.com 19-NOV-14 NONE N
SYS$BACKGROUND 20-NOV-09 NONE
SYS$USERS 20-NOV-09 NONE N
6 rows selected.
Add Service
Query Service
Service
Configuration
1 Kmall Database System Analysis and Design
2
3
3
Summary
Kmall Database System Implementation
High Availability Testing
4
Outline
kmall_app =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan.kmall.com)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac_stby-scan.kmall.com)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = kmall_app.kmall.com)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 100)
(DELAY = 5)
) )
)
tnsname.ora
Sqlplus oe/oe@kmall_app
RAC TAF Testing
Role Transition
• Data Guard Broker
DGMGRL> show configuration;
DGMGRL> show database verbose kmalldb_prim;
DGMGRL> show database verbose 'kmalldb_stby’;
DGMGRL> switchover to 'kmalldb_stby';
RAC
ASM
DG
Summary
Part II Kmall DBS HA design and Implementation english

More Related Content

What's hot

Citrix XenDesktop on XenServer and IBM Hardware Sizing Baseline and Reference...
Citrix XenDesktop on XenServer and IBM Hardware Sizing Baseline and Reference...Citrix XenDesktop on XenServer and IBM Hardware Sizing Baseline and Reference...
Citrix XenDesktop on XenServer and IBM Hardware Sizing Baseline and Reference...IBM India Smarter Computing
 
My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)Gustavo Rene Antunez
 
12cR2 Single-Tenant: Multitenant Features for All Editions
12cR2 Single-Tenant: Multitenant Features for All Editions12cR2 Single-Tenant: Multitenant Features for All Editions
12cR2 Single-Tenant: Multitenant Features for All EditionsFranck Pachot
 
What's New in PostgreSQL 9.6
What's New in PostgreSQL 9.6What's New in PostgreSQL 9.6
What's New in PostgreSQL 9.6EDB
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKI Goo Lee
 
Indexing in Exadata
Indexing in ExadataIndexing in Exadata
Indexing in ExadataEnkitec
 
Open world exadata_top_10_lessons_learned
Open world exadata_top_10_lessons_learnedOpen world exadata_top_10_lessons_learned
Open world exadata_top_10_lessons_learnedchet justice
 
InnoDB MVCC Architecture (by 권건우)
InnoDB MVCC Architecture (by 권건우)InnoDB MVCC Architecture (by 권건우)
InnoDB MVCC Architecture (by 권건우)I Goo Lee.
 
20181210 - PGconf.ASIA Unconference
20181210 - PGconf.ASIA Unconference20181210 - PGconf.ASIA Unconference
20181210 - PGconf.ASIA UnconferenceKohei KaiGai
 
oracle 11G RAC Trianing Noida Delhi NCR
oracle 11G RAC Trianing Noida Delhi NCRoracle 11G RAC Trianing Noida Delhi NCR
oracle 11G RAC Trianing Noida Delhi NCRShri Prakash Pandey
 
How to configure the cluster based on Multi-site (WAN) configuration
How to configure the clusterbased on Multi-site (WAN) configurationHow to configure the clusterbased on Multi-site (WAN) configuration
How to configure the cluster based on Multi-site (WAN) configurationAkihiro Kitada
 
SSD based storage tuning for databases
SSD based storage tuning for databasesSSD based storage tuning for databases
SSD based storage tuning for databasesAngelo Rajadurai
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1Chien Chung Shen
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupArun Sharma
 
A MySQL Odyssey - A Blackhole Crossover
A MySQL Odyssey - A Blackhole CrossoverA MySQL Odyssey - A Blackhole Crossover
A MySQL Odyssey - A Blackhole CrossoverKeith Hollman
 
Drilling Deep Into Exadata Performance
Drilling Deep Into Exadata PerformanceDrilling Deep Into Exadata Performance
Drilling Deep Into Exadata PerformanceEnkitec
 
PG-Strom v2.0 Technical Brief (17-Apr-2018)
PG-Strom v2.0 Technical Brief (17-Apr-2018)PG-Strom v2.0 Technical Brief (17-Apr-2018)
PG-Strom v2.0 Technical Brief (17-Apr-2018)Kohei KaiGai
 
OOW 2013: Where did my CPU go
OOW 2013: Where did my CPU goOOW 2013: Where did my CPU go
OOW 2013: Where did my CPU goKristofferson A
 

What's hot (20)

Citrix XenDesktop on XenServer and IBM Hardware Sizing Baseline and Reference...
Citrix XenDesktop on XenServer and IBM Hardware Sizing Baseline and Reference...Citrix XenDesktop on XenServer and IBM Hardware Sizing Baseline and Reference...
Citrix XenDesktop on XenServer and IBM Hardware Sizing Baseline and Reference...
 
My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)
 
12cR2 Single-Tenant: Multitenant Features for All Editions
12cR2 Single-Tenant: Multitenant Features for All Editions12cR2 Single-Tenant: Multitenant Features for All Editions
12cR2 Single-Tenant: Multitenant Features for All Editions
 
What's New in PostgreSQL 9.6
What's New in PostgreSQL 9.6What's New in PostgreSQL 9.6
What's New in PostgreSQL 9.6
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELK
 
Indexing in Exadata
Indexing in ExadataIndexing in Exadata
Indexing in Exadata
 
Open world exadata_top_10_lessons_learned
Open world exadata_top_10_lessons_learnedOpen world exadata_top_10_lessons_learned
Open world exadata_top_10_lessons_learned
 
InnoDB MVCC Architecture (by 권건우)
InnoDB MVCC Architecture (by 권건우)InnoDB MVCC Architecture (by 권건우)
InnoDB MVCC Architecture (by 권건우)
 
20181210 - PGconf.ASIA Unconference
20181210 - PGconf.ASIA Unconference20181210 - PGconf.ASIA Unconference
20181210 - PGconf.ASIA Unconference
 
oracle 11G RAC Trianing Noida Delhi NCR
oracle 11G RAC Trianing Noida Delhi NCRoracle 11G RAC Trianing Noida Delhi NCR
oracle 11G RAC Trianing Noida Delhi NCR
 
How to configure the cluster based on Multi-site (WAN) configuration
How to configure the clusterbased on Multi-site (WAN) configurationHow to configure the clusterbased on Multi-site (WAN) configuration
How to configure the cluster based on Multi-site (WAN) configuration
 
ASM
ASMASM
ASM
 
SSD based storage tuning for databases
SSD based storage tuning for databasesSSD based storage tuning for databases
SSD based storage tuning for databases
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
 
A MySQL Odyssey - A Blackhole Crossover
A MySQL Odyssey - A Blackhole CrossoverA MySQL Odyssey - A Blackhole Crossover
A MySQL Odyssey - A Blackhole Crossover
 
Drilling Deep Into Exadata Performance
Drilling Deep Into Exadata PerformanceDrilling Deep Into Exadata Performance
Drilling Deep Into Exadata Performance
 
Rac questions
Rac questionsRac questions
Rac questions
 
PG-Strom v2.0 Technical Brief (17-Apr-2018)
PG-Strom v2.0 Technical Brief (17-Apr-2018)PG-Strom v2.0 Technical Brief (17-Apr-2018)
PG-Strom v2.0 Technical Brief (17-Apr-2018)
 
OOW 2013: Where did my CPU go
OOW 2013: Where did my CPU goOOW 2013: Where did my CPU go
OOW 2013: Where did my CPU go
 

Viewers also liked

Compendium_Clin_Technique_Loke_
Compendium_Clin_Technique_Loke_Compendium_Clin_Technique_Loke_
Compendium_Clin_Technique_Loke_Loke Weiqiang
 
prezentacija_diplomska_koncna
prezentacija_diplomska_koncnaprezentacija_diplomska_koncna
prezentacija_diplomska_koncnaIva Hari
 
CARICATURAS CRÍTICAS
CARICATURAS CRÍTICASCARICATURAS CRÍTICAS
CARICATURAS CRÍTICASdanielinzy
 
final pdf of Wired Wizards
final pdf of Wired Wizardsfinal pdf of Wired Wizards
final pdf of Wired WizardsCheryl Serra
 
DS certifications
DS certificationsDS certifications
DS certificationsAamer Khan
 
From Winter 2014 2015
From Winter 2014 2015From Winter 2014 2015
From Winter 2014 2015Cheryl Serra
 
IBM Business Analytics Dashboarding Tips > Cresco International
IBM Business Analytics Dashboarding Tips > Cresco International IBM Business Analytics Dashboarding Tips > Cresco International
IBM Business Analytics Dashboarding Tips > Cresco International Cresco International
 
Maiatzak 17 proposamena doc
Maiatzak 17 proposamena  docMaiatzak 17 proposamena  doc
Maiatzak 17 proposamena docanaextramiana
 
Negotiable instruments 1
Negotiable instruments 1Negotiable instruments 1
Negotiable instruments 1aicseu4494
 
[1분보험] 자동차보험_대인배상
[1분보험] 자동차보험_대인배상 [1분보험] 자동차보험_대인배상
[1분보험] 자동차보험_대인배상 MinuteInsurance
 

Viewers also liked (19)

Proposamena m 17
Proposamena m 17Proposamena m 17
Proposamena m 17
 
Compendium_Clin_Technique_Loke_
Compendium_Clin_Technique_Loke_Compendium_Clin_Technique_Loke_
Compendium_Clin_Technique_Loke_
 
prezentacija_diplomska_koncna
prezentacija_diplomska_koncnaprezentacija_diplomska_koncna
prezentacija_diplomska_koncna
 
CARICATURAS CRÍTICAS
CARICATURAS CRÍTICASCARICATURAS CRÍTICAS
CARICATURAS CRÍTICAS
 
Ajit Kumar
Ajit KumarAjit Kumar
Ajit Kumar
 
Curva de remanso
Curva de remansoCurva de remanso
Curva de remanso
 
final pdf of Wired Wizards
final pdf of Wired Wizardsfinal pdf of Wired Wizards
final pdf of Wired Wizards
 
ABWAB PROFILE
ABWAB PROFILEABWAB PROFILE
ABWAB PROFILE
 
DS certifications
DS certificationsDS certifications
DS certifications
 
From Winter 2014 2015
From Winter 2014 2015From Winter 2014 2015
From Winter 2014 2015
 
IBM Business Analytics Dashboarding Tips > Cresco International
IBM Business Analytics Dashboarding Tips > Cresco International IBM Business Analytics Dashboarding Tips > Cresco International
IBM Business Analytics Dashboarding Tips > Cresco International
 
Maiatzak 17 proposamena doc
Maiatzak 17 proposamena  docMaiatzak 17 proposamena  doc
Maiatzak 17 proposamena doc
 
Negotiable instruments 1
Negotiable instruments 1Negotiable instruments 1
Negotiable instruments 1
 
Mun taj mahal[1]
Mun taj mahal[1]Mun taj mahal[1]
Mun taj mahal[1]
 
SeniorSem FinalPaperPresentation
SeniorSem FinalPaperPresentationSeniorSem FinalPaperPresentation
SeniorSem FinalPaperPresentation
 
Привет всем!
Привет всем!Привет всем!
Привет всем!
 
Gary's _CV_2016
Gary's _CV_2016Gary's _CV_2016
Gary's _CV_2016
 
HeshamAhmed-CV
HeshamAhmed-CVHeshamAhmed-CV
HeshamAhmed-CV
 
[1분보험] 자동차보험_대인배상
[1분보험] 자동차보험_대인배상 [1분보험] 자동차보험_대인배상
[1분보험] 자동차보험_대인배상
 

Similar to Part II Kmall DBS HA design and Implementation english

Oracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open WorldOracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open WorldPaul Marden
 
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』Insight Technology, Inc.
 
Oracle database 12.2 new features
Oracle database 12.2 new featuresOracle database 12.2 new features
Oracle database 12.2 new featuresAlfredo Krieg
 
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014Philippe Fierens
 
Sample Lucene Big Data Diagram Generic
Sample Lucene Big Data Diagram GenericSample Lucene Big Data Diagram Generic
Sample Lucene Big Data Diagram GenericKen Irwin
 
Episode 2 DB2 pureScale Installation, Instance Management & Monitoring
Episode 2 DB2 pureScale Installation, Instance Management & MonitoringEpisode 2 DB2 pureScale Installation, Instance Management & Monitoring
Episode 2 DB2 pureScale Installation, Instance Management & MonitoringLaura Hood
 
Odv oracle customer_demo
Odv oracle customer_demoOdv oracle customer_demo
Odv oracle customer_demoViaggio Italia
 
Sparc m6 32 in-memory infrastructure for the entire enterprise
Sparc m6 32 in-memory infrastructure for the entire enterpriseSparc m6 32 in-memory infrastructure for the entire enterprise
Sparc m6 32 in-memory infrastructure for the entire enterprisesolarisyougood
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and ArchitectureSidney Chen
 
Oow2007 performance
Oow2007 performanceOow2007 performance
Oow2007 performanceRicky Zhu
 
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesOracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesLudovico Caldara
 
UKOUG Tech15 - Deploying Oracle 12c Cloud Control in Maximum Availability Arc...
UKOUG Tech15 - Deploying Oracle 12c Cloud Control in Maximum Availability Arc...UKOUG Tech15 - Deploying Oracle 12c Cloud Control in Maximum Availability Arc...
UKOUG Tech15 - Deploying Oracle 12c Cloud Control in Maximum Availability Arc...Zahid Anwar (OCM)
 
Oracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptOracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptChien Chung Shen
 
Seagate SC15 Announcements for HPC
Seagate SC15 Announcements for HPCSeagate SC15 Announcements for HPC
Seagate SC15 Announcements for HPCinside-BigData.com
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01Karam Abuataya
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11gfcamachob
 
【旧版】Oracle Exadata Cloud Service:サービス概要のご紹介 [2020年8月版]
【旧版】Oracle Exadata Cloud Service:サービス概要のご紹介 [2020年8月版]【旧版】Oracle Exadata Cloud Service:サービス概要のご紹介 [2020年8月版]
【旧版】Oracle Exadata Cloud Service:サービス概要のご紹介 [2020年8月版]オラクルエンジニア通信
 
【旧版】Oracle Database Cloud Service:サービス概要のご紹介 [2020年1月版]
【旧版】Oracle Database Cloud Service:サービス概要のご紹介 [2020年1月版]【旧版】Oracle Database Cloud Service:サービス概要のご紹介 [2020年1月版]
【旧版】Oracle Database Cloud Service:サービス概要のご紹介 [2020年1月版]オラクルエンジニア通信
 
Unleash oracle 12c performance with cisco ucs
Unleash oracle 12c performance with cisco ucsUnleash oracle 12c performance with cisco ucs
Unleash oracle 12c performance with cisco ucssolarisyougood
 

Similar to Part II Kmall DBS HA design and Implementation english (20)

Oracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open WorldOracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open World
 
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
 
Oracle database 12.2 new features
Oracle database 12.2 new featuresOracle database 12.2 new features
Oracle database 12.2 new features
 
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
 
Sample Lucene Big Data Diagram Generic
Sample Lucene Big Data Diagram GenericSample Lucene Big Data Diagram Generic
Sample Lucene Big Data Diagram Generic
 
Episode 2 DB2 pureScale Installation, Instance Management & Monitoring
Episode 2 DB2 pureScale Installation, Instance Management & MonitoringEpisode 2 DB2 pureScale Installation, Instance Management & Monitoring
Episode 2 DB2 pureScale Installation, Instance Management & Monitoring
 
Odv oracle customer_demo
Odv oracle customer_demoOdv oracle customer_demo
Odv oracle customer_demo
 
Sparc m6 32 in-memory infrastructure for the entire enterprise
Sparc m6 32 in-memory infrastructure for the entire enterpriseSparc m6 32 in-memory infrastructure for the entire enterprise
Sparc m6 32 in-memory infrastructure for the entire enterprise
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
 
Oow2007 performance
Oow2007 performanceOow2007 performance
Oow2007 performance
 
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesOracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
 
UKOUG Tech15 - Deploying Oracle 12c Cloud Control in Maximum Availability Arc...
UKOUG Tech15 - Deploying Oracle 12c Cloud Control in Maximum Availability Arc...UKOUG Tech15 - Deploying Oracle 12c Cloud Control in Maximum Availability Arc...
UKOUG Tech15 - Deploying Oracle 12c Cloud Control in Maximum Availability Arc...
 
Oracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptOracle Database SQL Tuning Concept
Oracle Database SQL Tuning Concept
 
Seagate SC15 Announcements for HPC
Seagate SC15 Announcements for HPCSeagate SC15 Announcements for HPC
Seagate SC15 Announcements for HPC
 
My sql 5.6&MySQL Cluster 7.3
My sql 5.6&MySQL Cluster 7.3My sql 5.6&MySQL Cluster 7.3
My sql 5.6&MySQL Cluster 7.3
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
 
【旧版】Oracle Exadata Cloud Service:サービス概要のご紹介 [2020年8月版]
【旧版】Oracle Exadata Cloud Service:サービス概要のご紹介 [2020年8月版]【旧版】Oracle Exadata Cloud Service:サービス概要のご紹介 [2020年8月版]
【旧版】Oracle Exadata Cloud Service:サービス概要のご紹介 [2020年8月版]
 
【旧版】Oracle Database Cloud Service:サービス概要のご紹介 [2020年1月版]
【旧版】Oracle Database Cloud Service:サービス概要のご紹介 [2020年1月版]【旧版】Oracle Database Cloud Service:サービス概要のご紹介 [2020年1月版]
【旧版】Oracle Database Cloud Service:サービス概要のご紹介 [2020年1月版]
 
Unleash oracle 12c performance with cisco ucs
Unleash oracle 12c performance with cisco ucsUnleash oracle 12c performance with cisco ucs
Unleash oracle 12c performance with cisco ucs
 

Part II Kmall DBS HA design and Implementation english

  • 1. Kmall.com Inc. Database System High Availability Design and Implementation Based on Oracle 11gR2 By Chip Sokear Grade 2011 class II Major: Computer Science Instructor: Sun SiLiang
  • 2. 1 Kmall Database System Analysis and Design 2 3 3 Summary Kmall Database System Implementation High Availability Testing 4 Outline
  • 5. OS: Oracle Solaris 10 (x86) OS Selection
  • 6. Hardware: Oracle Sun Server X4-2L X4-2L Key Features: • 2U enterprise-class server with flexible storage options • Intel Xeon processor E5-2600 v2 product family CPUs • Sixteen DIMM slots • Six PCIe 3.0 slots • Four 10GBase-T ports • Four Sun Flash Accelerator F80 PCIe Cards • Hot-swappable and redundant disks, cooling fans, and power Hardware Selection
  • 7. Primary DB Structure Design 2 Nodes RAC
  • 9. Service name DB unique name Preferred Instance Available Instance Service goal DB Role Description kmall_app Kmalldb_prim kmalldb1,kmalldb2 SHORT Primary Application Server, OLTP kmall_inner Kmalldb_prim Kmalldb2 Kmalldb1 SHORT Primary All departments inside the company kmall_report Kmalldb_stby Kmalldb1 LONG Physical Standby Report User Group Service Design
  • 10. 1 Kmall Database System Analysis and Design 2 3 3 Summary Kmall Database System Implementation High Availability Testing 4 Outline
  • 11. Node name Role OS CPU RAM Storage Interface1 (private) Interface2 (pubic) Node01 Primary Oracle Solaris 10 1/13 (64bit) 2x2.66Ghz 2048MB 30GB e1000g1 e1000g2 Node02 Primary Oracle Solaris 10 1/13 (6bit) 2x2.66Ghz 2048MB 30GB e1000g1 e1000g2 Node_stby01 Standby Oracle Solaris 10 1/13 (64bit) 2x2.66Ghz 2048MB 30GB e1000g1 e1000g2 Hard disk Controller Size Description c1t0d0 SCSI 1:0 1GB OCR, Voting Disk c1t1d0 SCSI 1:1 6GB Database File (DATA) c1t2d0 SCSI 1:2 6GB Flash Recovery Area (FRA) Node name Interface 1 Interface 2 Private IP Public IP node01 E1000g0 E1000g1 2.0.0.11/24 191.168.56.11/24 node02 E1000g0 E1000g1 2.0.0.12/24 191.168.56.12/24 NodeShareStorageNetwork Hardware Configuration
  • 12. #e100g0 - PUBLIC 192.168.56.11 node01.kmall.com node01 192.168.56.12 node02.kmall.com node02 #VIP 192.168.56.101 node01-vip.kmall.com node01-vip 192.168.56.102 node02-vip.kmall.com node02-vip #e1000g1 - PRIVATE 2.0.0.11 node01-priv.kmall.com node01-priv 2.0.0.12 node02-priv.kmall.com node02-priv #scan-ip 192.168.56.51 rac-scan.kmall.com rac-scan 192.168.56.52 rac-scan.kmall.com rac-scan 192.168.56.53 rac-scan.kmall.com rac-scan OS Group : oinstall, dba, asmadmin,asmdba,asmoper User Name Initial Group OS Group Description grid oinstall asmadmin asmdba asmoper Grid Infrastructure owner oracle oinstall dba asmdba RDBMS owner Users & Groups Network Configuration: /etc/hosts Environment Prep Hard Disk Partition Cylinders Size Blocks Description c1t0d0 /dev/rdsk/c1t0d0s0 1-1018 1GB (1018/0/0) 2084864 OCR, Voting Disk c1t1d0 /dev/rdsk/c1t1d0s0 1-3066 6GB (3066/0/0) 12558336 Database Files (DATA) c1t2d0 /dev/rdsk/c1t2d0s0 1-3066 6GB (3066/0/0) 12558336 Flash Recovery Area (FRA) Storage Configuration
  • 15. Node DB role DB Name DB SID DB Unique Name Node01 Primary kmalldb Kmalldb1 Kmalldb_prim Node02 Kmalldb2 Node_stby01 Standby kmalldb Kmalldb1 Kmalldb_stby SQL> alter system set db_unique_name='kmalldb_prim' scope=spfile sid='*'; SQL> alter system set log_archive_config = 'DG_CONFIG=( kmalldb_prim, kmalldb_stby)' scope=both sid='*'; SQL> alter system set standby_file_management=AUTO scope=both sid='*'; SQL> alter system set log_archive_dest_2='SERVICE=kmalldb_stby VALID_ FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME= kmalldb_stby ' scope=spfile sid='*'; SQL> alter system set fal_server='kmalldb_prim' scope=spfile sid='*'; Kmall Data Guard configuration Primary DB preparation Data Guard Configuration
  • 16. $ srvctl add service -d kmalldb -s kmall_app -r kmalldb1,kmalldb2 -l primay -j SHORT $ srvctl add service -d kmalldb -s kmall_inner -r kmalldb2 -a kmalldb1 -l primay -j SHORT $ srvctl add service -d kmalldb -s kmall_report -r kmalldb1 -l physical_standby -j LONG SQL> SELECT NAME,NETWORK_NAME, CREATION_DATE, GOAL, DTP, AQ_HA_NOTIFICATION FROM V$SERVICES; NAME NETWORK_NAME CREATION GOAL D -------------------- --------------- --------- ------------ - kmall_report kmall_report 21-NOV-14 NONE N kmall_inner kmall_inner 21-NOV-14 NONE N kmall_app kmall_app 21-NOV-14 NONE N kmalldbXDB kmalldbXDB 17-NOV-14 NONE N kmalldb_prim.kmall.com kmalldb_prim.kmall.com 19-NOV-14 NONE N SYS$BACKGROUND 20-NOV-09 NONE SYS$USERS 20-NOV-09 NONE N 6 rows selected. Add Service Query Service Service Configuration
  • 17. 1 Kmall Database System Analysis and Design 2 3 3 Summary Kmall Database System Implementation High Availability Testing 4 Outline
  • 18. kmall_app = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan.kmall.com)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = rac_stby-scan.kmall.com)(PORT = 1521)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = kmall_app.kmall.com) (FAILOVER_MODE = (TYPE = SELECT) (METHOD = BASIC) (RETRIES = 100) (DELAY = 5) ) ) ) tnsname.ora Sqlplus oe/oe@kmall_app RAC TAF Testing
  • 19. Role Transition • Data Guard Broker DGMGRL> show configuration; DGMGRL> show database verbose kmalldb_prim; DGMGRL> show database verbose 'kmalldb_stby’; DGMGRL> switchover to 'kmalldb_stby';