红联Linux门户
Linux帮助

在fedora 8上安装tora

发布时间:2008-01-02 00:15:37来源:红联作者:CDflexaz
Tora是一个Oracle的工具包,目的是帮助DBA或数据库应用程序的开发者。特点是PL/SQL调试器,有语法高亮的SQL工作单,DB浏览器和一个全面的DBA工具集。TOra也包含MySQL和PostgreSQL支持。类似与windows下的toad。

项目地址:http://tora.sourceforge.net/

在fedora 8上安装并使用tora,必须安装oracle client,因此本文档分为两部分:

在fedora 8上安装oracle client

在fedora 8 上安装并配置 tora

一、在fedora 8上安装oracle client

oracle client的安装在oracle官方网站有详细的文档,本此安装用的是

Oracle Database 10g Client Release 2 (10.2.0.1.0) for Linux x86,下载地址http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.html,下载前需要先从oracle网站注册一个帐号。

安装过程:

1、内存及swap

最小内存要求:256 MB of physical RAM

2、检查需要的软件包

make-3.81-10.fc8 gcc-4.1.2-33 glibc-2.7-2 glibc-devel-2.7-2 compat-db-4.5.20-3.fc8 compat-gcc-34-3.4.6-8 compat-gcc-34-c++-3.4.6-8 compat-libstdc++-8-3.3.4.2 compat-libstdc++-devel-8-3.3.4.2 openmotif-2.3.0-0.3.fc8.ccrma gnome-libs-1.4.2-7.fc8 libaio-devel-0.3.106-3.2 libaio-0.3.106-3.2 util-linux-ng-2.13-3.1.fc8

注:util-linux-ng-2.13-3.1.fc8在以前的fedora中名字为setarch,比如在fc7中为setarch-2.0-4.fc7.i386.rpm

3、创建用户组和用户

#groupadd dba

#groupadd oinstall

#useradd -m -g oinstall -G dba oracle

#passwd oracle

Changing password for user oracle.

New UNIX password:

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

4、设置用户环境

#su - oracle

$vi ~/.bash_profile

export ORACLE_HOME=/home/oracle/u01/product/10.2.0/client_1/

PATH=$PATH:$HOME/bin:/home/oracle/u01/product/10.2.0/client_1/bin:/usr/local/tora/bin

export PATH

$source ~/.bash_profile

5、创建目录

$mkdir -p /home/oracle/u01/product/10.2.0/client_1/

$chown -R oracle:oinstall /home/oracle/u01/product/10.2.0/client_1/

$chmod -R 775 /home/oracle/u01/product/10.2.0/client_1/

6、安装oracle client

#xhost +

#su - oracle

$cd ~/client

$ ./runInstaller -ignoreSysPrereqs

出来安装界面以后就可以依照提示安装了,安装类型选择admin。中间系统检测出现warn的时候不用管他,继续安装就可以。

安装结束以后运行netmgr配置服务,测试数据库正常连接

至此oracle clinet安装配置完毕

二、在fedora 8上安装tora

tora网站是http://tora.sourceforge.net/,文档中下载的包是tora-1.3.22.tar.gz

#tar zxvf tora-1.3.22.tar.gz

通过yum安装tora需要的软件:

#yum install qt-3.3.8

#yum install qscintilla*

#vi /root/bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi


# User specific environment and startup programs


PATH=$PATH:$HOME/bin

export LD_LIBRARY_PATH=/home/oracle/u01/product/10.2.0/client_1/lib


export PATH

unset USERNAME

#source /root/.bash_profile

#cd tora-1.3.22

# ./configure --without-kde --with-qt-dir=/usr/lib/qt3.3 --with-qt-libraries=/usr/lib/qt-3.3/lib --with-oracle=/home/oracle/u01/product/10.2.0/client_1 --with-oci-version=10G_R2 -with-oracle-libraries=/home/oracle/u01/product/10.2.0/client_1/lib

#make

#make install

在执行./configure的过程中如果提示有没有安装或者找不到路径的lib,可以通过yum进行安装...不过在我的机器上安装了上面所说的包并指定路径以后,就完全可以正常编译了...

安装完成后,切换到oracle帐号运行tora

#su - oracle

$cd /usr/local/tora/bin

$./tora

至此,安装结束
文章评论

共有 0 条评论