博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
EMC Documentum DQL整理(三)
阅读量:5096 次
发布时间:2019-06-13

本文共 1708 字,大约阅读时间需要 5 分钟。

 

 

1.Get Content Size in folder
SELECT
SUM(r_full_content_size/1024.0)
FROM dm_sysobject 
WHERE
FOLDER('{0}',
DESCEND)
 
2.Count of documents in each folder/subfolder
SELECT fr.r_folder_path,
COUNT(*) 
FROM dm_sysobject s, dm_sysobject_r sr, dm_folder_r fr, dm_document dm 
WHERE s.i_is_deleted = 0 
AND sr.i_position = -1 
AND fr.i_position = -1 
AND sr.r_object_id = s.r_object_id 
AND fr.r_object_id = sr.i_folder_id 
AND dm.r_object_id = s.r_object_id 
AND
FOLDER('{0}',
DESCE
ND)
GROUP
BY fr.r_folder_path
 
3.Get all types used in a specific folder
SELECT 
DISTINCT r_object_type
FROM dm_sysobject 
WHERE
FOLDER ('{0}',
DESCEND)
 
4.Get ​Current Logged in users
EXECUTE
list_sessions;
5.Get Retention
SELECT r_object_id,rendition,full_format,content_size,set_client,set_file,set_time,storage_id
FROM dmr_content
WHERE
ANY parent_id ='{0}'
 
6.Get duplicate objects
SELECT object_name,
COUNT(object_name)
FROM dm_document
GROUP
BY object_name
HAVING
COUNT(object_name)>=2
 
7.Get file location
EXECUTE 
get_file_url FOR '{0}'
EXECUTE get_path FOR '{0}'  (Id in dmr_content)
 
8.List empty folders by cabinet 
SELECT f1.r_object_id as objectid, f1.object_name, f1.r_object_id, f1.r_folder_path
FROM dm_folder f1
WHERE
ANY i_ancestor_id
IN (
SELECT r_object_id
FROM dm_cabinet)
AND
NOT
EXISTS (
SELECT f2.object_name
FROM dm_sysobject(
ALL) f2
WHERE
ANY f2.i_folder_id = f1.r_object_id)
AND
ANY f1.r_folder_path
IS
NOT
NULLSTRING
 
9.Get a
ll documents checked out by a user
SELECT object_name
FROM dm_document
WHERE r_lock_owner = '{0}'
10.Content size by format
SELECT full_format,
SUM(content_size * 1.00) , 
MAX(content_size) 
FROM dmr_content
GROUP
BY full_format
ORDER
BY full_format
 
 
 
 

转载于:https://www.cnblogs.com/alex09/p/4372028.html

你可能感兴趣的文章
C#语言-04.OOP基础
查看>>
1)session总结
查看>>
PHP深浅拷贝
查看>>
SDN第四次作业
查看>>
ActiveMQ(4) ActiveMQ JDBC 持久化 Mysql 数据库
查看>>
DM8168 DVRRDK软件框架研究
查看>>
django迁移数据库错误
查看>>
epoll学习01
查看>>
yii 跳转页面
查看>>
闭包问题
查看>>
C#一个FTP操作封装类FTPHelper
查看>>
Linux运维基础入门(二):网络基础知识梳理02
查看>>
洛谷 1449——后缀表达式(线性数据结构)
查看>>
[最小割][Kruskal] Luogu P5039 最小生成树
查看>>
Data truncation: Out of range value for column 'Quality' at row 1
查看>>
Dirichlet分布深入理解
查看>>
(转)Android之发送短信的两种方式
查看>>
使用vue脚手架搭建项目
查看>>
Java基础之ArrayList与LinkedList、Vector,以及HashMap与HashTable的区别
查看>>
python第九天课程:遇到了金角大王
查看>>