0% found this document useful (0 votes)
65 views

To Enable and Automate SFTP File Upload For Oracle Epayments

This document provides steps to enable and automate SFTP file upload for Oracle ePayments. It involves integrating Oracle E-Business Suite with an SFTP server using a custom concurrent program or existing program to generate payment files and upload them to the SFTP server. The steps include setting up SSH key authentication between servers, creating a script to upload files via SFTP, registering and scheduling the concurrent program, and handling monitoring and errors.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

To Enable and Automate SFTP File Upload For Oracle Epayments

This document provides steps to enable and automate SFTP file upload for Oracle ePayments. It involves integrating Oracle E-Business Suite with an SFTP server using a custom concurrent program or existing program to generate payment files and upload them to the SFTP server. The steps include setting up SSH key authentication between servers, creating a script to upload files via SFTP, registering and scheduling the concurrent program, and handling monitoring and errors.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

To enable and automate SFTP file upload for Oracle ePayments, you need to integrate Oracle

E-Business Suite (EBS) with an SFTP server. This typically involves creating a custom
concurrent program or using an existing concurrent program that can generate payment files
and then upload them to an SFTP server.

Here's a step-by-step guide to setting up and automating the SFTP file upload process for
Oracle ePayments:

Prerequisites

1. Oracle E-Business Suite R12: Ensure you have administrative access.


2. SFTP Server: Set up and configure an SFTP server where files will be uploaded.
3. SSH Key Authentication: Configure SSH key authentication between the Oracle
EBS server and the SFTP server to avoid password-based login.

Step-by-Step Setup

1. Generate Payment File:


o Create a payment file using the Oracle Payments module. This can be done
using the PPR (Payment Process Request) functionality within the Oracle
Payments module.
2. Develop a Concurrent Program for SFTP Upload:
o Develop a custom PL/SQL or shell script concurrent program that handles the
SFTP upload of the generated payment file.
3. Register the Concurrent Program:
o Register the custom concurrent program in Oracle EBS.
4. Schedule the Concurrent Program:
o Schedule the concurrent program to run automatically after the payment file is
generated.

Detailed Steps

1. Generate SSH Keys and Configure SSH Access

Generate SSH keys on the Oracle EBS server if they don't already exist:

sh
ssh-keygen -t rsa

Copy the public key to the SFTP server:

sh
ssh-copy-id user@your_sftp_server

Ensure that you can log in to the SFTP server without a password:

sh
ssh user@your_sftp_server

2. Create the SFTP Upload Script


Here’s an example of a shell script (upload_to_sftp.sh) to upload files via SFTP:

sh
#!/bin/bash

# SFTP credentials
SFTP_USER="sftp_user"
SFTP_HOST="your_sftp_server"
SFTP_DIR="/remote/directory"
LOCAL_FILE_PATH="/path/to/generated/file"

# Upload file using SFTP


sftp $SFTP_USER@$SFTP_HOST <<EOF
put $LOCAL_FILE_PATH $SFTP_DIR
bye
EOF

# Check if the upload was successful


if [ $? -eq 0 ]; then
echo "File uploaded successfully."
else
echo "File upload failed."
exit 1
fi

Ensure the script has execution permissions:

sh
chmod +x upload_to_sftp.sh

3. Register the Concurrent Program

1. Define the Executable:


o Navigate to System Administrator > Concurrent > Program >
Executable.
o Create a new executable definition, specifying the execution method as Host
and pointing to your script.
2. Define the Concurrent Program:
o Navigate to System Administrator > Concurrent > Program.
o Create a new concurrent program that uses the executable you just defined.
3. Add the Program to a Request Group:
o Navigate to System Administrator > Security > Responsibility >
Request.
o Add the concurrent program to the appropriate request group.

4. Automate and Schedule the Process

Use the Request Set functionality to create a sequence where your payment process request
is followed by the SFTP upload script:

1. Create a Request Set:


o Navigate to System Administrator > Concurrent > Request Set.
o Define a new request set including both the payment generation program and
the SFTP upload program.
oSet the execution order appropriately.
2. Schedule the Request Set:
o Navigate to View > Requests > Submit a New Request.
o Select the request set you created and schedule it as needed (e.g., daily,
weekly).

Example of Scheduling via Concurrent Manager


sql
-- Example: Scheduling via PL/SQL for demonstration purposes
BEGIN
FND_CONCURRENT.REQUEST_SET(
'APPLICATION_SHORT_NAME',
'REQUEST_SET_NAME',
'USER_NAME',
NULL,
NULL,
'START_DATE',
FALSE, -- Specifying whether the request should run periodically
NULL,
NULL,
'SCHEDULE_TYPE', -- DAILY, WEEKLY, MONTHLY etc.
'NUMBER_OF_PERIODS',
'PERIOD_UNITS',
'FREQUENCY'
);
END;

Monitoring and Error Handling

1. Log Files: Ensure that your script logs output to a file for debugging purposes.
2. Email Notifications: Configure email notifications for failure scenarios using Oracle
Workflow or custom scripts.

By following these steps, you can automate the SFTP upload process for Oracle ePayments,
ensuring that payment files are securely transferred to the designated SFTP server without
manual intervention.

You might also like