Oracle Express Edition 10g

Posted at 2009. 11. 11. 16:17 | Posted in Server/Ubuntu
반응형
http://blog.naver.com/timberx?Redirect=Log&logNo=30042155124



의존성이 있는 패키지 설치

# apt-get install libaio1 bc

패키지 목록에 oracle 추가

# vi /etc/apt/sources.list

# 추가
# oracle
deb http://oss.oracle.com/debian unstable main non-free

GPG key import

# wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle  -O- | sudo apt-key add -

패키지 목록 업데이트

# apt-get update

oracle xe 설치

# apt-get install oracle-xe-universal

환경 설정

# /etc/init.d/oracle-xe configure

Oracle Database 10g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express
Edition.  The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts.  Press <Enter> to accept the defaults.
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]:8081   // tomcat과 겹쳐서 변경

Specify a port that will be used for the database listener [1521]:1521

Specify a password to be used for database accounts.  Note that the same
password will be used for SYS and SYSTEM.  Oracle recommends the use of
different passwords for each database account.  This can be done after
initial configuration:비밀번호
Confirm the password:비밀번호

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y

Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8081/apex"

환경 변수 등록

# vi /etc/environment

# 수정
PATH="/usr/local/sbin:/usr/local/bin:/u.......:/usr/games:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin"
# 추가
export ORACLE_HOME='/usr/lib/oracle/xe/app/oracle/product/10.2.0/server'
export ORACLE_SID=XE
export NLS_LANG='KOREAN_KOREA.AL32UTF8'

테스트

# sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on 수 11월 11 22:02:53 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

사용자명 입력: sys as sysdba
암호 입력:

다음에 접속됨:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

SQL> exit
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production에서 분리되었습니다.

http://localhost:8081/apex 에 접속(로컬에서만 접속됨)하여 '관리' - 'HTTP 엑세스 관리' 선택

"로컬 서버와 원격 클라이언트에서 사용할 수 있음" 체크 후 '변경사항 적용'

반응형

'Server > Ubuntu' 카테고리의 다른 글

Openfire  (0) 2010.05.25
Webmin  (0) 2009.11.18
Squirrelmail  (0) 2009.11.12
SparkWeb  (0) 2009.11.12
Cacti  (0) 2009.11.12
Apache + SSL  (0) 2009.11.12
Apache + Tomcat with Tomcat Connector  (0) 2009.11.11
Apache + PHP + MySQL  (0) 2009.11.11
bind9 - domain name service  (0) 2009.11.11
Ubuntu 9.10 Desktop  (0) 2009.11.11
//