Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re:Question: Why cann't I drop table?
Re-write the package as follows (namely get rid of the semicolon when creating
the ISQL variable):
CREATE OR REPLACE PACKAGE BODY hpxpkg_catalog_management
IS
obj_type_in IN VARCHAR2, schma_name_in IN VARCHAR2, obj_name_in IN VARCHAR2) IS lSQL VARCHAR2(2000); lCURSOR_HANDLE INTEGER; lERROR_CODE NUMBER := SQLCODE; lERROR_MSG VARCHAR2(300) := SQLERRM;BEGIN
DBMS_OUTPUT.PUT_LINE (lSQL);
lCURSOR_HANDLE := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE (lCURSOR_HANDLE, lSQL,dbms_SQL.V7); DBMS_OUTPUT.PUT_LINE ('after parse'); DBMS_SQL.CLOSE_CURSOR (lCURSOR_HANDLE);EXCEPTION
DBMS_OUTPUT.PUT_LINE ('exception raised'); DBMS_OUTPUT.PUT_LINE ('ERROR CODE: ' || lERROR_CODE); DBMS_OUTPUT.PUT_LINE ('ERROR MESSAGE: ' || lERROR_MSG); DBMS_SQL.CLOSE_CURSOR (lCURSOR_HANDLE); END drop_object; ____________________Reply Separator____________________Subject: Question: Why cann't I drop table? Author: "Guang Mei" <zlmei_at_hotmail.com>
Hi:
I am totally confused why my "drop table .. " statement using dynamic sql does not work. The oracle user_name I login has dba privilege. And as a test, I am trying to drop table HPXAREA in schema CATALOG_MANAGEMENT;
Here is how I tested: Received on Thu Jun 08 2000 - 16:10:51 CDT
![]() |
![]() |