Flyway Clean fails with ORA-32794 on Oracle 19c
See original GitHub issueWhich 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @Joerg-L ,
Thanks for verifying your workaround. We’ll consider adding purge to oracle cleaning in V8,
Thanks 😀
Closing until further interest as there is a valid workaround available