您可以使用目录管理器命令行界面以编程方式在目录对象中查找和替换文本。例如,您可以编写一个脚本,用于重命名目录中的文件夹、文件、工作簿和其他对象。
查找和替换文本的语法
runcat.sh -cmd replace -online <Oracle Analytics Cloud URL> -folder <root folder to start find> textreplace -old "<string to replace> -new "<new string>" -credentials <file with login username and password>
示例
在此示例中,重命名一个名称为 Revenue 的目录文件夹。新文件夹名称为 Sales Reports:
runcat.sh -cmd replace -online "https:/myoac.ocp.oraclecloud.com/analytics-ws" -folder "/Shared/North America" textreplace -old "/Shared/North America/Revenue" -new "/Shared/North America/Sales Reports" -credentials /scratch/mycredentials.txt
其中,身份证明文件包含以下行:
login=<userid> pwd=<password>