转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 数据库 >> 其他 >> 正文
Oracle9iInstallationonRedHatLinux         ★★★★

Oracle9iInstallationonRedHatLinux

作者:闵涛 文章来源:闵涛的学习笔记 点击数:1812 更新时间:2009/4/22 23:22:04

 

1, Uncompress and unpack downloaded files

 

One step procedure (uses less disk space and is faster):
  zcat lnx_920_disk1.cpio.gz | cpio -idmv

  zcat lnx_920_disk2.cpio.gz | cpio -idmv
  zcat lnx_920_disk3.cpio.gz | cpio -idmv

Two step procedure:
  # Uncompress
       gunzip lnx_920_disk1.cpio.gz lnx_920_disk2.cpio.gz lnx_920_disk3.cpio.gz   Linux9i_Disk3.cpio.gz  
  # Unpack the downloaded files:
 
  cpio -idmv < lnx_920_disk1.cpio 

  cpio -idmv < lnx_920_disk2.cpio 
  cpio -idmv < lnx_920_disk3.cpio

 

Now you should have 3 directories containing installation files:
Disk1

Disk2
Disk3

 

2, Swap space

In order to perform a typical Oracle 9i installation and to create a simple prototype database, Oracle says that you need a minimum of 512MB of RAM for the Oracle9i (9.0.1) Server, and the amount of disk space (swap space) should be equal to twice the amount of RAM or at least 400 MB, whichever is greater.

Check your memory by executing:
grep MemTotal /proc/meminfo

Check swap space by executing:
cat /proc/swaps  or  swapon –s

You can also add temporary swap space by creating a temporary swap file instead of using a raw device. Here is the procedure:

As root:
dd if=/dev/zero of=tmpswap bs=1k count=900000
chmod 600 tmpswap
mkswap tmpswap
swapon tmpswap

To disable the temporary swap space execute the following commands:

As root:
swapoff tmpswap
rm tmpswap

3, Shared Memory

I increased the shmmax setting for the kernel by executing the following command:

As root:
# cat /proc/sys/kernel/shmmax
33554432
# echo `expr 1024 \* 1024 \* 1024` > /proc/sys/kernel/shmmax

 

It is recommended to increase the shmmax setting permanently for Oracle. So if you want to increase the maximum shared memory size permanently, add the following line to the /etc/sysctl.conf file:
kernel.shmmax=1073741824

4/tmp Space

The Oracle Universal Installer requires up to 400 MB of free space in the /tmp directory. If you do not have enough space in the /tmp directory,  you can temporarily create a tmp directory in another filesystem. Here is how you can do this:

As root:
mkdir /<AnotherFilesystem>/tmp
chown root.root /<AnotherFilesystem>/tmp
chmod 1777 /<AnotherFilesystem>/tmp
export TEMP=/<AnotherFilesystem>/tmp      # used by Oracle
export TMPDIR=/<AnotherFilesystem>/tmp     # used by Linux programs like the linker "ld"
 
When you are done with your Oracle installation, shutdown Oracle and remove the temporary directory:
rmdir /<AnotherFilesystem>/tmp
unset TEMP
unset TMPDIR

5Oracle Disk Space

You will need about 2.5 GB for the database software. If you perform a typical database installation and not a customized database installation, then you will need about 3.5 GB of disk space.

6"binutils" Issue   (if you fond following error )

Q: "Error invoking target install of makefile /opt/oracle/product/9.0.1/plsql/lib/ins_plsql.mk" 

A: This obviates the need to change binutils

download the following binutil RPM version and downgrade binutil on the Oracle server:
ftp://ftp.redhat.com/pub/redhat/linux/7.0/en/os/i386/RedHat/RPMS/binutils-2.10.0.18-1.i386.rpm
As root:
rpm -Uvh --force --nodeps binutils-2.10.0.18-1.i386.rpm
When you are done with the Oracle installation, you upgrade your binutil RPM back to the version you had before you downgraded:
E.g. on a Red Hat 7.2 server:
rpm -Uvh --force --nodeps binutils-2.11.90.0.8-9.i386.rpm

7Development Packages (RPMs)

You will need the following RPM development packages for the Oracle installer to compile the Oracle modules etc.:
gcc
cpp
glibc-devel
compat-libstdc++
kernel-headers (on RH 7.1, 7.2, 2.1AS)
glibc-kernheaders (on RH 7.3, 8.0)
binutils

Otherwise you'll get an error message like:
Error in invoking target ntcontab.o of makefile /opt/oracle/product/9.2.0/network/lib/ins_net_client.mk

To find out if you have these development packages installed, execute the following command:
# rpm -q gcc cpp glibc-devel kernel-headers binutils

8JDK

I successfully installed Oracle9iR2 without installing JDK on the system.Oracle comes now with its own Java. This means that you don't have to follow these steps which were required for older Oracle versions:

    Download JDK 1.3.1 or Blackdown 1.1.8_v3: (I usually used Blackdown)
      http://www.blackdown.org
     
http://java.sun.com

    According to JDK documentation, install JDK under /usr/local .
       Then create a symbolic link to the JDK under /usr/local/java :

    As root:
    bzip2 -dc jdk118_v3-glibc-2.1.3.tar.bz2 | tar xf - -C /usr/local
    ln -s /usr/local/jdk118_v3 /usr/local/java

9Create Oracle User Accounts

As root:

groupadd dba
groupadd oinstall
useradd -g oinstall -G dba oracle
passwd oracle

Oinstall is not needed when the same people will be maintaining the software and the database.  In this situation, it will create more work and add an extra layer of complexity to the maintenance of the installation. 

Recommendation:  if you don't need the oinstall group for added security, 
just install usi

[1] [2] [3]  下一页


没有相关教程
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Sql Server  · MySql
    · Access  · ORACLE
    · SyBase  · 其他
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台