打印本文 打印本文 关闭窗口 关闭窗口
all installing oracle9i documents under linux platform
作者:武汉SEO闵涛  文章来源:敏韬网  点击数7005  更新时间:2009/4/22 20:45:34  文章录入:mintao  责任编辑:mintao
/oracle/product/9.2.0
export ORACLE_SID=test
export ORACLE_TERM=xterm
# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
  
# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin
  
I successfully installed Oracle9iR2 without setting the following CLASSPATH environment variable:  
# CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
# CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
# export CLASSPATH
  
You can put these environment settings at the end of the ~oracle/.bash_profile file if you use bash. By this way you don''''t have to set the environment variables again when you login as "oracle", or when you switch to the user "oracle" by executing "su - oracle".  
  
Starting runInstaller  
  
Before you continue, make sure you have set the Oracle environment variables, see above.  
  
Oracle no longer supports a character mode installer. Therefore, in order to execute runInstaller directly from a console of a machine you are logged into (in this example the node name where Oracle is running is called "oracleserver"), you need to set the DISPLAY environment variable. Before you do that, make sure that you also allow runInstaller on "oracleserver" to display X information on your Linux desktop machine (in this example, the PC name where you are running X Windows like KDE or GNOME is called "yourdesktop"), because programs running on remote machines cannot display information to your screen unless you give them the authority to do so. Note that the X display relink mechanism does not work for NT desktop machines unless you use Exceed.
  
Before you run runInstaller, execute e.g. ''''xterm'''' to see if your X setup is really working! If you install Oracle on your desktop PC and not on a remote node, then you can skip step 1 and 3.
  
Step 1: Allow "oracleserver" to display X information to your desktop PC "yourdesktop":
  
   yourdesktop:user$ xhost +oracleserver
Step 2: Open a new window and login to the Oracle server "oracleserver" as root. This window will be used for mounting and unmounting the Oracle CDs.  
   oracleserver:$ su - root
   oracleserver:root# mount /mnt/cdrom
  
Step 3: From the console of your Oracle server "oracleserver" where you will run runInstaller, execute the following commands:  
   oracleserver:$ su - oracle
   oracleserver:oracle$ export DISPLAY=yourdesktop:0.0
Step 4: Now execute runInstaller as "oracle". Do not cd to /mnt/cdrom !!  
   oracleserver:oracle$ /mnt/cdrom/runInstaller
  
NOTE:
Don''''t run runInstaller for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) yet! See Running Oracle Installation on Red Hat Enterprise Linux Advanced Server 3 for more information.  
  
Running Oracle Installation on RH 7.1, 7.2, 7.3, 8.0, 9, and on RH AS 2.1  
  
Keep in mind that you will get one or more errors here during the Oracle installation! See Oracle Installation Errors for more information.
  
This is how I answered the questions for the runInstaller:
  
- What would you like as the base directory (Inventory Location):
  
   /opt/oracle/oraInventory
- UNIX Group Name (permission for updating Oracle software):
  
   oinstall
   You could also use "dba" which I do not recommend for security reasons.
   For more information on the "oinstall" group account, see
   When to use "OINSTALL" group during install of oracle.
   
- Full path name for Oracle Home:  
   /opt/oracle/product/9.2.0
etc.
  
Running Oracle Installation on Red Hat Enterprise Linux Advanced Server 3  
  
In order to install an Oracle9iR2 database on RH AS 3, the "Oracle9iR2 Patch Set 3 9.2.0.4.0" patchset and some other patches must be applied. Some errors can only be fixed by applying the 9.2.0.4 patchset.  
  
Installing Oracle9iR2
  
