Reader small image

You're reading from  Oracle Enterprise Manager Cloud Control 12c: Managing Data Center Chaos

Product typeBook
Published inDec 2012
Reading LevelIntermediate
PublisherPackt
ISBN-139781849684781
Edition1st Edition
Languages
Right arrow
Author (1)
PORUS HOMI HAVEWALA
PORUS HOMI HAVEWALA
author image
PORUS HOMI HAVEWALA

Porus Homi Havewala works as the Senior Manager (for database management) in the Enterprise Technology Program Office of Oracle Corporation, based in Singapore, and specializes in Oracle Enterprise Manager. He is a double Oracle Certified Master (OCM) in 10g and 11g, as well as the first Oracle employee ACE in the country. He was awarded the prestigious Oracle ACE Director title by Oracle HQ in 2008. There are less than 150 Oracle ACE Directors in the entire world and Poruswas the very first Oracle ACE and ACE Director in Singapore – a recognition of his outstanding achievements in the Oracle world.Porus has had extensive experience in Oracle technology since 1994; this includes him working as a Senior Production DBA, Principal Database Consultant, Database Architect, E-Business Technical DBA, Development DBA, and Database Designer and Modeler (using Oracle Designer). He has published numerous articles on Oracle Enterprise Manager on OTN, and has created http://enterprise-manager. blogspot.com, one of the world's first blogs dedicated to Enterprise Manager (with Oracle Press Credentials). Porus is also the author of the book, Oracle Enterprise Manager Grid Control, Rampant TechPress which was published in 2010.He started in the IT industry in the mid-1980s as a Turbo-C programmer in India and then as a dBase/FoxPro Developer in Australia. In the early 1990s he wrote a book on Microsoft FoxPro, which was his first published technical work. He entered the heady world of Oracle technology from 1994 as an Oracle DBA/Developer (using Oracle Forms, Oracle Reports, and Oracle Designer).In Telstra, the largest telecommunications company in Australia, Porus was the Senior Database Consultant in the central DBA team for a number of years and was responsible for database standards, database architecture, and the architecture, setup, and management of the first production Enterprise Manager Grid Control site in the world. He next worked in Oracle ACS India (Mumbai), and then with an Oracle Platinum Partner, S&I Systems in Singapore, before rejoining Oracle in the same city. Porus is an enthusiast for Oracle technology, especially Oracle Enterprise Manager, on which he has conducted popular seminars and webinars for large MNCs, and implemented this powerful enterprise toolset. The following is a full list of his published technical articles and white papers on the Oracle Technical Network (OTN). A couple of these articles were in the most popular OTN article list in 2009. The OTN is the world's largest community of developers, DBAs, and architects. Published white papers on OTN include: Advanced Uses of Oracle Enterprise Manager 11g Managing Oracle Applications with Oracle Enterprise Manager 11g Published technical articles on OTN include: Using Grid Control with Filer Snapshotting Oracle Enterprise Manager Grid Control Architecture for Very Large Sites Oracle RMAN Backups: Pushing the Easy Button Patch a Thousand Databases, Using Oracle Enterprise Manager Grid Control Easy Disaster Proof Production with Grid Control Using Oracle GoldenGate for Real-Time Data Integration Mask Your Secrets Using Oracle Enterprise Manager Manage Mass Provisioning Using Oracle Enterprise Manager Grid Control Overview of Oracle EM Management Packs Provision Your Oracle RAC Systems Using Oracle Enterprise Manager Ease the Chaos with Automated Patching: Oracle Enterprise Manager Cloud Control 12c For the Internet links to the articles and white papers, please see the blog entry: http://enterprise-manager.blogspot.sg/2012/11/latest-list-ofpublished-white-papers.html In early 2009, Porus was also voted leader of the Oracle RAC Special Interest Group (SIG) in Singapore, a rotating position he held for 2 years.  
Read more about PORUS HOMI HAVEWALA

Right arrow

Chapter 8. Ease the Chaos with Test Data Management

