Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8387007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:05:52+00:00 2026-06-09T18:05:52+00:00

I have existing oracle database. I want to put it under source control (Subversion).

  • 0

I have existing oracle database. I want to put it under source control (Subversion).
The only solution I know – create ‘DROP/CREATE/INSERT’ text scripts and store them to SVN.

May be there is better way to manage schema and data? I’m using Oracle SQL Developer and I have seen there Migration/Repository management features. Should I use them? And how to use them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:05:53+00:00Added an answer on June 9, 2026 at 6:05 pm

    I’m not sure if I am really answering your question here or just spewing random stuff 🙂

    To start, I would like to say first I am highly against putting data into source control – your database is where you maintain your data. I use a SCM to keep track of object changes and an archive strategy within the DB to track data changes.

    I have not used SQL Developer’s Version control, mainly as we have our deployments integrated with our Jenkins CI server, so maybe it does exactly what you need already.

    A basic structure is required to organize your code and I think this should conform as close as possible to your actual database.

    <database>
        |_____<schema>
        |         |____<DDL>
        |         |____<DML>
        |         |____<PLSQL>
        |         |____<Indexes>
        |         |____<Constraints>
        |____<schema>
        ...
    

    The above mimics the namespace boundaries within Oracle. PLSQL and DDL objects do share the same namespace but I separate them due to PLSQL having business logic.

    I host all objects within these folders with the naming schema of OBJECTNAME.TYPEEXTENSION, with the (more or less) standardized file extensions:

    Table           .tbl
    Package Spec    .pks
    Package Body    .pkb
    Trigger         .trg
    View            .vw
    ...
    

    The contents of these scripts I find depends on your deployment tool and the object type.

    • Can you create dependencies between the file objects or will be know what to run?
    • Can it handle rerunability or do you need to build this into your scripts?
    • Can the tool rollback to previous versions?

    With this in mind you can figure out the structure you will need to have in these files.

    Our tool currently can not handle rerunability, i.e. where we do not have CREATE OR REPLACE objects or there are tightly coupled dependencies between User Defined Objects.

    For these we have had to write a PLSQL block to check system tables to see, for example, if an index has been added and if so it throws an exception which the tool captures and knows to discard and move on to the next script.

    I only look to apply the deltas within the database during our continuous integration, hence why we do not use DROP/CREATE/INSERT scripts. This allows us to track each change independently and, with our rollback logic, revert to a specific build.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an existing database link in an Oracle database that links to data
I have a new project working with an existing oracle database. I've always been
We have a table already existing in oracle 11g database which allows read as
I have existing java code and need to create Design Document based on that.
I have existing code with their own makefiles which I want to load into
I have an existing web service and I want it to expose 2 MEX
I have an existing database(myDatabse) that I created with Microsoft Sql Managenent studio and
I currently have the following funciton in an oracle database that returns a concatenated
I have an Oracle 10G installation (Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 -
I have a slightly unique requirement with the Java-JDBC API along with Oracle Database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.