Good queries on FND tables for Apps11i

简介: 1. TO FIND APPLICATION DETAILS =============================== This will provide you application id alongwith short...


1. TO FIND APPLICATION DETAILS
===============================

This will provide you application id alongwith shortname and base path of it:

SELECT * 
FROM fnd_application;


2. TO FIND PRODUCT INSTALLATION DETAILS
========================================

SELECT application_id, 
product_version, 
status, 
patch_level 
FROM fnd_product_installations;

Note: Here application_id would be id as per query no. 1, product_version could 
be '11.5.0', status could be 'I' / 'S' / 'N' and patch_level could be '11i.AD.I' 

3. TO FIND THE TABLE DETAILS
=============================

SELECT application_id, 
table_id, 
table_name, 
user_table_name, 
description 
FROM fnd_tables 
WHERE table_name LIKE UPPER('%&table_name%');

Note: Enter the table_name for which you want to find out details. You can put 
application_id to filter tables.


4. TO FIND TABLE COLUMNS
=========================

Make sure to enter the table name in CAPS only:

SELECT application_id, 
table_id, 
column_id, 
column_name, 
user_column_name, 
column_sequence, 
column_type, 
width, 
description 
FROM fnd_columns 
WHERE table_id = 
(SELECT table_id 
FROM fnd_tables 
WHERE table_name LIKE UPPER('&table_name'));

Note: Enter the table_name for which you want to find out column details.


5. TO FIND VIEWS DETAILS
=========================
SET LONG 1000

SELECT application_id, 
view_id, 
view_name, 
description, 
text 
FROM fnd_views 
WHERE view_name LIKE UPPER('%&view_name%');


6. TO FIND VIEW COLUMNS
========================

SELECT application_id, 
view_id, 
column_sequence, 
column_name 
FROM fnd_view_columns 
WHERE view_id = 
(SELECT view_id 
FROM fnd_views 
WHERE view_name LIKE UPPER('&view_name'));

Note: Enter the view_name for which you want to find out view column details.

7. TO FIND CURRENCY DETAILS
===========================

SELECT currency_code, 
symbol, 
enabled_flag, 
currency_flag, 
description, 
precision, 
extended_precision, 
minimum_accountable_unit, 
start_date_active, 
end_date_active 
FROM fnd_currencies 
WHERE currency_code LIKE '%¤cy_code%';

Note: Here currency_code could be 'USD', 'GBP' etc.

8. TO FIND THE EXECUTABLE DETAILS
==================================

SELECT application_id,
executable_id,
executable_name,
execution_file_name,
subroutine_name,
icon_name,
execution_file_path
FROM fnd_executables
WHERE application_id = &application_id AND executable_name LIKE '%&
executable_name%';

Note: Here application_id could be id as per query no. 1 and executable_name 
could be 'APXPBFOR'

9. TO FIND INDEX DETAILS
========================
SELECT dba.status,
fnd.application_id,
fnd.table_id,
fnd.index_id, 
fnd.index_name,
fnd.description
FROM fnd_indexes fnd, 
dba_indexes dba 
WHERE table_id = 
(SELECT table_id 
FROM fnd_tables 
WHERE table_name LIKE UPPER('&table_name')) and fnd.index_name = dba.
index_name; 

Note: Enter the table_name for which you want to find out index details.

10. TO FIND INDEX COLUMNS
==========================

SELECT application_id,
table_id,
index_id,
column_sequence,
column_id
FROM fnd_index_columns WHERE table_id = 
(SELECT table_id 
FROM fnd_tables 
WHERE table_name = UPPER('&table_name'));

Note: Enter the table_name for which y.
ou want to find out index columns. If 
you are aware of index_id from query no. 9 above then specify that in the where 
clause instead of table_name. 

11. TO KNOW PRIMARY KEY DETAILS
===============================

SELECT application_id,
table_id,
primary_key_id,
primary_key_name,
description,
enabled_flag
FROM fnd_primary_keys
WHERE table_id = 
(SELECT table_id 
FROM fnd_tables 
WHERE table_name LIKE UPPER('&table_name'));

Note: Enter the table_name for which you want to find out primary key details.

12. TO FIND SEQUENCE DETAILS
============================

SELECT application_id, 
sequence_id,
sequence_name,
start_value,
increment_by,
min_value,
max_value,
cache_size,
cycle_flag,
order_flag,
description
FROM fnd_sequences
WHERE sequence_name = UPPER('&sequence_name');


13. TO FIND PROFILE OPTION DETAILS
==================================

SELECT application_id,
profile_option_id,
profile_option_name, 
site_enabled_flag,
resp_enabled_flag,
user_enabled_flag
FROM fnd_profile_options
WHERE profile_option_name LIKE UPPER('%&profile_option_name%');


14. TO FIND FOLDERS DETAILS
============================

Note: Here the NAME is completely case sensitive and hence needs to be passed 
as defined in FOLDER:

SELECT folder_id,
object,
name,
public_flag,
autoquery_flag,
where_clause,
order_by
FROM fnd_folders
WHERE name like '%&name%';.
相关文章
|
6月前
(145) Table ‘./addon_collect_wukong_spider‘ is marked as crashed and should be repaired解决思路
(145) Table ‘./addon_collect_wukong_spider‘ is marked as crashed and should be repaired解决思路
28 0
杭电oj-1050 Moving Tables
杭电oj-1050 Moving Tables
121 0
杭电oj-1050 Moving Tables
|
SQL 关系型数据库 MySQL
Exploiting hard filtered SQL Injections
http://websec.wordpress.com/2010/03/19/exploiting-hard-filtered-sql-injections/ While participa...
1214 0
|
SQL 关系型数据库 MySQL
Accelerating Queries with Group-By and Join By Groupjoin
这篇paper介绍了HyPer中引入的groupjoin算子,针对 join + group by这种query,可以在某些前提条件下,在join的过程中同时完成grouping+agg的计算。 比如用hash table来实现hash join和group by,就可以避免再创建一个hash table,尤其当join的数据量很大,产生的group结果又较少时,可以很好的提升执行效率。
358 0
Accelerating Queries with Group-By and Join By Groupjoin
|
Oracle 关系型数据库
Mandatory Patching Requirement for Database Versions 11.2.0.3 or Earlier, Using DB Links (DOC ID 2335265.1)
Mandatory Patching Requirement for Database Versions 11.2.0.3 or Earlier, Using DB Links (DOC ID 2335265.
2813 0
|
安全 关系型数据库 RDS
2-minute Comparison of Online Database and Self-built Databases
Should you use Alibaba Cloud ApsaraDB for RDS or build your own database?
2249 0