To install Oracle8irelease3 (8.1.7) in redhat7.3, you must first find the following software packages:
To install Oracle 8i release 3 (8.1.7) in redhat 7.3, you must first find the following software packages:
How to install Oracle 8i release 3 (8.1.7) in redhat 7.3
First, find the following software packages:
* Java Development Tool jdk-1.1.8_V3 (on, the file name is jdk118_v3.tar.bz2)
* Redhat 6.2 compatibility package (find the redhat 7.3 or redhat website)
Compat-glibc-6.2-2.1.3.2.i386.rpm
Compat-libs-6.2-3.i386.rpm
Compat-libstdc ++-6.2-2.9.0.16.i386.rpm
Compat-egcs-6.2-1.1.2.16.i386.rpm
* Glibc-2.1.3-stubs (the patch placed on the oracleofficial site, the file name is glibc-2.1.3-stubs.tar.gz)
It is best to put all these files into a folder.
My system has not been installed with oracle, And the built-in kde3 and shell are bash.
The above files are placed in the/orafile directory, and the oracle8i Installation File is placed in the/mnt/wind/oracle8i directory.
The following code uses the root identity:
Install the compatibility package:
Cd/orafile
Rpm-Uvh compat * -- nodeps
Rpm-qa | grep compat * check if it is installed.
Install jdk:
Tar jxvf jdk118_v3.tar.bz2-C/usr/local
Cd/usr/local
Mv jdk118_v3 java
You can add oracle users, oinstall, and dba groups as long as the dba group is used. However, we recommend that you use two groups in the oracle document to save some face for them :)
Groupadd oinstall
Groupadd dba
Useradd-g oinstall-G dba oracle
Passwd oracle
Create an oracle installation directory as needed. I will install oracle in the/home/oracle/product/8.1.7 directory:
Cd/home/oracle
Mkdir-p product/8.1.7
Chown-R oracle. oinstall/home/oracle /*
Just eight of those who ran their businesses using oracle noticed that it is best to read the oracle documentation to check whether improper installation affects performance.
Modify the/etc/rc. local file to increase the maximum size of the shared memory segment. The default 32 m setting will affect the performance of oracle (this step can also be done after installation ):
Echo 134217728>/proc/sys/kernel/shmmax
In this way, the system automatically changes the shmmax value to 128 MB every time it is started. Of course, you can re-compile the kernel.
Now let's skip it and log on with an oracle account. Let's set the environment variable:
Add the following lines to the/home/oracle/. bash_profile file in your favorite editor:
Export LD_ASSUME_KERNEL = 2.2.5
Source/usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
Export ORACLE_BASE =/home/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/8.1.7
Export NLS_LANG = "SIMPLIFIED CHINESE_CHINA.ZHS16CGB231280"
Export ORA_NLS33 = $ ORACLE_HOME/ocommon/nls/admin/data
Export PATH = $ PATH: $ ORACLE_HOME/bin
Save and exit. Run
Source/home/oracle/. bash_profile
Or just ignore it once.
Run the env command to check whether the variables are correctly set.
Env
I feel no problem. I will destroy several variables LANG, LANGUAGE, and NLS_LANG later.
Unset LANG
Unset LANGUAGE
Unset NLS_LANG
In this way, when running/mnt/wind/oracle8i, there will be no crowded Chinese characters.
If it doesn't work, I have another trick.
Locale_config
Enter the root password, select en_US, and remember to save
OK after injection
So far, our preparations have been completed!
Start to install oracle8i!
Cd/mnt/wind/oracle8i
./RunInstaller
If you need to mount the optical drive before installing the CD,
Mount/dev/cdrom
Cd/mnt/cdrom
./RunInstaller
Follow the prompts to install the tool. After a while, oracle will prompt you to run the orainstRoot. sh file as root.
Press alt + ctrl + f2 to log on as the root user.
Cd $ ORACLE_HOME
./OrainstRoot. sh
When selecting the installation type, it is best to select Custom and Typical, which will cause database creation failure. because the Custom installation will prompt you whether to use this wizard to create a database, we can choose not to avoid database creation failure. After installing patches, use dbassist to create a database.
When file copy ends, an error occurs in the ins_ctx.mk file. You don't have to worry about this. Just click ignore. We will fix it with a patch later.
After the copy operation, the system prompts you to run root. sh, and then switch to another console,
Cd $ ORACLE_HOME
Do not rush to run root. sh because there are errors in lines 102nd and 156 of the file,
Change RMF =/bin/rm-f to RMF = "/bin/rm-f"
RUID = '/usr/bin/id | $ AWK-F \ (' {print $2} '| $ AWK-F \)' {print $1} 'changed
RUID = '/usr/bin/id | $ AWK-F \ (' {print $2} '| $ AWK-F \)' {print $1 }''
Save and run
./Root. sh
Prepare several components as prompted. After installation is complete, you can start patching (this time without using root ):
Cd/orafile
Tar zxvf glibc-2.1.3-stubs.tar.gz-C $ ORACLE_HOME
Cd $ ORACLE_HOME
./Setup_stubs.sh
Now I want to change the language back,
Locale_config
Select zh_CN.GB18030
Re-obtain the variable so that dbassist can be run in Chinese, and the NLS_LANG error is not prompted during database creation,
Source/home/oracle/. bash_profile
Next we will create a database,
Dbassist
A graphical interface in Chinese. You can select ORACLE_SID as prompted. In this example, ORACLE_SID is smzhang. We recommend that you do not install Jserver if necessary, otherwise, have a good sleep ,.
After the database is created, Edit. bash_profile to add ORACLE_SID. My ORACLE_SID is smzhang and add it to/home/oracle/. bash_profile.
Export ORACLE_SID = smzhang
For later convenience, You need to modify the/etc/oratab file and change the N to Y. After the change, you can:
*:/Home/oracle/product/8.1.7: Y
Smzhang:/home/oracle/product/8.1.7: Y
Run the following command:
Dbstart
Oemapp dbastudio
Enter the default user name and password. OK!
Use it to create a table in smzhang, such as mytest, and write something into it. Use sqlplus to view it,
Sqlplus system/manager @ smzhang
Select * from mytest
Haha, it's done!
But! What about next Startup? The database cannot be started, so do some further settings,
Do you remember the/etc/rc. local file? It is intended for lazy users. Add two lines:
Su-oracle-c 'lsnrctl start'
Su-oracle-c 'dbstart'
Save and reboot. Please check out a cainiao MM.
Due to the special nature of oracle8, problems may occur during installation. Please read this article carefully and install it later.
There are several ways to install Oracle.
I386-glibc21-linux.tar.gz, binutils-2.10.0.18-1.i386.rpm, env_ctx.mk and without modifying gcc, cc, ld can be successfully installed Oracle8i, I have successfully installed several times, do not and other methods mixed use, otherwise, the problem is difficult to solve.
(Refer to the English document)
--- Smzhang)
Time: Source: Author: smzhang responsible editor: admin