workers compensation claims

Secure FTP from Oracle Cloud BI Publisher to On-Premise Oracle Database

By 7 min read 453 views
Featured image for Secure FTP from Oracle Cloud BI Publisher to On-Premise Oracle Database

Secure FTP from Oracle Cloud BI Publisher to On-Premise Oracle Database

Moving report output or data from Oracle Cloud BI Publisher to an on-premise Oracle Database requires a transfer mechanism that is both reliable and secure. BI Publisher supports output delivery through file-based channels, and those files can be routed to an on-premise database via Secure File Transfer Protocol (SFTP) or FTP over TLS (FTPS). The process involves configuring BI Publisher's delivery agent, establishing an encrypted tunnel between Oracle Cloud and the on-premise network, and ensuring the Oracle Database side accepts the incoming files through a staging directory or external table load. This guide covers the architecture, configuration steps, security hardening, and common pitfalls so that data can move between cloud and on-premise environments without exposing credentials or payload data in transit.

More from this site

Keep reading the latest coverage

Browse latest →

Why Secure FTP Is Necessary for This Workflow

BI Publisher in Oracle Cloud can generate reports in formats such as PDF, Excel, CSV, or XML. When those files must land in an on-premise Oracle Database, a simple unencrypted FTP is insufficient because the data traverses the public internet. SFTP (SSH File Transfer Protocol) encrypts both the command channel and the data channel over a single TLS-like connection, while FTPS adds TLS encryption on top of traditional FTP. Either approach protects report contents, database credentials used in staging, and any sensitive business data embedded in the output files.

Key Threats Mitigated by Secure FTP

  • Credential interception during authentication between the cloud delivery agent and the on-premise endpoint.
  • Man-in-the-middle tampering with report files while in transit.
  • Unauthorized access to staging directories on the on-premise server.
  • Data leakage from unencrypted log files that capture file paths or metadata.

Architecture Overview

