ORACLE2009. 11. 21. 12:53

Installation of Oracle 9i on fedora Core Linux 2,3,4,5 and 6 ORACLE

2008/08/11 00:18

작성자: 베레(lsj403)

복사 http://blog.naver.com/lsj403/memo/77722095

Installation of Oracle 9i (R2) on Fedora Core Linux 2, 3, 4, 5 and 6


This paper (HOWTO) describes step-by-step installation of Oracle 9i database software on Fedora Core 2, 3, 4, 5 and 6.

This paper covers following steps:

Pre-Instalation Tasks

1. Create oracle User Account

Login as root and create te user oracle which belongs to dba group.
su -
# groupadd dba
# useradd -g dba oracle

2. Setting System parameters
Edit the /etc/sysctl.conf and add following lines:
kernel.sem = 250 32000 100 128
kernel.shmmax = 2147483648
kernel.shmmni = 128
kernel.shmall = 2097152
kernel.msgmnb = 65536
kernel.msgmni = 2878
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
Note: You need execute "sysctl -p" or reboot system to apply above settings.

Edit the /etc/security/limits.conf file and add following lines:
* - nproc 16384
* - nofile 16384

3. Setting Oracle Enviroment
Edit the /home/oracle/.bash_profile file and add following lines:

Settings for Fedora Core 2,3,4 only. For Fedora Core 5 and 6 use the next settings.
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/920
ORACLE_SID=MY_ORACLE
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_ASSUME_KERNEL=2.4.1
THREADS_FLAG=native
ORACLE_OEM_JAVARUNTIME=/opt/jre1.3.1_15
PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_ASSUME_KERNEL THREADS_FLAG ORACLE_OEM_JAVARUNTIME PATH

Settings for Fedora Core 5 and 6 only. For Fedora Core 2,3,4 use the above settings. Note setting of LD_ASSUME_KERNEL will cause incorrect functionality of FC5 and FC6.
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/920
ORACLE_SID=MY_ORACLE
LD_LIBRARY_PATH=$ORACLE_HOME/lib
ORACLE_OEM_JAVARUNTIME=/opt/jre1.3.1_15
PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH ORACLE_OEM_JAVARUNTIME PATH

Save the .bash_profile and execute following commands for load new enviroment:
cd /home/oracle
. .bash_profile

4. Create base directory for Oracle

Login as root and create base directory for Oracle ($ORACLE_BASE).
su -
# cd /opt
# mkdir oracle
# chown oracle:dba oracle

Download & Install

1. Download and install required .rpm packages

Some additional packages are required for succesful instalation of Oracle software. To check whether required packages are installed on your operating system use following command:
rpm -q gcc glibc-headers glibc-kernheaders glibc-devel compat-libstdc++ cpp compat-gcc
Note: You don't need glibc-kernheaders installed on FC6 as this package is not shipped with FC6.
If some package is not installed download it from Fedora project website or direct from Core 2, Core 3, Core 4, Core 5, Core 6 locations.

This step is required for Fedora Core 3 and 4 only. Fedora Core 3 is shipped with compat-gcc-8.3.3.4. Fedora Core 4 is shipped with compat-gcc-32-3.2.3. These package are GCC 3.x compiler which are not useful for succesful inatallation. Check whether compat-gcc-8.3.3.4 or compat-gcc-32-3.2.3 is installed. If so then uninstall it using folowing command:
rpm -e compat-gcc
Download the compat-gcc-7.3-2.96.126.i386.rpm package from Core 2 location or from here.


Install the required packages using the rpm command (Note version of packages may change in newer release, so versions for all packages (except compat-gcc package) used in next command are just for example.):
# rpm -ivh gcc-3.4.2-6.fc3.i386.rpm \
glibc-headers-2.3.3-74.i386.rpm \
glibc-kernheaders-2.4-9.1.87.i386.rpm \
glibc-devel-2.3.3-74.i386.rpm \
compat-libstdc++-3.4.2-6.fc3.i386.rpm \
cpp-3.4.2-6.fc3.i386.rpm \
compat-gcc-7.3-2.96.126.i386.rpm


For Fedora Core 4, 5 and 6 only:Install the required additional packages using the rpm command:
# rpm -ivh compat-libgcc-296-2.96-___.rpm \
compat-libstdc++-33-3.2.3-___.rpm \
compat-libstdc++-296-2.96-___.rpm

