DELETE_DOC and other records in the REVCLASSES table

Hello WebCenter content masters,


I am facing a strange and painful problem.

I have several documents with dDocName I got (not automatically generated). I deleted a bunch of them (about 100) using service RIDC DELETE_DOC. But when I try to check in new documents with the dDocName of these deleted items, I got an error:


intradoc.common.ServiceException:! csServiceDataException, CHECKIN_NEW_SUB, makeNewRevClass! $ * ScriptStack CHECKIN_NEW_SUB

3:doScriptableAction, dDocName is 638470463:doSubService, dDocName = 63847046CHECKIN_NEW_SUB, dDocName = 638470463:makeNewRevClass, dDocName = 63847046

...

Caused by: intradoc.data.DataException:! csDbUnableToExecuteQuery, IrevClasses (INSERT INTO RevClasses (dRevClassID\, dDocName\, dDocCreator\, dDocCreatedDate\, dDocLastModifier\, dDocLastModifiedDate\, dDocOwner\, dDocFunction) VALUES(2894314\, '63847046'\, 'admin'\, {ts '2013-06-11 09:15:59.745'}\, 'admin'\, {ts '2013-06-11 09:15:59.745'}\, 'admin'\, ''))! $ORA - 00001: unique constraint (PRD_OCS. DDOCNAME_REVCLASSES) violated

...

Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (PRD_OCS. DDOCNAME_REVCLASSES) violated

So, I checked the REVCLASSES table and was surprised to see there are still records of deleted documents.

Select * from documenthistory where ddocname = '63847046' order of dactiondate desc;

24/05/13 14:13, 000000000 121467985 2172024 2172070 admin 63847046 delete Document Public

24/05/13 14:13, 000000000 121468000 2172024 2172070 admin 63847046 remove public review

15/05/13 02:04, 000000000 121481564 2172024 2172070 admin 63847046 Checkin Public

Select * from revision where ddocname = '63847046';

vacuum

Select * from revclasses where ddocname = '63847046';

2172070 63847046 2172024 15/05/13 02:04:41, System 455000000 15/05/13 02:04:41, 000000000 admin admin (null)

I can't understand what has happened and cannot reproduce the problem. Normally, I delete with DELETE_DOC no more documents exist in the REVCLASSES table.

I tried to run a Cycle of regeneration Collection, thinking it would be to clean up the database, but to no avail.

So my question is: is it possible to sort a cleaning of the database, which would remove this kind of mistake? or do I have to manually remove these records 'ghosts'?

Thank you for reading.

Hello!

You could run a check of database with the IdcAnalyze cmdlet.

This tool checks the tables and detect inconsistencies.

You will find in $DOMAIN_HOME/ucm/cs/bin

If there is something wrong, it will be detected and IdcAnalyze will generate scripts to correct inconsistencies.

Roman.

Tags: Fusion Middleware

