HHH-18156 Fix operation is not allowed from within a pluggable database
This commit is contained in:
parent
d02d8d7af6
commit
0e0ad7b6ed
|
@ -76,7 +76,7 @@ public class OracleDatabaseCleaner implements DatabaseCleaner {
|
|||
// Exclude the tables with names starting like 'DEF$_'
|
||||
" AND table_name NOT LIKE 'DEF$\\_%' ESCAPE '\\'" +
|
||||
" UNION ALL " +
|
||||
"SELECT 'DROP SEQUENCE ' || sequence_owner || '.' || sequence_name FROM all_sequences WHERE sequence_owner = sys_context('USERENV', 'SESSION_USER') and sequence_name not like 'ISEQ$$%'"
|
||||
"SELECT 'DROP SEQUENCE ' || sequence_owner || '.' || sequence_name FROM all_sequences WHERE sequence_owner = sys_context('USERENV', 'SESSION_USER') and sequence_name not like 'ISEQ$$%' and sequence_name not like 'MVIEW$%'"
|
||||
);
|
||||
}
|
||||
catch (SQLException sqlException) {
|
||||
|
|
Loading…
Reference in New Issue