Oracle
My environment:
Machine c1200m, 128M
Software RedHat Linux release 9, Kernel 2.4.20-8.
I was installed by reference to other people's notes (but I saved a few steps)
My Linux is completely installed and I don't have to explain anything else.
1, installation Preparation//These I have placed in the/home/root/oracle directory (I have changed the permissions of this directory to WRX
Linux Patch for glibc-2.1.3-stubs.tar.gz//oracle
JDK for J2sdk-1_4_2_06-linux-i586-rpm.bin//sun
Linux81701.tar//oracle Installation Disk
2, install JDK and create symbolic connection (that is, Windows shortcuts, user root)
Graphical interface Installation I'm not going to say it. ^_^
#./j2sdk-1_4_2_06-linux-i586-rpm.bin//execution will get J2SDK-1_4_2_06-LINUX-I586-RPM installation package
#rpm-UVH j2sdk-1_4_2_06-linux-i586-rpm//an JDK
#ln-S/usr/local/j2sdk-1_4_2_06/usr/local/java
3 Create user Oracle, group oinstall each Oracle installation path (user root, Prompt is # user is root)
#groupadd Oinstall
#groupadd DBA
#useradd-G oinstall-g dba Oracle
#passwd Oracle
New Password:[oracle]//[] That's the password I entered.
Bad Password:it are based on a dictionary word
Retype new Password:[oralce]
Passwd:all authentication tokens updated successfully.
#mkdir-P/u01/oracle/product/8.1.7//Create Oracle Installation path
#chown-R/oracle.oinstall/u01/oracle//as root is now used
The directory you created doesn't change his permissions.
When you install with Oracle, you will not have permission to operate on this directory
4, modify the Oracle User profile file (current working directory is:/home/oracle/, user Oracle its shell prompt becomes $)
$vi. Bash_profile//recommended using Emacs as a graphical interface gedit
Emacs. Bash_profile or Gedit. bash_profile
Add the following content:
# Stuff for 8.1.7 Install
Export ld_assume_kernel=2.2.5
Export Oracle_base=/u01/oracle
Export Oracle_home= $ORACLE _base/product/8.1.7
Export path= $PATH: $ORACLE _home/bin
Unset LANG
# Java DEVELOPMENT Kit for 8.1.7
Java_home=/usr/local/java; Export Java_home
Classpath=${java_home}/lib/classes.zip; Export CLASSPATH
#Need to point to Init*.ora
ORACLE_SID=ORCL; Export Oracle_sid
# Need shared libraries ie for LSNRCTL
if ["${ld_library_path:-}" = ""]; Then
Ld_library_path=${oracle_home}/lib:/usr/lib:/usr/local/lib
Else
Ld_library_path=${oracle_home}/lib:${ld_library_path}
Fi
Export Ld_library_path
Finish back now VI (save first) ^_^
To execute the source command for the shell configuration file just modified to take effect
$source. Bash_profile
5, unzip the installation disk from Oracle (operation user, Oracle, my working directory is/home/root/oracle/your download down
Where the Oracle installation disk is placed, unzip it, ^_^.
$tar-XVF Linux81701.tar
6, with the Oracle user login to the graphical interface into the previous step to extract the Disk1 directory double-click Runinstaller jump out of a window you click to run
The Oracle graphical installation interface point Install button is then started and comes down to the UNIX Group name and fills in the Oinstall
The 7,oracle installer will pop up a small window when it's ready for installation, telling you that you are required to execute a script called orainsroot.sh with the root user.
8, when you open a terminal window (if you have to open it will not be)
At this point the terminal prompt is ' $ ' which is the normal user's shell prompt now to switch to root (superuser)
$ su
password:[Enter the password for your root user]
Your shell prompt will become ' # ' and you already have superuser privileges.
#cd/u01/oracle/product/8.1.7
#./orainstroot.sh//can also use SH orainstroot.sh
Creating Oracle Inventory pointer file (/ETC/ORAINST.LOC)
Changing groupname of/u01/oracle/orainventory to Oinstall.
This is a hint for the system that executed the SH script ^_^
Return to Oracle Installer click OK
9, then go down.
Select Product to install: Choose Oracle Enterprise
Installation Types: Select Typical (837MB)
Verify JDK Home Directory: Fill in/usr/local/java
Database identification: Fill in ORCL
SID: Fill in the Orcl your. Bash_profile in the same.
10, continue to go down, there will be several times make error, leave him, choose ignore
11, to reach 100% time will jump out of a small window, prompting the root user to execute a script root.sh,
Wait a minute before you perform a patch on the root.sh.
Go back to the terminal window and go to the directory where the Linux patches are downloaded from ORACLE. Copy the patch to the $oracle_home/*oracle installation directory * * (my patch package is in/home/root/orale/
#cd/home/root/oracle/
#cp glibc-2.1.3-stubs.tar.gz $ORACLE _home
These two commands are also available under command # cp/home/root/oracle/glibc-2.1.3.stubs.tar.gz/u01/oracle/product/8.1.7
[Root@localhost.localdomain 8.1.7]# sh root.sh//Run this root.sh shell script
There is a place to enter, just hit enter.
The final results are as follows:
Enter the full pathname to the local bin directory: [/usr/local/bin]:
\ncreating/etc/oratab file ...
Entry'll be added to The/etc/oratab file by
Database Configuration Assistant When a database is created
Finished running generic part of root.sh script.
Now product-specific root actions would be performed.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.