The following lines contain the word 'select', 'insert', 'update' or 'delete':
x_last_update_date => null,
x_custom_mode => null);
delete from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = upper(x_apps_name);
x_last_update_date => null,
x_custom_mode => null);
delete from FND_PRODUCT_INIT_CONDITION
where APPLICATION_SHORT_NAME = upper(x_apps_name)
and RE_INIT_CONDITION = upper(x_condition);
x_last_update_date => null,
x_custom_mode => null);
delete from FND_PRODUCT_INIT_DEPENDENCY
where APPLICATION_SHORT_NAME = upper(x_apps_name)
and PRODUCT_DEPENDENCY = upper(x_dependency);
select distinct PRODUCT_DEPENDENCY, LEVEL
from FND_PRODUCT_INIT_DEPENDENCY p1
where LEVEL =
(select max(LEVEL)
from FND_PRODUCT_INIT_DEPENDENCY p2
where p2.PRODUCT_DEPENDENCY = p1.PRODUCT_DEPENDENCY
connect by prior p2.PRODUCT_DEPENDENCY = p2.APPLICATION_SHORT_NAME
start with p2.APPLICATION_SHORT_NAME = upper(x_apps_name))
connect by prior PRODUCT_DEPENDENCY = APPLICATION_SHORT_NAME
start with APPLICATION_SHORT_NAME = upper(x_apps_name)
order by LEVEL desc;
/* sqlbuf := 'select INIT_FUNCTION_NAME '||
'from FND_PRODUCT_INITIALIZATION '||
'where APPLICATION_SHORT_NAME = :v1 '||
'and exists '||
'(select 1 '||
'from FND_PRODUCT_INIT_CONDITION C '||
'where C.APPLICATION_SHORT_NAME = :v2 '||
'and C.RE_INIT_CONDITION in ('||conditions||'))';
select INIT_FUNCTION_NAME
into init_function
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = deparr(i)
and exists
(select 1
from FND_PRODUCT_INIT_CONDITION C
where C.APPLICATION_SHORT_NAME = deparr(i)
and C.RE_INIT_CONDITION in (strings(1)));
select INIT_FUNCTION_NAME
into init_function
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = deparr(i)
and exists
(select 1
from FND_PRODUCT_INIT_CONDITION C
where C.APPLICATION_SHORT_NAME = deparr(i)
and C.RE_INIT_CONDITION in (strings(1), strings(2)));
select INIT_FUNCTION_NAME
into init_function
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = deparr(i)
and exists
(select 1
from FND_PRODUCT_INIT_CONDITION C
where C.APPLICATION_SHORT_NAME = deparr(i)
and C.RE_INIT_CONDITION in (strings(1), strings(2), strings(3)));
select INIT_FUNCTION_NAME
into init_function
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = deparr(i)
and exists
(select 1
from FND_PRODUCT_INIT_CONDITION C
where C.APPLICATION_SHORT_NAME = deparr(i)
and C.RE_INIT_CONDITION in (strings(1), strings(2), strings(3), strings(4)));
select INIT_FUNCTION_NAME
into init_function
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = deparr(i)
and exists
(select 1
from FND_PRODUCT_INIT_CONDITION C
where C.APPLICATION_SHORT_NAME = deparr(i)
and C.RE_INIT_CONDITION in (strings(1), strings(2), strings(3), strings(4), strings(5)));
select INIT_FUNCTION_NAME
into init_function
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = deparr(i)
and exists
(select 1
from FND_PRODUCT_INIT_CONDITION C
where C.APPLICATION_SHORT_NAME = deparr(i)
and C.RE_INIT_CONDITION in (strings(1), strings(2), strings(3), strings(4), strings(5), strings(6)));
select INIT_FUNCTION_NAME
into init_function
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = deparr(i)
and exists
(select 1
from FND_PRODUCT_INIT_CONDITION C
where C.APPLICATION_SHORT_NAME = deparr(i)
and C.RE_INIT_CONDITION in (strings(1), strings(2), strings(3), strings(4), strings(5), strings(6), strings(7)));
select INIT_FUNCTION_NAME
into init_function
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = deparr(i)
and exists
(select 1
from FND_PRODUCT_INIT_CONDITION C
where C.APPLICATION_SHORT_NAME = deparr(i)
and C.RE_INIT_CONDITION in (strings(1), strings(2), strings(3), strings(4), strings(5), strings(6), strings(7), strings(8)));
select INIT_FUNCTION_NAME
into init_function
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = deparr(i)
and exists
(select 1
from FND_PRODUCT_INIT_CONDITION C
where C.APPLICATION_SHORT_NAME = deparr(i)
and C.RE_INIT_CONDITION in (strings(1), strings(2), strings(3), strings(4), strings(5), strings(6), strings(7), strings(8), strings(9)));
select INIT_FUNCTION_NAME
into init_function
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = deparr(i)
and exists
(select 1
from FND_PRODUCT_INIT_CONDITION C
where C.APPLICATION_SHORT_NAME = deparr(i)
and C.RE_INIT_CONDITION in (strings(1), strings(2), strings(3), strings(4), strings(5), strings(6), strings(7), strings(8), strings(9), strings(10)));
x_last_update_date in varchar2,
x_custom_mode in varchar2) is
f_luby number; -- entity owner in file
f_ludate date; -- entity update date in file
db_ludate date; -- entity update date in db
f_ludate := nvl(to_date(x_last_update_date, 'YYYY/MM/DD'), sysdate);
select LAST_UPDATED_BY, LAST_UPDATE_DATE
into db_luby, db_ludate
from FND_PRODUCT_INITIALIZATION
where APPLICATION_SHORT_NAME = upper(x_apps_name);
update FND_PRODUCT_INITIALIZATION
set INIT_FUNCTION_NAME = upper(x_init_function),
LAST_UPDATED_BY = f_luby,
LAST_UPDATE_DATE = f_ludate,
LAST_UPDATE_LOGIN = f_luby
where APPLICATION_SHORT_NAME = upper(x_apps_name);
insert into FND_PRODUCT_INITIALIZATION(
APPLICATION_SHORT_NAME,
INIT_FUNCTION_NAME,
LAST_UPDATED_BY,
LAST_UPDATE_DATE,
LAST_UPDATE_LOGIN,
CREATION_DATE,
CREATED_BY)
values(
upper(x_apps_name),
upper(x_init_function),
f_luby,
f_ludate,
f_luby,
f_ludate,
f_luby);
x_last_update_date in varchar2,
x_custom_mode in varchar2) is
f_luby number; -- entity owner in file
f_ludate date; -- entity update date in file
f_ludate := nvl(to_date(x_last_update_date, 'YYYY/MM/DD'), sysdate);
insert into FND_PRODUCT_INIT_DEPENDENCY(
APPLICATION_SHORT_NAME,
PRODUCT_DEPENDENCY,
LAST_UPDATED_BY,
LAST_UPDATE_DATE,
LAST_UPDATE_LOGIN,
CREATION_DATE,
CREATED_BY)
values(
upper(x_apps_name),
upper(x_dependency),
f_luby,
f_ludate,
f_luby,
f_ludate,
f_luby);
x_last_update_date in varchar2,
x_custom_mode in varchar2) is
f_luby number; -- entity owner in file
f_ludate date; -- entity update date in file
f_ludate := nvl(to_date(x_last_update_date, 'YYYY/MM/DD'), sysdate);
insert into FND_PRODUCT_INIT_CONDITION(
APPLICATION_SHORT_NAME,
RE_INIT_CONDITION,
LAST_UPDATED_BY,
LAST_UPDATE_DATE,
LAST_UPDATE_LOGIN,
CREATION_DATE,
CREATED_BY)
values(
upper(x_apps_name),
upper(x_condition),
f_luby,
f_ludate,
f_luby,
f_ludate,
f_luby);
delete from fnd_product_init_dependency
where application_short_name = apps_short_name;
delete from fnd_product_init_condition
where application_short_name = apps_short_name;
delete from fnd_product_initialization
where application_short_name = apps_short_name;