a 在/compat/linux/etc中建立mtab到/etc/fstab的链接
ln -s /etc/fstab /compat/linux/etc/mtab
b 在/compat/linux/bin中建立到awk,sed,chown的链接
ln -s /compat/linux/usr/bin/awk /compat/linux/bin/awk
ln -s /compat/linux/usr/bin/sed /compat/linux/bin/sed
ln -s /usr/sbin/chown /compat/linux/bin/chown
以上配置是为了满足ORACLE9i在安装时的一些脚本的要求,我所知道的在运行root.sh时用到以上的配置,但也可以在运行前修改这个脚本。
c 在/compat/linux/bin中建立arch可执行文件
内容为:
#!/compat/linux/bin/bash
echo i686 #根据你的机器是i586还是i486
打上可执行标记:
chmod +x arch
4 打开linux仿真支持,修改rc.conf文件也可以kldload linux模块
enable_linux="YES"
5 mount linux proc文件系统
mkdir /compat/linux/proc
mount -t linproc /dev/device /compat/linux/proc
第二步可以放入/etc/fstab文件中在开机时自动截入
6 添加oracle用户组和用户
pw groupadd -n dba -g 94
pw groupadd -n oinstall -g 95
pw useradd -n oracle -u 94 -c "Oracle Daemon" -d /home/oracle -s
/compat/linux/bin/bash -g dba -G oinstall,wheel
7 配置oracle用户环境
mkdir /home/oracle
chown oracle:dba /home/oracle
cd /home/oracle
编辑.profile配置oracle用户环境: