AIX5.2 + 9.2.0.1.0 install + 9.2.0.5.0 patch

2010.05.12 08:28

조인상 조회 수:7299

원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어

Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

본문 : http://www.ischo.net -- 조인상 //시스템 엔지니어

+++++++++++++++++++++++++++++++++++++++++++++++++++++++


출처 : mhkang.info

0. 환경
OS: AIX 5.2
Oracle: 9.2.0.1.0 + 9.2.0.5.0 patch

Memory 확인
# lsattr -E -l sys0 -a realmem
realmem 4194304 사용 가능한 물리적 메모리의 크기(KB) 거짓

Swap 확인
# lsps -a
페이징 공간 물리적 볼륨    볼륨 그룹    크기  사용량  활성  자동  유형
hd6        hdisk0        rootvg      4096MB    1    예  예  lv

tmp 확인
# df -k /tmp
파일 시스템  1024 블록  사용가능  %사용  Iused %Iused 마운트 위치
/dev/hd3      1048576  979356    7%    364    1% /tmp

AIO Available 확인
# smitty aio
"change/show characteristics of asynchronous I/O"
"State to be configured at system restart"
Defined  --->  available 로 setting후 반드시 재부팅(init 6)

1. dba group, oracle user 생성
  보안 및 사용자 -> 그룹 -> 그룹추가 -> 그룹이름 : dba
  보안 및 사용자 -> 사용자 -> 사용자추가 : oracle

2. oracle user profile 설정
umask 022
stty erase ^H
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=ORCL
export ORACLE_OWNER=oracle
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export TNS_ADMIN=$ORACLEE_HOME/network/admin
export NLS_LANG=American_America.KO16KSC5601
export LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/lib:/usr/lib
export DISPLAY=168.126.63.1:0.0
export PATH=$PATH:.:$ORACLE_HOME/bin:/bin:/usr/bin:/usr/ccs/bin:/sbin:/usr/sbin
export EDITOR=vi
set -o vi

3. CDROM확인
# lsdev -C | grep cd
cd0      사용가능 1G-19-00    IDE CD-ROM 드라이브 I (650 MB)

4. CDROM Mount
# mount -rv cdrfs /dev/cd0 /cdrom

5. OUI 실행준비
# xhost +
액세스 제어 작동 불가능, 클라이언트는 어떤 호스트에서도 연결할 수 있습니다.

6. rootpre.sh 실행
# /cdrom/rootpre.sh
Configuring Asynchronous I/O...
Asynchronous I/O is already defined

7. Oracle 설치
$ /cdrom/runInstaller
********************************************************************************
Your platform requires the root user to perform certain pre-installation
OS preparation.  The root user should run the shell script 'rootpre.sh' before
you proceed with Oracle installation.  rootpre.sh can be found at the top level
of the CD or the stage area.
********************************************************************************
Your platform requires the root user to perform certain pre-installation
OS preparation.  The root user should run the shell script 'rootpre.sh' before
you proceed with Oracle installation.  rootpre.sh can be found at the top level
of the CD or the stage area.
Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle
installation.
Answer 'n' to abort installation and then ask root to run 'rootpre.sh'.
********************************************************************************
Has 'rootpre.sh' been run by root? [y/n] (n)
y

$ Initializing Java Virtual Machine from /tmp/OraInstall2004-10-25_10-53-29AM/jre/bin/java. Please wait...
JAVA_HOME =  /usr/JAVA14

* Enterprise Edition 혹은 Standard Edition 선택후 DB 생성에서 Software only로 설치한다.

8. 9.2.0.5.0 patch
9.2.0.1.0을 설치한 다음 오라클과 관련된 모든 서비스를 중지하고 패치를 실행함.
1) metalink.oracle.com에서 p3501955_9205_AIX64-5L.zip 다운로드후 압축 해제함.
2) cpio -idcv < 9205_aix5164_release.cpio  (명령 수행 후 Disk1 디렉토리 생성됨)
3) cd Disk1 
4) ./runInstaller 실행
5) HOME 입력란에서 드롭다운 메뉴로 9.2.0.1.0에서 설정한 홈을 선택함
6) 10G OUI 먼저 설치
7) ./runInstaller 실행
8) HOME 입력란에서 드롭다운 메뉴로 9.2.0.1.0에서 설정한 홈을 선택함
9) 9iR2 9.2.0.5 패치설치

9. Oracle Net설정
$ORACLE_HOME/network/admin/ 디렉토리에 아래의 파일 생성

## listener.ora ##

LISTENER =
  (DESCRIPTION_LIST =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 168.126.63.1)(PORT = 1521))
    )
  )
  )
SID_LIST_LISTENER =
  (SID_LIST =
  (SID_DESC =
    (SID_NAME = ORCL)
    (ORACLE_HOME = /oracle/app/oracle/product/9.2.0)
  )
)


## sqlnet.ora ##

NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)


## tnsnames.ora ##

ORCL =
  (DESCRIPTION =
  (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 168.126.63.1)(PORT = 1521))
  )
  (CONNECT_DATA =
    (SID = ORCL)
  )
  )


10. DB생성
dbca를 실행하여 Database를 생성한다
$ dbca
서버에 요청 중입니다. 잠시만 기다려 주십시오...