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 일반유저에게 kill session 권한 주기 ischo 2019.08.12 22430
114 Oracle expdp 로 백업하기 조인상 2015.02.23 9119
113 ORA-28040 : No matching authentication protocol 조인상 2014.11.13 67299
112 ORA-28002 : the password will expired within N days 조인상 2014.01.09 11291
111 REDO 로그 그룹의 용량을 늘리기 [1] 조인상 2013.05.22 15205
110 checkpoint not complete에 대해서 ischo 2013.05.22 267
109 Oracle Database 10g: New Features for Oracle8i OCPs 조인상 2013.05.13 13483
108 SQL developer 실행시 jvm.dll 오류 발생 조치 방법 조인상 2013.01.23 19783
107 Orace Lisence 정책 조인상 2013.01.22 13828
106 SQL study - 특정열 앞에 순차적인 값 붙여 나열하기 조인상 2012.11.23 14851
105 datafile, redolog, controlfile 위치 변경하기 조인상 2012.08.02 24655
104 Introduce Oracle ExaData 조인상 2012.05.24 13716
103 ASM 정리자료 조인상 2012.04.26 14527
102 ORA-01555 : snapshot too old: rollback segment number %s with name \"%s\" too small ischo 2012.04.10 19285
101 Oracle Database 2 Day DBA - 부록 A. ASM file 조인상 2012.04.05 18696
100 Oracle 설치문서에서 보는 ASM file 조인상 2012.03.30 19762
99 AIX 6.1에 오라클 9i 설치 조인상 2012.03.24 17355
98 ORA-04063: package body "EXFSYS.DBMS_EXPFIL_EXP" has errors 조인상 2012.01.04 20780
97 AIO on HP-UX filesystem 조인상 2011.11.01 13238
96 Diagnosing and Resolving ORA-4030 errors (Oracle Metalink) 조인상 2011.10.31 13218
서버에 요청 중입니다. 잠시만 기다려 주십시오...