Terry
Sent via Deja.com http://www.deja.com/
Before you buy.
PROCEDURE truncate_tables(result OUT varchar2)
is
cursor_int integer;
status_int integer;
p_statement varchar2(50);
begin
cursor_int := dbms_sql.open_cursor;
p_statement := 'truncate table installed_components';
dbms_sql.parse(cursor_int,p_statement,dbms_sql.native);
status_int := dbms_sql.execute(cursor_int);
--other code in here.
dbms_sql.close_cursor(cursor_int);
result := 'P';
dbms_output.put_line('Truncate tables successful');
EXCEPTION
when others then
result := 'F';
dbms_output.put_line('error'||sqlerrm);
dbms_output.put_line(result ||' in truncate routine.');
end;
In article <8qtn0k$jq4$1...@nnrp1.deja.com>,
The error I get is:
ORA-01031 - Insufficient Privileges
ORA-06512 - SYS.DBMS_SYS_SQL Line 491
ORA-06512 - SYS.DBMS_SQL Line 32
ORA-06512 - RPC.REV_VIEW_BUILD Line 83
ORA-06512 At Line 3
Any more suggestions?
Terry
In article <8qtngc$k9q$1...@nnrp1.deja.com>,
It's old bug of DBMS_SQL.
Try to
GRANT CREATE ANY VIEW to ...
Stas.
Regards,
Sybrand Bakker, Oracle DBA
<stas_...@my-deja.com> wrote in message
news:8shsvl$prh$1...@nnrp1.deja.com...