SDO_NN() ISSUE -10g

DEAR EXPERTS
SQL> SELECT /*+ INDEX(S SUPP_IDX) */
L.COMPCD,
L.ZIPCD,
S.SUPPID,
'M'
FROM Loc_zip L,Supp_zip S
WHERE SDO_NN(L.LOC,S.LOC,'sdo_batch_size=1332')= 'TRUE'
AND L.compcd = S.compcd
AND ROWNUM<=5 ;
SELECT /*+ INDEX(S SUPP_IDX1) */
ERROR at line 1:
ORA-13249: SDO_NN cannot be evaluated without using index
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 17
ORA-06512: at "MDSYS.PRVT_IDX", line 9
Loc_zip TABLE WITH LOC_IDX
Supp_zip TABLE WITH SUPP_IDX
EACH ROW IN LOC_ZIP WILL MATCH 1332 ROW IN SUPP_ZIP
I NEED NEAREST 5 SUPPLIER LOCATION MY QRY ERROR AS ABOVE
Many thankx
kalinga

Kalinga,
This issue is documented in the Spatial Operators chapter of the Oracle Spatial documentation and also in the excellent book Pro Oracle Spatial. The recommended solution is to include the NO_INDEX hint for the attribute index and the INDEX hint for the spatial (RTree) index.
I don't know, from your SQL, if SUPP_IDX is the spatial or attribute index. Let's assume SUPP_IDX is the attribute index and SUPP_SPIDX is the spatial index then this is how you should use it:
SELECT /*+ INDEX(L SUPP_SPIDX) NO_INDEX(L SUPP_IDX) */
       L.COMPCD,
       L.ZIPCD,
       S.SUPPID,
       'M'
  FROM Loc_zip  S,
       Supp_zip L
WHERE SDO_NN(L.LOC,S.LOC,'sdo_batch_size=1332')= 'TRUE'
   AND L.compcd = S.compcd
   AND ROWNUM<=5 ;Note that I have specified the L alias as this is the table being searched. Also, you should reorder the tables in the FROM list and include the /*+ORDERED*/ hint.
Sometimes, though, I have found just the NO_INDEX and INDEX hints to be inadequate and have found use of the USE_NL or LEADING hints to be very useful. So, for your query this might help:
SELECT /*+ORDERED USE_NL(LS) */
       L.COMPCD,
       L.ZIPCD,
       S.SUPPID,
       'M'
  FROM Loc_zip  S,
       Supp_zip L
WHERE SDO_NN(L.LOC,S.LOC,'sdo_batch_size=1332')= 'TRUE'
   AND L.compcd = S.compcd
   AND ROWNUM<=5 ;Try and experiment: you will get something that works pretty quickly.
regards
Simon