There are many instances in production where databases have increased drastically in size, due to application growth and increased usage. These databases must nevertheless be used for testing purposes, and at such times the DBA would be called upon to make an appropriate copy of production for the test team.

The easiest way to make a test copy is to clone a database, and this is fine for small- to medium-sized databases where there is sufficient space allocated in the test system. However, for large databases it is usually not possible to use a similarly sized database for testing because of space issues in the test environment. In this case, the DBA is forced to use a reduced set of data in the test database, in order to meet the space requirements and reduce the storage costs.

But even this is not easy, because it requires an understanding of the data model before the reduced data can be extracted, and manual scripts need to be written...

Test Data Management


Enterprise Manager Cloud Control 12c provides a new licensed pack, known as the Test Data Management Pack. This is mainly used for the purpose of data subsetting, that is, to create a relationally intact subset of data from production.

For this purpose, an Application Data Model (ADM) needs to be created and stored in Enterprise Manager. This is a new concept in Cloud Control 12c. This model defines the database schema with all its relations. You can then define the subset of the data that is required from the model. At the same time, you can define the data-sensitive columns in the tables, such as a credit card number. This information will then be used to create the subset of data for testing, and also to mask sensitive data using the Data Masking Pack (as we will see in the next chapter).

Creating packages

A prerequisite to using the new facility of Test Data Management is to create special packages in each database that will be used for this scenario. These packages...

Data subsetting


The Test Data Management Pack allows the capability of data subsetting. This lets you subset your production databases to create smaller sets of data for test or development databases, based on the Application Data Model. The continual task of refreshing test or development databases is made easier, and storage space is also saved in the process. Let us have a look at how to achieve this. First, select Enterprise | Quality Management | Data Subset Definitions to create your Subset Definition instance. This brings up the following screen:

The workflow shown in the preceding screenshot is now at the Data Subset Definitions stage, which is the next step in the process. Click on Create.

Name the definition appropriately, then select the Application Data Model instance to be used.

The Source Database instance also needs to be selected, however there is only one choice—the saiprod database—since the data model was created from that database. Click on Continue.

On this page, the...

Generate subset


From the Actions menu, the next step is to select Generate Subset....

In the Generate Subset wizard, you can specify how the subset is to be created. You can either write the subset data to export files (this will use the Oracle Data Pump expdp facility), or you can delete the data directly from the target database.

If you select the latter, you will be asked to verify that you are deleting the data from a non-production database. You need to be very careful at this point and make sure you use the glass icon to select the target database. Since we have associated the saitest database with this data model, the saitest database also appears in the selection list, and you can select it for the data subsetting operation at this point.

However, we decide instead to create the subset by writing the data to export files. Use this option—it is faster and requires the least space. Select the saiprod database as the target database, and use Global Named Credential as the logon to that...

Benefits and capabilities


When you create a data subset, you can define subset criteria (such as a where condition), which will limit the amount of data that will be extracted for the subset. As a result, the storage requirements in the target database are reduced. This is one of the most important benefits of data subsetting, since it helps to reduce expensive storage costs.

You can select multiple applications, that is, schemas (in the case of multi-tenanted databases) for the subset. The definition of tables associated with these applications and the relationships between them will be extracted from the Application Data Model into the subset definition, along with additional metadata of the constraints and indexes. You can totally avoid the manual labor normally associated with collecting this information and writing appropriate scripts.

Table rules can be defined with where clauses and bind variables that limit the data that is extracted. Table statistics are then analyzed to get an estimate...

Summary


When we set up test systems, it is often the case that full production copies cannot be used due to the cost of storage, especially for large databases. In such cases, you would need to extract a relationally valid subset of data. Doing this manually is not an easy task, but it has to be done. Consequently, setting up test systems is often a slow, error-prone, manually-scripted process.

A lot of investigation is required to find the relationships in the database across various schemas; the rules for extraction need to be defined (keeping intact all the relationships), and even then you are not sure of the space requirements for the extracted subset.

