Previous  Next          Contents  Index  Navigation  Glossary  Library

Creating a Periodic Alert

To create a periodic alert, you perform the following tasks in the order listed:

This section focuses on the first task of defining a periodic alert and its frequency and divides the task into smaller sub-tasks.

Before you define a periodic alert, make sure you do the following:

   To define a periodic alert:

   To set the frequency for a periodic alert:

   To enter a SQL Select statement for your periodic alert:

Suggestion: If you want to use an input value in an action for this alert, select the input into an output. Then you can use the output when you define actions for this alert.

SELECT	user_name,
			password_date,
			:THRESHOLD_DAYS
INTO		&USER,
			&LASTDATE,
			&NUMDAYS
FROM		fnd_user
WHERE	sysdate = NVL(password_date,
			sysdate) + :THRESHOLD_DAYS
ORDER BY	user_name 

Note: Although Oracle Alert does not support PL/SQL statements as the alert SQL statement definition, you can create a PL/SQL packaged function that contains PL/SQL logic and enter a SQL Select statement that calls that packaged function. For example, you can enter a SQL Select statement that looks like:

SELECT package1.function1(:INPUT1, column1)
INTO &OUTPUT1
FROM table1

In this example,
package1
is the name of the PL/SQL package and
function1
is the name of user-defined PL/SQL function stored in the package.

To ensure that your PL/SQL function is callable from a SQL statement, verify that the packaged function meets the requirements listed in your PL/SQL Release 2.1 and Oracle Precompilers Release 1.6 Addendum.

Attention: The SQL Select statement must be less than 64K.

Attention: The file you import must be less than 64K.

   To verify the SQL statement:

See Also

How Oracle Alert Checks Alerts

Checking a Periodic Alert

Transferring Alert Definitions

Creating Alert Actions

Creating an Action Set for an Alert

Deleting an Alert


         Previous  Next          Contents  Index  Navigation  Glossary  Library