If all required packages were installed succesfuly then login as root and switch the GCC3 compiler binary with GCC2 compiler binary as following:
su -
# cd /usr/bin
# mv ./gcc ./gcc3
# mv ./gcc296 ./gcc

2. Download the Java Runtime Enviroment (j2re-1_3_1_15-linux-i586.bin) from the Sun website. Keep in mind you need to download j2re1.3.1_11 or higher (Note: Install JRE 1.3.1_1x version only).

Login as root and make the the file executable and then execute it. When the JRE is exracted move the "jre1.3.1_15" di rectory to "/opt" directory.
# chmod +x j2re-1_3_1_15-linux-i586.bin
# ./j2re-1_3_1_15-linux-i586.bin

# mv jre1.3.1_15 /opt/

3. Download the Oracle 9i (9.2.0.4) software from Oracle website.
Extract the files using following command:
gunzip ship_9204_linux_disk1.cpio.gz
gunzip ship_9204_linux_disk2.cpio.gz
gunzip ship_9204_linux_disk3.cpio.gz

cpio -idmv < ship_9204_linux_disk1.cpio
cpio -idmv < ship_9204_linux_disk2.cpio
cpio -idmv < ship_9204_linux_disk3.cpio

When all archives were extracted you've got three directories Disk1, Disk2 and Disk3.
Edit the Disk1/install/linux/oraparam.ini and modify JRE_LOCATION variable and set path to our JRE installation from Step 2.

JRE_LOCATION=/opt/jre1.3.1_15

4. Start the Oracle software installation process.

Now the system is prepared for Oracle software installation. To start the installation process execute the following commands:
cd Disk1
./runInstaller

When network configuration assistant and database configuration assistant has failed during st artup then do following steps:
cd /opt/oracle/920
rm JRE
ln -s /opt/jre1.3.1_15 JRE
su -
# cd /opt/oracle/920/JRE/bin
# ln -s java jre
# cd i386/native_threads
# ln -s java jre

Post-Instalation Tasks

1. Switch back the GCC binaries
su -
# cd /usr/bin
# mv ./gcc ./gcc296
# mv ./gcc3 ./gcc

2. Change of JRE path in Oracle Universal Installer

Edit the $ORACLE_BASE/oui/oraparam.ini file and modify the value of JRE_LOCATION to /opt/jre1.3.1_15

3. (Optional) You may consider to use rlwrap for comfortable work with sqlplus. RPM package for Fedora Core (x86) distribution you can download here.
su -
# rpm -ivh rlwrap-0.24.fedora.i386.rpm
# exit
echo "alias sqlplus='rlwrap sqlplus'" >> /home/oracle/.bash_profile
. /home/oracle/.bash_profile


Common Installation Errors

Unable to load native library: /tmp/OraInstall2005-01-08_11-11-34AM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
Solution: Install new JRE 1.3.1 version. Edit the Disk1/install/linux/oraparam.ini and set path to new JRE for JRE_LOCATION variable. For more information see Download & Install section.

/tmp/OraInstall2005-04-26_11-38-19AM/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
Solution: Install the xorg-x11-deprecated-libs package (for >=FC4 versions). For FC5 and later install libXp package.

/tmp/OraInstall2005-06-14_03-46-25PM/jre/bin/i386/native_threads/java: error while loading shared libraries: /tmp/OraInstall2005-06-14_03-46-25PM/jre/lib/i386/native_threads/libhpi.so: cannot restore segment prot after reloc: Permission denied
Solution: Modify /etc/selinux/config and change value of SELINUX to "disabled" and reboot computer.

Starting Oracle Intelligent Agent.../opt/oracle/920/bin/dbsnmpwd: line 156: 1393 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
/opt/oracle/920/bin/dbsnmpwd: line 156: 1405 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
/opt/oracle/920/bin/dbsnmpwd: line 156: 1416 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
/opt/oracle/920/bin/dbsnmpwd: line 156: 1427 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1

Solution: Download and apply patch nr.: 3238244 from http://metalink.oracle.com.

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
Solution: Execute "export DISPLAY=:0.0" (as oracle user) and "xhost +" as user who has opened X session (for example logged in KDE, GNOME, etc.). If the value is other than 127.0.0.1 or localhost you should "xhost +" on client machine.

Error in invoking target install of makefile /opt/oracle/920/ctx/lib/ins_ctx.mk
Error in invoking target install of makefile /opt/oracle/920/precomp/lib/ins_precomp.mk
Error in invoking target install of makefile /opt/oracle/920/plsql/lib/ins_plsql.mk
Error in invoking ntcontab.o of makfile /opt/oracle/920/network/lib/ins_net_client.mk

