'debian oracle'에 해당되는 글 1건

  1. 2010.01.18 debian , ubuntu Oracle 10G XE 설치 방법 4
IT2010. 1. 18. 22:12
반응형

1. apt-get 저장소를 연다.

 

$ sudo gedit /etc/apt/sources.list


2. sources.list에 다음을 추가한다.

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


3. 인증키를 얻고 오라클 XE를 설치한다.
   다국어 지원을 위해 'oracle-xe' 가 아닌 'oracle-xe-universal' 패키지를 설치하도록 한다.

$ wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle  -O- | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install oracle-xe-universal

※ 설치 중에 스왑 파티션이 부족해서 설치가 안되는 경우가 있다. 오라클 XE는 최소 1G이상의 스왑 파티션을 요구한다.( 스왑 용량 늘리는 방법은 아래를 참고하라.)

4. 환경설정을 한다.

$ sudo /etc/init.d/oracle-xe configure


5. 설정화면이다.

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]: 8087

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

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]: [ENTER]

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:8087/apex"
pcandme@behemoth:/etc/apt$ sudo /etc/init.d/oracle-xe configure
Oracle Database 10g Express Edition is already configured



6. 환경변수를 설정한다.
전역 설정에 추가하려면 /etc/profile 파일을 root 권한으로 편집하고, 개인 설정에 추가하려면 홈 디렉토리의 .bashrc 파일을 수정하면 된다.
아래는 언어가 한글 로 나온다.
putty 설정시 UTF8 로 설정 하면 한글 메세지 출력을 볼 수 있다.

$ sudo /etc/profile

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME
export ORACLE_SID=XE
export NLS_LANG='KOREAN_KOREA.AL32UTF8'




일반적인 언어 설정

export NLS_LANG='AMERICAN_AMERICA.KO16KSC5601'




7. 해당 쉘에 환경변수를 적용한다.

$ sudo source /etc/profile


8. 확인한다.

웹브라우져의 주소창에 http://localhost:8080/apex  넣으면, 오라클 메니지먼트 웹페이지가 보여진다. ( 위의 마지막 내용 http://127.0.0.1:8080/apex 주소로는 접속이 되지않았다. )

USER : system
password : 5번에서 설정한 패스워드

 

<리눅스 - swap(스왑) 용량 늘리기>

$ touch /swapfile
$ dd if=/dev/zero of=/swapfile bs=1M count 1024
$ losetup /dev/loop7 /swapfile
$ mkswap /dev/loop7
$ swapon /dev/loop7

free 명령어로 확인해 보세요.

해제할때는 swapoff /swapfile

파티션을 늘리거나 줄이는 부분은 시스템에 큰 위험을 초래할 수 있기 때문에 스왑파일을 만드는 것으로 문제를 해결하는 것이 좋습니다. 스왑파일을 만드는 방법은 아래와 같습니다.

 - 스왑으로 사용할 파일을 만든다.
 touch /swapfile

 - dd 명령어를 이용하여 입력을 /dev/zero 로 하고 출력을 방금 생성한 /swapfile 로 하여 작업한다.

 dd if=/dev/zero of=/swapfile bs=1024 count=1000

 - 생성한 스왑파일 확인
 ls -l swapfile

 - mkswap 을 이용하여 swapfile 을 스왑파일로 포맷한다.
 mkswap /swapfile

 - swapfile 을 스왑공간으로 활성화 한다.
 swapon /swapfile

 - 스왑용량을 확인하면 전체적인 스왑공간이 늘어났음을 확인할 수 있다.
 swapon -s, free

 - 설정한 스왑파일을 재부팅시에 매번 적용하기 위하여 /etc/rc.d/rc.local 파일에 등록한다.
 swapon /swapfile

 

반응형

'IT' 카테고리의 다른 글

ghost 이미지 최대 크기 제한 하기  (2) 2010.01.19
Oracle Local Network Web admin Confirm  (4) 2010.01.18
shareaza 2.5  (4) 2009.12.12
windows 7 usb dvd download tool  (4) 2009.11.18
sky n topstaired  (4) 2009.10.04
Posted by Dream Come True