Similar Questions

  • How to upgrade the parent table and child by updating the parent table

    I have a parent EMPLOYEE table that includes columns (sysid, serviceno, employeename...) sysid is the primary key, serviceno is the Unique key and I have DEPENDENT child table includes columns (sysid, employee_sysid, name, date of birth...) there still SYSID is a primary key for the table of dependants, employee_sysid is a foreign key in the EMPLOYEE table.

    Now I want to change SYSID (with the help of the sequence) in the EMPLOYEE table that they want an update in the table of people dependent

    Note: I have 10000 records in the EMPLOYEE table as I have 5 more children tables that need to update new SYSID.

    Please help me

    first disable FOREIGN KEY constraints.
    You can update Parent and child record with the help of the trigger.
    Here I give you an examlpe... It can help u.

    create a parent (id number primary key, name varchar2 (100)) table
    /
    create table child_1 (primary key id, p_id number number, date of birth, date)
    CONSTRAINT FK_id FOREIGN KEY (p_id) REFERENCES parent (ID))
    /
    create table child_2 (key primary id, p_id2, addr varchar2 number number (1000))
    CONSTRAINT FK_id2 FOREIGN KEY (p_id2) REFERENCES parent (ID))
    /

    Insert some test data for the parent tables and children.

    change the constraint to disable child_2 table FK_id2
    /
    change the constraint to disable child_1 table FK_id2
    /

    CREATE OR REPLACE TRIGGER delete_child
    BEFORE parent UPDATE ON
    FOR EACH LINE
    BEGIN
    UPDATE CHILD_1
    P_ID =:NEW.ID SET
    WHERE P_ID =:OLD.ID;
    UPDATE CHILD_2
    SET = P_ID2: NEW.ID
    WHERE P_ID2 =:OLD.ID;
    END;
    /

    then Upadte parent table primary key col and check the children tables.
    do enable constraints...

  • Add records in the target table

    Hi all
    I HAV done an interface for a simple source data transfer to the target. When I run it, the records are stored in the target table. Now, I want to launch the interface (for the same or different source table) and add the records to existing records in the target table.

    Kindly guide me, explaining how shud I do the addition in the target table.

    Thanks in advance.

    Hello

    You can use the IKM control add... it will add records...

    Thank you.

  • Using JOIN to two tables to find records in the second table...

    I always seem to get these types of queries wrong and need a bit of help:

    I have a MARKETER_ACCOUNT relationship table and another table of pending relationships called ACCOUNT_ENROLLMENT.

    I have accounts that can register with a MARKETING agent. They enter the table ACCOUNT_ENROLLMENT pending and a certain Effective Date the active go and then move to the MARKETER_ACCOUNT table. If a relationship ends, it can end in any event if registering with another buyer or if no registration pending they are supposed to be going back to the parent company.

    So I want to find all the records that came back to the parent company (that is, they may not have a case pending in the ACCOUNT_ENROLLMENT of the table, but have an end date in the MARKETER_ACCOUNT table):

    Select * MARKETER_ACCOUNT m
    where M.account_no NOT IN (select E.account_no from ACCOUNT_ENROLLMENT E
    where E.effective_date between 8 December 2009 "-January 7, 2010")
    and M.expiration_date between 8 December 2009 "-January 7, 2010;

    This request is still in progress, and I don't know where I am going wrong. I mean GIVE me all the accounts in the table MARKETER_ACCOUNT that have a date of expiry from December 7, 2009 "-January 7, 2010 ' and where these accounts are NOT pending in the ACCOUNT_ENROLLMENT table, where the entry into force is for the same period."

    Any help would be greatly appreciated.

    Sean

    Perhaps you could try the version NOT EXISTS in the query:

    SELECT  *
    FROM    MARKETER_ACCOUNT M
    WHERE   NOT EXISTS
            (
                    SELECT  NULL
                    FROM    ACCOUNT_ENROLLMENT E
                    WHERE   M.ACCOUNT_NO = E.ACCOUNT_NO
                    AND     E.EFFECTIVE_DATE BETWEEN TO_DATE('08-DEC-2009','DD-MON-YYYY') AND TO_DATE('07-JAN-2010','DD-MON-YYYY')
            )
    AND     M.EXPIRATION_DATE BETWEEN TO_DATE('08-DEC-2009','DD-MON-YYYY') AND TO_DATE('07-JAN-2010','DD-MON-YYYY');
    

    If not, check out these discussions:

    {message: id = 1812597}

    {: identifier of the thread = 863295}

  • Just installed Mac OS Sierra on Mac Pro air. What I do need to update to Safari and other applications on the iPhone and I have the carpet?

    Just installed Mac OS Sierra on Mac Pro air.

    What I do need to update to Safari and other applications on the iPhone and I have the carpet?

    Unless otherwise indicated by an application or in the description of an update, no.

    (144880)

  • our macbook copy all messages and other activities of the iMac in the office. Is there a way to isolate the macbook?

    our macbook copy all messages and other activities of the Office of the IMac. Is there a way to isolate the macbook

    to be a fully independent computer?

    Your iCloud and any IMAP will be synchronized. You can connect with one another on the MacBook Apple ID, or you can turn off sync iCloud and IMAP account.

    System Preferences > iCloud

    Uncheck the items you don't want not synchronized.

    Mail > accounts

    Uncheck all of the accounts that you don't want not synchronized.

  • "Could not open INSTALL. NEWSPAPER"when I try to uninstall Yahoo messenger and other programs of the control panel

    Original title: "Could not open INSTALL. JOURNAL ".

    We get this message when I try to uninstall Yahoo messenger and other programs of the control panel.

    Hi thomaskirchoff,


     

    (1) how long have you been faced with this problem?

    (2) what is the complete error message you receive?

    Method 1: You can see the steps in the Yahoo link below

    http://help.Yahoo.com/kb/index?locale=en_US&page=content&y=PROD_MSNG_MSNG10&ID=SLN649&impressions=true


     

    Method 2:

    If a Protection of resources Windows (WRP) file is missing or is damaged, Windows may not behave as expected. Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps mentioned in the link below:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    Method 3:  Put the computer to boot and then check if the problem persists

    Follow step 1 in the link below,
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Important: n ' forget not to put the computer to a normal startup follow step 7 in the link.

  • BlackBerry Smartphones Just accepts updates my Blackberry Desktop and all THE Photo and video recorded on the Media Manager went

    Hello! I just accepted updates my Blackberry Desktop includes all Blackberry Desktop manager treats me like a new. And freaked out as all THE Photo and video recorded on the old Media Manager Media Manager are worth more than 3 years gone-Its photos and videos that I have stored on the Blackberry Desktop that existed before the update

    Really freaked out because these photos are irrepalcable would appreciate advice thanks

    Hello

    Have you checked to see if the pictures are found in your Documents folder by browsing until then on your computer system?

    What version of the Desktop software update you? Select the [?] is the top right and select "on BlackBerry Desktop Software. Version 7.1.0. ? or 7.0.0. ? or 6.1.0. ?

  • How can I get the history, SID and other details of the accounts of users deleted in Windows XP, 7 and 8?

    Original title: deleted user accounts.

    Hi guys,.

    I want to know the activities of a user whose account has been deleted. How can I get the history, SID and other details of the accounts of users deleted in Windows XP, 7 and 8?

    Hello

    Thanks for posting in the Microsoft Community.

    There is no newspaper available for the activities of the user. There are just a few activities of windows and the error logs is stored in Windows.

    Hope this information helps.

    If you need help to resolve any issues related to Windows, please reply and we will be happy to help you.

  • Why EnableProxy Reg_DWORD is missing in windows xp, while windows vista and others, OS has the EnableProxy Reg_DWORD in the registry editor?

    Why EnableProxy Reg_DWORD is missing in windows xp, while windows vista and others, OS has the EnableProxy Reg_DWORD in the registry editor?

    Hi Stuckfree,

    Your question would be better suited for the TechNet forums.

    I suggest you to ask your question to the TechNet forum for better support.

    http://social.technet.Microsoft.com/forums/en-us/category/windowsxpitpro

  • FETCH ONE RECORD IN THE SECOND TABLE OF CORRELATED SUB QUERY

    Hi all

    I have provided the script below, I want to single fecth record in the second table in the join query,

    based on the example below, I want to go get one record of the table emp2 what matches with the emp_id of table emp1, please note emp2 may contain more record for the emp_id emp1 which respects

    all records can be selected in the table emp2.

    DROP TABLE emp1.

    CREATE TABLE emp1 (emp_id NUMBER);

    INSERT INTO emp1 VALUES (1);

    INSERT INTO emp1 VALUES (2);

    COMMIT;

    DROP TABLE emp2.

    CREATE TABLE emp2 (emp_id NUMBER, emp_name VARCHAR2 (100));

    INSERT INTO emp2 VALUES (1, 'Name1');

    INSERT INTO emp2 VALUES (2, 'Name2');

    INSERT INTO emp2 VALUES (1, 'Name3');

    INSERT INTO emp2 VALUES (2, 'Conjoint4');

    COMMIT;

    SELECT * from emp1.

    SELECT * from emp2.

    SELECT T1. EMP_ID, MIN (T2. EMP_NAME)

    FROM EMP1, EMP2 T2 T1

    WHERE T1. EMP_ID = T2. EMP_ID

    GROUP T1. EMP_ID;

    My output should be the same as the result set of query above, but I don't want this logic, please provide the solution by using a different logic, thanks in advance.

    2811876 wrote:

    Thanks for your comments :-)

    My business logic will change to 'Fetch N second timeline table', that's the reason why I asked for a different approach, if I use max, min to achieve this does not allow me to evolve dynamically.

    Although logic has not been expressed at all in your original question, so good job I asked.

    You could do something like:

    SQL > ed
    A written file afiedt.buf

    1 with emp1 (select 1 as the emp_id of union double all the)
    2. Select 2 double
    3               )
    4, emp2 (select 1 as emp_id, 'name 1' as emp_name double union all
    5. Select "name 2' Union double every 2
    6 select 1, 'name' 3' from dual union all
    7. Select 2, 'name 4' double union all.
    8 select 1, 'name 5' from dual union all '.
    9 select 2, 'name 6' from dual '.
    10               )
    11-
    12. end of test data
    13-
    14 select emp_id, emp_name
    15 of)
    16 select t1.emp_id, t2.emp_name
    17, row_number() over (partition by order of t2.emp_name t1.emp_id) rn
    emp1 t1 18
    19 join t2 emp2 (t1.emp_id = t2.emp_id)
    20       )
    21 * where rn<=>
    SQL > /.

    Enter the value for rows_required: 1
    21 Alumni: where rn<=>
    21 news: where rn<=>

    EMP_ID EMP_NA
    ---------- ------
    1 name 1
    2 name 2

    SQL > /.
    Enter the value for rows_required: 2
    21 Alumni: where rn<=>
    21 news: where rn<=>

    EMP_ID EMP_NA
    ---------- ------
    1 name 1
    1 name 3
    2 name 2
    2 name 4

  • is it possible to have two different images in "develop" mode  I need to match the color and other image to the other.

    is it possible to have two different images in "develop" mode  I need to match the color and other image to the other.

    Select the reference image and choose window > secondary display > Magnifier (locked). Now the image you want to change, and start working. You can refer to the secondary display window while you work on the image you are editing,

    If you have a second monitor attached, the entire second monitor may be the secondary display.

  • In Adobe Flash CS6, I have a blue box appearing around lines drawn with the line tool (and other tools like the brush etc.). I can't understand how to disable.

    In Adobe Flash CS6, I have a blue box appearing around lines drawn with the line tool (and other tools like the brush etc.). Whenever I try to use a tool, a blue box appears around the line and I have to double click on it to handle, which opens just this line in a screen finery semi where all other objects are semi-gris in the background. I can handle this line in this screen, but nothing else at this point I could do 5 minutes ago. For example, I can no longer reach the 2 lines drawn by the tool online together. For some reason, it started randomly (probably due to an accidental combination) and I just can't put it to what it was. I inserted a video showing if all goes well I mean. Any help would be appreciated.

    Object drawing mode. Simply disable it in the tools Panel, or by using the default keyboard shortcut, which is J.

  • How to update columns with the value of other lines in the same table

    Hello

    I use Oracle 11.2, I'd use SQL statements to update a column based on values in other rows in the same table. Here are the details:

    create table TB_test (number 4 myId, crtTs date, date of MDPU);

    insert into tb_test (1, to_date ('20110101', 'YYYYMMDD'), null);
    insert into tb_test (1, to_date ('20110201', 'YYYYMMDD'), null);
    insert into tb_test (1, to_date ('20110301', 'YYYYMMDD'), null);
    insert into tb_test (2, to_date ('20110901', 'YYYYMMDD'), null);
    insert into tb_test (2, to_date ('20110902', 'YYYYMMDD'), null);

    After you run the SQL code, I would like to have the following result:

    1, 20110101, 20110201
    1, 20110201, 20110301
    1, 20110301, null
    2, 20110901, 20110902
    2, 20110902, null

    Thanks for your suggestion.

    I guess you need this, otherwise please explain logic correctly:

    SQL> merge into tb_test t
      2  using (
      3    select rowid as rid
      4         , lead(crtts) over(partition by myid order by crtts) as updts
      5    from tb_test
      6  ) v
      7  on (t.rowid = v.rid)
      8  when matched then update
      9   set t.updts = v.updts
     10  ;
    
    5 rows merged.
    
    SQL> select * from tb_test order by 1,2;
    
          MYID CRTTS     UPDTS
    ---------- --------- ---------
             1 01-JAN-11 01-FEB-11
             1 01-FEB-11 01-MAR-11
             1 01-MAR-11
             2 01-SEP-11 02-SEP-11
             2 02-SEP-11
    
  • Records in the Child Table to return DBAT connector deletion and addition

    I'm trying to add a record of the child to a resource DBAT (11.1.1.5). The structure of the Table is set up like this:

    OIM_USR

    Usr_key First name Last_name

    OIM_ROLE

    USR_KEY ROLE_KEY

    Where OIM_USR is the parent, and OIM_ROLE is the child that can store multiple values per user.  The problem arises when there is already an existing value in the child table. Consider the following example for instance

    OIM_USR

    Usr_key First name Last_name
    45JohnDOE

    OIM_ROLE

    USR_KEY ROLE_KEY
    452454
    454453

    If I add another line to the role of the identity UI table Edit tab added resource role, but IOM is remove the previous two lines and then adding them back. We know that it is because the source OIM_ROLE table contains a timestamp of creation triggered update time when a row is added. If I add a line to OIM_ROW then all three are getting updates for a reason any. We can also see the history of resource shows three updates. Inserting a record of the child should not call the process of update tasks. I've attached a screenshot of the history of the resource.

    In addition, I upped the DBAT Connector logs and he showed a trace of remove:

    DELETE FROM OIM_ROLES WHERE OIM_ROLES. USR_KEY =?

    Why he deletes all children lines before an insertion?

    I think you use OOTB DBAT connector without modification. I think that's how its design to add/change/delete files. For child process also updated form, we follow the same approach.

    Are you facing any functional problem in connector DBAT to reach your use cases?

    ~ J

