Category: Content Server
DQL to find the count of documents in each folder location under /Cabinet/FolderA/FolderB.
Linked documents can definitely affect your folder count. Below is a modified version of your query to help identify where these linked documents might be located: SELECT fdr.r_folder_path, COUNT(doc.r_object_id) as doccnt,sum(doc.i_reference_cnt) as refcnt, sum(doc.r_full_content_size)/1024 as sizeKBFROM dm_document (ALL) doc, dm_folder_r fdrWHERE ANY doc.i_folder_id = fdr.r_object_idAND fdr.r_folder_path like ‘/Temp%’GROUP BY fdr.r_folder_path ORDER BY fdr.r_folder_path result looks…
Four views for each subtype
In Documentum, data is stored in various object types, with dm_document being one of the most frequently used. To effectively interact with this object type, Documentum provides different views, each serving a specific purpose. These views are designed to handle both single-valued (non-repeating) and repeating attributes, and they are accessed by different components of the…
Best Practices for Creating Indexes in Documentum
Efficient data retrieval is critical in content management systems like Documentum, where large volumes of data are managed. One way to optimize query performance is by indexing key attributes. However, creating indexes on Documentum base tables requires careful consideration and proper methods. It is strongly recommended that all indexes be created within Documentum itself, not…
Steps to recover deleted document from Docbase
NOTE :This approach is useful only when dm_DMClean and dm_DMFilescan jobs are not run on the repository after the document is deleted. 1. Query the dmr_content table to find the details of the deleted file SYNTAX : select r_object_id from dmr_content where full_format='<deleted document format>’ and set_file like ‘<Deleted document name>’ Example : select r_object_id from dmr_content where…
Audit
select t.name,r.event,r.user_namefrom dmi_registry r, dm_type twhere r.is_audittrail = 1and t.r_object_id = r.registered_id select r.registered_id, r.event,r.user_namefrom dmi_registry rwhere r.is_audittrail = 1 How to get the deleted documents list in a cabinet using DQL in Documentum? select r_object_id from dm_cabinet where object_name = ‘Reports’0c0271838587137a SELECT * FROM dm_audittrail d, dm_audittrail lWHERE d.event_name = ‘dm_destroy’AND l.event_name = ‘dm_link’AND…
Retention – Query
find all the workorders currently in progress: SELECT r_object_id, object_name, completion_status, mw.object_name, w.master_workorder_idFROM dmc_rps_work_order w, dmc_rps_master_work_order mwwhere completion_status = ‘PROCESSING’and mw.r_object_id = w.master_workorder_id SELECT r_object_id, object_name, completion_statusFROM dmc_rps_master_work_order mwwhere completion_status = ‘PROCESSING’ The following work order (6523) is in progress: dump: select distinct operation_name from dmc_rps_master_work_order select distinct operation_name, count(r_object_id)from dmc_rps_master_work_ordergroup by operation_name RETAINER_PROMOTION ……………………………..829RETAINER_QUALIFICATION…
Changing the Docbase ID after installation
The repository was cloned and in the end when they tried to start it up if failed because the wrong Docbase ID was used. Can this be fixed without repeating the exercise? All the post cloning tasks were completed. There is a migration utility under $DM_HOME/install/external_apps/MigrationUtil that allows you to change the docbase ID.
execute job using script
A job is simply an object that schedules the execution of the associated method. So you can either update the dm_job.run_now attribute or you can run the method directly using IDfSession.apply method, e.g. session.apply(null, “DO_METHOD”, args, dataTypes, values);
content conversion – from encrypt to decrypt
We have some content stored in encrypted filestore. We are using Documentum 20.2. Can I decrypt the encrypted files manually and move it to normal filestore? If yes, then how to decrypt the files manually? By moving it to a non-encrypted filestore, e.g. fetch,c,<doc-id> set,c,l,a_storage_type <non-encrypted-store-name> save,c,l Or via MIGRATE_CONTENT administration method.