https://github.com/billthan/oracle-dbops
Export all Oracle DDLs for database tracking in a DevOps development cycles. Allow for repo-based code, work, and deployment tracking using tools like GitHub and Azure DevOps
https://github.com/billthan/oracle-dbops
azure dbops devops oracle plqsql
Last synced: 2 months ago
JSON representation
Export all Oracle DDLs for database tracking in a DevOps development cycles. Allow for repo-based code, work, and deployment tracking using tools like GitHub and Azure DevOps
- Host: GitHub
- URL: https://github.com/billthan/oracle-dbops
- Owner: billthan
- License: mit
- Created: 2025-02-09T22:03:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-21T03:45:23.000Z (over 1 year ago)
- Last Synced: 2025-10-28T17:41:19.861Z (8 months ago)
- Topics: azure, dbops, devops, oracle, plqsql
- Language: Shell
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DBOps (Oracle)

This repository is configured to take snapshots of database object DDLs. This is to assist with the tracking database changes over time.
# Usage
## First time Setup:
Ensure DBA directories are created:
```
-- /aux/dbops can be replaced with your directory of choice
CREATE OR REPLACE DIRECTORY DDL_TABLE_DIR AS '/aux/dbops/tables';
CREATE OR REPLACE DIRECTORY DDL_VIEW_DIR AS '/aux/dbops/views';
...
CREATE OR REPLACE DIRECTORY DDL_PACKAGE_DIR AS '/aux/dbops/packages';
CREATE OR REPLACE DIRECTORY DDL_PROCEDURE_DIR AS '/aux/dbops/procedures';
CREATE OR REPLACE DIRECTORY DDL_TRIGGER_DIR AS '/aux/dbops/triggers';
```
## Create the folder structure
```
./create_dirs.sh
```
## Clean any previous runs
```
./rm_sql_clean.sh
```
## Execute
To run DDL export, execute `EXPORT_DDL_DRIVER.sql` in Oracle as `dba`
# Error handling
Errors are output to `error_log.txt`
# Contributors
* Bill Than
* [Nathan Ackerson](https://www.linkedin.com/in/nathan-ackerson-66aa68197)
* [Joshua Wry](https://www.linkedin.com/in/jw1999/)