Где находятся файлы .rtf на уровне ОС?

Где я могу найти местоположения .rtf, загруженные в XML Publisher Oracle EBS R12.

Я просто хотел узнать местонахождение всех rtf, которые я опубликовал?

Я использую IBM AIX 5.3.


person ARGStackOvaFlo    schedule 19.03.2017    source источник
comment
В AIX 5.3 нет возможности поиска файлов? Сложно поверить! Кроме того, как этот вопрос связан с Oracle или, в частности, с Oracle 10g?   -  person mathguy    schedule 20.03.2017
comment
@OP да, попробуйте что-нибудь вроде find / -name '*.rtf' 2>/dev/null   -  person Zsigmond Lőrinczy    schedule 20.03.2017


Ответы (1)


Был почти точно такой же вопрос oracle-ebs-r1/38220626#38220626">здесь, поэтому я снова публикую тот же ответ:

Шаблоны .rtf BI Publisher не загружаются на уровень ОС, они хранятся в виде больших двоичных объектов в таблице БД xdo_lobs.file_data, как показано ниже (см. полный запрос в Blitz Report Источники данных XDO Publisher)

select
xtv.template_name,
xtv.template_code,
(
select
xl.file_name
from
xdo_lobs xl
where
xtv.template_code=xl.lob_code and
xtv.application_short_name=xl.application_short_name and
(
(
xl.lob_type='TEMPLATE' and
xl.xdo_file_type<>'RTF' and
xtv.template_type_code=xl.xdo_file_type
or
xl.lob_type='TEMPLATE_SOURCE' and
xl.xdo_file_type in ('RTF','RTF-ETEXT')
) and
xtv.default_language=xl.language and
xtv.default_territory=xl.territory
or
xl.lob_type='TEMPLATE_SOURCE' and
xl.xdo_file_type='RTF' and
xtv.mls_language=xl.language and
xtv.mls_territory=xl.territory and
exists (
select null from xdo_lobs xl2
where xl2.lob_type='MLS_TEMPLATE' and
xtv.application_short_name=xl2.application_short_name and
xtv.template_code=xl2.lob_code and
xtv.default_language=xl2.language and
xtv.default_territory=xl2.territory) and
not exists (
select null from xdo_lobs xl3
where
xl3.lob_type='TEMPLATE_SOURCE' and
xtv.application_short_name=xl3.application_short_name and
xtv.template_code=xl3.lob_code and
xtv.default_language=xl3.language and
xtv.default_territory=xl3.territory)
)
) default_template_file,
(select xl.file_name from xdo_lobs xl where xl.lob_type='TEMPLATE_SOURCE' and xtv.application_short_name=xl.application_short_name and xtv.template_code=xl.lob_code and xtv.mls_language=xl.language and xtv.mls_territory=xl.territory) mls_template_file
from
xdo_templates_vl xtv

Если вы хотите видеть их как clob, вам нужна такая функция, как xxen_util.blob_to_clob.

select
xl.lob_type,
xl.application_short_name,
xl.lob_code,
xl.file_name,
xl.language,
xl.territory,
xxen_util.blob_to_clob(xl.file_data) file_clob
from
xdo_lobs xl
where
xl.file_name like '%.rtf' and
xl.lob_type in ('TEMPLATE','TEMPLATE_SOURCE')
person Andy Haack    schedule 15.04.2017