--ora2pg安裝
tar xzf ora2pg-10.x.tar.gz
or
tar xjf ora2pg-10.x.tar.bz2
cd ora2pg-10.x/
perl Makefile.PL
make && make install
--ora2pg卸載
rm -rf /usr/bin/ora2pg
rm -rf /usr/lib/perl5/site_perl/5.8.8/Ora2Pg.pm
rm -rf /usr/lib/perl5/site_perl/5.8.8/Ora2Pg/PLSQL.pm
rm -rf /usr/share/man/man3/ora2pg.3
rm -rf /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Ora2Pg/.packlist
--安裝DBD::oracle
export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
export ORACLE_HOME=/usr/lib/oracle/11.2/client64/
perl -MCPAN -e 'install DBD::Oracle'
or
--DBI模塊的安裝
# tar xvzf DBI-1.617.tar.gz
# cd DBI-1.617
# vi README
# perl Makefile.PL
# make
# make test
# make install
--DBD::Oracle::模塊的安裝
--安裝DBD::Oracle模塊前要先安裝oracle example
--設置環境變量
# export ORACLE_HOME=/u01/app/oracle/product/10.2.0
# export ORACLE_USERID='test/test@ora10g'
# export PATH=$ORACLE_HOME/bin:$PATH
# export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
--安裝DBD::Oracle模塊
# tar xzvf DBD-Oracle-1.38.tar.gz
# cd DBD-Oracle-1.38
# perl Makefile.PL
# make
# make test
# make install