When query executed????

if i want that when someone execute query on a form, my condition executes, how to do it?

Welcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Oracle Forums FAQ
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>Announcement: Forums Etiquette / Reward Points
<li>How to ask questions the smart way
</ul>
Following these simple guidelines will ensure you have a positive experience in any forum; not just this one! ;-)
Lets start with some of the basics. What is your Forms version, Client OS version; if web deployed, your browser and Java versions and any error messages you might be receiving.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • Output coming wrong when Query  executed

    Hi,
    I Extracted herarchial data TO  infocube 0FIGL_C01.
    I also installed Standard Query 0FIGL_VC1_Q0001.
    Now, all data is coming correctly upto infocube 0FIGL_C01 AND TO 0FIGL_VC01.
    (as you know ,the data flow to virtual cube ,once we  load it to standard info cube ).
    But when query is executed ,It is displaying wrong output .
    Can any one tell why ?
    Can you tell what internal execution take place.ie..whether any  fumnction module is executed when the standard query is
    executed .How the data  flow from infocube to virtual infocube and to query?
    (all objects i used are standard )
    Thanks,
    Naresh.

    Hi,
    It should give correct values, see if you are missing something while reconciling.
    Have a look at this FM:RS_BCT_FIGL_DATA_GET_VC1
    Go through this document:
    [Handling Balance Sheets and Profit and Loss Statements in SAP BW 3.0|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2f6d9790-0201-0010-dcbc-e099c7c049a2]
    Hope it helps...
    Regards,
    Ashish

  • Personalise value icon not available when query executed from portal

    Hi
    The personalise value icon is not available when the query is executed from the portal.
    Is this the norm or is there anything i must change?
    Regards
    Shalini

    Since you have not given us much information to go on, I will start with the basics...
    Have you activated the Personalization DSOs (0PERS_WTE, 0PERS_BOD & 0PERS_VAR)? 
    If not, you will need to do so in tcode SPRO (SAP Reference IMG --> SAP NetWeaver --> Business Intelligence --> Settings for Reporting and Analysis --> General Settings for Reporting and Analysis --> Activate Personalization in BEx)
    Are you running a BW 3.5 query or a BI 7.0 query?
    If BI 7.0, the way to set personalization values has changed. You have to open the personalization section of the variables refresh screen by clicking on "Show Personalization Values" at the top of the screen, then move the desired variables down to that section.
    Hope some of this helps...
    Bob

  • My Library Column does not exist when I execute a Caml Query

    Hello,
    I am new to SharePoint programming.  I am trying to understand how I can access the documents in a Library Folder and obtain the field values for each document in the container.  With this in mind I have pieced together the following code from
    various posts that demonstrate how to to this:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.SharePoint.Client;
    namespace ConsoleListItemsInFolder
        class Program
            static void Main(string[] args)
                ClientContext ctx = new ClientContext("http://mwp_lenovo");
                List DocumentsList = ctx.Web.Lists.GetByTitle("Claims Documents");
                CamlQuery camlQuery = new CamlQuery();
                camlQuery = new CamlQuery();
                camlQuery.ViewXml = "<View Scope=\"RecursiveAll\"> " +
                                "<Query>" +
                                "<Where>" +
                                            "<Eq>" +
                                                "<FieldRef Name=\"FileDirRef\" />" +
                                                "<Value Type=\"Text\">/Claims Documents/11111111 Stuart Little</Value>"
    +
                                             "</Eq>" +
                                "</Where>" +
                                "</Query>" +
                                "</View>"; 
                ListItemCollection listItems = DocumentsList.GetItems(camlQuery);
                ctx.Load(
                    listItems,
                    items => items
                    .Include(
                        item => item["Title"],
                        item => item["Claim Number"],
                        item => item["Policy Number"],
                        item => item["Policyholder Name"],
                        item => item["Document Type"]));
                ctx.ExecuteQuery();
                foreach (ListItem listItem in listItems)
                    Console.WriteLine("Title: {0}", listItem["Title"]);
                    Console.WriteLine("Claim NUmber: {0}", listItem["Claim Number"]);
                    Console.ReadLine();
    When I execute the code with the debugger ctx.ExecuteQuery(); throws the following error:
    Microsoft.SharePoint.Client.ServerException was unhandled
      Message=Column 'Claim Number' does not exist. It may have been deleted by another user.  /Claims Documents
      Source=Microsoft.SharePoint.Client.Runtime
      ServerErrorCode=-2147024809
      ServerErrorTypeName=System.ArgumentException
      ServerStackTrace=""
      StackTrace:
           at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
           at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
           at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
           at ConsoleListItemsInFolder.Program.Main(String[] args) in c:\Users\matt.paisley\Documents\Visual Studio 2012\Projects\ConsoleListItemsInFolder\ConsoleListItemsInFolder\Program.cs:line 37
           at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
      InnerException: 
    These columns do exist in the Library as verified in Library Settings.  Many of the Library column names contain two words divided by a space.  Is this causing the problem?  Does SharePoint maintain a less offensive representation of the field
    name internally?  If so, how can I get it?
    If I run this code with only the title, then it runs fine.
    I Thank All in advance for any assistance that you can provided.
    Regards,
    Matt Paisley
    Matthew Paisley

    Hello
    In addition to Geetanjali Arora answer, change also those other columns
      item => item["Claim Number"],
      item => item["Policy Number"],
     item => item["Policyholder Name"],
     item => item["Document Type"]
    If you don't know the internal name of a column,
    go to the list containing the columns
    go to "list settings"
    scoll down to the "columns" section
    click on one of your columns et take a look a the url of the new page, you should found parameter "&Field=" => What is after is your field internal name (the one you should use in your CAML query)
    Best regards, Christopher.
    Blog |
    Mail
    Please remember to click "Mark As Answer" if a post solves your problem or
    "Vote As Helpful" if it was useful.
    Why mark as answer?

  • Getting an error when query is executed

    Hi,
       I have created a query in designer.
    When i Execute the query i am getting an error like this:
    "Warning your user master record is not sufficiently maintained for object 0VENDOR"
    I have this Vendor in the dimentions but i did not use this in any Rows but still i am getting it.
    what might be the cause.
    And also people i am new to this forum, can any one tell me how to give the points for correct answers.
    I really appreciate your patients.
    Regards,
    Pallavi

    Hi,
    Welcome to SDN.
    Please check wheather you are using any navigaional attributes of 0VENDOR in the query. Try to load the master data of 0VENDOR, run the attribute change run and excute the query.
    To assign points you can able to see some colours for every answer, depending upon the answer how it helps you can check the radio button
    Cheers,
    Malli.

  • Getting error when we execute query in RSRT1

    Hi Gurus,
    I Loaded Transaction data in "0CCA_C11" cube and also loaded master data too.
    but when i execute query in RSRT1 i am getting error message
    1) Could not enter feature 0COSTCENTER__0PROFIT_CTR with SID 133 into table /BI0/SIOBJNM
    2)System error in program CL_RSR and form GET_CHANMID-02- (see long text)
    3)Error when generating dataProvider.
    For 0COSTCENTER i loaded master data but for '0PROFIT_CTR' i am unable to load Hierarchy data because still the request is yellow even showing 58 from 58 records.
    can any once can help me to soleve this issue.
    Thanks in advance.
    Raju.k
    *points to be assigned.

    Raju,
      Try replicating your hierarchy DS and reload data.
    hope it helps,
    balaji

  • Error message when I execute a query

    Hi,
    When i execute a query appears the message "Error specify a value for variable Z...". I can't execute the query.
    This situation exist from a new release of SAP-BW (7.0).
    Thanks and best regards.
    CV

    Hi Christiano,
    Try these SAP Notes...
    SAP Note Number: 955515
    SAP Note Number: 333208
    SAP Note Number: 1074801
    Also check this thread...
    error
    Hope these helps u...
    Regards,
    KK.

  • ORA-03114 not connected with Oracle when  I execute Query

    Hi!
    I have a Problem with Oracle 9 but I don't know what wrong.
    When I execute this query I get an error everytime:
    select * from
    perleist pl
    left outer join leikat l on pl.lsnr = l.lsnr
    where pl.von < sysdate
    and
    pl.id not in
    select idperleist from rechaus
    where buch_schl <> 'STRN'
    It's not the complete select but the point is I use
    "left outer join leikat l on pl.lsnr = l.lsnr"
    ( not the (+) - Opoerator) and a "not in" -Clausel.
    Without the "not in" -Clausel the select runs fine.
    Sorry for my bad english g
    Thx for help :)
    Michael

    Hi!
    My Selection doesn't run :((
    The Selection runs with (+) -Join and not with "left outer join" .
    i need the "left outer join" couse the Application runs on Oracle
    and Interbase with same Selections. Other Selections with "left outer Join"
    are running under my Oracle 9.2 Database.
    Here something I tested:
    Selection runs with (+)- Join and count ():
    select count(pl.id) anz
    from perleist pl , leikat l
    where
    pl.lsnr = l.lsnr (+)
    --left outer join leikat l on  l.lsnr = pl.lsnr
    and (pl.von <= to_date('30.09.2002', 'DD.MM.YYYY')) and (pl.bis >= to_date('01.09.2002', 'DD.MM.YYYY'))
    and (l.RelAbr = 1)
    and (pl.AufnNr = 13464)
    and (pl.id not in (select idperleist from rechaus where ((BuchSchluessel <> 'STRN') or (BuchSchluessel is null)) and (StornoDat = to_date('30.12.1899', 'DD.MM.YYYY')) and (AbrJahr = 2002) and (AbrMonat = 9)))
    Runs without count() and with "left outer join" :
    select --count(pl.id) anz
    from perleist pl
    left outer join leikat l on pl.lsnr = l.lsnr
    where (pl.von <= to_date('30.09.2002', 'DD.MM.YYYY')) and (pl.bis >= to_date('01.09.2002', 'DD.MM.YYYY'))
    and (l.RelAbr = 1)
    and (pl.AufnNr = 13464)
    and (pl.id not in (select idperleist from rechaus where ((BuchSchluessel <> 'STRN') or (BuchSchluessel is null)) and (StornoDat = to_date('30.12.1899', 'DD.MM.YYYY')) and (AbrJahr = 2002) and (AbrMonat = 9)))
    Error ORA-03114 when usinf count () and
    "left outer join":
    select count(pl.id) anz
    from perleist pl
    left outer join leikat l on l.lsnr = pl.lsnr
    where
    (pl.von <= to_date('30.09.2002', 'DD.MM.YYYY')) and (pl.bis >= to_date('01.09.2002', 'DD.MM.YYYY'))
    and (l.RelAbr = 1)
    and (pl.AufnNr = 13464)
    and (pl.id not in (select idperleist from rechaus where ((BuchSchluessel <> 'STRN') or (BuchSchluessel is null)) and (StornoDat = to_date('30.12.1899', 'DD.MM.YYYY')) and (AbrJahr = 2002) and (AbrMonat = 9)))
    Selection runs without "not in"
    Selection runs without count()
    Selection runs with (+) and not with
    "left outer join"
    Thx for help :)
    MD

  • Dump when i executed bex query

    i execute bex with my user ( i am sap_all), i haven't problem.
    when i executed this same report ( with variable autorisation), i have this dump:
    the dump:
    Erreur d'exécution     GETWA_NOT_ASSIGNED                                                          
    Date et heure          11.12.2009 17:26:11                                                                               
    Désignation                                                                               
    Field symbol has not yet been assigned.                                                      
    Causes                                                                               
    Error in the ABAP Application Program                                                                               
    The current ABAP program "SAPLRSEC_CHECKS" had to be terminated because it has               
        come across a statement that unfortunately cannot be executed.                               
    Solutions                                                                               
    Note down which actions and inputs caused the error.                                                                               
    To process the problem further, contact you SAP system                                       
        administrator.                                                                               
    Using Transaction ST22 for ABAP Dump Analysis, you can look                                  
        at and manage termination messages, and you can also                                         
        keep them for a long time.                                                                   
    Analyse des erreurs                                                                               
    You attempted to access an unassigned field symbol                                           
        (data segment 32774).                                                                               
    This error may occur if                                                                      
        - You address a typed field symbol before it has been set with                               
          ASSIGN                                                                               
    - You address a field symbol that pointed to the line of an                                  
          internal table that was deleted                                                            
        - You address a field symbol that was previously reset using                                 
          UNASSIGN or that pointed to a local field that no                                          
          longer exists                                                                               
    - You address a global function interface, although the                                      
          respective function module is not active - that is, is                                     
          not in the list of active calls. The list of active calls                                  
          can be taken from this short dump.                                                                               
    Comment corriger l'erreur                                                                               
    If the error occures in a non-modified SAP program, you may be able to                       
        find an interim solution in an SAP Note.                                                     
        If you have access to SAP Notes, carry out a search with the following                       
        keywords:                                                                               
    "GETWA_NOT_ASSIGNED" " "                                                                     
        "SAPLRSEC_CHECKS" or "LRSEC_CHECKSF06"                                                       
        "LOOK_UP_STAR_VARIABLES"                                                                               
    If you cannot solve the problem yourself and want to send an error                           
        notification to SAP, include the following information:                                                                               
    1. The description of the current problem (short dump)                                                                               
    To save the description, choose "System->List->Save->Local File                           
        (Unconverted)".                                                                               
    2. Corresponding system log                                                                               
    Display the system log by calling transaction SM21.                                       
           Restrict the time interval to 10 minutes before and five minutes                          
        after the short dump. Then choose "System->List->Save->Local File                            
        (Unconverted)".                                                                               
    3. If the problem occurs in a problem of your own or a modified SAP                          
        program: The source code of the program                                                      
           In the editor, choose "Utilities->More                                                    
        Utilities->Upload/Download->Download".                                                                               
    4. Details about the conditions under which the error occurred or which                      
        actions and input led to the error.                                                                               
    end ******************
    best regard
    francoise

    Try applying the following OSS Notes into your BW system. These should resolve the issue.
    [OSS  Note 1244842 - Termination LOOK_UP_STAR_VARIABLES-01-|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1244842] (relevant for BW 7.00 SP20, BW 7.01 SP3, BW 7.10 SP7 or BW 7.11 SP1)
    [OSS Note 1290949 - Dump GETWA_NOT_ASSIGNED for Query on InfoSet|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1290949] (relevant for BW 7.00 SP21, BW 7.01 SP4, BW 7.10 SP8 or BW 7.11 SP2)

  • Query executed within a plug-in script returns 0 rows, although data exists

    I created a plug-in script for algorithm entity: Service Quantity Rule.
    The script calls a business service that I created using query zones. The query returns the values of the bill segment (ci.bseg.bseg_id and ci_bseg.closing_bseg_sw) that is created while running a bill manually. The zone receives the bseg_id as a parameter.
    The problem is that when I execute the business service within the plug-in script the business services returns 0 rows even though the data is actually being stored in the database.
    The script calculates some SQI values and saves it to the bill segment based on a response that is received from MDM (I'm using the usage request object).
    Steps:
    1.- Create Bill. The bill segment is created in error as it is waiting for the bill determinants to be sent from the MDM. If I test the zone with the bseg_id (as a parameter) of the newly created bill segment it works fine.
    2.- We send a message from the MDM to CC&B. The message is received and processed and it gets to a point when the usage updates the bill segment.
    3.- After the bill segment has been updated with the values from the usage request object it starts executing the plug-in script.
    4.- I obtain the bseg_id from the usage request and use the business service (passing the bseg_id as a parameter) and it returns no result.
    5.- The process finishes and if test the zone with the bseg_id (as a paramter) of the billing segment it works fine.
    So apparently during the execution of the script after the billing determinants are received from MDM I can't have access to the Bill segment that was created, even if the physically the record exists in the database (CI_BSEG).
    I also tried instantiating an object related with the bill segment and got the same result.
    Any idea or clue of what is happening?

    Could you be more explicit.
    What CC&B version?
    What MDM version?
    More details are required for:
    2.- We send a message from the MDM to CC&B. The message is received and processed and it gets to a point when the usage updates the bill segment.
    3.- After the bill segment has been updated with the values from the usage request object it starts executing the plug-in script.
    4.- I obtain the bseg_id from the usage request and use the business service (passing the bseg_id as a parameter) and it returns no result.

  • Query executes in RSRT but not in BEx Analyzer

    Hi Everyone,
    I have a query for an infocube and ods object, in the bex analyzer for the infocube the query executes which has around 5000 records but for the ods object which has also 5000 records comes up with this error.
    <b>An exception with the type CX_SY_EXPORT_NO_SHARED_MEMORY occurred, but was
    neither handled locally, nor declared in a RAISING                                                                               
    Message no. RS_EXCEPTION000</b> 
    when I execute the query in RSRT it comes up.
    After closing and re logging into bex analyzer executes the query for the first but for the second time again it throws up this error.
    What could be the problem? Can anyone please let me know. Its really really urgent.
    Thanks,
    Prashant.

    hi Prashant,
    try check in RSRT, after choose your query, click 'properties' and set cache mode to 'main memory cache without swapping'.
    also check oss note 656060-OLAP: Cache main memory displacement not functioning.   
    hope this helps.
    Symptom
    Although one of the following two cache modes
    Main Memory Cache Without Swapping (mode 1)
    Main Memory Cache With Swapping (mode 2)
    is set for a query, long runtimes occur when you execute the query. The statistics (table RSDDSTAT) display the database times.
    If there is a heavy system load, the following message can also appear: RS_EXCEPTION000: No left space in shared memory.
    Other terms
    Cache, performance, displacement, shared buffer
    Reason and Prerequisites
    This problem occurs because the shared memory is insufficiently dimensioned.
    <b>Solution</b>
    Increase the amount of shared memory. The size of the shared memory should be at least 200 MB. You can refer to transaction RSRCACHE for the amount of memory reserved by the main memory cache (RSRCACHE -> Main Memory: Shared Memory/Buffer Reserved).
    The corresponding settings are (at least):
    rsdb/esm/buffersize_kb = 200000
    and, as a precaution, also
    rsdb/esm/max_objects = 10000.
    Alternatively, for queries with large resulting quantities, you can convert the Cache Mode in transaction RSRT1 to
    Cluster/Flat File Cache for Each Application Server (mode 3)
    Cluster/Flat File Cache Across Each Application Server (mode 4)

  • When query is taking too long time

    When query is taking too long time,Where and how to start tuning it?
    Here i've listed few things need to be considered,out of my knowledge and understanding
    1.What the sql is waiting for(wait events)
    2.Parameter modification need to be done at system/session level
    3.The query has to be tuned (using hints )
    4.Gathering/deleting statistics
    List out any other things that need to be taken into account?
    Which approach must be followed and on what basis that approach must be considered?

    When query is taking too long time,Where and how to start tuning it?explain plan will be good start . trace also
    Here i've listed few things need to be considered,out of my knowledge and understanding
    1.What the sql is waiting for(wait events)When Oracle executes an SQL statement, it is not constantly executing. Sometimes it has to wait for a specific event to happen befor it can proceed.
    Read
    http://www.adp-gmbh.ch/ora/tuning/event.html
    2.Parameter modification need to be done at system/session levelDepend on parameter , define parameter , trace done on session level for example
    3.The query has to be tuned (using hints )Could be help you but you must know how to use .
    4.Gathering/deleting statisticsDo it in non working hours , it will impact on database performance , but its good
    List out any other things that need to be taken into account?Which account ?
    Which approach must be followed and on what basis that approach must be considered?you could use lot of tools , Trace , AWR

  • Strange error in query executed via DBLink

    Hi,
    I am running below big query(existing code in my project) on a oracle database(DB1) schema which accesses data from tables located in a remote oracle database(DB2) schema.
    But I am getting error:
    ORA-00904: "CERMA"."EFFECTIVE_TO": invalid identifier
    ORA-02063: preceding line from <DB_LINK_NAME>
    The concerned table is present in remote database  and  simple "select *  from" on the concerned table from  DB1 is working properly but when used in below query it is giving the above error.
    The system design is as follows:
    DB2  -  In this database ,Views are created in SCHEMA1 of this database which refer the underlying tables in SCHEMA2 of same database.
    e.g. view name = clm_claims_basic_info_vw
    DB1  -  In this database , synonyms are created(with name same as underlying tables) to access the underlying table data via the views created in DB2.
    e.g. synonym name = clm_claims_basic_info
    DB1  -  Query executed in this database which uses all the synonyms.
    e.g.
    select ..... from clm_claims_basic_info,clm_claim_scheme_dtl
    Also this query was working fine few days back and now suddenly failing without any code-changes, but we don't know what else has changed.
    Can you please suggest what could be the reason?
    SELECT ccbi.claim_number claim_no, npm.policy_no policy_no,
         cgm.group_no company_ref_no, cgm.NAME company_name
        FROM clm_claims_basic_info ccbi,
         nbs_policy_mst npm,
         com_group_mst cgm,
         com_product_mst cpm,
         clm_member_dtl cmd,
         clm_assessment ca,
         clm_claim_scheme_dtl ccsd,
         clm_plan_dtl cpd,
         (SELECT mem_escal.member_escalation_type_vid,
                    mem_escal.member_max_escal_rate,
                    mem_escal.member_min_escal_rate,
                    mem_escal.member_escal_rate,
                    mem_escal.claim_basic_info_id,
                    mem_escal.member_esclation_basis_vid,
                    add_escal.additional_escalation_type_vid,
                    add_escal.additional_max_escal_rate,
                    add_escal.additional_min_escal_rate,
                    add_escal.additional_escal_rate,
                    add_escal.additional_esclation_basis_vid,
                    mem_escal.first_escal_dt, mem_escal.escal_dt
             FROM (SELECT cerm.escalation_type_vid
                                                        member_escalation_type_vid,
                              cerm.max_escal_rate member_max_escal_rate,
                              cerm.min_escal_rate member_min_escal_rate,
                              cerm.escalation_rate member_escal_rate,
                              ccbi.claims_basic_info_id claim_basic_info_id,
                              cerm.escalation_basis_vid
                                                        member_esclation_basis_vid,
                              mi_claims_pkg.clm_get_escalation_date_fnc
                                  (ccbi.claims_basic_info_id,
                                    cpd.escal_applies_to_vid,
                                    1,
                                    cpd.escal_applies_to_day,
                                    cpd.escal_applies_to_month_vid,
                                    ccbi.event_dt,
                                    ccbi.clm_acceptance_dt
                                  ) first_escal_dt,
                              NULL escal_dt
                        FROM clm_claims_basic_info ccbi,
                              clm_claim_scheme_dtl ccsd,
                              clm_plan_dtl cpd,
                              clm_escalation_dtl cede,
                              com_escalation_rate_mst cerm
                      WHERE ccbi.claims_basic_info_id =
                                                            ccsd.claim_basic_info_id
                         AND ccsd.plan_id = cpd.plan_id
                         AND cede.claim_basic_info_id(+) =
                                                          ccbi.claims_basic_info_id
                         AND cede.escal_dt IS NULL
                         AND cpd.is_escal_apply_id = 'Y'
                         AND ccbi.product_id = 4
                         AND cerm.product_id = ccbi.product_id
                         AND cerm.escalation_basis_vid =
                                                          cpd.escal_memben_rate_vid
                         AND (   (    ccbi.claim_status_vid = 2880
                                     AND ccbi.event_dt
                                              BETWEEN cerm.effective_from
                                                    AND NVL (cerm.effective_to,
                                                                TO_DATE ('31122999',
                                                                            'DDMMYYYY'
                                OR (    ccbi.claim_status_vid != 2880
                                     AND cede.first_escal_dt
                                              BETWEEN cerm.effective_from
                                                    AND NVL (cerm.effective_to,
                                                                TO_DATE ('31122999',
                                                                            'DDMMYYYY'
                         AND (   (    cpd.escal_memben_rate_vid = 2334
                                     AND cpd.escal_memben_perc =
                                                                 cerm.escalation_rate
                                OR (    cerm.escalation_type_vid IN
                                                                  (3962, 3963, 4442)
                                     AND cerm.escalation_value_by_vid = 4299
                                OR (    cpd.escal_memben_rate_vid != 2334
                                     AND cerm.escalation_type_vid = 3961
                                OR (cerm.escalation_type_vid IS NULL)
                         AND ccbi.record_status = 'A'
                         AND cpd.record_status = 'A'
                         AND ccsd.record_status = 'A'
                         AND cede.record_status(+) = 'A'
                         AND cerm.record_status = 'A'
                         AND NOT EXISTS (
                                  SELECT 'X'
                                     FROM clm_escalation_dtl ced1
                                    WHERE escal_dt IS NOT NULL
                                      AND ccbi.claims_basic_info_id =
                                                            ced1.claim_basic_info_id
                                      AND ced1.record_status = 'A')) mem_escal,
                    (SELECT cerma.escalation_type_vid
                                                  additional_escalation_type_vid,
                              cerma.max_escal_rate
                                                         additional_max_escal_rate,
                              cerma.min_escal_rate
                                                         additional_min_escal_rate,
                              cerma.escalation_rate additional_escal_rate,
                              ccbi.claims_basic_info_id claim_basic_info_id,
                              cerma.escalation_basis_vid
                                                  additional_esclation_basis_vid,
                              mi_claims_pkg.clm_get_escalation_date_fnc
                                  (ccbi.claims_basic_info_id,
                                    cpd.escal_applies_to_vid,
                                    1,
                                    cpd.escal_applies_to_day,
                                    cpd.escal_applies_to_month_vid,
                                    ccbi.event_dt,
                                    ccbi.clm_acceptance_dt
                                  ) first_escal_dt,
                              NULL escal_dt
                        FROM clm_claims_basic_info ccbi,
                              clm_claim_scheme_dtl ccsd,
                              clm_plan_dtl cpd,
                              clm_escalation_dtl cede,
                              com_escalation_rate_mst cerma
                      WHERE ccbi.claims_basic_info_id =
                                                            ccsd.claim_basic_info_id
                         AND ccsd.plan_id = cpd.plan_id
                         AND cede.claim_basic_info_id(+) =
                                                          ccbi.claims_basic_info_id
                         AND cede.escal_dt IS NULL
                         AND cpd.is_escal_apply_id = 'Y'
                         AND ccbi.product_id = 4
                         AND cerma.product_id = ccbi.product_id
                         AND cerma.escalation_basis_vid =
                                                          cpd.escal_addben_rate_vid
                         AND (   (    ccbi.claim_status_vid = 2880
                                     AND ccbi.event_dt
                                              BETWEEN cerma.effective_from
                                                    AND NVL (cerma.effective_to,
                                                                TO_DATE ('31122999',
                                                                            'DDMMYYYY'
                                OR (    ccbi.claim_status_vid != 2880
                                     AND cede.first_escal_dt
                                              BETWEEN cerma.effective_from
                                                    AND NVL (cerma.effective_to,
                                                                TO_DATE ('31122999',
                                                                            'DDMMYYYY'
                         AND (   (    cpd.escal_addben_rate_vid = 2334
                                     AND cpd.escal_addben_perc =
                                                                cerma.escalation_rate
                                OR (    cerma.escalation_type_vid IN
                                                                  (3962, 3963, 4442)
                                     AND cerma.escalation_value_by_vid = 4299
                                OR (    cpd.escal_addben_rate_vid != 2334
                                     AND cerma.escalation_type_vid = 3961
                                OR (cerma.escalation_type_vid IS NULL)
                         AND ccbi.record_status = 'A'
                         AND cpd.record_status = 'A'
                         AND ccsd.record_status = 'A'
                         AND cede.record_status(+) = 'A'
                         AND cerma.record_status = 'A'
                         AND NOT EXISTS (
                                  SELECT 'X'
                                     FROM clm_escalation_dtl ced1
                                    WHERE escal_dt IS NOT NULL
                                      AND ccbi.claims_basic_info_id =
                                                            ced1.claim_basic_info_id
                                      AND ced1.record_status = 'A')) add_escal
            WHERE mem_escal.claim_basic_info_id = add_escal.claim_basic_info_id(+)
          UNION ALL
          SELECT cedo.member_escalation_type_vid
                                                        member_escalation_type_vid,
                    cedo.member_max_escal_rate member_max_escal_rate,
                    cedo.member_min_escal_rate member_min_escal_rate,
                    cedo.member_escal_rate member_escal_rate,
                    cedo.claim_basic_info_id claim_basic_info_id,
                    cedo.member_esclation_basis_vid
                                                        member_esclation_basis_vid,
                    cedo.additional_escalation_type_vid
                                                  additional_escalation_type_vid,
                    cedo.additional_max_escal_rate
                                                         additional_max_escal_rate,
                    cedo.additional_min_escal_rate
                                                         additional_min_escal_rate,
                    cedo.additional_escal_rate additional_escal_rate,
                    cedo.additional_esclation_basis_vid
                                                  additional_esclation_basis_vid,
                    cedo.first_escal_dt first_escal_dt,
                    cedo.escal_dt escal_dt
             FROM clm_escalation_dtl cedo
            WHERE (cedo.escal_dt, cedo.claim_basic_info_id) =
                        (SELECT   MAX (cedi.escal_dt),
                                     cedi.claim_basic_info_id
                              FROM clm_escalation_dtl cedi
                             WHERE cedi.escal_dt IS NOT NULL
                                AND cedi.escal_dt <= '24-OCT-2013'
                                AND cedi.claim_basic_info_id =
                                                            cedo.claim_basic_info_id
                                AND cedi.record_status =
                                                              'A'
                         GROUP BY cedi.claim_basic_info_id)
              AND cedo.record_status = 'A') ced
    WHERE ccbi.policy_id = npm.policy_id
    AND ccbi.GROUP_ID = cgm.GROUP_ID
    AND ccbi.product_id = cpm.product_id
    AND ccbi.claims_basic_info_id = cmd.claims_basic_info_id(+)
    AND ccbi.claims_basic_info_id = ca.claim_basic_info_id(+)
    AND ccbi.claims_basic_info_id = ccsd.claim_basic_info_id(+)
    AND ccsd.plan_id = cpd.plan_id(+)
    AND ccbi.claims_basic_info_id = ced.claim_basic_info_id(+)
    AND ccbi.record_status = 'A'
    AND npm.record_status = 'A'
    AND cgm.record_status = 'A'
    AND cpm.record_status = 'A'
    AND cmd.record_status(+) = 'A'
    AND ca.record_status(+) = 'A'
    AND cpd.record_status(+) = 'A'
    And Ccsd.record_status(+) = 'A'
    AND ccbi.claim_number  = 'DAX001';

    I would assume this means that it can't find that column in that table.
    Usually this is because the column isn't there, the table/view isn't there, or there's no select permissions to the table/view.
    To try to narrow this down try:
    SELECT CERMA.EFFECTIVE_TO FROM com_escalation_rate_mst cerma
    SELECT CERMA.EFFECTIVE_TO FROM com_escalation_rate_mst@db2 cerma
    If the synonym and view names are the same, try the first query in both databases or adjust as necessary.
    It could also be a permissions issue, like maybe the schema the link uses to DB2 doesn't have select permissions to that view?
    As far as to why it stopped working, I have no idea.
    You can approach this from bottom up (start with the tables on DB2 and move up)
    or top down (start with the synonyms on DB1 and move down)
    That will give you an idea of where the issue lies.

  • How to implement enter-query , execute-query in Apex Forms

    Hi,
    I am new to Oracle Application Express. I want to know what is the equivalent of ENTER-QUERY and EXECUTE-QUERY features of Oracle Forms in Oracle APEX? I saw a lot of documentation, but everywhere I found that APEX forms only have 3 database actions, (1) INSERT (2) UPDATE & (3) DELETE.
    Does anybody know how we can do QUERY in APEX Forms? (like we do in Oracle Developer Forms).
    Thanks in advance.

    Oracle APEX is a web/ stateless environment. So you do not have the same functionality/ features as in a Oracle Forms environment which is session/state oriented.
    You can however achieve functionality similar to Enter Query / Execute Query through other means.
    The easiest is to use the Forms with Report wizard. It creates 2 pages, the first one is a report and the other a Form. Clicking on the Report rows takes you to the Form page in Edit mode where as the the Create button takes you to the Form in Insert mode.
    If you want to have the enter-query / execute query on a single page it will require significant effort and skills. Try it when you have acquired some more skills in Apex.
    In APEX , like any other web application, you have to think in the web paradigm and not client-server. Even Forms 11g is essentially client-server like and is session oriented through the forms applet.
    Regards,

  • SQL Query Executing longer time

    Hi , The below SQL query executing longer time . Please help to Improve the query performance. The query continuously running for more than 24 hours and failing with roolback segment error. Not getting the final output. Most of the tables are having milions of records.
    Select distinct
    IBS.ADSL_ACCESS_INFO,
    IBS.LIJ ,
    regexp_substr(OBVS.REFERENTIE_A,'[[:digit:]]+') as O_NUMBER,
    DBS.CKR_NUMMER_CONTRACTANT,
    DBS.DNUMBER
    FROM CD.IBS,
    CD.OIBL,
    CD.IH,
    CD.ODL,
    CD.OH,
    CD.DBS,
    CD.OBVS
    Where IBS.END_DT = To_Date('31129999', 'ddmmyyyy')
    AND OIBL.END_DT = to_date('31129999', 'ddmmyyyy')
    AND DBS.END_DT = to_date('31129999', 'ddmmyyyy')
    AND OBVS.END_DT = to_date('31129999', 'ddmmyyyy')
    AND OBVS.REFERENTIE_A LIKE 'OFM%'
    AND OIBL.INFRA_KEY = IH.INFRA_KEY
    AND OIBL.ORDERS_KEY = OH.ORDERS_KEY
    AND IBS.INFH_ID = IH.INFH_ID
    AND ODL.ORDH_ID = OH.ORDH_ID
    AND DBS.DEBH_ID = ODL.DEBH_ID
    AND OBVS.ORDH_ID = ODL.ORDH_ID
    Order By IBS.LIJ
    All the columns which are present in the where condition are having either Index/key (Primary/unique) except END_DT column.
    Please Advise

    Predicate pushing can help when it greatlly restricts the number of rows - you must experiment - might not work with all predicates pushed (as shown here)
    select distinct
           ibs.adsl_access_info,
           ibs.lij,
           obvs.o_number,
           dbs.ckr_nummer_contractant,
           dbs.dnumber
      from (select infh_id,adsl_access_info,lij
              from cd.ibs
             where end_dt = to_date('31129999','ddmmyyyy')
           ) ibs,
           (select infra_key,orders_key
              from cd.oibl
             where end_dt = to_date('31129999','ddmmyyyy')
           ) oibl,
           (select ordh_id,regexp_substr(obvs.referentie_a,'[[:digit:]]+') as o_number
              from cd.obvs
             where end_dt = to_date('31129999','ddmmyyyy')
               and referentie_a like 'OFM%'
           ) obvs,
           (select debh_id,ckr_nummer_contractant,dnumber
              from cd.dbs
             where end_dt = to_date('31129999','ddmmyyyy')
           ) dbs,
           cd.ih,
           cd.odl,
           cd.oh
    where oibl.infra_key = ih.infra_key
       and oibl.orders_key = oh.orders_key
       and ibs.infh_id = ih.infh_id
       and odl.ordh_id = oh.ordh_id
       and dbs.debh_id = odl.debh_id
       and obvs.ordh_id = odl.ordh_id
    order by ibs.lijRegards
    Etbin

Maybe you are looking for

  • Connecting to an ipv6 ad-hoc network

    hello I am tryin to connect to an ad-hoc network with the iPad (iOS 4.2). As far as I know, from iOS 4.2, the iPad should be ipv6 capable. As my ad-hoc network is an ipv6 net, I wa pretty happy. However, when I connect to the ad-hoc net, it doesn't s

  • Upgrade oracle 9i to Oracle10g

    Now we are using a oracle9i as Production server, Now we want to upgrade the Oracle 9i into Oracle10g. I have no idiea to Upgrade the Oracle9i into 10g , Kindly advise me how to install Oracle10g in Prodcution Server and how could i allocate the tabl

  • "Clear All Messages" Idea.

    "Clear All Messages" Idea: Problem:  Over time, messsages conversations on iOS devices take up a significant amount of space. Currently, there is no option to clear all messages conversations with a single click. Solution:  Create a "Clear all Messag

  • Create simple ALV using Classes

    hi all, How to create a ALV report using Classes....? any links or feedback will be appreciated. Thanks in Advance.

  • Unable to disable "Instant On" Quicktime. ?

    Quicktime 7.6.6 Mac OSX 10.5.8 (Safari 4.0.5) (Firefox 3.6.3) Hey, I use the dashboardclient WRAdio (http://wradio.eu) to listen to streaming internet radio. Problem is that I hear lots of hickups and interruptions in the music. Their support told me