FreeBSD9.0 under Installation oracle9i
Little Wolf @http://blog.csdn.net/xiaolangyangyang
First, configure the kernel
1. Log in as root to FreeBSD.
2, #cd/usr/src/sys/i386/conf
3, #cp GENERIC kernel_customize
4, modify the Kernel_customize file, add the following content:
# Begin for Oracle installationoptions nbuf=2048 options maxdsiz= "(1024ul*1024*1024)" Options maxssiz= "(1024ul*1024* 1024x768) "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 MSG mni=256 options msgseg=8192 Options msgssz=16 Options msgtql=128 # End for Oracle installation
5. Compiling a new kernel configuration file
#config kernel_customize
6. Enter the directory to compile the build
#cd: /compile/kernel_customize
7. Compile the kernel
#make Cleandepend
#make depend
#make
10. Install the new kernel
#make Install
11. Restart FreeBSD
#reboot
Second, configure the Linux compatibility environment
1. Install LINUX_BASE-8-8.0_14 Package
#sysinstall
Select Configure->packages->cd/dvd->all->linux_base-8-8.0_14 in turn.
2. Install Linux_devtools-8.0_5 Package
1) Download linux_ from http://ftp.ru.freebsd.org/FreeBSD-Archive/old-releases/amd64/5.5-RELEASE/packages/linux/ Devtools-8.0_5 package.
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. Build the arch executable file in/compat/linux/bin, as follows:
#!/compat/linux/bin/bash echo i686 #需要根据机器来确定, is i686, i586 or i486.
4. Open Execute permission
#chmod +x Arch
5. Mount Linux proc File system
#Mkdir/compat/linux/proc
#Mount-t linprocfs/dev/device/compat/linux/proc
The second step can be put into the/etc/fstab file automatically when the boot
Iii. Creating Oracle user groups and users
1. Create an Oracle user group
#pw Groupadd dba
#pw Groupadd Oinstall
2. Create Oracle Users
#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 the Oracle user
#passwd Oracle
4, modify the/home/oracle/.profile file, 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
IV. Installation of Oracle
1. Log in to the system with Oracle account.
3. Create an install directory to hold the Oracle installation files
$mkdir/home/oracle/install
(The above operation has been completed, Lnx_920_disk1.cpio, Lnx_920_disk2.cpio, lnx_920_disk3.cpio Three files are not found on the following web)
3. Copy the Lnx_920_disk1.cpio, Lnx_920_disk2.cpio, and Lnx_920_disk3.cpio three files to the/home/oracle/install directory.
4. Unzip 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 of Disk1, Disk2, and DISK3 are generated.
5. Run the installation file
$CD ~/install/disk1
$./runinstaller
The above describes the FreeBSD 9.0 installation oracle9i, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.