0

Is there a possibility that a simple delete query can bring down a DB?

We executed a delete query (single row deletion) and that query hung. When multiple people tried executing the same delete again, the Oracle DB is down. Multiple tables reference this table and a cascade delete was not used. Should a cascade delete have been used?

What are the possible reasons for the DB to go down on executing this sql?

Sam
  • 7,252
  • 16
  • 46
  • 65
RJ.
  • 313
  • 2
  • 5
  • 14

3 Answers3

1

The delete stmts hung, the db reached max number of allowed processes (which were waiting); and the db stopped establishing new connections. We killed the hanging processes and the db is up and running now.

Sam
  • 7,252
  • 16
  • 46
  • 65
RJ.
  • 313
  • 2
  • 5
  • 14
0

Are you sure it's down and it's not just a transaction that has locked your tables?

Paddy
  • 33,309
  • 15
  • 79
  • 114
0

Check the log files of the server. My guess is that the delete modified a lot of rows and you ran out of UNDO log.

Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820