Oracle 8i在Redhat7.2下安装手册
Oracle 8i安装手册
Oracle 8i 在Redhat 7.2下安装手册
Oracle 9i过于庞大,整天把我的硬盘折腾的够戗,所以我想念Oracle 8i了,参考了网上的一些帖子后,我在Redhat 7.2下成功的安装了Oracle
8.1.7 for Linux。以下是详细过程。
1.硬件环境:P4 1.4G , 640M Ram , 40G , Gforce II
2.磁盘分区:9G 主分区(ext3), 1G Swap分区
3.软件环境:Redhat 7.2完全安装
4.准备工作:
1).确认你已安装了以下兼容包:
compat-libstdc++-6.2-2.9.0.16
compat-glibc-6.2-2.1.3.2
compat-egcs-c++-6.2-1.1.2.16
compat-libs-6.2-3
compat-egcs-6.2-1.1.2.16
compat-egcs-objc-6.2-1.1.2.16
如果你是完全安装Redhat 7.2的话,以上包都已经安装,如果没有请在Redhat 7.2的光盘里安装。
2).安装binutils-2.10.91.0.2-3,哈哈,又是这个讨厌的东西,不过这次用的是Redhat 7.1盘里的,一定要装,不要忘了,因为他和后来的ld有关,不安装会出现ld:
unrecognized emulation mode: elf_i386_glibc21.的错误。
rpm -Uvh --force --nodeps binutils-2.10.91.0.2-3.i386.rpm
当然装完后如果你高兴可以把7.2的还原过来。
3).安装Jdk1.1.8_v3到/usr/local,这个不用多说了
bunzip2 jdk118_v3.tar.bz2
tar -xvf jdk118_v3.tar
ln -s jdk118_v3 java
4).获得补丁包--两个Oracle的glibc-2.1.3-stubs.tar.gz,还有一个就是最最关键的,所有在Redhat 7.x下装过Oracle
8.1.7的朋友都被97%的Linking Error搞得很恼火,这个包就是管这个Bug的,其实是一个文件--env_ctx.mk,怎么用,别急,一会告诉你。
5).准备用户环境。
groupadd dba
groupadd oinstall
useradd oracle -g oinstall -G dba
passwd oracle
输入新用户的密码。
创建安装目录(以u01为例)
mkdir /u01
chown ora.dba /u01
chmod 777 /u01
退出系统,以新建的Oracle用户登陆。
编辑/home/oracle目录下的.bash_profile,添加以下内容:
. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
export LD_ASSUME_KERNEL=2.2.5
export LDEMULATION=elf_i386_glibc21
export GCC_EXEC_PREFIX=/usr/i386-glibc21-linux/lib/gcc-lib/
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/8.1.7
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=Test
export ORACLE_TERM=vt100
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
umask 022
存盘退出,建议重新启动,以防不测。
5.安装Oracle 8.1.7
启动安装程序,
/mnt/cdrom/runinstaller(如果你是从光盘安装的话)
出现以下安装画面:
点击Next继续
选择安装路径,直接下一步。接下来会出现让你添安装组名-oinstall,然后以root用户执行orainstRoot.sh,但我这里没有出现,这是我已经安装过,然后卸载,就免了这一步了。
选择安装产品,选第一个就可以,下一步出现以下画面:
选择安装类型,这里选典型就可以,下一步选择JDK HOME。
下一步,填入数据库SID,这里是Test,
下一步,再下一步就出现安装进度,安装正式开始了。
你可以去休息一下,15分钟后在回来,这时候你看到的应该是如下,错误!!!!
这就是env_ctx.mk的过错,新开一个konsole窗口,把下载的env_ctx.mk copy 到$ORACLE_HOME/ctx/lib/目录下,然后Retry。
安装可以顺利结束。这时跳出窗口,要以Root身份运行root.sh
注意,Root.sh里有两处错误:
RMF=/bin/rm -f
修改为
RMF="/bin/rm -f"
RUID=`/usr/bin/id|$AWK -F( '{print $2}'|$AWK -F) '{print $1}`
修改为
RUID=`/usr/bin/id|$AWK -F( '{print $2}'|$AWK -F) '{print $1}'`
或者下载模板root.sh
完成以后点OK。出现net8配置窗口:
不要着急点下一步,新开一个konsole口,把下载下来的Oracle补丁包glibc-2.1.3-stubs.tar.gz,在$ORACLE_HOME下
tar -xvzf /tmp/glibc-2.1.3-stubs.tar.gz
然后运行,./setup_stubs.sh(也许是这个名),大约5分钟后,一切OK了。返回安装画面,选种Perform typical configuration,下一步,
上图为创建数据库时
数据库创建完成。
Oracle 数据库安装过程结束。
打开konsole窗口,运行sqlplus system/manager@test,应该可以连接到数据库。运行oemapp dbastudio,出现以下Oracle
DBA Studio。一切OK!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The key differences between CentOS and Ubuntu are: origin (CentOS originates from Red Hat, for enterprises; Ubuntu originates from Debian, for individuals), package management (CentOS uses yum, focusing on stability; Ubuntu uses apt, for high update frequency), support cycle (CentOS provides 10 years of support, Ubuntu provides 5 years of LTS support), community support (CentOS focuses on stability, Ubuntu provides a wide range of tutorials and documents), uses (CentOS is biased towards servers, Ubuntu is suitable for servers and desktops), other differences include installation simplicity (CentOS is thin)

