ora2pg安裝及解除安裝

sqysl發表於2016-06-11
--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

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8484829/viewspace-2118629/,如需轉載,請註明出處,否則將追究法律責任。

相關文章