한국어

네트워킹

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


http://dinggur.tistory.com/88


급하신 분은 보라색 글씨만 보시면 됩니다. 
[# ] 표시 = root 계정으로 명령어 입력   /  [$ ] 표시 = 사용자계정 (ex. oracle) 으로 명령어 입력 
[:: ] 표시 = vi에디터 등에서 표시 이후의 내용을 타이핑하라는 의미입니다.




OS 환경설정 → 엔진설치 → 엔진패치 → DB생성


0. 설치파일 준비 - oracle 계정을 만든후 /home/oracle 에 옮긴다. (오라클설치파일, patch폴더, patchset폴더)
10201_database_linux32.zip  → 오라클 설치파일
p4198954_40_LINUX.zip  → patch 폴더에 있음
p8202632_10205_LINUX.zip  → patchset 폴더에 있음


1. 오라클 계정 및 그룹 생성 
# groupadd -g 5000 dba
# useradd -g dba oracle
# passwd oracle


2. 공유메모리 확인 및 설정
# vi /etc/sysctl.conf
kernel.shmmax=536870912
kernel.shmmni=4096
kernel.shmall=2097152
kernel.sem=250 32000 100 128
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144

3. 사용자별 프로세스 생성 제한 
# vi /etc/security/limits.conf
oracle10g       soft    nproc   2047
oracle10g       hard    nproc   16384
oracle10g       soft    nofile  1024
oracle10g       hard    nofile  65536

※ 참고 
<domain> <type> <item> <value> 순이다. 
<domain> : user명, 그룹명을 줄수 있다. 그룹에 대해 적용할 경우에는 @가 붙는다. 
<type> : soft - 약한 제한, hard - 강한 제한 
<item> : nproc - 프로세스의 갯수 , rss - 실제 사용하는 메모리양(kbyte단위) 
Ex) oracle10g라는 사용자는 프로세스를 10개 발생시킬 수 있고, 메모리는 5M이상 사용할수 없게 제한한다. 
oracle10g hard nproc 10 
oracle10g hard rss 5000 



4. 사용자 인증 보안 
# vi /etc/pam.d/login
session required        pam_limits.so
기존 내용 가장 아래에 추가해준다.

5. RPM 설치 
linux 설치 3번CD 삽입후 mount
# cd /media/cdrecorder/RedHat/RPMS
# rpm -Uvh libaio-devel-0.3.105-2.i386.rpm
# cd /home/oracle/patch
# unzip p4198954_40_LINUX.zip
# rpm -Uvh compat-libcwait-2.1-1.i386.rpm
# rpm -Uvh compat-oracle-rhel4-1.0-5.i386.rpm

※ 참고 
1. CD롬의 경로는, /media/cdrom 이거나 /media/cdrecoder 이다.
2. CD삽입후 자동인식 되지 않는다면,
# umount /media/cdrom
# mount /media/cdrom


6. .bash_profile 수정 
# su - oracle
$ vi .bash_profile
export EDITOR=vi
export LD_ASSUME_KERNEL=2.4.19
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10g
export ORACLE_SID=testdb
export ORACLE_TERM=xterm
export NLS_LANG=AMERICAN_AMERICA.KO16MSWIN949
export ORA_NLS10=$ORACLE_HOME/nls/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export PATH=$PATH:$ORACLE_HOME/bin
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export LANG=C


7. 오라클 10g R2 설치 파일 압축 풀기 
# su -
# cd /home/oracle
# unzip 10201_database_linux32.zip
# chown -R oracle.dba /home/oracle/



8. /etc/oraInst.loc 파일 생성 
# vi /etc/oraInst.loc
inventory_loc=/home/oracle/oraInventory
inst_group=dba
# chown -R oracle.dba /etc/oraInst.loc

※ 참고
oraInventory의 경로를 설정하는 역할을 한다.
*oraInst.loc 파일은 생성하지 않을 경우 Oracle 엔진 설치 시 orainstRoot.sh 스크립트를 실행하는 경우 자동 생성된다.
*oraInventory란 Oracle 소프트웨어 제품에 관한 정보와 Server에 설치되어 있는 Oracle Home의 정보를 가지고 있는 일종의 Repository 디렉터리 이다.(설치 시 발생되는 로그정보 포함)



9. enterprise.rsp 파일 수정 
# vi /home/oracle/database/response/enterprise.rsp
UNIX_GROUP_NAME="dba"
FROM_LOCATION="/home/oracle/database/stage/products.xml"
ORACLE_HOME="/home/oracle/product/10g"
ORACLE_HOME_NAME="OraHome"
COMPONENT_LANGUAGES={"en"}
INSTALL_TYPE="EE"
n_configurationOption=3

  
로그아웃 후, oracle 계정으로 로그인한다. 




