You are on page 1of 1

Document 176444.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-sta...

Copyright (c) 2019, Oracle. All rights reserved. Oracle Confidential.

How To Register Custom Tables and Columns In Applications (Doc ID 176444.1)

APPLIES TO:

Oracle Application Object Library - Version 11.5.10.2 to 12.2 [Release 11.5 to 12.2]
Information in this document applies to any platform.
PrimusID:OSS181500

goal: How to register custom tables and columns in Applications


fact: Oracle Application Object Library

GOAL

Steps for correctly setting up custom tables and columns.

SOLUTION

Custom application tables and columns are registered using the PL/SQL routine AD_DD package.

1. Register the table:


procedure register_table (p_appl_short_name in varchar2,
p_tab_name in varchar2,
p_tab_type in varchar2,
p_next_extent in number default 512,
p_pct_free in number default 10,
p_pct_used in number default 70);

Example:

EXECUTE ad_dd.register_table('FND', 'CUSTOM_TEST_TABLE', 'T', 8, 10, 90);

2. Register each column:


procedure register_column (p_appl_short_name in varchar2,
p_tab_name in varchar2,
p_col_name in varchar2,
p_col_seq in number,
p_col_type in varchar2,
p_col_width in number,
p_nullable in varchar2,
p_translate in varchar2,

Example:

EXECUTE ad_dd.register_column('FND', 'CUSTOM_TEST_TABLE','APPLICATION_ID', 1,


'NUMBER', 38, 'N', 'N');

References:
Oracle Applications Developer's Guide - Building Your Database Objects - Table Registration API

Didn't find what you are looking for?

第 1 頁,共 1 頁 2019/3/26 下午 12:38

You might also like