Installation manual for oracle8.17 under Redhat7.2 (7.1)

Source: Internet
Author: User
Tags exit character set manual ftp join log variables linux
Oracle
Installation manual for oracle8.17 under Redhat7.2 (7.1)

A Software configuration Process
1. Install GLIBC 2.1 Packs
glibc2.1 version (GNU C library,18m) Download Address:
Ftp://ftp.kernel.org/pub/software/libs/glibc/hjl/sdk/2.1/i386-glibc-2.1-linux.tar.gz
It's downloaded to the/backup directory.
From the RedHat7.0 version, the installation is glibc2.2. Oracle 8I cannot compile with glibc 2.2, but requires a glibc2.1 SDK.
#su-root
#cd/
#tar zxvf/backup/i386-glibc-2.1-linux.tar.gz
Hide the gcc,cc,ld in the/usr/bin directory to avoid being used by Oracle Installer
#cd/usr/bin
#mkdir saved
#mv GCC cc LD saved
#ln-S/USR/I386-GLIBC-2.1-LINUX/BIN/I386-GLIBC21-LINUX-GCC gcc
#ln-S GCC cc
#ln-S/usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld ld
Hide libc.so,libdl.so,libm.so and libpthread.so files in the/usr/lib directory to avoid being used by Oracle Installer
#cd. /lib
#mkdir saved
#mv libc.so libdl.so libm.so libpthread.so saved
#mv libc.a LIBDL.A libm.a libpthread.a saved
Don't forget to restore the file when the installation is complete. (No recovery is possible).

2. Create users and Groups
Enter the system as root user
#groupadd SYSDBA
#groupadd Sysoper
#groupadd Oinstall
#useradd oracle–d/usr/oracle–g oinstall–g Sysdba,sysoper
#passwd Oracle
Enter the Oracle user password and enter two times.
#chmod 755/usr/oracle
#cd/usr
#mkdir orainventory
#chown Oracle.oinstall Orainventory

3. Configure Environment variables
Access to the system with Oracle users
To edit a registration file:
VI. bash_profile
At the end of the file add:
display=local:0.0
Export DISPLAY
Oracle_base=/usr/orainventory
Export Oracle_base
Oracle_home=/usr/oracle
Export Oracle_home
Oracle_sid=testdb
Note: The ORACLE_SID uses local names at each project point, plus serial numbers. For example, the above is the first system for Hangzhou to establish the use of the SID:HANGZHOU1.
Export Oracle_sid
Path= $PATH: $ORACLE _home/bin
Export PATH
Export ld_assume_kernel=2.2.5
Note: As long as less than 2.4 can
Save after editing the file and exit the system.
4. Copy Media:
To enter the system with an Oracle user, place the CD containing the Oracle V8.17 in the CD drive, and type the command:
$mount/mnt/cdrom
$CP/mnt/cdrom/oracle.tar./
Note: This assumes that the Oracle V8.17 filename is Oracle.tar
$tar XVF./oracle.tar

5. Installing the Database
In Xwindows The Oracle user enters the system, and if Xwindows does not start, enter the command: $startx to start the xwindows.
Open a terminal in the Xwindows and enter the command:
$CD Disk1
$./runinstaller
Enter the installer.

Second, the installation process

1, runinstaller start Installation interface
Sometimes Runinstaller, installation interface does not come out, this is mainly because of Oracle's character set for the simplified Chinese, but the OS is in English, so sometimes out, the program written in Java often appear in the problem of character sets. At this time the temporary destruction of $nls_lang variables, Java will use the default character set, just fine. So:

unset $NLS _lang

You can try it.

Unset $LANG
X actually dbassist is also sometimes out, so you can come out, but netasst always out, not clear why, but can modify their lisener.ora and Tnsnames.ora, so netasst is not necessary.

