将文件从 Oracle Fusion Cloud Enterprise Performance Management 环境中的位置复制到安全 FTP 服务器上的位置。
使用此命令,您可以将文件直接从环境复制到 SFTP 服务器,而无需先使用 EPM Automate 或 REST API 将文件下载到另一个服务器,然后使用 SFTP 客户端将其上传到 SFTP 服务器。
如果为 SFTP 服务器启用了 IP 允许列表,则必须将托管云 EPM 环境的 OCI 区域的出站 IP 地址添加到 SFTP 服务器的 IP 允许列表。有关 OCI 区域的出站IP 地址,请参阅《运维指南》中的“云 EPM 数据中心和区域的出站 IP 地址”。
Note:
此命令仅支持在端口 22 上运行的 SFTP 服务器。此命令支持这些密码、MAC、密钥交换算法和主机密钥算法。SFTP 服务器在每个必需类别中必须至少具有其中一项。Table 2-3 支持的加密算法
| 加密算法类型 | 支持的算法 |
|---|---|
| 密码 |
chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com, aes128-cbc,aes192-cbc, aes256-cbc |
| MAC |
hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 |
| 密钥交换算法 |
sntrup761x25519-sha512, sntrup761x25519-sha512@openssh.com, curve25519-sha256, curve25519-sha256@libssh.org, curve448-sha512, ecdh-sha2-nistp521, ecdh-sha2-nistp384, ecdh-sha2-nistp256, diffie-hellman-group-exchange-sha256, diffie-hellman-group18-sha512, diffie-hellman-group17-sha512, diffie-hellman-group16-sha512, diffie-hellman-group15-sha512, diffie-hellman-group14-sha256 |
| 主机密钥算法 |
ecdsa-sha2-nistp256-cert-v01@openssh.com, ecdsa-sha2-nistp384-cert-v01@openssh.com, ecdsa-sha2-nistp521-cert-v01@openssh.com, ssh-ed25519-cert-v01@openssh.com, rsa-sha2-512-cert-v01@openssh.com, rsa-sha2-256-cert-v01@openssh.com, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, ssh-ed25519, sk-ecdsa-sha2-nistp256@openssh.com, sk-ssh-ed25519@openssh.com, rsa-sha2-512,rsa-sha2-256, ssh-rsa |
适用于
Planning、Planning 模块、自由形式、Financial Consolidation and Close、Tax Reporting、Account Reconciliation、Profitability and Cost Management、Enterprise Profitability and Cost Management、Oracle Enterprise Data Management Cloud、Narrative Reporting、战略性人员规划和销售规划。
所需角色
服务管理员用法
epmautomate copyToSftp SFTP_SERVER_URL EPM_FILE_NAME username=USERNAME [password=PASSWORD] [privateKey=KEY_FILE] [passphrase=PASSPHRASE],其中:
SFTP_SERVER_URL 是 SFTP 服务器的 URL,其中包括要复制文件的目录和文件名。EPM_FILE_NAME 是要从云 EPM 环境复制的文件的名称和位置(如果不是来自默认发件箱)。如果要复制快照,则不要指定 .ZIP 扩展名USERNAME 是对 SFTP 服务器具有所需访问权限的用户的 ID。PASSWORD(可选)是 SFTP 用户密码。如果使用明文密码对 SFTP 服务器上的用户进行身份验证,则需要此项。KEY_FILE(可选)是您用于对 SFTP 服务器上的用户进行身份验证的私钥 (PEM) 文件的名称和路径。如果不使用明文密码对用户进行身份验证,则需要此项。PASSPHRASE(可选)是用于保护加密密钥的密码短语。仅当使用密码短语加密私钥时才需要此项。示例
epmautomate copyToSftp sftp://mySFTP_Server/someDirectory/some_file.csv myFile.csv username=jDoe password=SftpWelcome
epmautomate copyToSftp sftp://mySFTP_Server/someDirectory/some_file.csv myFile.csv username=jDoe privateKey= ~/.oci/sftp_key.pem
epmautomate copyToSftp sftp://mySFTP_Server/someDirectory/some_file.csv myFile.csv username=jDoe privateKey=~/.oci/sftp_key.pem passphrase=myPassPhrase