在CentOS4.3(x86_64)上安装Oracle9204 for linux(x86_64)

Author:        blue_stone@CU

E-mail:        blue_stone@xinhuanet.com

Host OS:     Debian Gnu/Linux sid(32bit)

Host CPU:     AMD Athlon(tm) 64 Processor 3000+

VMWare:        VMWare Server 1.0.0 build-28343

Guest OS:    CentOS4.3(x86_64)

Oracle:        Oracle9204 for linux(x86_64)

建立虚拟机的过程选择"Custom"方式创建, Guest OS选择"Red Hat Enterprise Linux 4 64-bit", 名称选centos, 内存设置为520m, 虚拟机磁盘大小为8G, 不选择" Allocate all disk space now", 将光驱设置为下载到的镜像文件CentOS-4.3-x86_64-binDVD/CentOS-4.3-x86_64-binDVD.iso, 启动虚拟机. 开始Linux安装过程.

安装类型选择Custom方式进行安装, 设置主机名称为centos.blueice.com ip 10.1.0.35/24 gw:10.1.0.1 dns:202.106.0.20

不设置防火墙, 禁止使用SELinux. 语言选择中增加中文支持.  时区选择Asia/Shanghai. Package Group中增加选择了Development中的6个软件包组.

安装完成后, 为虚拟机增加一块8G的虚拟硬盘, 建立一个分区, 格式化为ext3, 挂载在/u01上.

[root@centos ~]# fdisk -l

Disk /dev/sda: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          13      104391   83  Linux

/dev/sda2              14        1044     8281507+  8e  Linux LVM

Disk /dev/sdb: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

[root@centos ~]# fdisk /dev/sdb

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that, of course, the previous

content won't be recoverable.

The number of cylinders for this disk is set to 1044.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n

Command action

e   extended

p   primary partition (1-4)

p

Partition number (1-4):

Value out of range.

Partition number (1-4): 1

First cylinder (1-1044, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044):

Using default value 1044

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

[root@centos ~]# mkdir /u01

[root@centos ~]# mkfs.ext3 /dev/sdb1

mke2fs 1.35 (28-Feb-2004)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

1048576 inodes, 2096474 blocks

104823 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=2147483648

64 block groups

32768 blocks per group, 32768 fragments per group

16384 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done

Creating journal (8192 blocks): done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 39 mounts or

180 days, whichever comes first.  Use tune2fs -c or -i to override.

[root@centos ~]# vi /etc/fstab

[root@centos ~]# more /etc/fstab

# This file is edited by fstab-sync - see 'man fstab-sync' for details

/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1

LABEL=/boot             /boot                   ext3    defaults        1 2

none                    /dev/pts                devpts  gid=5,mode=620  0 0

none                    /dev/shm                tmpfs   defaults        0 0

none                    /proc                   proc    defaults        0 0

none                    /sys                    sysfs   defaults        0 0

/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

/dev/hdc                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0

/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0

/dev/sdb1               /u01                    ext3    defaults        1 1

检查内存, 要求大于512m

[root@centos ~]# grep MemTotal /proc/meminfo

MemTotal:       517008 kB

检查swap空间, 要求大于1G

[root@centos ~]#  grep SwapTotal /proc/meminfo

SwapTotal:     1048568 kB

检查剩余磁盘空间, /tmp要求大于400m, 安装oracle分区空间不小于3G

[root@centos ~]# df -k

Filesystem           1K-blocks      Used Available Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

7063480   4397660   2307012  66% /

/dev/sda1               101086     10182     85685  11% /boot

none                    258504         0    258504   0% /dev/shm

/dev/sdb1              8254240     51228   7783720   1% /u01

检查cpu是否支持x86_64.

[root@centos ~]# grep "model name" /proc/cpuinfo

model name      : AMD Athlon(tm) 64 Processor 3000+

检查需要的软件包, 由于安装中我们选择了Development中的6个包组, 所以不需要安装额外的包, 关于软件包的具体需求, 请参考后面参考资料部分. 下面是软件包的检查过程.

[root@rhel4 ~]# rpm -qa |grep glibc

glibc-devel-2.3.4-2.19

glibc-kernheaders-2.4-9.1.98.EL

compat-glibc-headers-2.3.2-95.30

glibc-2.3.4-2.19

glibc-headers-2.3.4-2.19

compat-glibc-2.3.2-95.30