Another possible reason is that glibc did not replace the good I found until jdk1.3.1_ 01, to support glibc2.2, the previous version, including JDK1.3.0 do not support glibc2.2, as long as the glibc2.2 run, there will be no response, the process seems to die the same problem, the Oracle installer or JRE1.1.8, so as long as the glibc use or 2 . version 2, the installation window will not come out.

2. Click Next to follow,
In Unix Group Name:oinstall
Prompts to run/usr/oracle/orainstroot.sh under root, use ALT-F1 (or F2,F3, etc.) to enter other terminals, log in to the system as root, and run the file. Then use ALT-F7 to return to the installation interface.
In Available Products: Select Oracle 8i enterpise Edition 8.1.7.0.1

3. To fill in the Group of Oracle Software Installation,
Database administaor Group: Filling in SYSDBA
Database Operator Group: Filling in Sysoper
In the database identification:
Global Database Name:testdb just fine.
Sid:testdb,
At the location of the database file locations file: Destination address:/usr/oracle
Start copying files.
Then you are prompted to run/usr/oracle/root.sh with root and log in as root.

4, or select the installation components of the list of this interface, there is a choice of language button, to increase the "Simplified Chinese"

5. Ask if you want to create a database, "yes", and add the SID of the installation database. Database data file storage directory, is "/usr/oracle".

6. Start installing Oracle, install program copy files.
A lot of people say, after copying files, join the system library functions, make error, I think this is mostly replaced glibc not succeed, I did not have the installation of this problem. I would like to follow the steps I have written to, should not appear such a problem.

7, automatic start NETASST, configure the listener, generally if in order to save trouble, choose a typical configuration on it, but the typical configuration opened a 2481-port, is jserver use, if not jserver, you can not, now can not control it, Turn around and change the Listener.ora well.

8, automatically start dbassist, install the database, according to the prompts to do is, according to their own situation can be appropriate to adjust the installation of the database parameters, and finally started to create a database, you can also choose to save the created script, and then Exit Dbassist, run the Create script, so more flexible, You can create the script yourself, or you can study the script yourself, there will be harvest.

Third, after installation configuration

1, with root login, modify/etc/oratab, will be the last:
Orcl:/u01/app/oracle/product/8.1.7:n
To
Orcl:/u01/app/oracle/product/8.1.7:y
This allows you to use Dbstart and Dbshut to start and close the database without writing scripts to tune the SVRMGRL.

2, the database Start command and modify kernel commands in the System startup script (this can not be done)

Modify/etc/rc.d/rc.local and add:

#modify Kernel parameter
echo 134217728 >/proc/sys/kernel/shmmax
ECHO-E "32000 128" >/proc/sys/kernel/sem

#start Oracle8.1.7
Su-oracle-c ' lsnrctl start '
Su-oracle-c ' Dbstart '

I am lazy, did not write another script join into the RC3.D,RC0.D.RC5.D,RC6.D, but directly placed in the rc.local, hehe
Note that the kernel parameters must be modified before starting the database instance, and then using the IPCS command to look at the usage of shared memory, if not segmented.

Another particular thing to note is to be aware that the process of reading and writing a database must obtain Oracle environment variables, otherwise the database cannot be joined.
This "-" in the script above is very fastidious, which means switching to an Oracle user and getting Oracle's environment variables.
For example, if you also want to start Apache to read and write the database, Rc.local added the command must write this:
#start Apache httpd Server
. /etc/profile
/usr/local/apache/bin/apachectl start

Because I put Oracle's environment variables in the/etc/profile, I had to force it to read/etc/profile and get Oracle's environment variables before starting Apache so that the Apache SERVERAPI program could read and write to the database.

3, modify the NET8 configuration, you can use NETCA, or modify their own $oracle_home/network/admin under the Listener.ora and Tnsnames.ora,netasst seems not to come out.

4, if the creation of a second instance, with Dbassist, if dbassist out, temporarily destroy $lang, $NLS _lang
unset $NLS _lang
Unset $LANG
We can come out.


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.