02.Oracle/DataBase2008. 7. 14. 14:23
반응형
Posted by 1010
02.Oracle/DataBase2008. 7. 14. 13:27
반응형
*설치전 사전 작업*

1.필수 패키지 설치 및 기본 쉘(bash) 심볼릭 링크 설정.
sudo apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm
sudo ln -sf bash /bin/sh

2.오라클 유저 및 그룹 추가.
sudo addgroup oinstall
sudo addgroup dba
sudo addgroup nobody
sudo usermod -g nobody nobody
sudo useradd -m oracle -g oinstall -G dba -s /bin/bash
sudo passwd oracle
sudo mkdir -p /oracle/11g
sudo chown -R oracle:dba /oracle
sudo chown -R oracle:dba /home/oracle

3.심볼릭 링크 설정.
###루트 권한획득.
sudo su -
mkdir /etc/rc.d
ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/rpm /bin/rpm
ln -s /usr/bin/basename /bin/basename
ln -s /etc/rc0.d /etc/rc.d/rc0.d
ln -s /etc/rc0.d /etc/rc.d/rc1.d
ln -s /etc/rc2.d /etc/rc.d/rc2.d
ln -s /etc/rc3.d /etc/rc.d/rc3.d
ln -s /etc/rc4.d /etc/rc.d/rc4.d
ln -s /etc/rc5.d /etc/rc.d/rc5.d
ln -s /etc/rc6.d /etc/rc.d/rc6.d
ln -s /etc/rcS.d /etc/rc.d/rcS.d

4.커널 변수 및 시스템 설정.
cat >> /etc/sysctl.conf << EOF
fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
EOF
cat >> /etc/security/limits.conf << EOF
oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535
EOF
cat >> /etc/pam.d/login << EOF
session required /lib/security/pam_limits.so
session required pam_limits.so
EOF

sysctl -p

5.오라클 환경변수 설정.
vi /etc/profile
export ORACLE_BASE=/oracle
export ORACLE_HOME=/oracle/product/11.1.0/db_1
export ORACLE_SID=orcl11
export PATH=$PATH:$ORACLE_HOME/bin

6.레드햇 버전 추가.
echo "Red Hat Linux release 4" > /etc/redhat-release


*설치*

1.시스템 재부팅 후 oracle 유저로 접속.

2.오라클 11g 다운로드 및 압축 해제.
사용자 삽입 이미지

3.인스톨러 실행.
./runInstaller -ignoreSysPrereqs

※인스톨러가 구동중 display에러 발생할 경우.
1.DISPLAY 환경변수 확인.
echo $DISPLAY

2.확인시 DISPLAY 값이 없을 경우 DISPLAY 환경변수 설정.
export DISPLAY=:0.0
사용자 삽입 이미지

※에러화면(디렉토리 및 권한 불충분 에러) : 그냥 OK클릭 후 다음 단계 진행
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지


우분투 오라클 설치 관련 글 : http://kekedie.tistory.com/4
Posted by 1010
98..Etc/Etc...2008. 7. 14. 12:37
반응형
cmd -> nslookup -> url ->
Posted by 1010
98..Etc/Etc...2008. 7. 14. 12:20
반응형

A First Look at Oracle 11g database on Debian GNU/Linux

Three and half years have passed since my first attempts to install Oracle 10g on an unsupported Debian GNU/Linux distribution. Seeing that Oracle 11g is out, and exclusively for Linux at this time, I decided to download it among the first and see and share with you what it's installation looks like.

The distribution can be downloaded from the Oracle Database Software Downloads page, but let me warn you upfront that the archive is 1.7GB in size, so you'll need quite a big pipe to successfully download it. What makes it even harder is that Oracle insists that you download it from browser window (Wget and similar utilities won't work out of the box, although there are some tricks that can be deployed), so be prepared to have that browser window open for a long time and prey that download doesn't break along the way.

I won't go into details with preparation tasks (stuff you need to do even before you launch the installer), because that is very well documented (Oracle database has great, although a bit overwhelming, documentation). When you unpack the zip archive, you can access the documentation with your browser (iceweasel welcome.html). Suffice to say that you at least have to create an oracle user and group, and recheck you shared memory parameters.

./runInstaller

OK, so after we have launched the installer, we're greeted with the welcome window which gives us opportunity to change the default installation directory, and tune some other aspects of this installation.

I chose the option to create the Starter Database, to see how it works. But at this time I skipped the option to do the Advanced Installation. Some more configuration windows follow, be sure to pick appropriate paths for your new install.

Finally, we reach the step where Oracle checks some system parameters (Prerequisites Check) where it finds that the install is not running on a certified Linux distribution. But it's quite cleverly architected, the installation doesn't break, instead it forces you to confirm that is really what you want. I liked it, readily checked the needed boxes, so that installation could continue.

