Linux Oracle 10g软件安装数据库


给大家推荐一款很不错的Linux Oracle 10g系统很有学习价值,这里我主要讲解Linux Oracle 10g系统的应用,包括介绍Linux Oracle 10g知识等方面。在Fedora 10上安装Linux Oracle 10g10.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-45AM/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强大的基本操作

相关内容

    暂无相关文章