Dias nummer 1 - DOAG
Transcript of Dias nummer 1 - DOAG
© dbi services © dbi services
Jérôme Witt
Consultant
Oracle Certified Professional 11g
Yann Neuhaus
Principal Consultant
Region Manager - CEO
dbi services
Dbvisit Standby
www.dbi-services.com 1 18.10.2012
© dbi services © dbi services
Experts At Your Service
25 specialists in IT infrastructure
Certified, experienced, passionate
Sharing a customer-oriented approach
Based In Switzerland
100% self-financed Swiss company
More than CHF 3 mio. in sales
Offices: BaselArea & Lausanne, German, French, & English spoken
Leading In Infrastructure Services
Over 70 customers in CH, D, & F
25 SLAs dbi FlexService signed
Long-standing expertise, technical leadership, ISO 20000 certified
dbi services
Who We Are
www.dbi-services.com 2 18.10.2012
© dbi services © dbi services
Agenda Agenda
Dbvisit Standby
Agenda
i. Who is Dbvisit?
ii. What is Dbvisit Standby?
iii. Architecture
iv. How to setup?
v. Operate Dbvisit Standby
www.dbi-services.com 3 18.10.2012
© dbi services © dbi services
Who is Dbvisit?
Established in 2006
Headquarter based in New Zealand
Sales offices in US, Netherlands & France
Specialized in replication solutions
Focused on Oracle Standard Edition
dbi services and Dbvisit
dbi is the 1st and only dbvisit Platinum partner is Switzerland
Several successful projects already done and more coming
Hublot
Kantonsspital Bruderholz
Dbvisit Standby
Who is Dbvisit?
www.dbi-services.com 4 18.10.2012
© dbi services © dbi services
Dbvisit Replicate
What are their products ?
www.dbi-services.com 5 18.10.2012
Real-time data replication for Oracle to Oracle MySQL (innoDB) MS SQL
Real-time replication for reporting databases Powered by Dbvisit Replicate
Disaster recovery Standby databases for Oracle Standard Edition
© dbi services © dbi services
Agenda Agenda
Dbvisit Standby
Agenda
i. Who is Dbvisit?
ii. What is Dbvisit Standby?
iii. Architecture
iv. How to setup?
v. Operate Dbvisit Standby
www.dbi-services.com 6 18.10.2012
© dbi services © dbi services
A Data Availability solution
Maintain a standby database
Based on archivelogs transfer and recover on standby side
Provide a hot “backup” available 7x24
Allows switchover in a matter of minutes
Helps to protect against
Hardware failures
Data corruption
Human errors
Site disaster
Dbvisit Standby
What is Dbvisit Standby ?
www.dbi-services.com 7 18.10.2012
© dbi services © dbi services
Oracle released supported
8i to 11g
32 bits and 64 bits
Express to Enterprise Edition, including
Standard Edition One
Real Application Cluster (RAC)
Automatic Storage Management (ASM)
Supported OS
Windows 2000 to 2008, XP & 7
Linux: Intel & Itanium
Unix: Solaris, HP-UX & AIX
Dbvisit Standby
What is Dbvisit Standby ?
www.dbi-services.com 8 18.10.2012
© dbi services © dbi services
Dbvisit Standby pros
Easy to implement & operate
Command line and Web interface
Efficient Data Availability
Cost efficient solution
Based on Oracle Standard Edition
Dbvisit Standby cons
No Service Availability (RTO)
No automatic failover
Reduced data availability (RPO)
Between 1 and 10 min. data loss
No old primary reinstate
Standby to be recreated after a failover
Dbvisit Standby
What is Dbvisit Standby ?
www.dbi-services.com 9 18.10.2012
© dbi services © dbi services
Licensing model
Perpetual license – no renewal
Standby server license included
In RAC all sockets in the cluster count
Dbvisit Standby
What is Dbvisit Standby ?
www.dbi-services.com 10 18.10.2012
Single Instance Multiple Instances Max Sockets
Standard One (DS1) $ 4’176 $ 7’101 2
Standard (DS) $ 5’597 $ 9’514 4
Enterprise (DE) $ 7’016 $ 11’928 6
Enterprisex (DX)
$ 8’438 $ 14’342 No limit
© dbi services © dbi services
Agenda Agenda
Dbvisit Standby
Agenda
i. What is Dbvisit Standby?
ii. Architecture
iii. How to setup?
iv. Operate Dbvisit Standby
www.dbi-services.com 11 18.10.2012
© dbi services © dbi services
Based on archivelogs transfer
Dbvisit Standby
Architecture
www.dbi-services.com 12 18.10.2012
Primary Server Standby Server
© dbi services © dbi services
Dbvisit standby binaries
«dbvisit_setup »
«dbvisit»
«dbv_oraStartStop»
«dbv_functions»
Dbvisit Standby
Architecture
www.dbi-services.com 13 18.10.2012
[oracle@vmdbvtest1 ~]$ cd /u00/app/dbvisit/standby-6.0.34/
[oracle@vmdbvtest1 standby-6.0.34]$ ls
dbvserver dbvserverd README.txt standby
[oracle@vmdbvtest1 standby-6.0.34]$ cd standby/
[oracle@vmdbvtest1 standby]$ ls
dbv_functions dbvisit_setup dbv_oraStartStop README.txt
dbvisit dbv_ORACLE_SID.env online_user_guide_reference.txt
© dbi services © dbi services
Dbvisit standby configuration
DDC file
Contains all Dbvisit configuration variables
ASCII file, similar format as Oracle Init file
One file per database configuration
Default Name: dbv_<SID>.env
Archivelogs Management Module policy
Allows to manage both primary and standby archivelogs
Based on date and storage usage thresholds
dbi services recommendation
Primary archivelogs management : DEACTIVATED
Standby archivelogs management : ACTIVATED
Dbvisit Standby
Architecture
www.dbi-services.com 14 18.10.2012
© dbi services © dbi services
Dbvisit standby configuration
DDR repository
Dbvisit Database Repository
Dedicated schema in the managed database
Used to manage standby processes
Dbvisit Standby
Architecture
www.dbi-services.com 15 18.10.2012
TABLE_NAME
------------------------------
DBV_VERSION DBV_REGISTER
DBV_ADD_DATAFILE DBV_CR_STDBY_INIT_ORA_T
DBV_CR_STDBY_FILE_RENAME_T DBV_CR_STDBY_T
DBV_CR_STDBY_INIT_ORA DBV_CR_STDBY_FILE_RENAME
DBV_CR_STDBY_DATAFILE_OPS DBV_CR_STDBY_THREAD_SEQ
DBV_CR_STDBY_FILE_STAT DBV_CR_STDBY_HIST
DBV_CR_STDBY DBV_SEQUENCE_LOG
DBV_TRANSFER_LOG
© dbi services © dbi services
Web Interface - optional
«Dbvserverd»
Dbvisit Standby
Architecture
www.dbi-services.com 16 18.10.2012
© dbi services © dbi services
Agenda Agenda
Dbvisit Standby
Agenda
i. What is Dbvisit Standby?
ii. Architecture
iii. How to setup?
iv. Operate Dbvisit Standby
www.dbi-services.com 17 18.10.2012
© dbi services © dbi services
Configuring a Dbvisit Standby environment is:
Dbvisit Standby
How to setup?
www.dbi-services.com 18 18.10.2012
Install Dbvisit Standby
Create a configuration
Create a Standby database
© dbi services © dbi services
Install Dbvisit Standby
Software binaries are delivered as a zip file
dbi standards for installation path is
/u00/app/dbvisit/<product>-<version> (DBVISIT_BASE)
/u00/app/dbvisit/standby-6.0.34
Once extracted, install Dbvisit by running
/tmp/dbvisit/dbvisit_install
Must be installed on both primary and standby servers
Dbvisit Standby
How to setup?
www.dbi-services.com 19 18.10.2012
© dbi services © dbi services
Install Dbvisit Standby
Installation pre-requirements
Oracle software installed on both primary and standby server
SSH keys exchanged between both server
Change permission on dbvisit_install
Dbvisit Standby
How to setup?
www.dbi-services.com 20 18.10.2012
[oracle@vmdbvtest1 ~]$ cd /tmp/dbvisit/
[oracle@vmdbvtest1 dbvisit]$ chmod 750 ./dbvisit_install
[oracle@vmdbvtest1 dbvisit]$ ll /u00/app/dbvisit/standby-6.0.34
total 19040
-rwxr-x--- 1 oracle oracle 8230514 Jul 25 10:29 dbvisit_install
drwxrwxr-x 5 oracle oracle 4096 Aug 17 08:57 dbvserver
-rw-rw-r-- 1 oracle oracle 11141528 Jul 25 10:29 dbvserverd
-rw-rw-r-- 1 oracle oracle 76275 Jul 25 10:01 README.txt
drwxrwxr-x 2 oracle oracle 4096 Aug 17 08:57 standby
© dbi services © dbi services
Install Dbvisit Standby
Run installation – dbvisit_install
Dbvisit Standby
How to setup?
www.dbi-services.com 21 18.10.2012
[oracle@vmdbvtest1 dbvisit]$ ./dbvisit_install
------------------------------------------------------------------
Welcome. Your Dbvisit Standby product is going to be installed now...
This will install:
- Dbvisit Standby command line version
- Dbvserver (to provide a web interface to Dbvisit Standby)
------------------------------------------------------------------
It is recommended to make a backup of our current Dbvisit
software location for rollback purposes.
> Oracle user name on this server? [default: "oracle"]
Enter a custom value or press ENTER to accept default:
© dbi services © dbi services
Install Dbvisit Standby
Run installation – dbvisit_install
Dbvisit Standby
How to setup?
www.dbi-services.com 22 18.10.2012
> Turn on automatic email to Dbvisit support: Yes/No [default: "Yes"]
Enter a custom value or press ENTER to accept default: No
...
> Start Dbvserver: Yes/No [default: "Yes"]
Enter a custom value or press ENTER to accept default: Yes
...
Stopping all old dbvserverd processes possibly running...
Updating Dbvserver configuration file...
A new Dbvisit Standby installation will be performed...
Creating installation sub-directories...
Installing product files...
==> Dbvisit product installation complete.
© dbi services © dbi services
Configuring a Dbvisit Standby environment is:
Dbvisit Standby
How to setup?
www.dbi-services.com 23 18.10.2012
Install Dbvisit Standby
Create a configuration
Create a Standby database
© dbi services © dbi services
Configure Dbvisit Standby
Run <DBVISIT_BASE>/standby/dbvisit_setup
Go through the command line wizard
Wizard allows to
Configure
Operate
Uninstall
Main menus
Menu 1: Configure dbvisit including DDC & DDR
Menu 2 to 4: Configure individual components
Menu 5 to 6: Manage DDR & Update DDC
Dbvisit Standby
How to setup?
www.dbi-services.com 24 18.10.2012
© dbi services © dbi services
Dbvisit Standby
How to setup?
www.dbi-services.com 25 18.10.2012
Dbvisit Database setup
Default values will be shown in []
Options:
1) New Dbvisit Database setup (combines options 2,3,4)
1a) New Dbvisit RAC Instance setup (combines options 2,3,4)
2) New Dbvisit Database configuration (DDC) file setup
3) New Dbvisit Archive Management Module (AMM) setup
4) New Dbvisit Database repository (DDR) setup
5) Manage Dbvisit Database repository (DDR)
6) Update Dbvisit Database configuration (DDC) file
7) Create Standby Database (and template)
8) Synchronize Standby Database
9) Uninstall Dbvisit Database repository (DDR)
E) Exit
© dbi services © dbi services
Configure Dbvisit Standby
Dbvisit Standby
How to setup?
www.dbi-services.com 26 18.10.2012
The following Oracle database(s) have been found on this server:
SID ORACLE_HOME
=== ===========
1) rdbms11203 /u00/app/oracle/product/11.2.0/db_3_0
2) MERLIN /u00/app/oracle/product/11.2.0/db_3_0
3) Enter own ORACLE_SID and ORACLE_HOME
Please enter choice : 2
...
Account that will run Dbvisit is [oracle]:
=>Account owner will be: oracle
...
© dbi services © dbi services
Configure Dbvisit Standby
Dbvisit Standby
How to setup?
www.dbi-services.com 27 18.10.2012
The following methods have been found on this server:
1) /usr/bin/ssh
2) /usr/bin/rsh
3) Enter own method
Please enter choice [1] : 1
...
The following methods have been found on this server:
1) /usr/bin/scp
2) /usr/bin/rcp
3) /usr/bin/rsync
4) Enter own method
Please enter choice [1] : 1
...
© dbi services © dbi services
Configure Dbvisit Standby, Archive log Management Module (AMM)
Dbvisit Standby
How to setup?
www.dbi-services.com 28 18.10.2012
Should Dbvisit Archive Log Management Module be used on primary
server? [Yes]: No
=>Dbvisit Archive Log Management Module on primary server will used:
No
...
Should Dbvisit Archive Log Management Module be used on standby
server? [Yes]:
=>Dbvisit Archive Log Management Module on standby server will used:
Yes
...
Number of days to keep log files on disk is [7]: 7
=>Number of days to keep log files on disk will be: 7
Number of log files to keep on disk is [0]:
=>Number of log files to keep on disk will be: 0
...
© dbi services © dbi services
Configure Dbvisit Standby DDR
Dbvisit Standby
How to setup?
www.dbi-services.com 29 18.10.2012
Please select the default tablespace to install the Dbvisit Database
repository (DDR).
The following tablespaces are available:
Tablespace
===========
1) USERS
2) CORRUPTED
3) Refresh list
Please enter choice : 3
Refreshing list....
© dbi services © dbi services
Configure Dbvisit Standby DDR
Dbvisit Standby
How to setup?
www.dbi-services.com 30 18.10.2012
The following tablespaces are available:
Tablespace
===========
1) USERS
2) CORRUPTED
3) DBVISIT
4) Refresh list
Please enter choice : 3
The default tablespace will be: DBVISIT
© dbi services © dbi services
Configure Dbvisit Standby
Dbvisit Standby
How to setup?
www.dbi-services.com 31 18.10.2012
Dbvisit will now create the Dbvisit Database repository (DDR).
Continue (Yes) or return to the menu?
<Yes/Return> [Yes]:
User dbvisit created.
Grants to user dbvisit completed.
Dbvisit Database repository (DDR) for dbvisit created.
...
=========================================================
Dbvisit configuration completed.
...
Next steps:
Create standby database using option in main menu:
7) Create Standby Database
=========================================================
Please press <Enter> to return to main menu...
© dbi services © dbi services
Summary of the configuration
ORATAB location, database concerned?
Where to store the Dbvisit database archive log?
Connection, transfer, compression?
Where to store log files?
Primary and standby server information
Monitoring
Archive log management module (AMM)
DDR information
Review and modifications are possible at any time
Dbvisit Standby
How to setup?
www.dbi-services.com 32 18.10.2012
6) Update Dbvisit Database configuration (DDC) file
© dbi services © dbi services
Configuring a Dbvisit Standby environment is:
Dbvisit Standby
How to setup?
www.dbi-services.com 33 18.10.2012
Install Dbvisit Standby
Create a configuration
Create a Standby database
© dbi services © dbi services
Create Standby database
Dbvisit Standby
How to setup?
www.dbi-services.com 34 18.10.2012
Is this the primary server? <Yes/No> [Yes]:
=========================================================
Dbvisit Standby Database Technology (6.0.34.9322)
http://www.dbvisit.com
...
Options:
1) New Dbvisit Database setup (combines options 2,3,4)
...
7) Create Standby Database (and template)
8) Synchronize Standby Database
9) Uninstall Dbvisit Database repository (DDR)
E) Exit
=========================================================
Please enter choice : 7
© dbi services © dbi services
Create Standby database
Dbvisit Standby
How to setup?
www.dbi-services.com 35 18.10.2012
=>Creating Standby Database.
Primary database will NOT be shutdown.
Choose database:
The following Oracle database(s) have a Dbvisit Database
configuration (DDC)
file on this server:
DDC
===
1) MERLIN
2) Return to menu
Please enter choice : 1
Is this correct? <Yes/No> [Yes]:
Database MERLIN is up.
© dbi services © dbi services
Summary of the standby database creation
Select a configured database
Dbvisit Standby starts to transfer the Dbvisit DDC
Installation health check on the standby server
Standby database init parameter configuration
Standby database creation method (backup, compression)
1. direct transfer
2. using a temporary location
3. using a portable medium
Possibility to save the setup as template
Dbvisit Standby
How to setup?
www.dbi-services.com 36 18.10.2012
© dbi services © dbi services
Create Standby database
Dbvisit Standby
How to setup?
www.dbi-services.com 37 18.10.2012
Restoring standby control files... Standby control files restored.
Starting Standby Database MERLIN...Standby Database MERLIN started.
Standby database MERLIN on vmdbvtest2 mounted.
Performing Oracle Checkpoint.
Waiting 3 seconds for log switch completion...
Standby database created.
To complete creating standby database, run dbvisit on the primary
server, then on the standby, to ensure the standby database is in
sync with primary.
Please press <Enter> to continue...
=========================================================
Standby Database creation on vmdbvtest2 completed.
© dbi services © dbi services
Manage application access
OS dependent (Management of virtual IP)
Linux
Pacemaker – Corosync
Microsoft
Microsoft Cluster
Requires quorum through shared disks
Included in Datacenter edition
Do not configure automatic switchover
Switchover/failover shall be managed by the administrator depending on the database role
dbi services recommend the use of a Virtual IP (keep alive problematic)
Dbvisit Standby
How to setup?
www.dbi-services.com 38 18.10.2012
© dbi services © dbi services
Agenda Agenda
Dbvisit Standby
Agenda
i. What is Dbvisit Standby?
ii. Architecture
iii. How to setup?
iv. Operate Dbvisit Standby
www.dbi-services.com 39 18.10.2012
© dbi services © dbi services
Synchronize the standby database
Runs on primary database to transfer files
Runs on standby server to apply transferred logs
Command: dbvisit <DDC>
Shall be scheduled in oracle’s crontab
Recommended frequency: 10 min.
Mail sent in case of synchronization failure
Success mail may be sent according configuration
Parameters: SUCCESSMAIL & SUCCESSMAIL_DR
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 40 18.10.2012
*/7 * * * * /u00/app/dbvisit/standby-6.0.34/standby/dbvisit MERLIN
© dbi services © dbi services
Synchronize the standby database
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 41 18.10.2012
[oracle@vmdbvtest1 standby]$ ./dbvisit MERLIN
=======================================================
...
Log file(s) for MERLIN will be transferred from vmdbvtest1 to
vmdbvtest2...
Transferring o1_mf_1_47_83nnnfbv_.arc to host
vmdbvtest2:o1_mf_1_47_83nnnfbv_.arc
201208262005 - 1 Log transfer to vmdbvtest2 for MERLIN completed.
Last sequence was 47.
=======================================================
dbvisit ended on vmdbvtest1: Sun Aug 26 20:05:35 2012
=======================================================
© dbi services © dbi services
Synchronize the standby database
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 42 18.10.2012
[oracle@vmdbvtest2 standby]$ ./dbvisit MERLIN
...
Log file(s) for MERLIN from vmdbvtest1 will be applied to
vmdbvtest2...
...
201208262008 - Log seq 47 thread 1 applied to standby database
MERLIN.
Dbvisit Archive Management Module (AMM)
(Number to keep: 0) (Days to keep: 7) (Diskspace full threshold: 85%)
...
/u00/app/oracle/admin/MERLIN/dbvisit_arc
Total number of archive files : 1
Number of files deleted : 0
Current Disk percent full : 14%
...
© dbi services © dbi services
Monitoring
Daily heartbeat
default in DDC configuration: 07:00 am
Status mail
Mail status
Command dbvisit –i <DDC>
To be run on primary server only
Web interface
One interface per database server
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 43 18.10.2012
[oracle@vmdbvtest1 standby]$ ./dbvisit -i MERLIN
© dbi services © dbi services
Monitoring
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 44 18.10.2012
© dbi services © dbi services
Archivelogs Gap management
Archivelogs can be retransferred to standby server
New feature (dbvisit_setup wizard)
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 45 18.10.2012
[oracle@vmdbvtest1 standby]$ ./dbvisit -r 56 MERLIN
...
No Dbvisit Standby configuration differences found between vmdbvtest1
and vmdbvtest2.
...
Transferring o1_mf_1_57_83ntyj3h_.arc to host
vmdbvtest2:o1_mf_1_57_83ntyj3h_.arc
201208262032 - 3 Log transfers to vmdbvtest2 for MERLIN completed.
Last sequence was 57.
...
8) Synchronize Standby Database
© dbi services © dbi services
Dbvisit Standby switchover
Command: dbv_oraStartStop switchover <DDC>
Must be started simultaneously on primary & standby servers
Use a unique key to identify processes between servers
String provided by user
Goes through 18 steps to complete
Synchronization schedules shall be deactivated
Can drive to complete configuration corruption
Pre-requirements
No archivelogs gap between primary and standby database
Run manual synchronization first
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 46 18.10.2012
© dbi services © dbi services
Dbvisit Standby failover
Command: dbv_oraStartStop activate<DDC>
Run on standby server
Pre-requirements
Run manual synchronization first on standby server
Synchronization schedules shall be deactivated
Failover performs
RECOVER until CANCEL
Post-operation
Backup the new primary database
Re-create the standby database
Add a TEMPFILE if required
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 47 18.10.2012
© dbi services © dbi services
Dbvisit Standby failover
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 48 18.10.2012
[oracle@vmdbvtest1 standby]$ ./dbvisit MERLIN
...
No new logs to apply.
...
[oracle@vmdbvtest1 standby]$ ./dbv_oraStartStop activate MERLIN
=============================================================
Dbvisit Standby Database Technology (6.0.34.9307) (pid 6218)
…
Activating means this database will become a Primary Database.
It will no longer be a Standby Database for MERLIN on vmdbvtest2.
Activation cannot be reversed.
=>Activate Standby Database on vmdbvtest1? <Yes/No> [No]: Yes
Are you sure? <Yes/No> [No]: Yes
Activating now...
© dbi services © dbi services
Dbvisit Standby failover
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 49 18.10.2012
Activate Standby Database MERLIN...
Standby Database MERLIN activated.
Shutting down standby Database MERLIN...
Standby Database MERLIN shutdown successfully.
Starting Activated Standby Database MERLIN...
Activated Standby Database MERLIN started .
File dbv_MERLIN.env copied to dbv_MERLIN.env.201208271116.
..
SOURCE=vmdbvtest1 DESTINATION=vmdbvtest2.
Activation complete. Please ensure a backup of this Database is made.
Old archives from before the activation should be removed to avoid
mix-up between new and old archive logs.
..
If the Dbvisit Standby process is to be reversed, then
Database on vmdbvtest2 will need to be rebuilt as a Standby Database.
© dbi services © dbi services
Comparison
Dbvisit Standby
Operate Dbvisit Standby
www.dbi-services.com 50 18.10.2012
Dbvisit Standby
Oracle Data Guard
Oracle RAC
Oracle Clusterware
Service Availability
Data Availability
Complexity
Costs Scalability
(Active Guard)
© dbi services © dbi services
Healthcare: Kantonspital Bruderholz
Oracle Linux, Pacemaker – Corosync (VIP)
Budget cleared
Luxury industry: Hublot Windows Server 2003, Windows Cluster (VIP)
High Availability
Public sector: Kanton Jura - IT IBM AIX, Partial Active-Active cluster (Bull ARF)
Higher availability (data availability)
Dbvisit Standby - Fixed Price Services http://www.dbi-services.com/index.php/products/fixed-price-
services/dbvisit-data-guard-light
Dbvisit Standby
Successful projects
www.dbi-services.com 51 18.10.2012
© dbi services © dbi services
Dbvisit Standby test drive @AWS
Dvisit Standby
Amazon cloud
www.dbi-services.com 52 18.10.2012