Subquery not working in 11g

Hi all,
We have an 11.1.0.7 instance on SLES10. And when we run following sql, it crashes.
select decode(sum(pos),0,'H',decode(sum(hareket),0,'P','T')) from
(select count(1) pos,0 hareket from cost.pos_hareket p where
p.onay_eh='E' and p.is_merkez_kod='70' and
p.tarih>='28.04.2011'
union
select 0,count(1) from otel.hareket h where h.tarih>='28.04.2011' and
h.is_merkezi_kod='70' and h.belge_no not in (select
p.belge_no from cost.pos_hareket p where p.onay_eh='E' and
p.is_merkez_kod='70' and p.tarih>='28.04.2011' union select
o.belge_no from otel.onburo_manuel_extra o where
o.is_merkez_kod='70'));
But when we run following sql, it is ok.
select decode(sum(pos),0,'H',decode(sum(hareket),0,'P','T')) from
(select count(1) pos,0 hareket from cost.pos_hareket p where
p.onay_eh='E' and p.is_merkez_kod='70' and
p.tarih>='28.04.2011'
union
select 0,count(1) from otel.hareket h where h.tarih>='28.04.2011' and
h.is_merkezi_kod='70' and (h.belge_no not in (select
p.belge_no from cost.pos_hareket p where p.onay_eh='E' and
p.is_merkez_kod='70' and p.tarih>='28.04.2011') or h.belge_no not in (select
o.belge_no from otel.onburo_manuel_extra o where
o.is_merkez_kod='70')));

