Undender to freeBSD is one of the best operating systems, but the lack of large commercial database support hinders FreeBSD to high-end and corporate applications, Oracle as the leader of the database, if you can enjoy it in FreeBSD, it is for FreeBSD Fans. An inspiring. After two days of effort and referring to an introduction to Oracle8i, installing Oracle8i on FreeBSD, successfully installed on FreeBSD 5.2. The following is an installer. One core configuration # add for options nbuf = 2048 options maxDsiz = "(1024ul * 1024 * 1024)" Options maxssiz = "(1024 ul * 1024 * 1024)" Options dflDsiz = "(1024 ul * 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 # add end additional MaxUsers to 512, I choose ULE scheduler when the kernel is customized, now ULE It is the default scheduler. Second system configuration 1 SWAP partition size is 1G, RAM256M, Oracle_Home requires 5G or more space. 2 Install the Linux simulation environment. Two pkgs must be installed in Linux_base-7.1 and Linux_DevTools-7.1, but I found that DevTools-7.1 from Ports was installed at the time of installation, so I was forced to be entirely based on the two ports in a machine installed. RH7.3 System CP is in FreeBSD, if I need me to play this directory? Tree is a TAR package to provide a bit. No matter how you build the / compat / linux directory tree, you must ensure that Ar, AS, LD, NM, TR, CPP, CHMOD, G , Printf, Find, Chgrp, Chown, etc. 3 Adjusting Linux Simulation Environment A Creating MTAB to / ETC / FSTAB in / Compat / Linux / ETC LN -S / ETC / FSTAB / COMPAT / Linux / etc / MTAB B7707 , Sed, Chown Link ln -s / compat / linux / usr / bin / awk / compat / limited / bin / awk ln -s / compat / ln / usr / bin / sed / compat / linux / bin / sed ln - S / usr / sbin / chown / compat / linux / bin / chown configuration is to meet some of the requirements of Oracle9i at the installation, I know the above configuration when running root.sh, but can also Modify this script before running, I use it when I installed it ??, I don't know if this causes a mistake that will be led later.
c Create ARCH executable content in / compat / linux / bin: #! / compat / linux / bin / Bash Echo i686 # according to your machine is I586 or I486 hits the executable tag: chmod X Arch 4 Open Linux Simulation support, modify the rc.conf file can also kldload Linux module enable_linux = "yes" 5 mount Linux proc file system mkdir / compat / linux / proc mount -t linproc / dev / device / compat / linux / proc second step can be put Automatic interception 6 Add Oracle User Group and User PW GroupAddD-N ORAMON "in the / etc / fstab file in the / etc / fSTAB file 6 Add Oracle User Group and User PW GroupAdddddD -N Oracle -u 94 - -d / home / oracle -s / compat / linux / bin / bash -g dba -g oinstall, Wheel 7 Configures Oracle User Environment MKDIR / HOME / ORACLE CHOWN ORACLE: DBA / HOME / ORACLE CD / HOME / ORACLE Edit .profile Configuring Oracle User Environment: Path = / compat / linux / bin: / compat / linux / sbin: compat / linux / usr / bin: / compat / linux / usr / sbin: / home / oracle / 920 / bin: / sbin: / bin: / usr / sbin: / usr / bin: / usr / local / bin: / usr / x11r6 / bin; export path oracle_base = / home / oracle; export oracle_base # below one is installation Oracle's directory ORACLE_HOME = / home / oracle / 920; export oracle_home ld_library_path = $ oracle_home / lib: $ ld_library_path; export ld_library_path oracle_sid = Orcl; Export OR ACLE_SID ORA_NLS33 = $ ORACLE_HOME / OCOMMON / NLS / Admin / Data; Export ORA_NLS33 Export Display =: 0 Three Installation Preparation Download Oracle9i (9.2.0) For Linux's three files in a sufficient size (> 2g) space decompression final get Three directorys: Disk1, Disk2, Disk3. Four Installation 1 Enter the X StartX 3 in the Oracle User Log in 2 to open a terminal window in X, run the installer CD / Path / Disk1 ./runinstaller installer start running in the window, then press the prompt selection to install, this is To install a typical Windows program, the default temporary file is installed in the / tmp directory, and you can see the Oracle9i installation directory and some temporary files. 4 Multi-purpose manual intervention in installation A When you start installation, there is a window prompt to run a script, then you can create a root on / compat / linux / etc in another terminal window to create a named ORAINST.LOC The file will be the main set to Oracle CD / Compat / Linux / etc Touch ORAINST.LOC Chown Oracle: DBA ORAINST.LOC then runs the script as an Oracle, and then continues to install.