glibc-2.3.4-2.19

glibc-devel-2.3.4-2.19

glibc-common-2.3.4-2.19

[root@rhel4 ~]# rpm -qa |grep gcc

libgcc-3.4.5-2

compat-gcc-32-3.2.3-47.3

gcc-c++-3.4.5-2

compat-gcc-32-c++-3.2.3-47.3

libgcc-3.4.5-2

gcc-g77-3.4.5-2

gcc-java-3.4.5-2

compat-libgcc-296-2.96-132.7.2

gcc-3.4.5-2

[root@rhel4 ~]# rpm -qa |grep libstdc++

compat-libstdc++-296-2.96-132.7.2

compat-libstdc++-33-3.2.3-47.3

libstdc++-3.4.5-2

libstdc++-devel-3.4.5-2

libstdc++-3.4.5-2

compat-libstdc++-33-3.2.3-47.3

[root@rhel4 ~]# rpm -qa |grep make

automake16-1.6.3-5

automake17-1.7.9-5

automake14-1.4p6-12

automake-1.9.2-3

make-3.80-5

automake15-1.5-13

[root@rhel4 ~]# rpm -qa |grep gnome-libs

gnome-libs-1.4.1.2.90-44.1

[root@rhel4 ~]# rpm -qa |grep ORBit

ORBit2-2.12.0-3

ORBit2-2.12.0-3

ORBit-0.5.17-14

ORBit2-devel-2.12.0-3

[root@rhel4 ~]# rpm -qa |grep audiofile

audiofile-0.2.6-1

audiofile-0.2.6-1

audiofile-devel-0.2.6-1

[root@rhel4 ~]#

[root@rhel4 ~]# rpm -qa |grep esound

esound-0.2.35-2

esound-0.2.35-2

esound-devel-0.2.35-2

[root@rhel4 ~]# rpm -qa |grep gtk+

gtk+-1.2.10-33.centos4

gtk+-1.2.10-33

[root@rhel4 ~]# rpm -qa |grep imlib

imlib-1.9.13-23

imlib-1.9.13-23

[root@rhel4 ~]# rpm -qa |grep libpng

libpng-1.2.7-1.el4.2

libpng10-1.0.16-1

libpng-1.2.7-1.el4.2

libpng-devel-1.2.7-1.el4.2

libpng10-devel-1.0.16-1

libpng10-1.0.16-1

[root@rhel4 ~]# rpm -qa |grep libungif

libungif-4.1.3-1.el4.2

libungif-devel-4.1.3-1.el4.2

libungif-4.1.3-1.el4.2

[root@rhel4 ~]# rpm -qa |grep tcp_wra

tcp_wrappers-7.6-37.2

tcp_wrappers-7.6-37.2

[root@rhel4 ~]# rpm -qa |grep setarch

setarch-1.6-1

[root@rhel4 ~]# rpm -qa |grep libaio

libaio-0.3.105-2

设置编译器, oracle需要使用gcc3.2

[root@centos ~]# cd /usr/bin

[root@centos bin]# ls -al |grep gcc

lrwxrwxrwx   1 root root          3 Jul 16 11:06 cc -> gcc

-rwxr-xr-x   2 root root     100064 Mar  9 05:18 gcc

-rwxr-xr-x   2 root root      90824 Feb 18  2005 gcc32

-rwxr-xr-x   2 root root     100064 Mar  9 05:18 x86_64-redhat-linux-gcc

-rwxr-xr-x   2 root root      90824 Feb 18  2005 x86_64-redhat-linux-gcc32

[root@centos bin]# mv gcc gcc.old

[root@centos bin]# ln -s gcc32 gcc

[root@centos bin]# gcc -v

Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/specs

Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++ --disable-libgcj --host=x86_64-redhat-linux

Thread model: posix

gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47.3)

[root@centos bin]# mv g++ g++.old

[root@centos bin]# ln -s g++32 g++

[root@centos bin]# g++ -v

Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/specs

Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++ --disable-libgcj --host=x86_64-redhat-linux

Thread model: posix

gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47.3)

设置系统变量, 在/etc/sysctl.conf中添加如下内容, 并运行sysctl -p

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

在/etc/security/limits.conf中添加如下内容

*               soft     nproc     2047

*               hard     nproc     16384

*               soft     nofile    1024

*               hard     nofile    65536

在/etc/pam.d/login中添加如下内容

