question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flyway Clean fails with ORA-32794 on Oracle 19c

See original GitHub issue
Which version and edition of Flyway are you using?

We are using Flyway Community 7.7

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)

Command Line

Which database are you using? (Type & version)

Oracle 19c

Which operating system are you using?

Windows

What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)

Im just calling flyway.cmd -url=jdbc:oracle:thin:@//dbhost:1521/sid -user=db_username -password=db_password clean

What did you expect to see?
Database: jdbc:oracle:thin:@//dbhost:1521/dbsid (Oracle 19.0)
Successfully dropped pre-schema database level objects (execution time 00:00.044s)
Successfully cleaned schema "db_username" (execution time 00:01.713s)
Successfully dropped post-schema database level objects (execution time 00:00.035s)
What did you see instead?
Database: jdbc:oracle:thin:@//dbhost:1521/dbsid (Oracle 19.0)
Successfully dropped pre-schema database level objects (execution time 00:00.044s)
ERROR:
Unable to clean schema "db_username"
------------------------------
SQL State  : 99999
Error Code : 32794
Message    : ORA-32794: Systemgenerierte Sequence kann nicht gelöscht werden

Caused by: java.sql.SQLException: ORA-32794: Systemgenerierte Sequence kann nicht gelöscht werden

Caused by: Error : 32794, Position : 22, Sql = DROP SEQUENCE "db_username"."ISEQ$$_76241", OriginalSql = DROP SEQUENCE "db_username"."ISEQ$$_76241", Error Msg = ORA-32794: Systemgenerierte Sequence kann nicht gelöscht werden

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Rixiumcommented, Mar 17, 2021

Hey @Joerg-L ,

Thanks for verifying your workaround. We’ll consider adding purge to oracle cleaning in V8,

Thanks 😀

0reactions
DoodleBobBuffPantscommented, Aug 26, 2022

Closing until further interest as there is a valid workaround available

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes - Flyway by Redgate • Database Migrations ...
Bug fixes. Fix issue where post schema clean didn't include correct schemas. Clean mode now cleans more schemas for SQL Server integrated authentication...
Read more >
Clean fails on Oracle - flyway - Stack Overflow
When I run the clean command against an Oracle database I get this error. Caused by: java.sql.SQLException: ORA-06550: line 1, ...
Read more >
Release Notes - Flyway by Boxfuse • Database Migrations ...
Issue 1549 Flyway "(unsupported protocol: war)" with Tomcat 8.0.41 and unpackWARs=false Pull ... Issue 1049 ORA-32794 in Oracle 12c using identity columns ...
Read more >
Flyway Repair With Spring Boot - Baeldung
In this tutorial, we'll explore the options we have for recovering from a failed migration. 2. Setup.
Read more >
Using Flyway - Quarkus
quarkus.flyway.clean-on-validation-error. true to automatically call clean when a validation error occurs, false otherwise.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found