Home > Database > Mysql Tutorial > body text

Oracle 10g for solaris准备工作和实例的删除

WBOY
Release: 2016-06-07 16:56:00
Original
994 people have browsed it

第一 创建用户 groupadd oinstall groupadd dba useradd -g oinstall -G dba -s /usr/bin/csh -d /export/home/ora

  第一 创建用户

  groupadd oinstall

  groupadd dba

  useradd -g oinstall -G dba -s /usr/bin/csh -d /export/home/Oracle -m oracle

  第二 创建接入点

  df -k

  mkdir -p /opt/app/oracle/10.2.0

  mkdir -p /opt/app/oracle/doc

  chown -R oracle:oinstall /opt/app/oracle

  ls -l /opt/app/oracle

  第三 配置用户的环境变量

  cp .cshrc cshrc.bak

  vi .cshrc

  umask 022

  setenv ORACLE_BASE /opt/app/oracle/

  setenv ORACLE_HOME /opt/app/oracle/10.2.0

  setenv ORACLE_DOC /opt/app/oracle/doc

  setenv ORACLE_SID 实例名称

  setenv NLS_LANG "simplified chinese_china.ZHS16GBK"

  setenv NLS_DATE_FORMAT "YYYY-MM-DD HH24:Mi:SS"

  setenv LANG zh

  set path=(/bin /usr/bin /usr/ucb /etc $ORACLE_HOME/bin .)

  if ( $?prompt ) then

  set history=32

  endif

  =============================================================

  =============================================================

  source .cshrc

  env

  第四 修改系统内核参数

  修改系统限额:

  #id -p oracle

  uid=605(oracle) gid=601(dba) projid=3(default)

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

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

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

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

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

  修改vi /etc/system 方式,文件末尾添加以下行:

  set noexec_user_stack=1

  c. 重启系统使参数生效:

  #sync;sync;init 6

  more /etc/project

  prctl $$ 验证

  第五 修改/etc/system

  cp /etc/system /etc/system.orig

  vi /etc/system

  set noexec_user_stack=1

  setenv DISPLAY 10.23.248.17:0.0

  dbca

  完成后重启机器生效,使用sysdef及prctl -i project user.oracle验证参数已经生效

  如何删除oracle实例

  rm-rf /opt/app/oracle/10.2.0/cfgtoollogs/dbca/实例名称

  rm -rf /opt/app/oracle/admin/实例名称

  rm -rf /oradata1/实例名称

  rm -rf /var/opt/oracle(存放实例ID的地方)

linux

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template