Hybrid cloud management is an interestingly hot topic for today’s cloud world, since not all companies want to move everything to the cloud. In this article series, we are looking at the detailed steps for setting up the Oracle Hybrid Cloud via the latest version – Oracle Enterprise Manager Cloud Control 13c installed on premises. Our main intention is to install an Enterprise Manager hybrid cloud agent on our database cloud servers (on the Oracle public cloud) via the hybrid gateway, in the scenario where our company has databases running on premises as well as on the Oracle public cloud, and then to look at hybrid cloud management using Enterprise Manager.
In the previous parts of the article series, we completed the pre-setup steps for the hybrid cloud – such as setting up one of our on-premises Enterprise Manager Oracle Management Service (OMS) agents as the hybrid gateway agent, creating SSH keys for the OMS server, and creating a named credential with SSH key credentials for the hybrid cloud. At the same time, we also created an Oracle Database service (a server with an Oracle database) on the Oracle public cloud.
Next, we completed the installation of the hybrid cloud agent via Oracle Enterprise Manager, which performed a background transfer of the agent software to the destination host. We logged into the on-premises Enterprise Manager console as SYSMAN or a super administrator and drilled down to the Cloud Host home page. On this page, we could see the Enterprise Manager configuration and performance metrics for the host; these metrics had been uploaded by the hybrid cloud agent. And, after the database discovery process was completed, the cloud database appeared in the list of Enterprise Manager database targets, and it can now be monitored and managed just like a normal on-premises database.
Next, we compared Oracle database configurations by selecting Enterprise | Configuration | Comparison and Drift Management from the Enterprise Manager console, and creating a comparison. We selected the on-premises 12c database “ahuprod.sainath.com” and the Cloud database AHUTEST. Effectively, we compared the configuration of a local on-premises database with that of a cloud database. This comparison can be done at the server level as well, and configurations at a certain date and time can be saved as a “gold” configuration to compare to current configurations at regular intervals, to detect configuration drift. Oracle Enterprise Manager is also able to enforce the same compliance standards on the Oracle public cloud as well as on premises, which is perfect for a hybrid database setup.
Next, we looked into the cloning of PDBs from on premises to cloud, one of the main features of the hybrid cloud. To proceed with the actual PDB cloning, we made sure the source and destination CDBs were at the latest PSU. We then went through the steps to preserve the Enterprise Manager agent home when patching the cloud database. Next, we started the clone to Oracle cloud process. This was done via right-clicking on the on-premises PDB “SALES”, which is in the ahuprod CDB, and selecting Oracle Database | Cloning | Clone to Oracle Cloud.
The name of the destination PDB on the cloud side was entered as “SALESTST”, since this will be a test pluggable database. We also selected a user name and password for the PDB administrator of the new PDB. Then, we could have clicked on “Clone” to start the procedure, but instead we clicked on the “Advanced” button at the top of the page. This switched to advanced mode, and a multiple page workflow appeared on the same screen.
We clicked on Next. The “Clone to Oracle Cloud: Configuration” page appeared. As per cloud database standards that are based on Oracle Flexible Architecture (OFA) standards, the PDB data files will reside on /u02, in the /u02/app/oracle/oradata/<PDB name> directory. You can also enter storage limits if you wish, such as the maximum PDB size or the maximum shared TEMP tablespace size. The default logging attribute for tablespaces creating with the PDB can also be specified – Logging, No Logging or Filesystem Like Logging.
After this, the Post Processing page appeared. This page showed us the importance of the Advanced mode, since it is possible to select a Data Masking Definition if it has been created for the source database. Masking is seamlessly integrated with Enterprise Manager. This makes sure that confidential data is masked when being cloned from an on premises production database to a cloud development database.
A simple masking definition had already been created. This definition was named “LatestDataMaskDefinitionHR” (no spaces should be included in the definition name) and was selected at this point. This will mask some of the confidential columns in the Employees table, in the destination cloud PDB that will be created.
In the Schedule screen that appeared next, you scheduled the job and could also choose to be notified on a certain status such as Action Required, Suspended, or Problems. Once you reviewed and clicked on Clone, the procedure started to execute.
Among the steps in the procedure, we also observed a Secure Copy files step. Note that the “rsync” UNIX command was used by the procedure to fast-copy files to the cloud.
The clone to cloud completed successfully in under 16 minutes (depending on the PDB size and the Internet connectivity). When you moved to Targets | Databases, you saw the new SALES Test PDB under the cloud CDB AHUTEST. Then you drilled down to the Sales Test PDB home page (Figure 35).
Figure 35: PDB Home Page
Here we can see the newly cloned SALESTST PDB merrily working. The Oracle Cloud words and icon are visible on the top of the page. Note that database performance details may not be seen if the plain Enterprise Edition database had been selected instead of Extreme or High performance when the cloud database AHUTEST was initially created. The plain Enterprise Edition database in the cloud does not have the diagnostics or tuning pack licenses that are required for these features.
We continue in the next part of this article series.