Update Statistics

Hello Experts,
How can I update the statistics of Table and Index which one on Schema ADMIN and table name is TEST and index name is CDATE
Regards
Asif

Here is a small example how this could be done (assuming CDATE is a index on TEST table):
SQL> connect admin/admin
Connected.
SQL> create table test(x int, y varchar2(10));
Table created.
SQL> create index cdate on test(y);
Index created.
SQL> connect / as sysdba
Connected.
SQL> exec dbms_stats.gather_table_stats(ownname=>'ADMIN', tabname=>'TEST', cascade=>TRUE);
PL/SQL procedure successfully completed.
SQL> connect admin/admin
Connected.
SQL> select table_name, last_analyzed from user_tables;
TABLE_NAME                     LAST_ANA
TEST                           26/07/11
SQL> select index_name, last_analyzed from user_indexes;
INDEX_NAME                     LAST_ANA
CDATE                          26/07/11Edited by: P. Forstmann on 26 juil. 2011 13:46

Similar Messages

  • IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan

    Hi Experts,
    IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan for Daily/weekly??
    Vinai Kumar Gandla

    Hi Vikki,
    Many systems rely solely on SQL Server to update statistics automatically(AUTO UPDATE STATISTICS enabled), however, based on my research, large tables, tables with uneven data distributions, tables with ever-increasing keys and tables that have significant
    changes in distribution often require manual statistics updates as the following explanation.
    1.If a table is very big, then waiting for 20% of rows to change before SQL Server automatically updates the statistics could mean that millions of rows are modified, added or removed before it happens. Depending on the workload patterns and the data,
    this could mean the optimizer is choosing a substandard execution plans long before SQL Server reaches the threshold where it invalidates statistics for a table and starts to update them automatically. In such cases, you might consider updating statistics
    manually for those tables on a defined schedule (while leaving AUTO UPDATE STATISTICS enabled so that SQL Server continues to maintain statistics for other tables).
    2.In cases where you know data distribution in a column is "skewed", it may be necessary to update statistics manually with a full sample, or create a set of filtered statistics in order to generate query plans of good quality. Remember,
    however, that sampling with FULLSCAN can be costly for larger tables, and must be done so as not to affect production performance.
    3.It is quite common to see an ascending key, such as an IDENTITY or date/time data types, used as the leading column in an index. In such cases, the statistic for the key rarely matches the actual data, unless we update the Statistic manually after
    every insert.
    So in the case above, we could perform manual statistics updates by
    creating a maintenance plan that will run the UPDATE STATISTICS command, and update statistics on a regular schedule. For more information about the process, please refer to the article:
    https://www.simple-talk.com/sql/performance/managing-sql-server-statistics/
    Regards,
    Michelle Li

  • How to check/verify running sql in lib cache is using updated statistics of table

    How to check/verify running sql in lib cache is using updated statistics of table used in from clause.
    one of my application table is highly busy i.e frequent update/insert/delete.
    we gather table stats every 30 min.

    Hello, "try dynamic sampling" = think "outside the box", maybe hit two birds with same stone.
    As a matter of fact, I was just backing up your statement: "30 minutes seems pretty extreme"
    cheers

  • Update statistics with 640_EX2 kernel

    Hello,
    I'm no longer able to do UPD_CHECK, UPD_COND and UPD_UNCOND since upgrading to a 640_EX2 kernel.
    This happens on WebAS 6.20 on Linux IA32 and on WebAS 6.40 on Linux X86_64. Scheduling backups and verifys still works from db13. MaxDB version is 7.6.4.07. The problem exists with versions 120 and 212 of dbadaslib.so.
    Are these commands working for anyone? I suspect this could be one of these nice C++ ABI incompatibility problems, because libSQLDBC76.so is linked against libstdc+.so.5 and dbadaslib.so is linked against libstdc.so.5 and libstdc+.so.6.
    Since I am on an unsupported Linux distro I would like to know whether this happens on supported distros, too.
    Thank you,
    Sebastian

    Thank you for pointing me to the logs again, I scanned them too superficially last time.
    This is written to the trace file of a batch process:
    C  Starting Update Statistics on connection 2 ...     
    C  *** ERROR => connection for UPDSTAT is not available
    [dbupdsdb.cpp 140]
    This is interesting, because the connection test in db59 is successful for all 4 types of connections.

  • SQL 2008 R2 Best Practices for Updating Statistics for a 1.5 TB VLDB

    We currently have a ~1.5 TB VLDB (SQL 2008 R2) that services both OLTP and DSS workloads pretty much on a 24x7x365 basis. For many years we have been updating statistics (full scan- 100% sample size) for this VLDB once a week on the weekend, which
    is currently taking up to 30 hours to complete.
    Somewhat recently we have been experiencing intermitent issues while statistics are being updated, which I doubt is just a coincidence. I'd like to understand exactly why the process of updating statistics can cause these issues (timeouts/errors). My theory
    is that the optimizer is forced to choose an inferior execution plan while the needed statistics are in "limbo" (stuck between the "old" and the "new"), but that is again just a theory. I'm somewhat surprised that the "old" statistics couldn't continue to
    get used while the new/current statistics are being generated (like the process for rebuilding indexes online), but I don't know all the facts behind this mechanism yet so that may not even apply here.
    I understand that we have the option of reducing the sample percentage/size for updating statistics, which is currently set at 100% (full scan).  Reducing the sample percentage/size for updating statistics will reduce the total processing time, but
    it's also my understanding that doing so will leave the optimizer with less than optimal statistics for choosing the best execution plans. This seems to be a classic case of not being able to have one’s cake and eat it too.
    So in a nutshell I'm looking to fully understand why the process of updating statistics can cause access issues and I'm also looking for best practices in general for updating statistics of such a VLDB. Thanks in advance.
    Bill Thacker

    I'm with you. Yikes is exactly right with regard to suspending all index optimizations for so long. I'll probably start a separate forum thread about that in the near future, but for now lets stick to the best practices for updating statistics.
    I'm a little disappointed that multiple people haven't already chimed in about this and offered up some viable solutions. Like I said previously, I can't be the first person in need of such a thing. This database has 552 tables with a whole lot more statistics
    objects than that associated with those tables. The metadata has to be there for determining which statistics objects can go (not utilized much if at all so delete them- also produce an actual script to delete the useless ones identified) and what
    the proper sample percentage/size should be for updating the remaining, utilized statistics (again, also produce a script that can be used for executing the appropriate update statistics commands for each table based on cardinality).
    The above solution would be much more ideal IMO than just issuing a single update statistics command that samples the same percentage/size for every table (e.g. 10%). That's what we're doing today at 100% (full scan).
    Come on SQL Server Community. Show me some love :)
    Bill Thacker

  • Updating statistics after insert

    Is it possible, without creating a custom post-map process, to update statistics after inserting rows into a table. I've tried setting different parameters within OWB to no avail.
    Please respond only if you have actually succeeded in updating statistics without writing code. I've already read the docs and experimented.
    Thanks.
    Garrett

    Hi,
    why do you think so? The analyze configuration
    results in a procedure which calls
    WB_RT_MAPAUDIT_UTIL_INVOKER for each target table
    which then calls the DBMS_STATS-Package? What is
    misssing for the CBO? I'm a little bit confused?!
    Regards,
    DetlefThanks for the info. I'm a little confused. I thought that I had the analyze table box checked in the configuration and statistics were not updated. However, when I looked again, it was not checked. My error. Ran another test and statistics were updated. Sorry for the confusion.
    G.

  • PeopleSoft Database Update Statistics

    I am trying to find out what is the best practices for implementing the Update statistics on Psoft Database. Any help or documentation regarding will be a great help
    I am looking for
    what is the best practice for update statistics on oracle , Intervals , Tables , do we need to include any custom script to generate and include all big tables.

    I was the one who designed the pscbo_stats package to leverage the statistics collection techniques used in EBS and Seibel. (Mr. Sierra was the wizard who coded it.) I just noticed this thread and wanted to comment.
    If you are using the pscbo_stats, the gather_schema_stats() procedure will by default gather only stale statistics, so it can be run regularly. I suggest weekly. You can follow the contents of the pscbo_log table for historical data for all (non-dynamic) stats gathering activities.
    If you find there is a table that constantly stale and forcing you to think that the schema statistics should gathered more often, you may want to have two schedules - one weekly for schema, and one more often (daily?) to capture the more volatile objects excepting, of course, those that are already dynamically sampled.
    There may be objects that are volatile enough that they should be added to the Stage Table Exception table. (see the stage_table_ins() procedure) We added that feature to configure dynamic sampling to work on volatile table - tables that are not working storage for COBOL and App Engine but are so often stale that they should be dynamically sampled.
    I find that there are a few transactional tables that work well when dynamically sampled. For example, PSTREESELECT* tables can be problematic if they are dynamically rebuilt by a nVision report book - the end points can get stale quickly. They may be a good candidate for dynamic sampling.
    Lastly, I am very interested to know user experience with the pscbo_stats package. Please post your comments to the communities.oracle.com forum for "Install/Upgrade PSFT".

  • Update statistics error in prod

    Dear Experts ,
    we are facing an error while updating statistics by using db13
    please check on log below
    18.05.2011     18:52:41     Job started
    18.05.2011     18:52:41     Step 001 started (program RSDBAJOB, variant &0000000000047, user ID BASIS)
    18.05.2011     18:52:42     No application server found on database host - rsh/gateway will be used
    18.05.2011     18:52:42     Execute logical command BRCONNECT On host PRDHOSR
    18.05.2011     18:52:42     Parameters: -u / -jid STATS20110518185240 -c -f stats -t ALL
    18.05.2011     18:53:34     BR0801I BRCONNECT 7.00 (40)
    18.05.2011     18:53:34     BR1304W Checking SAP license failed at location BrLicCheck-108
    18.05.2011     18:53:34     BR0602W No valid SAP license found - please contact SAP
    18.05.2011     18:53:34     BR0805I Start of BRCONNECT processing: cefxifuy.sta 2011-05-18 18.52.44
    18.05.2011     18:53:34     BR0484I BRCONNECT log file: /oracle/PRD/sapcheck/cefxifuy.sta
    18.05.2011     18:53:34     
    18.05.2011     18:53:34     BR0280I BRCONNECT time stamp: 2011-05-18 18.52.53
    18.05.2011     18:53:34     BR0813I Schema owners found in database PRD: SAPSR3*, SAPSR3DB%
    18.05.2011     18:53:34     
    18.05.2011     18:53:34     BR0280I BRCONNECT time stamp: 2011-05-18 18.53.05
    18.05.2011     18:53:34     BR0814I Number of tables/partitions in schema of owner SAPSR3: 32818/10
    18.05.2011     18:53:34     BR0836I Number of info cube tables found for owner SAPSR3: 143
    18.05.2011     18:53:34     BR0814I Number of tables in schema of owner SAPSR3DB: 722
    18.05.2011     18:53:34     
    18.05.2011     18:53:34     BR0280I BRCONNECT time stamp: 2011-05-18 18.53.24
    18.05.2011     18:53:34     BR0815I Number of indexes/partitions in schema ofowner SAPSR3: 43208/13
    18.05.2011     18:53:34     BR0815I Number of indexes in schema of owner SAPSR3DB: 1051
    18.05.2011     18:53:34     
    18.05.2011     18:53:34     BR0280I BRCONNECT time stamp: 2011-05-18 18.53.29
    18.05.2011     18:53:34     BR0818I Number of tables found in DBSTATC for owner SAPSR3: 814
    18.05.2011     18:53:34     
    18.05.2011     18:53:34     BR0280I BRCONNECT time stamp: 2011-05-18 18.53.29
    18.05.2011     18:53:34     BR0807I Name of database instance: PRD
    18.05.2011     18:53:34     BR0808I BRCONNECT action ID: cefxifuy
    18.05.2011     18:53:34     BR0809I BRCONNECT function ID: sta
    18.05.2011     18:53:34     BR0810I BRCONNECT function: stats
    18.05.2011     18:53:34     BR0812I Database objects for processing: ALL
    18.05.2011     18:53:34     BR0851I Number of tables with missing statistics:0
    18.05.2011     18:53:34     BR0852I Number of tables to delete statistics: 0
    18.05.2011     18:53:34     BR0854I Number of tables to collect statistics without checking: 0
    18.05.2011     18:53:34     BR0855I Number of indexes with missing statistics: 0
    18.05.2011     18:53:34     BR0856I Number of indexes to delete statistics: 0
    18.05.2011     18:53:34     BR0857I Number of indexes to collect statistics: 0
    18.05.2011     18:53:34     BR0853I Number of tables to check (and collect ifneeded) statistics: 33537
    18.05.2011     18:53:34     BR0126I Unattended mode active - no operator confirmation required
    18.05.2011     18:53:34     
    18.05.2011     18:53:34     BR0280I BRCONNECT time stamp: 2011-05-18 18.53.31
    18.05.2011     18:53:34     BR0817I Number of monitored/modified tables in schema of owner SAPSR3: 32818/1055
    18.05.2011     18:53:34     BR0817I Number of monitored/modified tables in schema of owner SAPSR3DB: 722/8
    18.05.2011     18:53:34     BR0280I BRCONNECT time stamp: 2011-05-18 18.53.33
    18.05.2011     18:53:34     BR0301E SQL error -2132 at location thr_db_connect-3, SQL statement:
    18.05.2011     18:53:34     'ENABLE THREADS'
    18.05.2011     18:53:34     SQL-02132: Message 2132 not found; No message file for product=precomp, facility
    18.05.2011     18:53:34     BR0310E Connect to database instance PRD failed
    18.05.2011     18:53:34     
    18.05.2011     18:53:34     BR0806I End of BRCONNECT processing: cefxifuy.sta2011-05-18 18.53.33
    18.05.2011     18:53:34     BR0280I BRCONNECT time stamp: 2011-05-18 18.53.34
    18.05.2011     18:53:34     BR0804I BRCONNECT terminated with errors
    18.05.2011     18:53:34     External program terminated with exit code 5
    18.05.2011     18:53:34     BRCONNECT returned error status E
    18.05.2011     18:53:34     Job finished
    please help to solve this error in production
    Regards

    Dear Experts ,
    now i got an error
    because of oracle client update statistics are failed now i required to upgrade oracle client
    please share your valiable knoledge how can i upgrade my oracle client 10.2.0.2 to 10.2.0.4, i checked note 819829 now i need your suggesitions on this activity
    and also pre - requsits to upgrade (steps)
    Regards

  • Update statistics failing in BW systems..

    Hai,
    Update statistics in BW system fails with the below error.
    Error details:
    BR0886E Checking/collecting statistics failed for index SAPCAV./BI0/F0BWTC_C02~01
    BR0280I BRCONNECT time stamp: 2009-01-15 16.28.36
    BR0882I Collecting statistics for index SAPCAV./BI0/F0BWTC_C02~02 with method/sample E/P30 ...
    BR0280I BRCONNECT time stamp: 2009-01-15 16.28.36
    BR0301E SQL error -1008 at location stats_ind_collect-3, SQL statement:
    'BEGIN DBMS_STATS.GATHER_INDEX_STATS (OWNNAME => '"SAPCAV"', INDNAME => '"/BI0/F0BWTC_C02~02"', ESTIMATE_PERCENT => 30, DEGREE => NULL, GRANULARITY => 'ALL',
    NO_INVALIDATE => FALSE); END;'
    ORA-01008: not all variables bound
    ORA-06512: at "SYS.DBMS_STATS", line 10887
    ORA-06512: at "SYS.DBMS_STATS", line 10911
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for index SAPCAV./BI0/F0BWTC_C02~02
    BR0280I BRCONNECT time stamp: 2009-01-15 16.28.36
    BR0882I Collecting statistics for index SAPCAV./BI0/F0BWTC_C02~04 with method/sample E/P30 ...
    BR0280I BRCONNECT time stamp: 2009-01-15 16.28.36
    BR0882I Collecting statistics for index SAPCAV./BI0/F0BWTC_C02~05 with method/sample E/P30 ...
    BR0280I BRCONNECT time stamp: 2009-01-15 16.28.36
    BR0301E SQL error -1008 at location stats_ind_collect-3, SQL statement:
    'BEGIN DBMS_STATS.GATHER_INDEX_STATS (OWNNAME => '"SAPCAV"', INDNAME => '"/BI0/F0BWTC_C02~05"', ESTIMATE_PERCENT => 30, DEGREE => NULL, GRANULARITY => 'ALL',
    NO_INVALIDATE => FALSE); END;'
    ORA-01008: not all variables bound
    ORA-06512: at "SYS.DBMS_STATS", line 10887
    ORA-06512: at "SYS.DBMS_STATS", line 10911
    ORA-06512: at line 1
    Server Details:
    SAP BW, Component: NW 04
    Software component: SAP_BW,Release: 350,Level: 0017
    Database system: ORACLE
    Release: 10.2.0.4.0
    Operating system: Linux
    Machine type: x86_64
    Thanks for help.
    Regards,
    Yoganand.V

    Hai,
    Please find the output of the command:
    select INDEX_NAME,PARTITION_NAME,STATUS
      2  from DBA_IND_PARTITIONS where
      3  INDEX_NAME='/BI0/F0BWTC_C02~02';
    INDEX_NAME                     PARTITION_NAME                 STATUS
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020000000005      USABLE
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020000000003      USABLE
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020000000035      USABLE
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020000000014      USABLE
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020000000023      USABLE
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020000000008      USABLE
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020000000031      USABLE
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020000000073      USABLE
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020000000074      USABLE
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020               USABLE
    /BI0/F0BWTC_C02~02             /BI0/F0BWTC_C020000000013      USABLE
    It is usable and also it is a partitioned index, according to SAP Note 1137346 shall we go ahead and apply the merge fix patch. Will that fix the problem.
    Plese suggets.

  • Update statistics failed

    Hi All,
    I am geting the following error in the DB13 update statistics jobs.
    BR0986W Index SAPRP1.DD31S~0 is unbalanced - please rebuild the index
    BR0280I BRCONNECT time stamp: 2007-10-21 06.17.05
    BR0301E SQL error -604 at location stats_ind_collect-2
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01089: immediate shutdown in progress - no operations are permitted
    BR0886E Checking/collecting statistics failed for index SAPRP1.DSYAX~0
    BR0280I BRCONNECT time stamp: 2007-10-21 06.17.05
    BR0301E SQL error -1089 at location stats_ind_collect-2
    ORA-01089: immediate shutdown in progress - no operations are permitted
    BR0886E Checking/collecting statistics failed for index SAPRP1.DSYAX~VIE
    BR0280I BRCONNECT time stamp: 2007-10-21 06.17.05
    BR0301E SQL error -3114 at location stats_ind_collect-2
    ORA-03114: not connected to ORACLE
    BR0886E Checking/collecting statistics failed for index SAPRP1.DSYBA~0
    BR0280I BRCONNECT time stamp: 2007-10-21 06.17.05
    BR0301E SQL error -3114 at location stats_ind_collect-2
    ORA-03114: not connected to ORACLE
    BR0886E Checking/collecting statistics failed for index SAPRP1.DSYBB~0
    BR0280I BRCONNECT time stamp: 2007-10-21 06.17.05
    BR0301E SQL error -3114 at location stats_ind_collect-2
    ORA-03114: not connected to ORACLE
    Please help me with it
    Thanks and regards,
    Tajinder

    'UPDATE SAP_SDBAD SET LINE = 'A 00000000 0000000000000000 00000000 00079877 00000174 00000172 00000000 00000000 00000
    Hi ALL
    i'm getting below error in db13, please help me
    ORA-03114: not connected to ORACLE
    BR0325W Writing to database log failed
    BR0280I BRCONNECT time stamp: 2013-05-06 21.44.15
    BR0301W SQL error -3114 at location thr_db_disconnect-1, SQL statement:
    'COMMIT RELEASE'
    ORA-03114: not connected to ORACLE
    BR0327W Disconnect from database instance RGP failed
    BR0806I End of BRCONNECT processing: celdhczg.sta2013-05-06 21.44.15
    BR0280I BRCONNECT time stamp: 2013-05-06 21.44.15
    BR0804I BRCONNECT terminated with errors
    External program terminated with exit code 5
    BRCONNECT returned error status E
    Job finished

  • Update statistics job

    Dear All,
    I keep getting the following error message when trying to run the update statistics job, I wanted to know what would be the best approch as it is a critical server please?
    failed with the following error: "Could not allocate space for object 'dbo.'databasename'.'PK_'''''''' in database 'databasename' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup,
    adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
    Thank you in advance!

    Thank you for your reply! there are already 2 primary files and I'm not sure if there are any implications on creating more files. One of the primary files are set to grow by 500mb with unrestricted grow and the other file with 500mb with restiricted
    grow?
    There is no need to create multiple data files if one of your data file is on RAID 10.You can create secondary data file if primary data file is on disk which is almost full .If both files are on same drive it is useless
    What you should do is disable autogrowth on one data file which seems to be large and will run out of space in near future .enable autogrowth fro data file which is small and then try running updatestats you will suceed
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • DB13 - Scheduled Update Statistics not run - Error

    Hello gurus,
    I´m faccing with an error in DB13, I scheduled Update statistics every day but it did not run due an error.
    I think this may resulted because an authorization problem.
    In /usr/sap is with this permissions:
    drwxr-xr-x  15 orad01 dba   4096 Oct 18 16:34 sap
    The /oracle/D01/sapcheck is with the following permissions:
    drwxr-xr-x  2 orad01 dba     4096 Nov 14 20:28 sapcheck
    Inside of sapcheck directory I can see the following files with permissions:
    -rw-r--r-- 1 orad01 dba       32262 Oct 14 13:16 ceeimamu.sta
    -rw-r--r-- 1 orad01 dba        2705 Oct 15 17:42 ceeisafo.sta
    -rw-r--r-- 1 orad01 dba        2705 Oct 15 17:50 ceeisazq.sta
    -rw-r--r-- 1 orad01 dba        1932 Oct 15 17:58 ceeisbie.sta
    -rw-r--r-- 1 orad01 dba        1791 Oct 15 22:16 ceeisyhm.sta
    -rw-r--r-- 1 orad01 dba        1931 Oct 15 22:24 ceeisyta.sta
    -rw-r--r-- 1 orad01 dba    19394261 Oct 15 23:45 ceeiszph.sta
    -rw-r--r-- 1 orad01 dba        1930 Nov  9 11:27 ceenjunx.sta
    -rw-r--r-- 1 orad01 dba        1790 Nov  9 11:38 ceenjvuv.sta
    -rw-r--r-- 1 orad01 dba      143103 Nov  9 11:40 ceenjwnr.sta
    -rw-r--r-- 1 d01adm sapsys      521 Nov 16 14:46 ceeosxxw.sta
    -rw-r--r-- 1 d01adm sapsys      521 Nov 16 14:49 ceeosydo.sta
    -rw-r--r-- 1 d01adm sapsys      521 Nov 16 14:54 ceeosyqi.sta
    -rw-r--r-- 1 d01adm sapsys      521 Nov 16 15:57 ceeotefd.sta
    -rw-r--r-- 1 orad01 dba       18530 Nov 16 16:27 ceeotgun.sta
    -rw-r--r-- 1 orad01 dba         996 Nov 16 16:27 connD01.log
    In DB13 at details error, it show the following statements:
    Job executado
    Etapa 001 executada (program.RSDBAJOB, variante &0000000000016, nome usuário XNSJAD)
    Execução do comando lógico BRCONNECT No host segoviad04
    Parâmetros: -u / -jid STATS20101123153214 -c -f stats -t ALL
    BR0801I BRCONNECT 7.20 (7)
    BR0301E SQL error -2133 at location BrOraThrEnable-1, SQL statement:
    'ENABLE THREADS'
    BR0806I End of BRCONNECT processing: ceeqbmqh.sta2010-11-23 15.32.15
    BR0280I BRCONNECT time stamp: 2010-11-23 15.32.15
    BR0804I BRCONNECT terminated with errors
    External program terminated with exit code 3
    BRCONNECT returned error status E
    Job encerrado
    Can you help me please!? I do not know how to solve this situation...
    Best regards,
    João Dimas - Portugal

    This wasn´t a new installation... this was a migration from windows/sql server to linux/oracle... and after that migration process I made an oracle upgrade to 11.2g and during this oracle upgrade we upgrade the BRtools to 7.20 version.
    I set up other job from DB13 (Verify database) and also it not ran well, it show an error too, but a diferent one:
    Parameters:-u / -jid VERIF20101110030000 -c force -w only_dbv -p initD01.sap -m ALL
    BR0051I BRBACKUP 7.20 (7)
    BR0055I Start of database backup: beeqitms.dbv 2010-11-25 03.00.06
    BR0484I BRBACKUP log file: /oracle/D01/sapbackup/beeqitms.dbv
    BR0477I Oracle pfile /oracle/D01/112_64/dbs/initD01.ora created from spfile /oracle/D01/112_64/dbs/spfileD01.ora
    BR0068E SAP system is running or SAP user is connected to database D01 - database cannot be shut down
    BR1025I Please shut down SAP system first or use the 'offline_force' option
    BR0056I End of database backup: beeqitms.dbv 2010-11-25 03.00.09
    BR0280I BRBACKUP time stamp: 2010-11-25 03.00.09
    BR0054I BRBACKUP terminated with errors
    External program terminated with exit code 3
    BRBACKUP returned error status E
    I also checked the permissions in /usr/sap folder and sub folders as per the link you put here... and everything is well... but tell me one thing which owner/group must have set in /usr/sap/ directory? In that help sap link it doesn´t show any suggestion in this column, so I don´t know in this case which owner and group must have set... In my case the /usr/sap/ and dba as group:
    drwxr-xr-x 28 orad01 dba      4096 Nov 23 15:20 D01
    Kind regards,
    João Dimas - Portugal

  • Update statistics ends with error

    Hi Techies
    Few months back our BI system got crashed then ,we re-install the system & restore the database,Now the issue is whenever we are running the update statistics it gives the following error & terminates with error.
    BR0301E SQL error -20000 at location stats_ind_collect-2, SQL statement:
    'BEGIN DBMS_STATS.GATHER_INDEX_STATS (OWNNAME => '"SAPSR3"', INDNAME => '"/BIC/B0000598000KE"', ESTIMATE_PERCENT => NULL, DEGREE => NULL,
    ORA-20000: index "SAPSR3"."/BIC/B0000598000KE"  or partition of such index is in unusable state
    ORA-06512: at "SYS.DBMS_STATS", line 10613
    ORA-06512: at "SYS.DBMS_STATS", line 10648
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for index SAPSR3./BIC/B0000598000KE
    BR0301E SQL error -20000 at location stats_tab_collect-18, SQL statement:
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPSR3"', TABNAME => '"/BIC/B0000598000"', ESTIMATE_PERCENT => 30, METHOD_OPT => 'FOR A
    ORA-20000: index "SAPSR3"."/BIC/B0000598000KE"  or partition of such index is in unusable state
    ORA-06512: at "SYS.DBMS_STATS", line 13159
    ORA-06512: at "SYS.DBMS_STATS", line 13179
    ORA-06512: at line 1
    BR0886E Checking/collecting statistics failed for table SAPSR3./BIC/B0000598000
    Environment Details
    OS-AIX 5.3
    DB-Oracle 10.2.0.2.0
    SAP-SAP Netweaver 2004s
    BI-SAP Netweaver BI 7.0
    Quick response appreciated
    Thanks
    Vijay

    Hi,
    ORA-20000: index "SAPSR3"."/BIC/B0000598000KE" or partition of such index is in unusable state
    rebuild the index using BRTOOLS.
    Run brtools
    select 3 --> SEGMENT MANGEMENT -->  2 - Rebuild indexes -->  7 ~ Index names (index)
    provide your index name here SAPSR3"."/BIC/B0000598000KE
    and rebuild the index
    after running rebuild index , start again Update Statistics.
    it will run succesful
    Thanks
    Anil

  • Update statistics - BR301E SQL error -1031 at location stats_tab_collect-3

    Hi,
    I'm having this error when update statistics is run:
    +BR301E SQL error -1031 at location stats_tab_collect-3+
    +ORA-01031: insufficient privileges+
    +ORA-06512: at "SYS.DBMS_STATS", line 10301+
    +ORA-06512: at "SYS.DBMS_STATS", line 10315+
    +ORA-06512: at line 1+
    The SAP was using the analyze table and I have changed to use DBMS_STATS. And now is returning this error.
    Any Idea ?
    Many Thanks.

    Hi Rui,
    Take a look at "Note 351163 - Creating ORACLE DB statistics using DBMS_STATS".
    Best regards,
    Orkun Gedik

  • Warning in update statistics in db13

    HI all,
    in my prd system (HP-ux, oracle 9.2, sap 4.7 ). i got warning msg in update statistics in db13.   like  " BR986W Index SAPCRP.SMW0REL~0 is unbalanced - please rebuilt the index."
    how  to solve this problem.
    Regards,
    sk

    -> check sapnotes n° 444.287 & 439.783
    -> run report
    rsanaora
    GreetZ, AH

  • Update Statistics of CRM Production system is terminated with errors

    Dear All,
    Update Statistics of CRM Production System is failing ie terminated with errors.
    Kindly help.
    Following  are the logs:
    BR0973W Database operation alert - level: WARNING, operation: cegnnbuz.chk, time: 2011-08-12 09.32.37, condition: Last successful 'chk' op
    BR0252E Function fopen() failed for '/oracle/KPC/saptrace/diag/rdbms/kpc/KPC/trace/alert_KPC.log' at location ora_alert_check-1
    BR0253E errno 13: Permission denied
    BR0280I BRCONNECT time stamp: 2011-12-22 04.07.36
    BR0977I Checking database profile...
    BR0978W Database profile alert - level: ERROR, parameter: COMPATIBLE, value: 11.2.0 (<> 10.2.0)
    BR0978W Database profile alert - level: WARNING, parameter: LOG_BUFFER, value: 11198464 (>< 4096,512 KB)
    BR0978W Database profile alert - level: WARNING, parameter: OPTIMIZER_INDEX_COST_ADJ, value: 20 (set in parameter file)
    BR0280I BRCONNECT time stamp: 2011-12-22 04.07.36
    BR0980I Number of changed database profile parameters: 0
    BR0280I BRCONNECT time stamp: 2011-12-22 04.07.37
    BR0955I Number of signaled error/warning/exception alerts for database administration: 0/0/0
    BR0956I Number of signaled error/warning/exception alerts for database operations: 0/1/0
    BR0957I Number of signaled error/warning/exception alerts for database messages: 0/0/0
    BR0958I Number of signaled error/warning/exception alerts for database profile: 1/2/0
    BR0806I End of BRCONNECT processing: cehmkvis.chk 2011-12-22 04.07.37
    BR0280I BRCONNECT time stamp: 2011-12-22 04.07.37
    BR0804I BRCONNECT terminated with errors
    Thanks
    -Madhura

    Hii
    I ve checked all conditions as:
    1.      -rwxrwxr-x   1 orakpc   dba      3406704 Aug 12 16:54 brtools
    2.
    SQL> show parameter compatible;
    NAME                                 TYPE        VALUE
    compatible                           string      11.2.0
    3.  Brtools version is 7.00 and oracle is 11G
    4.  drwxrwxrwx   6 orakpc   dba            6 Aug  7 14:19 saptrace
    Still we are facing this issue.
    pls help.
    -Madhura

Maybe you are looking for

  • Checkbox in an Updatable Report

    How can I use a checkbox to display checked for 'T' and unchecked for anything else in a report based on an SQL Query? How can I use the checkbox in the report to set the value in the field in the table in an MRU? Can this be done the same way as if

  • Problem with AppleScript inside automator app

    Creating an Automator Application that I want to run by itself (hence application instead of workflow). The firs thing asks for a folder, then it goes to run the following applescript, followed by some more automator applications and another applescr

  • Will Image Capture do this?

    I've been doing some web searching for an answer to this but have yet to discover anything encouraging. So here's my question/problem: I have a nice photo table with a stable crane like rig on the back (Imagine a camera mounted directly overhead look

  • Encoding error with xerces/JDOM

    hej, We have XML files that must be encoded in ISO-8859-1(i.e.encoding attribute in the document's XML declaration) to handle swedish characters. When trying to read in the XML document via JDOM (default parse is xerces) the following error is thrown

  • Understanding the dataadapter.delete command

    I'm new to ADO and ODP so forgive me if I'm missing the obvious. I want to do a simple delete from the database. The problem is I feel like I have to issue the delete command twice. The code I've posted blow works but I don't understand why. I create