原创 Oracle9i(R2)onFedoraCoreLinux5安装记录

2006-11-11 12:52 4697 6 7 分类: 工程师职场
Pre-Instalation Tasks

1. Create oracle User
Account

Login as root and create te user oracle which belongs to dba
group.
su -
# groupadd dba
# useradd -g dba
oracle


2. Setting System parameters



Edit the /etc/sysctl.conf
and add following lines:
kernel.sem = 250 32000 100 128
kernel.shmmax =
2147483648

kernel.shmmni = 128
kernel.shmall = 2097152
kernel.msgmnb =
65536

kernel.msgmni = 2878
fs.file-max =
65536

net.ipv4.ip_local_port_range = 1024 65000

Note:
You need execute "sysctl -p" or reboot system to apply above settings.





Edit the /etc/security/limits.conf file and add following lines:
* - nproc 16384
* - nofile 16384



3.
Setting Oracle Enviroment



Edit the /home/oracle/.bash_profile file and add
following lines:

ORACLE_BASE=/opt/oracle

ORACLE_HOME=$ORACLE_BASE/920
ORACLE_SID=MY_ORACLE
LD_LIBRARY_PATH=$ORACLE_HOME/lib
ORACLE_OEM_JAVARUNTIME=/opt/jre1.3.1_19 (根据实际下载的版本有所不同,我用的19版)
PATH=$PATH:$ORACLE_HOME/bin

export
ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH ORACLE_OEM_JAVARUNTIME PATH



Save the .bash_profile and execute following commands for load new
enviroment:
cd /home/oracle
. .bash_profile





4. Create
base directory for Oracle



Login as root and create base directory for
Oracle ($ORACLE_BASE).
su -
# cd /opt
# mkdir oracle
# chown
oracle:dba oracle




Download & Install


1. Download and install required
.rpm packages

Some additional packages are required for succesful
instalation of Oracle software. To check whether required packages are installed
on your operating system use following command:
rpm -q gcc glibc-headers glibc-kernheaders glibc-devel
compat-libstdc++ cpp compat-gcc



For Fedora Core 4 and 5 only:Install the
required additional packages using the rpm command:


# rpm -ivh compat-libgcc-296-2.96-___.rpm
\


compat-libstdc++-33-3.2.3-___.rpm
\


compat-libstdc++-296-2.96-___.rpm


FC5rpms下载地址



If all required packages
were installed succesfuly then login as root and switch the GCC3 compiler binary
with GCC2 compiler binary as following:

 su -

# cd /usr/bin

# mv ./gcc ./gcc3

# mv
./gcc296 ./gcc




2. Download the Java Runtime Enviroment
(j2re-1_3_1_15-linux-i586.bin) from the Sun website.
Keep in mind you need to download j2re1.3.1_11 or higher (Note:
Install JRE 1.3.1_1x version only)
.



Login as root and make the the
file executable and then execute it. When the JRE is exracted move the
"jre1.3.1_15" di rectory to "/opt" directory.




# chmod +x j2re-1_3_1_15-linux-i586.bin
#
./j2re-1_3_1_15-linux-i586.bin

# mv jre1.3.1_15 /opt/



3.
Download the Oracle 9i (9.2.0.4) software from Oracle website.

Extract the files using following command:
gunzip ship_9204_linux_disk1.cpio.gz
gunzip
ship_9204_linux_disk2.cpio.gz

gunzip
ship_9204_linux_disk3.cpio.gz


cpio -idmv <
ship_9204_linux_disk1.cpio

cpio -idmv < ship_9204_linux_disk2.cpio
cpio
-idmv < ship_9204_linux_disk3.cpio



When all archives were extracted
you've got three directories Disk1, Disk2 and Disk3.

Edit the
Disk1/install/linux/oraparam.ini and modify JRE_LOCATION variable and set path
to our JRE installation from Step 2.




JRE_LOCATION=/opt/jre1.3.1_19 (同上,根据实际版本设置,我用的是19)




4. Start the Oracle software
installation process.



Now the system is prepared for Oracle software
installation. To start the installation process execute the following commands:
cd Disk1
./runInstaller



When network configuration assistant and database configuration
assistant has failed during st artup then do following steps:

cd /opt/oracle/920
rm JRE
ln -s /opt/jre1.3.1_19
JRE   (同上)

su -
# cd /opt/oracle/920/JRE/bin
# ln -s java jre
# cd
i386/native_threads

# ln -s java jre



PS:进行到这一步时遇到3个问题:


a. 不能启动安装界面




运行runInstaller提示信息类似如下:





解决办法: 设定你的DISPLAY环境参数.





把your_IPaddress换成你的IP.或者用root简单的执行一下# xhost + (要注意这样会有安全上的隐患)



b.安装界面显示很多"口口"样子的乱码




解决办法:查看locale输出






执行#export LC_CTYPE=en_US.UTF-8 然后重新调用安装程序.


c.安装界面停止在下图的状态


点击看大图

原图

停止在: Linking Oracle Net Required Support Files

根据提示找到 /opt/oracle/920/install/make.log

发现是sed的问题,执行下面的操作解决:

There is probably bug
in bash (FC5 only). Download and install bash package from FC4. I have prepared
this package (builded from FC4 src.rpm) for FC5 - Download.

Install
it using "rpm -ivh bash-3.0-31.i386.rpm --force".




Post-Instalation Tasks