Solution: Install the compat-gcc-7.3-2.96.126.i386.rpm (gcc 2.96) package and change the GCC binaries. For more information see Download & Install section. In case of Fedora Core 5 take look at next error message.

sed: -e expression #1, char 7: unterminated `s' command error in $ORACLE_HOME/install/make.log
Solution: There is probably bug in bash (FC5 only). Download and install bash package from FC4. I have prepared this package (builded from FC4 src.rpm) for FC5 - Download.
Install it using "rpm -ivh bash-3.0-31.i386.rpm --force".

Initializing Java Virtual Machine from /tmp/OraInstall2006-10-25_01-43-30PM/jre/bin/java. Please wait... /tmp/OraInstall2006-10-25_01-43-30PM/jre/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory - after ./runInstaller execution.
Solution:
su -
# cd /usr/lib
# ln -s libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.1-1.so.2

Start ./runInstaller again.


Last update: 25-10-2006. Comments, suggestions, questions, errors (also grammatical :) )? Feel

'ORACLE' 카테고리의 다른 글

데이터베이스의 개념(DB/DBMS/DBS)  (0) 2009.11.21
iSQL*PLUS Web으로 실행시키기  (0) 2009.11.21
오라클 설치 정리  (0) 2009.11.21
The Index_DESC Hint  (0) 2009.11.11
Installation of Oracle 10g on Centos Linux 5  (0) 2009.11.11
Posted by Tiwaz
ORACLE2009. 11. 21. 12:51

본문스크랩 오라클 설치 정리 ORACLE

2008/08/07 18:34

작성자: 베레(lsj403)

복사 http://blog.naver.com/lsj403/memo/77722012

출처 IT | 인스피런
원문 http://blog.naver.com/503s/60083321411

INSTALL oracle9i on redhat 9.0 

1. 설치전 필요한 페키지
X-Window 필수
gcc-3.2.2-5
cpp-3.2.2-5
glibc-devel-2.3.2-11.9
binutils-2.13.90.0.18-9
compat-gcc-7.3-2.96.118.i386.rpm
compat-libgcj-7.3-2.96.118.i386.rpm
compat-libgcj-devel-7.3-2.96.118.i386.rpm
nss_db-compat-2.2-20.i386.rpm
pdksh-5.2.14-21
libncursers

2. 다운로드 소스
http://otn.oracle.com/software/products/oracle9i/htdocs/linuxsoft.html

 

# gunzip ship_Disk1.cpio.gz                            모든 파일을 압축을 푼다.
# cpio -idmv < Linux9i_Disk1.cpio           이렇게 순서대로 하면 각각 Disk1, DIsk2, DIsk3 라는 디렉터리가 생기면 압축이 풀린다. 

3. 계정 및 그룹생성 시스템 설정
# groupadd dba
# adduser -g dba oracle

# passwd oracle

# chown -R oracle.dba /home/oracle           디렉토리를 오라클이 access 하게 해준다

# chmod  755 /home/oracle


# 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

# vi /etc/security/limits.conf
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384

만약 리붓팅하지 않을려면 다음과 같이한다.
# echo 250 32000 100 128 > /proc/sys/kernel/sem
# echo 536870912 > /proc/sys/kernel/shmmax
# echo 4096 > /proc/sys/kernel/shmmni
# echo 2097152 > /proc/sys/kernel/shmall
# echo 65536 > /proc/sys/fs/file-max
# echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range


3. 환경변수 설정(여기서 부터 oracle 계정으로 바꾼다.)


$ vi .bash_profile
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0.1
export ORACLE_OWNER=oracle
export ORACLE_SID=oracle
export ORACLE_TERM=xterm
#export TMPDIR=$ORACLE_BASE/tmp
#export TNS_ADMIN=$ORACLE_HOME/network/admin
export NLS_LANG='AMERICAN_AMERICA.KO16KSC5601'
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORAClE_HOME/oracm/lib:/lib:/usr/lib:/usr/local/lib
export LANG=C
export LD_ASSUME_KERNEL=2.4.1
export THREADS_FLAG=native
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/oracm/bin

CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib


4. 3번의 과정이 성공적으로 끝났다면 설치창이 뜬다. 

$ su -             