session     required     /lib/security/pam_limits.so

建立Oracle用户.

[root@centos ~]# groupadd oinstall

[root@centos ~]# groupadd dba

[root@centos ~]# useradd oracle -g oinstall -G dba,oinstall

[root@centos ~]# id oracle

uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)

[root@centos ~]# passwd oracle

Changing password for user oracle.

New UNIX password:

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

设置oracle用户环境变量文件~/.bash_profile, 增加如下内容

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/9.2.0

export ORACLE_SID=orcl

export PATH=$PATH:$ORACLE_HOME/bin

export LD_ASSUME_KERNEL=2.4.19

建立oracle安装目录

[root@centos ~]# mkdir -p /u01/app/oracle

[root@centos ~]# chown -R oracle:oinstall /u01/app/oracle

以图形用户界面登入操作系统, 开始Oracle安装.

选择产品时, 增加了对简体中文的支持.

安装时选择以后创建数据库.

安装完毕后发现没有企业管理器, 秀一下安装完毕后的sqlplus

[oracle@centos ~]$ sqlplus /nolog

SQL*Plus: Release 9.2.0.4.0 - Production on Sun Jul 16 12:28:24 2006

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

SQL> conn / as sysdba

Connected.

SQL> select * from v$version;

BANNER

----------------------------------------------------------------

Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production

PL/SQL Release 9.2.0.4.0 - Production

CORE    9.2.0.3.0       Production

TNS for Linux: Version 9.2.0.4.0 - Production

NLSRTL Version 9.2.0.4.0 - Production

SQL> col parameter for a40

SQL> col value for a20

SQL> select * from v$option;

PARAMETER                                VALUE

---------------------------------------- --------------------

Partitioning                             TRUE

Objects                                  TRUE

Real Application Clusters                FALSE

Advanced replication                     TRUE

Bit-mapped indexes                       TRUE

Connection multiplexing                  TRUE

Connection pooling                       TRUE

Database queuing                         TRUE

Incremental backup and recovery          TRUE

Instead-of triggers                      TRUE

Parallel backup and recovery             TRUE

PARAMETER                                VALUE

---------------------------------------- --------------------

Parallel execution                       TRUE

Parallel load                            TRUE

Point-in-time tablespace recovery        TRUE

Fine-grained access control              TRUE

Proxy authentication/authorization       TRUE

Change Data Capture                      TRUE

Plan Stability                           TRUE

Online Index Build                       TRUE

Coalesce Index                           TRUE

Managed Standby                          TRUE

Materialized view rewrite                TRUE

PARAMETER                                VALUE

---------------------------------------- --------------------

Materialized view warehouse refresh      TRUE

Database resource manager                TRUE

Spatial                                  TRUE

Visual Information Retrieval             TRUE

Export transportable tablespaces         TRUE

Transparent Application Failover         TRUE

Fast-Start Fault Recovery                TRUE

Sample Scan                              TRUE

Duplexed backups                         TRUE

Java                                     TRUE

OLAP Window Functions                    TRUE

PARAMETER                                VALUE

---------------------------------------- --------------------

Block Media Recovery                     TRUE

Fine-grained Auditing                    TRUE

Application Role                         TRUE

Enterprise User Security                 TRUE

Oracle Data Guard                        TRUE

Oracle Label Security                    FALSE

OLAP                                     TRUE

Heap segment compression                 TRUE

Join index                               TRUE

Trial Recovery                           TRUE

Oracle Data Mining                       TRUE

PARAMETER                                VALUE

---------------------------------------- --------------------

Online Redefinition                      TRUE

Streams                                  TRUE

File Mapping                             TRUE

47 rows selected.

SQL> exit

Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production

With the Partitioning, OLAP and Oracle Data Mining options

JServer Release 9.2.0.4.0 - Production