Maybe you are looking for

  • Qosmio G40 - 10F won't boot up - PCI Express error

    I recently installed a windows update and the laptop came in restart mode.When the system boots it tries to start then I get a say black screen error PCI Express. I tried a system restore, but the disc does not start, also tried to access the bios an

  • Satellite Pro U300 - it just freezes and makes a noise

    Hello! I think I have a very similar problem!Since I bought my computer happens but not on startup. When I'm with her, she just freezes, makes a loud noise and I can't do anything to turn off, I need to use the same radical technique! Hold the reset

  • Sound card prob

    Hello guys it, s been a sense I used my laptop since the death of my audio card due to problems of unknow somehow I was wounering if none know what kind a sound will be support/compitable with my m system so I can replace or if hp sell Please I need

  • envelopes will not feed Laserjet P2035

    I used a program called Stamps.com, which has worked well in the past, to print envelopes which sender, address of the recipient and a printed stamp.  But today, when we put an envelope in the manual feed tray, envelope do not get sucked into the pri

  • HP Photosmart 8750: Cannot find my printer HP Photosmart 8750 installation CD

    I accidentally uninstalled the element during. My Photosmart 8750 printer.  I am a photographer/writer and almost impossible to believe that I did... AHHHH!   My cd, I keep in a notebook FULL of tips to installation over the years and which has yet t