# xhost +          root 계정에서 실행

xhost +   엔터로 모든 계정에서 X window 를 사용할 수 있게 해 준 후에
오라클 홈페이지에서 다운로드 받은 설치파일 위치로 간다.
본인은  /home/oracle 위치에 다운 받았다. 압축푼 위치의 Disk1 로 이동하면
runInstaller   라는 파일이 있다.  이걸 실행시킨다.

# su - oracle

$ cd /home/oracle/Disk1

$ ./runInstaller                       <- 오라클 소스압축푼 디렉터리

Oracle Universal Installer 가 뜨면서 여러가지를 물어본다
/home/oracle/oraInventory  을 oracle_base directory 로 한다
UNIX Group Name 은 dba 로 한다

Full path name for Oracle Home:  는
  /home/oracle/product/9.2.0  로 한다

root 권한으로 특정 파일(/tmp/orainstRoot.sh)을 실행해야 하라고 하면 다른 터미널 창에서
다음과 간이 하면 아래에 다음 메시지가 전시된다.

# /tmp/orainstRoot.sh

 

“Oracle9i Database 9.2.0.1.0”을 선택하여 데이터베이스를 구성합니다.
“제품 언어...”를 클릭합니다.

Oracle DB에서 사용할 문자 셋을 설정합니다. 이곳 설정은 $HOME/.bash_profile 의
NLS_LANG의 값과 일치해야 합니다. Default character set 이 KO16KSC5601이므로
Database Character Set을 default로 놓고 “다음” 버튼을 물러 계속 설치를 진행합니다.

설치 유형을 묻는 화면입니다. 여기서는 Enterprise Edition을 선택하여 설치합니다.
Enterprise Edition은 모든 컴포넌트가 설치 됩니다. “다음” 버튼을 클릭합니다.


“설치 유형”에서 “Database Configuration”으로 넘어가는 중간 화면 입니다.


Database Suite에서 General Purpose를 선택합니다. “다음”버튼을 클릭하여 계속 설치를 진행합니다.

Global Database 이름, SID 등을 정해 줍니다.


다음을 계속 누르면 설치가 시작됩니다.

 

root 권한으로 특정 파일(/home/oracle/product/9.2.0.1/root.sh )을 실행해야 하라고 하면 다른 터미널 창에서
다음과 간이 하면 아래에 다음 메시지가 전시된다.

# /home/oracle/product/9.2.0.1/root.sh 

 

설치 진행 ~~~

 

password 설정 창 뜨면 설정하고

설치 계속~~

error 창 하나뜸 그냥 확인 하고 next

설치 계속~~

 

완료

