Quick Search,,,

Monday, January 11, 2016

How to export or migrate a specific folders from your folder structure in oracle webcenter content with or without contents?

GOOD DAY,,,

In Some cases, you need to export or migrating a specific folders from your folder structure with their contents or sometimes without their contents from one WebCenter Content instance to another. 

In this Post the folder architecture in this example is Folders_g. Although Framework Folders is the recommended folders component for WebCenter Content 11g. 

To prepare, you must first have the FoldersStructureArchive component enabled on both the source and target instances.  
In addition to enabling the component, there is a configuration flag to set.  By default, the config variable ArchiveFolderStructureOnly is set to false which means content will be exported along with the folders, so that can be left.
The config variable AllowArchiveNoneFolderItem is set to true by default which means it will export content both in the folder structure as well as those not selected...or even outside of folders.
Basically, it means you must use the Export Criteria in the archive to control the content to export either you want or you don't want to export any contents with the selected folders you can use Export query. 
In our use case, we only want the content within the folders we select, so the configuration should be set as AllowArchiveNoneFolderItem=false. Now only content that is in our selected folders will get exported into the archive. This can be set in the General Configuration in the Admin Server.
You will also need to make sure the custom metadata fields on both instances is identical. If they are mismatched, the folders will not import into the target instance correctly. You can use the Configuration Migration Utility to migrate those metadata fields. 

Once the component is enabled and configurations set we can begin our export or migrating process:
   1. go to Administration - Admin Applets - Archiver and select Edit - Add... 
       to create a new archive.  






2. Now that the archive is established, go back to the browser and login your webcenter 
        content then go to: 
        Administration - Folder Archiver Configuration.
        For the Collection Name, it will default to the local collection.  Change this if your 
        archive is in a different collection in our example it's ExportFoldersAndFiles.
        Select your Archive Name from the list.




   3. Expand the folder hierarchy and you can now select the specific folder(s) you want to 
         migrate.  

        Note: The thing to keep in mind are the parent folders to the ones you are selecting.  If 
                  the idea is you want to migrate a certain section of the folder hierarchy to the 
                  other server and you want it to be in the same place in the target instance, you 
                  want to make sure that the parent folder already exists in the target.  It is 
                  possible to migrate a folder and place it within a different parent folder in the 
                  target instance, but then you need to make sure you set the import maps 
                  correctly to specify the destination folder.






   4. Once they are selected, click the Add button to save the configuration.  This will add 
         the right criteria to the archive. 

   5.  Now go back to the Archiver applet.  Highlight the archive and select Actions - Export. 
        Be sure 'Export Tables' is selected.  

       NoteIf you try using the Preview on either the contents or the Table data, both will 
                show everything and not just what you selected. This is normal. The filtering of 
                content and folders is not reflected in the Preview. Once completed, you can click 
                on the View Batch Files... button to verify the results. You should see an entry for 
                the Collections_arTables and one or more for the content items.  

   6. Once you have the archive exported, you need to transfer it from the source to the 
       target instance.

       Important Note: If you don't have the outgoing providers set up or your target server on 
                                 another server that you don't have any connection to do the transfer
                                 you can sometimes copy over the archive folder from 
                                 (cs instance dir)\archives\(archive name) directly over to the other 
                                 instance. Then manually modify the collection.hda file on the target to
                          let it know about the archive for more details about this step
                          please read my post "Export contents from oracle UCM instance 
                                 and import them into deferent UCM instance server without using 
                                 replication or transferring data "Click here to Read more"

   7. Before import you need to edit value map - "Edit Value Maps", here you can add your 
      query map values into your target server. 

      Important Note: Be sure to add the value of the dCollectionID of the parent 
                                       folder from the source instance in the Input ValueFor the Field
                                       you want to change this to be the dParentCollectionID. And for 
                                       the Output Value, you want this to be the dCollectionID of 
                                       the parent folder in the target instance.
   This will now map the folders into the correct location on target.

   8. The archive is now ready to be imported.  Click on Actions - Import and be sure the 
         'Import Tables' check-box is checked.  
         
                           
Enjoy,
Mohammad K. Faidi
  "Think Positive"

No comments:

Post a Comment