Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
176 views

How To Define Event-Based Oracle Alert On Custom Tables

The document discusses how to define an event-based Oracle alert on custom tables for insert or update actions. It describes that Oracle alerts cannot be directly enabled on custom tables, and provides a solution of registering the custom table and its columns in Oracle applications using PL/SQL code and Oracle APIs. Temporary tables are used to store column configuration details to register all columns.

Uploaded by

osamahhassanein
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views

How To Define Event-Based Oracle Alert On Custom Tables

The document discusses how to define an event-based Oracle alert on custom tables for insert or update actions. It describes that Oracle alerts cannot be directly enabled on custom tables, and provides a solution of registering the custom table and its columns in Oracle applications using PL/SQL code and Oracle APIs. Temporary tables are used to store column configuration details to register all columns.

Uploaded by

osamahhassanein
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

1/1/24, 12:58 PM Oracle Application: How to define event-based Oracle Alert on Custom Tables Insert/Update

More eng.osamahassanein@gmail.com Dashboard Sign Out

Oracle Application
Thursday 18 July 2019

How to define event-based Oracle Alert on Custom Tables


Insert/Update About Me

Chetan Rajput

As Oracle Techno-
Functional Consultant
Subject: Required to send a notification when data Insert/Update on a custom table. provides solutions on
Oracle EBS - R12, Oracle
Fusion SCM, and Financial Module. Handling
Oracle Alert Drawback: As per the oracle standards, we cannot enable oracle event- the client-side project. Providing Integration,
Implementations, Oracle Supports and
based alert on the custom table directly.
Business Intelligence Solutions to Gulf
Industries, Shipping Firm, Real Estate
Business, Government Service Sector and
Solution: Manufacturing firm across the World.
Expertise in Setup, Implementation,
Customization, Migration, Up-gradation and
Step 1: Required to register your custom table into oracle apps. Production Support in Oracle EBS - R12 and
Oracle Fusion Application environment.
- Custom table name: MWANI_MARINE_TBL View my complete profile

Table Definition: Total Pageviews

9 0 4 7 6
Blog Archive


► 2023 (17)

► 2022 (37)

► 2021 (36)

► 2020 (29)

▼ 2019 (22)

► November (3)

► September (2)

► August (1)

▼ July (2)
- We have required to register custom table using Oracle API as from Oracle How to check budget fund for specific
Application, we can not able to register custom table to APPS. account - Or...
How to define event-based Oracle Alert
on Custom T...
- We have required to register table in Receivable (AR) application. ►
► May (1)

► April (2)
PLSQL Code:
begin ►
► March (2)
ad_dd.register_table ►
► February (4)
(p_appl_short_name => 'AR', --Application name in which you want to register ►
► January (5)
p_tab_name =>'MWANI_MARINE_TBL', --Table Name

► 2018 (30)
p_tab_type =>'T', -- T for Transaction data , S for seeded data
p_next_extent =>512, -- default 512 ►
► 2017 (6)
p_pct_free =>10, -- Default 10
p_pct_used =>70 --Default 70
);
commit;
end;

Step 2: Required to register all custom table column into oracle apps using Oracle API.

- As in custom table having many columns, We have designed temp table where I will
insert all column configuration as per the below screenshots, based on that column

https://chetanrajputoracleapps.blogspot.com/2019/07/define-event-based-oracle-alert-on.html 1/7
1/1/24, 12:58 PM Oracle Application: How to define event-based Oracle Alert on Custom Tables Insert/Update
configuration details we will register all column using Oracle API.

Temporary Table Data:

Temp Table Definition: (Temporary Table Name: XX_TEMP_TBL)

create table XX_TEMP_TBL


(SEQ_NO NUMBER,
COL_NAME VARCHAR2(240),
COL_TYPE VARCHAR2(240),
COL_WIDTH NUMBER,
TABLE_NAME VARCHAR2(240)
);

PLSQL Code for Oracle API for register Table Column in Oracle Apps:

declare
CURSOR C_MARINE_DTLS
IS
select *from XX_TEMP_TBL where table_name='MWANI_MARINE_TBL';
begin
begin
mo_global.init ('AR');
mo_global.set_policy_context ('S', 81);
fnd_global.apps_initialize
(fnd_profile.value('user_id'),fnd_profile.value('resp_id')
,fnd_profile.value('resp_appl_id'));
commit;
end;

FOR y IN C_MARINE_DTLS
LOOP

ad_dd.register_column
(p_appl_short_name =>'AR',
p_tab_name =>'MWANI_MARINE_TBL',
p_col_name =>trim(y.COL_NAME),
p_col_seq =>trim(y.SEQ_NO),
p_col_type =>trim(y.COL_TYPE),
p_col_width =>trim(y.COL_WIDTH),
p_nullable =>'Y',
p_translate =>'N',
p_precision => null,
p_scale =>null
);
commit;
END LOOP;
end;

Step 3: Once data submitted. Required to check this table registered in oracle
application or not.

- Navigation: Application Developer > Application > Database > Table

https://chetanrajputoracleapps.blogspot.com/2019/07/define-event-based-oracle-alert-on.html 2/7
1/1/24, 12:58 PM Oracle Application: How to define event-based Oracle Alert on Custom Tables Insert/Update

- You can query with the table name. You will find all the table configuration.

- Now table successfully registered with Oracle Receivable Application.

Step 4: Required to enable event-based oracle alert.

- Navigation: Alert Manager > Alert > Define

- Create oracle alert using the registered custom table as per the requirement.

https://chetanrajputoracleapps.blogspot.com/2019/07/define-event-based-oracle-alert-on.html 3/7
1/1/24, 12:58 PM Oracle Application: How to define event-based Oracle Alert on Custom Tables Insert/Update

- Create action for the event click on Action Button.

- Click on Action Details.

- Filled up required details for send notification to respective person.

- Save the data.

- Close the tab.

- Click on Action Sets. Enter Action Sets name.

- Click on Action Set Details.

https://chetanrajputoracleapps.blogspot.com/2019/07/define-event-based-oracle-alert-on.html 4/7
1/1/24, 12:58 PM Oracle Application: How to define event-based Oracle Alert on Custom Tables Insert/Update
- Enter the member details.

- Close the window.

- Click on Alert Details

- Go to the Installation tab.

- Assign Operating Units.

(Note: Required to Assign the Operating Units because event-based trigger have
security profile check restriction)

Step 5: After Event Alert Trigger fire you can check the alert status.

- Navigation: Alert Manager > History.

- You can search by custom oracle alert name.

https://chetanrajputoracleapps.blogspot.com/2019/07/define-event-based-oracle-alert-on.html 5/7
1/1/24, 12:58 PM Oracle Application: How to define event-based Oracle Alert on Custom Tables Insert/Update

- Click on Find Checks.

- It will give you the history of Alert fire events.

- It’s showing status: Error because currently, our SMTP server was down.

- You can check alert message output.

- Click on Find Actions.

- Click on Action Log.

- You can check the notification output.

https://chetanrajputoracleapps.blogspot.com/2019/07/define-event-based-oracle-alert-on.html 6/7
1/1/24, 12:58 PM Oracle Application: How to define event-based Oracle Alert on Custom Tables Insert/Update

Posted by Chetan Rajput at 03:09

No comments:
Post a Comment

Enter comment

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

Pages

Home
Terms and Conditions
Privacy Policy

Simple theme. Theme images by molotovcoketail. Powered by Blogger.

https://chetanrajputoracleapps.blogspot.com/2019/07/define-event-based-oracle-alert-on.html 7/7

You might also like