Useful Scripts for E-Business Suite Applications Analysts
In this Document
| Purpose |
| Questions and Answers |
| IMPORTANT: |
| 1. How to find versions of files in packages? |
| 2. How to check if a patch is applied? |
| 3. How to find the patch set level for an application? |
| 4. How to find instance name, host name, apps and RDBMS versions of the instance user is logged into? |
| 5. How to find the latest version of a file on a given instance? |
| 6. How to check the installation status and patch set level for a product? |
| 7. How to backup a table before users use sql to update the apps tables? |
| 8. How to find the table(s) name with the column name? |
| 9. How to check for invalid objects in a particular module? |
| 10. How to check for invalid objects in all the modules? |
| 11. How to find the applications in the system that are either installed shared? |
| 12. How to determine database character set? |
| 13. How to check the indexes on a table? |
| 14. How to check for custom triggers on seeded tables? |
| 15. How to get the header file versions for an executable in Unix? |
| Still Have Questions? |
| References |
APPLIES TO:
Oracle Purchasing - Version 11.5.1 to 12.1.3 [Release 11.5 to 12.1]
Oracle Payables - Version 11.5.0 to 12.1.3 [Release 11.5 to 12.1]
Oracle Assets - Version 11.5.0 to 12.1.3 [Release 11.5 to 12.1]
Oracle General Ledger - Version 11.5 to 12.1.3 [Release 11.5.0 to 12.1]
Oracle Application Object Library - Version 11.5.0 to 12.1.3 [Release 11.5 to 12.1]
Information in this document applies to any platform.
***Checked for relevance on 14-Oct-2013***
PURPOSE
These scripts are meant to provide the most commonly requested information.
Functional analysts with SQL and Unix access should be able to run these scripts and provide the information to Oracle Support.
User need to log into SQL plus to run the SQL scripts.
QUESTIONS AND ANSWERS
IMPORTANT:
You can find the RDA test for your APPS version in one of the following:
- R12.0.6+ : All RDA Data Collection Test (Doc ID 732091.1)
- R12.0.[3-4] : All RDA Data Collection Test (Doc ID 420427.1)
- 11i : Applications DBA RDA Data Collection Test (Doc ID 183274.1)
1. How to find versions of files in packages?
select text from dba_source
where name like '%&PKG_NAME%'
and line = 2;
Example:
select text from dba_source
where name = 'GLRX_JOURNAL_PKG'
and line = 2;
2. How to check if a patch is applied?
select * from ad_bugs
where bug_number = &bug_number;
select * from ad_applied_patches
where patch_name = &bug_number;
SELECT DISTINCT a.bug_number, e.patch_name, c.end_date, b.applied_flag
FROM ad_bugs a,
ad_patch_run_bugs b,
ad_patch_runs c,
ad_patch_drivers d,
ad_applied_patches e
WHERE a.bug_id = b.bug_id
AND b.patch_run_id = c.patch_run_id
AND c.patch_driver_id = d.patch_driver_id
AND d.applied_patch_id = e.applied_patch_id
AND a.bug_number LIKE '&bug_number'
ORDER BY 1 DESC ;
3. How to find the patch set level for an application?
select substr(aa.application_short_name,1,20) "Product",
a.patch_level "Patch Level"
from fnd_product_installations a, fnd_application aa
where a.application_id = aa.application_id
and aa.application_short_name like '%&short_name%';
Example:
select substr(aa.application_short_name,1,20) "Product",
a.patch_level "Patch Level"
from fnd_product_installations a, fnd_application aa
where a.application_id = aa.application_id
and aa.application_short_name like '%AP%';
4. How to find instance name, host name, apps and RDBMS versions of the instance user is logged into?
select i.instance_name, i.host_name, f.release_name release, i.version
from v$instance i, fnd_product_groups f
where upper(substr(i.instance_name,1,4)) = upper(substr(f.applications_system_name,1,4));
5. How to find the latest version of a file on a given instance?
select sub.filename, sub.version
from (
select adf.filename filename,
afv.version version,
rank()over(partition by adf.filename
order by afv.version_segment1 desc,
afv.version_segment2 desc,afv.version_segment3 desc,
afv.version_segment4 desc,afv.version_segment5 desc,
afv.version_segment6 desc,afv.version_segment7 desc,
afv.version_segment8 desc,afv.version_segment9 desc,
afv.version_segment10 desc,
afv.translation_level desc) as rank1
from ad_file_versions afv,
(
select filename, app_short_name, subdir, file_id
from ad_files
where upper(filename) like upper('%&filename%')
) adf
where adf.file_id = afv.file_id
) sub
where rank1 = 1
order by 1You can enter partial file names and the search is not case sensitive.
For example you can search on "glxjeent" for the form "GLXJEENT.fmb" or "frmsheet1" for java file "FrmSheet1VBA.class".
Note: This script works for the following file types:
- .class, .drvx, .fmb, .htm, .lct, .ldt, .o, .odf, .pkb, .pkh, .pls, .rdf, .rtf, .sql, .xml.
It doens't work for .lpc, .lc files, etc.
6. How to check the installation status and patch set level for a product?
Example 1
select patch_level, status from fnd_product_installations
where patch_level like '%FND%';
Example 2
select patch_level, status from fnd_product_installations
where patch_level like '%XDO%';
7. How to backup a table before users use sql to update the apps tables?
Example 1:
Create table ap_invoices_all_bkp as select * from ap_invoices_all;
Example 2:
Create table gl_interface_bkp as select * from gl_interface;
Note: SQL updates are not allowed unless directed to do so by Oracle Support or Development
8. How to find the table(s) name with the column name?
User knows the column_name but not sure what table(s) the column name is in.
Example:
select * from dba_tab_columns
where column_name like '%SET_OF_BOOKS_ID%';
This will provide the names of all the tables that has column_name SET_OF_BOOKS_ID.
9. How to check for invalid objects in a particular module?
select OWNER, OBJECT_NAME, OBJECT_TYPE
from DBA_OBJECTS
where OBJECT_NAME like 'FND_%'
and STATUS = 'INVALID';select OWNER, OBJECT_NAME, OBJECT_TYPE
from DBA_OBJECTS
where OBJECT_NAME like 'AP_%'
and STATUS = 'INVALID';
10. How to check for invalid objects in all the modules?
select owner, object_name, object_type from dba_objects
where status = 'INVALID'
order by object_name, object_type;
11. How to find the applications in the system that are either installed shared?
select fat.application_id, FAT.APPLICATION_NAME, fdi.status, fdi.patch_level
FROM FND_APPLICATION_TL FAT, fnd_product_installations FDI
WHERE FDI.APPLICATION_ID = FAT.APPLICATION_ID
and fdi.status in ('I', 'S')
Note: Status 'I' meaning installed and status 'S' meaning shared.
12. How to determine database character set?
select value from nls_database_parameters
where parameter = 'NLS_CHARACTERSET';
The following scripts will provide NLS parameter and value for database, instance and session.
select * from nls_database_parameters;
select * from nls_instance_parameters;
select * from nls_session_parameters;
13. How to check the indexes on a table?
Example:
select index_owner owner, table_name tab, index_name ind, column_name colu, column_position position
from DBA_IND_COLUMNS
where table_name = 'GL_CODE_COMBINATIONS';
14. How to check for custom triggers on seeded tables?
Example:
select trigger_name, owner
from dba_triggers
where table_name = 'GL_BALANCES';
15. How to get the header file versions for an executable in Unix?
Example 1
Log into UNIX.
> cd $AP_TOP/bin
> strings -a APXXTR |grep Header
Example 2
> cd $RG_TOP/bin
> Strings -a RGRARG |grep Header
The above will provide the versions of all the header files in those executables.
Note: the command adident (in unix, windows and other OS) can also be used to provide the file versions.
Still Have Questions?
Support Communities.
To provide feedback on this note, click on the Rate this document link.
REFERENCES
NOTE:134430.1 - How To Check The Indexes
On The Main General Ledger Tables
NOTE:183274.1 - 11i : Applications
DBA RDA Data Collection Test
NOTE:420427.1 - R12.0.[3-4] : All
RDA Data Collection Test
NOTE:732091.1 - R12.0.6+ : All RDA
Data Collection Test
Useful Scripts for E-Business Suite Applications Analysts的更多相关文章
- Security Configuration and Auditing Scripts for Oracle E-Business Suite (文档 ID 2069190.1)
This document provides the security configuration and auditing scripts for Oracle E-Business Suite. ...
- Oracle's Business Intelligence Applications Configuration Manager 基本概念
Oracle's Business Intelligence Applications Configuration Manager :BIACM Once the BIAPPS installatio ...
- [转帖]SAP S/4 HANA与SAP Business Suite/R3(ECC)的区别
SAP S/4 HANA与SAP Business Suite/R3(ECC)的区别 https://blog.csdn.net/zhongguomao/article/details/5351520 ...
- SAP S/4 HANA与SAP Business Suite/R3(ECC)的区别
转自:https://blog.csdn.net/zhongguomao/article/details/53515203 去年SAP推出了新一代商务套件SAP S/4 HANA,无疑是ERP行业创新 ...
- The Building Blocks-Enterprise Applications Part 2- Information Management and Business Analytics
1. Business Analytic Applications Data Analytics Also referred to as 'Business Analytics' or 'Busine ...
- Oracle Applications DBA 基础(一)
1.引子 2014年9月13日 20:33 <oracle Applications DBA 基础>介绍Oracle Applications R12的系统架构, 数据库后台及应用系统的基 ...
- Using Load-Balancers with Oracle E-Business Suite Release 12 (Doc ID 380489.1)
Using Load-Balancers with Oracle E-Business Suite Release 12 (Doc ID 380489.1) Modified: 12-Jun-20 ...
- OA Framework - How to Find the Correct Version of JDeveloper to Use with E-Business Suite 11i or Release 12.x (Doc ID 416708.1)
APPLIES TO: Oracle Applications Framework - Version 11.5.10.0 to 12.2.2 [Release 11.5.10 to 12.2] In ...
- How to Determine the Version of Oracle XML Publisher for Oracle E-Business Suite 11i and Release 12 (Doc ID 362496.1)
Modified: 29-Mar-2014 Type: HOWTO In this DocumentGoal Solution 1. Based upon an output file gen ...
随机推荐
- Android艺术开发探索第四章——View的工作原理(下)
Android艺术开发探索第四章--View的工作原理(下) 我们上篇BB了这么多,这篇就多多少少要来点实战了,上篇主席叫我多点自己的理解,那我就多点真诚,少点套路了,老司机,开车吧! 我们这一篇就扯 ...
- SuperVideo,一款直播,点播,投屏并有的app
应用名称:SuperVideo应用简介: 1.聚合海量视频,视频源来源于搜狐,乐视,优酷, 腾讯等主流视频网站的丰富视频内容,最新院线大片,热播剧随时看 2.基于百度云解码,享受云解码支持RMVB,M ...
- JVM内存区域划分(JDK6/7/8中的变化)
前言 Java程序的运行是通过Java虚拟机来实现的.通过类加载器将class字节码文件加载进JVM,然后根据预定的规则执行.Java虚拟机在执行Java程序的过程中会把它所管理的内存划分为若干个不同 ...
- Android应用UI设计流程
Android应用UI设计流程 设计原理 1.在移动设计中,使用环境是最关键的因素.原型设计方法必须考虑尺寸因素 2.用户测试必须涵盖运动.声音和多点触控等方面: 进行移动设计和测试时,请将你知道的有 ...
- C控制台实现模拟平抛运动算法
平抛运动这个相信读了高中物理都知道这个概念了,详细的我就不说了,不明白的看看百度: 平抛运动 接下来看看用控制台实现的平抛运动算法: #include <stdio.h> #include ...
- Linux内存映射--mmap函数
Linux提供了内存映射函数mmap, 它把文件内容映射到一段内存上(准确说是虚拟内存上), 通过对这段内存的读取和修改, 实现对文件的读取和修改, 先来看一下mmap的函数声明: 头文件: < ...
- Android初级教程使用服务注册广播接收者监听手机解锁屏变化
之前第七章广播与服务理论篇写到: 特殊的广播接收者(一般发广播次数频率很高) 安卓中有一些广播接收者,必须使用代码注册,清单文件注册是无效的 屏幕锁屏和解锁 电量改变 今天在这里就回顾一下,且用代码方 ...
- GrabCut in One Cut(基于图割算法grabcut的一次快速图像分割的OpenCV实现)----目前效果最好的图割
One cut in grabcut(grabcut算法的非迭代实现?) 本文针对交互式图像分割中的图割算法,主要想翻译一篇英文文献.不足之处请大家指正. 这是博主近期看到的效果最好,实现最简单 ...
- Tomcat如何检测内存泄漏
一般情况下,如果我们重启web应用是通过重启tomcat的话,则不存在内存泄漏问题.但如果不重启tomcat而对web应用进行重加载则可能会导致内存泄漏,因为重加载后有可能会导致原来的某些内存无法让G ...
- UNIX环境高级编程——管道读写规则和pipe Capacity、PIPE_BUF
一.当没有数据可读时O_NONBLOCK disable:read调用阻塞,即进程暂停执行,一直等到有数据来到为止. O_NONBLOCK enable:read调用返回-1,errno值为EAGAI ...