ilke_altinpulluk wrote:
the query hold up very very long time.In that case the obvious thing to do would (normally) be to run the faster query.
In your case I am not keen on suggesting this as the two queries don't appear to be logically equivalent.
They are hard to read in the form you've posted but one appears to be:
select ....
where something not in (
    select ...
    union
    select ...
)While the second is:
select ....
where something not in (
    select ...
or something not in (
    select ...
)If my interpretation is correct, then that OR should be an AND for the queries to be logically the same.
In the absence of any further information, I think it's likely that the first query is able to unnest the subquery, while the second query has to operate the two subqueries as filter subqueries - and the nature of your data, indexing, etc. makes one plan much more efficient than the other.
You could try an /*+ no_unnest */ hint in the subquery of the first query to see what impact that might have.
Regards
Jonathan Lewis

Similar Messages

  • Dbms_metadata.get_ddl not working in 11g

    Hi All,
    I need a quick help from you. Following is not working in 11g.
    dbms_metadata.get_ddl( 'MATERIALIZED_VIEW', Mview_name, owner )
    It is throwing me an error saying the Materialized view does not exist, though its exist.
    Please let me know, what is wrong here with 11g.

    Please let me know, what is wrong here with 11g.No problem here: Can you reproduce these steps:
    SQL> select * from v$version where rownum = 1
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production         
    1 row selected.
    SQL> create materialized view mv_dummy as select * from dual
    Materialized View created.
    SQL> select dbms_metadata.get_ddl ('MATERIALIZED_VIEW', 'MV_DUMMY', user) ddl from dual
    DDL                                                                            
      CREATE MATERIALIZED VIEW "MICHAEL"."MV_DUMMY" ("DUMMY")                      
      ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOG
    GING                                                                           
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645        
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)             
      TABLESPACE "USERS"                                                           
      BUILD IMMEDIATE                                                              
      USING INDEX                                                                  
      REFRESH FORCE ON DEMAND                                                      
      USING DEFAULT LOCAL ROLLBACK SEGMENT                                         
      USING ENFORCED CONSTRAINTS DISABLE QUERY REWRITE                             
      AS select * from dual                                                        
    1 row selected.?

  • Copy database file local folder is not working in 11g

    Hi,
    i am working on oracle forms 11g.
    the follwoing code is not working. could any one guide me to reslove the problem.
    declare
         lv_file_name varchar2(100);
         lv_command varchar2(200);
    begin
         lv_file_name := substr(:parameter.image_path,instr(:parameter.image_path,'\',-1)+1);
         lv_command := 'cmd /c copy_file '||:parameter.image_path ||' s:\temp\deposit\scanned_image\'||lv_file_name;
         client_host(lv_command);
         if form_success then
              message('saved..');
         else
    message('file copy process failed..');
         end if;
    end;

    Also, copy to the s: drive might not work. In your copy_file script you need to define the s: drive first
    net use s: \\some_shareor use UNC notation
    lv_command := 'cmd /c copy_file '||:parameter.image_path ||' \\some_share:\temp\deposit\scanned_image\'||lv_file_name;Oh, and use full path to copy_file:
    lv_command := 'cmd /c c:\some_directory\copy_file.bat '|| etc.;Edited by: InoL on Mar 11, 2013 9:20 AM

  • Copy expression not working in 11g PS1

    i Hve used a copy expression inside the email body.It works fine in 11g R1 but it gives the below error in 11gps1
    http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure
    Fault
    lbpelFault><faultType> <message>0</message></faultType><selectionFailure
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"></selectionFailure></bpelFault>http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailur
    at
    com.collaxa.cube.xml.xpath.functions.bpws.GetVariableDataFunction.call(GetVari
    ableDataFunction.java:132) at
    com.collaxa.cube.xml.xpath.BPELXPathFunctionWrapper.evaluate(BPELXPathFunctionWrapper:java:78)
    copy expression used
    concat(string('This mail was sent to you from Middleware FUSION to create SR for the below mentioned Sales form details:&#x0A;&#x0A;<BR>Time : '), xpath20:current-dateTime(), string('&#x0A;<BR><BR>First Given Name : '), bpws:getVariableData('VariableECMSchema','/ECM/FirstGivenName'), string('&#x0A;<BR>Last Name : '), bpws:getVariableData('VariableECMSchema','/ECM/LastName'), string('&#x0A;<BR>Company Name : '), bpws:getVariableData('VariableECMSchema','/ECM/CompanyName'), string('&#x0A;<BR>Address 1 : '), bpws:getVariableData('VariableECMSchema','/ECM/Address1'), string('&#x0A;<BR>Address 2 : '), bpws:getVariableData('VariableECMSchema','/ECM/Address2'), string('&#x0A;<BR>City : '), bpws:getVariableData('VariableECMSchema','/ECM/City'), string('&#x0A;<BR>StateProvince : '), bpws:getVariableData('VariableECMSchema','/ECM/StateProvince'), string('&#x0A;<BR>Country : '), bpws:getVariableData('VariableECMSchema','/ECM/Country'), string('&#x0A;<BR>ZIPPostalCode : '), bpws:getVariableData('VariableECMSchema','/ECM/ZIPPostalCode'), string('&#x0A;<BR>Phone : '), bpws:getVariableData('VariableECMSchema','/ECM/Phone'), string('&#x0A;<BR>Email Address : '), bpws:getVariableData('VariableECMSchema','/ECM/EmailAddress'), string('&#x0A;<BR>Model1 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model1'), string('&#x0A;&#x0A;&#x0A;<BR>Options1 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options1'), string('<BR>&#x0A;Quantity1 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity1'), string('<BR>&#x0A;Model2 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model2'), string('<BR>&#x0A;Options2 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options2'), string('<BR>&#x0A;Quantity2 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity2'), string('<BR>&#x0A;Model3 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model3'), string('<BR>&#x0A;Options3 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options3'), string('<BR>&#x0A;Quantity3 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity3'), string('<BR>&#x0A;Model4 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model4'), string('<BR>&#x0A;Options4 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options4'), string('<BR>&#x0A;Quantity4 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity4'), string('<BR>&#x0A;Model5 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model5'), string('<BR>&#x0A;Options5 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options5'), string('<BR>&#x0A;Quantity5 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity5'), string('<BR>&#x0A;Model6 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model6'), string('<BR>&#x0A;Options6 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options6'), string('<BR>&#x0A;Quantity6 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity6'), string('<BR>&#x0A;&#x0A;Model7 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model7'), string('<BR>&#x0A;Options7 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options7'), string('<BR>&#x0A;Quantity7 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity7'), string('<BR>&#x0A;Model8 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model8'), string('<BR>&#x0A;Options8 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options8'), string('<BR>&#x0A;Quantity8 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity8'), string('<BR>&#x0A;Model9 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model9'), string('<BR>&#x0A;Options9 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options9'), string('<BR>&#x0A;Quantity9 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity9'), string('<BR>&#x0A;Model10 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model10'), string('<BR>&#x0A;Options10 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options10'), string('<BR>&#x0A;Quantity10 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity10'), string('a

    Hi Vivek,
    The 'selectionFailure' errors are mostly due to no data in the elements defined in the xml or in the nodes of xsd. Please cross check xslt/xsd/paload data.
    Having said that, if things were working fine in R1 but not working in PS1, then...its a bit strange.
    Regards
    A

  • HTMLDB_MAIL.SEND does not work with 11g

    Hi Guys,
    I have a simple application that uses HTMLDB_MAIL.SEND. I am running APEX 3.0 against an 11g database. When run against a 10g DB all is good. But with 11g I get
    ORA-24247: network access denied by access control list (ACL)
    I looked up the error which recommends altering ACL stuff, which I know nothing about. Is there a simple way to get rid of this error.
    O.

    Hi,
    I have the same problem as you.
    Colud you please explain me how did you resolve it.
    Thanks
    HTMLDB_MAIL.SEND does not work with 11g

  • Em not working in 11g OID

    it is a fresh installation but Enterprise manager is not working.
    URL : http://devaex01:7001/em
    whereas http://devaex01:7001/console works.
    where do i look for to trouble shoot em.
    oid is 11.1.2.0 and weblogic 10.3.4
    Edited by: user11993859 on 8/02/2012 16:41

    You must start OPMN to get the Enterprise Manager console to come up.
    In Unix land, it's
    $ORACLE_INSTANCE/bin/opmnctl startall
    opmnctl startall: starting opmn and all managed processes...
    $ORACLE_INSTANCE/bin/opmnctl status -l
    Processes in Instance: asinst_1
    ---------------------------------------------------------------------------------------------------------+------
    ias-component | process-type | pid | status | uid | memused | uptime | ports
    ---------------------------------------------------------------------------------------------------------+------
    oid1 | oidldapd | 8521 | Alive | 1816925763 | 125560 | 0:00:55 | N/A
    oid1 | oidldapd | 8516 | Alive | 1816925762 | 61128 | 0:00:56 | N/A
    oid1 | oidmon | 8502 | Alive | 1816925761 | 18216 | 0:00:57 | LDAPS:3131,LDAP:3060
    EMAGENT | EMAGENT | 8501 | Alive | 1816925760 | 160 | 0:00:57 | N/A
    Refer to your installation documentation on "Starting and Stopping the Stack"

  • Forms debug not working in 11g. Working fine in 10g

    I am able to attach the debug of runtime with the random port number, but not stopping at the breakpoints. This is happening in 11g environment.
    Same method is working in 10g environment. What additional configuration do I need to do to run a form in debug mode in 11g environment.
    My configuration is here.
    1. in env file, I have the debugger.jar added to Classpath
    cusm.env
    CLASSPATH=...;....;....;C:\Oracle\Middleware\Oracle_FRHome1\jlib\debugger.jar;...;...;
    FORMS=C:\Oracle\Middleware\Oracle_FRHome1\forms
    2. formsweb.cfg
    debug=no
    # Forms runtime argument: host for debugging
    host=
    # Forms runtime argument: port for debugging
    allow_debug=false
    [cusm]
    workDirectory=/oracleias11g/work
    envfile=cusm.env
    form=frm_main.fmx
    userid=@orcl
    lookAndFeel=oracle
    pageTitle=Development 11g
    width=1050
    height=800
    archive=frmall.jar,customicon.jar
    At runtime from the form
    debug.attach;
    Then in the forms designer
    Debug-->Attach Debug
    Enter the random port number and the server and enter.
    Create couple of breakpoints in the forms trigger.
    and press button in the form.
    Now control is expected to come to forms designer, but not stopping at breakpoints.
    When Stop debug from forms designer, the runtime session is ending.
    Please help.
    Thanks in advance,
    Ravi

    Assuming you connected to the running form successfully, it sounds like your breakpoint is not being called. In other words, if you put a breakpoint in a trigger that isn't firing then the break will never occur. A simple test would be to add a break in the WHEN-NEW-FORM-INSTANCE trigger. Since this trigger cannot be avoided, control will quickly be passed to the debugger at startup. If this works then you can assume what I mentioned, which is that your other breakpoints are not being reached.
    Just to be sure, I just tested the Debugger in Forms 11.1.2.1 on Windows and it appears to work correctly.

  • Join Not Working - OBIEE 11g

    Hi
    I'm using sample sales schema to create my repository. It works fine in analysis until i introduce a calculated measure or a dimension hierarchy. when i introduce one of the two, for simply a product_name and revenue(a measure) based report, it starts issuing two seperate queries, one for product and one for revenue (measure). It should be issuing a single query getting data from both tables by joining them up as per the joins (logical & physical) defined in the RPD like earlier.
    Thanks
    Sufyan

    no its not level based measure but a simple measure. its just revenue/units based on existing logical columns. I did not go to levels tab in its properties and set logical levels for any of the logical dimensions.
    But after I create this measure it simply starts sending two physical queries , one to each table (products & salesFact ) i.e., two seperate queries instead of a single query, querying two tables with a join condition, as before i introduced this calculated measure.
    Afterwards even if i delete this measure, it doesn't work right. All the joins in BMM and physical layer are in thier place. I also compared the two versions of the repository and there's no special change noticable that can impact normal working.
    Thanks for being helpful.
    Regards
    Sufyan

  • Result_cache does not work in 11g

    -bash-3.00$ uname -a
    SunOS tssoldb01 5.10 Generic sun4u sparc SUNW,Sun-Fire-V210
    -bash-3.00$ sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Feb 29 11:37:14 2008
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> show parameter result_cache_;
    NAME TYPE VALUE
    client_result_cache_lag big integer 3000
    client_result_cache_size big integer 100M
    result_cache_max_result integer 5
    result_cache_max_size big integer 3M
    result_cache_mode string MANUAL
    result_cache_remote_expiration integer 0
    SQL> select /*+ RESULT_CACHE */ object_name from dba_objects
    2 where owner='SYSTEM' and object_type='PROCEDURE' ;
    OBJECT_NAME
    ORA$_SYS_REP_AUTH
    SQL> select count(*) from v$result_cache_objects;
    COUNT(*)
    0
    SQL>
    Try the hint /*+ result_cache */ but the result cache view returns nothing. All parameters are set. Do not know why?

    Oops, not query the sys views.
    Thanks Chris, just read your message while post above.
    Yeah, should not use dba_objects.
    Message was edited by:
    user498460
    Message was edited by:
    user498460

  • Date format not working in 11G ?

    Hi All,
    i am using Oracle 11g on windows 7
    i try to execute this format of date not allways show me same format
    select To_date('2/02/2012' ,'DD/MONTH/YYYY') from dual; (when i want to save to date column ) but the error is NOT VALID MONTH
    select To_date('2/02/2012' ,'DD/MM/YYYY') from dual; (when i want to save to date column ) this is OK
    Also when i want to show date
    select To_char('2/02/2012' ,'DD/MM/YYYY') from dual; (when i want to save to date column ) error INVALID NUMBER
    select To_char('2/02/2012' ,'DD/MONTH/YYYY') from dual; (when i want to save to date column ) error INVALID NUMBER
    select To_char('2/02/2012' ,'DD/MON/YYYY') from dual; (when i want to save to date column ) error INVALID NUMBER
    i try to get NLS_DATE_FORMAT in windows registery under oracle but not found i try to search for it in registery but not found.
    by using regedit in cmd
    regards

    select To_date('2/02/2012' ,'DD/MONTH/YYYY') from dual; (when i want to save to date column ) but the error is NOT VALID MONTHThe month format specified by you is MONTH but the value entered is 02, Oracle is expecting a month like 'FEBRUARY'
    select To_char('2/02/2012' ,'DD/MM/YYYY') from dual; (when i want to save to date column ) error INVALID NUMBER'2/02/2012' is a string and you are trying to convert it to string again, why?
    select To_char('2/02/2012' ,'DD/MONTH/YYYY') from dual; (when i want to save to date column ) error INVALID NUMBERAgain why convert string to string?
    select To_char('2/02/2012' ,'DD/MON/YYYY') from dual; (when i want to save to date column ) error INVALID NUMBERAgain same thing...
    i try to get NLS_DATE_FORMAT in windows registery under oracle but not found i try to search for it in registery but not found. by using regedit in cmdNLS_DATE_FORMAT is a oracle parameter why are you looking in windows registery?
    Query v$parameter to find the details of the parameter.
    I guess you have serious issue with your basics so please read the oracle document.

  • Subquery Not Working

    I am trying to match the subquery data with the data in the 1st query and I received an error message that I am missing an expression, I am not sure what to do at this point, assistance would be greatly appreciated.
    Error:
    ORA-00936: missing expression
    00936. 00000 - "missing expression"
    *Cause:   
    *Action:
    Error at Line: 32 Column: 32
    Query
    select
    h.external_order_number,
    c.call_type,
    c.call_disposition_lid,
    r.lookup_desc call_reason,
    p.user_name,
    d.reason_code_name
    from ain.impl_oh_order_header h,
    ain.sncr_ct_request c,
    ain.sncr_ct_lookup r,
    ain.sncr_reason_code_lkup d,
    ain.sncr_ssm_principal p
    where c.flex_field1 = h.transaction_id (+)
    and c.create_user_guid = p.user_id (+)
    and c.call_reason_lid = r.lookup_id (+)
    and c.call_start_time >= to_date('11/12/2012', 'mm/dd/yyyy')
    and c.call_start_time <= to_date('12/11/2012', 'mm/dd/yyyy')
    group by
    h.external_order_number,
    p.user_name,
    d.reason_code_name,
    c.call_type,
    c.call_disposition_lid,
    r.lookup_desc
    (select distinct oh.partner, od.order_affiliate_name, oh.external_order_number,
    cd.state
    from ain.impl_oh_order_header oh
    inner join AIN.impl_order_data od on od.transaction_id = oh.transaction_id
    inner join ain.sncr_order_curr_disp cd on cd.transaction_id = oh.transaction_id
    where oh.created_ts BETWEEN to_date('11/12/2012 00:00:00','mm/dd/yyyy hh24:mi:ss')
    AND to_date('12/11/2012 23:59:59','mm/dd/yyyy hh24:mi:ss')
    and cd.state in (17) -- Cancelled
    and od.order_affiliate_name = 'DIRECTV')

    I am trying to match the subquery data with the data in the 1st query and I received an error message that I am missing an expression, I am not sure what to do at this point, assistance would be greatly appreciated.
    Error at Line: 32 Column: 32Looks like line referred to is this:
    (select distinct oh.partner, od.order_affiliate_name, oh.external_order_number,
    cd.state   -- LINE 32, column 32 is (probably) hereI would then try to add a semi-colon to this (Thereby guessing that do not have any aubquery, but two separate queries)
    c.call_disposition_lid,
    r.lookup_descSo it becomes
    c.call_disposition_lid,
    r.lookup_desc;Making everything into:
    select   h.external_order_number,
             c.call_type,
             c.call_disposition_lid,
             r.lookup_desc call_reason,
             p.user_name,
             d.reason_code_name
    from     ain.impl_oh_order_header h,
             ain.sncr_ct_request c,
             ain.sncr_ct_lookup r,
             ain.sncr_reason_code_lkup d,
             ain.sncr_ssm_principal p
    where        c.flex_field1 = h.transaction_id(+)
             and c.create_user_guid = p.user_id(+)
             and c.call_reason_lid = r.lookup_id(+)
             and c.call_start_time >= to_date ( '11/12/2012', 'mm/dd/yyyy')
             and c.call_start_time <= to_date ( '12/11/2012', 'mm/dd/yyyy')
    group by h.external_order_number,
             p.user_name,
             d.reason_code_name,
             c.call_type,
             c.call_disposition_lid,
             r.lookup_desc;
    (select distinct oh.partner,
                     od.order_affiliate_name,
                     oh.external_order_number,
                     cd.state
    from  ain.impl_oh_order_header oh
           inner join ain.impl_order_data od
             on od.transaction_id = oh.transaction_id
           inner join ain.sncr_order_curr_disp cd
             on cd.transaction_id = oh.transaction_id
    where      oh.created_ts between to_date ( '11/12/2012 00:00:00', 'mm/dd/yyyy hh24:mi:ss')
                                  and to_date ( '12/11/2012 23:59:59', 'mm/dd/yyyy hh24:mi:ss')
            and cd.state in (17) -- Cancelled
            and od.order_affiliate_name = 'DIRECTV');Please do as following before asking questions:
    Lean back,
    Look at your question and
    Ask yourself, does this question make sense to anybody.
    In this case it should have been a NO.
    On numerous occasions you have been asked to read the FAQ's "How to ask a question". - Did you ever?
    Regards
    Peter

  • Polling does not work in 11g

    I created a db adapter to sql server 2008 and set it up so it will poll the database every 30 seconds and process 2 records. But when I run the bpel process, the polling adapter processed all records at one time. I'm using 11.1.1.1.
    It is the same with oracle as well. Anybody experienced this?
    Thanks

    I upgraded the server to 11.1.1.2 but still no luck. I created the datasource in wls and added the jndi in the db adapter. I restarted the server also. Here's my polling configuration in the db adapter in JDeveloper
    Operation Type: Poll for New Or changed records in a table
    After Read: Update a field in the [table name] table (logical delete)
    Logical delete:
    logical delete field: <table column name>
    read value: 1
    unread value: 0
    reserved value: 2
    polling frequency: 30 seconds
    database rows per xml document: 1
    database rows per transaction: 3
    All other field values are left as defaults.
    It processed all records at one time and not 3 records every 30 seconds.
    Can you let me know if I miss anything please? Are there any special configuration I need to make to the data source also?
    Thanks,
    Andy

  • ODI Procedures not working after upgrading from 10G to 11G

    Hello Gurus,
    We have run into a scenario where the procedures in ODI are not working after we upgraded it from 10G to 11G (11.1.1.6). However we can make it to run if we create the procedure from scratch.
    Also we are having issues related to packages where in the packages were running before we applied the patch 11.1.1.6.3. And after applying the patches they are not running.
    Any help will be appreciated.
    Thanks

    If you want someone to help you, please be elaborate in the exact errors you are getting.
    A general statement would do nothing but guess work.
    What is the error that you get while executing the procedure.
    What are the exact issues that you get while executing packages ?

  • DADs on WLS 11g (version 10.3.6.0) do not work (Error 404--Not Found)

    Actually we use Application Server 10g (version 10.1.2.3.0) for different Forms 10g Applications (roundabout 1000 Forms) and want to change to Forms 11g and Weblogic Server 11g (version 10.3.6.0). A Test-Application on the Weblogic Server works fine, but DAD’s do not work at all.
    In Enterprise Manager 10g i can configure DADs within the GUI of the Enterprise Manager, where i can see, if a connection could be established or not.
    In Enterprise Manager 11g Fusion Middleware Control this doesn't seem to exist anymore, so i tried to configure the DADs manually, but something has to be wrong or missing, because there is no connection to the database and the following error appears:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I added several DAD’s to /opt/oracle/product/Middleware/asinst_1/config/OHS/ohs1/mod_plsql/dads.conf like this:
    <Location /pls/jd-download-dev>
    SetHandler pls_handler
    Order allow,deny
    Allow from All
    AllowOverride None
    PlsqlDatabaseUsername w_web_user_download
    PlsqlDatabasePassword @BWKChfgPacV6yQL40lIKZqXUUA9wC4cmAw==
    PlsqlDatabaseConnectString jddev TNSFormat
    PlsqlNLSLanguage German_Germany.WE8ISO8859P1
    PlsqlAuthenticationMode Basic
    PlsqlDefaultPage w_anwendung.p_web_show_document
    PlsqlAlwaysDescribeProcedure Off
    PlsqlErrorStyle DebugStyle
    </Location>
    The passwords were obfuscated with dadTool.pl and the http-Server restarted with /opt/oracle/product/Middleware/asinst_1/bin/opmnctl restartproc process-type=OHS
    The files /opt/oracle/product/Middleware/asinst_1/config/OHS/ohs1/mod_plsql.cache.conf and /opt/oracle/product/Middleware/asinst_1/config/OHS/ohs1/moduleconf.plsql.conf were left unchanged.
    Our Test-Application generates the following link
    'http://172.106.2.7:9001/pls/jddevdev/B_ARCHIVE.P_ARCHIVE_VIEW?docfid=200'
    that seems to be ok, because when i replace IP and port with our old IAS it works fine, but the WebLogic Server generates the above mentioned error.
    To get some more information i searched an error_log in /opt/oracle/product/Middleware/asinst_1/diagnostics/logs/OHS/ohs1 but there isn’t any.
    I used the following Documentation for configuring the DADs which is for HTTP Server 11g Release 1 (version 11.1.1), because I could not find one for version 10.3.6.0:
    http://docs.oracle.com/cd/E23943_01/web.1111/e10144/under_mods.htm#i1055269
    So probably there are differences between configuring version 10.3.6.0 and version 11.1.1 and so something is wrong configured or missing...
    Thank you in advance for your help
    Udo

    Hi Raj,
    it is a Sparc Solaris 10
    and yes that's my enviorment.
    After some more tests it's seems it's not a real bug but no realy nice working solution.
    Eclipse uses for all instances the same secure storage, where OEPE also saves the password.
    And if I look right the pasword was saved without the user context, so if you use an other user he takes the same password from the old user.
    and I doesn't know how do OEPE check the connection in reality or only reply the last failed login message.
    After deleting the complete secure storage and test it again with the juno version it works well.

  • Report 11g RUN_REPORT_OBJECT is not working FRM-41214

    Dear all,
    We are not able to run the reports using RUN_REPORT_OBJECT from forms 11g, we have tried our maximum to resolve this issue, unfortunately no proper documentation. Forms working without any issue are able to see the report out puts if I try running the report using internet explorer, but from the forms using RUN_REPORT_OBJECT It is getting failed. I could see two reports servers were running RptSvr_xxxxxx_FrmInst, rep_wls_reports_xxxxxx_frminst both servers queue status page also we can browse, but the reports running using RUN_REPORT_OBJECT is not working, the job queue is not showing these jobs.
    When I use report diagnose it is showing "Exception when retrieving IOR"
    Environment - Fusion Middleware 11.1.1.5.0, Windows 2008 server
    Error : FRM 41214 Unable to run report
    Can anyone through some lights on this issue.
    We areTrying the below code :
    DECLARE
    v_report_id Report_Object;
    vc_ReportServerJob VARCHAR2(100);
    vc_rep_status VARCHAR2(100);
    vjob_id VARCHAR2(100);
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT('CFR007');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,'RptSvr_xxxxxxx_FrmInst');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'paramform=no');
    vc_ReportServerJob:=RUN_REPORT_OBJECT(v_report_id);
    vjob_id := substr(vc_ReportServerJob,instr(vc_ReportServerJob,'_',-1)+1);
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id ||'?server=rptsvr_XXXXXXXX_frminst','_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    END;
    Thanks & Regards

    user11319190 wrote:
    I have posted it in the begning ,anway i am copying it for you again...
    DECLARE
    v_report_id Report_Object;
    vc_ReportServerJob VARCHAR2(100);
    vc_rep_status VARCHAR2(100);
    vjob_id VARCHAR2(100);
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT('CFR007');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,'RptSvr_xxxxxxx_FrmInst');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'paramform=no');
    vc_ReportServerJob:=RUN_REPORT_OBJECT(v_report_id); ---- exception is here
    vjob_id := substr(vc_ReportServerJob,instr(vc_ReportServerJob,'_',-1)+1);
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    -----Please not that it is not reaching here......
    IF vc_rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id ||'?server=rptsvr_XXXXXXXX_frminst','_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    END;
    Edited by: user11319190 on 08-May-2013 00:12Hmm.. I don't see the report name whom is calling or run. I modified your code, give a try..
    DECLARE
      v_report_id Report_Object;
      vc_ReportServerJob VARCHAR2(100);
      vc_rep_status VARCHAR2(100);
      vjob_id VARCHAR2(100);
    BEGIN
      v_report_id:= FIND_REPORT_OBJECT('CFR007');
      SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'PDF');
      SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
      SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(V_REPORT_ID,REPORT_EXECUTION_MODE,BATCH);
    /* edit the report name like D:\repname.rep */
         SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME,<write the full path of reports>);
      SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,'RptSvr_xxxxxxx_FrmInst');
      SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'paramform=no');
      vc_ReportServerJob:=RUN_REPORT_OBJECT(v_report_id); ---- exception is here
      VJOB_ID := SUBSTR(VC_REPORTSERVERJOB,INSTR(VC_REPORTSERVERJOB,'_',-1)+1);
    /* i added loop */
         WHILE VC_REP_STATUS in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP 
           vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob); 
         END LOOP;
      -----Please not that it is not reaching here......
      IF VC_REP_STATUS = 'FINISHED' THEN
        WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id ||'?server=rptsvr_XXXXXXXX_frminst','_blank');
      ELSE
        message ('Report failed with error message '||vc_rep_status);
      END IF;
    END;Hope this works..