OS 환경설정 → 엔진설치 → 엔진패치 → DB생성 

1. 엔진설치 

$ cd /home/oracle/database
$ ./runInstaller -noconsole -silent -force -waitforcompletion -responseFile /home/oracle/database/response/enterprise.rsp



2. 진행 과정 보기 - /home/oracle/oraInventory/logs 

# tail -f /home/oracle/oraInventory/logs/installActions<tab>  ← <tab> 키를 누르면 목록이 나오므로 선택해서 log파일명 입력하기 

----------엔진 설치 과정 텍스트---- 

Oracle Universal Installer 시작 중... 설치 프로그램 요구 사항 확인 중... 

운영 체제 버전 확인 중: 필수 버전redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2 
                                      성공함


설치 프로그램 요구 사항을 모두 충족했습니다.

다음에서 Oracle Universal Installer의 시작을 준비하는 중 /tmp/OraInstall2011-12-25_10-26-09PM. 기다리십시오.Oracle Universal Installer, 버전 10.2.0.1.0 Production 
Copyright (C) 1999, 2005, Oracle. All rights reserved.

다음 위치에서 이 설치 세션의 로그를 찾을 수 있음: 
/home/oracle/oraInventory/logs/installActions2011-12-25_10-26-09PM.log 

----------log 파일에 남는 내용---- 
정보: ca page to be shown: false 
정보: exitonly tools to be excuted passed: 0 
경고: 시스템을 구성하려면 다음 구성 스크립트 
/home/oracle/product/10g/root.sh을(를) 
루트로 실행해야 합니다. 구성 툴 실행을 건너 뛸 경우 구성이 완료되지 않고 제품이 제대로 작동하지 않습니다. 제품이 제대로 작동하도록 하기 위해서는 OUI를 종료한 후 스크립트 및 구성 툴을 실행해야 합니다.



3. 엔진 설치 완료 후 root 계정으로 root.sh 실행 

# /home/oracle/product/10g/root.sh


4. 설치 완료 확인 - 버전  10.2.0.1.0

$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 25 22:33:26 2011

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

Connected to an idle instance. 
SQL>


 



OS 환경설정 → 엔진설치 → 엔진패치 → DB생성 

1. 압축 해제

# cd /home/oracle/patchset
# unzip p8202632_10205_LINUX.zip



2. patchset.rsp 파일 수정

# vi /home/oracle/patchset/Disk1/response/patchset.rsp
UNIX_GROUP_NAME="dba"
FROM_LOCATION="/home/oracle/patchset/Disk1/stage/products.xml"
ORACLE_HOME="/home/oracle/product/10g"
ORACLE_HOME_NAME="OraHome"
COMPONENT_LANGUAGES={"en"}
DECLINE_SECURITY_UPDATES=true

로그아웃 후 oracle 계정으로 로그인후 명령어 실행 

3. 패치 실행 

$ cd /home/oracle/patchset/Disk1
$ ./runInstaller -silent -force -waitforcompletion -responseFile /home/oracle/patchset/Disk1/response/patchset.rsp

--------패치 설치 과정 텍스트---- 

<초반 생략> 
   Installation Common Files 10.2.0.1.0 
   Oracle Globalization Support 10.2.0.1.0 
   Oracle Core Required Support Files 10.2.0.1.0 
   Platform Required Support Files 10.2.0.1.0 
   Oracle Message Gateway Common Files 10.2.0.1.0 
   Enterprise Manager Agent Core 10.2.0.1.0 
   Enterprise Manager Common Files 10.2.0.1.0 
   Enterprise Manager Repository Core 10.2.0.1.0 
   Oracle Containers for Java 10.2.0.1.0 
   Enterprise Manager Repository DB 10.2.0.1.0 
   Oracle LDAP administration 10.2.0.1.0 
   JDBC Common Files 10.2.0.1.0 
   Database Workspace Manager 10.2.0.1.0 
   Oracle interMedia Annotator 10.2.0.1.0 
   Enterprise Manager Minimal Integration 10.2.0.1.0 
   Parser Generator Required Support Files 10.2.0.1.0 
   Buildtools Common Files 10.2.0.1.0 
   Oracle UIX 2.1.22.0.0 
   Bali Share 1.1.18.0.0 
-----------------------------------------------------------------------------


설치 해제 진행 중 (2011년 12월 25일 일요일 오후 10시 43분 08초 KST) 
...............................................................   0% 완료되었습니다. 
...............................................................  18% 완료되었습니다. 
...............................................................  37% 완료되었습니다. 
...............................................................  56% 완료되었습니다. 
...............................................................  75% 완료되었습니다. 
.................                                               100% 완료되었습니다.

