카테고리 없음

Centos에 Oracle XE 설치하기

kgmcscs 2018. 2. 12. 13:26

1. 라이브러리 설치 


yum install libaio bc flex  


2.Oracle rpm Download


http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html


위의 사이트로 접속을 하여 파일을 다운로드 후에 URL 을 확인합니다. 



wget을 이용하여 다운로드 받습니다. 오라클의 경우 다운받을수 있는 시간을 제한하기 떄문에  할때마다 새로 url을 확인 하셔야 합니다. 


wget http://download.oracle.com/otn/linux/oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip?AuthParam=1519361958_0df645ff755a5d7b5e35fbaeb371a1ac


3.  압출 풀기.

unzip -q oracle-xe*


4. 설치하기. 


- cd DISK1

-rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm


5. 설정하기


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


  1. [root@ms3 Disk1]# /etc/init.d/oracle-xe configure  
  2.   
  3. Oracle Database 11g Express Edition Configuration  
  4. -------------------------------------------------  
  5. This will configure on-boot properties of Oracle Database 11g Express  
  6. Edition.  The following questions will determine whether the database should  
  7. be starting upon system boot, the ports it will use, and the passwords that  
  8. will be used for database accounts.  Press <enter> to accept the defaults.  
  9. Ctrl-C will abort.  
  10.   
  11. Specify the HTTP port that will be used for Oracle Application Express [8080]:  
  12.   
  13. Specify a port that will be used for the database listener [1521]:  
  14.   
  15. Specify a password to be used for database accounts.  Note that the same  
  16. password will be used for SYS and SYSTEM.  Oracle recommends the use of  
  17. different passwords for each database account.  This can be done after  
  18. initial configuration:  
  19. Confirm the password:  
  20.   
  21. Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:y  
  22.   
  23. Starting Oracle Net Listener...Done  
  24. Configuring database...Done  
  25. Starting Oracle Database 11g Express Edition instance...Done  
  26. Installation completed successfully.</enter>  


6. 환경 설정 

- cd /u01/app/oracle/product/11.2.0/xe/bin  

./oracle_env.sh  

/u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh

7.접속하기

sqlplus /nolog