Lost index stats in Ora 8.1.6 Tables when selecting via jdbc

Hi,
i'm using JBuilder8 and Kylix2 on a Linux machine with Oracle oci drivers of client 8.1.7.
The connect through JB8 jdbc via DBPilot is succesful and shows the tables of the db.
After executing a select on any table the index stats of this table are lost.
Kylix works fine without this failure.
Thanks for any comments to this problem
Jens

Well, it's not the PL/SQL code that is causing a problem. Everything worked fine for many months. Then one day (without any changes in the environment or code) the update of a table from a java application (via JDBC) fails. The same update done directly on the DB with SQL Plus still succeeds!
This led us to think that something is wrong with the JDBC connection (which was up for several months). Maybe a memory corruption?
Anyone that experienced similar problems with JDBC?

Similar Messages

  • ORA-01031 insufficient privileges  error when selecting from a view

    OK I think this might be a dumb question but I can't figure it out:
    User John has been granted SELECT privilege (directly, not through a database role) to schema FRED.table1;
    User John can issue select * from FRED.table1; and it works just fine.
    User John has then been granted SELECT privilege (directly, not via a database role) to schema
    MARK.view1;
    MARK.view1 only selects from FRED.table1. No other tables are in the view1.
    Schema MARK can successfully query the views. SELECT * FROM VIEW1 returns results.
    I also checked the MARK schema to ensure that it has been granted SELECT on FRED.table1 directly which it has.
    Now, when logged into schema John, I try SELECT * FROM MARK.VIEW1; and I get ORA-01031 insufficient privileges error.
    I'm not sure how to troubleshoot this. If John is granted SELECT ANY TABLE, it of course works but I don't want John to have that powerful priv.
    To recap, John has SELECT on both MARK.VIEW1 and the table which VIEW1 selects from (FRED.TABLE1).
    John can select from FRED.TABLE1 no problem but receives a privilege error even though John has SELECT on MARK.VIEW1.
    Any thoughts?
    Oh, Oracle EE 10.2.0.4

    JSebastian wrote:
    OK I think this might be a dumb question but I can't figure it out:
    User John has been granted SELECT privilege (directly, not through a database role) to schema FRED.table1;
    User John can issue select * from FRED.table1; and it works just fine.
    User John has then been granted SELECT privilege (directly, not via a database role) to schema
    MARK.view1;
    MARK.view1 only selects from FRED.table1. No other tables are in the view1.
    Schema MARK can successfully query the views. SELECT * FROM VIEW1 returns results.
    I also checked the MARK schema to ensure that it has been granted SELECT on FRED.table1 directly which it has.
    Now, when logged into schema John, I try SELECT * FROM MARK.VIEW1; and I get ORA-01031 insufficient privileges error.
    I'm not sure how to troubleshoot this. If John is granted SELECT ANY TABLE, it of course works but I don't want John to have that powerful priv.
    To recap, John has SELECT on both MARK.VIEW1 and the table which VIEW1 selects from (FRED.TABLE1).
    John can select from FRED.TABLE1 no problem but receives a privilege error even though John has SELECT on MARK.VIEW1.
    Any thoughts?
    Oh, Oracle EE 10.2.0.4Are you certain John has been granted select on Mark.view1 ? In order for that to work Mark would have to have been given select on Fred.table1 WITH GRANT OPTION ... otherwise the grant would fail and then John would not be able to select from the view because the grant was never successfully issued.
    Here's a basic test case (which i think conforms to what you've outlined) to get it working.
    drop user u1 cascade;
    drop user u2 cascade;
    drop user u3 cascade;
    create user u1 identified by u1;
    grant connect, resource to u1;
    create user u2 identified by u2;
    grant connect, resource, create view to u2;
    create user u3 identified by u3;
    grant connect, resource to u3;
    connect u1/u1@orcl
    create table test1 (col1 number);
    grant select on test1 to u2 with grant option; --> this is the important part
    grant select on test1 to u3;
    connect u2/u2@orcl
    create view test2 as select * from u1.test1;
    grant select on test2 to u3;
    connect u3/u3@orcl
    select * from u2.test2;

  • Schema name gets lost in create/drop index statement

    Hi everyone,
    I have a relational model with appended physical Oracle 10g model, containing indexes (among other stuff). Although the schema name is set in the relational model and the user is set in the physical model, they are ignored in the creation and alter scripts.
    Is that a bug?
    Yours,
    user8632123

    Hi Bernd,
    I tried again using a DBA-user on a 10g-database, but the object privileges are NOT imported.I have logged a bug that that only one object privilege is imported for a given user. (Any other object privileges for that user are missing.) It appears that this problem affects both Oracle 10g and Oracle 11g databases.
    I also noticed that, after they have been created manually, they do not show up in alter scripts (preview script from compare/merge).I have logged a bug on this.
    On the side, do we really need DBA-privileges for reverse engineering, or are the roles "select any table" and "select dictionary" sufficient?Agreed. We are already making changes to this. In the next release, if the connection user does not have DBA privilege, we should still be able to import the object privilege information.
    schema names are missing in alter scripts in more cases. For instance, they are not created for column comments.I logged a bug that in Compare/Merge DDL, if a Column Comment is added, the Schema name is missing from the COMMENT ON COLUMN statement.
    Thanks for letting us know about these problems.
    David

  • Wat is the use of "DATA var-name LIKE SY-INDEX" statement

    Hi to all,
           is there any use of "DATA <var-name> LIKE SY-INDEX"  statement in ABAP, do the variable <var-name> be changed with that of SY-INDEX when we declare like this.
             Could u give me a fast response,
                                            Thank you,
                                                 Srinivasa Rao k.

    hi check this example..
    data: v_index type sy-index value 10 .
    do 15 times .
    if sy-index = v_index .
    write:/ 'the system index is 10 '.
    exit.
    endif.
    enddo.
    the main use of the index is used in the hr programs..
    the user wants the emp salary and previous months   salary then you need to use the index .
    if the table had 10 records .then you need to catch the record of  index1(current) and index 2(for previous month)..
    select pernr ansal  from pa0008 into table it_pa0008 where pernr in s_pernr and begda in s_begda .
    loop at it_pa0008.
    case sytabix.
    when 1 .
    it_final-cursal =  it_pa0008-ansal.
    when 2 .
    it_final-prevsal =  it_pa0008-ansal.
    endcase .
    endloop.
    regards,
    venkat.

  • ORA-00911: invalid character using multiple select statements

    I am getting an ORA-00911: invalid character error when trying to execute 2 select statements using ODP.NET.
    cmd.CommandText = "select sysdate from dual;select sysdate from dual;";
    cmd.Connection = conn;
    cmd.CommandType = System.Data.CommandType.Text;
    conn.Open();
    OracleDataReader dr = cmd.ExecuteReader();
    This works in SQL server but for some reason it appears this does not work in Oracle?
    If this is the case what is a vaiable workaround? Wrapping the 2 statements in a transaction?
    Seems strange that you can't return multiple result sets using in-line sql statements.

    Oracle doesn't support passing multiple statements like that, and this is unrelated to ODP.NET.
    SQL> select * from emp;select * from dept;
    select * from emp;select * from dept
    ERROR at line 1:
    ORA-00911: invalid character
    You could do it via an anonymous block and ref cursors though if you dont want to do it via a stored procedure..
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class test
    public static void Main()
        using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;"))
            con.Open();
            string strSql = "begin open :refcur1 for select * from emp;" +
                "open :refcur2 for select * from dept;" +
                "open :refcur3 for select * from salgrade;end;";
            using (OracleCommand cmd = new OracleCommand(strSql, con))
                cmd.Parameters.Add("refcur1", OracleDbType.RefCursor, ParameterDirection.Output);
                cmd.Parameters.Add("refcur2", OracleDbType.RefCursor, ParameterDirection.Output);
                cmd.Parameters.Add("refcur3", OracleDbType.RefCursor, ParameterDirection.Output);
                OracleDataAdapter da = new OracleDataAdapter(cmd);
                DataSet ds = new DataSet();
                da.Fill(ds);
                cmd.Parameters["refcur1"].Dispose();
                cmd.Parameters["refcur2"].Dispose();
                cmd.Parameters["refcur3"].Dispose();
                foreach (DataTable dt in ds.Tables)
                    Console.WriteLine("\nProcessing {0} resultset...", dt.ToString());
                    foreach (DataRow row in dt.Rows)
                        Console.WriteLine("column 1: {0}", row[0]);
    }Hope it helps,
    Greg

  • Update statement getting ORA-00904 invalid identifier

    I am getting this ORA error when I try to conduct an update statement from a column value in one table to a like-named column in another table.
    For instance, in my select, shown below, this query runs like a champ, returning all of my records
    SELECT
    b.ID,
    b.ZIP, a.ZIP,
    a.NAME,
    a.LOCATION
    FROM TBL_ARCHIVE a
    INNER JOIN TBL_UAT b ON
    a.ID = b.ID
    WHERE
    b.ID > 470000  And b.ID <470100;However, if I try to run an update statement with any of the following, I get this error. It seems so strange to me that I'd get an error using the same columns in the update statement, but would return the desired results effectively from the select statement!
    one version of UPDATE
    UPDATE TBL_ARCHIVE a
    SET a.ZIP = TBL_UAT.ZIP
    WHERE TBL_UAT.ID = a.ID;and another
    UPDATE TBL_ARCHIVE
    SET a.ZIP  =
    (SELECT b.ZIP
    FROM TBL_UAT b
    WHERE b.ID <472500 And b.ID >471000)
    FROM TBL_ARCHIVE a
    WHERE a.ID = b.ID)
    WHERE ID IN
    (SELECT ID
    FROM TBL_UAT b
    WHERE b.ID  <472500 And b.ID >471000
    );^ - this one produces a SQL not properly ended. Error ORA-00933: SQL command not properly ended.
    I'm really unsure though, how what I thought was a fairly basic update statement wouldn't work. I'm using Oracle 11g but through either Toad or SQL Plus. I've gotten these same errors in both.
    Though MS Access runs slow as snails, I can manage to run the update statement successfully with it, a thousand records or so at a time. Problem is, I've got about 300K records needing updating.
    I've looked around for similar problems but haven't found one where someone wasn't either using a reserved word for a column, which I'm not, I don't believe, or a problem that really dealt with this error in the context of an update statement.
    But I'd welcome any enlightenment on this.

    rp0428 wrote:
    UPDATE TBL_ARCHIVE a
    SET a.ZIP = TBL_UAT.ZIP
    WHERE TBL_UAT.ID = a.ID;That isn't a valid query and neither is the other one.
    Please post the actual query you are using and the actual complete error message you are getting (everything about the error that is displayed).^^
    That is NOT a valid query?
    How else would you have an UPDATE statement created to set the value of a column in table A to the value of a (in this case, same named) column in table B?
    And keep them in order to update the records appropriately?
    I'll append the create statements momentarily.
    Thanks!
    CREATE TABLE TBL_UAT
    ( ID NUMBER(6),
    ZIP VARCHAR2(10 BYTE) ) and
    CREATE TABLE TBL_ARCHIVE
    ( ID NUMBER(6) NOT NULL, NAME VARCHAR2(50 BYTE),
    EMAIL VARCHAR2(50 BYTE),
    LOCATION VARCHAR2(50 BYTE),
    DEPARTMENT VARCHAR2(50 BYTE),
    PRIORITY VARCHAR2(50 BYTE),
    APPROVING_MGR_NAME VARCHAR2(50 BYTE),
    TYPE1 VARCHAR2(50 BYTE),
    TYPE2 VARCHAR2(50 BYTE),
    CONTACT_NAME VARCHAR2(50 BYTE),
    CONTACT_PHN_NO VARCHAR2(50 BYTE),
    LOAN_NUM VARCHAR2(50 BYTE),
    REF_ID VARCHAR2(50 BYTE),
    BORROWER_NAME VARCHAR2(50 BYTE),
    ADDRESS VARCHAR2(50 BYTE),
    CITY VARCHAR2(50 BYTE),
    ST VARCHAR2(50 BYTE),
    ZIP VARCHAR2(10 BYTE),
    SALE_DATE DATE,
    COMMENTS VARCHAR2(800 BYTE),
    TIME_REQ DATE,
    ACCTLOC VARCHAR2(50 BYTE),
    OTHER_ACCTLOC VARCHAR2(50 BYTE)) Hope this can be of assistance.
    Thanks, folks!
    Edited by: user515689 on Feb 7, 2012 11:59 AM

  • Problem with PIVOT statement and ORA-56901

    Hi,
    I am having a problem with PIVOT in Oracle.
    I have a view in an oracle 11g database
    that returns me data in the format:- (... indicates left out text)
    DefinitionID ... AttributeValue FieldID
    ============ ============== =======
    ... 3000 X30a9...
    ... JohnN X4674...
    I am then trying to use a PIVOT statement to hopefully give me data
    in the format
    COLUMN1 COLUMN2
    ======= =======
    JohnN 3000
    The PIVOT statement I am trying is
    SELECT X4674... AS Column1,
    X30A9... AS COLUMN2
    FROM (SELECT instanceid, definitionid, attributevalue, FIELDID
    FROM PI_ENTITY_INSTANCE_VIEW) up PIVOT (MAX(ATTRIBUTEVALUE)
    FOR FIELDID IN (X4674...,X30A9... ) )
    where definitionid = hextoraw('7353C67A56C74B5A8234CD16064399E8')
    I have used a very similar VIEW and PIVOT statement for sql server
    (with necessary changes for Oracle applied) and the
    data returns in SQL Server as expected.
    Unfortunately I am getting the Oracle error
    ORA-56901: non-constant expression is not allowed for pivot|unpivot values
    Is there anyway to get a PIVOT working on Oracle where I use the
    fieldid's like I do above or is there some other way to supply the vales to the
    IN clause to overcome this error?
    Thank you for any help you can provide
    John Nugent

    Hi, John,
    Welcome to the forum!
    X4674, X30A9 and os on are the literal values that you're looking for, right?
    In Oracle, string literals need to be enclosed in single-quotes, like this:
    FOR FIELDID IN ('X4674', 'X30A9') You might find it more convenient to assign column aliases in the PIVOT clause, like this:
    PIVOT   (     MAX (attributevalue)
         FOR     fieldid       IN ( 'X4674'     AS column1
                        , 'X30A9'     AS column2
         ) Remember that anything inside quotes is case-sensitive, so 'X30A9' is not equal to 'X30a9'. Use UPPER (or LOWER) to do case-insensitive string comparisons.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    If you can use commonly available tables (such as those in the scott or hr schemas) to show your problem, then you don't have to post any sample data; just the results and explanation.
    Always say which version of Oracle you're using. You did say you were using Oracle 11g, but there's no 11f or 11h, and sometimes the difference between, say 11.1 and 11.2 can be significant. Why not say exactly what you're using, e.g. 11.1.0.7.0?
    You'll get better answers faster if you always supply this information whenever you post a question.
    Edited by: Frank Kulash on Sep 22, 2011 2:09 PM
    Added allliterative alias alternative
    Edited by: Frank Kulash on Sep 22, 2011 4:04 PM

  • Database passive content index state stays FailedAndSuspended even after reseeding

    I have a mailbox database with two copies in a database availability group, the active copy is healthy and its content index state reports healthy as well, the passive copy is healthy but its content index state reports FailedAndSuspended.
    I tried the: Update-MailboxDatabaseCopy <DBName>\<ServerName> -CatalogOnly more than one time, it completes (says 100KB written) but the state never changes.
    I even tried to manually stop the service>delete CI>start the service, the CI folder was recreated (about 1 GB) but still the state is still FailedAndSuspended.
    Please Help! 

    I found the following warning in the event log,
    Event ID: 1009
    The indexing of mailbox database Main-EX02-DB1 encountered an unexpected exception. Error details: Microsoft.Exchange.Search.Core.Abstraction.OperationFailedException: The component operation has failed. ---> Microsoft.Exchange.Search.Core.Abstraction.CatalogReseedException:
    The component operation has failed.
       at Microsoft.Exchange.Search.Engine.SearchFeedingController.DetermineFeederStateAndStartFeeders()
       at Microsoft.Exchange.Search.Engine.SearchFeedingController.InternalExecutionStart()
       at Microsoft.Exchange.Search.Core.Common.Executable.InternalExecutionStart(Object state)
       --- End of inner exception stack trace ---
       at Microsoft.Exchange.Search.Core.Common.Executable.EndExecute(IAsyncResult asyncResult)
       at Microsoft.Exchange.Search.Engine.SearchRootController.ExecuteComplete(IAsyncResult asyncResult)
    I checked online, and found one website talking about the "ContentSubmitters" group, which I created in the Exchange Security Groups OU without any members but with stated permissions:
    https://abdullrhmanfarram.wordpress.com/2013/06/16/event-id-1009-content-index-status-of-the-mailbox-databases-failed/

  • Content Index State Crawling

    We have an Exchange database that seems to always have a Content Index State that is crawling.  Some end users have complained about slow searches and indexing issues (which is expected).  We have
    stopped the search services and renamed the catalog directory in an effort to rebuild the search catalog, but it just goes right back to crawling.  The database is only about 300GB, so I don't think size is an issue.
    Could it be there is some corruption on the database that is causing issues with the index catalog.  We have removed the database from the DAG and tried it as a stand alone database, with the same
    results.
    Any ideas would be appreciated.

    did you find anything in the event viewer (app/Sys logs).
    You may consider restarting Search Indexer service and then check if that gets healthy or not.
    If it still doesn't say healthy then you might have to consider Resetting Search Index for problematic Database or all database if all if it is a problem with all databases.
    Refer to the link below to get info about how to reset Search index for a database.
    Exchange
    2010 Database copy on server has content index catalog files in the following state: Failed
    Establishing Exchange Content Index
    Rebuild Baselines – Part 1
    How To Troubleshoot Issues With Exchange 2010 Search
    Reply back with the outcome!
    Pavan Maganti ~ ( Exchange | 2003/2007/2010/E15(2013)) ~~ Please remember to click “Vote As Helpful&quot; if it really helps and &quot;Mark as Answer” if it answers your question, “Unmark as Answer” if a marked post does not actually answer your
    question. ~~ This Information is provided is &quot;AS IS&quot; and confers NO Rights!!

  • Importing a table and its index statistics, cannot import index stats

    Hi,
    Oracle 10.2.0.4 on Solaris.
    I have DBA to imprt tables and index statistics for a table from prod into QA for further analysis. The stats for this table are locked in prod
    DBA has used the following command for export and import table statistics
    exec dbms_stats.export_table_stats('SCHEMA','TABLE',null,'TABLE_20130225',null,true,'INV');
    exec dbms_stats.import_table_stats('SCHEMA','TABLE',null,'TABLE_20130225',null,true,'SCHEMA');Although cascade is set to true above, this resulted in "only table stats" to be imported no index stats. So we have imported the prod table level stats but no index stats! FYI, the indexes in prod have stats (last_analyzed) set.
    Next DBA tried the export and import using export_index_stats and import_index_stats but no luck. DBA advising me that the only option we have is to import the table itself from prod to QA. It seems that import with cascade does not work.
    Is this a bug in 10g or there is another way around to get index statistics as well?
    Thanks
    Edited by: 902986 on 25-Feb-2013 06:22

    902986 wrote:
    Hi,
    Oracle 10.2.0.4 on Solaris.
    I have DBA to imprt tables and index statistics for a table from prod into QA for further analysis. The stats for this table are locked in prod
    DBA has used the following command for export and import table statistics
    exec dbms_stats.export_table_stats('SCHEMA','TABLE',null,'TABLE_20130225',null,true,'INV');
    exec dbms_stats.import_table_stats('SCHEMA','TABLE',null,'TABLE_20130225',null,true,'SCHEMA');Although cascade is set to true above, this resulted in "only table stats" to be imported no index stats. Problem Exists Between Keyboard And Chair
    "Gather statistics on the indexes for this table. Index statistics gathering is not parallelized. Using this option is equivalent to running the GATHER_INDEX_STATS Procedure on each of the table's indexes. Use the constant DBMS_STATS.AUTO_CASCADE to have Oracle determine whether index statistics to be collected or not. This is the default. The default value can be changed using theSET_PARAM Procedure."
    Handle:     902986
    Status Level:     Newbie
    Registered:     Dec 17, 2011
    Total Posts:     69
    Total Questions:     18 (12 unresolved)
    Why so MANY unanswered questions?

  • Exchange 2013: Content Index State Failed

    I am running two, two node DAG's with Exchange 2013.
    One DAG pair is running 5 databases with Server 2012 Standard and the second DAG pair is running Server 2008 R2 SP1 Standard with a single shared database.
    No matter what I try, ALL 6 databases show "ContentIndexState: Failed" with "ContentIndexErrorMessage: An internal error occurred for the database or its index.".
    I have tried rebuilding the indexes manually, automatically and manually copying the database files between servers.  I also receive errors when trying to failover the databases because the content index state is failed.
    In my test environment I have a very similar setup working fine with no issues.
    Please let me know what I can try to get this resolved.
    The error I receive when running the following set of commands is:
    suspend-MailboxDatabaseCopy dag2db1\mbox1
    update-MailboxDatabaseCopy dag2db1\mbox1 -deleteexistingfiles
    [PS] C:\Windows\system32>update-mailboxdatabasecopy dag2db1\mbox1 -deleteexistingfiles
    Confirm
    Are you sure you want to perform this action?
    Updating database copy DAG2DB1\MBOX1 on server MBOX1
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): a
    WARNING: Seeding of content index catalog for database 'DAG2DB1' failed. Please verify that the Microsoft Search (Exchange) and the Host Controller service for Exchange services are running and try the operation again. Error: Therevwas no endpoint listening
    at net.tcp://localhost:17063/Management/SeedingAgent-0A2745DF-4522-42AB-9115-5DDE9EDEF1C612/Single that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details..
    [PS] C:\Windows\system32>

    Hi Folks,
    Here we go;
    "On
    August 14th, we announced the removal of the
    MS13-061 Security Update for Exchange Server 2013 due to an issue where the patch changed settings for the search infrastructure, placing the content index for all databases into a failed state.  As of today, we have released updated security updates
    for both Exchange 2013 RTM CU1 and Exchange 2013 RTM CU2."
    Details below;
    http://blogs.technet.com/b/exchange/archive/2013/08/27/now-available-updated-release-of-ms13-061-security-update-for-exchange-server-2013.aspx
    Yavuz Eren Demir
    After installing this patch (Exchange2013-KB2874216-v2-x64-en.msp) seeding of the databases was impossible.
    Error:
    warning
    Seeding of content index catalog for database 'Database02' failed. Please verify that the Microsoft Search (Exchange) and
    the Host Controller service for Exchange services are running and try the operation again. Error: Could not connect to net.tcp://localhost:3863/Management/SeedingAgent-F293698C-B2D0-40CA-A2C3-FB37982E708712/Single. The connection attempt lasted for a time
    span of 00:00:02.0592000. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:3863. .
    Looking at the two services mentioned in this warning I've noticed the Microsoft Exchange Search Host Controller (HostControllerService)
    was disabled
    After Changing it to Automatic and enabling it, the problem was salved

  • Content Index State: Failed and Suspended Exchange Server 2013

    On my passive Server "Content Index State" mailbox database is still Failed and Suspended for almost a week. 
    Actions Taken to Resolve the Issue:
     - Update-mailboxdatabasecopy
     -Delete the exisiting folder of database on passive server and run database copy on EAC
    Still got FAILED AND SUSPENDED content index state.
    Need some advice guys.. 
    Thanks!

    Hi,
    Please check the following article and see if it can resolve your problem.
    https://support.microsoft.com/kb/2807668
    Please check the active database, make sure the content index is healthy. If possible, please rebuild content index of active database. And then reseed passive database copy to check result.
    Best regards,
    Belinda Ma
    TechNet Community Support

  • Content Index State Failed - After every restart on 2010 mbx server

    I noticed that everyone is saying just to run the catalog only command on any database that gets
    Contnt index state failed after a restart. but what if you are faililng over 30database and 20 of them get corrupted? run this commadn 1 by 1? really?

    Thanks
    wawoodwa , this command solved my problem!!! 
    On other sites I found command:
    "Update-MailboxDatabaseCopy –Identity ‘DB2’ –CatalogOnly" it was not working, I got the same error as OldSchoola.

  • Content index state: Failed

    Hi.
    I have been restoring the entire Windows after a bigger problem in the past. However, there were data for Exchange server at a completely different disk which was not affected.
    But now I can not load up OWA and when you look in the ECP so says the following under databases "Content index state: Failed"
    I have tried to repair it but without any success.
    The operation couldn't be performed because object '0747478411\MAIL-SERVER01' couldn't be found on 'server'.
        + CategoryInfo          : NotSpecified: (:) [Update-MailboxDatabaseCopy], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : DD4CF704,Microsoft.Exchange.Management.SystemConfigurationTasks.UpdateDatabaseCopy
        + PSComputerName        : mail-server01
    Update-MailboxDatabaseCopy "0747478411\MAIL-SERVER01" -CatalogOnly
    All i have in owa now is
    something went wrong
    Sorry, we can't get that information right now. Please try again later. If the problem continues, contact your helpdesk.

    Hi Jesper,
    Thank you for your question.
    By my understanding, we should not simply recover window system, we should performance a disaster recover for Exchange by the following link:
    https://technet.microsoft.com/en-us/library/dd876880(v=exchg.150).aspx
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Jim Xu
    TechNet Community Support

  • Dbms_stats not capturing index stats 11.2.0.2

    deleting this thread..
    Edited by: OraDBA02 on Oct 3, 2012 2:34 PM

    select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    DBMS_STATS Parameters.
    (I have daily ie.WEEKNIGHT_WINDOW/WEEKEND_WINDOW for OPTIMIZER_STATS)
    METHOD_OPT=FOR ALL COLUMNS SIZE SKEWONLY
    STALE_PERCENT=20
    ESTIMATE_PERCENT=5
    CASCADE=DBMS_STATS.AUTO_CASCADE
    One of my index in a production table is showing up as 0 statistics.
    TABLE_NAME INDEX_NAME NUM_ROWS DISTINCT_KEYS CLUSTERING_FACTOR BLEVEL LAST_ANALYZED LEAF_BLOCKS LK DK
    WEB_ACTIVATED_CARDS I_WAC_CLAIM_CODE_ID 0 0 0 2 08.Aug.12/00:02:45 0 0 0
    WEB_ACTIVATED_CARDS PK_WEB_ACTIVATED_CARD_ID 3430768 3430768 1012555 2 08.Aug.12/00:02:47 9846 1 1
    WEB_ACTIVATED_CARDS I_WAC_ENCRYPTED_CLAIM_CODE 3434835 3434835 3434771 2 08.Aug.12/00:02:53 18407 1 1
    TABLE_NAME PAR NUM_ROWS BLOCKS TO_CHAR(LAST_ANALYZED,'D SAMPLE_SIZE
    WEB_ACTIVATED_CARDS NO 3429860 49496 08-aug-12:00:02:43 171493
    Index I_WAC_CLAIM_CODE_ID was added on this table on '12.Jun.12' and after that dbms_stats ran only one time on this table (on '08-AUG-12 12.02.43'). Dba_tab_stats_history is showing up only one entry for this table. This may be due to 20% stale_percent.
    DBMS_STATS.GET_STATS_HISTORY_RETENTION is 31 days.
    I have explicitly gathered index stats upon having one plan-flip issue.
    analyze index I_WAC_CLAIM_CODE_ID compute statistics;
    TABLE_NAME INDEX_NAME NUM_ROWS DISTINCT_KEYS CLUSTERING_FACTOR BLEVEL LAST_ANALYZED LEAF_BLOCKS LK DK
    WEB_ACTIVATED_CARDS I_WAC_CLAIM_CODE_ID 216876 216876 206622 2 23.Aug.12/17:31:33 2239 1 1
    Am i encountering any dbms_stats bug ?

Maybe you are looking for