ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Solaris上安装Oracle

Solaris上安装Oracle

原创 Linux操作系统 作者:hjianping 时间:2011-04-24 12:34:48 0 删除 编辑

1、查看Solaris版本
# uname -a


2、安装必需的软件包
# pkginfo -i pkg_name   查看软件包
# pkgadd -d path_name pkg_name  安装软件包
# pkgrm pkg_name   删除软件包

# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
# pkgadd -d /cdrom/sol_10_1009_x86/Solaris_10/Product SUNWgcc


3、检查网络配置
# cat /etc/hosts
=================================
::1     localhost      
127.0.0.1       localhost      
192.168.10.120  huang   loghost
=================================


4、创建相关目录及用户
mkdir -p /export/home/u01/oracle
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba -s /usr/bin/bash -d /export/home/u01/oracle oracle
passwd oracle
chown -R oracle:oinstall /export/home/u01


5、设置oracle用户的环境变量
vi .bash_profile
=======================================================
ORACLE_SID=orasun
ORACLE_BASE=/export/home/u01
ORACLE_HOME=/export/home/u01/oracle
PATH=$ORACLE_HOME/bin:$PATH
ORACLE_HOSTNAME=huang

DISPLAY=192.168.10.1:0.0
PS1="[\u@\h]$ "
stty erase ^h

export ORACLE_SID ORACLE_BASE ORACLE_HOME PATH ORACLE_HOSTNAME
export PS1 DISPLAY
=======================================================
env | grep ORA


6、修改内核参数
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
==============================================
reboot


7、安装Oracle

关于xshell
使用xmanager以root用户进入系统
# su - oracle
$ DISPLAYexport DISPLAY=本地IP:0.0
$ dbca
$ netca

 

$ cat listener.ora
# listener.ora Network Configuration File: /export/home/u01/oracle/network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /export/home/u01/oracle)
      (PROGRAM = extproc)
    )
    (SID_DESC =
        (GLOBAL_DBNAME = orasun)
        (ORACLE_HOME = /export/home/u01/oracle)  
        (SID_NAME = orasun)
     )
    
    (SID_DESC =
        (GLOBAL_DBNAME = +ASM)
        (ORACLE_HOME = /export/home/u01/oracle)  
        (SID_NAME = +ASM)
     )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = huang)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17012874/viewspace-693282/,如需转载,请注明出处,否则将追究法律责任。

下一篇: 双实例监听设置
请登录后发表评论 登录
全部评论

注册时间:2011-04-24

  • 博文量
    80
  • 访问量
    72795