The typical architecture places a lightweight delivery agent or middleware inside the on-premise network that listens for incoming SFTP or FTPS connections. BI Publisher in Oracle Cloud initiates the outbound connection to this endpoint. A firewall rule permits only that specific source IP range (Oracle Cloud's egress CIDRs) to reach the on-premise SFTP listener on a non-standard port. The on-premise agent writes the file to a secure staging directory, and a database loader—such as SQL*Loader, an external table, or a PL/SQL procedure—picks up the file and inserts it into the target Oracle Database tables.

ComponentRoleLocation
BI Publisher CloudGenerates report output and initiates secure transferOracle Cloud Infrastructure
SFTP/FTPS ServerReceives encrypted file transfer and stores in stagingOn-premise DMZ or isolated subnet
Firewall / Network GatewayRestricts inbound traffic to BI Publisher egress IPsOn-premise perimeter
Staging DirectoryHolds incoming files with restricted OS permissionsOn-premise server
Oracle Database LoaderReads staged files and inserts into target tablesOn-premise Oracle Database

Configuring SFTP Delivery from BI Publisher

Step 1: Provision an SFTP Server On-Premise

Deploy an SFTP server such as OpenSSH on a hardened Linux host inside the on-premise network. Generate SSH key pairs for authentication rather than relying on passwords. Create a dedicated service account with write-only access to the staging directory. Disable shell login for that account so it can only perform file transfer operations. Configure the SSH daemon to use strong ciphers (e.g., aes256-gcm) and disable legacy algorithms like CBC-mode ciphers.

Step 2: Open the Firewall and Map Oracle Cloud Egress IPs

Identify the egress IP address ranges used by your Oracle Cloud tenancy. Oracle publishes these CIDR blocks in its documentation and service endpoints. Create a firewall rule that allows inbound TCP connections on the SFTP port (default 22, or a custom port) only from those CIDR ranges to the SFTP server's private IP address. If Oracle Cloud uses a NAT gateway or a dedicated public IP for egress, pin the rule to that specific address for tighter control.

Step 3: Configure BI Publisher Delivery Channel

In BI Publisher's delivery configuration, define an SFTP delivery channel. Provide the hostname or IP of the on-premise SFTP server, the port, the service account username, and the path to the private SSH key (stored in a secure vault, not in plain text). Set the transfer mode to binary to prevent line-ending corruption in report files. Enable host key verification so BI Publisher rejects connections to servers with changed or unknown host keys, preventing impersonation attacks.

Step 4: Schedule and Monitor Transfers

Attach the SFTP delivery channel to the BI Publisher report schedule or burst configuration. Configure retry logic with a limited number of attempts and a back-off interval so that transient network issues do not cause indefinite retry loops. Enable logging on both the BI Publisher side and the SFTP server side, and forward those logs to a centralized monitoring system. Alert on failed transfers, authentication failures, or unexpected file volumes.

Alternative: FTPS with Explicit TLS

If the on-premise environment already runs an FTP server rather than an SFTP server, FTPS (FTP Secure) provides encryption through TLS. Configure the FTP server to require explicit TLS on both the control and data channels. Disable anonymous access and plain (unencrypted) FTP. Upload the server's TLS certificate to BI Publisher's trust store so that the cloud delivery agent can validate the server's identity during the handshake.

Security Hardening Best Practices

  • Use key-based authentication exclusively. Disable password login on the SFTP server to eliminate brute-force risk.
  • Rotate SSH keys and TLS certificates on a defined schedule and store the private keys in a secrets manager such as Oracle Cloud Vault or an on-premise HSM.
  • Restrict file permissions on the staging directory so that only the SFTP service account and the database loader process can read or write files.
  • Enable integrity checks. Configure BI Publisher or the on-premise agent to compute a checksum (SHA-256) of each transferred file and compare it against the source to detect corruption or tampering.
  • Log and audit. Retain SFTP access logs and BI Publisher delivery logs for a defined retention period to support compliance requirements such as SOX, GDPR, or HIPAA.
  • Use a dedicated VLAN or subnet for the SFTP server so that it is isolated from other on-premise systems and can be monitored independently.

Loading Staged Files into Oracle Database

Once the file arrives in the on-premise staging directory, the Oracle Database must ingest it. The simplest approach is an external table that references the directory object pointing to the staging path. The external table definition maps the file format (CSV, pipe-delimited, fixed-width) to database columns and can include filters or transformations during the load. For higher throughput or complex transformations, use SQL*Loader in conventional or direct-path mode, or invoke a PL/SQL procedure that reads the file via the DBMS_FILE_TRANSFER package after it has been moved into an Oracle directory object.

Common Pitfalls and How to Avoid Them

  • Mismatched file encodings: Ensure BI Publisher outputs files in UTF-8 or the encoding expected by the on-premise loader, and configure the SFTP transfer to preserve the encoding.
  • Stale host keys: When the on-premise SFTP server is rebuilt or its SSH host key changes, BI Publisher will reject the connection unless the known_hosts file is updated. Automate host key distribution through configuration management.
  • Firewall timeout on long transfers: Large report files can exceed default firewall idle timeouts. Adjust the timeout or split large files into smaller chunks in the BI Publisher burst configuration.
  • Certificate validation failures: If the on-premise SFTP server uses a self-signed certificate, BI Publisher will fail the TLS handshake unless the certificate is explicitly added to the trust store on the cloud agent host.

Summary

Secure FTP from Oracle Cloud BI Publisher to an on-premise Oracle Database is achieved by combining SFTP or FTPS encryption, strict network access controls, key-based authentication, and a well-configured staging-and-load pipeline. The architecture keeps sensitive report data encrypted in transit, limits the attack surface through firewall rules tied to Oracle Cloud egress IPs, and ensures that files are ingested into the Oracle Database through auditable, automated processes. Following the hardening steps and monitoring recommendations outlined above provides a reliable, secure bridge between cloud-based report generation and on-premise data storage.

Editor's pick

Keep exploring our latest stories

Fresh reads, picked daily.

Browse latest
Share: