Install Oracle 8.1.7.0.1 Release 3 under Turbolinux 7.0

Source: Internet
Author: User
Tags bz2 exit ftp connect odbc variable oracle database sqlplus
Oracle Author: Shiley
Time: 2002-5-20

-------------------------------------------------------------------------------

System configuration: CPU:
ram:256m
Objective: To install the Oracle 8.1.7.0.1 Release 3 Enterprise version database server under Turbolinux 7.0.

-------------------------------------------------------------------------------

1. Pre-installation software preparation

Prepare software: Create a directory tools under/usr for software storage.
(i) need to be compatible with the Turbolinux software packages, respectively, in the Turbolinux 7.0 disk addons/ora8i directory can be found, 2 packages are copied to a/usr/tools directory to be used
#cd/mnt/cdrom
#cp Compat-glibc-2.1.3-1.i586.rpm/usr/tools
#cp Binutils–2.11.92.0.7-2.i586.rpm/usr/tools
..
(ii) Preparation of GLIBC
Glibc-2.1.3-stubs.tar.gz
Download Address: http://otn.oracle.com (glibc-2.1.3-stubs.tar.gz)

(iii) Preparation of the JDK
Oracle is the Java installation interface after 8i, Oracle is IBM Java package.
I wanted to use Sun's JDK1.3.1, but the installation process became very miserable, so I downloaded jdk118. The new version is not necessarily OK.
jdk118_v3-glibc-2.1.3.tar.bz2
JRE118_V3-GLIBC-2.1.3.TAR.BZ2 (only JRE is installed)
Download Address: ftp://ftp.mirror.ac.uk/sites/ftp.blackdown.org/java-linux/JDK-1.1.8/i386/v3/

(iv) Preparation of Oracle 8.1.7.0.1
Download to Oracle (www.oracle.com). Linux81701.tar (549,867,520)

2. Installation software

Step One
Installing TurboLinux7.0 compatible Packages
installation command < as root >
Cd/usr//tools
RPM–UVH compat-glibc-2.1.3-1.i586.rpm
RPM–UVH binutils–2.11.92.0.7-2.i586.rpm

Step Two
Create Oracle accounts and groups < as root >
Groupadd Oinstall
Groupadd dba
Groupadd Oper
Useradd oracle-g oinstall-g Dba,oper
passwd Oracle (set Oracle user's password)
MKDIR/U01/(In fact, you can set a mount point when you install Redhat 7.1.)
Chown oracle.dba/u01
chmod 775/u01

Step Three

Set the system environment,< as root >
Open the. bath_profile file under/home/oracle and add the following settings for the environment variable

-------------------------------------------------------------------------------#
# Login setting for Bash
# (C) 2000,2001 TURBOLINUXJ
#

If [f ~/.BASHRC]; Then
SOURCE ~/.BASHRC
Fi

# User specific environment and startup programs

env= $HOME/.BASHRC
Username= ""

Export USERNAME ENV PATH

Oracle_base=/u01/app/oracle; Export Oracle_base
oracle_home=/u01/app/oracle/product/8.1.7; Export Oracle_home
ORACLE_SID=ORA1; Export Oracle_sid
Path= $PATH:/u01/app/oracle/product/8.1.7/bin; Export PATH
classpath=.:/ U01/app/oracle/product/8.1.7/jdbc/lib/classes111.zip; Export CLASSPATH
Ld_library_path=/u01/app/oracle/product/8.1.7/lib:usr/lib:/usr/ccs/lib; Export Ld_library_path

Ora_nls33=/u01/app/oracle/product/8.1.7/ocommon/nls/admin/data; Export ORA_NLS33
nls_lang= "Simplified Chinese"; Export Nls_lang
Export Lc_all=c
Export Lang=c
Display=:0.0;export DISPLAY
#export Javahome=/opt/ibmjava2-13/jre/bin

WQ exit after modification completes
-------------------------------------------------------------------------------

Step Four
Extract Oracle 8i database software < as root >
Enter Xwindows, open terminal window, unpack Linux81701.tar package
Cd/usr/tools
Tar xvf Linux81701.tar
After decompression will be established under the/usr/tools Disk1, and then into the Disk1 directory.

Step Five
Install Oracle 8i database software, enter Xwindows, and open terminal window. To be logged in as Oracle.
1 Start the installation (the installation must be opened before the terminal window, to root landing, running Xhost +
Cd/usr/tools/disk1
./runinstaller
2 an Oracle Univer Installer interface appears, click Next.
3) Check the source path:/usr/local/tools/disk1/stage/products.jar
Check distination path:/u01/app/oracle/product/8.1.7 (same as $oracle_home environment variable)
Click Next.
4 in the UNIX Group name window, enter "Oinstall" as group, click Next.
5 There will be a window that prompts you to run the orainstroot.sh script. Then you have to open a new terminal window.
Change identity to Root, run orainstroot.sh script
Su Root (enter password for root)
CD $ORACLE _home
./orainstroot.sh
Leave the terminal window (do not close), go back to the prompts window, and click Retry.
6 Now you will see a window that is free to choose to install the product, select Oracle 8i Enterprise Edition 8.1.7.0.1, and click Next.
7 in the next window, select "Typical" Typical installation, click Next.
8 A window appears asking you to enter the Global Database Name window, formally name.domain, such as Oracle.c168linuxserver,
Check Oracle_sid, and be sure to click Next, just like the $ORACLE_SID environment variable.
9 The next window to ask the location of the database file, it should be/u01, click Next.
10 The next window to ask the JDK file location, must be/usr/local/java, do not change (Oracle installation needs). Click Next.
11 in the Summary window, click Install.
12 The software begins to install ...
Once the software copy and join are complete, you will see a window that requires you to run the root.sh script.

-------------------------------------------------------------------------------

Back to terminal window (log in as root)
1 Install JRE (I only install JRE)
Cd/usr/tool
CP Jre118_v3_glibc_2.1.3.tar.bz2/u01/app/oracle
Cd/u01/app/oracle/jre
Bzip2 jre118_v3-glibc-2.1.3.tar.bz2
Tar xvf Jre118_v3-glibc-2.1.3.tar
MV Jre118_v3 1.1.8

2) Installation glibc
Cd/usr/tool
CP glibc-2.1.3-stubs.tar.gz/u01/app/oracle/product/8.1.7
Tar zxvf glibc-2.1.3-stubs.tar.gz
./setup_stubs.sh

