How to rebuild CAD database or Fix Corrupt Database

If you have any issue where one side of the Database is corrupt and replication isn't working properly. Here are the steps that you can follow
1. Confirm the NIC configurations on both servers before proceeding.
2. Stop exiting replication connection by doing the following:
To shut down Directory Services replication:
Follow this procedure on each Directory Services server. If one server is already down, restart it and then perform this procedure.
i. Open a command window and change folders to the following location:
C:\Program Files\Cisco\Desktop\bin
This is the default location.
ii. At the prompt, type
LDAPUtil /C <IP address>
where <IP address> is the IP address of this server. Directory Services replication is shut down.
3. On the PC hosting the primary database, stop the Cisco Desktop LDAP Monitor.
4. Remove all contents from the files repl.log and repl.log.lock from the \Cisco\Desktop\database directory.
5. Delete all files in the \Cisco\Desktop\logs\replica directory.
6. Open a command window on the primary database computer.
7. Change directories to Cisco\Desktop\bin (the drive and exact location of this folder depends on where the service was installed).
8. In the Cisco\Desktop\bin directory, type the command:
slapcat -f slapd.conf -l backup.ldif -c
and press Enter.
A file called backup.ldif is generated.
9. Copy the backup.ldif file to the computer on which the secondary LDAP service is installed, into the Cisco\Desktop\bin folder.
10. On the PC hosting the secondary database, stop the Cisco Desktop LDAP Monitor.
11. Rename the existing folder Cisco\Desktop\database to Cisco\Desktop\old_database.
12. Create a new folder called Cisco\Desktop\database.
13. Copy DB_CONFIG and all files with a *.dat extension from the old_database folder to the database folder.
14. In the database folder, create an empty file called rep.log.
15. Open a command window on the secondary database computer.
16. Change directories to Cisco\Desktop\bin (the drive and exact location of this folder depends on where the service was installed).
17. In the Cisco\Desktop\bin directory, type the command:
slapadd -f slapd.conf -l backup.ldif -c
and press Enter.
18. Type exit and press Enter to close the DOS window.
19. Restart the Cisco Desktop LDAP Monitor on the secondary computer.
20. Restart the Cisco Desktop LDAP Monitor on the primary computer.
Run PostInstall on B to setup the replication again.
Monitor the taskmgr to make sure that the slurpd.exe and slapd.exe are running and that there are no .rej files in the replica folder.
Following steps you can use to identify if there is any Replication issue on the CAD Database:
Stop the cad services on both sides of the system. (Cisco Desktop LDAP Monitor Service, Sync)
Clear all the files that end in .rej from the replica folder (\Program Files\Cisco\Desktop\log\replica) 
Restart CAD server A, then restart CAD server B and monitor the replica folder. If there is any new .rej files generated it will mean that the corruption of the LDAP db is still in the system and stage two will need to be completed.

Abu Hadee,
While you are here talking about the LDAP - why have you disabled Anonymous binding to the LDAP in CAD with ICM 8.5.2?
We used to be able to use the free LDAP browser to examine the LDAP and export it for various reasons - bulk checking, saving into spreadsheets for "as is" documentation and so on.
I recently tried to look at the LDAP on a customer's install and anonymous binding was not allowed. Any reason why this was removed? And when can we have it back?
Regards,
Geoff

