9. The system according to claim 8 , wherein the flag setting apparatus further comprises: a second setting means configured to set the diagnosis flag by adding a customized keyword to the SQL statement in response to the SQL statement being one of: a dynamic SQL statement; and an unbound static SQL statement.
8. A system for controlling a dump for a database, comprising: a flag setting apparatus configured to set a diagnosis flag associated with a structured query language (SQL) statement, the diagnosis flag indicating whether to perform the dump; an SQL executing apparatus configured to execute the SQL statement; and a dump controlling apparatus configured to control the dump for the SQL statement according to the diagnosis flag associated with the SQL statement in response to the SQL executing apparatus executing the SQL statement, wherein the flag setting apparatus further comprises: a first setting apparatus configured to generate a customized database command in response to the SQL statement being a bound static SQL statement; and a command controlling apparatus configured to set the diagnosis flag by manipulating a package that contains the bound static SQL statement in response to the customized database command.