Linux Oracle 10g软件安装数据库

运维 系统运维
Linux Oracle 10g软件还需要 2.5GB 的可用磁盘空间,而数据库则另需 1.2GB 的可用磁盘空间。/tmp 目录至少需要 400MB 的可用空间。要检查系统上的可用磁盘空间,运行以下命令.

给大家推荐一款很不错的Linux Oracle 10g系统很有学习价值,这里我主要讲解Linux Oracle 10g系统的应用,包括介绍Linux Oracle 10g知识等方面。在Fedora 10上安装Linux Oracle 10g(10.2.0)默认的系统参数下,在Fedora 10上无法安装Linux Oracle 10g,需要进行下列若干处理:

1. 验证系统要求
要验证系统是否满足 Linux Oracle 10g数据库的***要求,以 root 用户身份登录并运行以下命令。
要查看可用 RAM 和交换空间大小,运行以下命令:
# grep MemTotal /proc/meminfo
MemTotal:512236 kB
# grep SwapTotal /proc/meminfo
SwapTotal:1574360 kB

所需最小 RAM 为 512MB,而所需最小交换空间为 1GB。对于 RAM 小于或等于 2GB 的系统,交换空间应为 RAM 数量的两倍;对于 RAM 大于 2GB 的系统,交换空间应为 RAM 数量的一到两倍。 Linux Oracle 10g软件还需要 2.5GB 的可用磁盘空间,而数据库则另需 1.2GB 的可用磁盘空间。/tmp 目录至少需要 400MB 的可用空间。要检查系统上的可用磁盘空间,运行以下命令:
# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/sda36.8G  1.3G  5.2G  20% /
/dev/sda199M17M77M  18% /boot
该示例表明,/tmp 目录没有自己的文件系统。(对本指南而言,它是根文件系统的一部分。)

2. 修改系统内核参数。加以下的内容到文件/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
注意:如意设置错误安装过程中会出现错误提示,按提示修改即可!
  
3. 加入下面的内容到/etc/security/limits.conf
* soft nproc 2047
* hard nproc 16384
* soft nofile  1024
* soft nofile 65536
  
4. 加下面一行到/etc/pam.d/login
session required /lib/security/pam_limits.so
  
5. 屏蔽SELINUX在/etc/selinux/config中
SELINUX=disabled
  
6. 安装以下文件包
yum -y install libXp libaio libxcb
yum -y install compat-libstdc++* compat-libf2c* compat-gcc* compat-libgcc*
注意:如果不安装这些包,In the process of instllation将会显示错误信息: check failed <<<< 
"/tmp/OraInstall2005-07-07_09-40-4***M/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred.."
you can fix these problems by yum install or google
注意:DHCP is not work, choose static network configuration, copy the dhcp 'ifconfig -a' information and set the static configuration by hand
  
7. 建立用户和组
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -m -g oinstall -G dba oracle
# passwd oracle
# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)

8. 建立目录并赋权给用户Linux Oracle 10g
# mkdir -p /u01/app/oracle
# mkdir -p /u02/oradata
# chown -R oracle:oinstall /u01/app/oracle /u02/oradata
# chmod -R 775 /u01/app/oracle /u02/oradata

9. 修改文件/etc/redhat-rlease
redhat-4  #因为Linux Oracle 10g安装时会检测系统版本,fedora未列在内

10. 使用 Linux Oracle 10g帐户登录。 设置环境变量:
# su oracle
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_SID=demo1; export ORACLE_SID

11. 拷贝Linux Oracle 10g安装文件到/home/oracle下,解压缩
unzip 10201_database_linux32.zip -d /opt/

12. 重新启动电脑,运行以下命令(本地安装不需要此步骤)
xhost +

13. 开始安装Linux Oracle 10g
./runInstaller
基本字符集选AL32UTF8, NATIONAL CHARACTER SET 选Al16UTF16  (安装后em没有乱码)
archive mode 勾选
注意在安装过程中会要求执行两个script,orainstRoot.sh 和root.sh
The following J2EE Applications have been deployed and are accessible at the URLs listed below.
iSQL*Plus URL:
http://zxd.oracle.org:5561/isqlplus
iSQL*Plus DBA URL:
http://zxd.oracle.org:5561/isqlplus/dba
Enterprise Manager 10g Database Control URL:
http://zxd.oracle.org:1158/em

【编辑推荐】

  1. Linux Oracle可以装在WMware虚拟机上
  2. Linux SVN安装所需创建的文件夹
  3. 利用本地Linux iso镜像进行相应的操作
  4. Linux WAS安装与准备环境
  5. Linux yum强大的基本操作
责任编辑:佚名 来源: CSDN
相关推荐

2009-11-19 15:57:34

Oracle 10g数

2011-05-13 11:21:51

linuxoracle 10g安装

2010-09-17 09:39:31

Oracle 10g

2011-03-29 09:56:48

Oracle数据库10SQL

2011-08-09 18:15:24

Oracle 10g查找数据

2011-03-29 10:09:41

Oracle 10g虚拟数据库

2010-02-22 14:03:59

2010-04-16 15:57:54

Oracle 10g

2010-04-12 13:34:42

Oracle 10g

2011-07-19 13:28:31

Oracle 10g

2010-05-05 15:58:34

Oracle 10g

2011-08-09 13:14:37

Oracle 10g数据库闪回

2010-04-15 14:53:55

Oracle 10g

2010-04-13 10:07:19

Oracle 10G

2009-09-07 09:03:47

VMWare安装Ora

2010-05-05 15:52:36

Oracle 10G

2009-01-20 23:13:24

Oracle 10G数据库

2011-08-30 15:57:15

Oracle 10gUNDO_RETENT

2010-04-14 16:09:51

Oracle 10g归

2010-04-09 15:59:24

Oracle 10g
点赞
收藏

51CTO技术栈公众号