Oracle DB Capture

Native PL/SQL Application to Capture Source Code and Configuration Data

View the Project on GitHub DDieterich/ODBCapture

ODBCapture Installation

Installation instructions are on the main page on GitHub. This is the same location as the “View Oracle DB Capture on GitHub” link above.

Application Configuration

Configuring ODBCapture can be as simple as adding 2 configuration records. More complex configurations involve installation layering, object selection/filtering, role identification, and configuration data capture.

Care must be taken to preserve any ODBCapture configurations for an application. Best practice is to create a configuration data installation layer that keeps ODBCapture configuration data separate from configuration data for a target application.

Simple Configuration

Add record to BUILD_CONF

There are 2 columns that require data in the BUILD_CONF table:

Add record to SCHEMA_CONF

There are 3 columns that require data in the SCHEMA_CONF table:

Advanced Configuration

Advanced configuration is entirely related to Build Script Layering. Build Script Layering allows configuration of:

See the Build Script Layering page for more details.

Application Source Code Capture

After configuration is complete, application source code capture is accomplished using the following steps:

execute ODBCAPTURE.FH2.clear_buffers;
execute ODBCAPTURE.COMMON_UTIL.update_view_tabs;
execute ODBCAPTURE.GRAB_SCRIPTS.all_scripts('CONFIGURED_BUILD_TYPE');
execute ODBCAPTURE.FH2.write_scripts('FILE_NAME.zip');

Then, download and unzip “FILE_NAME.zip” from the “ZIP_FILES” table.

The capture_files.sql SQL script can be used for source code capture if the ODBCAPTURE_INSTALLATION_LOGS table has been created and includes records for all the needed BUILD TYPES. This SQL script runs correctly in SQL*Plus.

Application Build

After application source code has been captured by ODBCapture, the installation of the application is the same as the ODBCapture installation. The install.sql script that is captured in each BUILD_TYPE folder is the core of the installation.

Several examples of build scripts can be found in the “builds” folder on the main page on GitHub. These build scripts are Linux oriented for several reasons: