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!

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA


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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

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