설치 해제 성공

설치 진행 중 (2011년 12월 25일 일요일 오후 10시 43분 09초 KST) 
...............................................................  18% 완료되었습니다. 
...............................................................  37% 완료되었습니다. 
...............................................................  56% 완료되었습니다. 
...............................................................  75% 완료되었습니다. 
.................................................                90% 완료되었습니다. 
설치 성공

링크 진행 중 (2011년 12월 25일 일요일 오후 10시 45분 37초 KST) 
..                                                               91% 완료되었습니다. 
링크 성공

설정 진행 중 (2011년 12월 25일 일요일 오후 10시 46분 35초 KST) 
.........                                                       100% 완료되었습니다. 
설정 성공

설치 단계가 완료되었습니다.(2011년 12월 25일 일요일 오후 10시 46분 42초 KST) 
WARNING: 
다음 구성 스크립트는 "루트" 사용자로 실행해야 합니다. 
#!/bin/sh 
#Root script to run 
/home/oracle/product/10g/root.sh 
구성 스크립트 실행: 
    1. 터미널 창을 엽니다. 
    2. "루트"로 로그인합니다. 
    3. 스크립트를 실행합니다.

Oracle Database 10g Release 2 Patch Set 4의 설치을(를) 성공했습니다. 
자세한 내용은 '/home/oracle/oraInventory/logs/silentInstall2011-12-25_10-42-53PM.log'을(를) 확인하십시오.




4. 패치 완료후 root 계정으로 root.sh 실행 

# /home/oracle/product/10g/root.sh  → overwrite 경고 메시지가 나오는 경우 모두 y 를 눌러준다. 

Running Oracle 10g root.sh script...

The following environment variables are set as: 
    ORACLE_OWNER= oracle 
    ORACLE_HOME=  /home/oracle/product/10g

Enter the full pathname of the local bin directory: [/usr/local/bin]: (엔터) 
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: 
   Copying dbhome to /usr/local/bin ... 
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: 
   Copying oraenv to /usr/local/bin ... 
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: 
   Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by 
Database Configuration Assistant when a database is created 
Finished running generic part of root.sh script. 
Now product-specific root actions will be performed.



5. 패치 완료 확인 - 버전  10.2.0.5.0 

$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Sun Dec 25 22:49:40 2011

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

Connected to an idle instance. 
SQL> 


 


리스너 구성 

2011/12/26 - [Study/Oracle - 설치] - 리스너(Listener) 란?


1. netca.rsp 수정 
$ vi /home/oracle/database/response/netca.rsp
SHOW_GUI=false
LOG_FILE=""/oracle10gHome/network/tools/log/netca.log""