Install the following RPMs (see Oracle Note:252217.1 for more information):  
su - root
rpm -ivh \
compat-db-4.0.14-5.i386.rpm \
compat-gcc-7.3-2.96.122.i386.rpm \
compat-gcc-c++-7.3-2.96.122.i386.rpm \
compat-libstdc++-7.3-2.96.122.i386.rpm \
compat-libstdc++-devel-7.3-2.96.122.i386.rpm \
openmotif21-2.1.30-8.i386.rpm \
setarch-1.3-1.i386.rpm \
tcl-8.3.5-92.i386.rpm
Relink gcc so that the older gcc will be used during the Oracle installation (see Oracle Note:252217.1 for more information):  
su - root
mv /usr/bin/gcc /usr/bin/gcc323
ln -s /usr/bin/gcc296 /usr/bin/gcc
mv /usr/bin/g++ /usr/bin/g++323      # if g++ doesn''''t exist, then gcc-c++ was not installed
ln -s /usr/bin/g++296 /usr/bin/g++
  
When you execute runInstaller from the Oracle 9iR2 (9.2.0) CD, you will get the following error message:  
Error occurred during initialization of VM
Unable to load native library: /tmp/OraInstall2003-10-25_03-14-57PM/jre/lib/i386/libjava.so:
     symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
  
To resolve resolve the __libc_wait symbol issue, download the patch p3006854_9204_LINUX.zip from http://metalink.oracle.com. See bug 3006854 for more information.  
  
To apply the patch, run  
su - root
# unzip p3006854_9204_LINUX.zip
Archive:  p3006854_9204_LINUX.zip
    creating: 3006854/
   inflating: 3006854/rhel3_pre_install.sh
   inflating: 3006854/README.txt
  
# cd 3006854
# sh rhel3_pre_install.sh
Applying patch...
Patch successfully applied
#  
NOTE: If you get the following error when you run rhel3_pre_install.sh:  
   rhel3_pre_install.sh: line 36: gcc: command not found
Then you forgot to install or link gcc, see above. This means you can''''t start any binaries any more:  
# ls
ls: error while loading shared libraries: /etc/libcwait.so: cannot open shared object file: No such file or directory
#
To fix that, run:  
# echo "" > /etc/ld.so.preload
rm /etc/ld.so.preload
And start over again.  
  
Now runInstaller can be started from the CD:  
su - oracle
$ echo $LD_ASSUME_KERNEL    # it is important that this variable is set!
2.4.1
$ /mnt/cdrom/runInstaller
  
  - Welcome Screen:       Click Next
  - Inventory Location:   Click Next
  - Unix Group Name:      Use "oinstall" and click Next
                          When asked to run /tmp/orainstRoot.sh, run it before you click Continue
  - File Locations:       Use default values
  - Available Products:   Select "Oracle9i Database 9.2.0.1.0"
  - Installation Types:   Select Custom since we only want to install the software for now
  - Available Products:   Click Next or add some more components.
  - Components Locations: Accept default values and click Next
  - Privileged Operating System Groups:
                          I used the default values: OSDBA Group = dba, OSOPER Group = dba
  - Oracle Managent Server Repository:
                          I used the default choice
  - Create database:      Select NO since we first have to patch Oracle before a database can be created!
  - Summary:              Start the Install
  - Configuration tools:  Tools won''''t come up. Simply ignore it.
  - At the end of the installation, exit runInstaller.
  
   
You may get the following errors:
  
Error in invoking target install of makefile /opt/oracle/product/9.2.0/network/lib/ins_oemagent.mk.  
  
The /opt/oracle/product/9.2.0/install/make.log file reads:  
   /opt/oracle/product/9.2.0/network/lib/libnmi.a(snmitcln.o)(.text+0xa4e): In function `Nls_FormatCmd'''':
   : undefined reference to `__ctype_b''''
   /opt/oracle/product/9.2.0/network/lib/libnmi.a(snmitcln.o)(.text+0x159d): In function `Nls_ScanCmd'''':
   : undefined reference to `__ctype_b''''
   /opt/oracle/product/9.2.0/networ

上一页  [1] [2] [3] [4] [5] [6] [7]  下一页

打印本文 打印本文 关闭窗口 关闭窗口