CentOS installation steps: Download the ISO image and burn bootable media; boot and select the installation source; select the language and keyboard layout; configure the network; partition the hard disk; set the system clock; create the root user; select the software package; start the installation; restart and boot from the hard disk after the installation is completed.

CentOS will be shut down in 2024 because its upstream distribution, RHEL 8, has been shut down. This shutdown will affect the CentOS 8 system, preventing it from continuing to receive updates. Users should plan for migration, and recommended options include CentOS Stream, AlmaLinux, and Rocky Linux to keep the system safe and stable.

Docker uses Linux kernel features to provide an efficient and isolated application running environment. Its working principle is as follows: 1. The mirror is used as a read-only template, which contains everything you need to run the application; 2. The Union File System (UnionFS) stacks multiple file systems, only storing the differences, saving space and speeding up; 3. The daemon manages the mirrors and containers, and the client uses them for interaction; 4. Namespaces and cgroups implement container isolation and resource limitations; 5. Multiple network modes support container interconnection. Only by understanding these core concepts can you better utilize Docker.

Backup and Recovery Policy of GitLab under CentOS System In order to ensure data security and recoverability, GitLab on CentOS provides a variety of backup methods. This article will introduce several common backup methods, configuration parameters and recovery processes in detail to help you establish a complete GitLab backup and recovery strategy. 1. Manual backup Use the gitlab-rakegitlab:backup:create command to execute manual backup. This command backs up key information such as GitLab repository, database, users, user groups, keys, and permissions. The default backup file is stored in the /var/opt/gitlab/backups directory. You can modify /etc/gitlab

How to use Docker Desktop? Docker Desktop is a tool for running Docker containers on local machines. The steps to use include: 1. Install Docker Desktop; 2. Start Docker Desktop; 3. Create Docker image (using Dockerfile); 4. Build Docker image (using docker build); 5. Run Docker container (using docker run).

After CentOS is stopped, users can take the following measures to deal with it: Select a compatible distribution: such as AlmaLinux, Rocky Linux, and CentOS Stream. Migrate to commercial distributions: such as Red Hat Enterprise Linux, Oracle Linux. Upgrade to CentOS 9 Stream: Rolling distribution, providing the latest technology. Select other Linux distributions: such as Ubuntu, Debian. Evaluate other options such as containers, virtual machines, or cloud platforms.

CentOS hard disk mount is divided into the following steps: determine the hard disk device name (/dev/sdX); create a mount point (it is recommended to use /mnt/newdisk); execute the mount command (mount /dev/sdX1 /mnt/newdisk); edit the /etc/fstab file to add a permanent mount configuration; use the umount command to uninstall the device to ensure that no process uses the device.
