1. 首页
  2. IT资讯

ora2pg安装及卸载

–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/,如需转载,请注明出处,否则将追究法律责任。

主题测试文章,只做测试使用。发布者:深沉的少年,转转请注明出处:http://www.cxybcw.com/184958.html

联系我们

13687733322

在线咨询:点击这里给我发消息

邮件:1877088071@qq.com

工作时间:周一至周五,9:30-18:30,节假日休息

QR code