Error while collecting stale stats  dbms_stats

SQL> exec dbms_stats.gather_table_stats('CData3','OM_HEAD',cascade=>'TR
UE',options=>'GATHER STALE');
BEGIN dbms_stats.gather_table_stats('CData3','OM_HEAD',cascade=>'TRUE',
options=>'GATHER STALE'); END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'GATHER_TABLE_STATS'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredoracle version 9.2
pls suggest me for the same...
Edited by: user00726 on Feb 3, 2009 4:28 AM

there is no such variable options for gather_table_stats:
PROCEDURE GATHER_TABLE_STATS
Argument Name Type In/Out Default?
OWNNAME VARCHAR2 IN
TABNAME VARCHAR2 IN
PARTNAME VARCHAR2 IN DEFAULT
ESTIMATE_PERCENT NUMBER IN DEFAULT
BLOCK_SAMPLE BOOLEAN IN DEFAULT
METHOD_OPT VARCHAR2 IN DEFAULT
DEGREE NUMBER IN DEFAULT
GRANULARITY VARCHAR2 IN DEFAULT
CASCADE BOOLEAN IN DEFAULT
STATTAB VARCHAR2 IN DEFAULT
STATID VARCHAR2 IN DEFAULT
STATOWN VARCHAR2 IN DEFAULT
NO_INVALIDATE BOOLEAN IN DEFAULT
STATTYPE VARCHAR2 IN DEFAULT
FORCE BOOLEAN IN DEFAULT
So you can't use such variable.
Use instead gather_schema_stats with such option, it will automaticaly gather stats for all tables with stale_stats in that schema.
Or You can look into table:
dba_tab_modifications
And from there find which tables are having stale stats and gather with gather_table_stats.
Edited by: Laura Gaigala on Feb 3, 2009 2:53 PM
Edited by: Laura Gaigala on Feb 3, 2009 2:54 PM

Similar Messages

  • Error  while gather schema stats

    Hi,
    I am getting the error while gather schema stats
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    Unable to correctly update the history table - fnd_stats_hist.
    -1 - ORA-00001: unique constraint (APPLSYS.FND_STATS_HIST_U1) violated
    -Sagar

    Ariz,
    The FND_STATS package provides procedures for gathering statistics for Oracle Applications database objects. It also provides procedures
    for storing the current statistics in a table (FND_STATTAB) and restoring them back. This package also facilitates the gathering of some statistics in parallel. This package calls the DBMS_STATS package.
    The FND_STATS package also has procedures to populate the FNDSTATS_HIST_* table to record the historical information of time taken for gathering the
    statistics for the different types of objects.
    Famy

  • Error while generating remuneration statement

    Hi
    I found an error, while generating remuneration statement. The error is "Start date 01.01.1800 is higher than end date 00.00.0000".
    Kindly help
    Shadeesh

    Hi shadeesh,
    Please check the payroll control record's start date and end date in PA03
    regards,
    Ayyaps

  • Error while collecting the process chain in a transport request

    Hi Gurus,
    I am getting an error while collecting my process chain in a tranpsort request.I have to transport the request from DEV to QA system.
    When in RSA1--->transport connection i drag & drop the chain from left to right side pane then the Error occurs.
    1.Object 'REQUDELZPAK_48RZW8GZX87CNEH7S897TFQSD' (RSPV) of type 'Process Variants' is not available in version 'A'
    Sap help given
    You wanted to generate an object with the name 'ZPAK_48RZW8GZX87CNEH7S897TFQSD' (in transport request RSPT) of type 'Process Chain Starter' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    2.Object 'ZPAK_48RZW8GZX87CNEH7S897TFQSD' (RSPT) of type 'Process Chain Starter' is not available in version 'A'
    Sap help given
    You wanted to generate an object with the name 'REQUDEL   ZPAK_48RZW8GZX87CNEH7S897TFQSD' (in transport request RSPV) of type 'Process Variants' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    From one of the threads:
    (https://forums.sdn.sap.com/click.jspasearchID=10081153&messageID=4623856)
    i though it was the problem of patch level sap note(966131).
    Accordingly i tried collecting process chain in the request where the patch level is high(24).But same error is seen.
    I have activated chain again & then tried collecting the request i the process chain.But did not solve the error.
    I have to collect Process chain in a transport request.Can you help me out to solve the problem?
    Thanks in advance!
    Regards,
    Pallavi

    Hi,
    take a look:
    Data Warehousing
    "Errors occurred during post-handling RS_AFTER_IMPORT for MPRO L "
    Errors occurred during post-handling RS_AFTER_IMPORT for ROUT L
    Try to set the Process Chain Start to Immediate(background jobs) in the schedule, because this will trigger the process chain once tranported and may cause similar errors.
    Regards
    Andreas

  • Error while collecting Custom FlatFile related InfoCubes in CTS

    Hi,
    I am getting the error while collecting the FlatFile related custom InfoCube that the cube is not in the version A.  I did checked that the cube is in the Active version i.e. Revised Version = Active Version; Object Status = Active, executable.
    Any idea how to resovle this issue ?
    Here is the information on the error message.....
    Object 'PPY_C101' (CUBE) of type 'InfoCube' is not available in version 'A'
    Message no. RSO252
    Diagnosis
    You wanted to generate an object with the name 'PPY_C101' (in transport request CUBE) of type 'InfoCube' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    System Response
    The object was not taken into account in the next stage of processing.
    Thanks,

    Hi,
    I am getting the error while collecting the FlatFile related custom InfoCube that the cube is not in the version A.  I did checked that the cube is in the Active version i.e. Revised Version = Active Version; Object Status = Active, executable.
    Any idea how to resovle this issue ?
    Here is the information on the error message.....
    Object 'PPY_C101' (CUBE) of type 'InfoCube' is not available in version 'A'
    Message no. RSO252
    Diagnosis
    You wanted to generate an object with the name 'PPY_C101' (in transport request CUBE) of type 'InfoCube' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    System Response
    The object was not taken into account in the next stage of processing.
    Thanks,

  • Error while schedulingg update stat in db13

    Dear Experts,
    Please look into my issue we are facing an error while scheduling update statistics in db13 and I tried to open detailed log
    It is given
    SXPG_COMMAND_EXECUTE failed for BRTOOLS - Reason: program_start_error: For More Information, See SYS
    Please help me how to solve this my error
    Regards

    Hi,
    Check the owner for BRBACKUP, BRARCHIVE, and BRCONNECT in kernel,
    these files should be with SIDADM, if not change the owner to SIDADM and rerun the update stats.
    and also Refer the note 446172
    Regards,
    Ram

  • Error while uploading Bank Statement in FF.5

    Hello all
    I am getting the following error while uploading the Bank Statement file in FF.5-
    Termination in statement no. 00000 of acct  ; closing record 62F missing
    The file format is MT940.
    Can somebody throw some light on this message if any1 has encountered this.
    Thanks in advance
    Hrishikesh

    Hi,
    The error itself is telling u that the closing balance in the bank statement is missing. Check the MT940 format statement in that check whether field 62F is present or not. If that line is missing then system cant understand the format.
    regards
    srikanth.

  • Error while uploading Bank statement for BACS

    Hi All,
    We are facing a error while uploading a bank statement for BACs, the system is not autoposting (clearing the open items) for the BACs file. The bank statement is as below
    :20:20081015
    :25:200000/50414107
    :28:28290/01
    :60F:C081015GBP1176,45
    :61:0810151015DX448,97FDDRNONREF//
    :86:999/00DDRARVAL             1875180          
    :61:0810151015DX779,07FDDRNONREF//
    :86:999/00DDRBP OIL UK RECPS AC230679BI2898784  
    :61:0810151015DX24469,50FDDRNONREF//
    :86:999/00DDRSAPBACS0000341816               BACS
    :61:0810151015DX233018,83FDDRNONREF//
    :86:999/00DDRSAPBACS0000340411               BACS
    The last line items BACS file is not posting the document but we have manually auto cleared the document.
    Can any one let me know what has caused the error. And where to check out the setting of this.
    Thanks and Regards
    Sri

    solved myself

  • Table or view does not exists error while executing select statement

    Hi,
    I am new to Oracle. I am getting a error while executing the select statement if i give table name without double quotes.
    Ex: Select * from Customer;
    But working fine when the table name is enclosed within a double quotes.
    Ex: Select * from "Customer";
    Is there any way to execute the select statement without the double quotes?
    Actually I am using NHibernate objects for data access.
    Thanks,
    Sai

    Actually I am using NHibernate objects for data access.And probably that's the problem:
    SQL> select * from mytab;
             A
             1
    SQL> select * from mYtAb;
             A
             1
    SQL> select * from MYTAB;
             A
             1
    SQL>  select * from MYTAb;
             A
             1Oracle statements are case insensitive and doesn't require double quotes unless the object names are reserved words.
    As wrote by others if table is created using double quotes it's name bacomes case-sensitive... and this could be the problem...
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/02/05/gestione-degli-errori-in-sql-con-log-errors/]
    Edited by: Massimo Ruocchio on Feb 5, 2010 7:08 PM
    Added last comment..

  • Runtime error while collecting objects for activaton from  BC

    Hi gurus,
    While collecting objects from busines content for installation, it is giving runtime error whith below description.
    "UNCAUGHT_EXCEPTION" "CX_RSD_NAME_ERROR"               
    "SAPLRSDN_IOBJ" or "LRSDN_IOBJU35"               
    "RSD_IOBJNM_PARSE"               
    R3TR     FUGR     RSDN_IOBJ     
    An exception occurred which is explained in detail below.               
    The exception, which is assigned to class 'CX_RSD_NAME_ERROR', was not caught               
      and               
    therefore caused a runtime error.               
    The reason for the exception is:               
    Name 0SRVE_IS3___F00133 is invalid               
    Pl spot light on this .
    Thanks in advance.
    Message was edited by:
            sri sri

    Hi Sri / Vach,
    this note can help you and implement the same
    1102743 - Dump during activation of business content
    Thanks
    kishore

  • Error while replacing IF statements with DECODE function in procedure

    Hi All,
    I have created a procedure which has nested IF statements. Now I want to replace the IF statements with DECODE functions to improve performance.
    Procedure:
    IF (var_int_sev = '0')
    THEN
    var_sev := '2';
    ELSE
    SELECT sev
    INTO var_int_sev
    FROM errorconfig
    WHERE errorcode = var_errorcode;
    var_sev := var_int_sev;
    END IF;
    I converted the above IF statement into DECODE function as mentioned below:
    var_Sev := DECODE(var_int_sev,0,2,SELECT severity FROM errorconfig WHERE errorcode=var_ErrorCode)
    But it throws below error at the select statement used inside DECODE.
    Error(58,51): PLS-00103: Encountered the symbol "SELECT" when expecting one of the following: ( - + case mod new not null others <an identifier> <a double-quoted delimited-identifier> <a bind variable> avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date <a string literal with character set specification> <a number> <a single-quoted SQL string> pipe <an alternatively-quoted string literal with character set specification> <an alternativ
    Can someone help me in converting the IF to DECODE in the above case. Also how can we use a select statement inside decode.

    instead of trying to rewrite all your code and hoping that the performance will be better, it's a better option to investigate and find out which part of your application is slow
    read this:
    When your query takes too long ...

  • Error while collecting files in AE CS3 - You do not have permission to open this file (-54)

    I've got a rather large project that I'm attempting to collect.  35,000+ files to collect (lots of image sequences as footage), totaling near 80GB.  The collect process starts and copies files for a while, but inevitably errors out during the copy procedure with the error "You do not have permission to open this file" -- a different file each attempt.
    I'd read some complaints of a similar error last year due to QT 7.4, but I'm on the current Quicktime (7.6.4).
    Anyone seen this before?  What can I do!?  Thanks in advance for any ideas.
    --Rob LaRose
      Imaginary Forces

    Well, we're just a small shop, but since it usually falls upon me to administrate, here's a few general tips:
    Hide all resources that are not meant to be accessed by certain people. This can be done easily by using different sub-nets on your network and defining access privileges. Write down the network MAC addresses and use a whitelist/ blacklist. A bit of work initially, but a lot safer than working with user names.
    Forget about individual user privileges. At one point or another everyone will bump into situations where they cannot access stuff, but need it for their work. Simply ramp up all users to Power User status, but assign individual groups to them which only you can manage. That leaves it up to you to define who can access what, but without having to dig so deep that you always end up with individual adjustments. You merely add or remove users from groups (which is more practical for interns and freelancers, even)
    Quota can do miracles for you. If a user only has x GB of storage available, he'll quickly learn to not create redundant data by copying files.
    Prevent all local storage. Artists have a tendency to offline files at whim for experimentation and then forget about it. Give them a "garbage dump" directory on the server instead where they can store their private data and any non-persistent work files, but with quota. Use server-side desktops and user home directories, if possible, but unfortunately many programs cause problems with that (including Adobe's), so it's not always an option.
    For each new project, create a pre-defined folder structure. We e.g. use number_clientname_worktype_year for the root, and inside have directories for compositing, 3D stuff, print, client data etc.. Define it so from the getgo, that specific structures like project directories for 3D programs with their sub-folders for textures etc. are in place, but users cannot create additional folders. When they are forced to use existing folders, they will be much more careful in naming their files.
    Define versioning rules and naming conventions. Now "siginificant milestone" is a matter of view, but I at least try to create new version files for that. So if e.g in the morning I open up a comp project and change a few things in it that take more than 10 minutes to reproduce, this is significant and a new version is safed. I don't care much for simple things like adding effects - I can reproduce them in a wee in case of crashes or data loss - but complex masking, elaborate 3D modeling, dynamics simulations etc. qualify.
    Of course back up every day, at least incrementally. If following the above rules, this can be as easy as copying the project folder to an external disk.
    As for the rest - simply be hard-nosed. Your artists will whine and complain for a while, but they will get used to it and eventually see the wisdom in a regulated system. It's also up to you to brief them accordingly and remind them from time to time.
    Mylenium

  • ORA 900 error while executing MERGE statement

    Hi All,
    I am using Oracle 11 Rg1.
    I have a summarization process running daily where the process of execution is as follows:-
    1. Data loads every 10 min into a transaction table from external dat files
    2. I have a package with 13 stored procedures - each procedure has a MERGE logic to summarize data from the above table into a summarization table. Each procedure select data depending on the business requirement
    3. A wrapper file is invoked by a crontab daily to execute each procedue in the above package sequentially
    4. Each of the 13 procs is executed and data summarized daily into the summarization tables
    From a few days, I have been getting a strange error - where 5 of the stored procs are failing with the error code and description as ORA 900 - invalid sql statement. The structure of all the 13 procs is the same. The only difference is in the MERGE logic WHERE clauses.
    Due to some data loss occurence I introduced conditions the WHERE clause that take into account pl/sql variables.
    I shall paste one procedure here and provide additional details as the discussion progress to avoid making this first post very lengthy.
    This logic is failing with ORA 900 when invoked from the wrapper in unix as :-
    exec PKG_ODS_AV_SUMMARY.SP_LOAD_ODS_AV_SUMMARY_BYSRCCD(sysdate-1,'');
    create or replace PACKAGE PKG_AV_SUMMARY AS
      PROCEDURE SP_LOAD_SUMMARY_BYSRCCD (pv_sum_enddate IN DATE, pv_summm_type_indicator IN VARCHAR2);
    END PKG_AV_SUMMARY;
    create or replace
    PACKAGE BODY PKG_AV_SUMMARY AS
    --Girish:07June2011 global variables
    -- Declaring package variables to hold common constant values
    c_status_inprogress VARCHAR2(50) := PKG_SUMMARY_COMMON.FN_GET_CONSTANTVALUE('SUMMARIZATION','ODSSUMMARYPARAMETERSSTATUS_INPROGRESS');
    c_status_success VARCHAR2(50) := PKG_SUMMARY_COMMON.FN_GET_CONSTANTVALUE('SUMMARIZATION','ODSSUMMARYPARAMETERSSTATUS_SUCCESS');
    c_status_failure VARCHAR2(50) := PKG_SUMMARY_COMMON.FN_GET_CONSTANTVALUE('SUMMARIZATION','ODSSUMMARYPARAMETERSSTATUS_FAILURE');
    c_summaryType_fullLoad VARCHAR2(50) := PKG_SUMMARY_COMMON.FN_GET_CONSTANTVALUE('SUMMARIZATION','ODSSUMMARYPARAMETERSSUMMTYPE_FULL');
    c_summaryType_incrementLoad VARCHAR2(50) := PKG_SUMMARY_COMMON.FN_GET_CONSTANTVALUE('SUMMARIZATION','ODSSUMMARYPARAMETERSSUMMTYPE_INCR');
    c_errordesc_summparamisN VARCHAR2(100) := PKG_SUMMARY_COMMON.FN_GET_CONSTANTVALUE('SUMMARIZATION','ODSSUMMARYPARAMETERSERRORDESC_SUMMPARAMISN');
    PROCEDURE SP_LOAD_SUMMARY_BYSRCCD (pv_sum_enddate IN DATE, pv_summm_type_indicator IN VARCHAR2)
    AS
    lv_table_name VARCHAR2(30) := 'AV_SUMMARY_BYSRCCD';
    ln_count NUMBER;
    lv_summarizationrequired VARCHAR2(2);
    lv_summm_type_indicator VARCHAR2(5);
    lv_sum_startdate DATE;
    lv_sum_enddate DATE;
    lv_partitioned_start_date DATE;
    lv_partitioned_end_date DATE;
    ln_errorcode NUMBER;
    lv_errormsg VARCHAR2(200);
    e_exception exception;
    BEGIN
    -- lv_summm_type_indicator is used as IN OUT parameter for SP_INS_SUMMARY_PARAMETERS procedure.
    lv_summm_type_indicator := pv_summm_type_indicator;
    PKG_SUMMARY_COMMON.SP_INS_SUMMARY_PARAMETERS(lv_table_name, pv_sum_enddate, lv_summm_type_indicator,
    lv_sum_startdate, lv_sum_enddate, ln_errorcode, lv_errormsg);
    --raise e_exception;
    IF ( lv_errormsg IS NOT NULL or LENGTH(lv_errormsg) <> 0 ) THEN
         raise e_exception;
    END IF;
    lv_summarizationrequired := PKG_SUMMARY_COMMON.FN_fetch_summarizationRequired(lv_table_name);
    IF( lv_summarizationrequired = 'Y' ) THEN
    BEGIN
    IF( lv_summm_type_indicator = c_summaryType_fullLoad) THEN
    PKG_SUMMARY_COMMON.SP_FETCH_PARTITION_DATE('ARTICLE_VIEWS',lv_sum_startdate,lv_sum_enddate,lv_partitioned_start_date,lv_partitioned_end_date);
    ELSE
    lv_partitioned_start_date := lv_sum_startdate;
    lv_partitioned_end_date := lv_sum_enddate;
    END IF;
    MERGE INTO av_summary_bysrccd
    USING
    (SELECT LAST_DAY(TRUNC(to_timestamp(os.requestdatetime, 'yyyymmddhh24:mi:ss.ff4'))) AS SUMMARY_DATE,
    os.acctnum,
    ol.sourcecode AS sourcecode,
    ol.sourcename AS sourcename,
    count(1) cnt_articleview
    FROM article_views os , master_sourcecode ol
    where os.sourcecode = ol.sourcecode
    AND os.acctnum IS NOT NULL
    AND ol.sourcecode IS NOT NULL
    AND os.requestdatetime IS NOT NULL
    AND UPPER(os.success_ind) = 'S'
         AND (
              (lv_summm_type_indicator  = c_summaryType_fullLoad
              AND  (get_date_timestamp(os.requestdatetime) BETWEEN lv_sum_startdate AND lv_sum_enddate
              AND   os.entry_CreatedDate BETWEEN lv_partitioned_start_date AND lv_partitioned_end_date
              OR (lv_summm_type_indicator = c_summaryType_incrementLoad
              AND os.entry_createddate BETWEEN lv_sum_startdate AND lv_sum_enddate )
    group by LAST_DAY(TRUNC(to_timestamp(os.requestdatetime, 'yyyymmddhh24:mi:ss.ff4'))),
    os.acctnum,ol.sourcecode,ol.sourcename) mrg_query
    ON (av_summary_bysrccd.acctnum = mrg_query.acctnum AND
    av_summary_bysrccd.summary_date=mrg_query.summary_date AND
    av_summary_bysrccd.sourcecode=mrg_query.sourcecode)
    WHEN NOT MATCHED THEN
    INSERT (SUMMARY_date,ACCTNUM,SOURCECODE,SOURCENAME,CNT_ARTICLEVIEW,ENTRY_LASTUPDATEDDATE)
    VALUES(mrg_query.summary_date,mrg_query.acctnum,mrg_query.sourcecode,mrg_query.sourcename,
    mrg_query.cnt_articleview,sysdate)
    WHEN MATCHED THEN
    UPDATE SET ods_av_summary_bysrccd.cnt_articleview=
    CASE WHEN NVL(lv_summm_type_indicator,c_summaryType_incrementLoad) = c_summaryType_fullLoad THEN mrg_query.cnt_articleview
    ELSE av_summary_bysrccd.cnt_articleview+mrg_query.cnt_articleview
    END,
    av_summary_bysrccd.entry_lastupdateddate=sysdate;
    PKG_SUMMARY_COMMON.SP_UPD_SUMMARY_PARAMETERS(lv_table_name,c_status_inprogress,c_status_success,'');
    END;
    ELSE
    PKG_SUMMARY_COMMON.SP_UPD_SUMMARY_PARAMETERS(lv_table_name,c_status_inprogress,c_status_failure,c_errordesc_summparamisN);
    END IF;
    COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
    BEGIN
    ROLLBACK;
    lv_errormsg := SQLERRM;
    ln_errorcode := SQLCODE;
    ln_count := PKG_SUMMARY_COMMON.FN_GET_COUNTOFTABLEINSUMMPARAM(lv_table_name,c_status_inprogress);
    IF ( ln_count <> 0 ) THEN
    PKG_SUMMARY_COMMON.SP_UPD_SUMMARY_PARAMETERS(lv_table_name,c_status_inprogress,c_status_failure,lv_errormsg);
    END IF;
    COMMIT;
    raise_application_error(-20004,lv_errormsg);
    END;
    END SP_LOAD_SUMMARY_BYSRCCD;
    END PKG_AV_SUMMARY;Edited by: Chaitanya on Aug 29, 2011 1:56 AM
    Edited by: Chaitanya on Aug 29, 2011 2:06 AM

    Hi Sven,
    Unfortunately, requestdatetime is a varchar2 column. The source table which has this column had been created a long back and recently we have started to take care of this issue by loading data after converting it into date format.
    We have managed to locate the place in the logic where the error is occuring, but not why it might be occuring. Its due to the logic:-
         AND (
              (lv_summm_type_indicator  = c_summaryType_fullLoad
              AND  (get_date_timestamp(os.requestdatetime) BETWEEN lv_sum_startdate AND lv_sum_enddate
              AND   os.entry_CreatedDate BETWEEN lv_partitioned_start_date AND lv_partitioned_end_date
              OR (lv_summm_type_indicator = c_summaryType_incrementLoad
              AND os.entry_createddate BETWEEN lv_sum_startdate AND lv_sum_enddate )
         )When I hardcoded the values for lv_summm_type_indicator, c_summaryType_fullLoad and c_summaryType_incrementLoad, the logic worked fine:
         AND (
              ('INCR'  = 'FULL'
              AND  (get_date_timestamp(os.requestdatetime) BETWEEN lv_sum_startdate AND lv_sum_enddate
              AND   os.entry_CreatedDate BETWEEN lv_partitioned_start_date AND lv_partitioned_end_date
              OR ('INCR'  = 'INCR'
              AND os.entry_createddate BETWEEN lv_sum_startdate AND lv_sum_enddate )
         )But, the data for the pl sql variables is coming properly as I used dbms_output statements to check. So not sure what exactly is happening.

  • Error while uploading Bank Statement using FF_5 with Multi Cash Option

    Hi
    I am trying to upload the Bank Statement in FF_5 screen with Multicash (MC) option and am facing the information message that Account XXXX  YYYY EUR : Statement 201100059 is not in the bank data storage. This is for the Germany Country Company Codes.
    Here XXXX is the Bank Key and YYYY is the Bank Account Number defined in the House Bank configuration (FI12) for our Company Code ABC in Germany. However, when I double click the information, I get the following error message :
    No EUR House Bank Account AAAA / BBBB exists (message can be customised). But the AAAA is the House Bank and BBBB is the Bank Account Number in our other Germany Company Code XYZ.
    This has become a go-live stopper scheduled in the next two days. Can someone guide me and help me in overcoming this problem.
    Also, let me know in case it has anything to do with the Define Search String for Electronic Bank Statement ? If so, please help me in configuring the same.
    Thanks a lot for the prompt support.
    Regards
    Gemini

    No, the issue is not search string related.  Search strings are only related to transactions and not run until the transactions are processed.  The program has to validate the bank accounts before it can process any transactions.  Based on the error messages, the program isn't able to validate the bank accounts.
    What is the message number?  Are you saying that the short text is referencing one bank account and the long text references a different bank account?  Does either account ID in FI12 have the alternate account field filled in?  If the alternate account field is filled, FF_5 will use that instead of the account number in determining the house bank/acct ID.
    Regards,
    Shannon

  • Error while trying to run DBMS_STAT.GATHER_TABLE_STATS

    Hi Gurus,
    I am trying to run DBMS_STAT.GATHER_TABLE_STATS from a procedure from a DBA role granted user I am getting the folowing error:
    ORA-20000: Unable to analyze TABLE "<SCHEMA_NAME>"."<TABLE_NAME>", insufficient privileges or does not exist
    ORA-06512: at "SYS.DBMS_STATS", line 13046
    ORA-06512: at "SYS.DBMS_STATS", line 13076
    ORA-06512: at line 2
    Is I am missing something?
    Please help...
    //saby

    It's a quite common problem...
    Privileges granted through roles doesn't work inside stored procedures. So the DBA role it's not working inside procedure.
    See Metalink Note 168168.1.
    If you want to run dbms_stats.gather_table_stats from inside procedure,
    you need to grant "ANALYZE ANY" directly to this user.
    Thanks
    Tomasz K.

Maybe you are looking for