Posted by Tiwaz
.Net Framework/.NET2009. 11. 16. 09:42
 
  1. 시작->프로그램->VS2005-> VS Tools -> 명령 프롬프트 실행
  2. 역어셈블리 툴인 ildasm.exe 실행
  3. 아래와 같이 프로그램 실행
  4. 파일 -> 열기 클릭
  5. 역어셈블 하고자 하는 *.dll 선택 열기
  6. 아래와 같이 *.dll 파일이 열림.
  7. 파일->덤프 메뉴 클릭
  8. 아래와 같은 덤프 옵션창에서 원하는 형식으로 설정 확인
  9. 확인 버튼을 눌리면 *.dll 파일이 위치한 경로에 *.txt / *.res 파일 생성
  10. *.txt 파일의 경우 원래의 코드 형태는 아니지만 클래스, 메소드, 프라퍼티 정보가 아래와 같이 생성.
  11. *.res 파일의 경우 열기 하였을 경우 아래와 같은 결과를 보여줌
  12. 파일->트리 덤프 클릭 *.dll 파일을 열면
  13. 아래와 같이 *.txt 파일 생성
  14. 파일을 열어 보면 아래와 같이 트리형태로 클래스, 메소드, 프라퍼티 등을 볼수 있음.
  15. ILDASM.exe 실행시 심볼 형태로, 덤프한 결과일 경우 축약형으로 참고하여 보면 도움이 될듯..
  16. ( 인포북 C# .NET플랫폼 참고)

    ILDASM.EXE 심볼

    축약형

    설명

    .(DOT)

    아이콘은 주어진 타입에서 많은 세부 정보를 찾아 있음을 의미한다.

    더블클릭할 경우에는 아이템은 트리에서 관련된 노드로 점프하게 된다.

    [NSP]

    네임스페이스를 의미한다.

    [CLS]

    클래스를 의미한다. 중첩된 클래스의 경우에는 <outer 클래스>

    $<inner 클래스> 방식으로 표현한다.

    [VCL]

    구조체를 의미한다.

    [INT]

    인터페이스 타입을 의미한다.

    [FLD]

    주어진 타입에서 정의된 필드를 의미한다.(public 데이터).

    [STF]

    주어진 타입에서 정의된 정적(static) 필드를 의미한다.(클래스 차원에서).

    [MET]

    주어진 타입의 메소드를 의미한다.

    [STM]

    주어진 타입의 정적메소드를 의미한다.

    [PTY]

    주어진 타입의 프로퍼티를 의미한다.

    []

     


Posted by Tiwaz
ORACLE2009. 11. 11. 23:37

The Index_DESC Hint
The INDEX_DESC hint causes indexs to be scanned in descending order (of their indexed value or order), which is the opposite of the INDEX and INDEX_ASC hints. This hint is overridden when the query has multiple tables, because the index needs to be used in the normal ascending order to be joined to the other table in the query. Some restrictions for this include that it does not work for bitmap indexes or for descending indexes, that it causes the index to be scanned in ascending order, and that it does not work across partitioned index boundaries but performs a descending index scan of each partition.

Syntax
select /*+ INDEX_DESC (table index1, index2...) * column1, ...

Example
select /*+ INDEX_DESC(emp deptno_idx) */ empno, ename, deptno
from emp
where deptno = 1;

The INDEX_DESC processes an index in descending order of how it was built. This hint will not be used if more than one table exists in the query.

 

-----------------------------------------------------------------------------------------

출처는 잘모르겠습니다~

문제시 삭제처리하겠습니다^^


개발을 하다보면 SQL문을 자주 사용하게 되는데...
최소한 Toad등에서 Query에 대해 Plan한번만 떠 보세요... 그러면 그 쿼리가 어느 정도의 성능을 내는지는 대충 짐작하실 수 있습니다. 그런 다음 테이블의 인덱스를 적절히 사용하는지 확인만 하면 최소한 나쁜 쿼리는 작성하지 않게 됩니다. (인덱스를 사용하는 경우가 최선의 성능을 보장 하지는 않습니다)

아래 내용을 참고하시고 사용하는 DB가 오라클이라면 반드시 힌트에 대해 관심을 가지시기 바라구요 옵티마이저 수행 경로가 정상적인 경우와 비정상인 경우 성능 차이는 장난 아닙니다. 심지어 10배 이상 나는 경우도 있구요,,,
(힌트는 Oracle Optiomizer의 수행경로를 변경 시키는 역할을 합니다.)

인덱스 힌트를 사용하게 되면 오라클 옵티마이저는 기술된 인덱스를 써야 한다는 것을 알게되며 이 경우 Table Full Scan을 하지 않게 되죠... 물론 사용되는 인덱스에 대해 COST는 계산하지 않고 존재하는 인덱스라면 사용을 한다는 이야깁니다...

만약 인덱스 힌트가 사용되지 않았지만 인덱스를 사용할 수 있는 경우라면 여러 인덱스중 COST가 적게 드는 인덱스를 하나 선택하여 사용하게 되구요...


사용 형식은 아래와 같구요...

/*+ INDEX ( table [index [index]...] ) */

table은 테이블 명이나 Alias 명 입니다.
index에는 사용되는 인덱스명을 쓰시면 되구요,

예)
select /*+ INDEX(idx_emp_job) */
       ename,
       job
from emp
where job= '프로그래머';

DELETE /*+ INDEX(idx_emp_status)*/
FROM emp_status
WHERE status = '휴직';

*** INDEX_ASC : INDEX 힌트와 거의 유사하며 단지 다른 부분이라면 인덱스 영역의 검색되는 데이터가 오름차순으로 Scan 되는 것이죠...

INDEX_ASC
/*+ INDEX_ASC(table index[index .. index]) */


*** INDEX_DESC : 이 힌트 역시 INDEX힌트와 유사하며 단지 인덱스 영역의 검색되는 데이터가 내림차순으로 Scan 되는 것이죠...

/*+ INDEX_DESC (table index[index .. index]) */

위 INDEX_ASC나 INDEX_DESC를 적절히 사용하시면 ORDER BY 구문을 사용하지 않아도 되는 경우가 대부분 입니다.(ORDER BY를 많은 건의 데이터에 대해 사용하시면 성능에 악 영향을 줍니다)

