search
HomeDatabaseMysql TutorialOracle9204 for RHAS3 的安装

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入 一、系统要求: 最低内存256M,建议512M,硬盘空间5G(AS3自定义安装,操作系统大概是2个G,oracle9204大概是2.5G),如果是把oracle安装文件复制到硬盘上再安装则需要7G;交换分区为内存倍,如果内

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入

    一、系统要求:

 
最低内存256M,建议512M,硬盘空间5G(AS3自定义安装,操作系统大概是2个G,oracle9204大概是2.5G),如果是把oracle安装文件复制到硬盘上再安装则需要7G;交换分区为内存倍,如果内存为1G或更大时为内存相同大小查看物理内存:# grep MemTotal  /proc/meminfo查看交换分区大小:# /sbin/swapon ?s

 二、安装前的准备:

 
oracle9204安装软件(一共三张盘,可到http://www.oracle.com下载),oracle9204补丁:p3006854_9204_LINUX.zip,p3119415_9204_LINUX.zip,p2617419_210_GENERIC.zip;在安装oracle9204前必须打p3006854_9204_LINUX.zip补丁,p3119415_9204_LINUX.zip和p2617419_210_GENERIC.zip是agent的补丁,如果不打这两个补丁agent就没法正常启动。因为是直接安装9204的版本,所以p3095277_9204_LINUX.zip的补丁就不用打了。

    三、检查以下软件包是否已安装:

 
compat-db-4.0.14-5.i386.rpm compat-gcc-7.3-2.96.122.i386.rpm compat-gcc-c++-7.3-2.96.122.i386.rpm compat-libstdc++-7.3-2.96.122.i386.rpm compat-libstdc++-devel-7.3-2.96.122.i386.rpm openmotif21-2.1.30-8.i386.rpm setarch-1.3-1.i386.rpm tcl-8.3.5-92.i386.rpm检查软件包# rpm ?qa | grep compat compat-db-4.0.14-5.i386 compat-gcc-7.3-2.96.122.i386 compat-gcc-c++-7.3-2.96.122.i386 compat-libstdc++-7.3-2.96.122.i386 compat-libstdc++-devel-7.3-2.96.122.i386 # rpm ?qa | grep openmotif21 openmotif21-2.1.30-8.i386

    # rpm ?qa | grep setarch setarch-1.3-1.i386

    #rpm ?qa | grep tcl tcl-8.3.5-92.i386在AS3的第三张及其它光盘上有安装软件包,例:# rpm ?ihv compat- compat-gcc-7.3-2.96.122.i386.rpm注意:软件包的安装是有先后次序。

    四、设置系统参数

 
1.更改gcc、g++版本mv /usr/bin/gcc /usr/bin/gcc323 ln -s /usr/bin/gcc296 /usr/bin/gcc mv /usr/bin/g++ /usr/bin/g++323 ln -s /usr/bin/g++296 /usr/bin/g++注意:如果gcc296,g++296没安装,请先安装该软件包2.设置内核参数修改/etc/sysctl.conf、/etc/security/limits.conf两个文件#vi /etc/sysctl.conf添加以下参数kernel.shmmax = 2147483648 (以字节为单位,物理内存*1024*1024*2,为物理内存的2倍)

    kernel.shmmni=4096 kernel.shmall=2097152 kernel.sem=250 32000 100 128 fs.file-max=65536 net.ipv4.ip_local_port_range=1024 65000保存退出执行以下命令使配置马上生效# sysctl -p #vi /etc/security/limits.conf添加以下参数oracle hard nofile 65536 oracle soft nofile 65536 oracle hard nproc 16384 oracle soft nproc 16384

  五、创建运行oracle数据

 
系统管理用户及设置其的环境变量1.创建组和用户# groupadd oinstall # groupadd dba # useradd -g oinstall -G dba oracle # passwd oracle

    2.设置用户环境变量以oracle打开新的终端窗口或 在root 终端窗口上# su ? oracle $ vi $HOME/bash_profile添加export LD_ASSUME_KERNEL=2.4.1 export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/9.2.0 export ORACLE_SID=myora export ORACLE_TERM=xterm # export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin――这是设置参数文件所在位置,例如:tnsnames.ora,sqlnet.ora, spfilexxx.ora export NLS_LANG=“Simplified Chinese_china”。ZHS16GBK export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data export LD_LIBRARY_PATH=$ LD_LIBRARY_PATH ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib export PATH=$PATHORACLE_HOME/bin $ source $HOME/.bash_profile――让设置马上生效或重新登录系统3.创建oracle安装目录以root用户身份打开另一个终端窗口# mkdir  -p /u01/app/oracle # chown ?R oracle.oinstall /u01/app/oracle # chmod ?R 775 /u01/app/oracle # mkdir /var/opt/oracle # chown ?R oracle.dba /var/opt/oracle # chmod ?R 775 /var/opt/oracle

    六、安装oracle数据库系统(当前用户是root)

    1.解包# unzip ship_9204_linux_disk1.cpio.gz # unzip ship_9204_linux_disk2.cpio.gz # unzip ship_9204_linux_disk3.cpio.gz # cpio ?idmv

    进入Disk1目录$ ./runInstaller数据库用户组为 “dba”

    安装时一定要记得选择支持多语言核心字符集(AL32UTF,选择安装过程中自动创建数据安装过程中会提示用root 执行/tmp/orainstRoot.sh 、/u01/app/oracle/product/9.2.0/root.sh这两个脚本安装时agent会启动失败,略过继续下一步…。

    打agent补丁以修正agent不能正常启动的bug (还是oracle 用户身份)

    先停止oracle的一些后台服务$ sqlplus “sys/as sysdba”  ――提示输入oracle sys用户的密码,直接回车就可以SQL>;shutdown  immediate SQL>;lsnrctl stop $ unzip p3238244_9204_LINUX.zip $ cp p2617419_210_GENERIC.zip /tmp $ cd /tmp $ unzip p2617419_210_GENERIC.zip $ export PATH=$PATH:/tmp/Opatch $ export PATH=$PATH:/sbin $ cd ……/……/ 3238244 $ opatch apply $ cd $ORACLE_HOME/network/lib $ make ?f ins_oemagent.mk install $ sqlplus “sys/as sysdba”  ――提示输入密码回车略过SQL>;startup SQL>;exit $ lsnrctl start运行 $ agentctl start 测试agent代理能否正常工作$ agentctl start如果数据库不能正常启动请执行$ dbca把旧库删除再创建一个新库七、安装好后打/u01/app/oracle/product/9.2.0/network/admin/sqlnet.ora文件添加SQLNET.AUTHENTICATION_SERVICE=(NTS)

    只要在本地主机上运行sqlplus以数据库系统管理员登录都必须输入密码才可进入oracle数据库系统。 

Oracle9204 for RHAS3 的安装

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Explain the InnoDB Buffer Pool and its importance for performance.Explain the InnoDB Buffer Pool and its importance for performance.Apr 19, 2025 am 12:24 AM

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.

MySQL vs. Other Programming Languages: A ComparisonMySQL vs. Other Programming Languages: A ComparisonApr 19, 2025 am 12:22 AM

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.

Learning MySQL: A Step-by-Step Guide for New UsersLearning MySQL: A Step-by-Step Guide for New UsersApr 19, 2025 am 12:19 AM

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: Essential Skills for Beginners to MasterMySQL: Essential Skills for Beginners to MasterApr 18, 2025 am 12:24 AM

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: Structured Data and Relational DatabasesMySQL: Structured Data and Relational DatabasesApr 18, 2025 am 12:22 AM

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: Key Features and Capabilities ExplainedMySQL: Key Features and Capabilities ExplainedApr 18, 2025 am 12:17 AM

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.

The Purpose of SQL: Interacting with MySQL DatabasesThe Purpose of SQL: Interacting with MySQL DatabasesApr 18, 2025 am 12:12 AM

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.

MySQL for Beginners: Getting Started with Database ManagementMySQL for Beginners: Getting Started with Database ManagementApr 18, 2025 am 12:10 AM

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

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SecLists

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

SublimeText3 Mac version

God-level code editing software (SublimeText3)