3 Oracle8.1.7 has two versions (Oracle8.1.7.0.0 and Oracle8.1.7.0.1), Oracle8.1.7.0.1 version of the root.sh has a bug,
$su Oracle
$CD $ORACLE _home
$vi root.sh
should be in line 156th, as follows:
Ruid= '/usr/bin/id| $AWK –F (' {print $} ' | $AWK –F) ' {print $} '
In the end wrote a '
should read:
Ruid= '/usr/bin/id| $AWK –F (' {print $} ' | $AWK –F) ' {print $} '

4)./root.sh
##########################################################
When I ask you the location of the bin directory, enter the line.
Go back to the installation window and click OK.

5 The configuration of Oracle Net8 will begin, you simply select "Perform typical Configuration" and click Next.

6 Start the configuration of Oracle database (if the installation is aborted or an error occurs, stop) and perform step six to create the database settings.

* If an error occurs, please run./restup.sh *//

Step Six
1) Set up listening (login with Oracle user)
CD $ORACLE _home/bin
./netasst
Select the local----Listeners---Listener, the right side will have network address settings, click Protocol Drop-down menu to select IPC, key entry to fill in Extproco, and then click the Protocol Drop-down menu to select tcp/ Ip,port fill in 1521, click the add address below.
2 Run Dbassist Build database

Step Seven:
Test oracle< Oracle Identity >
Running Oracle Servers
. svrmgrl
. Connect Internal
. Startup
. Quit
Test Sample.
CD $ORACLE _home/rdbms/admin
Sqlplus
User-name:sys
Password:change_on_install
@utlsampl. sql
Now log in with user Scott and password Tigger.
Sqlplus
User-name:scott
Password:tiger
Select * from EMP
Will show
2

3. Post-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 command in the system startup script
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
# startup Oracle8.1.7.0.1
Su-oracle-c ' lsnrctl start '
Su-oracle-c ' Dbstart '
CP libnldapj8.so $ORACLE _home/lib
Run dbassist,ok!
You have to be patient, the computer is not down. (6 hours.) V_v ...) You don't have to do anything until you see the database configuration complete.
The completion prompt window appears and Oracle provides two administrative accounts.
User name--password
-------------------------------------
SYS--Change_on_install
System--Manager

Step Eight:
Install ODBC (login as Oracle)
$tar XZVF Evlinux.ter.z
$CD Odbc/linux
$ksh Unixpi.ksh
1. Edit Odbc.ini file Create data source
Cd/opt/odbc
VI Oracle.ini
[Oracle]
Logonid=scott
Password=tiger
SERVERNAME=ORA1 (created at installation)
Disk exit

Need to test the database service with Sqlplus SCOTT/TIGER@ORA1

2. Modify the odbc.sh file
Join
Ld_library_path=/u01/app/oracle/product/8.1.7/lib:/usr/lib:/usr/css/lib;
Disk exit
Run./odbc/sh

3. Modify the. bash_profile file
Cd/home/oracle
VI. bash_profile
Join a line Odbcini=/opt/odbc/odbc.ini
Disk exit

4. Test connection ODBC (log in as Oracle)
Cd/opt/odbc/demo
./demoodbc–uid scott–pwd Tiger Oracle

* Shipment Monitoring (Login as Oracle)
./lsnrctl Start

* If multiple databases are started (log in as Oracle)
Oracle_sid=kmcdb
Export Oracle_sid
Svrmgrl
Connect Internal
Startup



Related Article

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.