Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

DBMS_HS_PASSTHROUGH, 9 of 15


EXECUTE_IMMEDIATE Procedure

This function runs a SQL statement immediately. Any valid SQL command except SELECT can be run immediately. The statement must not contain any bind variables. The statement is passed in as a VARCHAR2 in the argument. Internally the SQL statement is run using the PASSTHROUGH SQL protocol sequence of OPEN_CURSOR, PARSE, EXECUTE_NON_QUERY, CLOSE_CURSOR.

Syntax

DBMS_HS_PASSTHROUGH.EXECUTE_IMMEDIATE ( 
   S IN VARCHAR2 NOT NULL)  
RETURN BINARY_INTEGER; 

Parameters

Table 17-16 EXECUTE_IMMEDIATE Procedure Parameters
Parameter  Description 
s
 

VARCHAR2 variable with the statement to be executed immediately.  

Returns

The number of rows affected by the execution of the SQL statement.

Exceptions

Table 17-17 EXECUTE_IMMEDIATE Procedure Exceptions
Exception  Description 
ORA-28551
 

SQL statement is invalid. 

ORA-28544
 

Max open cursors. 

ORA-28555
 

A NULL value was passed for a NOT NULL parameter. 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback