Download presentation
Presentation is loading. Please wait.
Published byLoreen Hancock Modified over 9 years ago
1
Copyright © 2013 Scale Abilities Ltd … to Oracle 11.2 on Linux From Oracle 11.1 on Solaris …
2
Copyright © 2013 Scale Abilities Ltd About Scale Abilities Full-stack consultancy and engineering for Oracle and Big Data Focus on depth, whilst grasping the big picture We can (and do, frequently) fix broken stuff, but… We would rather help you build a high quality solution in the first place
3
Copyright © 2013 Scale Abilities Ltd
4
Fix the Storage Problem 2 * NetApp FAS3250 3 shelves: 24 * 450GB 15k SAS disks 2 controllers: 2 dual port 10Gbps NICs 512GB flash card
5
Copyright © 2013 Scale Abilities Ltd 2 * NetApp FAS3250 3 shelves: 24 * 450GB 15k SAS disks 2 controllers: 2 dual port 10Gbps NICs 512GB flash card
6
Copyright © 2013 Scale Abilities Ltd And while we’re at it… 2 * NetApp FAS3250 3 shelves: 24 * 450GB 15k SAS disks 2 controllers: 2 dual port 10Gbps NICs 512GB flash card 4 * HP DL380 servers (200GB RAM) Oracle Linux 6 Oracle Database 11.2
7
Copyright © 2013 Scale Abilities Ltd The Target 2 * NetApp FAS3250 3 shelves: 24 * 450GB 15k SAS disks 2 controllers: 2 dual port 10Gbps NICs 512GB flash card 4 * HP DL380 servers (200GB RAM) Oracle Linux 6 Oracle Database 11.2
8
Copyright © 2013 Scale Abilities Ltd What are we changing? Storage SAN (fibre) NetApp NAS (IP) Hardware SPARC Intel Database Oracle 11.1 Oracle 11.2 Operating System Solaris Linux
9
Copyright © 2013 Scale Abilities Ltd What are we changing? Storage SAN (fibre) NetApp NAS (IP) Hardware SPARC Intel Database Oracle 11.1 Oracle 11.2 Operating System Solaris Linux
10
Copyright © 2013 Scale Abilities Ltd The Requirement No Downtime Switch back if there is a problem
11
Copyright © 2013 Scale Abilities Ltd and to make it a bit harder….
12
Copyright © 2013 Scale Abilities Ltd Database Structure 460 tables 1,000 indexes 5,400 segments 2,100 tablespaces 2,200 data files
13
Copyright © 2013 Scale Abilities Ltd Database Structure 460 tables 1,000 indexes 5,400 segments 2,100 tablespaces 2,200 data files
14
Copyright © 2013 Scale Abilities Ltd Database Structure 460 tables 1,000 indexes 5,400 segments 2,100 tablespaces 2,200 data files
15
Copyright © 2013 Scale Abilities Ltd Database Size Total Space Usage 2,300GB 3 Largest Tables 430GB 340GB 320GB
16
Copyright © 2013 Scale Abilities Ltd Database Size Total Space Usage 2,300GB 3 Largest Tables 430GB 340GB 320GB
17
Copyright © 2013 Scale Abilities Ltd New Database Structure Each schema 1 tablespace 1 tablespace for LOBs 3 largest tables tablespace each Bigfile Tablespaces 2,000 20 tablespaces/data files Partition 2 largest tables
18
Copyright © 2013 Scale Abilities Ltd The Requirement SPARC Intel (endianness) Oracle 11.1 Oracle 11.2 No Downtime Switch Back if there is a Problem Reduce Tablespaces and Data Files Partition 2 Largest Tables
19
Copyright © 2013 Scale Abilities Ltd Migration Solution Data Pump + Oracle Streams
20
Copyright © 2013 Scale Abilities Ltd Migration Overview Start Streams Capture on Old Database Data Pump at SCN from Old to New Database Start Streams Apply from SCN on New Database
21
Copyright © 2013 Scale Abilities Ltd Objects to Precreate Tablespaces Segment-owning users 2 largest tables (partitioned) Roles (Applications and Users) Directories
22
Copyright © 2013 Scale Abilities Ltd
23
Index and Constraints SQL impdp username parfile=indx_cons.par index_cons.par: directory=exports logfile=imp_indx_cons.log parallel=4 network_link=solarisdb include=constraint,ref_constraint,index sqlfile=cr_indx_cons.sql schemas=apollo,hera,pallas ………… continued on next slide
24
Copyright © 2013 Scale Abilities Ltd Index and Constraints SQL impdp username parfile=indx_cons.par index_cons.par: directory=exports logfile=imp_indx_cons.log parallel=4 network_link=solarisdb include=constraint,ref_constraint,index sqlfile=cr_indx_cons.sql schemas=apollo,hera,pallas ………… continued on next slide
25
Copyright © 2013 Scale Abilities Ltd Index and Constraints SQL impdp username parfile=indx_cons.par index_cons.par: directory=exports logfile=imp_indx_cons.log parallel=4 network_link=solarisdb include=constraint,ref_constraint,index sqlfile=cr_indx_cons.sql schemas=apollo,hera,pallas ………… continued on next slide
26
Copyright © 2013 Scale Abilities Ltd Index and Constraints SQL impdp username parfile=indx_cons.par index_cons.par: directory=exports logfile=imp_indx_cons.log parallel=4 network_link=solarisdb include=constraint,ref_constraint,index sqlfile=cr_indx_cons.sql schemas=apollo,hera,pallas ………… continued on next slide
27
Copyright © 2013 Scale Abilities Ltd Index and Constraints SQL remap_tablespace= A_HGU_DATA_APR_2006:APOLLO_TS,\ A_HGU_DATA_MAY_2006:APOLLO_TS,\ ………… A_JUR_INDX_AUG_2011:APOLLO_TS,\ A_JUR_INDX_SEP_2011:APOLLO_TS,\ ………… A_TRK_DATA_MAY_2005:APOLLO_TRACK_TS,\ A_TRK_DATA_JUN_2005:APOLLO_TRACK_TS,\ ………… P_WKP_DATA_SEP_2010:PALLAS_TS,\ P_WKP_DATA_OCT_2010:PALLAS_TS,\
28
Copyright © 2013 Scale Abilities Ltd Index and Constraints SQL remap_tablespace= A_HGU_DATA_APR_2006:APOLLO_TS,\ A_HGU_DATA_MAY_2006:APOLLO_TS,\ ………… A_JUR_INDX_AUG_2011:APOLLO_TS,\ A_JUR_INDX_SEP_2011:APOLLO_TS,\ ………… A_TRK_DATA_MAY_2005:APOLLO_TRACK_TS,\ A_TRK_DATA_JUN_2005:APOLLO_TRACK_TS,\ ………… P_WKP_DATA_SEP_2010:PALLAS_TS,\ P_WKP_DATA_OCT_2010:PALLAS_TS,\
29
Copyright © 2013 Scale Abilities Ltd Index and Constraints SQL remap_tablespace= A_HGU_DATA_APR_2006:APOLLO_TS,\ A_HGU_DATA_MAY_2006:APOLLO_TS,\ ………… A_JUR_INDX_AUG_2011:APOLLO_TS,\ A_JUR_INDX_SEP_2011:APOLLO_TS,\ ………… A_TRK_DATA_MAY_2005:APOLLO_TRACK_TS,\ A_TRK_DATA_JUN_2005:APOLLO_TRACK_TS,\ ………… P_WKP_DATA_SEP_2010:PALLAS_TS,\ P_WKP_DATA_OCT_2010:PALLAS_TS,\
30
Copyright © 2013 Scale Abilities Ltd Index and Constraints SQL remap_tablespace= A_HGU_DATA_APR_2006:APOLLO_TS,\ A_HGU_DATA_MAY_2006:APOLLO_TS,\ ………… A_JUR_INDX_AUG_2011:APOLLO_TS,\ A_JUR_INDX_SEP_2011:APOLLO_TS,\ ………… A_TRK_DATA_MAY_2005:APOLLO_TRACK_TS,\ A_TRK_DATA_JUN_2005:APOLLO_TRACK_TS,\ ………… P_WKP_DATA_SEP_2010:PALLAS_TS,\ P_WKP_DATA_OCT_2010:PALLAS_TS,\
31
Copyright © 2013 Scale Abilities Ltd Data Pump Import undo_retention Start Streams Capture on Old Database
32
Copyright © 2013 Scale Abilities Ltd Data Pump Import impdp username parfile=table_data.par table_data.par: directory=exports logfile=imp_table_data.log parallel=4 network_link=solarisdb flashback_scn=195203110042 table_exists_action=APPEND exclude=statistics,constraint,\ ref_constraint,index,index_statistics schemas=apollo,hera,pallas,\ dbell,jknowles,staylor,glloyd,\ ………… continued on next slide
33
Copyright © 2013 Scale Abilities Ltd Data Pump Import impdp username parfile=table_data.par table_data.par: directory=exports logfile=imp_table_data.log parallel=4 network_link=solarisdb flashback_scn=195203110042 table_exists_action=APPEND exclude=statistics,constraint,\ ref_constraint,index,index_statistics schemas=apollo,hera,pallas,\ dbell,jknowles,staylor,glloyd,\ ………… continued on next slide
34
Copyright © 2013 Scale Abilities Ltd Data Pump Import impdp username parfile=table_data.par table_data.par: directory=exports logfile=imp_table_data.log parallel=4 network_link=solarisdb flashback_scn=195203110042 table_exists_action=APPEND exclude=statistics,constraint,\ ref_constraint,index,index_statistics schemas=apollo,hera,pallas,\ dbell,jknowles,staylor,glloyd,\ ………… continued on next slide
35
Copyright © 2013 Scale Abilities Ltd Data Pump Import impdp username parfile=table_data.par table_data.par: directory=exports logfile=imp_table_data.log parallel=4 network_link=solarisdb flashback_scn=195203110042 table_exists_action=APPEND exclude=statistics,constraint,\ ref_constraint,index,index_statistics schemas=apollo,hera,pallas,\ dbell,jknowles,staylor,glloyd,\ ………… continued on next slide
36
Copyright © 2013 Scale Abilities Ltd Data Pump Import impdp username parfile=table_data.par table_data.par: directory=exports logfile=imp_table_data.log parallel=4 network_link=solarisdb flashback_scn=195203110042 table_exists_action=APPEND exclude=statistics,constraint,\ ref_constraint,index,index_statistics schemas=apollo,hera,pallas,\ dbell,jknowles,staylor,glloyd,\ ………… continued on next slide
37
Copyright © 2013 Scale Abilities Ltd Data Pump Import remap_tablespace= A_HGU_DATA_APR_2006:APOLLO_TS,\ A_HGU_DATA_MAY_2006:APOLLO_TS,\ ………… A_JUR_INDX_AUG_2011:APOLLO_TS,\ A_JUR_INDX_SEP_2011:APOLLO_TS,\ ………… A_TRK_DATA_MAY_2005:APOLLO_TRACK_TS,\ A_TRK_DATA_JUN_2005:APOLLO_TRACK_TS,\ ………… P_WKP_DATA_SEP_2010:PALLAS_TS,\ P_WKP_DATA_OCT_2010:PALLAS_TS,\
38
Copyright © 2013 Scale Abilities Ltd Post Import Tasks Create triggers for 2 precreated tables Run sqlfile created by first import (indexes and constraints) Copy sequences from Solaris DR Database
39
Copyright © 2013 Scale Abilities Ltd Oracle Streams Define Streams Apply Processes Set Schema Instantiation SCN Start Streams Apply Processes Set Up Streams from New Database to Old Database
40
Copyright © 2013 Scale Abilities Ltd
42
Solaris Production Solaris DR Solaris DR
43
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR
44
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR
45
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR
46
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
47
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
48
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
49
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
50
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
51
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Linux DR Linux DR
52
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
53
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
54
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
55
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR
56
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
57
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
58
Copyright © 2013 Scale Abilities Ltd Solaris Production Linux Production Solaris DR Solaris DR Linux DR Linux DR
59
Copyright © 2013 Scale Abilities Ltd
60
Oracle 11.2 Clusterware “Clusterware” (CRS) “Grid Infrastructure” (GI) ASM part of Grid Infrastructure GI PSU contains Database PSU Apply GI PSU to GI and Database Homes
61
Copyright © 2013 Scale Abilities Ltd Oracle 11.2 SCAN jdbc:oracle:thin:@(DESCRIPTION= (LOAD_BALANCE=on) (ADDRESS=(PROTOCOL=TCP)(HOST=host1)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=host2)(PORT=1521)) (CONNECT_DATA=(SERVICE_NAME=service_name))) jdbc:oracle:thin:@//scan_name:1521/service_name jdbc:oracle:thin:@scan_name:1521/service_name
62
Copyright © 2013 Scale Abilities Ltd Oracle 11.2 SCAN jdbc:oracle:thin:@host1:1521:sid1 jdbc:oracle:thin:@scan_name:1521:service_name
63
Copyright © 2013 Scale Abilities Ltd Oracle 11.2 SCAN jdbc:oracle:thin:@host1:1521:sid1 jdbc:oracle:thin:@scan_name:1521:service_name jdbc:oracle:thin:@scan_name:1521/service_name
64
Copyright © 2013 Scale Abilities Ltd Oracle 11.2 SCAN jdbc:oracle:thin:@host1:1521:sid1 jdbc:oracle:thin:@scan_name:1521:service_name jdbc:oracle:thin:@scan_name:1521/service_name
65
Copyright © 2013 Scale Abilities Ltd
66
System and Network Admins Huge Pages oracle-rdbms-server-11gR2-preinstall
67
Copyright © 2013 Scale Abilities Ltd System and Network Admins Huge Pages yum install oracle-rdbms-server-11gR2-preinstall Open firewall for SCAN and VIP IP addresses To stop and start whole stack need root access to: /bin/crsctl
68
Copyright © 2013 Scale Abilities Ltd Directory Permissions Solaris drwxr-xr-x oracle oinstall Oct 28 14:24 oracle/ Linux drwx------ oracle oinstall Oct 16 12:35 oracle/
69
Copyright © 2013 Scale Abilities Ltd Directory Permissions Solaris drwxr-xr-x oracle oinstall Oct 28 14:24 oracle/ Linux drwx------ oracle oinstall Oct 16 12:35 oracle/
70
Copyright © 2013 Scale Abilities Ltd
71
Storage Grid Home grid 20GB Voting Disks and OCR ocr1, ocr2, ocr3 10GB Database Software and Diagnostic Destination oracle 100GB Database data 3TB flash 3TB redo 100GB temp 100GB
72
Copyright © 2013 Scale Abilities Ltd Local Storage Grid Home grid 20GB Voting Disks and OCR ocr1, ocr2, ocr3 10GB Database Software and Diagnostic Destination oracle 100GB Database data 3TB flash 3TB redo 100GB temp 100GB
73
Copyright © 2013 Scale Abilities Ltd NFS Storage Grid Home grid 20GB Voting Disks and OCR ocr1, ocr2, ocr3 10GB Database Software and Diagnostic Destination oracle 100GB Database data 3TB flash 3TB redo 100GB temp 100GB
74
Copyright © 2013 Scale Abilities Ltd Direct NFS Storage Grid Home grid 20GB Voting Disks and OCR ocr1, ocr2, ocr3 10GB Database Software and Diagnostic Destination oracle 100GB Database data 3TB flash 3TB redo 100GB temp 100GB
75
Copyright © 2013 Scale Abilities Ltd Storage Grid Home grid 20GB Voting Disks and OCR ocr1, ocr2, ocr3 10GB Database Software and Diagnostic Destination oracle 100GB Database data 3TB flash 3TB redo 100GB temp 100GB
76
Copyright © 2013 Scale Abilities Ltd
77
Migration Method Start Streams Capture on Old Database Data Pump at SCN from Old to New Database Start Streams Apply from SCN on New Database
78
Copyright © 2013 Scale Abilities Ltd Alternative Migration Methods Data Pump and another replication technology Cross-Platform Transportable Tablespaces
79
Copyright © 2013 Scale Abilities Ltd
80
@scaleabilities @phurley www.scaleabilities.co.uk patrick.hurley@scaleabilities.co.uk
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.