Professional Documents
Culture Documents
Dbvisit v11 Training Nov 2022
Dbvisit v11 Training Nov 2022
Technical training
2022
Agenda
● All Dbvisit processes run in stacks (as opposed to v10 and before: dbvnet,
dbvagent, dbvctl, observer …)
● As of now Running with command line is entirely possible except create DDC and
setting automated standby update
https://dbvisit.atlassian.net/wiki/spaces/DSMP/pages/3238264943/System+Requirements
● Linux 6-8 (RHEL, SLES, OEL), please don’t use non-certified systems like CentOS
●
●
Windows 2008-2022
Standby Version 10.1
Refer to MOS for certified OS
v11 Supporting:
●
Demo
Oracle 10g - 21c (Latest Patchset recommended) EE+SE2
● 19.17 !!! - requires 11.2.1 Hotfix
©2021
© 2021Dbvisit
DbvisitSoftware
Software ||dbvisit.com
dbvisit.com
Dbvisit works and is supported with major
Dbvisit and
cloud providers
Cloud
• Operating system access needed
• Cloud only and also hybrid deployments
NETWORK OVERVIEW https://dbvisit.atlassian.net/wiki/spaces/DSMP/pages/3238264943/System+Requirements
DbvagentManager Ports
Listens on:
7890 TCP File Transfer
ControlCenter Ports
Listens on:
4433 TCP Webserver
5533 TCP Agent Incoming
Communication
Installation Requirements
Storage Space
Network
Users
● If you run with systemctl, consider turning off selinux and be aware of setting limits, as
it will be in fact dbvagentmanager process starting the database (all limits are
inherited) for example:
...
[Service]
LimitNOFILE=65536
LimitNPROC=16384
LimitMEMLOCK=infinity
...
./install-agent-v11.2.0 -batch
Creating Oracle Configuration
https://dbvisit.atlassian.net/wiki/spaces/DSMP/pages/3258253344/Create+Standby+Multipl
atform+Configuration
https://dbvisit.atlassian.net/wiki/spaces/DSMP/pages/3287482402/DDC+File+Refere
nce
● Located on primary and standby server. On Primary is “master” file, on standby it’s
only a copy
● Not all variables are listed although all of them are used
#4 CSD Pre-checks and
process
Creating Oracle Standby Database - Prechecks
● Disable any backup jobs (deleting of archivelogs during create process isn’t good)
● Disk Space (default compressed backup ~ 20-30% of the total database size)
● Redo log size and switch frequency (primary database should be switching logfile
about 5-6 times per hour)
● Redo log size doesn’t matter, archivelog doesn’t contain empty space
SQL for log switches
● Database file names should not be a mix of non-OMF and OMF naming (OMF=Oracle
Managed Files)
OMF= /u02/app/oracle/oradata/MEGA/datafile/o1_mf_cwc_kcy4tyky_.dbf
non-OMF= /u02/app/oracle/oradata/MEGA/datafile/users01.dbf
● When using filesystem, we can use OMF convention or (exclusive or) non-OMF
convention (never mix)
● When using ASM and OMF datafiles on primary need to be located on single
diskgroup. It’s not possible to create standby DB with datafiles in +DATA1, DATA2 etc …
Creating Oracle Standby Database
● Is asynchronous and done via applying primary archivelogs to the standby database
● On primary the archivelog is copied directly from FRA or log_archive_dest via network
to the ARCHDEST directory on the standby server
● Dbvisit processes check each 5 seconds on primary and standby for new archivelog
● In case FRA or log_archive_dest is located on ASM, Dbvisit will first copy the
archivelog to the local filesystem directory ARCHSOURCE (DDC parameter)
● Dbvisit Synchronizes all operations including addition of datafiles and even whole PDB
● In case of archivelog loss and unresolvable gap it’s possible to synchronize standby
database with the RMAN incremental backup
Enabling Automatic Synchronization
● sqlplus - default, very fast for applying individual archivelogs. Very slow for applying
large amount of archivelogs
● Will resolve issue with nologging transactions and also resolve issue when archivelogs
needed to recover standby database are for any reason deleted from the primary or
when there are too many archivelogs to apply
● It is needed to provide temporary space for the backup on primary and standby server
● In some cases when standby database is lagging far behind Incremental backup
doesn’t make much sense and it’s better to recreate standby DB from scratch
RMAN Incremental backup sync - example
#6 AMM
Automatic Archive Log Management (AMM)
https://dbvisit.atlassian.net/wiki/spaces/DSMP/pages/3349217327/Archivelog+Management+Module
● Using Dbvisit AMM for archivelog housekeeping is optional on both sides (it’s disabled by
default.
● Dbvisit will never delete an archive which was not yet transferred or applied
● AMM is triggered by the process which transfers / applies archivelogs - the transfer / apply
must be successful, otherwise AMM is not triggered
● Only two criteria for deletion: based on time and based on total count of archivelogs
● Dbvisit NEVER deletes archivelog which was not yet transferred to standby
AMM on Standby
● Dbvisit NEVER deletes archivelog which was not yet applied to standby
#7 Notifications
Notifications Global Settings Setup
● Global Email Notifications settings include general information about SMTP server valid for
ALL configurations and ALL databases
● There’s API available for easy integration with existing monitoring systems
● API is not suitable for other actions such as switchover, create standby database etc …
# on webserver host:
● Controlled and reversible process for switching roles of Primary and Standby DB with Zero data loss
● Can be done only when in full and complete control over the whole environment
● With Dbvisit process to switchover and getting back is still the same process, all variables are updated
automatically
Graceful Switchover - Preparation
● Restart primary database (this ensures no sessions will remain in database and prevent shutdown)
● Make sure no logswitches will be done on primary (for example scheduled backups)
● Perform switchover
#9 Failover
Failover
● Activation of standby database (opening read write) with no interaction with Primary whatsoever
● Non-reversible action
● Resume the automated standby database to sync the standby database with primary.
https://dbvisit.atlassian.net/wiki/spaces/DSMP/pages/3347677186/Oracle+Activation+and+DR+Testing#2.-Test-Standby-Activation
#11 Upgrade
Upgrade from v10/v9
https://dbvisit.atlassian.net/wiki/spaces/DSMP/pages/3258220610/Upgrading+from+v9+or+v10
#12 User Roles
User Roles in Control Center
○ Admin
○ Operator
○ Monitor
https://dbvisit.atlassian.net/wiki/spaces/DSMP/pages/3391324188/User+Management
Thank
You
dbvisit.com/getstandby
jan.klinke@dbvisit.com
info@dbvisit.com