solaris下oracle的安装

环境:oracle10.2.0

sun890 solaris9 24Gmemory 挂8个盘emc

1 创建oracle用户,oinstall、dba组

2 etc/system中加入

set noexec_user_stack=1
set shmsys:shminfo_shmmax=12884901885
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmni=100
set semsys:seminfo_semmsl=1024
set semsys:seminfo_semmns=1024
set semsys:seminfo_semopm=100
set semsys:seminfo_semvmx=65534

Q:IPC Shared Memory module is not loaded

shm参数未被启用(sysdef | grep SHM)

A:

etc/system中加入:

forceload: sys/shmsys

3  oracle用户目录下.profile中

DISPLAY=10.103.10.90:0.0
ORACLE_BASE=/KKK/oracle/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib:/usr/local/lib:/usr/lib
CLASSPATH=$ORACLE_HOME/jlib
stty istrip
PATH=/usr/bin:/usr/ucb:/etc:.
ORACLE_SID=wzora
ORACLE_OWNER=oracle
PATH=$PATH:$ORACLE_HOME/bin:/bin:/usr/bin:/usr/ccs/bin:/usr/ucb:.
umask 022
export DISPLAY ORACLE_BASE ORACLE_HOME NLS_LANG ORA_NLS33 LD_LIBRARY_PATH
export CLASSPATH ORACLE_SID ORACLE_OWNER PATH

4 启动安装前执行

xhost +

5 分区及划分

/KKK/KKKdata                  应用数据表空间                    n*5G               emc

/KKK/KKKtemp                 临时表空间                         2G                  emc

/KKK/KKKsysdata           系统表空间+2个控制文件                     emc

/KKK/redo1                     日志、镜像                         30M*3                emc

/KKK/redo2                    日志、镜像                          30M*3                  emc

/KKK/KKKundo             回滚表空间                           2G                      emc

/KKK/KKKarch             归档日志   文件名arch_%s_%t.arc          sun890盘

/KKK/oracle                系统安装文件+1个控制文件+回闪数据           sun890盘

另外再用一个盘作为备份空间

6 oracle参数的导出和修改

sql 代码
  1. create pfile='/oracle/pfile.ora' from spfile   
  2. create spfile from pfile='/oracle/pfile.ora'  


你可能感兴趣的:(oracle,sql,Solaris)