Login as oracle user, edit the file .bash_profile
and copy
the following lines into it:
# +------------------------------------------------------------+ # | FILE : .bash_profile | # +------------------------------------------------------------+ umask 022 EDITOR=vi; export EDITOR TERM=xterm; export TERM TMPDIR=/tmp; export TMPDIR # +--------------------------+ # | SETUP ORACLE ENVIRONMENT | # +--------------------------+ export ORACLE_SID=O817DB export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=/u01/app/oracle/product/8.1.7 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib export TNS_ADMIN=$ORACLE_HOME/network/admin export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1 export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data export ORACLE_OWNER=oracle export ORACLE_TERM=xterm # +--------------------------+ # | LINUX STUFF | # +--------------------------+ export LD_ASSUME_KERNEL=2.2.5 source /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh # +--------------------------+ # | SETUP SEARCH PATH | # +--------------------------+ PATH=$ORACLE_HOME/bin:/opt/bin:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/java/bin:. export PATH # +--------------------------+ # | SETUP JAVA ENVIRONMENT | # +--------------------------+ export JAVA_HOME=/usr/local/java export CLASSPATH=/u01/app/oracle/product/8.1.7/jdbc/lib/classes12.zip:/u01/app/oracle/product/8.1.7/JRE:/u01/app/oracle/product/8.1.7/jlib:/u01/app/oracle/product/8.1.7/rdbms/jlib:/u01/app/oracle/product/8.1.7/network/jlib:. # +-------------+ # | "GREETINGS" | # +-------------+ echo ".bash_profile executed"
Save the new version of .bash_profile
and re-read it, by issuing:
bash$ source .bash_profile
Finally, if you have not any window manager running, it is time to let it running.
We shall work under the hypothesis that you want to install cdrom Oracle distribution. Mount the cdrom with:
bash$ mount /mnt/cdromand move to the directory that contains the installer:
bash$ cd /mnt/cdrom/install/linuxThen, launch the installer by:
bash$ ./runInstallerand follow the steps on the GUI it should appear:
NEXT
verify that the proposed path is:
/u01/app/oracle/product/8.1.7and click
NEXT
again;Unix Group Name
with the value:
oinstallIf, for any reasons, this is not your first attempt to install Oracle, you will not be prompted for the
Unix Group Name
. In this case jump to step 4,
below.bash$ su bash# cd $ORACLE_HOME bash# ./orainstRoot.shWhen you're done click
Retry
on the pop-up window.
Oracle Enterprise Edition
, and
click Next
.
It should now allow you to choose what you install with much
finer granularity. Unless you're particularly constrained by disk
space or know exactly what you need, choose
Typical
and click Next
.
Global database name
, if you do not have any
particular needs you can type in oracle.localdomain
.
Also, verify that the values of SID
is set to:
O817DBThen, click
Next
.
/u01and click
Next
.
/usr/local/javaSince it is fine, click
Next
, and, then Install
.
bash$ su bash# cd $ORACLE_HOME bash# ./root.shAfter the script completes, click
OK
on the pop-up window.
Oracle Net8 Configuration
starts.
Choose Perform typical configuration
and click Next
.
Database Configuration Assistant
.
It may signal errors like:
ORA-03114: not connected to ORACLEThe temporary solution is to just click on
Abort
.
These kinds of errors will be recovered in a few!!
When the Database Configuration Assistant
concludes its tasks, just
click on Next
and the installation concludes.
If you needed to click on Abort
, you must:
bash$ mv ./glibc-2.1.3-stubs.tar.gz $ORACLE_HOMEand let ORACLE_HOME your working directory:
bash$ cd $ORACLE_HOME
bash$ gunzip glibc-2.1.3-stubs.tar.gz bash$ tar xvf glibc-2.1.3-stubs.tar
bash$ ./setup_stubs.shWhen it stops you are done!
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |