Skip to content

SENSITIVE

CREATE PROCEDURE show_customers
SENSITIVE
LANGUAGE SQL
READS SQL DATA ACCESS
BEGIN
SELECT * FROM customers;
END;

No output is returned for the creation of this procedure as this operation simply creates a database object.

The given example code illustrates the use of the SENSITIVE attribute in the creation of a stored procedure in Oracle. This attribute is essentially a declaration flag that the procedure only performs ‘safe’ operations in respect to the data it handles. Specifically, it means that the procedure cannot return a Result Set, thereby preventing unintended data exposure.