Oracle apps query-p2p cycle

Hi all....
I am using oracle 10g........
The following query is a union of two queries....The second query is a subset of the first meaning that it has fewer tables and fewer select columns as well....(I have to use union on the two queries....for a gud reason) .What i want is that the union return only the superset records from result of the union of the two queries when i pass a parameter at runtime like supplier_name as mentioned in the the query below .......
/* Formatted on 2012/05/14 16:49 (Formatter Plus v4.8.8) */
SELECT * FROM(SELECT DISTINCT reql.unit_meas_lookup_code "UNIT",
reqh.type_lookup_code "PR_TYPE",
reql.document_type_code "SUBTYPE",
reqh.segment1 "PR_NO", reqh.creation_date "PR DATE",
mtb.segment1 "ITEM_CODE",
pol.item_description "DESCRIPTION",
mcb.segment1 "INVENTORY_CATEGORY",
reql.manufacturer_part_number "MFG NO/DRG NO",
poh.authorization_status "AUTHORIZATION STATUS",
papf.full_name "BUYER", NULL "CUSTOMER",
DECODE (poh.type_lookup_code,
'RFQ', poh.segment1
) "RFQ NO",
DECODE (poh.type_lookup_code,
'RFQ', poh.creation_date
) "RFQ DATE",
NULL "RFQ SUPPLIER",
DECODE (poh.type_lookup_code,
'QUOTATION', poh.segment1
) "QTN NO",
DECODE (poh.type_lookup_code,
'QUOTATION', poh.reply_date
) "QTN DATE",
DECODE (poh.type_lookup_code,
'STANDARD', poh.segment1,
'BLANKET', poh.segment1,
'PLANNED', poh.segment1
) "PO_NO",
DECODE (poh.type_lookup_code,
'STANDARD', poh.creation_date,
'BLANKET', poh.creation_date,
'PLANNED', poh.creation_date
) "PO DATE",
pv.vendor_name "SUPPLIER",
NULL "SUPPLIER ACKNOWLEDGMENT DATE",
TRUNC
(reqh.creation_date
- TRUNC (poh.creation_date)
"NO OF DAYS TAKEN FROM PR TO PO",
DECODE (rcvh.asn_type,
'ASBN', rcvh.shipment_num
) "ASBN NO",
rcvh.receipt_num "RECEIPT NO",
rcvh.creation_date "RECEIPT DATE",
apia.invoice_num "INVOICE_NO",
NULL "QUALITY INSPECTION DATE",
rcvt.inspection_status_code "INSPECTION RESULT",
NULL "STOCKING DATE",
TRUNC (poh.creation_date)
- TRUNC (reqh.creation_date) "NO OF DAYS TAKEN FROM",
NULL "PV NO", NULL "PV DATE",
apc.amount "PAYMENT RELEASE AMOUNT",
apc.released_date "PAYMENT RELEASE DATE",
apc.payment_method_code "PAYMENT RELEASE MODE",
NULL "NO OF DAYS TAKEN FROM RECEIPT"
FROM po_requisition_headers_all reqh,
po_requisition_lines_all reql,
po_req_distributions_all reqd,
po_distributions_all pod,
po_headers_all poh,
po_lines_all pol,
po_line_locations_all poll,
rcv_shipment_headers rcvh,
rcv_shipment_lines rcvl,
rcv_transactions rcvt,
ap_invoice_distributions_all apid,
ap_invoices_all apia,
ap_payment_schedules_all aps,
ap_invoice_payments_all app,
ap_checks_all apc,
per_all_people_f papf,
po_vendors pv,
mtl_system_items_b mtb,
mtl_categories_b mcb,
mtl_item_categories mic
WHERE reqh.requisition_header_id =
reql.requisition_header_id
AND reql.requisition_line_id = reqd.requisition_line_id
AND pod.req_distribution_id = reqd.distribution_id
AND pol.po_line_id = pod.po_line_id
AND poh.po_header_id = pol.po_header_id
AND pol.po_line_id = poll.po_line_id
AND pod.po_distribution_id = apid.po_distribution_id
AND pod.po_distribution_id = rcvt.po_distribution_id
AND rcvl.shipment_header_id = rcvh.shipment_header_id
AND rcvh.shipment_header_id = rcvt.shipment_header_id
AND rcvt.po_distribution_id = apid.po_distribution_id
AND app.check_id = apc.check_id
AND apid.invoice_id = apia.invoice_id
AND apia.invoice_id = app.invoice_id
AND app.invoice_id = aps.invoice_id
AND poh.agent_id = papf.person_id
AND poh.vendor_id = pv.vendor_id
AND pol.item_id = mtb.inventory_item_id
AND mic.inventory_item_id = pol.item_id
AND poh.authorization_status = 'APPROVED'
AND mcb.category_id = mic.category_id
UNION
SELECT DISTINCT NULL "UNIT", NULL "PR_TYPE", NULL "SUBTYPE",
NULL "PR_NO", NULL "PR DATE",
mtb.segment1 "ITEM_CODE",
pol.item_description "DESCRIPTION",
mcb.segment1 "INVENTORY_CATEGORY", NULL,
poh.authorization_status "AUTHORIZATION STATUS",
papf.full_name "BUYER", NULL "CUSTOMER",
DECODE (poh.type_lookup_code,
'RFQ', poh.segment1
) "RFQ NO",
DECODE (poh.type_lookup_code,
'RFQ', poh.creation_date
) "RFQ DATE",
NULL "RFQ SUPPLIER",
DECODE (poh.type_lookup_code,
'QUOTATION', poh.segment1
) "QTN NO",
DECODE (poh.type_lookup_code,
'QUOTATION', poh.reply_date
) "QTN DATE",
DECODE (poh.type_lookup_code,
'STANDARD', poh.segment1,
'BLANKET', poh.segment1,
'PLANNED', poh.segment1
) "PO_NO",
DECODE (poh.type_lookup_code,
'STANDARD', poh.creation_date,
'BLANKET', poh.creation_date,
'PLANNED', poh.creation_date
) "PO DATE",
pv.vendor_name "SUPPLIER",
NULL "SUPPLIER ACKNOWLEDGMENT DATE", NULL,
DECODE (rcvh.asn_type,
'ASBN', rcvh.shipment_num
) "ASBN NO",
rcvh.receipt_num "RECEIPT NO",
rcvh.creation_date "RECEIPT DATE",
apia.invoice_num "INVOICE_NO",
NULL "QUALITY INSPECTION DATE",
rcvt.inspection_status_code "INSPECTION RESULT",
NULL "STOCKING DATE", NULL, NULL "PV NO",
NULL "PV DATE", apc.amount "PAYMENT RELEASE AMOUNT",
apc.released_date "PAYMENT RELEASE DATE",
apc.payment_method_code "PAYMENT RELEASE MODE",
NULL "NO OF DAYS TAKEN FROM RECEIPT"
FROM po_distributions_all pod,
po_headers_all poh,
po_lines_all pol,
rcv_shipment_headers rcvh,
rcv_shipment_lines rcvl,
rcv_transactions rcvt,
ap_invoice_distributions_all apid,
ap_invoices_all apia,
ap_payment_schedules_all aps,
ap_invoice_payments_all app,
ap_checks_all apc,
per_all_people_f papf,
po_vendors pv,
mtl_system_items_b mtb,
mtl_categories_b mcb,
mtl_item_categories mic
WHERE pol.po_line_id = pod.po_line_id
AND poh.po_header_id = pol.po_header_id
AND pod.po_distribution_id = apid.po_distribution_id
AND pod.po_distribution_id = rcvt.po_distribution_id
AND rcvl.shipment_header_id = rcvh.shipment_header_id
AND rcvh.shipment_header_id = rcvt.shipment_header_id
AND rcvt.po_distribution_id = apid.po_distribution_id
AND app.check_id = apc.check_id
AND apid.invoice_id = apia.invoice_id
AND apia.invoice_id = app.invoice_id
AND app.invoice_id = aps.invoice_id
AND poh.agent_id = papf.person_id
AND poh.vendor_id = pv.vendor_id
AND pol.item_id = mtb.inventory_item_id
AND mic.inventory_item_id = pol.item_id
AND poh.authorization_status = 'APPROVED'
AND mcb.category_id = mic.category_id) a
WHERE 1 = 1
AND ( a.pr_type = NVL (:pr_type, a.pr_type)
OR (:pr_type IS NULL AND a.pr_type IS NULL)
AND ( a.pr_no = NVL (:pr_no, a.pr_no)
OR (:pr_no IS NULL AND a.pr_no IS NULL)
AND ( a.unit = NVL (:unit_lookup_code, a.unit)
OR (:unit_lookup_code IS NULL AND a.unit IS NULL)
AND a.supplier = NVL (:supplier_name, a.supplier)
AND a.inventory_category = NVL (:inventory_category, a.inventory_category)
AND a.buyer = NVL (:buyer_name, a.buyer)
AND a.invoice_no = NVL (:invoice_no, a.invoice_no)
AND a.item_code = NVL (:item_code, a.item_code)
Edited by: Dave on May 14, 2012 5:08 AM
Edited by: Dave on May 14, 2012 5:14 AM

Dave wrote:
What i want is that the union return only the superset records from result of the union of the two queriesThat is what Union does.
If it doesn't, then it means it's not real duplicates.
For example :Scott@my11g SQL>with
  2  table_A(val) as (
  3  select 'This is a duplicate' from dual
  4  union all select 'This is another' from dual
  5  union all select 'This is not' from dual
  6  )
  7  ,table_B(val) as (
  8  select 'This is a duplicate' from dual
  9  union all select 'This is another' from dual
10  )
11  ------ end of sample data ------
12  select val from table_A
13  union
14  select val from table_B ;
Scott@my11g SQL>/
VAL
This is a duplicate
This is another
This is notSee ? only 3 rows from the 5 (3+2) originals.
But if I add some pseudo columns Which_table with different values for each table, then :Scott@my11g SQL>with
  2  table_A(val) as (
  3  select 'This is a duplicate' from dual
  4  union all select 'This is another' from dual
  5  union all select 'This is not' from dual
  6  )
  7  ,table_B(val) as (
  8  select 'This is a duplicate' from dual
  9  union all select 'This is another' from dual
10  )
11  ------ end of sample data ------
12  select val, 'from table_A' which_table from table_A
13  union
14  select val, 'from table_B' from table_B ;
VAL                 WHICH_TABLE
This is a duplicate from table_A
This is a duplicate from table_B
This is another     from table_A
This is another     from table_B
This is not         from table_AThere is now 5 rows, they are no longer duplicates.

Similar Messages

  • User Function Name wrong resultset in Oracle Apps Query

    Hi,
    I am using the below query to extarct the user function names alonng with responsilibity .But doing so i am getting a User Function Name for eg 'Cross Validation Rules' under Order Management User.But thats wrong.Cross validation rules should exists in Receivables,GL and Payables.
    select distinct frv.menu_id, frv.responsibility_id, frv.responsibility_name, fff.function_name, ffft.user_function_name
    from
    fnd_responsibility_vl frv,
    fnd_responsibility frp,
    fnd_form_functions fff,
    fnd_form_functions_tl ffft,
    fnd_resp_functions resp,
    fnd_menu_entries mnu,
    fnd_menus fmn
    where
    fff.function_id = ffft.function_id
    and mnu.menu_id=frp.menu_id
    and mnu.menu_id=fmn.menu_id
    and frv.responsibility_id=resp.responsibility_id
    and mnu.function_id=ffft.function_id
    and resp.rule_type='M'
    and frv.menu_id in (select me.menu_id
    from fnd_menu_entries me
    start with me.function_id = fff.function_id
    connect by prior me.menu_id = me.sub_menu_id )
    and (frv.responsibility_name like '%Order%')
    order by 1
    Kindly any help will be helpful for me

    What is your application release?
    I am using the below query to extarct the user function names alonng with responsilibity .But doing so i am getting a User Function Name for eg 'Cross Validation Rules' under Order Management User.But thats wrong.Cross validation rules should exists in Receivables,GL and Payables.Please try the queries in these docs.
    Script To Extract Submenu And Function Information About A Menu [ID 458701.1]
    HOW TO GENERATE MENU TREE FOR A MENU ATTACHED TO A RESPONSIBILITY IN ORACLE APPLICATIONS 11i ? [ID 312014.1]
    Thanks,
    Hussein

  • Vb-oracle app - query failing

    i am having a problem running a select statement from VB6 to an Oracle 8 database.
    the SQL statement works when the number of records in the table PrData is small (300 records) but not when there are lots of records (166800 records). when the query is executed in VB, it runs for approximately a minute then fails with error 3669, description 'Execution cancelled'.
    i can run the same query in the SQL Worksheet against the large database and it does not fail and give an error. it returns the correct records.
    is there a setting i am missing to allow the query to finish? why does it work from the worksheet but not from VB? any help would be greatly appreciated.
    here is how i'm connecting and opening the recordset:
    'connect:
    Set wrkMM = CreateWorkspace("WKS", "", "", dbUseODBC)
    sStr = "ODBC;DSN=" + Trim(oCent.ODBCSource) + ";UID=" + xstrOracleName + ";PWD=" + xstrOraclePswd + ";"
    ' create connection
    wrkMM.DefaultCursorDriver = dbUseODBCCursor
    Set conMC = wrkMM.OpenConnection("", dbDriverNoPrompt, bReadOnly, sStr)
    'get records
    conMC.OpenRecordset(strSQL, dbOpenForwardOnly)
    the SQL statement is:
    SELECT PrData.ProjectID, PrData.MetricId, PrMetric.DisplayFormat, PrData.DataValue, PrData.CollectDate, PrData.ProductID FROM PrMetric, PrData WHERE (PrMetric.ProjectID in (71)) AND (PrMetric.DataType <> 3) AND (PrMetric.GlobalID = 34 AND (PrMetric.PushData = 1) AND PrMetric.MetricID IN (Select MetricID from PrCatMetric Where ProjectID in (71))) AND (PrData.MetricId = PrMetric.MetricID) ORDER BY PrData.ProjectId, PrData.CollectDate, PrData.ProductID;
    null

    i am having a problem running a select statement from VB6 to an Oracle 8 database.
    the SQL statement works when the number of records in the table PrData is small (300 records) but not when there are lots of records (166800 records). when the query is executed in VB, it runs for approximately a minute then fails with error 3669, description 'Execution cancelled'.
    i can run the same query in the SQL Worksheet against the large database and it does not fail and give an error. it returns the correct records.
    is there a setting i am missing to allow the query to finish? why does it work from the worksheet but not from VB? any help would be greatly appreciated.
    here is how i'm connecting and opening the recordset:
    'connect:
    Set wrkMM = CreateWorkspace("WKS", "", "", dbUseODBC)
    sStr = "ODBC;DSN=" + Trim(oCent.ODBCSource) + ";UID=" + xstrOracleName + ";PWD=" + xstrOraclePswd + ";"
    ' create connection
    wrkMM.DefaultCursorDriver = dbUseODBCCursor
    Set conMC = wrkMM.OpenConnection("", dbDriverNoPrompt, bReadOnly, sStr)
    'get records
    conMC.OpenRecordset(strSQL, dbOpenForwardOnly)
    the SQL statement is:
    SELECT PrData.ProjectID, PrData.MetricId, PrMetric.DisplayFormat, PrData.DataValue, PrData.CollectDate, PrData.ProductID FROM PrMetric, PrData WHERE (PrMetric.ProjectID in (71)) AND (PrMetric.DataType <> 3) AND (PrMetric.GlobalID = 34 AND (PrMetric.PushData = 1) AND PrMetric.MetricID IN (Select MetricID from PrCatMetric Where ProjectID in (71))) AND (PrData.MetricId = PrMetric.MetricID) ORDER BY PrData.ProjectId, PrData.CollectDate, PrData.ProductID;
    null

  • Oracle APPS Query for Natural Accoun in the Chart of account

    Hello Guys,
    I am working on a query to display the natural account listing in a report, I have made the below query
    select  application_id ,SEGMENT_NAME, flex_value ACCOUNT_CODE , DESCRIPTION ACCOUNT_DESCRIPTION
    from FND_FLEX_VALUES,FND_ID_FLEX_SEGMENTS ,fnd_flex_values_tl
    where
    FND_ID_FLEX_SEGMENTS.APPLICATION_ID='101'
    AND SEGMENT_NAME='Natural Accounts'
    and FND_FLEX_VALUES.FLEX_VALUE_SET_ID=FND_ID_FLEX_SEGMENTS.FLEX_VALUE_SET_ID
    AND FND_FLEX_VALUES.FLEX_VALUE_ID=fnd_flex_values_tl.FLEX_VALUE_ID
    Its showing me the correct values but there is repetition of record each row is displayed 4 times, I have checked the joins and fields but still cant find any idea what could be causing this duplication,
    Any help will be appreciated
    Regards              

    Refer this query, you can get
    select FIS.SEGMENT_NAME, FFV.FLEX_VALUE, FIF.ID_FLEX_STRUCTURE_CODE , FSA.*
    from FND_SEGMENT_ATTRIBUTE_VALUES FSA, FND_ID_FLEX_SEGMENTS_VL FIS, FND_FLEX_VALUES_VL FFV, FND_ID_FLEX_STRUCTURES FIF
    where FSA.attribute_value='Y'
    and FSA.ID_FLEX_CODE = 'GL#'
    and FSA.SEGMENT_ATTRIBUTE_TYPE = 'GL_ACCOUNT' --Natural Account Segment
    and FIF.ID_FLEX_STRUCTURE_CODE='ACCOUNTING_FLEXFIELD'
    and FSA.APPLICATION_COLUMN_NAME = FIS.APPLICATION_COLUMN_NAME
    and FIS.FLEX_VALUE_SET_ID = FFV.FLEX_VALUE_SET_ID
    and FIS.ID_FLEX_NUM=FIF.ID_FLEX_NUM
    and FIS.ID_FLEX_CODE=FIF.ID_FLEX_CODE
    AND FSA.ID_FLEX_CODE= FIF.ID_FLEX_CODE
    and FSA.ID_FLEX_NUM=FIF.ID_FLEX_NUM
    thanks

  • Modules in o2c and p2p cycles

    Hi All
    Can any tell me he what are the modules included in oracle O2C and P2P cycles
    Thanks & Regards
    Srikkanth.M

    Hi;
    pelase check below link:
    http://www.oraclechamps.com/oracle-supply-chain-a-logisitcs.html
    Also see:
    http://oracle.anilpassi.com/procure-to-pay-order-to-cash-end-to-end-cycle-functional-documents-2.html
    http://shareoracleapps.blogspot.com/2010/05/procure-to-pay-cycle-in-oracle-apps-r12.html
    http://www.oraclechamps.com/oracle-supply-chain-a-logisitcs.html
    Regard
    Helios

  • Oracle Apps  Implementation

    Hi,
    Please give the detail of Oracle Apps Implementation life cycle in Finance modul: AP, AR, GL, FA, CM

    If you mean stages involved in Implementation then you should read on AIM - Application implementation methodology...you should download AIM whitepaper from metalink and that will answer your question

  • P2p cycle query -oracle apps

    Hi...
    I am using oracle 10g and was trying to link the base tables of p2p cycle and need help on my query:
    select prla.unit_meas_lookup_code "UNIT",
    prha.type_lookup_code"PR TYPE",
    prha.segment1"PR NUMBER",
    prha.creation_date,null"SUPPLIER",
    null"INVENTORY CATEGORY",
    null"MFG NO",
    null"BUYER",
    null"CUSTOMER",
    prla.item_id"ITEM CODE",
    apia.invoice_num"INVOICE NO" ,
    prla.item_description "DESCRIPTION",
    null"RFQ No",
    null "RFQ Date",
    null"RFQ Supplier",
    null "QTN No",
    null "QTN Date",
    pha.segment1"PO NO",
    pha.vendor_id"SUPPLIER",
    pha.CREATION_DATE "PO DATE",
    null"ACK.DATE",
    null"NO OF DAYS FROM PR TO PO",
    null "ASBN NO",
    rsh.receipt_num "RECEIPT NO",
    null"RECEIPT DATE",
    rsh.invoice_num"INVOICE NO",
    null"INSPECTION DATE",
    null "INSPECTION RESULT",
    null"STOCKING DATE",
    null "NO OF DAYS FROM PO TO RECEIPT",
    null"PV NO",apca.amount "RELEASE AMOUNT",
    apca.released_date "PAYMENT RELEASE DATE",
    apca.payment_method_code " RELEASE MODE",
    null " DAYS TAKEN "
    from PO_REQUISITION_HEADERS_ALL prha,
    PO_REQUISITION_LINES_ALL prla,
    PO_HEADERS_ALL pha,
    RCV_SHIPMENT_HEADERS rsh,
    AP_INVOICE_DISTRIBUTIONS_ALL apida,
    AP_INVOICES_ALL apia,
    PO_DISTRIBUTIONS_ALL pda,
    PO_REQ_DISTRIBUTIONS_ALL prda,
    RCV_SHIPMENT_LINES rsl,
    AP_CHECKS_ALL apca,
    AP_INVOICE_PAYMENTS_ALL apipa
    where prha.REQUISITION_HEADER_ID = prla.REQUISITION_HEADER_ID
    AND prla.REQUISITION_LINE_ID = prda.REQUISITION_LINE_ID
    AND prda.DISTRIBUTION_NUM = pda.DISTRIBUTION_NUM
    AND pda.PO_HEADER_ID = pha.PO_HEADER_ID
    AND pda.PO_DISTRIBUTION_ID = rsl.PO_DISTRIBUTION_ID
    AND rsl.SHIPMENT_HEADER_ID = rsh.SHIPMENT_HEADER_ID
    AND pda.PO_DISTRIBUTION_ID = apida.PO_DISTRIBUTION_ID
    AND apida.INVOICE_ID = apipa.INVOICE_ID
    AND apipa.CHECK_ID = apca.CHECK_ID
    Cant figure out what I have missed.Please help!!!

    Ok, you have a problem!
    But what problem do you have exactly?
    It would be nice to see
    - the errormessage (when you have an error)
    - table-create scripts
    - sample data

  • P2P Cycle Query in R12

    Hi Gurus,
    I need a query to get the information of P2P cycle in oracle apps r12.
    here is my cycle
    PR->RFQ->QUOTATION->PO->RECEIVING->INVOICE->PAYMENTS
    I need the following data in the query.
    PR#,
    PR_APPROVAL_DATE,
    RFQ#,
    RFQ_CREATION_DATE,
    QUOTE_ANALYSIS_APPROVAL_REASON,
    PO#, PO_APPROVAL_DATE,
    PO_TOTAL_AMOUNT,
    BUYER,
    RECEIVING_DATE,
    INVOICE_NUM,
    INVOICE_DATE,
    PAYMENT_DATE,
    AMOUNT_PAID
    SUPPLIER # AND SUPPLIER_NAME
    your response will be highly appreciated.
    Thanks & Regards
    Shariff

    Hi,
    Where do you find it difficult to prepare the query?
    Are you looking for tables involved in the query then check this out [http://docs.oracle.com/cd/A85964_01/acrobat/potrm.pdf]
    Regards

  • P2P CYCLE QUERY

    Hi all...............
    I am new in oracle and i need your help......................
    I need a query which cover p2p cycle..................my requirement is that i need all the Requisitions with PO or without PO, all the PO with or without Receipt, all the invoices with or without PO, and Payments details if exist...............in one query...........plz help
    Regards

    Hi,
    Where do you find it difficult to prepare the query?
    Are you looking for tables involved in the query then check this out [http://docs.oracle.com/cd/A85964_01/acrobat/potrm.pdf]
    Regards

  • Query or Profile Option to find Current logged in user in oracle apps R12

    Query or Profile Option to find Current logged in user in oracle apps R12.
    I want to get value of current user who is logged in to that particular session, based on the value of user_id or user_name returned i have to do a Forms Personalization.
    Plz help.
    Regards,
    Sadiya P.

    Hi Sadiya,
    do you have the answer for this? please send it to me because i am also have same requirement. so plz post it here....

  • OAF page : How to get its query performance from Oracle Apps Screen?

    Hi Team,
    How to get the query performance of an OAF page using Oracle Apps Screen ??
    regards
    sridhar

    Go through this link
    Any tools to validate performance of an OAF Page?
    However do let us know as these queries performance can be check through backend also
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • SQL Query With Like Operator - Performance is very poor - Oracle Apps Table

    Hi,
    I'm querying one of the Oracle Applications Standard Table. The performance is very slow when like operator is used in the query condition. The query uses a indexed column in the where clause.
    The query is..
    select * from hz_parties
    where upper(party_name) like '%TOY%'
    In the above case, It is not using the index and doing full table scan. I have checked the explain plan and the cost is 4496.
    select * from hz_parties
    where upper(party_name) like 'TOY%'
    If I remove the '%' at the begining of the string, the performance is good and it is using the index. In this case, the cost is 5.
    Any ideas to improve the performance of the above query. I have to retrieve the records whose name contains the string. I have tried hints to force the use of index. But it is of no use.
    Thanks,
    Rama

    If new indexes are disallowed, not a lot of good ones, no.
    If you know what keyword(s) are going to be searched for, a materialized view might help, but I assume that you're searching based on user input. In that case, you'd have to essentially build your own Text index using materialized views, which will almost certainly be less efficient and require more maintenance than the built-in functionality.
    There may not be much you could do to affect the query plan in a reasonable way. Depending on the size of the table, how much RAM you're willing to throw at the problem, how your system is administered, and what Oracle Apps requires/ prohibits in terms of database configuration, you might be able to force Oracle to cache this table so that your full table scans are at least more efficient.
    Justin

  • How to Implement KFF Range (Low and High) in query find form in oracle apps

    Hi,
    Please provide some sample script for using KFF range LOV (Low and High) in one of the query find form in Oracle apps R12.
    I need to customize one of the standard form and add this range functionality for that search form.
    Thanks,
    Prasanna

    Yuvaraaj,
    Your request is unique to the Oracle Enterprise Business Suite (EBS). Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    Craig...

  • Problem in enter-query and execute-query in TEMPLATE.fmb in Oracle Apps R11

    I have created the form using TEMPLATE.fmb in Oracle Apps R11i. There is 2 problems listed below when it queries the records:-
    1) Cannot query the record by the specific value e.g. Cannot retrieve the PO records by entering the specific PO number.
    2) Always display the message 'Do you want to save the record?' whenever the <ENTER-QUERY> key (i.e. F11) is pressed.
    HOWEVER, it works fine for ALL records without entering any specific values.
    Does anybody help to solve these two problems? Any hints? Thanks for any helps.

    try setting the block status to query or record
    status to new prior to getting in the enter-query
    mode.
    Thanks
    TapashHi Tapash, Dun understand.. please give more details.. Thanks.

  • Query regarding identification of Customizations done in Oracle Apps

    Hi,
    I am from an IT personnel from a banking industry.
    Here we are using Oracle Apps (CU1) that too on Oracle 9i. In order to go ahead with
    migration of Oracle to 10g we need to migrate the application from CU1 to CU2.
    But before we go with this migration, at first place we need to identify what all
    customizations have been done in CU1. The application is operational in our bank since 7-8
    years, somewhere we have lost the tracking sheet of the customizations done earlier.
    Please help out if there is anyway (tools, script, etc) to find what all customizations
    have been done in the product.
    Thanks & Regards,
    Abhinov Asthana
    Mumbai

    Sorry - incorrect answer :-)
    CUSTOM.pll does not capture ALL of the customizations/extensions that may be present.
    As stated before, currently there is no tool or query that will give you this info - it can only be captured thru good documentation practices.
    Srini

Maybe you are looking for