Home » RDBMS Server » Server Administration » Re: Truncate Table problem
Re: Truncate Table problem [message #369625] Thu, 16 November 2000 18:10 Go to next message
Andrew
Messages: 144
Registered: March 1999
Senior Member
The right approach would be to ask: What has changed from when it last worked until the problem was discovered (as you have probably done). Things like system parameters, an increase in data size. Have you restarted the server??

You could also try the 8.1.5 simplified syntax like:
DECLARE
v_sql_stmt VARCHAR2(100);
BEGIN
v_sql_stmt := 'truncate table ABC';
EXECUTE IMMEDIATE (v_sql_stmt);
EXCEPTION
WHEN OTHERS
THEN
RAISE_APPLICATION_ERROR (-20500, 'ERROR: Problem while Truncating (blah blah blah).', TRUE);
END;
Re: Truncate Table problem [message #369626 is a reply to message #369625] Fri, 17 November 2000 11:52 Go to previous message
Andrew again...
Messages: 270
Registered: July 2000
Senior Member
Putting the TRUE in the raise_application_error should really help - it will output ALL the errors encopunered.
Previous Topic: query
Next Topic: Urgent: UTL_FILE PL/SQL Reference Package
Goto Forum:
  


Current Time: Thu May 02 13:44:43 CDT 2024