search
HomeDatabaseMysql TutorialCentOS5.4安装Oracle10g数据库总结

1:查看内存:grep MemTotal /proc/meminfo查看swap:grep SwapTotal /proc/meminfo2: 检查RPM包。Red Hat Enterprise Linux 4.0

1:查看内存:grep MemTotal /proc/meminfo

查看swap:grep SwapTotal /proc/meminfo

2: 检查RPM包。

Red Hat Enterprise Linux 4.0
 CentOS5.4
 
binutils-2.15.92.0.2-13.EL4
 binutils-2.17.50.0.6-6.el5
 
compat-db-4.1.25-9
 compat-db-4.2.52-5.1
 
compat-libstdc++-296-2.96-132.7.2
 compat-libstdc++-33-3.2.3-61
 
control-center-2.8.0-12
 control-center-2.16.0-16.el5
 
gcc-3.4.3-22.1.EL4
 gcc-4.1.2-42.el5
 
gcc-c++-3.4.3-22.1.EL44
 gcc-c++-4.1.2-42.el5
 
glibc-2.3.4-2.9
 glibc-2.5-24
 
glibc-common-2.3.4-2.9
 glibc-common-2.5-24
 
gnome-libs-1.4.1.2.90-44.1
 libgnome-2.16.0-6.el5
 
libstdc++-3.4.3-22.1
 libstdc++-4.1.2-42.el5
 
libstdc++-devel-3.4.3-22.1
 libstdc++-devel-4.1.2-42.el5
 
make-3.80-5
 make-3.81-3.el5
 
pdksh-5.2.14-30
 ksh-20060214-1.7
 
sysstat-5.0.5-1
 sysstat-7.0.2-1.el5
 
xscreensaver-4.18-5.rhel4.2
 gnome-screensaver-2.16.1-8.el5
 
setarch-1.6-1
 setarch-2.0-1.1
 

 libXp-1.0.0-8.1.el5
 


最主要的是 libXp-1.0.0-8.1.el5
 


如果他没有直接导致:


[Oracle@linux database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be RedHat-3, SUSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed


All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-11-18_10-08-45PM.
Please wait ...[oracle@linux database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError:
/tmp/OraInstall2010-11-18_10-08-45PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at sun.security.action.LoadLibraryAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
        at sun.awt.DebugHelper.(Unknown Source)
        at java.awt.Component.(Unknown Source)

这个问题找了很久,才找到。最后才是这个包没有安装。

 

创建组:

groupadd oinstall

groupadd dba

groupadd oper

添加用户:

useradd -g oinstall -G dba,oper oracle

设置密码:passwd oracle


将Oracle用户添加到oinstall组里面,他的两个辅助的组是dba,oper

在Oracle的home目录下面创建u01目录,然后改变u01的权限。

chown oracle:oinstall /home/u01

 

后面是Linux参数的配置:

 

/etc/sysctl.conf 文件

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144


/etc/security/limits.conf file:
oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile 1024


/etc/pam.d/login
session    required     pam_limits.so


/etc/profile
if [ $USER = "oracle" ]; then
        if [ $SHELL = "/bin/ksh" ]; then
              ulimit -p 16384
              ulimit -n 65536
        else
              ulimit -u 16384 -n 65536
        fi
fi


查看Shell:echo $shell

设置Oracle的环境变量:

su oracle

vi .bash_profile


ORACLE_BASE=/u01/oracle
ORACLE_SID=orcl
export ORACLE_BASE ORACLE_SID

ORACLE_HOME=$ORACLE_BASE/u01/oracle/product/10.2.0
PATH=$ORACLE_HOME/bin:$PATH

unset=ORACLE_HOME
unset=TNS_NAME


查看环境是否生效:env | grep ORA


所有工作配置完了后到图形界面上面安装:

进入database目录,运行里面的runInstaller

命令:./runInstaller

后面跟windows上面安装的差不多。。。

不过有个地方不同,,在安装数据库软件后,会叫你去运行两个脚本。


/home/oracle/u01/oraInventory/orainstRoot.sh

/home/oracle/u01/oracle/product/10.2.0/db_1

这里直接按enter键即可。

linux

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
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

MySQL's Role: Databases in Web ApplicationsMySQL's Role: Databases in Web ApplicationsApr 17, 2025 am 12:23 AM

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.

MySQL: Building Your First DatabaseMySQL: Building Your First DatabaseApr 17, 2025 am 12:22 AM

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: A Beginner-Friendly Approach to Data StorageMySQL: A Beginner-Friendly Approach to Data StorageApr 17, 2025 am 12:21 AM

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.

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MinGW - Minimalist GNU for Windows

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.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

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)

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor