|
ng the dba group.
10,Create Oracle Directories
In this example, make sure that the /opt filesystem is large enough. If /opt is not on a separate filesystem, then make sure the root filesystem "/" has enough space.
As root:
mkdir /opt/oracle mkdir /opt/oracle/product mkdir /opt/oracle/product/9.2.0 chown -R oracle.oinstall /opt/oracle
mkdir /var/opt/oracle chown oracle.dba /var/opt/oracle chmod 755 /var/opt/oracle
11,Set Oracle Environments
Set the following Oracle environment variables before you start runInstaller.
As the oracle user execute the following commands:
# Oracle Environment export ORACLE_BASE=/opt/oracle export ORACLE_HOME=/opt/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 NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;(if you use Chinese) 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
export TMPDIR=/tmp
You can put these environment settings at the end of the ~oracle/.bash_profile file if you use bash.
12,Start runInstaller
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.
From the console of your Oracle server "oracleserver " you are logged into, execute the following command as user " oracle ": oracleserver:oracle$ export DISPLAY=yourlocalIP:0.0
13,Running Oracle Installation
This is how I answered the questions in 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.(refer to step 9)
Full path name for Oracle Home: /opt/oracle/product/9.2.0
Oracle Home Name: OUIHome
14,You might get the following installation problems when you install Oracle 9i (9.2.0):
l First check always the error logs in /tmp/OraInstall for 9.2.0, e.g /tmp/OraInstall2002-07-04_09-50-19PM, and in /tmp/OraInstall for 9.0.1. When you get make problems check also $ORACLE_HOME/install/make.log.
l Q:"Error in invoking target install of makefile /opt/oracle/product/9.2.0/ctx/lib/ins_ctx.mk"
A:Edit $ORACLE_HOME/ctx/lib/env_ctx.mk and go to "INSO_LINK =", add a "$(LDLIBFLAG)dl" to the line and save it.
Here is the full line with the added "$(LDLIBFLAG)dl" flag: INSO_LINK = -L$(CTXLIB) $(LDLIBFLAG)m $(LDLIBFLAG)dl $(LDLIBFLAG)sc_ca $(LDLIBFLAG)sc_fa $(LDLIBFLAG)sc_ex $(LDLIBFLAG)sc_da $(LDLIBFLAG)sc_ut $(LDLIBFLAG)sc_ch $(LDLIBFLAG)sc_fi $(LLIBCTXHX) $(LDLIBFLAG)c -Wl,-rpath,$(CTXHOME)lib $(CORELIBS) $(COMPEOBJS)
l Q:"Error invoking target install of makefile /opt/oracle/product/9.0.1/plsql/lib/ins_plsql.mk" "Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-precomp.mk" "Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-net-client" "Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-oemagent"
A:Edit the file $ORACLE_HOME/bin/genclntsh and change the following line (people have sent me emails pointing out that this also works for Mandrake 8.1 and Mandrake 8.2): LD_SELF_CONTAINED="-z defs" to read: LD_SELF_CONTAINED=""
Then run the script $ORACLE_HOME/bin/genclntsh as the user "oracle" and not as the user "root". Also make sure you have all the Oracle environments set!
$ su - oracle $ $ORACLE_HOME/bin/genclntsh Created /opt/oracle/product/9.0.1/lib/libclntst9.a $
l Q:Can't find init file for Database "SID".
A:I saw this error only in connection with Oracle 9i R2 (9.2.0) when It tried to start the database with dbstart.
I copied the init file for my SID "test" from /opt/oracle/admin/test/pfile to $ORACLE_HOME/dbs to get dbstart and dbshut working: cp /opt/oracle/admin/test/pfile/inittest.ora.642002224936 $ORACLE_HOME/dbs/inittest.ora
l Q:"Error in setting permissions of file/directory /opt/oracle/jre/1.1.8/bin/i686/native_threads/.extract_args"
A:While the error dialog is open, manually find and copy the .extract_args file from your installed jre to where runInstaller complains it is missing.
l Q:"jre was not found in /tmp/OraInstall/jre/bin/i586/green_threads/jre"
A:You are probably running runInstaller on a 586 machine, or your AMD CPU gets recognized as 586 (e.g. AMD K6-III-400). You can check your machine (hardware) type by executing uname -m . To rectify this problem, create a link for lib and bin from i586 to i686 and make the i686 directories read only: E.g. ln -s /tmp/OraInstall/jre/bin/i686 /tmp/OraInstall/jre/bin/i586 ln -s /tmp/OraInstall/jre/lib/i686 /tmp/OraInstall/jre/lib/i586 chmod u-w /tmp/OraInstall/jre/bin/i686 /tmp/OraInstall/jre/lib/i686 Now restart runInstaller.
If you are not running on a 586 or AMD machine, try to link jre to java and see if this solves your problem.
l Do not cd to /mnt/cdrom to run ./runInstaller! If you do so, the installation will fail because you won't be able to change the CDs.
l If you forgot to set the DISPLAY environment variable (e.g. export DISPLAY=oracleserver:0.0) , or if you forgot to give the remote console - your Oracle Server - authority to display X information on your desktop PC (e.g. xhost +oracleserver ), you will get the following error: Xlib: connection to ":0.0" ref 上一页 [1] [2] [3] 下一页 没有相关教程
|