Schema Compare for Oracle - 3.0
Example: source-controlling a database using scripts folders - Schema Compare for Oracle
This example shows how you can use scripts folders to source-control a database.
In the example, we will use the Subversion (SVN) source control system and the TortoiseSVN client. The principles are the same with any source control system.
Source-controlling a scripts folder
In this example, we want to source-control our WidgetStaging database schema.
First, we create a scripts folder from our WidgetStaging schema. For information about creating and using scripts folders in Schema Compare for Oracle, see Working with scripts folders.
We name the scripts folder WidgetScripts, and create it in our SVN source control repository:

Then we add the scripts folder to SVN:

We type a commit message and commit the change. The scripts folder representing the WidgetStaging schema is now under source control.
Committing another version of the schema
In this example, we have made some changes to the WidgetStaging schema and want to commit them to source control.
We deploy the WidgetStaging schema to the WidgetScripts scripts folder:

Then we commit the scripts folder changes to source control:

We type a commit message and commit the change. The scripts folder representing the WidgetStaging schema is now up to date.
Reverting to an earlier version of the database
In this example, we want to revert to the first version of the WidgetStaging schema we source-controlled. We can do this by reverting to the earlier version of the scripts folder in SVN and deploying from it using Schema Compare.
To do this, first we update to the first version of the scripts folder in SVN:
Then we begin a new deployment in Schema Compare. We select the scripts folder as the source and the WidgetStaging schema as the target:

Finally, we deploy to the database using the deployment wizard. The WidgetStaging schema is updated from the WidgetScripts scripts folder.
Was this article helpful?
Schema Compare for Oracle
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
Schema Compare for Oracle
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

Using Schema Compare for Oracle