Similar Messages

  • DBF corrupted database

    Hey friends, I'm in great trouble here. 
    I'm using Microsoft Visual FoxPro 9.0 on my Windows 7 machine. I had some DBF files which was created in MS Visual FoxPro. The files were undoubtedly valuable since they contained my crucial data related to my office work. The files are now invalid
    therefore, inaccessible. I can't access any of my database files. Whenever I try to open one of them this comes in front of me: "File filename.dbf does not exist". 
    According to me this must be a file corruption error states the file is corrupted. I don't know how did it get corrupted. I'm dying to get these files back. Please help in this.
    Thanks in advance.

    It is not necessary to rebuild a corrupt database. All corrupt databases can fixed in less than one minute. 
    The solution is: Open database to main screen
    Copy the database but only one record(just pick a not recent record number at random; include "all", I usually name this database "FixMMDD" (( month Day))
    Open original database to mainscreen and append the FIXMMDD.dbf.
    You're done. 
    Occassionally you may have to update indexes. Very rarely are any records lost and when it happens those few records are clearly garbled.
    I've been doing this for three years with no problems.
    If you have fields that increment you'll have to adjust that for your last valid value.
    OTHERWISE
    I think those files of your which seem unreadable are corrupt. Just one thing always keep in your mind that corruption can make a file unreadable or useless. And due to this file becomes inaccessible. Any corrupt or damaged file can't be accessed
    until it gets fully repaired. All you need just remove the error from your DBF files and after doing this you can access those corrupt files. The data inside those files will be readable right after you repair them. You just need to consider
    about a software program or shall I suggest you about a tool which I have used? 
    Check this one: DBF Repair Kit
    It will help you as it helped me. Just try its demo version
    http://www.dbf.repair/ to see the preview of the content of the files which are unreadable.

  • Restore problem - how to get rid of corrupt database ?

    Folks,
    Some dumb developer managed to trash on of our Oracle database by doing a mistake in SQLDev.
    This database was / is using the "autobackup" feature as proposed in the installation wizard.
    For some reason it would seem that the restore is not complete, tough.
    I get an error when mounting the database
    ORA-01248: file 5 was created in the future of incomplete recovery
    ORA-01110: data file 5: <path to file>
    not sure to understand what happened but I can live without that specific database assuming the others are ok.
    Any advise as of how to get rid of that specific database and enjoy the rest of the server ?!
    Nest step will be to understand why autobackup is not doing what it is supposed to do...
    This is Oracle 11g standard on Oracle Linux.

    1. What statement did the developer issue? What did they do?none - they used the SQLDevelopper GUI to copy tables form db1 to db2
    2. What system table was affected?SYS tables where unintentionally affected.
    3. What does "erased" mean? DELETE statements? TRUNCATE? UPDATE?
    4. What does "corrupted" mean?Corrupted in the sense that the SYS table content was mangled to the extent that the database engine would not run anymore (the database process would not start). This has been fixed after the recovery.
    Run some SQL statements and show us what you are referring to. We can not recommend a fix based on what you've posted.Well I can run many statements on a database that will not go into an open state...
    Just to repeat the above:
    lSQL> startup;
    ORACLE instance started.
    Total System Global Area 845348864 bytes
    Fixed Size 1339796 bytes
    Variable Size 532680300 bytes
    Database Buffers 306184192 bytes
    Redo Buffers 5144576 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01248: file 5 was created in the future of incomplete recovery
    ORA-01110: data file 5: '/home/oracle/beautec/data/MODM_tab_0100.dat'
    Again I can live without that shema assuming it is the only one having problems - but I can't drop it as far as I know...
    That said I can log in as SYS and perform a drop database followed by using DBCA to create a new database in less than 20 minutes. Which I expect is more
    time than you've spent working with this so far.No point to get insulting - I spent much more than 20m on the issue. Unfortunately - as you have probably understood from my earlier posting - my DBA expertise is limited. That's the very reason I am looking for help.
    I can do
    shutdown abort;
    startup mount exclusive restrict;
    drop database;
    exit
    but that's the whole database going into the toilet - a bit extreme...

  • How can I fix corrupted audiobooks category--plays too fast and is gravelly?

    How can I fix corrupted audiobooks category--plays too fast and is gravelly? Other music categories are unaffected..

    On the audio book (and podcast) playing screen there is a playback speed selector. It is the box on the right hand side of the screen right below the scrubber bar. It say either 1/2X, 1X or 2X, the playback speeds. Tap the box to cycle through the playback speeds.

  • Is there any way to restore or rebuild a corrupted database?

    I'm trying to get information from a database, but it's corrupted and not allowing me to see any availbable traces.  If there any way to restore or rebuild a corrupted database?
    Solved!
    Go to Solution.

    Here are a few screen captures of what I'm looking at.  The 3rd capture is of the files making up the database.
    Attachments:
    max_screen_capture.JPG ‏71 KB
    max_screen_capture2.JPG ‏67 KB
    max_screen_capture3.JPG ‏142 KB

  • If my master database got crashed how will rebuild it?

    Hi DBA'S,
    If
    my master database got crashed how will rebuild it?
    Please provide me a scenario based answer if  it is possible.

    You would find below article more interactive
    http://www.codeproject.com/Tips/537811/Rebuilding-Master-Database-in-SQL-Server?
    Please post question which you seem difficult its very easy question and you would have found lot of article on net. If you are preparing for interview read the MSDN document, download sql server express or enterprise evaluation(both are free)  install
    it and try rebuilding master database your self
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Re: corrupted database

    Interestly. If I trivially modify am action class and save it, I see the
    session variables in the variable view. It is as if I need to touch all the
    action classes to make it rebuild correctly.
    "Alan Berezin" <[email protected]> wrote in message
    news:417eda07$[email protected]..
    I installed the latest build 1.0b329 Previous was running 316. I pointedto my existing workspace with an existing webapp. Nitro now has an error
    "the nitrox database appears corrupted.... click ok to rebuild.
    I rebuilt it but I still get errors. Also, all the session and request
    variables i would expect to see in the variables view are not there. I
    even
    deleted the .m7project file, restarted nitro, and set my project to a web
    application again and still got the corrupted db error.

    Scott, I would interepret Paul's post as that there is a fine distinction between repair and reconstruct. Repair in this context means that you can do it automatically in DBCC CHECKDB.
    Reconstruct on the other hand would mean that you do it manually by inspecting pages to see which are allocated and which are not. That is likely to be a trial-and-error process, not the least if the database have other corruption.
    Vikas asked for a step-and-step instruction. First step is to check the funds for this project. Are they unlimited? That is, how much does it cost to lose these database entirely?
    If the answer is that funds are unlimited, then consider to get in contact with a person like Paul Randall and see if they are available.
    This is a task that requires good knowledge of the storage format SQL Server uses. Starting level requirement is that you have read Kalen Delaney's books, but not that is just the starting level. You also need experience, understand - and a whole lot
    time and patience.
    Maybe there is a backup you can restore?
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Corrupted database in SQL Anywhere 9

    Hi.
    Yesterday, one of our databases corrupted.
    When I try start the service from Sybase central, the service never starts and does not show any error messages either.
    The thing I did was to remove all databases from the service and started adding them one by one, that's how I pinpointed the issue to a single database file.
    Could some direct me to a procedure to repair the database file?
    Thanks!!!

    Hi Juan,
    Do you know what is happening on the server if you're just trying to start the one problematic database? It would be best if you could point this information to a diagnostic file and post it here so that we can make further suggestions:
        dbsrv9 -o console.txt baddatabase.db
    If the database is undergoing automatic recovery, it would be best for you to wait for it to finish.
    Going to your backup and recovery plan is the next best thing to do so you don't lose any data on your database. You should be able to apply the transaction log from the current database to bring the backup file up-to-date with the current changes.
    Finally, you can try rebuilding the database to see if it's a structural problem. If the database is really corrupted, you may have to try to resort to salvaging data from what you can still access and create a new database from the remaining information (See SAP KBA 1959030 - How To Salvage Data When There are Corrupt Pages in the Database).
    Regards,
    Jeff Albion
    SAP Active Global Support

  • TC HDD deleted (OMG)- how to rebuild my iphoto library?

    Hi folks,
    days ago I realized that my HDD inside this TC had a severe problem that had to be solved. However in the end I deleted this HDD just to make in run again. UHHH! Fortunately I did not reformat the drive.
    I could find most of these files by using "Data rescue 4" - but: How could I rebuild my iphoto library? Is there any tool available?  Data rescue created many many folders including all photos I've ever had on my system, not only those which were stored by iPhoto. Any way to find out, which should be kept?
    And how to rebuild my itunes library?
    iPhoto 9.6.
    iTunes 12.0.1.26
    Yosemite 10.10.1

    The photos are available (they seem not to be damaged!), but they are located in different folders. How to manage?
    An iPhoto Library is a complex database. You have retrieved the photos, but not the database files, and even if you could retrieve them, they would point to the original filenames in the original folders. The same goes for your iTunes library.
    If you cannot restore the original libraries /Mediatheken,  you can only create new libraries and add the photos, folder by folder, and recreate your events and albums. Then rate the photos again and delete the photos you do not want.

  • Corrupted Database in Lightroom 3 Beta

    Can anyone offer any help how to recover from a "corrupted
    database" error on startup? It gives an option to repair, but it is unsuccessful. I was one who disregarded al the warnings about not using the beta for production, but I liked it so much that I just completed a huge wedding. Luckily, all my chosen files were exported as Jpegs but I have lost many, many hours of work. I also have LR2 which I had always used previously.

    Try your catalog back up file, just click to open the most recent and hopefully that will work and as long as you made regular back ups you should be OK. If all else fails import the files into a new catalog using the Beta and then update the files from the metadata (this will obviously only work if you save out the metadata. You can also do the same with LR 2 although if you used the new process version in LR 3 this will be lost.
    Using a Beat for production work is not a good idea, but at least if you backed up catalogs and wrote data out as xmp side car or directly to file if you converted to DNG you can always recover. If you did none of these things and used a Beta then you really are in trouble!

  • New mail messages not visible--"detected corrupt database" related?

    I am using Mail.app and an iPod Touch with an Exchange server (Intermedia). All of a sudden in the last few days, recent mail on the server is not visible using Mail.app or the iPod Touch. I have deleted the mail accounts on both devices twice and done an entirely fresh download of all mail on both, and the problem persists.
    Mail in the Inbox is visible. However, if I move an Inbox message to, say, Archive or Travel, then it becomes invisible--even though it is intact on the server and in its proper location there.
    I have also repaired permissions and run sudo daily/weekly/monthly maintenance processes, to no avail.
    In the console, I see the following error message. Could this be related and is there a way to fix it?
    Jul 17 11:14:36 xxx-xxxx-macbook Mail[108]: ISyncDataDirectoryCorruptedException: detected corrupt database while executing delete from Record
    Thanks for any help.
    Message was edited by: RKNYC

    Update: all messages are viewable in Entourage Exchange Web Services 2008, but not in Apple Mail, or in Mail on my iPod Touch, or after a new download of all mail on another Mac in Mail.app. Why is Entourage able to see all the messages while all the Apple Mail clients are missing them?

  • How to rebuild oracle 8.1.7.4 indexes online or thi sindex: sys_c001316

    This select is running for hours
    SELECT t1.native_id
    FROM atc_xref t1
    WHERE t1.app_id = :v0
    AND t1.obj_name = :v1
    AND t1.canonical_id = :v2
    How to rebuild 8 i indexes fo improve performance or to resolve ora_08108

    What is the size of atc_xref ? How many records do you have in it? When did it start behaving like that? What was your last major change to the database?

  • Fixing Corrupt Files

    I have Windows Vista and created another user account. When I tried to logon/open it I received the following error message: “The User Profile
    Service service failed the logon. User Profile cannot be located.” I tried rebooting my computer with no success. I also tried System Restore with no luck in fixing the problem.
    I then scanned for corrupt files using
    ‘sfc /scannow’ and received the msg "Unable to fix some corrupt files. Details in the
    CBS.Log Windir\Logs\CBS\CBS.log. For example: C:Windows\Logs\CBS\CBS.log"
    To identify the corrupt files that could not be fixed, I performed the following: "Click
    Start - All Programs - Accessories - Right click Command Prompt and choose Run As Administrator. Type (or copy the below line and one blank line
    underneath and right click in the command prompt window and choose Paste) - findstr
    /c:"[SR] Cannot" %windir%\logs\cbs\cbs.log |more" and got the following:
    Microsoft Windows [Version 6.0.6002]
    Copyright (c) 2006 Microsoft Corporation. 
    All rights reserved.
    C:\Windows\system32>findstr /c:"[SR] Cannot" %windir%\logs\cbs\cbs.log |more
    2014-01-17 10:06:35, Info                 
    CSI    0000014d [SR] Cannot repair member file [l:20{10}]"tcpmon.ini" of Microsoft-Windows-Printing-StandardPortMonitor-TCPMonINI, Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral,
    VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-01-17 10:06:37, Info                 
    CSI    0000014f [SR] Cannot repair me
    mber file [l:20{10}]"tcpmon.ini" of Microsoft-Windows-Printing-StandardPortMonitor-TCPMonINI, Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL
    (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-01-17 10:07:39, Info                 
    CSI    00000174 [SR] Cannot repair member file [l:24{12}]"settings.ini" of Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope= 1 nonSxS, PublicKeyToken
    = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-01-17 10:07:44, Info                 
    CSI    00000176 [SR] Cannot repair member file [l:24{12}]"settings.ini" of Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope= 1 nonSxS, PublicKeyToken
    = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-01-17 10:10:19, Info                 
    CSI    000001d5 [SR] Cannot repair member file [l:20{10}]"tcpmon.ini" of Microsoft-Windows-Printing-StandardPortMonitor-TCPMonINI, Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral,
    VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-01-17 10:10:19, Info                 
    CSI    000001d7 [SR] Cannot repair member file [l:24{12}]"settings.ini" of Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope= 1 nonSxS, PublicKeyToken
    = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-01-17 10:10:19, Info                 
    CSI    000001dc [SR] Cannot repair member file [l:20{10}]"tcpmon.ini" of Microsoft-Windows-Printing-StandardPortMonitor-TCPMonINI, Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral,
    VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-01-17 10:10:19, Info                 
    CSI    000001e2 [SR] Cannot repair member file [l:24{12}]"settings.ini" of Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope= 1 nonSxS, PublicKeyToken
    = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
    Now I need to find out how to repair the corrupt files. Can anyone provide me directions?

    Have you tried these steps? 
    Fix a corrupted user profile-vista
    http://windows.microsoft.com/en-us/windows/fix-corrupted-user-profile#1TC=windows-vista
    You receive a "The User Profile Service failed the logon” error message
    http://support.microsoft.com/kb/947215

  • Python + Miro from testing lead to corrupted database

    This update today was a killer. Miro just blew up and took all my channel metadata along with it to the tune of 'corrupted database'.
    It doesn't work even when I delete the .miro folder from my home. The thing errors out when I try to close it and stays open...
    OT: I've had a fair share of problems with Miro so I think it's time to look for something less bloated and less fragile. Any ideas?

    user3006396 wrote:
    Hi Experts,
    On one of the servers with Windows Server 2008, we have 5 Oracle 11g databases installed for our dev & testing environments.
    With the help of oracle client we are connecting to those server db's.
    Last Friday,for one of the db's, I have populated a million records to few tables and everything was fine on that day.
    Suddenly on this Monday, one of the front-end users complained that the db was not working. We are not able to connect to that db, but able to connect to one of the other db's on the same server.
    Message thrown was :
    " ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor "
    I connected to server and tried to login from there..the same message was thrown, but able to connect to other db's.
    Finally I set the oracle_home path to the db to which i was not able to login and connected using
    something like....
    conn /as sysdbaidle instance
    startup;database mounted
    database started
    After that i was able to connect to that db as well as all other db's on the server.
    My doubt is, why suddenly that stopped working and it didn't work until i use "startup" command ?
    Also, how DBA's maintain server's with multiple oracle_home's?(though recommended to have multiple schema's instead of multiple db's)
    I'm the only Oracle guy in the team and need to take care of everything(basically i'm developer and new to DBA related tasks)
    My lead's warned me to make sure that it won't happen again !!
    Thanks guys.. you are always awesome in giving nice suggestions.find alert_SID.log file post excerpt showing entries from period just prior to the DB STARTUP.
    it appears the instance went missing.
    Hopefully the log file will have clues as to why it went away.

  • How to create many user in the same database

    hi
    my question is "How to create many user in the same database(application)?"
    for example, i have students, teachers, and staffs user using my application.
    i can create many users to use the same application right?, how ^^''' ???
    (right now i can only create application and then it shows every data in my DB
    but i want it to show only the data for the user who login to that application)
    Thanks.
    ps. i'm newbie, please help T^T

    You need to create a user table within your application that maintains their privileges. If you have LDAP you could use this for authorisation otherwise the table would handle that as well (store passwords etc). Your reports etc would then be filtered on information from this table.
    Check out some of the sample applications to see how authorisation and access is implemented (Online store is one). The how-to on the issue tracking system should also have some useful pointers.
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/issue_track.htm#BABBGBJG
    cheers,
    Ron

Maybe you are looking for

  • Is it possible to have a VI "run when opened" when accessed via Internet Explorer?

    I am trying to get a remote panel application to "run when opened" when is accessed via Internet explorer. I have multiple remote panel licenses on the server and the VI is Re-entrant. The application works well except for this issue. Having the VI "

  • Remove a value from chart

    Hello, Is it possible to remove a certain value from a bar chart ? I have all necessery values on my chart with addition of one bar which include all leftovers which should be removed.  Thanks in advance for any suggestions I use Crystal reports XIR2

  • Story order in dynamic TOC?

    Hi. I'm just learning to use the Table of Contents function in ID. I'm having trouble where there are multiple stories on a single page (for example, a section header at the top of the page that's a separate text block from the longer running text be

  • Crystal 2008 - Report Index Bursting, what is this?

    The help in CR defines it as this, but could someone please elaborate. "The Saved Data Indexes dialog box appears when you select the Report Bursting Indexes command from the Report menu. Use this dialog box to select the fields you want indexed with

  • Regarding contract free t-mobile iPhone 5s usage internationally

    if i get a iphone 5s contract free in tmobile , can i use it internationally soon after or should i fulfill some requirements to use it internationally