Steps To Install Ora2pg On Windows and Linux
Steps To Install Ora2pg On Windows and Linux
Prepared by
Microsoft has provided generic high-level guidance in this document with the understanding that
MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, WITH RESPECT TO THE
INFORMATION CONTAINED HEREIN.
This document is provided “as-is”. Information and views expressed in this document, including URL and
other Internet Web site references, may change without notice.
Some examples depicted herein are provided for illustration only and are fictitious. No real association or
connection is intended or should be inferred.
This document does not provide you with any legal rights to any intellectual property in any Microsoft
product. You may copy and use this document for your internal, reference purposes.
Note: The detail provided in this document has been harvested as part of a customer engagement
sponsored through the Data SQL Ninja Engineering.
Linux
Pre-Requisites for Linux: This script requires RedHat/Ubuntu 18+/Debian 10/Centos 7 or later
Step 1
Download bash script installora2pg.sh from Data SQL Ninja GitHub Repository
Step 2
Run the script downloaded in step 1 as sudo or root. Ensure active internet connection.
o Checks for libclntsh.so, if exists (from previously installed oracle client) continue to next
step, else install instant client files (sdk and basic) from the same directory. If files don’t
exist, then you are prompted to download from Oracle.com. Ensure to place both (Oracle
sdk and client) the zip files in same folder as installora2pg.sh script.
o Checks for pg_config (PostgreSQL client/server is available), and install dbd Pg from the
internet, otherwise ora2pg is installed without PostgreSQL library
Step 1
Download PowerShell script installora2pg.ps1 from Data SQL Ninja GitHub Repository
Step 2
Manual step: Download Oracle client and Oracle client sdk from Oracle.com and rename the file to
instantclient.zip and instantclient-sdk. The script expects the file name to be “instantclient” and
“instantclient-sdk”.
o Automatically download & install strawberry perl from http://strawberryperl.com/ and delete
installer file after installation.
o Automatically check for oracle client. If not found then uses the installclient.zip &
installclient-sdk.zip files to install client and client-sdk.
Note: Once the installation is complete, ensure to add c:\instantclient to PATH in system variables.
References
http://ora2pg.darold.net/documentation.html
http://strawberryperl.com/
https://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
https://www.cpan.org/modules/by-module/DBD