Home  >  Article  >  Database  >  Solaris10上安装64位Oracle9201

Solaris10上安装64位Oracle9201

WBOY
WBOYOriginal
2016-06-07 16:51:36877browse

由于Solaris10系统是第一次使用,首先怀疑到操作系统对数据库支持有问题。不过一般情况下,出错都发生在安装过程中,数据库建

  根据Oracle官方文档的步骤进行安装,首先是对Solaris10上系统需求的检查:

# /usr/sbin/prtconf | grep "Memory size"
Memory size: 16384 Megabytes
# /usr/sbin/swap -l
swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 118,9 16 36877808 36877808
# df -k /ora9i
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t1d0s0 140788090 65553 139314657 1% /ora9i

  内存必须大于512M,SWAP的大小应该大于1G或者内存的大小,对于一个数据库来说,,磁盘空间应该不是问题的。

  下面是检查操作系统的情况:

# uname -a
SunOS ttsola10 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V490

  检查系统包和字体包的安装情况:

# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWxwfnt
system SUNWarc Lint Libraries (usr)
system SUNWbtool CCS tools bundled with SunOS
system SUNWhea SunOS Header Files
system SUNWi1of ISO-8859-1 (Latin-1) Optional Fonts
system SUNWlibm Math & Microtasking Library Headers & Lint Files (Usr)
system SUNWlibms Math & Microtasking Libraries (Usr)
system SUNWsprot Solaris Bundled tools
system SUNWtoo Programming Tools
system SUNWxwfnt X Window System platform required fonts

  最后检查JRE所需版本,最新版本要求是1.1.8

# java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode)

  满足安装Oracle的最小要求后,就可以使用root用户来设置系统参数并创建Oracle用户了。

  在/etc/system文件后面添加下面内容:

set shmsys:shminfo_shmmax=8589934592
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmni=100
set semsys:seminfo_semmsl=256
set semsys:seminfo_semmns=1024

  这是对系统内存参数的调整,修改完毕后重新操作系统。

# groupadd dba
# groupadd oinstall
# mkdir /export/home/oracle
# useradd -g oinstall -G dba -d /export/home/oracle oracle
# passwd oracle

  建立组和用户后,为oracle设置安装软件的路径和权限:

# chown -R oracle:oinstall /export/home/oracle
# chown -R oracle:oinstall /ora9i

  下面root用户的工作结束,切换到oracle用户:

# su - oracle
$ vi .profile

  编辑.prifle文件,添加下列内容:

ORACLE_SID=test
export ORACLE_SID
ORACLE_BASE=/ora9i/oracle/ora92
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/9.2
export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/openwin/bin
export PATH
NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
export NLS_LANG
DISPLAY=172.25.6.201:1.0
export DISPLAY

linux

Statement:
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