作者:LINUX伊甸园会员TERRAN 硬件环境 :PIII 700 ; 512M ram ; 40G 磁盘分区 :主分区 9GBB
作者:LINUX伊甸园会员TERRAN
硬件环境 :PIII 700 ; 512M ram ; 40G
磁盘分区 :主分区 9GB;交换分区 1GB
软件环境 :Redhat 7.1 完全安装(kernel 2.4.2-2 ; glibc-2.2.2-10)
准备工作 :
如果你的Redhat 7.1不是完全安装的话,请安装以下软件包。
compat-glibc-6.2-2.1.3.2.rpm (Redhat第一张盘里)
rpm -Uvh compat-glibc-6.2-2.1.3.2.rpm
compat-libs-6.2-3.rpm (Redhat第二张盘里)
rpm -Uvh compat-libs-6.2-3.rpm
compat-egcs-6.2-1.1.2.14.rpm(Redhat第二张盘里)
rpm -Uvh --force --nodeps compat-egcs-6.2-1.1.2.14.rpm
安装JDK118_v3
从Blackdown()下载jdk118_v3.tar.bz2
解压缩,安装在/usr/local
bunzip2 jdk118_v3.tar.bz2
tar -xvf jdk118_v3.tar
ln -s jdk118_v3 java
安装binutils-2.10.0.18-1.i386.rpm(Redhat 7.0安装盘中附带)
rpm -Uvh --force --nodeps binutils-2.10.0.18-1.i386.rpm
创建用户和组
groupadd -g 400 dba
useradd -u 400 -c "Oracle Owner" -d /home/oracle -g "dba" -m -s /bin/bash oracle
passwd oracle
输入新的用户密码。
创建安装目录(以/opt/oracle为例)
cd /opt
mkdir oracle
chown oracle:dba oracle
chmod 777 oracle
退出系统,以Oracle 用户登陆
修改用户配置文件:
vim .bash_profile
添加以下内容:
ORACLE_HOME=/opt/oracle/product/9.0.1; export ORACLE_HOME
ORACLE_SID=Test; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
ORACLE_OWNER=oracle; export ORACLE_OWNER
TNS_ADMIN=/home/oracle/config/9.0.1; export TNS_ADMIN
NLS_LANG=american_america.ZHS16GBK; export NLS_LANG
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS33
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip
LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH
export JAVA_HOME=/usr/local/jdk
export JSDK_HOME=/usr/local/jsdk
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JSDK_HOME/lib/jsdk.jar
export CLASSPATH
PATH=$POSTFIX/bin:$POSTFIX/sbin:$POSTFIX/sendmail
PATH=$PATH:/usr/local/jre/bin:/usr/local/jdk/bin:/bin:/sbin:/usr/bin:/usr/sbin
PATH=$PATH:/usr/local/bin:$ORACLE_HOME/bin:/usr/local/jsdk/bin
PATH=$PATH:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin
PATH=$PATH:/usr/local/samba/bin
export PATH
存盘退出,退出系统,再以Oracle 用户登陆。
从光盘运行安装程序,
/mnt/cdrom/runInstaller
出现安装画面如下:
点击Next继续,注意:此时的NUM LOCK键必须关闭,否则安装程序不会继续!!!
在对话框里选择安装目录,可以是任何Oracle用户拥有的目录。
填入Unix组,上面所建立的组为DBA。
系统提示要在/tmp下以Root身份运行orainstRoot.sh,打开终端窗口,以Root身份运行/tmp/orainstRoot.sh,然后点Continue。
选择安装目录,本例在/opt/oracle/product/9.0.1下,
选择安装产品,选择Oracle DataBase,
选择安装类型,可以自己选择,如果是新手,建议使用Enterprise Edition。
安装后不要让系统自动建库,自动建库会出问题,所以选择Software Only,按Next,出现语言选择,如果你使用中文界面的话,选上简体中文。
出现安装组件列表,点击安装,开始拷贝文件。
中间有两次需要换盘。
文件拷贝完成后系统提示运行Root.sh脚本,打开终端,以Root身份运行Root.sh。之后系统会自动运行配置脚本,一般情况下会很快通过,也有可
能会没有响应,没有关系,停掉他,以后手工配置。之后出现安装成功的画面如下。

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

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

The steps to build a MySQL database include: 1. Create a database and table, 2. Insert data, and 3. Conduct queries. First, use the CREATEDATABASE and CREATETABLE statements to create the database and table, then use the INSERTINTO statement to insert the data, and finally use the SELECT statement to query the data.

MySQL is suitable for beginners because it is easy to use and powerful. 1.MySQL is a relational database, and uses SQL for CRUD operations. 2. It is simple to install and requires the root user password to be configured. 3. Use INSERT, UPDATE, DELETE, and SELECT to perform data operations. 4. ORDERBY, WHERE and JOIN can be used for complex queries. 5. Debugging requires checking the syntax and use EXPLAIN to analyze the query. 6. Optimization suggestions include using indexes, choosing the right data type and good programming habits.


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

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version
Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download
The most popular open source editor