分类目录归档:经验闲谈
Oracle R12.2补丁步骤
–应用层应用补丁
–1、补丁准备阶段(需run模式下),合适之前补丁是否正常并将文件清理干净,同时同步FS1和FS2
$ adop phase=prepare
–2、补丁应用阶段
$ adop phase=apply patches=xxxxxx
–3、确定阶段(编译无效对象,在此前阶段可通过abort回退)
$ adop phase=finalize
–4、切换阶段(关闭并发管理器和应用,置EBS系统不可用,并完成转化)
$ adop phase=cutover
–5、清理阶段(run模式下,删除代码和数据,如未运行或者下次prepare阶段自动运行)
$ adop phase=cleanup
参考文件:
How To Run Adop Like – Adpatch – With Option Apply=No? (文档 ID 2067371.1)
ADOP phase=prepare Errors With patch does not exists (文档 ID 1941327.1)
Oracle EBS标准form界面导出格式由TSV默认为Excel
路径:系统管理员-安装-浏览器选项
(1)excel->application/vnd.ms-excel->Microsoft Excel
(1)配置文件“导出 MIME 类型”设置成‘application/vnd.ms-excel’
(2)首选项设置为与数据库对应的字符集,如UTF8
Oracle DB scn情况查询
–1、查询当前scn情况
select version,
date_time,
dbms_flashback.get_system_change_number current_scn,
indicator
from (select version,
to_char(SYSDATE, 'YYYY/MM/DD HH24:MI:SS') DATE_TIME,
((((((to_number(to_char(sysdate, 'YYYY')) – 1988) * 12 * 31 * 24 * 60 * 60) +
((to_number(to_char(sysdate, 'MM')) – 1) * 31 * 24 * 60 * 60) +
(((to_number(to_char(sysdate, 'DD')) – 1)) * 24 * 60 * 60) +
(to_number(to_char(sysdate, 'HH24')) * 60 * 60) +
(to_number(to_char(sysdate, 'MI')) * 60) +
(to_number(to_char(sysdate, 'SS')))) * (16 * 1024)) –
SYS.dbms_flashback.get_system_change_number) /
(16 * 1024 * 60 * 60 * 24)) indicator
from v$instance);
–2、查询距离上限天数的历史变化情况
SELECT tim,
gscn,
round(rate),
round((chk16kscn – gscn) / 24 / 3600 / 16 / 1024, 1) "HEADROOM"
FROM (SELECT tim,
gscn,
rate,
((((to_number(to_char(tim, 'YYYY')) – 1988) * 12 * 31 * 24 * 60 * 60) +
((to_number(to_char(tim, 'MM')) – 1) * 31 * 24 * 60 * 60) +
(((to_number(to_char(tim, 'DD')) – 1)) * 24 * 60 * 60) +
(to_number(to_char(tim, 'HH24')) * 60 * 60) +
(to_number(to_char(tim, 'MI')) * 60) +
(to_number(to_char(tim, 'SS')))) * (16 * 1024)) chk16kscn
FROM (SELECT first_time tim,
first_change# gscn,
((next_change# – first_change#) /
((next_time – first_time) * 24 * 60 * 60)) rate
FROM v$archived_log
WHERE (next_time > first_time)))
ORDER BY 1, 2;
可参考以下链接:
https://www.cnblogs.com/likingzi/p/6420927.html
其他:此脚本来做patch 13498243
Oracle S 由数据库端找到对应的前台URL地址
SELECT home_url FROM icx_parameters;
SELECT profile_option_value
FROM fnd_profile_option_values
WHERE profile_option_id=
(SELECT profile_option_id
FROM fnd_profile_options WHERE profile_option_name = 'APPS_FRAMEWORK_AGENT')
AND level_value = 0;