Solaris 10 x86 安装 Oracle 10gR2!

solaris的安装参考:http://xiaoduan.blog.51cto.com/502137/126301

查看solaris版本信息:
-bash-3.2# cat /etc/release 
                    Oracle Solaris 10 8/11 s10x_u10wos_17b X86
  Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
                            Assembled 23 August 2011
修改字符界面:
# /usr/dt/bin/dtconfig -d
done 
desktop auto-start disabled.
启动root用户ssh:
# vi /etc/ssh/sshd_config
PermitRootLogin yes
# svcadm restart ssh
修改shell:
# echo $SHELL
/sbin/sh
# which bash
/usr/bin/bash
# ls -l /sbin/sh 
-r-xr-xr-x   1 root     root       82456 Sep 22  2010 /sbin/sh
# vi /etc/passwd
root:x:0:0:Super-User:/:/usr/bin/bash
关闭sendmail:
# svcadm disable sendmail
--------------------------------------------------------
一、以root执行下面的操作:
--------------------------------------------------------
1.检查安装包
-bash-3.2# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt SUNWsprot
system      SUNWarc   Lint Libraries (usr)
system      SUNWbtool CCS tools bundled with SunOS
system      SUNWhea   SunOS Header Files
system      SUNWi15cs X11 ISO8859-15 Codeset Support
system      SUNWi1cs  X11 ISO8859-1 Codeset Support
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
system      SUNWsprot Solaris Bundled tools
安装一个包:
-bash-3.2# pkginfo -i SUNWi5cs
    错误: 未发现"SUNWi5cs"的信息
-bash-3.2# pkgadd -d /cdrom/cdrom0/Solaris_10/Product SUNWi5cs
...
安装<SUNWi5cs>成功
-bash-3.2# pkginfo -i SUNWi5cs
system      SUNWi5cs X11 ISO8859-5 Codeset Support
2.# vi /etc/system 
set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set rlim_fd_max=65536
set rlim_fd_cur=65536
然后:# /usr/sbin/reboot
3.创建用户
-bash-3.2# mkdir -p /u01/app/oracle/product/10g/db_1
-bash-3.2# groupadd oinstall
-bash-3.2# groupadd dba
-bash-3.2# useradd -g oinstall -G dba -s /usr/bin/bash -d /u01/app/oracle oracle
-bash-3.2# passwd oracle
-bash-3.2# chown -R oracle:oinstall /u01
-bash-3.2# chmod -R 755 /u01
4.设置Oracle用户环境变量
$vi .bash_profile
export ORACLE_SID=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10g/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=.:$PATH:$HOME/bin:$ORACLE_HOME/bin
export NLS_LANG='SIMPLIFIED CHINESE_CHINA.ZHS16GBK'
umask 022
stty erase ^h
export DISPLAY=10.10.10.6:0.0;
--------------------------------------------------------
二、以oracle执行下面的操作:
--------------------------------------------------------
1. 安装软件。
2. 升级。
3. netca 配置监听器。
4. dbca 创建数据库。

你可能感兴趣的:(Math,oracle,Solaris,System,library,X86)