1. Switch back the GCC binaries
su -
# cd /usr/bin
# mv ./gcc ./gcc296
# mv
./gcc3 ./gcc




2. Change of JRE path in Oracle Universal
Installer



Edit the $ORACLE_BASE/oui/oraparam.ini file and modify the
value of JRE_LOCATION to /opt/jre1.3.1_19(同上)





Common Installation Errors


Unable to
load native library:
/tmp/OraInstall2005-01-08_11-11-34AM/jre/lib/i386/libjava.so: symbol
__libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time
reference


Solution: Install new JRE 1.3.1 version. Edit the
Disk1/install/linux/oraparam.ini and set path to new JRE for JRE_LOCATION
variable. For more information see Download & Install section.



/tmp/OraInstall2005-04-26_11-38-19AM/jre/lib/i386/libawt.so:
libXp.so.6: cannot open shared object file: No such file or directory


Solution: Install the xorg-x11-deprecated-libs package (for >=FC4
versions). For FC5 and later install libXp package.



/tmp/OraInstall2005-06-14_03-46-25PM/jre/bin/i386/native_threads/java:
error while loading shared libraries:
/tmp/OraInstall2005-06-14_03-46-25PM/jre/lib/i386/native_threads/libhpi.so:
cannot restore segment prot after reloc: Permission denied


Solution:
Modify /etc/selinux/config and change value of SELINUX to "disabled" and reboot
computer.



Starting Oracle Intelligent
Agent.../opt/oracle/920/bin/dbsnmpwd: line 156: 1393 Segmentation fault nohup
$ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE
2>&1
/opt/oracle/920/bin/dbsnmpwd: line 156: 1405 Segmentation fault
nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE
2>&1
/opt/oracle/920/bin/dbsnmpwd: line 156: 1416 Segmentation fault
nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE
2>&1
/opt/oracle/920/bin/dbsnmpwd: line 156: 1427 Segmentation fault
nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1


Solution: Download and apply patch nr.: 3238244 from
http://metalink.oracle.com.



Exception in thread "main"
java.lang.InternalError: Can't connect to X11 window server using
'localhost:0.0' as the value of the DISPLAY variable.


Solution:
Execute "export DISPLAY=:0.0" (as oracle user) and "xhost +" as user who has
opened X session (for example logged in KDE, GNOME, etc.). If the value is other
than 127.0.0.1 or localhost you should "xhost +" on client machine.




Error in invoking target install of makefile
/opt/oracle/920/ctx/lib/ins_ctx.mk
Error in invoking target install of
makefile /opt/oracle/920/precomp/lib/ins_precomp.mk
Error in invoking target
install of makefile /opt/oracle/920/plsql/lib/ins_plsql.mk
Error in invoking
ntcontab.o of makfile /opt/oracle/920/network/lib/ins_net_client.mk


Solution: Install the compat-gcc-7.3-2.96.126.i386.rpm (gcc 2.96)
package and change the GCC binaries. For more information see Download &
Install section. In case of Fedora Core 5 take look at next error message.




sed: -e expression #1, char 7: unterminated `s' command
error in $ORACLE_HOME/install/make.log

Solution: There is probably bug
in bash (FC5 only). Download and install bash package from FC4. I have prepared
this package (builded from FC4 src.rpm) for FC5 - Download.

Install
it using "rpm -ivh bash-3.0-31.i386.rpm --force".



原文地址








文章评论1条评论)

登录后参与讨论

用户1261292 2007-4-14 00:40

谢谢小木木的意见,我试试看别的颜色。
相关推荐阅读
用户1261292 2010-12-09 14:34
Linux(Ubuntu)便笺
常用命令:NO   分类   PS1  命令名   用法及参数   功能注解         1   文件管理   #   ls   ls -a   列出当前目录下的所有文件,包括以.头的隐含文件  ...
用户1261292 2007-08-23 15:01
读:Expert C Programming -- Deep C Secrets
代码:     if(i==3)     if(3==i)dog one's steps Chapter 1.   const  Chapter 2.    一个'L'的NUL用于结束一个ASCII字...
用户1261292 2007-08-07 16:33
网上ARM笔记
1、arm开发笔记,关于startup、remap2、嵌入式程序员的几个基本知识3、Intel Xscale4、移植Linux2.6.22.2到s3c2410A...
用户1261292 2007-07-17 00:21
ARM 汇编指令条件执行详解
在ARM模式下,任何一条数据处理指令可以选择是否根据操作的结果来更新CPSR寄存器中的ALU状态标志位。在数据处理指令中使用S后缀来实现该功能。不要在CMP,CMN,TST或者TEQ指令中使用S后缀。...
用户1261292 2007-07-17 00:16
ARM汇编指令集
一、 跳转指令    跳转指令用于实现程序流程的跳转,在ARM程序中有两种方法可以实现程序流程的跳转:Ⅰ.使用专门的跳转指令。Ⅱ.直接向程序计数器PC写入跳转地址值。通过向程序计数器PC写入跳转地址值...
用户1261292 2007-07-12 10:12
空气湿度对健康的影响
    研究表明,湿度过大时,人体中一种叫松果腺体分泌出的松果激素量也较大,使得体内甲状腺素及肾上腺素的浓度就相对降低,细胞就会“偷懒”,人就会无精打采,萎靡不振。长时间在湿度较大的地方工作、生活,还...
我要评论
1
6
关闭 站长推荐上一条 /2 下一条