Microsoft Word - CentOS 5.3에서 Oracle 10g 설치 1.doc

Similar documents
ENT5_ora11g_R2_ hwp

Oracle Database 11g R2 Installation Guide for OEL5(x86) Writer : 이경호

Oracle Database 11g R2 Installation Guide for RHEL5(x86) Writer : 이경호

주식회사커브 Oracle 12c CentOS 7 에설치 이문서는 Atlassian 제품군을설치하기위한 Oracle 12c 를 CentOS 7 에설치하는방법에대한가이드를공유하기위해작성되었다. Version OS : Cent OS 7 64bit DB : Oracle 12c

슬라이드 1

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate

Microsoft Word - CNVZNGWAIYSE.docx

Advanced Oracle Document Enterprise Manager Cloud Control 12c R1( ) [OMS Part] Author: Hyun-Ho, Jung Site: Job: Oracle

본문서는 초급자들을 대상으로 최대한 쉽게 작성하였습니다. 본문서에서는 설치방법만 기술했으며 자세한 설정방법은 검색을 통하시기 바랍니다. 1. 설치개요 워드프레스는 블로그 형태의 홈페이지를 빠르게 만들수 있게 해 주는 프로그램입니다. 다양한 기능을 하는 플러그인과 디자인

목차 1. 시스템구성 개요 정의 목적 환경 준비사항 Oracle Install configuration Xshell 에

Chapter 1

6주차.key

歯815설치1.PDF

슬라이드 1

Remote UI Guide


untitled

PowerPoint 프레젠테이션

1217 WebTrafMon II

R50_51_kor_ch1

PowerPoint 프레젠테이션

MySQL-Ch10

untitled

Document Server Information Items Description Last Edit Date 2011 / 06 / 13 CPU Intel(R) Xeon(R) CPU 2.40GHz X 8 Main Memory 4GB O/S version O

28 THE ASIAN JOURNAL OF TEX [2] ko.tex [5]

단계

Microsoft Word - CNVZNGWAIYSE.docx

Sena Technologies, Inc. HelloDevice Super 1.1.0

문서 제목

The Self-Managing Database : Automatic Health Monitoring and Alerting

목 차

Oracle hacking 작성자 : 임동현 작성일 2008 년 10 월 11 일 ~ 2008 년 10 월 19 일 신규작성 작성내용

강의10

<32B1B3BDC32E687770>

휠세미나3 ver0.4

슬라이드 1

USB USB DV25 DV25 REC SRN-475S REC SRN-475S LAN POWER LAN POWER Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl C