Maybe you are looking for

  • My hp failed to start it says, A recent hardware or software change may be the problem.

    my hp failed to start it says A recent hardware or software change may be the problem.  It gives the option of Launch start up repair or Start windows normally, it freezes after clicking any option. What can i do? My pc is a Compaq Presario CQ62-216D

  • Inspire 5.1 Digital 5600 - LOSE BASIC FUNCTIONALITY?

    Hi all, We will see if this gets edited. This is in addition to the original message, as I have no answers, just more questions. I have bought Creative products all my life, Ill leave it up to you in deciding wether I will in the future. If anyone ac

  • Please help with txt message issue

    i am a prepaid client with no data on my plan so i have my data shut off on my iphone 4, so when i am not in wifi range and send a message to other iphone friends as a txt message (not Imessage). they are not recieving until i get back to wifi and th

  • Photoshop CS6 is crashing when being opened through Bridge

    Crash report lists app name photoshop.exe AppVer 13.0.1.34 and ModName: gdiplus.dll Basically I'm trying to open a .tif file through Bridge but Photoshop crashes each time.  I can open the image directly in Photoshop but my user wants to open through

  • DROPING A TABLESPACE

    Dear all, can you please tell me how to drop a tablespace which has materialized views.I tried the following drop tablespace portal including contents and datafiles; but i get the following error message SQL> drop tablespace portal including contents