Git Product home page Git Product logo

Comments (3)

FxKu avatar FxKu commented on June 5, 2024 1

You could use the DROP_DB.sql script. No need to drop the user. We have also designed a procedure called cleanup_schema in the citydb_delete package. It performs a delete on every table and resets the sequences. Since Oracle 12cR1 there's also the option to use TRUNCATE ... CASCADE. This is what we also use in the PostgreSQL version and it's very fast no matter how big the DB is (around 15 sec). From the docs it seems that foreign key constraints need to be set to ON DELETE CASCADE. We also have a procedure for this called update_schema_constraints in the citydb_util package. So, you could try to write your own PLSQL function. For backwards compability reasons (to 11g) we will not change it for now.

from 3dcitydb.

do4sch avatar do4sch commented on June 5, 2024

Great! That was what I am looking for.
So I can just call this cleanup procedure in sqlplus as
exec citydb_delete.cleanup_schema ?#
Thx for your support!

from 3dcitydb.

FxKu avatar FxKu commented on June 5, 2024

Correct. Depending on the amount of data it would take a while, but if if your are testing with only small data sets it should be feasible.

from 3dcitydb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.