PWR PWR HDD HDD USB USB Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl Cable PC PC DDNS (

untitled

LXR 설치 및 사용법.doc

untitled

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D D382E687770>

Solaris Express Developer Edition

°í¼®ÁÖ Ãâ·Â

Apache HTTPD 설치 보고서

PowerPoint 프레젠테이션

본교재는수업용으로제작된게시물입니다. 영리목적으로사용할경우저작권법제 30 조항에의거법적처벌을받을수있습니다. [ 실습 ] 스위치장비초기화 1. NVRAM 에저장되어있는 'startup-config' 파일이있다면, 삭제를실시한다. SWx>enable SWx#erase sta

01Àå

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT END USERS. Oracle programs, including any oper

Network seminar.key

Oracle Regular Expression

김기남_ATDC2016_160620_[키노트].key

untitled

/chroot/lib/ /chroot/etc/

<49534F C0CEC1F520BBE7C8C4BDC9BBE720C4C1BCB3C6C320B9D D20BDC3BDBAC5DB20B0EDB5B5C8AD20C1A6BEC8BFE4C3BBBCAD2E687770>

소개 TeraStation 을 구입해 주셔서 감사합니다! 이 사용 설명서는 TeraStation 구성 정보를 제공합니다. 제품은 계속 업데이트되므로, 이 설명서의 이미지 및 텍스트는 사용자가 보유 중인 TeraStation 에 표시 된 이미지 및 텍스트와 약간 다를 수

데이터베이스_오라클_부록(최종).indd

PowerPoint Presentation

슬라이드 제목 없음

PRO1_09E [읽기 전용]

라즈베리파이 프로그래밍_130912(최종).indd

chapter1,2.doc

SRC PLUS 제어기 MANUAL

슬라이드 1

PCServerMgmt7

TTA Verified : HomeGateway :, : (NEtwork Testing Team)

K7VT2_QIG_v3

Oracle Database 10g: Self-Managing Database DB TSC

CD-RW_Advanced.PDF

(Exposure) Exposure (Exposure Assesment) EMF Unknown to mechanism Health Effect (Effect) Unknown to mechanism Behavior pattern (Micro- Environment) Re

TCP.IP.ppt


슬라이드 1

<31332DB9E9C6AEB7A2C7D8C5B72D3131C0E528BACEB7CF292E687770>

PRO1_04E [읽기 전용]

Chap06(Interprocess Communication).PDF

KISA-GD

1. Windows 설치 (Client 설치 ) 원하는위치에다운받은발송클라이언트압축파일을해제합니다. Step 2. /conf/config.xml 파일수정 conf 폴더에서 config.xml 파일을텍스트에디터를이용하여 Open 합니다. config.xml 파일에서, 아

DE1-SoC Board

8 장데이터베이스 8.1 기본개념 - 데이터베이스 : 데이터를조직적으로구조화한집합 (cf. 엑셀파일 ) - 테이블 : 데이터의기록형식 (cf. 엑셀시트의첫줄 ) - 필드 : 같은종류의데이터 (cf. 엑셀시트의각칸 ) - 레코드 : 데이터내용 (cf. 엑셀시트의한줄 )

Microsoft PowerPoint - comp_prac_081223_2.pptx

Microsoft Word - ntasFrameBuilderInstallGuide2.5.doc

1. What is AX1 AX1 Program은 WIZnet 사의 Hardwired TCP/IP Chip인 iinchip 들의성능평가및 Test를위해제작된 Windows 기반의 PC Program이다. AX1은 Internet을통해 iinchip Evaluation

The_IDA_Pro_Book

CPX-E-SYS_BES_C_ _ k1

Simplify your Job Automatic Storage Management DB TSC

APOGEE Insight_KR_Base_3P11

SQL Developer Connect to TimesTen 유니원아이앤씨 DB 기술지원팀 2010 년 07 월 28 일 문서정보 프로젝트명 SQL Developer Connect to TimesTen 서브시스템명 버전 1.0 문서명 작성일 작성자

hd1300_k_v1r2_Final_.PDF

Orcad Capture 9.x

UDP Flooding Attack 공격과 방어

Splentec V-WORM Quick Installation Guide Version: 1.0 Contact Information 올리브텍 주소 : 경기도성남시분당구구미로 11 ( 포인트타운 701호 ) URL: E-M

PowerPoint 프레젠테이션


DocsPin_Korean.pages

MS-SQL SERVER 대비 기능

슬라이드 1

Microsoft Word doc

62

Transcription:

<< 설치전준비사항 >> << STEP 1 : root 계정으로해야할일 >> 1. 오라클사용자생성 groupadd dba adduser -g dba oracle passwd oracle 2. /etc/sysctl.conf 를수정 Kernel sysctl conguration le for Red Hat Linux For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details. Controls IP packet forwarding net.ipv4.ip_forward = 0 Controls source route verication net.ipv4.conf.default.rp_lter = 1 Do not accept source routing net.ipv4.conf.default.accept_source_route = 0 Controls the System Request debugging functionality of the kernel kernel.sysrq = 0 Controls whether core dumps will append the PID to the core lename Useful for debugging multi-threaded applications kernel.core_uses_pid = 1 Controls the use of TCP syncookies net.ipv4.tcp_syncookies = 1 Controls the maximum size of a message, in bytes kernel.msgmnb = 65536 Controls the default maxmimum size of a mesage queue kernel.msgmax = 65536

Controls the maximum shared segment size, in bytes kernel.shmmax = 4294967295 Controls the maximum number of shared memory segments, in pages kernel.shmall = 268435456 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.le-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 확인 : sysctl -p 3. /etc/pam.d/login 를수정 %PAM-1.0 auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so auth include system-auth account required pam_nologin.so account include system-auth password include system-auth pam_selinux.so close should be the rst session rule session required pam_selinux.so close session include system-auth session required pam_loginuid.so session optional pam_console.so pam_selinux.so open should only be followed by sessions to be executed in the user context session required pam_selinux.so open session optional pam_keyinit.so force revoke session required pam_limits.so 4. /etc/security/limits.conf 를수정 /etc/security/limits.conf

Each line describes a limit for a user in the form: <domain> <type> <item> <value> Where: <domain> can be: - an user name - a group name, with @group syntax - the wildcard *, for default entry - the wildcard %, can be also used with %group syntax, for maxlogin limit <type> can have the two values: - "soft" for enforcing the soft limits - "hard" for enforcing hard limits <item> can be one of the following: - core - limits the core le size (KB) - data - max data size (KB) - fsize - maximum lesize (KB) - memlock - max locked-in-memory address space (KB) - nole - max number of open les - rss - max resident set size (KB) - stack - max stack size (KB) - cpu - max CPU time (MIN) - nproc - max number of processes - as - address space limit - maxlogins - max number of logins for this user - maxsyslogins - max number of logins on the system - priority - the priority to run user process with - locks - max number of le locks the user can hold - sigpending - max number of pending signals - msgqueue - max memory used by POSIX message queues (bytes) - nice - max nice priority allowed to raise to - rtprio - max realtime priority <domain> <type> <item> <value> * soft core 0 * hard rss 10000

@student hard nproc 20 @faculty soft nproc 20 @faculty hard nproc 50 ftp hard nproc 0 @student - maxlogins 4 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nole 1024 oracle hard nole 65536 End of le 5. /etc/prole 을수정 /etc/prole System wide environment and startup programs, for login setup Functions and aliases go in /etc/bashrc pathmunge () { if! echo $PATH /bin/egrep -q "(^ :)$1($ :)" ; then if [ "$2" = "after" ] ; then PATH=$PATH:$1 else PATH=$1:$PATH } ksh workaround if [ -z "$EUID" -a -x /usr/bin/id ]; then EUID=`id -u` UID=`id -ru` Path manipulation if [ "$EUID" = "0" ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin

No core les by default ulimit -S -c 0 > /dev/null 2>&1 if [ -x /usr/bin/id ]; then USER="`id -un`" LOGNAME=$USER MAIL="/var/spool/mail/$USER" HOSTNAME=`/bin/hostname` HISTSIZE=1000 if [ -z "$INPUTRC" -a! -f "$HOME/.inputrc" ]; then INPUTRC=/etc/inputrc export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC for i in /etc/prole.d/*.sh ; do if [ -r "$i" ]; then. $i done unset i unset pathmunge if [ $USER = "oracle" ]; then ulimit -u 16384 -n 65536 6. /etc/redhat-release 를수정 Fedora Core release 6 (Zod) 위의내용지우고아래와같이쓴다. redhat-4 7. /etc/hosts 를수정

* 문장간의간격은탭키로처리 Do not remove the following line, or various programs that require network functionality will fail. ::1 localhost.localdomain localhost 127.0.0.1 localhost.localdomain localhost 8. 필요한 rpm 패키지설치 yum install compat-libgcc-296 yum install libaio-devel yum install libxp yum install openmotif22

<< STEP 2 : oracle 계정으로해야할일 1 >> 1. /home/oracle/.bash_prole 수정.bash_prole Get the aliases and functions if [ -f ~/.bashrc ]; then. ~/.bashrc User specic environment and startup programs export ORACLE_BASE=/home/oracle export ORACLE_HOME=$ORACLE_BASE/10gR2 export ORACLE_OWNER=oracle export ORACLE_SID=orcl export ORACLE_TERM=xterm export NLS_LANG=AMERICAN_AMERICA.KO16KSC5601 export TNS_ADMIN=$ORACLE_HOME/network/admin export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib export TEMPDIR=/tmp export EDITOR=vi export PATH=$PATH:$ORACLE_HOME/bin 2. 오라클압축해제 [oracle@localhost ~] unzip 10201_database_linux32.zip 3. 리부팅

<< STEP 3 : oracle 계정으로해야할일 2 >> 1. x-window 로로그인한후언어를영문으로변경한후 x-window 로그아웃 2. 다시 x-window 로로그인 3. 오라클설치 [oracle@localhost ~] cd /home/oracle/database/ [oracle@localhost database] ls doc install response runinstaller stage welcome.html [oracle@localhost database]./runinstaller * 터미널을연후 root 계정으로변경한후다음 2 가지커맨드를실행후확인하라고나옵니다. [oracle@localhost ~] su - root [root@localhost ~] /home/oracle/orainventory/orainstroot.sh [root@localhost ~] /home/oracle/10gr2/root.sh * 종료버튼을클릭하여종료한다.

* 오라클을시작하는방법 [oracle@linuxora ~]$ sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on Tue Mar 11 23:23:36 2008 Copyright (c) 1982, 2005, Oracle. All rights reserved. SQL> conn /as sysdba Connected to an idle instance. <- 오라클이시작되어져있음을않음뜻함 SQL> startup ORACLE instance started. Total System Global Area 276824064 bytes Fixed Size Variable Size Database Buffers Redo Buffers 1218944 bytes 92276352 bytes 180355072 bytes 2973696 bytes Database mounted. Database opened. SQL> exit * 네트워크리스너를시작하는방법 [oracle@linuxora ~]$ lsnrctl start LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAR-2008 23:29:29 Copyright (c) 1991, 2005, Oracle. All rights reserved. Starting /home/oracle/10gr2/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 10.2.0.1.0 - Production System parameter le is /home/oracle/10gr2/network/admin/listener.ora Log messages written to /home/oracle/10gr2/network/log/listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linuxora)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER ------------------------ Alias Version LISTENER TNSLSNR for Linux: Version 10.2.0.1.0 - Production

Start Date 11-MAR-2008 23:29:30 Uptime Trace Level Security SNMP Listener Parameter File Listener Log File 0 days 0 hr. 0 min. 0 sec off ON: Local OS Authentication OFF /home/oracle/10gr2/network/admin/listener.ora /home/oracle/10gr2/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linuxora)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully * 네트워크리스너를끝내는방법 [oracle@linuxora ~]$ lsnrctl stop LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAR-2008 23:27:02 Copyright (c) 1991, 2005, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) The command completed successfully * 오라클을끝내는방법 [oracle@linuxora ~]$ sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on Tue Mar 11 23:23:36 2008 Copyright (c) 1982, 2005, Oracle. All rights reserved. SQL> conn /as sysdba Connected. <- 오라클이시작되어져있음을뜻함 SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. SQL> exit

* 오라클자동실행방법 오라클을설치한디렉터리로가자. /home/oracle/10gr2/bin 인데이곳에 dbstart 와 dbshut 가있다. 이중 dbstart 를 vi /etc/rc.d/rc.local 에적어주면 부팅할때자동으로오라클을실행한다. 그러나이렇게하는건 start만가능할뿐이다. 종료까지하려면스크립트파일을작성해야만한다. /etc/oratab 은오라클을자동시작기능을사용할지여부를결정하는파일이다. 디폴트값은 No 인데 Yes로바꿔주면 dbstart, dbshut 를사용할수있다. vi /etc/oratab This le is used by ORACLE utilities. It is created by root.sh and updated by the Database Conguration Assistant when creating a database. A colon, ':', is used as the eld terminator. A new line terminates the entry. Lines beginning with a pound sign, '', are comments. Entries are of the form: $ORACLE_SID:$ORACLE_HOME:<N Y>: The rst and second elds are the system identier and home directory of the database respectively. The third led indicates to the dbstart utility that the database should, "Y", or should not, "N", be brought up at system boot time. Multiple entries with the same $ORACLE_SID are not allowed. orcl:/home/oracle/10gr2:n orcl:/home/oracle/10gr2:y 그다음 SID 를위한초기화파일을복사해야만한다. SID 이름이 orcl 므로 init.ora.211200823144 라는파일이 /home/oracle/admin/orcl/ple 에존재할것이다. 초기화 파일명은 SID 이름에따라달라지는것이다. < 주의 > sple 로운영되는경우는위의과정을한후에 ple 를업데이트해줘야합니다. SQL> show parameter sple 로 sple 로운영중인지 ple 로운영중인지확인할수있습니다. - ple 로운영중

NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ sple string - sple 로운영중 SQL> show parameter sple NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ sple string /home/oracle/10gr2/dbs/spleorcl.ora 1. SQL> create ple from sple 2. sple 를삭제하고 db 내렸다올리면 ple 로운영이됩니다. /home/oracle/admin/orcl/ple/ initora1.ora.642002224936 을 /home/oracle/10gr2/dbs 디렉터리로 initorcl.ora 로 rename 해서옮긴다. 자이제마지막으로, su - oracle -c /home/oracle/10gr2/bin/dbstart ( 오라클시작!) su - oracle -c /home/oracle/10gr2/bin/lsnrctl start ( 리스너시작!) 이라고쳐서실제로가동되는지 test 해보자. ( 위의내용을 /etc/rc.d/rc.local 에입력하면컴퓨터가처음부팅할때 자동으로오라클과리스너를시작한다. 단리스너의경우엔스크립트에입력할때따옴표로묶어야 start 명령이적용된다. su - oracle -c /home/oracle/10gr2/bin/"lsnrctl start" 참고 ) 오라클리스너설정법먼저 vi /etc/services를해서오라클을위한포트를등록해준다. Xtel 1313/tcp French minitel LISTENER 1521/tcp Oracle Listener by TCP LISTENER 1521/udp Oracle Listener by UDP Support 1529/tcp GNATS, Cygnus bug tracker 위의밑줄친부분을추가해주면된다. 그리고 /home/oracle/10gr2/bin/ 에있는 netmgr 을실행해서리스너를설정한다.( 아마디폴트값이있을것이다. 그냥 사용해도무방하다.) 이렇게하면 /home/oracle/10gr2/network/admin/ 디렉터리에 listener.ora 가있을것이다. 확인하라. 마지막으로 /home/oracle/10gr2/bin/ 에리스너구동프로그램인 lsnrctl 이있다. oracle 계정으로로그인한후

lsnrctl start 를쳐리스너를시작하자. 중지할때는 lsnrctl stop 이다.