Ubuntu 12.04 에 Oracle Express 11gR2 설치

제 가 새로 설치 한 Linux Mint 13 "Maya" Xfce RC 는 Xubuntu 12.04 기반 이기 때문에 XUbuntu 와 Ubuntu 의 12.04 에 모두 적용 할 수 있 을 것 같 습 니 다.
1. Oacle express 의 설치 미디어 다운로드
http://www.oracle.com/technetwork/products/express-edition/downloads/index.html
Oracle Database Express Edition 11g Release 2 for Linux x64
 
2 、 deb 패키지 로 전환
rpm 패키지 ubuntu 를 다운로드 해서 직접 사용 할 수 없 기 때문에 alien 에서 변환 해 야 합 니 다.
sudo apt-get install alien
sudo alien -d --scripts oracle-xe-11.2.0-1.0.x86_64.rpm

성공 전환 후 Oacle - xe 획득11.2.0-2_amd64. deb 설치 파일
 
3. deb 설치
deb 를 두 번 눌 러 서 이 가방 을 설치 합 니 다. 이 가방 은 설치 에 성 공 했 지만 / sbin / chkconfig 가 존재 하지 않 는 다 는 오 류 를 얻 을 수 있 습 니 다.
/ var / lib / dpkg / info / oracle - xe. postins 스 크 립 트 를 수정 하려 고 합 니 다.
if [ -f /etc/SuSE-release ]
then
	cp -f /u01/app/oracle/product/11.2.0/xe/config/scripts/oracle-xe.sles /etc/init.d/oracle-xe
	/usr/lib/lsb/install_initd /etc/init.d/oracle-xe > /dev/null 2>&1
	/sbin/insserv /etc/init.d/oracle-xe > /dev/null 2>&1
	/sbin/SuSEconfig > /dev/null 2>&1
#else
#        /sbin/chkconfig --add oracle-xe
fi

else 와 / sbin / chkconfig -- add oracle - xe 주석 을 지우 고 실행 합 니 다.
sudo /var/lib/dpkg/info/oracle-xe.postinst

/ etc / init. d / oracle - xe configure 를 실행 하여 설정 하 는 것 을 알려 줍 니 다.하지만 서 두 르 지 마 세 요. 우 리 는 더 많은 절 차 를 밟 아야 합 니 다.
 
4. 의존 팩 설치
sudo apt-get install libaio1

 
5, 해결 ORA - 00845: MEMORY질문
Oacle 에서 찾 은 것 은 / dev / shm 이기 때문에 Ubuntu 는 / run / shm (링크 가 있 지만 문제 가 있 음) 로 바 뀌 었 습 니 다. 초기 화 할 때 ORA - 00845 문제 가 발생 합 니 다. 해결 방법 은 다음 과 같 습 니 다.
루트 로 로그 인
sudo su -

다운로드 한 코드 를 명령 행 에 붙 여 Oacle - shm 을 만 듭 니 다.
cat > /etc/init.d/oracle-shm <<-EOF
#! /bin/sh
# /etc/init.d/oracle-shm
#
#
case "\$1" in
  start)
    echo "Starting script /etc/init.d/oracle-shm"
    # Run only once at system startup
    if [ -e /dev/shm/.oracle-shm ]; then
      echo "/dev/shm is already mounted, nothing to do"
    else
      rm -f /dev/shm
      mkdir /dev/shm
      #mount -B /run/shm /dev/shm
      mount -t tmpfs shmfs -o size=2048m /dev/shm
      touch /dev/shm/.oracle-shm
    fi
    ;;
  stop)
    echo "Stopping script /etc/init.d/oracle-shm"
    echo "Nothing to do"
    ;;
  *)
    echo "Usage: /etc/init.d/oracle-shm {start|stop}"
    exit 1
    ;;
esac
#
### BEGIN INIT INFO
# Provides:          oracle-shm
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6 
# Short-Description: Bind /run/shm to /dev/shm at system startup.
# Description:       Fix to allow Oracle 11g use AMM.
### END INIT INFO
EOF

Oacle - shm 설치
chmod 755 /etc/init.d/oracle-shm
update-rc.d oracle-shm defaults 01 99

다시 시작
reboot

 
6 、 oracle xe 설정
sudo /etc/init.d/oracle-xe configure

웹 관리 포트 기본 8080 선택
감청 포트 기본 값 1521 선택
관리자 비밀번호 입력 및 비밀번호 확인 (sys 비밀번호)
마지막 으로 기본 y 를 자동 으로 시작 하 는 지 물 어 봅 니 다.
 
7. 웹 관리 데스크 진행
메뉴 에서 Other - > Get Started with Oracle Database 11g Express Edition 선택

좋은 웹페이지 즐겨찾기