The Test Data Management Pack allows you to reverse engineer an Application Data Model from your database, which is stored in the Enterprise Manager Cloud Control 12c repository. The metadata definition of tables and relationships from a single or multiple schemas can exist in a model, which can then be used to enable test data operations...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Oracle Enterprise Manager Cloud Control 12c: Managing Data Center Chaos
Published in: Dec 2012Publisher: PacktISBN-13: 9781849684781
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
PORUS HOMI HAVEWALA

Porus Homi Havewala works as the Senior Manager (for database management) in the Enterprise Technology Program Office of Oracle Corporation, based in Singapore, and specializes in Oracle Enterprise Manager. He is a double Oracle Certified Master (OCM) in 10g and 11g, as well as the first Oracle employee ACE in the country. He was awarded the prestigious Oracle ACE Director title by Oracle HQ in 2008. There are less than 150 Oracle ACE Directors in the entire world and Poruswas the very first Oracle ACE and ACE Director in Singapore – a recognition of his outstanding achievements in the Oracle world.Porus has had extensive experience in Oracle technology since 1994; this includes him working as a Senior Production DBA, Principal Database Consultant, Database Architect, E-Business Technical DBA, Development DBA, and Database Designer and Modeler (using Oracle Designer). He has published numerous articles on Oracle Enterprise Manager on OTN, and has created http://enterprise-manager. blogspot.com, one of the world's first blogs dedicated to Enterprise Manager (with Oracle Press Credentials). Porus is also the author of the book, Oracle Enterprise Manager Grid Control, Rampant TechPress which was published in 2010.He started in the IT industry in the mid-1980s as a Turbo-C programmer in India and then as a dBase/FoxPro Developer in Australia. In the early 1990s he wrote a book on Microsoft FoxPro, which was his first published technical work. He entered the heady world of Oracle technology from 1994 as an Oracle DBA/Developer (using Oracle Forms, Oracle Reports, and Oracle Designer).In Telstra, the largest telecommunications company in Australia, Porus was the Senior Database Consultant in the central DBA team for a number of years and was responsible for database standards, database architecture, and the architecture, setup, and management of the first production Enterprise Manager Grid Control site in the world. He next worked in Oracle ACS India (Mumbai), and then with an Oracle Platinum Partner, S&I Systems in Singapore, before rejoining Oracle in the same city. Porus is an enthusiast for Oracle technology, especially Oracle Enterprise Manager, on which he has conducted popular seminars and webinars for large MNCs, and implemented this powerful enterprise toolset. The following is a full list of his published technical articles and white papers on the Oracle Technical Network (OTN). A couple of these articles were in the most popular OTN article list in 2009. The OTN is the world's largest community of developers, DBAs, and architects. Published white papers on OTN include: Advanced Uses of Oracle Enterprise Manager 11g Managing Oracle Applications with Oracle Enterprise Manager 11g Published technical articles on OTN include: Using Grid Control with Filer Snapshotting Oracle Enterprise Manager Grid Control Architecture for Very Large Sites Oracle RMAN Backups: Pushing the Easy Button Patch a Thousand Databases, Using Oracle Enterprise Manager Grid Control Easy Disaster Proof Production with Grid Control Using Oracle GoldenGate for Real-Time Data Integration Mask Your Secrets Using Oracle Enterprise Manager Manage Mass Provisioning Using Oracle Enterprise Manager Grid Control Overview of Oracle EM Management Packs Provision Your Oracle RAC Systems Using Oracle Enterprise Manager Ease the Chaos with Automated Patching: Oracle Enterprise Manager Cloud Control 12c For the Internet links to the articles and white papers, please see the blog entry: http://enterprise-manager.blogspot.sg/2012/11/latest-list-ofpublished-white-papers.html In early 2009, Porus was also voted leader of the Oracle RAC Special Interest Group (SIG) in Singapore, a rotating position he held for 2 years.  
Read more about PORUS HOMI HAVEWALA