Nixon Deploying Hybrid Data Guard on Oracle Cloud
Nixon Deploying Hybrid Data Guard on Oracle Cloud
Yossi Nixon
www.axxana.com
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Agenda
Introduction
Environment Prerequisites
Deployment Process
Conclusion
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Introduction
Far Sync
Data Guard and Active Data Guard provides
Standby databases can be used for online reporting, test & development
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Hybrid DR to the Oracle Cloud
On-Premises (Production) Standby Databases on Public Cloud
Database Cloud
Service
Database Backup
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud ServiceGreat Lakes Oracle Conference 2018
Environment Prerequisites
OS: Linux, Windows & Solaris X86, DB: EE 64Bit 11.2.0.4, 12.1.0.2, 12.2.0.1
RAC or non-RAC (Note 413484.1 for Data Guard cross-platform compatibility)
Public network
Oracle Network Cloud Service – Site to Site VPN or VPN as a Service (VPNaaS)
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Deployment Process – Create an Oracle Instance
Technical
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Database Configuration
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Database Cloud Configured
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Instance Overview
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Create Access Rules
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Access Rules List
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Adding new Access Rule
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
On-Premises - Access & prompt-less SSH
Configure Access
Configure Name Resolution
prompt-less SSH:
Oracle Cloud: Generate the ssh key and copy the file to the On-Premises
$ ssh-keygen
$ scp ~/.ssh/id_rsa.pub oracle@<onpremisesIP>:~/.ssh/id_rsa.pub_cloud
Switch to root:
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
On-Premises - TCP Socket Buffer Size
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
On-Premises - Oracle Net
SQLNET.ENCRYPTION_SERVER = requested
SQLNET.CRYPTO_CHECKSUM_SERVER = requested
SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER = (SHA1)
SQLNET.ENCRYPTION_TYPES_SERVER = (AES256, AES192, AES128)
SQLNET.ENCRYPTION_CLIENT = requested
SQLNET.CRYPTO_CHECKSUM_CLIENT = requested
SQLNET.ENCRYPTION_TYPES_CLIENT = (AES256, AES192, AES128)
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
On-Premises - Oracle Home and Patches
OPatch succeeded.
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
On-Premises - Standby Redo Logs
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
On-Premises - Standby Redo Logs
alter system set DB_CREATE_ONLINE_LOG_DEST_1='&DISK_GROUP.'; SRLs are not duplexed
declare
log_num number;
log_size number;
log_num_standby number;
begin Number of Threads
for j in (select THREAD# i from gv$log group by THREAD#) loop
select count(*) into log_num from gv$log where THREAD#=j.i ; Logs Per Tread
select count(*) into log_num_standby from gv$standby_log where THREAD#=j.i ;
select max(BYTES) into log_size from gv$log where THREAD#=j.i ; Maximum Size of ORLs
for i in 1..(log_num+1-log_num_standby) loop
execute immediate 'ALTER DATABASE ADD STANDBY LOGFILE THREAD '||j.i ||' SIZE
'||log_size;
end loop; Bypass Already Created SRLs
end loop;
end;
/
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
On-Premises: Grid Infrastructure, TDE & Archive mode
The installation software for Oracle Grid infrastructure is not present on the
cloud service
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Prepare the Cloud Environment
Database
Remove the Default Database
Network
Install the Grid Infrastructure (if not already installed)
<primary/standby db_unique_name> =
(DESCRIPTION =
(SDU=65536)
(RECV_BUF_SIZE=10485760)
(SEND_BUF_SIZE=10485760)
(ADDRESS = (PROTOCOL = TCP)(HOST = <primary/standby IP address>)(PORT =
{<port#>}))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = <primary/standby db_unique_name>)
)
)
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Setting listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = <Local Instance name>)_DGMGRL)
(ORACLE_HOME = <Local Oracle Home>)
(SID_NAME = <Local Instance Name>) On 11.2 - a static
) listener is required
)
for Data Guard
Broker
$ORACLE_HOME/bin/lsnrctl reload <listener name>
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Preparing Auxiliary Database
dgmgrl sys/<passwd>@<PREMISES>
create configuration 'DGconfig' as primary database is <PREMISES> connect identifier
is <PREMISES>;
add database <CLOUD> as connect identifier is <CLOUD>;
edit database <PREMISES> set property RedoRoutes='(LOCAL: <CLOUD> ASYNC)';
edit database <CLOUD> set property RedoRoutes='(LOCAL:<PREMISES> ASYNC)';
RedoRoutes - not relevant for 11g
EDIT CONFIGURATION SET PROTECTION MODE AS MaxPerformance;
enable configuration;
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Data Guard Health Check
SQL> select thread#,count(group#) from v$log group by thread#; SRL >= ORL per Thread
Alternate
Far Sync
Primary Standby
Primary
Standby
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Axxana – Transparent Layered Protection
Physical
Protection Transparently
Managed Managed
Multiple Network
by the Connectivity by
User WAN, LAN, Wi-Fi, 4G Axxana
Battery
Powered
Data Safe
PhoenixOS
Smart DR
Far Sync
Virtual
Machine
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Active Data Guard Far Sync with Axxana
Zero
Distance
SYNC
Recovery over
Cellular/1GbE/10GbE
ASYNC over 10GbE
Axxana’s Solution
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
References
2615770.pdf
1.oraclecloud.com/pdf/gsg/OCI_Getting_Started.pdf
© All Rights Reserved. Axxana 2007-2018 Deploying Hybrid Data Guard on Oracle Cloud Great Lakes Oracle Conference 2018
Questions?