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
//
반응형
기본 OrcleXE 를 설치하면 http 포트가 8080으로 잡힙니다.

하지만 톰켓을 설치하게 되면 톰켓도 8080을 사용하지요...

톰켓 포트번호를 바꾸던가 오라클 포트번호를 바꾸면 되는데...

오라클 포트번호 변경법~

접속시 DBA 계정으로 로그인해야 합니다.

>sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on 월 3월 9 14:29:47 2009

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

사용자명 입력: system
암호 입력:

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

SQL> -- 현재 사용중인 포트번호 알기
SQL> select dbms_xdb.gethttpport from dual;

GETHTTPPORT
-----------
       8080

SQL> -- HTTP 포트 변경하기
SQL> begin
  2     dbms_xdb.sethttpport('8089');
  3  end;
  4  /

PL/SQL 처리가 정상적으로 완료되었습니다.

SQL> select dbms_xdb.gethttpport from dual;

GETHTTPPORT
-----------
       8089

SQL>


잘 변경 되었습니다.



HTTP 사용을 막으려면 포트번호를 '0' 으로 설정하면 됩니다.

반응형

'Database > Oracle' 카테고리의 다른 글

테이블스페이스 및 테이블 관리 쿼리  (1) 2011.01.27
Oracle 계정 생성  (1) 2009.02.16
//

Oracle Database 10g Express Edition

Posted at 2009. 2. 16. 22:38 | Posted in Etc/Link
반응형
http://www.oracle.com/technology/global/kr/products/database/xe/index.html

http://www.oracle.com/pls/xe102/homepage

Oracle Database XE는 무료 설치 및 사용이 가능합니다. 단, 다음과 같은 제약이 따릅니다:
• 최대 4GB의 사용자 데이터 지원 (오라클 시스템 데이터 별도)
• 서버 당 하나의 Oracle Database XE 인스턴스만을 지원
• 서버 당 하나의 프로세스만을 사용
• 최대 1GB의 메모리만을 사용


반응형
//