linux下oracle 9204 soft only,在CentOS4.3(x86_64)上安装Oracle9204 for linux(x86_64)相关推荐

  1. linux下oracle 9204 soft only,linux 下oracle 9i的安装

    首先,准备安装需要的软件包和补丁包: 从网上下载升级补丁包,用于将Oracle9.2.0升级到9.2.0.4: p3006854_9204_LINUX.zip 所有的补丁说明如下: p3095277_ ...

  2. linux下oracle安装

    本文主要介绍linux下oracle的安装,主要分为3部分:准本工作.安装oracle软件.用dbca工具创建数据库. 实验环境:rhel5.6+oracle_database_linux32.zip ...

  3. linux下Oracle 10g安装(超级详细图解教程)

    linux下Oracle 10g安装(超级详细图解教程) 一,基本配置: 1.以root登录,挂载linux iso文件 [root@oracle ~]# hostnameoracle.junjie. ...

  4. linux设置定时备份任务,Linux下Oracle设置定时任务备份数据库的教程

    1.查看数据库的字符集 数据库的字符集必须和linux下设置的环境变量一致,不然会有乱码. 以下两个sql语句都可以查到: select * from nls_database_parameters ...

  5. linux oracle 用户创建,LINUX下Oracle数据库用户创建方法详解

    本文实例分析了LINUX下Oracle数据库用户创建方法.分享给大家供大家参考,具体如下: 1)登录linux,以oracle用户登录(如果是root用户登录的,登录后用 su - oracle命令切 ...

  6. 【转】Linux下Oracle sqlplus无法使用命令退格删除和历史记录的解决方法(使用rlwrap)...

    文章转自:http://www.ha97.com/4856.html 作者: 谋万世全局者 PS:近来因工作需要业余在学习oracle,发现通过SecureCRT或putty等SSH客户端远程登录Li ...

  7. Linux下oracle 9i图文安装二

    接上期的Linux下oracle 9i图文安装一([url]http://waringid.blog.51cto.com/65148/47655[/url]),下面进行Oracle安装前期准备中的第一 ...

  8. 配置linux下oracle sqlplus/rman等历史记录回调功能

    配置linux下oracle sqlplus/rman等历史记录回调功能 ############################################################ # ...

  9. linux下oracle数据库服务和监听的启动停止

    oracle数据库是重量级的,其管理非常复杂,将其在linux平台上的启动和关闭步骤整理一下. 安装完毕oracle以后,需要创建oracle系统用户,并在/home/oracle下面的.bash_p ...

  10. oracle定时任务可以备份么,Linux下Oracle设置定时任务备份数据库的教程

    1.查看数据库的字符集 数据库的字符集必须和Linux下设置的环境变量一致,不然会有乱码. 以下两个sql语句都可以查到: select * from nls_database_parameters ...

最新文章

  1. IOS开发笔记7-C语言基础复习
  2. python——动态的增加实例方法、类方法、静态方法
  3. 不合法的媒体文件 id_注意!伦敦男孩、DKNY、Coach、地素... 这些品牌的服装,抽检不合格...
  4. element UI 制作带快捷选项的时间选择器
  5. VC中新建的类不见了的解决方法
  6. 高阶函数 - 函数节流
  7. PTA-7-5 打印杨辉三角 (20分)(C语言)
  8. 在c 语言中 一个函数由函数头和,C语言程序设计基础教程_习题答案
  9. 西南石油大学计算机科学学院教授,张小洪(计算机科学学院)老师 - 西南石油大学 - 院校大全...
  10. 数据库开发这点事 中文PDF下载
  11. 三维家可以导入别人的方案吗_三维家精准赋能月兔家居打通前后端一体化,以时间匠空间!...
  12. RIP路由六大防环机制
  13. Cocos2D-X笔记(1)制作一个动态的精灵
  14. Linux如何增加SSH端口号
  15. virtualbox网络配置
  16. 如何更换您的Gmail地址
  17. MatalbSimulink Control Tutorials笔记4-根轨迹设计控制器
  18. java win7 管理员权限_Win7系统如何一键取得管理员权限
  19. 用Bittorrent和PHP搭建BT Tracker服务器和发布页
  20. 帅初的“罗生门”漩涡

热门文章

  1. 全国计算机等级一级(选择题的)的练习,附加答案
  2. 李笑来深夜宣布不做个人投资,背后有何深意?
  3. Excel:用VBA添加分页符
  4. (KNN)K-近邻算法介绍和 Facebook签到位置预测案例应用
  5. 原创Maya mel系列插件推荐
  6. 嵌入式单片机基础篇(十九)之一般TFTLCD 模块的使用流程
  7. 计算机round是什么函数,round函数怎么用例子
  8. 周礼键君:《建郡八音》(拼音方案---只有四调,以近音调注)
  9. 解决......lib/include/THC/THCGeneral.h:12:18: fatal error: cuda.h: No such file or directory报错问题
  10. openstack镜像格式转换