emp 테이블에 ename으로 인덱스가 있다면...

select ename, sal
from emp
order by ename

==>

select /*+ index_asc(emp) */
         ename, sal
from emp
where ename > '가'  -- 한글 이름을 사용한다고 했을 때
(이 경우 order by를 사용하지 않았지만 데이터는 ename으로 오름차순 정렬되어 나옵니다)


*** FULL : 인덱스 사용하지 않고 Table을 FULL Scan하라는 힌트
만약 성별처럼 "M" 아니면 "F"만 가지는 경우 분포도가 50%이므로 인덱스를 사용하는 것보다 인덱스를 사용하지 않는 경우가 성능에 효율적일 수 있습니다. 이러한 경우 사용하는 힌트죠...

사용 형식
/*+ FULL (table) */

select /*+ FULL(emp) */ ename, sal
from emp
where sex = 'M'

*** NO_INDEX : 기술된 테이블에 대해서는 인덱스를 사용하지 말라는 의미

select /*+ NO_INDEX(emp) */ ename, sal
from emp where sex = 'M';


Posted by Tiwaz
ORACLE2009. 11. 11. 23:34

//root 로 로그인
#su - 

 /*커널 매개변수 확인 및 설정(변수 값이 클경우 안바꿔도 상관없음)
 #/sbin/sysctl -p
 #/sbin/sysctl -a | grep shm
 #/sbin/sysctl -a | grep sem
 #/sbin/sysctl -a | grep file-max
 #/sbin/sysctl -a | grep ip_local_port_range
 */


 //매개변수 설정
#vi /etc/sysctl.conf 

 #kernel.shmall = 2097152
 #kernel.shmmax = 2147483648
 kernel.shmmni = 4096
 # semaphores: semmsl, semmns, semopm, semmni
 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


//매개변수 적용
#/sbin/sysctl -p 


//제한값 설정
#vi /etc/security/limits.conf  

 *               soft    nproc   2047
 *               hard    nproc   16384
 *               soft    nofile  1024
 *               hard    nofile  65536


//설정
#vi /etc/pam.d/login 

 session    required     /lib/security/pam_limits.so


#SELINUX=disabled
 

//필수 패키지 설치
#yum install setarch-2* make-3* glibc-2* libaio-0* compat-libstdc++-33-3* compat-gcc-34-3*
compat-gcc-34-c++-3* gcc-4* libXp-1* openmotif-2* compat-db-4*


//오라클 그룹 생성
#groupadd dba


//오라클 유저 생성
#useradd -g dba oracle
#passwd oracle  <--패스워드는 각자알아서


//설치디렉토리 생성
#mkdir -p /u01/app/oracle/product/10.2.0/db_1


//권한 설정
#chown -R oracle:dba /u01


//네트워크 확인
#xhost +127.0.0.1


//release 명 변경
#vi /etc/redhat-release
 centOS 삭제후 -> redhat-4 추가


//login to ORACLE


//oracle 환경 변수 설정
$vi /home/oracle/.bash_profile

 # Oracle Settings
 TMP=/tmp; export TMP
 TMPDIR=$TMP; export TMPDIR

 ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
 ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
 ORACLE_SID=orcl; export ORACLE_SID
 ORACLE_TERM=xterm; export ORACLE_TERM
 PATH=/usr/sbin:$PATH; export PATH
 PATH=$ORACLE_HOME/bin:$PATH; export PATH
 NLS_LANG=American_America.AL32UTF8; export NLS_LANG 

 LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
 CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

 if [ $USER = "oracle" ]; then
   if [ $SHELL = "/bin/ksh" ]; then
     ulimit -p 16384
     ulimit -n 65536
   else
     ulimit -u 16384 -n 65536
   fi
 fi

//oracle 설치파일 download

http://www.oracle.com/technology/software/products/database/index.html

10201_database_linux32.zip

압축풀고 압축푼 폴더에가서
 

//oracle 설치 시작
$./runInstaller


'ORACLE' 카테고리의 다른 글

오라클 설치 정리  (0) 2009.11.21
The Index_DESC Hint  (0) 2009.11.11
Oracle 10g 의 휴지통 기능  (0) 2009.11.11
프로시져, 트리거의 이해-2009/02/20  (0) 2009.11.11
PL/SQL의 이해-2009/02/19  (0) 2009.11.11
Posted by Tiwaz