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
번호 제목 글쓴이 날짜 조회 수
115 온라인 백업/리스토어 (imp/exp) 조인상 2010.05.09 12799
114 아카이브 모드로 변환하기 조인상 2010.05.12 12799
113 OS재설치 후 오라클 복구(솔라리스) 조인상 2010.05.12 6790
112 백업에 관한 조언 조인상 2010.05.12 5188
111 필수로 암기해야 할 view 들... 조인상 2010.05.12 5755
110 오라클 뷰들... 조인상 2010.05.12 5914
109 9i 에서의 언두세그먼트 관리 조인상 2010.05.12 7346
108 오라클 재시작시에 롤백세그먼트 OFFLINE 조인상 2010.05.12 5793
107 오라클 버전업 후 exp할때 ORA-00904에러 조인상 2010.05.12 10454
106 아카이브 로그 강제로 생성하는 명령어 조인상 2010.05.12 10843
105 오라클 패치 후 export가 안된다! [1] 조인상 2010.05.12 10862
104 control file 재생성하기 조인상 2010.05.12 11683
103 온라인 백업방법 begin~end backup 조인상 2010.05.12 20702
102 64비트 Solaris에 오라클 9.2.0 설치 하기 조인상 2010.05.12 10540
101 처음 오라클 설치시 SGA 영역크기 정하는 규칙 조인상 2010.05.12 8362
100 오라클에 접속하는 최대 인스턴스개수(세션개수)를 늘리는 방법 조인상 2010.05.12 7156
99 인텔 펜티엄4 기반 Windows에 설치시 오류에 대해서 조인상 2010.05.12 5809
98 오라클 8.1.7 -> 7.3.4 로 DB data 이전 조인상 2010.05.12 6936
97 캐릭터셋 변경방법 조인상 2010.05.12 7372
96 [기타] 디비튜닝에 대한 질문과답변내용... 조인상 2010.05.12 5728
서버에 요청 중입니다. 잠시만 기다려 주십시오...