All commands must be run in the working directory used during the init
command.
Configuration
ovcs config key value
Configure ovcs for first time use. The following settings are supported:
- oracle-driver sets the location of the Oracle JDBC library
Example: (actual path may vary)
on Windows: ovcs config oracle-driver c:\oracle\app\oracle\product\11.2.0\server\jdbc\lib\ojdbc6.jar
or
on Linux/OS X : ovcs config oracle-driver /usr/local/oracle/server/jdbc/lib/ojdbc6.jar
Schema initialization
ovcs init oracle-connection-string git-repository-uri
Initialize the current directory as the local file store for schema objects, with the specified Oracle connection string and the URI of the GIT repository that will hold the schema objects for the connection string's schema. The specified directory must be empty. This command is run once by a developer for each schema of interest, using a new directory for each schema.
Example:
ovcs init HR/HR@localhost:1521:XE https://jsmith:password@github.com/jsmith/hr-schema.git
Session start
ovcs start
Starts an editing session.
Status
ovcs status
View pending changes.
Diff
ovcs diff object-name
Show differences in an object.
Example:
ovcs diff COUNTRIES
Commit changes
ovcs commit
Ends an editing session, and commits and pushes changed objects to the repository.
Push Changes
ovcs push
Push all pending commits to the remote Git repository (only needed if commit succeed but push fails during ovcs commit
Synchronize
ovcs sync
Synchronizes the local repository, and if needed the remote repository, with the database objects.