Similar Messages

  • Custom Policy Issue 10G

    Hi All,
    I have created a custom policy in OWSM 10g for WS-Header Insertion, that inserts user credentials(username/password) in UserToken of SOAP Headers.
    But I am getting following error while testing my web service on OWSM.
    SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode
    xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults"
    xmlns="">p:Client.PolicyInitializationFailure</faultcode>
    <faultstring
    xmlns="">Failed to initialize pipeline 'Request' in policy 'testCustom(1.0)'</faultstring>
    null</SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Kindly help

    Hi All,
    Pls help

  • Oracle DBconsole issue -10g

    Hi
    Unable to stop/start the oracleDBConsoleSRINI service (SRINI is name of database) on my
    laptop when laptop is connected to the internet. otherwise we are able to start/stop the dbconsole service without
    any issue. can you suggest me any otherway to overcome same issues.
    Edited by: user7511349 on Aug 30, 2009 10:36 AM

    Hi ,
    Updated IP address in host file after that also have same issue. ( 127.x.x.x when system is not connected to the
    internet and when system is connected to the internet 10.x.x.x). both IP address are updated in Host file, still have
    same issue.

  • Performance Issue : 10g is faster and 9i slower

    Hi,
    Please find below the query which behaves differently in 10 g and 9i
    SELECT
    BMS_FACMAS_ACPMAS.FACILITY,
    BMS_FACMAS_ACPMAS.ADDRESS,
    SUBSTR(BMS.VENMAS.NAME, 1, 50),
    BMS.ACPMAS.ACP_NO,
    BMS.ASCCOD.VALUE,
    BMS.ACPPAY.PAYMENT_AMOUNT,
    BMS.ACPACC.CHARGES,
    BMS.ACPPAY.START_DATE,
    --TRUNC(BMS.ACPPAY.END_DATE),
    ENDDATE.ENDDT,
    BMS.ACPMAS.STATUS,
    BMS.ACPMAS.STATUS_DATE,
    BMS.ASVCOD.VALUE,
    BMS_FACMAS_ACPMAS.GROSS_FEET,
    BMS.AFRCOD.VALUE,
    nvl(BMS.PROCOD.VALUE,'N/A'),
    ACP_Correct.CORP_ID,
    BMS_FACMAS_ACPMAS.GROSS_YARDS,
    BMS_FACMAS_ACPMAS.CITY || ',' || BMS_FACMAS_ACPMAS.STATE
    FROM
    BMS.FACMAS BMS_FACMAS_ACPMAS,
    BMS.ACPPAY,
    BMS.VENMAS,
    BMS.CONMAS,
    BMS.ACPACC,
    BMS.ACPMAS,
    BMS.EMPMAS ACP_Correct,
    BMS.EMPMAS ACP_AreaManager,
    BMS.EMPMAS ACP_Director,
    BMS.EMPMAS ACP_Reviewer,
    BMS.PROCOD,
    BMS.ASVCOD,
    BMS.AFRCOD,
    BMS.ASCCOD,
    ( Select Max(END_DATE) ENDDT, ACPMAS.ACP_ID from BMS.ACPPAY, BMS.ACPMAS where
    BMS.ACPMAS.ACP_ID=BMS.ACPPAY.ACP_ID
    GROUP BY ACPMAS.ACP_ID
    ) ENDDATE
    WHERE
    ( BMS.VENMAS.STATUS='A' )
    AND ( BMS.ACPMAS.STATUS <> 'X' )
    AND (
    BMS.ASVCOD.VALUE IN 'JANITORIAL'
    AND SUBSTR(BMS.VENMAS.NAME, 1, 50) LIKE 'UNIVERSAL%'
    AND BMS.ACPMAS.STATUS IN ('I', 'A', 'T')
    AND ACP_Correct.CORP_ID LIKE 'ME5077'
    AND ACP_AreaManager.CORP_ID LIKE '%'
    AND ACP_Director.CORP_ID LIKE '%'
    AND ACPPAY.START_DATE <= SYSDATE
    AND ACPPAY.END_DATE >= SYSDATE
    AND ENDDATE.ACP_ID=ACPMAS.ACP_ID
    AND (( ACP_Correct.SUPERVISOR_ID=ACP_AreaManager.EMPLOYEE_ID )
    OR ACP_Correct.EMPLOYEE_ID=ACP_AreaManager.EMPLOYEE_ID
    AND (( ACP_Director.EMPLOYEE_ID=ACP_AreaManager.SUPERVISOR_ID )
    OR ACP_Director.EMPLOYEE_ID=ACP_AreaManager.Employee_ID
    AND ( BMS.ASVCOD.CODE_ID=BMS.ACPMAS.SERVICE_TYPE_ID )
    AND ( BMS.ACPMAS.CORRECT_ID=ACP_Correct.EMPLOYEE_ID )
    AND ( BMS.CONMAS.VENDOR_ID=BMS.VENMAS.VENDOR_ID )
    AND ( BMS.ACPMAS.FREQUENCY_ID=BMS.AFRCOD.CODE_ID )
    AND ( BMS.ACPACC.ACP_ID=BMS.ACPMAS.ACP_ID )
    AND ( BMS.ACPMAS.ACP_ID=BMS.ACPPAY.ACP_ID )
    AND ( BMS.ACPPAY.SCHEDULE_ID=BMS.ASCCOD.CODE_ID )
    AND ( BMS.CONMAS.CONTRACT_ID=BMS.ACPMAS.CONTRACT_ID )
    AND ( BMS_FACMAS_ACPMAS.FACILITY_ID=BMS.ACPMAS.FACILITY_ID )
    AND ( BMS_FACMAS_ACPMAS.PROPERTY_ID=BMS.PROCOD.CODE_ID(+) )
    AND BMS.ACPMAS.REVIEWER_ID = ACP_Reviewer.EMPLOYEE_ID(+)
    In 10g the Query takes 5 secs while in 9i it takes more than 3 minutes.
    Also find below the Explain Plan for both the versions

    Hi and welcome to the forum,
    Please post:
    1) the output of this query, from both databases:
    SQL> select name, value from v$parameter where name like '%optim%';2) explain plans from the query, again: from both databases
    edit
    And read:
    [How to post a tuning request | http://forums.oracle.com/forums/thread.jspa?threadID=863295]
    [When your query takes too long | http://forums.oracle.com/forums/thread.jspa?threadID=501834&tstart=0]
    edit2
    And bookmark (for future reasons ;) )
    http://tahiti.oracle.com
    http://asktom.oracle.com
    edit3
    And always put your code between the codetags:   in order to preserve indentation.
    ( See the OTN [FAQ | http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ] )
    Edited by: hoek on Jun 19, 2009 1:26 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Limit map issue 10g

    We created a limit map variable using a OLAP DML program and refer it via a view as follows. While the view got created all columns show up as undefined type. This probably means it is not finding the limit map definition? Any clues as to what needs to be done to validate the limit map and corresponding views?
    CREATE OR REPLACE FORCE VIEW SYSADM.PS_CGF_CRI_OSUC1_DR_VW
    (CGF_PERIOD,
    CGF_CITI_SOURCE,
    CGF_CRI_OSUC_SC,
    CGF_CRI_OSUCCL,
    CGF_CRI_OSUCTN,
    CGF_CRI_OSUCRT,
    CGF_CRI_OSUCRR,
    CGF_CRI_INDUSTRY,
    CGF_CRI_PRODUCT,
    CGF_CRI_OU,
    CGF_CRI_GEOGRAPHY,
    CGF_CRI_BU,
    CGF_PERIOD_DESC,
    CGF_PRD_TREENAME,
    CGF_LEAP_YEAR,
    CGF_CS_PARENT,
    CGF_CS_DESC,
    CGF_CS_TREE_NAME,
    CGF_SC_PARENT,
    CGF_SC_DESC,
    CGF_SC_TREE_NAME,
    CGF_CL_PARENT,
    CGF_CL_DESC,
    CGF_CL_TREE_NAME,
    CGF_TN_PARENT,
    CGF_TN_DESC,
    CGF_TN_TREE_NAME,
    CGF_RT_PARENT,
    CGF_RT_DESC,
    CGF_RT_TREE_NAME,
    CGF_RR_PARENT,
    CGF_RR_DESC,
    CGF_RR_TREE_NAME,
    CGF_IY_PARENT,
    CGF_IY_DESC,
    CGF_IY_TREE_NAME,
    CGF_PT_PARENT,
    CGF_PT_DESC,
    CGF_PT_TREE_NAME,
    CGF_OU_PARENT,
    CGF_OU_DESC,
    CGF_OU_TREE_NAME,
    CGF_GE_PARENT,
    CGF_GE_DESC,
    CGF_GE_TREE_NAME,
    CGF_LV_PARENT,
    CGF_LV_DESC,
    CGF_LV_TREE_NAME,
    CGF_LV_STATE,
    CGF_LV_COUNTRY,
    CGF_JAN,
    CGF_FEB,
    CGF_MAR,
    CGF_Q1,
    CGF_APR,
    CGF_MAY,
    CGF_JUN,
    CGF_Q2,
    CGF_JUL,
    CGF_AUG,
    CGF_SEP,
    CGF_Q3,
    CGF_OCT,
    CGF_NOV,
    CGF_DEC,
    CGF_Q4,
    CGF_FY,
    CGF_JAN_QTD,
    CGF_FEB_QTD,
    CGF_MAR_QTD,
    CGF_Q1_QTD,
    CGF_APR_QTD,
    CGF_MAY_QTD,
    CGF_JUN_QTD,
    CGF_Q2_QTD,
    CGF_JUL_QTD,
    CGF_AUG_QTD,
    CGF_SEP_QTD,
    CGF_Q3_QTD,
    CGF_OCT_QTD,
    CGF_NOV_QTD,
    CGF_DEC_QTD,
    CGF_Q4_QTD,
    CGF_FY_QTD,
    CGF_JAN_YTD,
    CGF_FEB_YTD,
    CGF_MAR_YTD,
    CGF_Q1_YTD,
    CGF_APR_YTD,
    CGF_MAY_YTD,
    CGF_JUN_YTD,
    CGF_Q2_YTD,
    CGF_JUL_YTD,
    CGF_AUG_YTD,
    CGF_SEP_YTD,
    CGF_Q3_YTD,
    CGF_OCT_YTD,
    CGF_NOV_YTD,
    CGF_DEC_YTD,
    CGF_Q4_YTD,
    CGF_FY_YTD,
    CGF_DRCR_SELECT,
    CGF_NOTATION,
    CGF_NOTATION_DESC,
    OLAP_CALC)
    AS
    SELECT yr_id,
    cs_id,
    sc_id,
    cl_id,
    tn_id,
    rt_id,
    rr_id,
    iy_id,
    pt_id,
    ou_id,
    ge_id,
    lv_id,
    yr_desc,
    yr_tree_name,
    yr_leap_year,
    cs_parent,
    cs_desc,
    cs_tree_name,
    sc_parent,
    sc_desc,
    sc_tree_name,
    cl_parent,
    cl_desc,
    cl_tree_name,
    tn_parent,
    tn_desc,
    tn_tree_name,
    rt_parent,
    rt_desc,
    rt_tree_name,
    rr_parent,
    rr_desc,
    rr_tree_name,
    iy_parent,
    iy_desc,
    iy_tree_name
    pt_parent,
    pt_desc,
    pt_tree_name,
    ou_parent,
    ou_desc,
    ou_tree_name,
    ge_parent,
    ge_desc,
    ge_tree_name,
    lv_parent,
    lv_desc,
    lv_tree_name,
    lv_state,
    lv_country,
    cgf_jan,
    cgf_feb,
    cgf_mar,
    cgf_q1,
    cgf_apr,
    cgf_may,
    cgf_jun,
    cgf_q2,
    cgf_jul,
    cgf_aug,
    cgf_sep,
    cgf_q3,
    cgf_oct,
    cgf_nov,
    cgf_dec,
    cgf_q4,
    cgf_fy,
    cgf_jan_qtd,
    cgf_feb_qtd,
    cgf_mar_qtd,
    cgf_q1_qtd,
    cgf_apr_qtd,
    cgf_may_qtd,
    cgf_jun_qtd,
    cgf_q2_qtd,
    cgf_jul_qtd,
    cgf_aug_qtd,
    cgf_sep_qtd,
    cgf_q3_qtd,
    cgf_oct_qtd,
    cgf_nov_qtd,
    cgf_dec_qtd,
    cgf_q4_qtd,
    cgf_fy_qtd,
    cgf_jan_ytd,
    cgf_feb_ytd,
    cgf_mar_ytd,
    cgf_q1_ytd,
    cgf_apr_ytd,
    cgf_may_ytd,
    cgf_jun_ytd,
    cgf_q2_ytd,
    cgf_jul_ytd,
    cgf_aug_ytd,
    cgf_sep_ytd,
    cgf_q3_ytd,
    cgf_oct_ytd,
    cgf_nov_ytd,
    cgf_dec_ytd,
    cgf_q4_ytd,
    cgf_fy_ytd,
    cgf_drcr_select,
    'DR/CR',
    'Debit Credit Notation',
    olap_calc
    FROM TABLE(OLAP_TABLE(
    'awm_cr1.cricube duration session',
    '&(SYSADM.CITI_PROGRAMS!CR_DRCR_REP_LM_OSUC)' ))
    WHERE CGF_drcr_SELECT IS NOT NULL
    SHOW CR_DRCR_REP_LM_OSUC
    DIMENSION yr_id AS VARCHAR2(40) from cr_yr WITH
    ATTRIBUTE yr_desc AS VARCHAR2(40) from cr_yr_long_description
    ATTRIBUTE yr_tree_name AS VARCHAR2(30) from cr_yr_tree_name
    ATTRIBUTE yr_leap_year AS NUMBER from cr_yr_leap_year
    DIMENSION cs_id AS VARCHAR2(100) from cr_cs WITH
    HIERARCHY cs_parent AS VARCHAR2(100) from cr_cs_parentrel(cr_cs_hierlist 'STANDARD')
    INHIERARCHY cr_at_inhier
    ATTRIBUTE cs_code AS VARCHAR2(100) from cr_cs_short_description
    ATTRIBUTE cs_desc AS VARCHAR2(150) from cr_cs_long_description
    ATTRIBUTE cs_tree_name AS VARCHAR2(30) from cr_cs_tree_name
    DIMENSION sc_id AS VARCHAR2(100) from cr_sc WITH
    HIERARCHY sc_parent AS VARCHAR2(100) from cr_sc_parentrel(cr_sc_hierlist 'STANDARD')
    INHIERARCHY cr_sc_inhier
    ATTRIBUTE sc_code AS VARCHAR2(150) from cr_sc_short_description
    ATTRIBUTE sc_desc AS VARCHAR2(150) from cs_sc_long_description
    ATTRIBUTE sc_tree_name AS VARCHAR2(30) from cs_sc_tree_name
    DIMENSION cl_id AS VARCHAR2(100) from cr_cl WITH
    HIERARCHY cl_parent AS VARCHAR2(100) from cr_cl_parentrel(cr_cl_hierlist 'STANDARD')
    INHIERARCHY cr_cl_inhier
    ATTRIBUTE cl_code AS VARCHAR2(100) from cr_cl_short_description
    ATTRIBUTE cl_desc AS VARCHAR2(150) from cr_cl_long_description
    ATTRIBUTE cl_tree_name AS VARCHAR2(30) from cr_cl_tree_name
    DIMENSION tn_id AS VARCHAR2(100) from cr_tn WITH
    HIERARCHY tn_parent AS VARCHAR2(100) from cr_tn_parentrel(cr_tn_hierlist 'STANDARD')
    INHIERARCHY cr_tn_inhier
    ATTRIBUTE tn_code AS VARCHAR2(100) from cr_tn_short_description
    ATTRIBUTE tn_desc AS VARCHAR2(150) from cr_tn_long_description
    ATTRIBUTE tn_tree_name AS VARCHAR2(30) from cr_tn_tree_name
    DIMENSION rt_id AS VARCHAR2(100) from cr_rt WITH
    HIERARCHY rt_parent AS VARCHAR2(100) from cr_rt_parentrel(cr_rt_hierlist 'STANDARD')
    INHIERARCHY cr_rt_inhier
    ATTRIBUTE rt_code AS VARCHAR2(100) from cr_rt_short_description
    ATTRIBUTE rt_desc AS VARCHAR2(150) from cr_rt_long_description
    ATTRIBUTE rt_tree_name AS VARCHAR2(30) from cr_rt_tree_name
    DIMENSION rr_id AS VARCHAR2(100) from cr_rr WITH
    HIERARCHY rr_parent AS VARCHAR2(100) from cr_rr_parentrel(cr_rr_hierlist 'STANDARD')
    INHIERARCHY cr_rr_inhier
    ATTRIBUTE rr_code AS VARCHAR2(100) from cr_rr_short_description
    ATTRIBUTE rr_desc AS VARCHAR2(150) from cr_rr_long_description
    ATTRIBUTE rr_tree_name AS VARCHAR2(30) from cr_rr_tree_name
    DIMENSION iy_id AS VARCHAR2(100) from cr_iy WITH
    HIERARCHY iy_parent AS VARCHAR2(100) from cr_iy_parentrel(cr_iy_hierlist 'STANDARD')
    INHIERARCHY cr_iy_inhier
    ATTRIBUTE iy_code AS VARCHAR2(100) from cr_iy_short_description
    ATTRIBUTE iy_desc AS VARCHAR2(150) from cr_iy_long_description
    ATTRIBUTE iy_tree_name AS VARCHAR2(30) from cr_iy_tree_name
    DIMENSION pt_id AS VARCHAR2(100) from cr_pt WITH
    HIERARCHY pt_parent AS VARCHAR2(100) from cr_pt_parentrel(cr_pt_hierlist 'STANDARD')
    INHIERARCHY cr_pt_inhier
    ATTRIBUTE pt_code AS VARCHAR2(100) from cr_pt_short_description
    ATTRIBUTE pt_desc AS VARCHAR2(150) from cr_pt_long_description
    ATTRIBUTE pt_tree_name AS VARCHAR2(30) from cr_pt_tree_name
    DIMENSION ou_id AS VARCHAR2(100) from cr_ou WITH
    HIERARCHY ou_parent AS VARCHAR2(100) from cr_ou_parentrel(cr_ou_hierlist 'STANDARD')
    INHIERARCHY cr_ou_inhier
    ATTRIBUTE ou_code AS VARCHAR2(100) from cr_ou_short_description
    ATTRIBUTE ou_desc AS VARCHAR2(150) from cr_ou_long_description
    ATTRIBUTE ou_tree_name AS VARCHAR2(30) from cr_ou_tree_name
    DIMENSION ge_id AS VARCHAR2(100) from cr_ge WITH
    HIERARCHY ge_parent AS VARCHAR2(100) from cr_ge_parentrel(cr_ge_hierlist 'STANDARD')
    INHIERARCHY cr_ge_inhier
    ATTRIBUTE ge_code AS VARCHAR2(100) from cr_ge_short_description
    ATTRIBUTE ge_desc AS VARCHAR2(150) from cr_ge_long_description
    ATTRIBUTE ge_tree_name AS VARCHAR2(30) from cr_ge_tree_name
    DIMENSION lv_id AS VARCHAR2(100) from cr_lv WITH
    HIERARCHY lv_parent AS VARCHAR2(100) from cr_lv_parentrel(cr_lv_hierlist 'STANDARD')
    INHIERARCHY cr_lv_inhier
    ATTRIBUTE lv_code AS VARCHAR2(100) from cr_lv_short_description
    ATTRIBUTE lv_desc AS VARCHAR2(150) from cr_lv_long_description
    ATTRIBUTE lv_tree_name AS VARCHAR2(30) from cr_lv_tree_name
    ATTRIBUTE lv_state AS VARCHAR2(30) from cr_lv_state
    ATTRIBUTE lv_country AS VARCHAR2(30) from cr_lv_country
    MEASURE cgf_jan AS NUMBER from cr_report_osuc_drcr_amt_01
    MEASURE cgf_feb AS NUMBER from cr_report_osuc_drcr_amt_02
    MEASURE cgf_mar AS NUMBER from cr_report_osuc_drcr_amt_03
    MEASURE cgf_q1 AS NUMBER from cr_report_osuc_drcr_amt_q1
    MEASURE cgf_apr AS NUMBER from cr_report_osuc_drcr_amt_04
    MEASURE cgf_may AS NUMBER from cr_report_osuc_drcr_amt_05
    MEASURE cgf_jun AS NUMBER from cr_report_osuc_drcr_amt_06
    MEASURE cgf_q2 AS NUMBER from cr_report_osuc_drcr_amt_q2
    MEASURE cgf_jul AS NUMBER from cr_report_osuc_drcr_amt_07
    MEASURE cgf_aug AS NUMBER from cr_report_osuc_drcr_amt_08
    MEASURE cgf_sep AS NUMBER from cr_report_osuc_drcr_amt_09
    MEASURE cgf_q3 AS NUMBER from cr_report_osuc_drcr_amt_q3
    MEASURE cgf_oct AS NUMBER from cr_report_osuc_rcr_amt_10
    MEASURE cgf_nov AS NUMBER from cr_report_osuc_drcr_amt_11
    MEASURE cgf_dec AS NUMBER from cr_report_osuc_drcr_amt_12
    MEASURE cgf_q4 AS NUMBER from cr_report_osuc_drcr_amt_q4
    MEASURE cgf_fy AS NUMBER from cr_report_osuc_drcr_amt_fy
    MEASURE cgf_jan_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_01
    MEASURE cgf_feb_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_02
    MEASURE cgf_mar_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_03
    MEASURE cgf_q1_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_q1
    MEASURE cgf_apr_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_04
    MEASURE cgf_may_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_05
    MEASURE cgf_jun_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_06
    MEASURE cgf_q2_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_q2
    MEASURE cgf_jul_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_07
    MEASURE cgf_aug_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_08
    MEASURE cgf_sep_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_09
    MEASURE cgf_q3_qtd AS NUMBER from cr_report_drcr_amt_qtd_q3
    MEASURE cgf_oct_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_10
    MEASURE cgf_nov_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_11
    MEASURE cgf_dec_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_12
    MEASURE cgf_q4_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_q4
    MEASURE cgf_fy_qtd AS NUMBER from cr_report_osuc_drcr_amt_qtd_fy
    MEASURE cgf_jan_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_01
    MEASURE cgf_feb_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_02
    MEASURE cgf_mar_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_03
    MEASURE cgf_q1_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_q1
    MEASURE cgf_apr_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_04
    MEASURE cgf_may_ytd AS NUMBER from cr_report_drcr_amt_ytd_05
    MEASURE cgf_jun_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_06
    MEASURE cgf_q2_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_q2
    MEASURE cgf_jul_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_07
    MEASURE cgf_aug_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_08
    MEASURE cgf_sep_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_09
    MEASURE cgf_q3_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_q3
    MEASURE cgf_oct_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_10
    MEASURE cgf_nov_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_11
    MEASURE cgf_dec_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_12
    MEASURE cgf_q4_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_q4
    MEASURE cgf_fy_ytd AS NUMBER from cr_report_osuc_drcr_amt_ytd_fy
    MEASURE cgf_drcr_select AS NUMBER from cr_report_osuc_drcr_select
    ROW2CELL olap_calc
    ->SHOW CR_DRCR_REP_FIN
    NA
    ->SHOW CR_DRCR_REP_LM_FIN
    DIMENSION yr_id AS VARCHAR2(100) from cr_yr WITH
    HIERARCHY yr_parent AS VARCHAR2(100) from cr_yr_parentrel(cr_yr_hierlist 'STANDARD')
    INHIERARCHY cr_yr_inhier
    ATTRIBUTE yr_desc AS VARCHAR2(40) from cr_yr_long_description
    ATTRIBUTE yr_tree_name AS VARCHAR2(30) from cr_yr_tree_name
    ATTRIBUTE yr_leap_year AS NUMBER from cr_yr_leap_year
    DIMENSION cs_id AS VARCHAR2(100) from cr_cs WITH
    HIERARCHY cs_parent AS VARCHAR2(100) from cr_cs_parentrel(cr_cs_hierlist 'STANDARD')
    INHIERARCHY cr_at_inhier
    ATTRIBUTE cs_code AS VARCHAR2(100) from cr_cs_short_description
    ATTRIBUTE cs_desc AS VARCHAR2(150) from cr_cs_long_description
    ATTRIBUTE cs_tree_name AS VARCHAR2(30) from cr_cs_tree_name
    DIMENSION id_id AS VARCHAR2(100) from cr_id WITH
    HIERARCHY id_parent AS VARCHAR2(100) from cr_id_parentrel(cr_id_hierlist 'STANDARD')
    INHIERARCHY cr_id_inhier
    ATTRIBUTE id_code AS VARCHAR2(100) from cr_id_short_description
    ATTRIBUTE id_desc AS VARCHAR2(150) from cr_id_long_description
    ATTRIBUTE id_tree_name AS VARCHAR2(30) from cr_id_tree_name
    DIMENSION iy_id AS VARCHAR2(100) from cr_iy WITH
    HIERARCHY iy_parent AS VARCHAR2(100) from cr_iy_parentrel(cr_iy_hierlist 'STANDARD')
    INHIERARCHY cr_iy_inhier
    ATTRIBUTE iy_code AS VARCHAR2(100) from cr_iy_short_description
    ATTRIBUTE iy_desc AS VARCHAR2(150) from cr_iy_long_description
    ATTRIBUTE iy_tree_name AS VARCHAR2(30) from cr_iy_tree_name
    DIMENSION pt_id AS VARCHAR2(100) from cr_pt WITH
    HIERARCHY pt_parent AS VARCHAR2(100) from cr_pt_parentrel(cr_pt_hierlist 'STANDARD')
    INHIERARCHY cr_pt_inhier
    ATTRIBUTE pt_code AS VARCHAR2(100) from cr_pt_short_description
    ATTRIBUTE pt_desc AS VARCHAR2(150) from cr_pt_long_description
    ATTRIBUTE pt_tree_name AS VARCHAR2(30) from cr_pt_tree_name
    DIMENSION ou_id AS VARCHAR2(100) from cr_ou WITH
    HIERARCHY ou_parent AS VARCHAR2(100) from cr_ou_parentrel(cr_ou_hierlist 'STANDARD')
    INHIERARCHY cr_ou_inhier
    ATTRIBUTE ou_code AS VARCHAR2(100) from cr_ou_short_description
    ATTRIBUTE ou_desc AS VARCHAR2(150) from cr_ou_long_description
    ATTRIBUTE ou_tree_name AS VARCHAR2(30) from cr_ou_tree_name
    DIMENSION ge_id AS VARCHAR2(100) from cr_ge WITH
    HIERARCHY ge_parent AS VARCHAR2(100) from cr_ge_parentrel(cr_ge_hierlist 'STANDARD')
    INHIERARCHY cr_ge_inhier
    ATTRIBUTE ge_code AS VARCHAR2(100) from cr_ge_short_description
    ATTRIBUTE ge_desc AS VARCHAR2(150) from cr_ge_long_description
    ATTRIBUTE ge_tree_name AS VARCHAR2(30) from cr_ge_tree_name
    DIMENSION lv_id AS VARCHAR2(100) from cr_lv WITH
    HIERARCHY lv_parent AS VARCHAR2(100) from cr_lv_parentrel(cr_lv_hierlist 'STANDARD')
    INHIERARCHY cr_lv_inhier
    ATTRIBUTE lv_code AS VARCHAR2(100) from cr_lv_short_description
    ATTRIBUTE lv_desc AS VARCHAR2(150) from cr_lv_long_description
    ATTRIBUTE lv_tree_name AS VARCHAR2(30) from cr_lv_tree_name
    ATTRIBUTE lv_state AS VARCHAR2(30) from cr_lv_state
    ATTRIBUTE lv_country AS VARCHAR2(30) from cr_lv_country
    MEASURE cgf_jan AS NUMBER from cr_report_drcr_amt_01
    MEASURE cgf_feb AS NUMBER from cr_report_fin_drcr_amt_02
    MEASURE cgf_mar AS NUMBER from cr_report_fin_drcr_amt_03
    MEASURE cgf_q1 AS NUMBER from cr_report_fin_drcr_amt_q1
    MEASURE cgf_apr AS NUMBER from cr_report_fin_drcr_amt_04
    MEASURE cgf_may AS NUMBER from cr_report_fin_drcr_amt_05
    MEASURE cgf_jun AS NUMBER from cr_report_fin_drcr_amt_06
    MEASURE cgf_q2 AS NUMBER from cr_report_fin_drcr_amt_q2
    MEASURE cgf_jul AS NUMBER from cr_report_fin_drcr_amt_07
    MEASURE cgf_aug AS NUMBER from cr_report_fin_drcr_amt_08
    MEASURE cgf_sep AS NUMBER from cr_report_fin_drcr_amt_09
    MEASURE cgf_q3 AS NUMBER from cr_report_fin_drcr_amt_q3
    MEASURE cgf_oct AS NUMBER from cr_report_fin_drcr_amt_10
    MEASURE cgf_nov AS NUMBER from cr_report_fin_drcr_amt_11
    MEASURE cgf_dec AS NUMBER from cr_report_fin_drcr_amt_12
    MEASURE cgf_q4 AS NUMBER from cr_report_fin_drcr_amt_q4
    MEASURE cgf_fy AS NUMBER from cr_report_fin_drcr_amt_fy
    MEASURE cgf_jan_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_01
    MEASURE cgf_feb_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_02
    MEASURE cgf_mar_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_03
    MEASURE cgf_q1_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_q1
    MEASURE cgf_apr_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_04
    MEASURE cgf_may_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_05
    MEASURE cgf_jun_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_06
    MEASURE cgf_q2_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_q2
    MEASURE cgf_jul_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_07
    MEASURE cgf_aug_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_08
    MEASURE cgf_sep_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_09
    MEASURE cgf_q3_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_q3
    MEASURE cgf_oct_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_10
    MEASURE cgf_nov_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_11
    MEASURE cgf_dec_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_12
    MEASURE cgf_q4_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_q4
    MEASURE cgf_fy_qtd AS NUMBER from cr_report_fin_drcr_amt_qtd_fy
    MEASURE cgf_jan_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_01
    MEASURE cgf_feb_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_02
    MEASURE cgf_mar_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_03
    MEASURE cgf_q1_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_q1
    MEASURE cgf_apr_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_04
    MEASURE cgf_may_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_05
    MEASURE cgf_jun_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_06
    MEASURE cgf_q2_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_q2
    MEASURE cgf_jul_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_07
    MEASURE cgf_aug_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_08
    MEASURE cgf_sep_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_09
    MEASURE cgf_q3_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_q3
    MEASURE cgf_oct_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_10
    MEASURE cgf_nov_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_11
    MEASURE cgf_dec_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_12
    MEASURE cgf_q4_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_q4
    MEASURE cgf_fy_ytd AS NUMBER from cr_report_fin_drcr_amt_ytd_fy
    MEASURE cgf_drcr_select AS NUMBER from cr_report_fin_drcr_select
    ROW2CELL olap_calc

    Hi Sri,
    Initially, am glad for the response.
    Though I have maintained the region keys with the city names with the right letters, I couldn't see the newer 2 cities of the country on the map..
    I guess I should find alternatives to embed new maps vie some other technologies or Add-ons...
    I greatly appreciatte with any deliverables...
    Best.
    Eddy.

  • Issue with 10g Server Name in HTTPServletRequest

    Hi,
    We found an issue 10g (Sol8). When we intercept the HTTP request through a J2EE Filter, we see that :
    Server name : hostname
    HOST header : hostname.domainname:port
    Why is the Server Name not same as "hostname.domainname" ?
    In 9iAS, the "Server Name" correctly matches the fully qualified hostname that is present in HOST header.
    Any feedback on this issue will be greatly appreciated.
    Thanks,
    Krishnendu

    You have to create a workbook to do this.
    Refresh your query/report. In Bex analyser, there is one toolbar named BEx design toolbox, If you are not able to see it in analyser, right click on the toolbar space of BEx analyser and click on BEx design toolbox. Here, goto to design mode, by clicking on a sysbol like 'A'. after that place the curser where you want to see the Query description. and click on insert text (T) in BEx toolbox. click on it and check "Query description" in constant tab. in the general tab you need to assign a dataprovider, for that assign your query name in workbook settings (in Bex design toolbox). also check the "display caption" in general tab.
    Pravender

  • Enq: TX - row lock contention problem

    Hi ,
    Db version 10.2.0.4
    os solaris.
    i have upgraded my database from 9.2.0.4 to 10.2.0.4 by using exp/imp as my database is small.
    I have created new instance of 10g and changed parameter values as 9i(as required). then imported from 9i to 10g instance.
    After importing in 10g instance we are face application wide performance problem..the response time of the applicatoin was very slow...
    i have taken awr report of various times and have seeen
    SELECT puid,ptimestamp FROM PPOM_OBJECT WHERE puid IN (:1) FOR UPDATE
    this query is causing the problem..enq: TX - row lock contention
    Cache Sizes
    ~~~~~~~~~~~                       Begin        End
                   Buffer Cache:       756M       756M  Std Block Size:         8K
               Shared Pool Size:       252M       252M      Log Buffer:     1,264K
    Load Profile
    ~~~~~~~~~~~~                            Per Second       Per Transaction
                      Redo size:              2,501.54              3,029.25
                  Logical reads:              2,067.79              2,504.00
                  Block changes:                 17.99                 21.78
                 Physical reads:                  0.02                  0.03
                Physical writes:                  0.41                  0.50
                     User calls:                140.74                170.44
                         Parses:                139.55                168.99
                    Hard parses:                  0.01                  0.01
                          Sorts:                 10.65                 12.89
                         Logons:                  0.32                  0.38
                       Executes:                139.76                169.24
                   Transactions:                  0.83
      % Blocks changed per Read:    0.87    Recursive Call %:    17.60
    Rollback per transaction %:    0.00       Rows per Sort:    16.86
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                Buffer Nowait %:  100.00       Redo NoWait %:  100.00
                Buffer  Hit   %:  100.00    In-memory Sort %:  100.00
                Library Hit   %:  100.03        Soft Parse %:  100.00
             Execute to Parse %:    0.15         Latch Hit %:   99.89
    Parse CPU to Parse Elapsd %:   93.19     % Non-Parse CPU:   94.94
    Shared Pool Statistics        Begin    End
                 Memory Usage %:   86.73   86.55
        % SQL with executions>1:   90.99   95.33
      % Memory for SQL w/exec>1:   79.15   90.58
    Top 5 Timed Events                                         Avg %Total
    ~~~~~~~~~~~~~~~~~~                                        wait   Call
    Event                                 Waits    Time (s)   (ms)   Time Wait Class
    CPU time                                            397          86.3
    enq: TX - row lock contention           508          59    115   12.7 Applicatio
    log file sync                         2,991           5      2    1.1     Commit
    log file parallel write               3,238           5      2    1.1 System I/O
    SQL*Net more data to client          59,871           4      0    1.0    Network
    ^LTime Model Statistics              DB/Inst: WGMUGPR2/wgmugpr2  Snaps: 706-707
    -> Total time in database user-calls (DB Time): 460.5s
    -> Statistics including the word "background" measure background process
       time, and so do not contribute to the DB time statistic
    -> Ordered by % or DB time desc, Statistic name
                                                                       Avg
                                                 %Time  Total Wait    wait     Waits
    Event                                 Waits  -outs    Time (s)    (ms)      /txn
    enq: TX - row lock contentio            508     .0          59     115       0.2
    log file sync                         2,991     .0           5       2       1.0
    log file parallel write               3,238     .0           5       2       1.1
    SQL*Net more data to client          59,871     .0           4       0      20.1
    control file parallel write           1,201     .0           1       1       0.4
    SQL*Net more data from clien          3,393     .0           1       0       1.1
    SQL*Net message to client           509,864     .0           1       0     170.9
    os thread startup                         3     .0           1     196       0.0
    db file parallel write                  845     .0           1       1       0.3
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
      Elapsed      CPU                  Elap per  % Total
      Time (s)   Time (s)  Executions   Exec (s)  DB Time    SQL Id
            59          1        1,377        0.0    12.9 bwnt27fp0z3gm
    Module: syncdizio_op@snstr09 (TNS V1-V3)
    SELECT puid,ptimestamp FROM PPOM_OBJECT WHERE puid IN (:1) FOR UPDATE
            41         41          459        0.1     8.9 8cdswsp7cva2h
    Module: syncdizio_op@snstr09 (TNS V1-V3)
    select rpad(argument_name, 32, ' ') || in_out || ' ' || nvl(type_subname, data_t
    ype) info from user_arguments where package_name IS NULL and object_name = uppe
    r(:1) and argument_name is not null order by object_name, position
            39         38        7,457        0.0     8.4 271hn6sgra2d8
    Module: syncdizio_op@snstr09 (TNS V1-V3)
    SELECT DISTINCT t_0.puid FROM PIMANTYPE t_0 WHERE (UPPER(t_0.ptype_name) = UPPER
    (:1))
            23         22          459        0.0     4.9 g92t08k78tgrw
    Module: syncdizio_op@snstr09 (TNS V1-V3)
    SELECT PIMANTYPE.puid, ptimestamp, ppid, rowning_siteu, rowning_sitec, pis_froze
    n, ptype_class, ptype_name FROM PPOM_OBJECT, PIMANTYPE WHERE PPOM_OBJECT.puid =
    (PIMANTYPE.puid)
            22         22      158,004        0.0     4.9 chqpmv9c05ghq
    Module: syncdizio_op@snstr09 (TNS V1-V3)
    SELECT puid,ptimestamp FROM PPOM_OBJECT WHERE puid = :1
            17         17        2,294        0.0     3.7 3n5trh11n1x8w
    Module: syncdizio_op@snstr09 (TNS V1-V3)
    SELECT PTYPECANNEDMETHOD.puid, ptimestamp, ppid, rowning_siteu, rowning_sitec, p
    is_frozen, pobject_desc, psecure_bits,VLA_344_5, pmethod_name, pmsg_name, ptype_
    name, pexec_seq, paction_type FROM PPOM_OBJECT,PBUSINESSRULE, PTYPECANNEDMETHOD
    WHERE PTYPECANNEDMETHOD.puid IN (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,in 9i there is a parameter ENQUEUE_RESOURCES but in 10g relese 2 its got obsoleted....
    am new to performace tunning please advice me....!
    Regards
    Vamshi

    The CBO has changed substantially between 9.2.x and 10.2.x. Pl see MOS Doc 754931.1 (Cost Based Optimizer - Common Misconceptions and Issues - 10g and Above). Pl verify that statistics have been gathered and are current - pl see MOS Doc 605439.1 (Master Note: Recommendations for Gathering Optimizer Statistics on 10g).
    Looking at your output, it seems to me that the database is entirely CPU-bound. 86.3% of time is spent on CPU. The last 5 SQL statements in the output, all of the elapsed time is spent on CPU.
    Pl post your init.ora parameters, along with your hardware specs. This question might be more appropriate in the "Database - General" forum.
    HTH
    Srini

  • Explain plan cost it increases after migrating Oracle 9.2.0 to 10.2.0.3

    Hi:
    Recently the migration was made, we are testing (I'm developer) the performance in some querys, but the majority is but slow,I do not understand the reason because the new equipment has processing capacity much more.
    for example , a report , in 9i it is executed in 45 segs, in 10G it is executed in 10 minutes!!!
    Another example: the next explain plan, it's the same query and the same parameters . In oracle 9i COST=799 In Oracle 10G COST=2337
    What happens? Any idea?
    In oracle 9i COST=799
    SELECT STATEMENT Hint=HINT: FIRST_ROWS 1 799
    SORT GROUP BY 1 74 799
    VIEW 1 74 786
    SORT GROUP BY 1 100 786
    TABLE ACCESS BY INDEX ROWID SMRPCMT 1 27 1
    NESTED LOOPS 1 100 774
    NESTED LOOPS 3 219 773
    NESTED LOOPS 3 177 772
    NESTED LOOPS 3 171 771
    NESTED LOOPS 3 123 770
    TABLE ACCESS BY INDEX ROWID SFBETRM 7 K 73 K 22
    INDEX RANGE SCAN SFBETRM_KEY_INDEX2 7 K 24
    TABLE ACCESS BY INDEX ROWID SGBSTDN 1 31 1
    INDEX UNIQUE SCAN PK_SGBSTDN 1
    TABLE ACCESS BY INDEX ROWID STVMAJR 1 16 1
    INDEX UNIQUE SCAN PK_STVMAJR 1
    TABLE ACCESS BY INDEX ROWID STVCAMP 1 2 1
    INDEX UNIQUE SCAN PK_STVCAMP 1
    INDEX RANGE SCAN SMRPATR_KEY_INDEX 1 14 1
    INDEX RANGE SCAN SMRPCMT_KEY_INDEX 1 1
    In Oracle 10G COST=2337
    SELECT STATEMENT Hint=FIRST_ROWS 1 2337
    SORT GROUP BY 1 66 2337
    VIEW 1 66 2336
    SORT GROUP BY 1 158 2336
    NESTED LOOPS 1 158 2335
    NESTED LOOPS 1 142 2334
    NESTED LOOPS 1 140 2333
    NESTED LOOPS 1 126 2332
    NESTED LOOPS 3 297 2330
    TABLE ACCESS BY INDEX ROWID SFBETRM 7 K 73 K 67
    INDEX RANGE SCAN SFBETRM_KEY_INDEX2 7 K 6
    TABLE ACCESS BY INDEX ROWID SGBSTDN 1 89 1
    INDEX UNIQUE SCAN PK_SGBSTDN 1 1
    TABLE ACCESS BY INDEX ROWID SMRPCMT 1 27 1
    INDEX RANGE SCAN SMRPCMT_KEY_INDEX 1 1
    INDEX RANGE SCAN SMRPATR_KEY_INDEX 1 14 1
    TABLE ACCESS BY INDEX ROWID STVCAMP 1 2 1
    INDEX UNIQUE SCAN PK_STVCAMP 1 1
    TABLE ACCESS BY INDEX ROWID STVMAJR 1 16 1
    INDEX UNIQUE SCAN PK_STVMAJR 1 1
    Thank you so much by advance.
    (sorry by my bad english)

    "Cost", as determined by the CBO, is a relative number, not an absolute number. A "cost" of 799 in 9i is not the same as a "cost" of 799 in 10g.
    The CBO is 10g is substantially different as compared to 9i. Performance issues encountered after the upgrade are not uncommon. Pl refer to these MOS Doc to help troubleshoot your issue -
    754931.1 - Cost Based Optimizer - Common Misconceptions and Issues - 10g and Above
    466181.1 - 10g Upgrade Companion
    I would also recommend you upgrade to 10.2.0.4, as it is the latest and most stable version of 10g.
    HTH
    Srini

  • Upgrade issues OBIEE 10g to 11g along with OBIA upgrade

    Hi,
    I have to upgrade OBIEE 10.1.3.4.1 to OBIEE 11.1.1.5 along with OBIA 7.9.6.1 to 7.9.6.5(Informatica 8.6.1 to 9.0.1) at my client location and I have very little knowledge on it. and want to know/have help documents for upgrade.
    And if anyone in the forums involved in upgrade please list the errors/issues occured during upgrade and after upgrade.
    1. OBIEE 10g to 11g upgrade issues??
    2. OBIA OBIA 7.9.6.1 to 7.9.6.5 upgrade issues along with 10g to 11g??
    3. Informatica 8.6.1 to 9.0.1 upgrade issues??
    4. DAC upgrade issues??
    any response for my questions is appreciated.
    Thanks
    Jay.
    Edited by: Jay on Apr 11, 2012 9:11 AM

    HI Jay,
    We cannot explained thread list here, If you get any errors plz post me,will try to help out.
    This is oracle document link - This document has given step by step with screen shots upgration for 10g to 11g ,Please refer the below link.
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/bi11115/upgrade/upgrade_to_11g.htm
    http://obieemanu.blogspot.in/2011/05/rpd-upgration-from-10g-to-11g.html
    http://docs.oracle.com/cd/E21764_01/upgrade.1111/e10125/ua_command_line.htm#ASMAS149
    Award points it is useful.
    Thanks,
    satya

  • Report Navigation Issue after upgrading from 10g to 11g

    Hi Experts
    I have recently upgarded my solution from 10g to 11g. Issue is when I click on column value for navigation it doen't navigate the display remains unchanged
    1) I have created new dashboard and placed this report in new dashboard the navigation works fine.
    2) I have created new report and placed that report in old dashboard it doesn't work
    why is it so I undertand that there is problem with Dashboard and not with report but I am unable to figure it out
    what can be the problem? any suggestions
    Thanks
    Sameer

    Hi Experts
    I have recently upgarded my solution from 10g to 11g. Issue is when I click on column value for navigation it doen't navigate the display remains unchanged
    1) I have created new dashboard and placed this report in new dashboard the navigation works fine.
    2) I have created new report and placed that report in old dashboard it doesn't work
    why is it so I undertand that there is problem with Dashboard and not with report but I am unable to figure it out
    what can be the problem? any suggestions
    Thanks
    Sameer

  • Issues after upgrading the Obiee from 10g to 11g

    Hi all,
    We have recently upgraded our rpd from 10g to 11g. And a part of Webcatlog is being upgraded. We observe issues with the upgraded reports.
    As the for the report prompts the script was taking lot of time. And the browser pop's a message either to 'stop' or 'continue'.
    The report is taking lot of time to run than the usual 10g environment. And the path BP1 is also applied for the 11g environment.
    Please suggest a troubleshoot method to overcome the issues with the upgraded reports.
    Thank you,
    Chris.

    Check this pdf file
    http://www.rittmanmead.com/files/biforum2012/ranka_performance.pdf
    If helps pls mark

  • Database migrated from Oracle 10g to 11g Discoverer report performance issu

    Hi All,
    We are now getting issue in Discoverer Report performance as the report is keep on running when database got upgrade from 10g to 11g.
    In database 10g the report is working fine but the same report is not working fine in 11g.
    The query i have changed as I have passed the date format TO_CHAR("DD-MON-YYYY" and removed the NVL & TRUNC function from the existing query.
    The report is now working fine in Database 11g backhand but when I am using the same query in Discoverer it is not working and report is keep on running.
    Please advise.
    Regards,

    Pl post exact OS, database and Discoverer versions. After the upgrade, have statistics been updated ? Have you traced the Discoverer query to determine where the performance issue is ?
    How To Find Oracle Discoverer Diagnostic and Tracing Guides [ID 290658.1]
    How To Enable SQL Tracing For Discoverer Sessions [ID 133055.1]
    Discoverer 11g: Performance degradation after Upgrade to Database 11g [ID 1514929.1]
    HTH
    Srini

  • Issues expected in oracle 9i/10g to 11g upgrade

    Hi.
    We are planning to migrate some 95 odd applications from Oracle 9i/10g to 11g. The upgrade method we are planning to use is to setup 11g target servers and move databases from source to target using import/export. Then do the necessary changes in the app code and connect the application to the new target server and test.
    The source OS may be RHEL 3/4/5 or Solaris 8 and target OS will be RHEL 4/5 or Solaris 10.
    My questions are:
    1. What can be the expected database side issues possible while moving the structure+data+views/sps etc from old version to new version using import/export.
    2. How much time may it take to move the database from source to target for say a 100GB database?
    3. Will the change of OS have any implications on the movement from source to target?
    4. What are the application side issues possible considering that most apps use odbc/jdbc to connect to the datastores?
    5. Can any application side inline queries be affected?
    6. Will there be any changes to the column data types from 9i/10g to 11g which can impact the code?
    Thanks,
    Vipul Shah
    Edited by: 885362 on Sep 15, 2011 1:31 AM
    Edited by: 885362 on Sep 15, 2011 1:39 AM

    1. What can be the expected database side issues possible while moving the structure+data+views/sps etc from old version to new version using import/export. If you complete the steps in (Interoperability Notes Oracle EBS 11i with Oracle Database 11gR2 (11.2.0.2) [ID 881505.1]) please see these docs.
    After RDBMS Upgrade To 11gR2 In An Applications 11i Environment: ORA-20000 DRG-100[51021],[Drwaf.C],[1605],[],[] ORA-4088 [ID 1104963.1]
    Running adbldxml.pl On DB Node Fails With Unsatisfiedlinkerror Exception Loading Native Library: njni11 [ID 1183373.1]
    Adstats.sql Fails While Upgrading Database to 11gR2 [ID 1232853.1]
    Ad_parallel_compile: Ora-01031: Insufficient Privileges in adadmin / re-create grants and synonyms for APPS schema after upgrade from 10gR2 to 11gR2 [ID 1148264.1]
    Ad_parallel_compile: Ora-01031: Insufficient Privileges in adadmin / re-create grants and synonyms for APPS schema after upgrade from 10gR2 to 11gR2 [ID 1148264.1]
    2. How much time may it take to move the database from source to target for say a 100GB database? Depends on many factors -- Try this on a test instance with similar hardware configuration and setup to production to estimate the time.
    3. Will the change of OS have any implications on the movement from source to target?No, but you may relink the executable files -- How to Relink Oracle Database Software on UNIX [ID 131321.1]
    4. What are the application side issues possible considering that most apps use odbc/jdbc to connect to the datastores? If you run AutoConfig with no errors when there should be no issues with ODBC/JDBC connectivity.
    5. Can any application side inline queries be affected? It should not be affected expect if you custom code use some features which are no longer available in 11g database.
    6. Will there be any changes to the column data types from 9i/10g to 11g which can impact the code?Typically no, however you need to do full and proper testing to verify.
    Thanks,
    Hussein

  • Arabic -English Report direct printing issues in Oracle 10g

    Hi,
    I am working on Oracle database 10g and application server 10g on windows 2008 platform in Arabic Environment with the following settings.
    -- Oracle database NLS_Characterset as AR8IS08859P6
    --Oracle Database registery NLS_LANG as ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256
    --Application Server registery NLS_LANG as ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256
    -- font subsetting in uifont.ali for PDF
    -- set Reports_BIDI_ALGORITHM = UNICODE
    Now I am facing an issue in connection with arabic reports:  When user enter the narration in the DATA ENTRY form like     ' AP600N حبر طابعة ريكو اسود   '      writing from right to left.
    it's storing in the database as '  حبر طابعة ريكو اسود AP600N '    
    Again when its querying in the form, it comes properly as it's written.
    Even its coming in the bitmap report in screen as it's written.   But when I am printing directly to printer in bitmap mode, its coming as its in the database.
    Is there any way to get the print as they wrote in the screen?
    Also the Character mode printing comes in left to right  in screen as well as in printer.
    Please help me...
    with thanks & regards,
    BJ

    Don't tell so much.
    Check the following link
    1. PDF Reports in Unicode / Arabic &amp;amp; English | Oracle Community
    2. OraFAQ Forum: Reports &amp; Discoverer &raquo; Report in Arabic(pdf) (merged)
    3. Arabic Report generated to text file giving Jun... | Oracle Community
    Hope this helps
    Hamid

  • Margin Issue(pdf) in migrating 6i report to 10g

    Hi,
    After I migrated the report from 6i to 10g, I found the report printing issue comes out. Every report printing is not same as 6i, move the data to left and top about half cm. I searched this forum, I got clue was i can add reports_add_hwmargin into registry, then I can add printer margin into the report. I found it works when i run the reprot from 10g builder. But when I generated it into pdf format through IDS then print out, the problem is still there. How can add printer margin into report with pdf format?
    My environment is
    app server 10g
    report 10g,
    windows xp
    Thanks in advance.
    appcat

    Try a Compile All ( Ctrl - K ), then Ctrl - T.
    Not sure about XP, but in Vista, the 10g Builder and batch compiler will crash if a PLL Library is not available when the form is compiled.
    Make sure the PLL Library is available, and all its objects compile in the 10g setup.
    If that does not help, then try a semicolon-to-semicolon replace all, then save the fmb. Then restart the Forms Builder, and open the fmb again, and try compiling.
    Here is an old link describing the issue:
        Re: FMB size shrinks dramatically

Maybe you are looking for

  • CLIENT_HOST error in forms

    Hi , I am calling CLIENT_HOST command in forms in linux machine and passing an exe file as the parameter, but this client_host command is showing the below error on execution : CLIENT_HOST command is part of WEBUTIL.pll file and this file is attached

  • Problem in updating to the database with JBoss

    Hi, We have created a datasource in JBoss to connect to a certain database. The data source works fine when retrieving the data from the database but fails when we try to update or insert the data. Below is part of the error trace: Caused by: javax.n

  • I have a 17" computer, and I'dlike to use the entire screen to view, but in order to do so, I have to press Control + several times at each site.

    I have a 17" computer, and I'dlike to use the entire screen to view, but in order to do so, I have to press Control + several times at each site. I don't want to use "full screen." Does anyone know how to set a default to maximize the screen? For som

  • Style overflow problem

    Hi, I used to 3 months ago that kind of declaration <div style="overflow:auto;"> - header of IR </div> - Footer of IRand it was working fine - today in firefox 3.5 it works fine only when I'll specifie width and height (but only body of region, not a

  • Recursion in XML

    Hi, I hope it's not a too silly question... I am building an organizational chart using flash and XML. I want to present 2 levels at the time (manager and subordinates), with an icon next to each subordinate that also has subordinates. When this icon