您可以使用目录管理器命令行界面生成报表,在其中包含有关您的目录中对象的特定数据。例如,可以创建报表,其中显示将为每个对象发送到 Oracle Analytics 的 SQL 语句。
生成报表的语法
runcat.sh -cmd report -online <Oracle Analytics Cloud URL> -outputfile "<output file path>" -excelformat -folder "/Shared" -type "All" -fields "<colon separated list of fields in the report>" -credentials <file with login username and password>
示例
在此示例中,针对 /Shared
文件夹中的所有目录对象生成一个 Excel 格式的报表。该报表仅包含您指定的字段,即 Path、Name、Signature 等。
runcat.sh -cmd report -online "https:/myoac.ocp.oraclecloud.com/analytics-ws" -outputfile /scratch/Object.xls -excelformat -folder "/Shared" -type "All" -fields "Path:Name:Signature:Content State:Owner:Creator:Created:ACL" -credentials /scratch/mycredentials.txt
其中,身份证明文件包含以下行:
login=<userid> pwd=<password>