电脑技术学习

在Solaris 10 ZFS上安装Oracle 9i

dn001

  step2. 创建oracle用户及dba组,设置基本的环境变量.

  # groupadd dba

  # useradd -d /opt/oracle -g dba -s /bin/sh -m oracle

  # passwd oracle

  # ORACLE_BASE=/opt/oracle; export ORACLE_BASE

  # ORACLE_HOME=$ORACLE_BASE/product/9.2; export ORACLE_HOME

  # ORACLE_SID=ora9; export ORACLE_SID

  # chown oracle:dba /dev/zvol/rdsk/ora_pool/*

  # chmod 600 /dev/zvol/rdsk/ora_pool/*

  step3. 基于项目管理方式,为oracle分配系统资源如最大共享内存、信号灯等.

  # projadd -U oracle -p 1233 -c "oracle parameters setting" user.oracle

  # projmod -a -K "project.max-shm-memory=(priv,17179869184,deny)" user.oracle (为物理内存的1/2,单位为字节)

  # projmod -a -K "project.max-sem-ids=(priv,2000,deny)" user.oracle

  # projmod -a -K "process.max-sem-nsems=(priv,2048,deny)" user.oracle

  # projmod -a -K "project.max-shm-ids=(priv,256,deny)" user.oracle

  step4. 安装Oracle程序(过程略).

  step5. 利用脚本方式创建新数据库.

  oracle> cat $ORACLE_BASE/admin/ora9/scripts/ora9.sh

  #!/bin/sh

  mkdir /opt/oracle/admin/ora9/bdump

  mkdir /opt/oracle/admin/ora9/cdump

  mkdir /opt/oracle/admin/ora9/create

  mkdir /opt/oracle/admin/ora9/pfile

  mkdir /opt/oracle/admin/ora9/udump

  mkdir /opt/oracle/oradata/ora9

  mkdir /opt/oracle/product/9.2/dbs

  export ORACLE_SID ora9

标签: