Home Database Mysql Tutorial Oracle 11gR2在Oracle Linux 6.0下的安装

Oracle 11gR2在Oracle Linux 6.0下的安装

Jun 07, 2016 pm 05:16 PM

Oracle 11gR2在Oracle Linux 6.0下的安装(也适合其他redhat系发行linux版本),其实和在redhat linux,cent os下的安装没有什么大的

Oracle 11gR2在Oracle Linux 6.0下的安装(也适合其他RedHat系发行linux版本),其实和在redhat linux,cent os
下的安装没有什么大的区别,毕竟这3个linux发行版本,更多的差异是log不同。
这份文档是本人在Oracle Linux 6.0下安装完oracle11gR2后的回顾,其中有些安装细节没有提及。
#代表root用户,需要以root用户执行其中的命令。
$代表oracle用户,,需要以oracle用户执行其中的命令.
注:安装过程都是在oracle用户终端下重现的,所以本人直接把[oracle@linuxidc ~]$中的提示符改成#了。
还望见谅。
另外Xwindow一直可用。
官方安装文档参考:
内存需求:
官方的说明是:至少1GB的物理内存,建议是2GB或以上
[oracle@linuxidc ~]# grep MemTotal /proc/meminfo   //查看内存大小
MemTotal:        1031372 kB
注:在先决条件检查的时候,如果内存项目(或者虚拟内存项目)faild可以勾选ignore all,
也是可以顺利安装的。
[oracle@linuxidc ~]# grep SwapTotal /proc/meminfo   //查看虚拟内存大小
SwapTotal:       3481592 kB
RAM与SWAP空间的对应关系:
Available RAM               Swap Space Required
Between 1 GB and 2 GB       1.5 times the size of the RAM
Between 2 GB and 16 GB     Equal to the size of the RAM
More than 16 GB             16 GB
[oracle@linuxidc ~]# uname -m      //查看处理器类型
i686
[oracle@linuxidc ~]# df -m /dev/shm  //查看可用的共享内存
Filesystem           1M-blocks      Used Available Use% Mounted on
tmpfs                      504         1       504   1% /dev/shm
如果创建数据库的时候把内存管理设置为自动管理(AMM),memory_max_target,memory_target
必须小于上面的值。当然手动管理的时候分配的内存也必须在上述的共享内存范围内。
磁盘需求:
[oracle@linuxidc ~]# df -h /tmp   //查看可用的/tmp空间
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              17G   12G  3.8G  76% /
临时目录的空间应该不小于1GB,如果没有1GB可以考虑删除临时目录中的文件,或者设置oracle用户
的TMP,TMPDIR环境变量。
[oracle@linuxidc ~]# df -h  //查看磁盘的空闲空间
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              17G   12G  3.8G  76% /
tmpfs                 504M  260K  504M   1% /dev/shm
/dev/sda1             194M   24M  161M  13% /boot
下面给出了安装类型与对应的磁盘空间需求
Installation Type           Requirement for Software Files (GB)
Enterprise Edition         3.95
Standard Edition           3.88
Installation Type           Requirement for Data Files (GB)
Enterprise Edition         1.7
Standard Edition           1.5
空闲空间应该大于6GB,用于存放软件与数据文件。
操作系统版本检查:
Asianux Server 3 SP2
Oracle Linux 4 Update 7
Oracle Linux 5 Update 2
Red Hat Enterprise Linux 4 Update 7
Red Hat Enterprise Linux 5 Update 2
SUSE Linux Enterprise Server 10 SP2
SUSE Linux Enterprise Server 11
待安装oracle11gR2的操作系统的版本是上述版本或者比上述版本后面的版本。
[oracle@linuxidc ~]# cat /proc/version
Linux version 2.6.32-71.el6.i686 (mockbuild@ca-build19.us.oracle.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Dec 15 09:50:18 EST 2010
内核版本检查:
For Oracle Linux 4 and Red Hat Enterprise Linux 4:
2.6.9 or later
For Asianux Server 3, Oracle Linux 5, and Red Hat Enterprise Linux 5:
2.6.18 or later
For SUSE Linux Enterprise Server 10:
2.6.16.21 or later
On SUSE Linux Enterprise Server 11:
[oracle@linuxidc ~]# uname -r    //查看操作系统的内核版本。
2.6.32-71.el6.i686
RPM包要求:
因为还oracle给出oracle linux 6.0下的包要求列表,我们以Oracle Linux 5的包要求会参考
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.5
glibc-headers-2.5
kernel-headers-2.6.18
ksh-20060214
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.2
libgomp-4.1.2
libstdc++-4.1.2
libstdc++-devel-4.1.2
make-3.81
sysstat-7.0.2
[oracle@linuxidc ~]# rpm -q sysstat
sysstat-9.0.4-11.el6.i686
使用上面的命令查询要求的RPM是否安装,每个没有查找linux镜像文件中的packages目录
找到相应的RPM包,也可以使用网络搜索下载。
安装的时候实际的包要求:
binutils-2.20.51.0.2-5.11.el6.i686
compat-libstdc++-33-3.2.3-69.el6.i686
elfutils-libelf-devel-0.148-1.el6.i686
gcc-4.4.4-13.el6.i686
gcc-c++-4.4.4-13.el6.i686
glibc-2.12-1.7.el6.i686
glibc-common-2.12-1.7.el6.i686
glibc-devel-2.12-1.7.el6.i686
glibc-headers-2.12-1.7.el6.i686
kernel-headers-2.6.32-71.el6.i686
ksh-20100621-2.el6.i686
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6.i686
libgcc-4.4.4-13.el6.i686
libgomp-4.4.4-13.el6.i686
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6.i686
pdksh-5.2.14-43.i386
sysstat-9.0.4-11.el6.i686
unixODBC-devel-2.2.14-11.el6.i686

linux

Statement of this Website
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

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

When might a full table scan be faster than using an index in MySQL? When might a full table scan be faster than using an index in MySQL? Apr 09, 2025 am 12:05 AM

Full table scanning may be faster in MySQL than using indexes. Specific cases include: 1) the data volume is small; 2) when the query returns a large amount of data; 3) when the index column is not highly selective; 4) when the complex query. By analyzing query plans, optimizing indexes, avoiding over-index and regularly maintaining tables, you can make the best choices in practical applications.

