Oracle安装报告
JH King
因公司需要,要在linux下安装oracle,在安装过程中发现了很多问题,写成报告给需要的人使用。
软件环境:RedHat9.0,内核2.4.20
Oracle: oracle9i,光盘:
ship_9204_linux_disk1.cpio.gz,
ship_9204_linux_disk2.cpio.gz,
ship_9204_linux_disk3.cpio.gz
光安解压方法,
可以用guzip ship_9204_linux_disk1.cpio.gz解压一次,解压之后文件为ship_9204_linux_disk1.cpio
然后用cpio -idmv
1<ship_9204_linux_disk1.cpio,再解压一次,生成disk1文件, ##(1)这一步很重要,只要2.6.0以下的内核都可以用这个版本,不要写成自已的内核版本。会出现内jvm错误="" ##(2)="" ##(3)另外重要的就是这两个ld_library_path,这样可以避免安装过程权限不足的错误。="" ##oracle_sid="" (4)然后开始建库,当建库到46%时会出现共享内存问题,="" (libzip.so)="" ..="" .....sh文件="" .bash_profile刷新使更改生效,只对使用的当前shell起作用,除非注消重新登入。="" 1.1.8="" 4294967295="" attach="" bin="" cannot="" class="" classpath="" could="" create="" defined="" disk2,disk3可以用同样方法解压出来。="" echo="" errno,="" export="" file="" find="" glibc_2.0="" green_threads="" i686="" in="" initialize="" java="" jre="" lang="" ld_assume_kernel="2.4.1" ld_library_path="" lib="" libc.so.6="" libzip.so:="" link="" memory="" not="" opt="" ora-27123:="" ora_nls33="$ORACLE_HOME/ocommon/nls/admin/data" oracle="" oracle_base="/home/oracle/OraHome" oracle_home="/home/oracle/OraHome/9.2.0" oracle_sid="ora9i" oracle_term="xterm" oracle安装时是不能以root用户安装的,因此最好为其建立一个oracle用户,然后以oracle用户登入,配置oracle用户的环境:编辑.bash_profile文件:="" path="" reference="" segment="" shared="" symbol="" thread="" threads:="" time="" tmp="" to="" unable="" unset="" username="" version="" vm="" with="" 为数据库的sid,可任意="" 当oracle安装到后期会要求以root用户执行oracle安装路径下的root.sh文件,然后安装管理器会显示安装信息,有一个agent助手,提示没有安装成果,不过这个工具不是很重要,没有它oracle仍可以照常使用,下一步oracle会在后面启动数据创建程序.="" 然后就可以运行runinstaller,开始安装数据库,安装程中会要求,以root用户执行="" 这时需要给内核指定内存,可以:="" 配置好.bash_profile可以用source="" (事实上在2.4.20下安装成功之后重编译内核版本2.6.0照样可以正常运行。)="">/proc/sys/kernel/shmmax
2或者
3编辑/etc/sysctl.conf
4kernel.shmmax=4294967295
5这样就可以数据库的安装。
6运行:
7要启动oracle要先运行数据库监听程序:lsnrctl start 关闭:lsnrctl stop
8运行oemapp console可以打开oracle企业管理器工具
9
10注:(1)redhat9.0是全部安装非完全安装也行,因此不考虑某些包不存在问题。
11(2)安装oracle不需要安装Java虚拟机(jre)或者(jdk),因为oracle9i自身就有一个(jre),而redhat9.0系统也有一个(jre)。
12(3)oracle公司完整的安装说明: http://www.puschitz.com/InstallingOracle9i.html</ship_9204_linux_disk1.cpio,再解压一次,生成disk1文件,>