1. 下載所需檔案
a.Oracle:下載OCI 的base及sdk(這裡)
b.Perl:下載DBD:Oracle(這裡)
c.Ora2Pg:下載ora2pg source (這裡)
2. 安裝OCI
# rpm -Uvh oracle-instantclient12.1-basic-12.1.0.1.0-1.x86_64.rpm
# rpm -Uvh oracle-instantclient12.1-devel-12.1.0.1.0-1.x86_64.rpm
# vi /etc/ld.so.conf.d/oci.conf
============oci.conf start================
/usr/lib/oracle/12.1/client64/lib
============oci.conf EOF================
# ldconfig -v
3. 安裝Perl DBD:Oracle模組
# tar -zxvf DBD-Oracle-1.68.tar.gz
# cd DBD-Oracle-1.6
# export ORACLE_HOME=/usr/lib/oracle/12.1/client64
# export PATH=$PATH:$ORACLE_HOME/bin
# export LD_LIBRARY_PATH=$ORACLE_HOME/lib
# perl Makefile.PL -V 12.1.0
# make install
4. 安裝Ora2Pg
# tar -jxvf ora2pg-12.0.tar.bz2
# cd ora2pg-12.0
# perl Makefile.PL
# make && make install
5. Ora2Pg組態
a.Oracle:下載OCI 的base及sdk(這裡)
b.Perl:下載DBD:Oracle(這裡)
c.Ora2Pg:下載ora2pg source (這裡)
2. 安裝OCI
# rpm -Uvh oracle-instantclient12.1-basic-12.1.0.1.0-1.x86_64.rpm
# rpm -Uvh oracle-instantclient12.1-devel-12.1.0.1.0-1.x86_64.rpm
# vi /etc/ld.so.conf.d/oci.conf
============oci.conf start================
/usr/lib/oracle/12.1/client64/lib
============oci.conf EOF================
# ldconfig -v
3. 安裝Perl DBD:Oracle模組
# tar -zxvf DBD-Oracle-1.68.tar.gz
# cd DBD-Oracle-1.6
# export ORACLE_HOME=/usr/lib/oracle/12.1/client64
# export PATH=$PATH:$ORACLE_HOME/bin
# export LD_LIBRARY_PATH=$ORACLE_HOME/lib
# perl Makefile.PL -V 12.1.0
# make install
4. 安裝Ora2Pg
# tar -jxvf ora2pg-12.0.tar.bz2
# cd ora2pg-12.0
# perl Makefile.PL
# make && make install
5. Ora2Pg組態
No comments:
Post a Comment