文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>铁定可以成功的安装Oracle815EEforLinux

铁定可以成功的安装Oracle815EEforLinux

时间:2007-02-17  来源:PHP爱好者

我是在RedHat6.1的Linux环境下装的,用的是Oracle815EE(企业版)+jdk1.2.2+j
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
re 1.1.7v3
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
标准步骤:
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
1、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
卸载RedHat6.1中自带的kaff(不卸载也可以,但以后jdbc会有问题)
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
2、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
Download jdk1.2.2 for linux,展开到/usr/local下,将路径加入PATH,如/us
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
r/local/jdk1.2.2/bin
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
3、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
Download jre 1.1.7v3,展开jre 1.1.7v3 到/usr/local下,改目录名jre1.1.7
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
为jre
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
4、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
安装Oracle815EE,即运行orainst/install/linux/runIns.sh,选custom,系统
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
安装时不要create database
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
5、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
runIns.sh要运行多次,分次安装client/server/...
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
6、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
安装完毕设置系统环境变量,如:
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
ORACLE_HOME=/u02/app/oracle/product/8.1.5
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME/jdbc/li
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
b
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
ORACLE_BASE=/u02/app/oracle
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
CLASSPATH=./:$CLASSPATH:$ORACLE_HOME/jdbc/lib/816classes12b.zip:$ORACL
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
E_HOME/jdbc/lib/816nlscharset12b.zip
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
PATH=$PATH:$ORACLE_HOME/bin
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
ORACLE_TERM=386
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
7、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
展开并运行升级补丁包linux_815patches.tgz,从www.oracle.com下载。
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
8、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
建库,运行
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
dbassist &
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
除非必要,否则不建议安装JServer and Application Replica,
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
因为这两选项让我的P3/550 128M机器狂转了5个小时。
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
9、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
database建好后,将jdbc driver for oracle文件
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
816classes12b.zip,816nlscharset12b.zip(从www.oracle.com下载)
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
拷贝到$ORACLE_HOME/jdbc/lib,就可以用jdbc了。
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
10、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
在$ORACLE_HOME/network/admin下创建listener.ora,tnsnames.ora文件,
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
在$ORACLE_BASE/admin/[yourdbname]/pfile下创建init[yourSID].ora文件,
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
注意用你在创建数据库时定义的DB name and SID替代“[yourdbname]”“[your
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
SID]”。
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
在$ORACLE_BASE/network/admin/下创建listener.ora,tnsnames.ora文件,
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
文件格式参考oracle资料。
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
11、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
添加系统环境变量
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
ORACLE_SID=yourSID;export ORACLE_SID
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
用你在安装过程时定义的SID替代yourSID
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
13、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
OK!安装完成,可以试试了,
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
svrmgrl
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
connect internal
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
startup
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
quit
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
看看结果,应该work了。
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
12、
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
启动 Listener
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
lsnrctl start
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
成功否?
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
13、再后就是创建用户、分配权限了。
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
注:此Oracle 815EE for linux 版的安装程序粗制滥造,
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
安装过程中经常误报错误,不要管它,go ahead...
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
以上步骤我已经在好几台不同配置的机器上装过无数遍了,铁定可以成功,当然
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV

ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
安装过程中要仔细理解提示说明。
ww w.china it power.coJtawRNcWucPtoDtst4Ab6PRAV
php爱好者站 http://www.phpfans.net Linux|Apache|IIS.
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载