li
  当前位置:主页 > 配置管理 > 文章内容
li
installing Oracle10g-x86_64 on debian-amd64
来源: www.ixdba.net  作者: IXDBA.NET官方    时间:2008-05-27   阅读:13  
本文章共2213字,分2页,当前第1页,快速翻页:
 

UPDATED :還需要注意以下4點

  1. 要先安裝 linux32 套件:apt-get install linux32
  2. 啟動 installer 的時候用 linux32 來執行:linux32 sh runinstaller
  3. 安裝的時候,環境變數的 PATH 不能有 java,也就是說,$JAVA_HOME/bin 不要出現在 PATH 裡面。
  4. 如果 oss.oracle.com 有 64bit 版本的是最好不過了,雖然只是 xe 版本。


Quck installing Oracle10g-x86_64 on debian-amd64 HOW-TO (courtesy of Vladimir Olenin)


I will not cover all the details of installing oracle in this HOW-TO -
there are plenty of these
in internet, while instead i will focus on on debian-amd64
specific parts and known errors
so that anyone googling would find this brief explanation.


Step 1: downloading =)


Step 2: tweaking system

**
Oracle checks operating system version: it must be
redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0,
asianux-1 or asianux-2 to continue. for some reason
--ignoreSysPrereqs option did not with me on
Oracle 10.2 (while working on Oracle 10.1), so I had
to imitate some redhat release:

vaha:~# echo "Red Hat Linux release 3.0"> /etc/redhat-release

**
Some binary file locations differ on redhat and debian,
so you shall have to create several symlinks:

vaha:~# ln -s /usr/bin/awk /bin/awk
vaha:~# ln -s /usr/bin/rpm /bin/rpm
vaha:~# ln -s /etc /etc/rc.d
vaha:~# ln -s /usr/bin/basename /bin/basename

not symlinking basename will lead to strange linking errors
(I am posting them so anyone googling will find this lines)

/home/oracle/OraHome10g/lib//libagtsh.so: undefined reference to `nnfyboot'


** Download latest libaio source package,
build and install it (I used RedHat's srpm) - debian-amd64 does
not have it in repository (though it compiles clean out of the box).
The other way is (thanx to
directhex@irc#debian-amd64)
to use debian source packages:

apt-get source libaio
cd libaio*
vim debian/control # add "amd64" to the Architecture line
dpkg-buildpackage -rfakeroot
dpkg -i
.deb


NOT HAVING INSTALLED libaio will make dbca (or sqlplus) bail out with:

ORA-12547: TNS: Lost contact message.


**
Install ia32 x11-locales into /emul directory.
(oracle itself is 64-bit, but installer is 32-bit
and bails out wanting original 32-bit locales).


3. TEMPORARY!!! Change x11-locales

vaha:~# cd /usr/X11R6/lib/X11
vaha:/usr/X11R6/lib/X11# mv locale locale.original
IXDBA.NET社区论坛
vaha:/usr/X11R6/lib/X11# ln -s /emul/ia32-linux/usr/X11R6/lib/X11/locale locale


4. run the ./runInstaller file

Everything should go smooth...


5. after all installation is complete RETURN BACK THE ORIGINAL
LOCALES!!!

vaha:~# cd /usr/X11R6/lib/X11
vaha:/usr/X11R6/lib/X11# rm locale
vaha:/usr/X11R6/lib/X11# mv locale.original locale


6. Create init scripts

vaha:~# cat >/etc/init.d/oracle

#!/bin/bash --login
#
# Run-level Startup script for the Oracle Instance and Listener
#
# chkconfig: 345 91 19
# description: Startup/Shutdown Oracle listener and instance
ORA_OWNR="oracle"
# if the executables do not exist -- display error
if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ]
then
echo "Oracle startup: cannot start"
exit 1
fi
# depending on parameter -- startup, shutdown, restart


阅读更多内容1 · 2 · 下一页>>


  上一篇: Debian下安装Oracle10g数据库   下一篇: ORACLE的有那些数据类型
li
 §相关评论  
 热点文章

·oracle Logfile的不同状态说明
·Oracle数据库的一些常用操作经
·Oracle10g(10.2) 在Redhat AS4
·oracle工具:浅谈LogMiner的使用
·RHAD AS4 上安装 Oracle 数据库
·oracle基础知识(物理结构)
·oracle基础:Oracle中null的使用
·Oracle常用基本语法操作集锦
·oracle数据库查询前台正在发出
·AIX+ORACLE10G安装手册
·oracle数据库9i升级到oracle10
li
 编辑推荐
·oracle Logfile的不同状态说明
·Oracle数据库的一些常用操作经
·Oracle10g(10.2) 在Redhat AS4
·oracle工具:浅谈LogMiner的使用
·RHAD AS4 上安装 Oracle 数据库
·oracle基础知识(物理结构)
·oracle基础:Oracle中null的使用
·Oracle常用基本语法操作集锦
·oracle数据库查询前台正在发出
·AIX+ORACLE10G安装手册
·oracle数据库9i升级到oracle10
li
 相关篇章
·Debian下安装Oracle10g数据库
·RHEL5下安装oracle 10g数据库
·FTP怎么在脚本中自动上传/下载
·sqlplus怎么与shell结合使用
·怎么样生成日期格式的文件
·oracle常见基本问题总结
·oracle数据库基本表空间介绍
·如何将 EXP 出来的数据 IMP 进不...
·Linux下oracle启动脚本DBSTART和...
·Oracle数据库中的Kill session灵...
·ORACLE的有那些数据类型
·我创建了数据库的所有用户,我可...
·怎么知道那些表没有建立主键
·如果发现表中有坏块,如何检索其...
·控制文件包含哪些基本内容
·怎么样计算REDO BLOCK的大小
·oracle如何查看已经打过的补丁
·oracle9i 的flashback 一些问题
·oracle SMON_SCN_TIME
·Oracle9i中flashback闪回数据
 
li
设为首页 | 关于我们 | 技术服务 | 收藏本站 | 网站地图 | 联系方式 | 本站友情连接