Explain InnoDB Full-Text Search capabilities. Explain InnoDB Full-Text Search capabilities. Apr 02, 2025 pm 06:09 PM

InnoDB's full-text search capabilities are very powerful, which can significantly improve database query efficiency and ability to process large amounts of text data. 1) InnoDB implements full-text search through inverted indexing, supporting basic and advanced search queries. 2) Use MATCH and AGAINST keywords to search, support Boolean mode and phrase search. 3) Optimization methods include using word segmentation technology, periodic rebuilding of indexes and adjusting cache size to improve performance and accuracy.

Can I install mysql on Windows 7 Can I install mysql on Windows 7 Apr 08, 2025 pm 03:21 PM

Yes, MySQL can be installed on Windows 7, and although Microsoft has stopped supporting Windows 7, MySQL is still compatible with it. However, the following points should be noted during the installation process: Download the MySQL installer for Windows. Select the appropriate version of MySQL (community or enterprise). Select the appropriate installation directory and character set during the installation process. Set the root user password and keep it properly. Connect to the database for testing. Note the compatibility and security issues on Windows 7, and it is recommended to upgrade to a supported operating system.

MySQL: Simple Concepts for Easy Learning MySQL: Simple Concepts for Easy Learning Apr 10, 2025 am 09:29 AM

MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

Difference between clustered index and non-clustered index (secondary index) in InnoDB. Difference between clustered index and non-clustered index (secondary index) in InnoDB. Apr 02, 2025 pm 06:25 PM

The difference between clustered index and non-clustered index is: 1. Clustered index stores data rows in the index structure, which is suitable for querying by primary key and range. 2. The non-clustered index stores index key values ​​and pointers to data rows, and is suitable for non-primary key column queries.

Can mysql and mariadb coexist Can mysql and mariadb coexist Apr 08, 2025 pm 02:27 PM

MySQL and MariaDB can coexist, but need to be configured with caution. The key is to allocate different port numbers and data directories to each database, and adjust parameters such as memory allocation and cache size. Connection pooling, application configuration, and version differences also need to be considered and need to be carefully tested and planned to avoid pitfalls. Running two databases simultaneously can cause performance problems in situations where resources are limited.

The relationship between mysql user and database The relationship between mysql user and database Apr 08, 2025 pm 07:15 PM

In MySQL database, the relationship between the user and the database is defined by permissions and tables. The user has a username and password to access the database. Permissions are granted through the GRANT command, while the table is created by the CREATE TABLE command. To establish a relationship between a user and a database, you need to create a database, create a user, and then grant permissions.

Explain different types of MySQL indexes (B-Tree, Hash, Full-text, Spatial). Explain different types of MySQL indexes (B-Tree, Hash, Full-text, Spatial). Apr 02, 2025 pm 07:05 PM

MySQL supports four index types: B-Tree, Hash, Full-text, and Spatial. 1.B-Tree index is suitable for equal value search, range query and sorting. 2. Hash index is suitable for equal value searches, but does not support range query and sorting. 3. Full-text index is used for full-text search and is suitable for processing large amounts of text data. 4. Spatial index is used for geospatial data query and is suitable for GIS applications.

See all articles