Before the disk crunching part starts, we have yet another nice summary screen to recheck all the parameters we've given to the installer.

What follows is 15-30 minutes of installing, linking, setting up and configuring of software packages. Go make yourself a cup of tee, there is nothing you need to do until the copying is over. :)

Near the end of the installation, when database configuration assistant and other assistants are launched, I got my first error.

Actually a warning, because everything continued to work correctly after that (not a showstopper, it seems). Peeking into suggested log file revealed that it was an Java exception:

CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
        at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:868)
        at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:249)
        at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:212)
        at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:234)
        at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:460)
        at java.lang.Thread.run(Thread.java:595)

Nevertheless, after accepting that error, we're greeted with a window that suggests the installation went OK.

Next step is to run two scripts as a superuser. Don't worry, Oracle won't make much trouble to your fine administered Debian machine, it'll copy just a few files to /usr/local/bin, /etc and /opt directories and all are easy to found, should you later decide to uninstall the database.

And that's it, happy end. If you don't believe me, here's the last window you'll see before you're back to prompt.

And yes, your new development database is already started and happily running:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
oracle    6389  0.0  0.4  51768  8868 ?        Ssl  18:12   0:00 /ext/oracle/app/or
oracle    6873  0.0  0.7 961116 15148 ?        Ss   18:17   0:00 ora_pmon_orcl
oracle    6875  0.0  0.6 960504 12616 ?        Ss   18:17   0:00 ora_vktm_orcl
oracle    6879  0.0  0.6 960504 12504 ?        Ss   18:17   0:00 ora_diag_orcl
oracle    6881  0.0  0.8 960504 18352 ?        Ss   18:17   0:00 ora_dbrm_orcl
oracle    6883  0.0  0.6 960504 12688 ?        Ss   18:17   0:00 ora_psp0_orcl
oracle    6887  0.0  0.7 961016 14704 ?        Ss   18:17   0:00 ora_dia0_orcl
oracle    6889  0.0  1.3 960504 27208 ?        Ss   18:17   0:00 ora_mman_orcl
oracle    6891  0.0  3.1 963060 65828 ?        Ss   18:17   0:00 ora_dbw0_orcl
oracle    6893  0.0  1.6 976056 34380 ?        Ss   18:17   0:00 ora_lgwr_orcl
oracle    6895  0.0  0.8 961016 17264 ?        Ss   18:17   0:00 ora_ckpt_orcl
oracle    6897  0.0  4.2 963208 88620 ?        Ss   18:17   0:00 ora_smon_orcl
oracle    6899  0.0  0.8 960504 17544 ?        Ss   18:17   0:00 ora_reco_orcl
oracle    6901  0.0  2.9 965284 61748 ?        Ss   18:17   0:00 ora_mmon_orcl
oracle    6903  0.0  0.8 960504 16644 ?        Ss   18:17   0:00 ora_mmnl_orcl
oracle    6905  0.0  0.6 961080 12748 ?        Ss   18:17   0:00 ora_d000_orcl
oracle    6907  0.0  0.5 961068 12312 ?        Ss   18:17   0:00 ora_s000_orcl
oracle    6917  0.0  1.1 962052 23184 ?        Ss   18:17   0:00 ora_fbda_orcl
oracle    6919  0.0  0.6 960504 12880 ?        Ss   18:17   0:00 ora_smco_orcl
oracle    6921  0.0  0.8 960504 16760 ?        Ss   18:17   0:00 ora_qmnc_orcl
oracle    6935  0.0  1.2 967312 25428 ?        Ss   18:17   0:00 ora_w000_orcl
oracle    7011  0.0  1.6 965128 34660 ?        Ss   18:17   0:00 ora_cjq0_orcl
oracle    7013  0.0  1.3 962072 28596 ?        Ss   18:17   0:00 ora_q000_orcl
oracle    7015  0.0  0.9 960500 18984 ?        Ss   18:17   0:00 ora_q001_orcl
oracle    9852  3.3  9.3 918012 194428 pts/1   Sl   18:18   0:30 /ext/oracle/app/or
oracle    9935  0.0  1.5 962128 32292 ?        Ss   18:18   0:00 oracleorcl (LOCAL=
oracle    9939  0.0  1.7 963172 35360 ?        Ss   18:18   0:00 oracleorcl (LOCAL=
oracle   10381  0.0  2.3 964172 47904 ?        Ss   18:18   0:00 oracleorcl (LOCAL=
oracle   10384  3.6  4.3 973416 90640 ?        Ss   18:18   0:32 oracleorcl (LOCAL=
oracle   10387  0.0  2.5 963180 51980 ?        Ss   18:18   0:00 oracleorcl (LOCAL=
oracle   10390  0.0  1.5 962104 32288 ?        Ss   18:18   0:00 oracleorcl (LOCAL=
oracle   10394  0.0  2.5 963156 52124 ?        Ss   18:18   0:00 oracleorcl (LOCAL=
oracle   10397  0.0  2.0 963152 43256 ?        Ss   18:18   0:00 oracleorcl (LOCAL=
oracle   11826  0.1  1.2 962084 25372 ?        Ss   18:33   0:00 ora_j000_orcl

[/ext/oracle/app/oracle]# du -sm *
1       admin
1       cfgtoollogs
3       diag
1       flash_recovery_area
1613    oradata
3417    product

The database obviously needs quite a lot of resources to run, so be sure to install it on an adequate machine (at least 1GB RAM, 10GB of free disk space and so on...). Happy hacking!

Related:
Oracle10g on Debian Linux HOWTO

Posted by 1010
02.Oracle/DataBase2008. 7. 14. 12:13
반응형
페도라6, 페도라8에서 성공하였습니다..
기본적으로 오라클 홈페이지에 있는 설치 방법을 기반으로 성공하였습니다..

http://www.oracle.com/technology/global/kr/pub/articles/smiley_10gdb_install.html

인터넷에 올라온 경험담들이 다 비슷비슷하지만...필요없는 부분들도 상당히 많았네요(고생한이유;;).

그럼 시작해 보겠습니.

 

1. 커널 버전의 요구사항을 확인한다.


Oracle Database 10g의 커널 버전 요구사항은 2.6.9-5.Elsmp 사용자는 이것과 동일하거나 이후의 버전이어야 합니다.


#uname -r //명령어로 확인


2. 페도라의 패키지 적용상태를 확인한다.


기본적으로 패키지들은 설치가 되어있지만 저같은 경우 몇개가 없어 설치를 하였습니다.


#rpm -q gcc make binutils setarch compat-db compat-libgcc-296  compat-libstdc++-296 \

compat-libstdc++-33 glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel \

libgcc libgcc++ libstdc++-devel openmotif21 libXp // 확인가능하다.

저는 위에서 3갠가 4개정도만 추가로 설치하였는데 openmotif21패키지는 #yum install명령어로 설치가 안됩니다.

http://www.superuser.co.kr/home/search/?select=rpmView&no=14559 // 리눅스포털사이트

에 가셔서 openmotif21-2.1.30-14.i386.rpm으로 컴퓨터환경에 맞는 패키지를 다운 받으시고 설치하세요.(libXp도같이깔리는거같았음..아마도..)


ex)페도라8에서는 setarch, libgcc++이 안깔려요..


3. 시스템 요구사항 확인


최소 메모리 요구사양 512MB, swap 공간의 최소 요구사항 1GB..

이건 거의다 통과할꺼라 생각됨...컴퓨터들이 좋으니..저도 별로 바꾼게 없다는..


4. 오라클 그룹 및 사용자 계정 생성


오라클은 설치하기 위한 사용자 계정을 따로 만들어 두어야 합니다.

#groupadd dba // 그룹생성

#useradd -g dba oracle // 사용자 계정

#passwd oracle // 비번 설정

#id oracle // 확인..


5. Linux커널 매개변수의 설정


커널 매개변수를 변경해 주어야 하는데 시스템이 아래 명시된 것보다 높다면 변경하지 않아도 된다고

했지만..저는 변경을 했습니다..

#vi /etc/sysctl.conf // 를 열어 맨 아래에 다음을 입력합니다.

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000


6. oracle 사용자 계정의 Shell Limit 설정


오라클은 리눅스 계정 별로 실행되는 프로세스와 열린 파일의 수를 제한한데요...

#vi /etc/security/limits.conf // 열고 맨아래에 입력

oracle    soft    nproc    2047

oracle    hard   nproc    16384

oracle    soft    nofile     1024

oracle    hard   nofile     65536


7. oracle 계정을 위한 환경변수


설정해야되는 환경변수에는 ORACLE_BASE, ORACLE_HOME, ORACLE_SID, PATH임

오라클 계정으로 접속한후에 위에있는 환경변수들을 입력해줍니다.

#su oracle

#vi .bash_profile // 열고 맨 아래에 입력

ORACLE_BASE=/home/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.1.0/Db_1; export ORACLE_HOME

ORACLE_SID=ORCL; export ORACLE_SID                    // 데이터베이스이름인건알죠?

PATH=$PATH:$ORACLE_HOME/bin; export PATH


저는 환경변수를 오라클 설치한 후에 설치한 경로를 확인해서 입력했어요. (추천..)



8. 운영체제의 버전 검증


오라클 데이터베이스 10는 10.1.0.3의 Installer는 RHEL4가 지원 가능한 버전임을 인식하지 못합니다.

#vi /etc/redhat-release // 열고 변경한다

Red Hat Enterprise Linux AS release 3 (Taroon)


9. 오라클의 설치


이제 설치를 시작할껀데요..오라클 계정으로 접속한담에 오라클10g를 다운받아야합니다.

http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/linuxsoft.html

위에 오라클 홈피에서 ship.db.cpio.gz를 설치할 폴더에 다운받습니다. 저는 /home/oracle에 바로 다운받았답니다.

#su oracle // 오라클 계정으로 접속합니다. root에서 다운받고 알맞은 폴더로 복사해도되요~

#gunzip ship.db.cpio.gz // 압축품 그럼 ship.db.cpio로 풀림

#cpio -idmv < ship.db.cpio // 또 압축품...그럼 Disk1이란 폴더가 생김

#cd Disk1 // 이동하구

#./runInstaller // 오라클 설치를 시작합니다..


ex) 페도라8에서는 추가적으로 자바어쩌구 에러가 한개나올지도 모르는데요..

그럴때는 페도라 패치를 모두 깔아주셔야 된데요~


여기에서 실행이 안되면 아마 호스트 문제일껍니다.. root로 가셔셔 xhost +한번해주세요~

그런데 오라클 설치화면에서 글씨가 깨져서 보일껍니다...

#export LANG=C // 깨진글씨가 잘보입니다.

자 그럼 설치화면이 잘될겁니다~ 설치방법은 패스~ 설치 중간에 orainstRoot.sh 스크립트를 root로 실행하라고 창이하나 뜰겁니다..무시하지말고 새로운 터미널하나 열어서 root로 실행한담에 넘어가시구요. 설치마지막에도 root.sh를 root로 하라고 창이또뜹니다..그럼 다시 해주시고...워링이나 에러나 창뜨는것들 무시하지 마시고 잘읽어보심 방법을 알겁니다..


sqlplus 사용하려는데 shared_pool_size관련 에러가 생긴다면 에러메시지를 확인하여

요구하는 shared_pool_size를 찾아 오라클이 깔린 디렉토리로 이동하면 dbs라는 폴더가 있습니다.

그폴더에 initORCL.ora파일을 열어서 shared_pool_size를 변경시키면 잘될겁니다~

Posted by 1010
90.개발관련문서2008. 7. 14. 09:32
반응형
회사에서 인터넷속도가 느려서, 집에서 쓰는 광랜을 이용해서.. oracel dmp 파일을 다운받았다.

무려 6GB 다운 받은 파일을 회사컴퓨터(노트북)에 복사하기 위해, 예전에 쓰던 외장하드(20G)에 복사

를 시켰다.


엥` 용량이 꽉차거나, 더이상 복사를 없다고 한다. 이런 어처구니....

외장하드에 모든 파일을 지우고 다시, 복사 ...

엥~ 또 똑같은 에러가 발생....

아~ 짜증.... 인터넷을 뒤지기 시작했다.

이런~ 어처구니 없는 에러....

원인은 FTA32 로 예전에 외장하드를 포멧해놨던 것이다. FTA32는 4GB이상 파일을 인식하지 못한다.

NTFS 로 빠른포멧을 하고 복사 하니.성공...

젠장 2시간이나 삽질을 했다....
Posted by 1010
02.Oracle/DataBase2008. 7. 14. 09:26
반응형
oracle9i에 bissa_back이라는 user가 없어서 발생하는 문제입니다.
import 하시기 전에
user를 생성하시고 해당 user에 대한 필요한 Role을 주시고
특정 tablespace에 table을 생성하실려면 Quota을 지정하셔야 겠죠.

----------------------------------------------------
안녕하세요...
전 윈도우에 9i를 설치해서 하고 있습니다..
그런데, 8i에서 엑스포트한 파일을 9i에서 임포트할려고 하는데 되지 않네요..
9i에서는 사용자, 사용자 권한, 테이블 스페이스만 만들었고요..
임포트 실행하면 이런 메세지가 나옵니다..

실행명 :>
C:\>imp userid=system/manager file=d:\oracle\test.dmp fro
muser=bissa touser=bissa_back;

. BISSA 객체를 BISSA_BACK;(으)로 임포트하는 중입니다.
"ALTER SESSION SET CURRENT_SCHEMA= "BISSA_BACK;""
IMP-00003 : ORACLE 오류 1435 가 발생했습니다..
ORA-01435 : 사용자가 존재하지 않습니다.
IMP-00000 : 임포트가 실패로 끝났습니다.
Posted by 1010
반응형
Posted by 1010
반응형
Posted by 1010
반응형
Posted by 1010