Setting Up Data Generator

This topic describes how to set up Data Generator to generate test data.

Note
Before generating test data, you should back up the database you’re going to populate.
If you’re not satisfied with the results, you can adjust the settings and repeat the data generation.

1. On the menu bar, go to Tools and select New Data Generation. The Data Generator Project Properties dialog opens.

2. On the Connection tab, specify the connection, select the schemas you want to populate with data, and then click Next.

Connection tab of the Data Generator Project Properties dialog

3. On the Options tab, set the required options and click Open.

Options tab of the Data Generator Project Properties dialog

4. In the .dgen document that opens, do the following:

  • In the Tables and columns to populate pane, select the tables and columns for which you want to generate data.
  • Define how you want the data to be generated: click the table or column name and specify the details in the generation settings pane. All changes are displayed in the preview pane in real time.

Data generation document with a tree pane, generation settings pane, and data preview

Note
You can get errors during data generation—for example, if you include a column which is the foreign key of a table you didn’t include into generation. To resolve such issues, click the table in question, locate the Related tables section of the Table generation settings pane, and include or exclude parent and child tables from data generation.

5. Click Green arrow icon Populate data to the target schemas. The Data Population Wizard opens.

6. On the Output tab, select one of the options and click Next:

  • Open the data population script in the internal editor to add custom data.
  • Save the SQL script to a file.
  • Execute the data population script immediately.

7. On the Options tab, select general data population options and click Next.

8. On the Additional Scripts tab, if needed, enter or select the script to be executed before or after data population, and then click Next. You may need this option in a number of cases, for example, to drop the old data or disable triggers before data generation and then enable them again.

9. On the Summary tab, view the generation action plan and the details of generation errors and warnings, if any, that inform you when there may be a problem with the data generation.

10. Click Generate to finish the process.

Want to Find out More?

Overview

Overview

Take a quick tour to learn all about the key benefits delivered by dbForge Studio for Oracle.
All Features

All features

Get acquainted with the rich features and capabilities of the Studio in less than 5 minutes.
Request a demo

Request a demo

If you consider employing the Studio for your business, request a demo to see it in action.
Ready to start using dbForge Studio for Oracle?