위의 내용 수정(주석제거 = #표시 제거해서 적용될수 있도록) 
구성 과정을 log 로 남기기 위해 구성 명령어에 log 위치를 넣어준다. 


2. 리스너 구성 
$ cd /home/oracle/product/10g/bin/
$ ./netca /silent /log /home/oracle/product/10g/network/tools/log/netca.log /responseFile /home/oracle/database/response/netca.rsp

 

----------- 리스너 구성 과정 텍스트 ---- 

Sun Dec 25 22:56:53 KST 2011 Oracle Net Configuration Assistant 
명령줄 인수 분석: 
    매개변수 "silent" = true 
    매개변수 "log" = /home/oracle/product/10g/network/tools/log/netca.log 
    매개변수 "responsefile" = /home/oracle/database/response/netca.rsp 
명령줄 인수 분석을 완료했습니다. 
Oracle Net Service 구성: 
프로파일 구성이 완료되었습니다. 
포트에서 시작한 리스너:1521 
Oracle Net 리스너 시작: 
    실행 중인 리스너 제어: 
      /home/oracle/product/10g/bin/lsnrctl start LISTENER 
    리스너 제어가 완료되었습니다. 
    리스너가 성공적으로 시작되었습니다. 
리스너 구성이 완료되었습니다. 
기본 로컬 이름 지정 구성을 완료했습니다. 
Oracle Net Service 구성을 성공했습니다. 종료 코드는 다음과 같습니다. 0 



※ 참고
리스너 상태 확인
$ lsnrctl status  → 리스너 상태 확인
$ lsnrctl start  → 리스너 시작

===============o r======================
$ lsnrctl
LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 22-DEC-2011 15:31:12
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> start  → 리스너 시작
LSNRCTL> help  → 명령어 보기
The following operations are available
An asterisk (*) denotes a modifier or extended command:
start stop status
services version reload
save_config trace spawn
change_password quit exit
set* show*



 



OS 환경설정 → 엔진설치 → 엔진패치 → DB생성

1. dbca.rsp 수정 

$ vi /home/oracle/database/response/dbca.rsp
GDBNAME = "testdb"
SID = "testdb"
SYSPASSWORD = "oracle"
SYSTEMPASSWORD = "oracle"
NATIONALCHARACTERSET= "UTF8"


위의 설정값을 수정 해준다. 


2. DB 생성

$ cd /home/oracle/product/10g/bin
$ ./dbca -silent -templateName /home/oracle/product/10g/assistants/dbca/templates/General_Purpose.dbc -responseFile /home/oracle/database/response/dbca.rsp


-------- DB 생성 과정 텍스트 ---- 

데이터베이스 파일 복사 중 
1% 완료 
3% 완료 
11% 완료 
18% 완료 
26% 완료 
37% 완료 
Oracle 인스턴스 생성 및 시작 중 
40% 완료 
45% 완료 
50% 완료 
55% 완료 
56% 완료 
60% 완료 
62% 완료 
데이터베이스 생성 완료 중 
66% 완료 
70% 완료 
73% 완료 
85% 완료 
96% 완료 
100% 완료 
자세한 내용은 로그 파일 "/home/oracle/product/10g/cfgtoollogs/dbca/testdb/testdb.log"을(를) 참조하십시오. 



3. 로그파일 확인

$ cat /home/oracle/product/10g/cfgtoollogs/dbca/testdb/testdb.log


4. DB생성 확인 

$ sqlplus / as sysdba
SQL> conn / as sysdba
Connected.
SQL> select status from v$instance;  → 현재 상태 확인 
STATUS 
------------------------ 
OPEN

조회 수 :
79438
등록일 :
2013.04.08
09:50:35 (*.160.42.88)
엮인글 :
http://webs.co.kr/index.php?document_srl=19799&act=trackback&key=934
게시글 주소 :
http://webs.co.kr/index.php?document_srl=19799
List of Articles
번호 제목 글쓴이 날짜 조회 수
37 Android SQLite Database with Multiple Tables admin 2014-02-13 49920
36 Android Simple Clean Good SQLite Database Tutorial 잘된 설명 admin 2014-02-13 33676
35 android sqlite 사용하기 admin 2014-02-10 85999
34 SQLite 개발가이드 데이터베이스의 성능 admin 2014-02-10 91416
33 android - 다수의 Insert 수행시 속도 향상을 위한 팁 sQlite admin 2014-02-10 80957
32 Oracle Linux 에 Oracle DB 설치하기 admin 2013-12-03 102870
31 PreparedStatement mysql java 깔끔한설명 admin 2013-10-26 103887
30 Connect Excel VBA to a MySQL database file admin 2013-09-05 45000
29 Configuring Oracle ASM disks in Oracle Enterprise Linux admin 2013-04-20 37785
28 OS에따른 Oracle 설치버전 admin 2013-04-08 31555
» RHEL4 + 10g 설치 _silent mode admin 2013-04-08 79438
26 OLE5 + 11G 설치 _silent mode admin 2013-04-08 82618
25 WHERE 조건절 검색시 서브쿼리는 어떻게? admin 2013-04-01 36646
24 CDR 추출 저장 Inner Join 사용 Sql 문 admin 2013-02-05 37307
23 SUPER OCM 1.8club admin 2012-12-18 30591
22 MySQL Java tutorial admin 2012-09-30 48028
21 Oracle 10g Articles admin 2012-06-24 31566
20 기본 10g 설치의 리눅스 세팅에서 추가 해줘야하는 사항(윈도우) admin 2012-06-24 38953
19 SUSE Linux Enterprise Server 10 (Oracle 10g R2 (10.2.0.1)) file admin 2012-03-09 36940
18 Upgrade Oracle from 10.2.0.1 To 10.2.0.4 (Windows) admin 2012-03-06 161345
17 Upgrade Oracle 10g Release 2 from 10201 to 10204 admin 2012-03-05 109004
16 centos 6.2 oracle 10g 설치 admin 2012-03-05 106971
15 Oracle RHEL4+10G 10.2.0.1 설치 10.2.0.5 패치 admin 2012-03-03 93515
14 Oracle Backup & restore with RMAN 기본 admin 2012-02-12 41470
13 오라클 ACE가 해설하는 Oracle Backup & Recovery admin 2012-02-07 40813
12 Oracle Backup & Restore admin 2012-02-07 86214
11 http://www.hoons.kr/ admin 2011-12-19 34338
10 Java && Excel 연동 JAVA 자바로 엑셀을 핸들링 할 수 있는 방법 admin 2011-12-19 190191
9 (C#) ASP.NET MySQL Check Already Exists Add/Insert Record 프로그래밍 코드 admin 2011-12-19 34164
8 xhost and display admin 2011-12-16 34346