: This article describes how to install oracle9i in FreeBSD9.0. For more information about PHP tutorials, see. Install oracle9i in FreeBSD9.0
Wolf @ http://blog.csdn.net/xiaolangyangyang
1. configure the kernel
1. log on to FreeBSD as the root user.
2. # cd/usr/src/sys/i386/conf
3. # cp GENERIC KERNEL_CUSTOMIZE
4. modify the KERNEL_CUSTOMIZE file and add the following content to it:
# Begin For Oracle Installationoptions NBUF=2048 options MAXDSIZ="(1024UL*1024*1024)" options MAXSSIZ="(1024UL*1024*1024)" options DFLDSIZ="(1024UL*1024*1024)" #options SYSVSHM options SHMMAXPGS=65536 options SHMMIN=2 options SHMMNI=256 options SHMSEG=256 #options SYSVSEM #options SEMMAP=512 options SEMMNI=512 options SEMUME=512 options SEMMNS=1024 options SEMMNU=512 options SEMMSL=256 options SEMOPM=256 #options SYSVMSG #SYSV-stylmessage queues options MSGMNB=8192 options MSGMNI=256 options MSGSEG=8192 options MSGSSZ=16 options MSGTQL=128 # End For Oracle Installation
5. compile a new kernel configuration file
#config KERNEL_CUSTOMIZE
6. enter the compiled directory.
# Cd ../compile/KERNEL_CUSTOMIZE
7. Compile the kernel
# Make cleandepend
# Make depend
# Make
10. install a new kernel
# Make install
11. restart FreeBSD.
# Reboot
2. configure a Linux compatible environment
1. install the linux_base-8-8.0_14 package
# Sysinstall
Choose Configure-> Packages-> CD/DVD-> All-> linux_base-8-8.0_14.
2. install the linux_devtools-8.0_5 package
1) Download the http://ftp.ru.freebsd.org/FreeBSD-Archive/old-releases/amd64/5.5-RELEASE/packages/linux/ package from the linux_devtools-8.0_5.
2) copy the downloaded linux_devtools-8.0_5.tbz file to the/compat/linux directory.
3) # cd/compat/linux
4) # tar zxvf linux_devtools-8.0_5.tbz
3. create an arch executable file in/compat/linux/bin. the content is as follows:
#! /Compat/linux/bin/bash echo i686 # it depends on the machine to determine whether it is i686, i586 or i486.
4. open the execution permission
# Chmod + x arch
5. mount the linux proc file system
# Mkdir/compat/linux/proc
# Mount-t linprocfs/dev/device/compat/linux/proc
Step 2: Add the/etc/fstab file and automatically intercept the file at startup.
3. create an Oracle User Group and user
1. create an oracle User Group
# Pw groupadd dba
# Pw groupadd oinstall
2. create an oracle User
# Pw useradd-n oracle-c "Oracle Owner"-d/home/oracle-m-s/compat/linux/bin/bash-g dba-G oinstall, wheel
3. modify the password of an oracle User
# Passwd oracle
4. modify the/home/oracle/. profile file and add the following code at the end of the file:
# begin for oracleexport ORACLE_BASE=/home/oracle export ORACLE_HOME=$ORACLE_BASE/920export ORACLE_SID=ORCLexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHexport ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/dataexport CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlibexport CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlibexport LC_CTYPE=en_US.UTF-8export DISPLAY=:0 export PATH=$PATH:$ORACLE_HOME/bin# end for oracle
4. install oracle
1. log on to the system with an oracle account.
3. create the install directory to store oracle installation files.
$ Mkdir/home/oracle/install
(The above operations have been completed. three files, lnx_920_disk1.cpio, lnx_920_disk2.cpio, and lnx_920_disk3.cpio, are not found on the Internet)
3. copy the lnx_920_disk1.cpio, lnx_920_disk2.cpio, and lnx_920_disk3.cpio files to the/home/oracle/install directory.
4. decompress the cpio installation file
$ Cd ~ /Install
$ Cpio-idmv <lnx_920_disk1.cpio
$ Cpio-idmv <lnx_920_disk2.cpio
$ Cpio-idmv <lnx_920_disk3.cpio
After execution, three directories, Disk1, Disk2, and Disk3, are generated.
5. run the installation file
$ Cd ~ /Install/Disk1
$./RunInstaller
The above describes how to install oracle9i in FreeBSD 9.0, including some content. I hope to help some friends who are interested in PHP tutorials.