'(DB) Oracle/설치.초기.삭제'에 해당되는 글 13건

  1. 2017.01.18 Oracle - DB_Shutdown_Start
  2. 2017.01.18 Oracle - [Win2000]_삭제
  3. 2017.01.18 Oracle - Archive log mod 설정방법
  4. 2017.01.18 Oracle - SGA 설정
  5. 2017.01.18 Oracle - 권한
  6. 2017.01.18 Oracle - 보안(Security)
  7. 2017.01.18 SID(Net Configuration Assistant
  8. 2017.01.18 [Win2000]_8i_Setup
  9. 2017.01.18 10g EM] 2. Oracle Database 설치화면
  10. 2017.01.18 [RedHat]_9i_Setup

[ Oracle - DB_Shutdown_Start ]

 

dos prompt

 

c:>telnet 210.100.25.72

 

login : oracle

password : oracle00

 

sfadb2:/home/oracle>sqlplus /nolog

 

SQL>connect  / as sysdba

 

SQL>shutdown abort

 

SQL>startup

 

SQL>

---OK---

'(DB) Oracle > 설치.초기.삭제' 카테고리의 다른 글

Oracle - [Win2000]_삭제  (0) 2017.01.18
Oracle - Archive log mod 설정방법  (0) 2017.01.18
Oracle - SGA 설정  (0) 2017.01.18
Oracle - 권한  (0) 2017.01.18
Oracle - 보안(Security)  (0) 2017.01.18
Posted by 농부지기
,

Windows2000에서 오라클 완전히 삭제 하기

 

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

 

우선 오라클 시디를 넣어서  Oracle Universal Installer를 실행합니다

 

제품 설치 해제 버튼을 눌러서 오라클을 삭제 합니다.

 

이렇게 오라클을 삭제해도 오라클은 완전히 지워지지 않습니다.

 

 

오라클을 완전히 삭제하기 위해서는 Registry를 삭제해야 합니다.

 

 

 

먼저 오라클 서비스를 멈추어야 합니다.

 

NT4의 경우는 제어판 -> 서비스를 보시면 되며

 

윈도2000 서버의 경우는 관리도구 -> 서비스 를 보시면 됩니다.

 

 

오라클 관련되어 시작됨 이라고 되어 있는 서비스들을 모두 멈추시구요..

 

그후 regedit으로 레지스트리를 편집하시면 됩니다.

 

 

regedit을 실행 시키시고...

 

HKEY_LOCAL_MACHINE->SYSTEM->CurrentControlSet->Services

 

 

에 보시면 Oracle 로 시작되는 것들이 있는데요 이부분을 전부 지워주시고요,

 

다음은

 

HKEY_LOCAL_MACHINE->SOFTWARE->ORACLE

 

부분을 전부 지워주세요...

 

 

그런후 컴퓨터를 재부팅 하시고.. 윈도 탐색기를 이용해 물리적으로 존재하던 오라클

디렉토리를 삭제하시면 됩니다.

 

'(DB) Oracle > 설치.초기.삭제' 카테고리의 다른 글

Oracle - DB_Shutdown_Start  (0) 2017.01.18
Oracle - Archive log mod 설정방법  (0) 2017.01.18
Oracle - SGA 설정  (0) 2017.01.18
Oracle - 권한  (0) 2017.01.18
Oracle - 보안(Security)  (0) 2017.01.18
Posted by 농부지기
,

                          [ Archive log mod 설정방법 ]     

Archive log mode 설정방법

 

* log mode 상태 확인
$ sqlplus "/ as sysdba"

SQL> archive log list


1. parameter 수정  
initSID.ora에서 아래 부분을 주석(#) 제거하고 저장합니다.
 
9i 일 경우
log_archive_start = true
log_archive_dest_1 = "location=/oracle/oradata/ORCL/archive reopen=60"   (
아카이브파일의 경로)
log_archive_format = %s.arc
 
10g 일 경우
log_archive_dest_1 = "location=/oracle/oradata/ORCL/archive reopen=60"   (아카이브파일의 경로)
log_archive_format = %t_%s_%r.arc
 
2. DB shutdown
SQL> shutdown immediate
 
3. startup mount
SQL> startup mount
 
4. LOG MODE 변경
SQL> alter database archivelog;
 
5. DB open
SQL> alter database open;
 
6. DB shutdown
SQL> shutdown immediate
가능하다면 시점에서 DB Shutdown   cold backup 받고 사용하세요.
 
 *확인
 SQL> ALTER SYSTEM SWITCH LOGFILE;
 
설정한 경로에 아카이브 파일이 생성되었는지 확인한다.

SQL> !ls /oracle/oradata/ORCL/archive

 

'(DB) Oracle > 설치.초기.삭제' 카테고리의 다른 글

Oracle - DB_Shutdown_Start  (0) 2017.01.18
Oracle - [Win2000]_삭제  (0) 2017.01.18
Oracle - SGA 설정  (0) 2017.01.18
Oracle - 권한  (0) 2017.01.18
Oracle - 보안(Security)  (0) 2017.01.18
Posted by 농부지기
,

                           [ Oracle 10g SGA 메모리 설정 ]

☞ Oracle 10g SGA 메모리 설정

 

; 오라클을 설치하고 메모리를 튜닝(최소화)하려고 보니 10g부터는 SGA_TARGET 파라메타를 이용해서
  쉽게 설정할 수 있는 방법이 있다.

  Oracle 10g는 SGA_TARGET 파라메타를 설정하면 나머지 값들을 적절하게 자동으로 설정해준다.


☞ Oracle 9i

 

; Oracle 9i에서 SGA메모리를 설정하려면 shared_pool_size, log_buffer, java_pool_size,   large_pool_size, buffer_cache_size등의 파라메타를 계산을 해서 설정해야한다.

 
☞ 10g SGA 메모리 설정 예제

 

문제) 총 메모리를 160M로 설정하는 방법이다

C:/> sqlplus sys as sysdba
SQL> show parameter sga
NAME                        TYPE                     VALUE
-------------------------   ----------------------   ------------------------
lock_sga                    boolean                  FALSE
pre_page_sga                boolean                  FALSE
sga_max_size                big integer              160M
sga_target                  big integer              160M

SQL> show sga
Total System Global Area  
167772160 bytes
Fixed Size                  1247876 bytes
Variable Size              71304572 bytes
Database Buffers           88080384 bytes
Redo Buffers                7139328 bytes

SQL>
alter system set sga_target=160M scope=both;
시스템이 변경되었습니다.

% --------------------------------------
   SQL>
alter system set sga_max_size=320M scope=both;
   alter system set sga_max_size=320M
   ORA-02095: 지정된 초기화 매개변수를 수정할 수 없습니다
   ==>
   sga_max_size 는 static 파라미터이므로 변경이 불가능하다.
   아래와 같이 spfile 에서 수정후 오라클을 재 시작함.

   alter system set sga_max_size = 320M scope = spfile;


☞ Redhat AS3.0  에서 SGA설정예제

 

문제) [Redhat AS3.0] SGA를 1.7G 이상 설정하는 방법 
       Advanced Server 3.0 에서 SGA를 1.7G 이상 설정하는 방법

장비명: HP DL XXX
CPU: 4장
Memory: 8G
Disk: 73G * XX개
OS: Redhat Advanced Server 3.0
Oracle Version: 9.2.0.4.0
 
문제상황 :
init.ora 파라메터에서 SGA값을 증가시킨다 하더라도 원하는대로 DB가 startup 되지 않는다.
/etc/sysctl.conf 에서 shmmax 를  2G 이상으로 설정했는데...-_-;;
 
ORA-27123: unable to attach to shared memory segment.
 
해결방법:
오타는 곤란하니까 복사하기 붙여넣기 하세요~
오라클 유저에서 하시면 됩니다.
 
    $ cd $ORACLE_HOME/rdbms/lib

     $ cp ksms.s ksms.s_orig      (만약 ksms.s 가 존재하면 먼저 백업한다. 실제로는 없었음.)

    $ genksms -s 0x15000000 > ksms.s     

    $ make -f ins_rdbms.mk ksms.o 

    $ make -f ins_rdbms.mk ioracle 

이렇게 하신 다음 DB를 startup 하시면 SGA 크기를 1.7G 이상으로 설정 하실 수 있습니다.




 

 

 

'(DB) Oracle > 설치.초기.삭제' 카테고리의 다른 글

Oracle - [Win2000]_삭제  (0) 2017.01.18
Oracle - Archive log mod 설정방법  (0) 2017.01.18
Oracle - 권한  (0) 2017.01.18
Oracle - 보안(Security)  (0) 2017.01.18
SID(Net Configuration Assistant  (0) 2017.01.18
Posted by 농부지기
,
              [  권한  ]     

☞ 시한편

 

Procedure DEBUG권한

GRANT DEBUG CONNECT SESSION TO KLHRADM;

     

 

'(DB) Oracle > 설치.초기.삭제' 카테고리의 다른 글

Oracle - Archive log mod 설정방법  (0) 2017.01.18
Oracle - SGA 설정  (0) 2017.01.18
Oracle - 보안(Security)  (0) 2017.01.18
SID(Net Configuration Assistant  (0) 2017.01.18
[Win2000]_8i_Setup  (0) 2017.01.18
Posted by 농부지기
,

                                [ Security ]

☞ DataBase Security 종류

 

ㅇ Privileges(권한) : 특정한 SQL문장을 수행하거나 특정 Object에 허가된 작업을 위미함
ㅇ Role(역할)       : 권한 부여와 접근제어 관리를 손쉽게 하기 위해 연관된 권한들의 집합을
                      묶어서 정의해 놓은 것
ㅇ Schema           : Table, View, Sequence, Procedre, Function 등의 오브젝트들의 집합

 

Privileges

 

(1) System Privileges
ㅇ 새로운 사용자의 생성 : CREATE USR 사용자명 IDENTIFIED BY 암호 ;
ㅇ 기존 사용자의 삭제 : DROP USER 사용자명 [CASCADE] ;
ㅇ 사용자 암호 변경 : ALTER USER 사용자명 IDENTIFIED BY 암호;
ㅇ 시스템 권한 부여 및 박탈
    - 부여 :
GRANT [권한 , ... ] TO 사용자 [,사용자 ...] ;
    예시 ) GRANT create table, create view, create sequence
              
TO scott ;
    - 박탈 :
REVOKE [권한 , ... ] TO 사용자 [,사용자 ...] ;
    예시 ) REVOKE  create sequence
             
FROM scott ;

(2) Object Privileges
ㅇ 사용법
   GRANT 권한 [(컬럼명)] [ 권한 ...|ALL ]
   ON Object명
   TO 사용자 | ROLE | PUBLIC [, 사용자...」
   [WITH GRANT OPTION ] ;

   REVOKE 권한 [(컬럼명)] [ 권한 ...|ALL ]
   ON Object명
   FROM 사용자 | ROLE | PUBLIC [, 사용자...」 ;

※ WITH GRANT OPTION으로 부여된 권한을 회수하면 그 권한을 받은 다른 사용자에게서도 권한이
   회수됨
예시 ) SQL>
GRANT   select , insert(id,name)  ON   s_emp   TO    usera , userb ;


 

Role 

 

1. 정의 : 사용자에게 허가할 수 있는 관련된 Privilege의 그룹

(1) Role 의 생성 : CREATE ROLE role이름 ;
예시 ) SQL>  
CREATE ROLE create_obj ;
       SQL>  
GRANT create table, create view TO create_obj ;
       SQL>  
GRANT create_obj TO usera, userb ;

 

☞ Schema
   
 

 

'(DB) Oracle > 설치.초기.삭제' 카테고리의 다른 글

Oracle - SGA 설정  (0) 2017.01.18
Oracle - 권한  (0) 2017.01.18
SID(Net Configuration Assistant  (0) 2017.01.18
[Win2000]_8i_Setup  (0) 2017.01.18
10g EM] 2. Oracle Database 설치화면  (0) 2017.01.18
Posted by 농부지기
,

[SID(Net Configuration Assistant]

 

 

 

db server에 설치 되어 있는 [ SID ]  name

'(DB) Oracle > 설치.초기.삭제' 카테고리의 다른 글

Oracle - 권한  (0) 2017.01.18
Oracle - 보안(Security)  (0) 2017.01.18
[Win2000]_8i_Setup  (0) 2017.01.18
10g EM] 2. Oracle Database 설치화면  (0) 2017.01.18
[RedHat]_9i_Setup  (0) 2017.01.18
Posted by 농부지기
,

[ [Win2000]_8i_Setup ]

 

*********************************************************************************************

 OracleClub.com

 작 성 일     2002/04/28 조 회 수 1733  

 제    목    Pentium4(Win 2000)에서 오라클 8.1.7이나 8.1.6을 Install   

 내     용       프린트      

*********************************************************************************************

방법1 ] Pentium4(Win 2000)에서 오라클 8.1.7이나 8.1.6을 Install  

*********************************************************************************************

 

pentium4에서는 오라클 8.1.7이나 8.1.6을 install할려고 하면 처음 autorun에서 화면이뜨고

install을 하면 화면이 죽어버립니다.

 

이유는 기존 8.1.7이나 8.1.6에는 jRE1.1.7이 들어 있는데 이것이 문제인거 같습니다.

 

SUN사 측에서도 pentium4를 쓸경우는 jre1.1.8이상을 쓰라고 되어 있습니다.

 

해결방안은 우선

 

1. 기존 가지고 있는 CD를 CD-ROM에 삽입해서 깔 수는 없습니다. CD의 전부를 하드에 하드

copy 하십시요.

 

2. http://ofs.gwu.edu/ofs/application/req.html 사이트에 가셔서 symcjit.dll를 다운받으십시오

   <<symcjit.dll 다운로드>>

          --> http://211.59.12.154:8080/files/etc/symcjit.dll

 

3. 하드에 옮겨놓은 오라클 폴더에 들어가서

stage/Components/oracle.swd.jre/1.1.7.30/1/DataFile/Expanded/jre/win32/bin

디렉토리로 가셔서 다운받으신 파일(symcjit.dll)을 엎어치십시요

 

그리고 처음부터 다시 실행하시면 문제없이 잘 됩니다.

 

otn.oracle.co.kr/forum 참고

 

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

@@ 설치 완료 후 : Windows 시작메뉴나 Windows  데스크탑에서

   항목을 작성할 수 없습니다.

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

@@ 라는 메세지가 나와도 상관 없음  @@

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

 

 

 

*********************************************************************************************

오류1] java.exe 오류가 발생합니다.

*********************************************************************************************

 

1. 오라클 원본에서 java.exe 를 찾아서 (약 5kbyte)  

 

2. 오라클 이 설치 되어 있는 곳에서 검색으로 java.exe 를 찾으면

   두곳이 발견됨.

   발견 된 2개의 java.exe(약 20kbyte) 를  모두 1번에서 찾은 java.exe로 대치 시킴.

 

3. 그런 후 재부팅

'(DB) Oracle > 설치.초기.삭제' 카테고리의 다른 글

Oracle - 보안(Security)  (0) 2017.01.18
SID(Net Configuration Assistant  (0) 2017.01.18
10g EM] 2. Oracle Database 설치화면  (0) 2017.01.18
[RedHat]_9i_Setup  (0) 2017.01.18
RedHat 7.3 + Oracle 9i Database (9.2.0.1.0) 설치  (0) 2017.01.18
Posted by 농부지기
,

                     [ [10g EM] 2. Oracle Database 설치화면 ]     

☞ [10g EM] 2. Oracle Database 설치화면

 

If you choose to install software only and later create a database, or if you want to create additional databases using the release software that you just installed, you
can do so by using the Database Configuration Assistant (DBCA).

Follow the steps below to create a database:
1. Log onto your computer as a member of the administrative group that is authorized to install
    Oracle software and create and manage the database.
2. Launch the DBCA on a Windows operating system as follows:
   Start > Programs > Oracle - home_name > Configuration and Migration Tools >
   Database Configuration Assistant
   Launch the DBCA on a UNIX operating system by entering the following at a command prompt:
  dbca
3.
The Welcome page appears. Click Next.
    

 

4. Select Create a Database on the Operations window to begin an interview that enables you to configure and create a database. Click Next
    



5. On the Database Templates page, select the type of database template to be used in creating the database. You can click Show Details to see the configuration for each type of database. Choose the template suited to the type of workload your database will support. If you are not sure, select the default General Purpose template. Click Next
   


6. On the Database Identification page, enter the Global Database Name and SID. Click Next
   



7. The Management Options page appears. To use Enterprise Manager, select Configure the Database with Enterprise Manager. Select Use Database Control for Database Management to manage your database locally or select Use Grid Control for Database Management as appropriate to your configuration. Click Next
   



8. Enter passwords for the administrative users. Click Next
   



9. Select File System, Automatic Storage Management, or Raw Devices as appropriate to your environment. Click Next
   



10.Specify the location for the creation of the datafiles. Choose one of the following:Use Database File Locations from Template, Use Common Location for All Database Files, or Use Oracle-Managed Files. Click Next
   



11.Select Flash Recovery Area and specify a directory location and size. Select Enable Archiving to place your database in ARCHIVELOG mode. Click Next
   



12.Click the Sample Schemas tab. Select Sample Schemas if you want to include the Sample Schemas (
EXAMPLE) tablespace in your database. Click the Custom Scripts tab
  



13. Specify one or more SQL scripts to be run after your database is created if required in your environment. Otherwise, accept the default No scripts to run. Click Next
   

14. The Memory page appears. Select Typical and enter a percentage value. Click the Sizing tab
   

15. The Sizing page appears. Specify the smallest block size and the maximum number of operating system user processes that can simultaneously connect to the database.

Note: You cannot specify the block size if you are using a template.

Click the Character Set tab.
   

16. The Character Set page appears. Select the character set for your database. Click the Connection Mode tab
    

17.The Connection Mode page appears. Select Dedicated Server or Shared Server as appropriate for your environment. Click Next
   

18. The Database Storage page appears. Accept the configuration or make changes as needed. Click Next.
   

19. Select Create Database to create your database. You can also select Save as a Database Template to save your configuration. Click Finish.
   

20. At the Confirmation window, confirm the options that will be installed and click OK
   

21. Your database is now being created
   

22. After the database is created, you can change or unlock your passwords or click Exit
   

 


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

출처: http://www.oracle.com/technology/obe/2day_dba/install/install.htm

 

Posted by 농부지기
,

 [[RedHat]_9i_Setup]

 

 

   [정보] 한컴리눅스2.2(레드헛7.2)에 오라클9i 설치하기

이글은 www.hancom.com의 Tip & Tech 란에 박형국 님이

올리셨던 글에 일부 사항을 추가 한것임을 밝히는 바입니다.

 

 

Linux Install시 스왑 파티션을 1기가 정도로 잡아줘야 합니다.

(제 경우엔 2G를 잡았습니다)

실제 메모리는 256 정도만 되어도 Install은 가능하구요....

 

먼저 오라클을 다운 받아야겠죠?

http://otn.oracle.com/software/products/oracle9i/htdocs/linuxsoft.html 에서 Linux9i_Disk1.cpio.gz, Linux9i_Disk2.cpio.gz, Linux9i_Disk3.cpio.gz를 다운받아 /usr/local에 저장합니다.

 

그다음 필요한것들입니다.

미리 /usr/local에 받아두시면 작업이 편리하실겁니다.

jdk118_v3-glibc-2.1.3.tar.bz2

==> http://www.blackdown.org

binutils-2.10.0.18-1.i386.rpm

==>ftp://ftp.redhat.com/pub/redhat/linux/7.0/en/os/i386/RedHat/RPMS/binutils-2.10.0.18-1.i386.rpm

binutils-2.11.90.0.8-9.i386.rpm

ftp://ftp.redhat.com/pub/redhat/linux/7.2/en/os/i386/RedHat/RPMS/binutils-2.10.0.18-1.i386.rpm

 

 

 

그럼 설치를 시작합니다.

설치하기 전에 선행작업을 해야 합니다.

Root로 로그인 해서 X-window에서 작업합니다.

 

Linux9i_Disk1.cpio.gz

Linux9i_Disk2.cpio.gz

Linux9i_Disk3.cpio.gz

 

요3개 파일을 /usr/local 밑에 다운 받아서 압축을 풀면 .cpio파일이 생깁니다.

# gunzip Linux9i_Disk1.cpio.gz Linux9i_Disk2.cpio.gz Linux9i_Disk3.cpio.gz

 

# cpio -idmv<Linux9i_Disk1.cpio

# cpio -idmv<Linux9i_Disk2.cpio

# cpio -idmv<Linux9i_Disk3.cpio

 

이렇게 실행하면 Disk1,Disk2,Disk3 이라는 디렉토리가 생깁니다.

디렉토리 생성을 확인하신후엔 cpio파일들을 삭제해주시는게 좋겠죠?

 

자바 jdk를 설치합니다.

#tar -xvjf jdk118_v3.tar.bz2 -C /usr/local

 

자바의 홈 디렉토리(/usr/local/jdk118_v3)를 /usr/local/java <== 요디렉토리로 심볼릭 링크합니다.

 

#ln -s /usr/java/jdk1.3.1 /usr/local/java

 

커널 파라메터 수정

#cd /proc/sys/kernel

#cat sem 하면

250 32000 25(?) 128 이렇게 나올겁니다.이걸 수정하는겁니다.

#echo 250 32000 100 128 > sem

 

binutil을 Downgrade합니다.

#cd /usr/local

#rpm -Uvh --force --nodeps binutils-2.10.0.18-1.i386.rpm

 

 

# groupadd oinstall

# groupadd dba

# useradd -g oinstall -G dba oracle

# passwd oracle

 

요렇게 해서 oracle 유져를 생성합니다.

 

#rpm -qa|grep apache

 

요렇게 해서 나온 패키지들을 모두 삭제합니다.

의존성 문제로 여러 패키지들이 나올건데 모두 삭제합니다.

 

#deluser apache

 

apache유저 그룹을 삭제합니다.

 

# groupadd apache

# useradd -g oinstall -G apache  apache

# passwd apache

 

apache유저 그룹을 생성합니다.

 

# mkdir /home/oracle/product

# mkdir /home/oracle/product/9.0.1

# chown -R oracle.oinstall /home/oracle/*

# mkdir /var/opt/oracle

# chown oracle.dba /var/opt/oracle

 

이렇게 해줍니다.

 

그 다음에는 oracle 유저로 다시 로그인 합니다.

X윈도우를 실행합니다.   

 

$vi /home/oracle/.bash_profile 하면 파일이 하나 열리는데

맨 아래에 다음과 같이 써줍니다.

 

#oracle 9i

export ORACLE_HOME=/home/oracle/product/9.0.1

export ORACLE_BASE=/home/oracle

export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data

export ORACLE_TERM=xterm

export PATH=$PATH:$ORACLE_HOME/bin:/usr/local/java/bin

export TNS_ADMIN=$ORACLE_HOME/config

 

# change this NLS settings to suit your taste

# or don't put anything and fall back to

# american NLS settings

export NLS_LANG=AMERICAN_AMERICA.KO16KSC5601

 

if [ -z $LD_LIBRARY_PATH ]

then

    export LD_LIBRARY_PATH=$ORACLE_HOME/lib

else

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib

fi

if [ -z $CLASSPATH ]

then

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

    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib

    export CLASSPATH

else

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

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

    export CLASSPATH

fi

 

그 다음   

 

$source /home/oracle/.bash_profile

이렇게 실행합니다.

 

$/usr/local/Disk1/runInstaller

이렇게 해주면 GUI환경의 Install 화면이 나타납니다.

하라는데로 해주면 되고 모르는 것은 디폴트로 하고 설치하면 됩니다.

설치과정에서 UNIX사용자 그룹인가 뭔가는 dba라고 해주고

전역 Database이름(오라클 SID)은 ORCL이라고 하고 기분나쁘면 아무거나 좋은걸루 합니다.

설치 중간에 orainstRoot.sh를 root권한으로 실행하라고 합니다.

그러면 커널창을 하나 여시고

#su 하셔서 root권한으로 로그인하셔서

#/tmp/orainstRoot.sh 해주시면 파일권한이 바뀝니다.

오라클 설치창으로 계속 진행을 합니다.

jdk Home은 /usr/local/java로 해주시면 됩니다.

 

파일 진행율이 81% 에서 멈춰있는것처럼 보입니다.

그냥 나두시면 됩니다.

100%진행이 되고나서 Oracle Net Configuration Assistant가 진행되다가 멈출겁니다.그러면 중단을 하시고 아래의 두개부터 먼저 작업을 하고 두개가 완료된후 Net Configuration Assistant를 다시 실행시키시면 됩니다.

 

설치가 끝나면 다시 root로 로그인해서 아까 Downgrade한 걸 다시 Upgrade합니다.

#cd /usr/local

#rpm -Uvh binutils-2.11.90.0.8-9.i386.rpm

 

다시 oracle계정으로 로그인 합니다.

 

$export ORACLE_SID=ORCL 이렇게 한번 때려주고 매번 때리기 힘드니깐

$vi /home/oracle/.bash_profile 해서 맨 밑줄에 export ORACLE_SID=ORCL 요걸 추가합니다.요기서 ORCL은 아까 Install할때 오라클 SID로 넣은것을 넣어야 겠죠?

 

$vi /etc/oratab 이렇게 해서 파일을 열고

orcl:/home/oracle/product/9.0.1:Y 이렇게 바꿔 줍니다.

 

설정이 다 끝났습니다. 그럼 DB를 Start하겠습니다.

 

$dbstart

 

이렇게 시작하고

 

$dbshut

 

이렇게 종료합니다.

 

실행예)

 

[oracle@hangirl oracle]$ dbstart

 

SQL*Plus: Release 9.0.1.0.0 - Production on Sri O푫 27 10:11:37 2002

 

(c) Copyright 2001 Oracle Corporation.  All rights reserved.

 

SQL> Connected to an idle instance.

SQL> ORACLE instance started.

 

Total System Global Area  336356520 bytes

Fixed Size                   279720 bytes

Variable Size             268435456 bytes

Database Buffers           67108864 bytes

Redo Buffers                 532480 bytes

Database mounted.

Database opened.

SQL> Disconnected from Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production

With the Partitioning option

JServer Release 9.0.1.0.0 - Production

 

Database "ORCL" warm started.

[oracle@hangirl oracle]$

 

[oracle@hangirl oracle]$ dbshut

 

SQL*Plus: Release 9.0.1.0.0 - Production on Sri O푫 27 10:14:22 2002

 

(c) Copyright 2001 Oracle Corporation.  All rights reserved.

 

SQL> Connected.

SQL> Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> Disconnected from Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production

With the Partitioning option

JServer Release 9.0.1.0.0 - Production

Database "ORCL" shut down.

[oracle@hangirl oracle]$

 

다시 dbstart 해서 접속해보세요~~

 

$sqlplus system/manager

 

실행예)

 

[oracle@hangirl oracle]$ sqlplus system/manager

 

SQL*Plus: Release 9.0.1.0.0 - Production on Sri O푫 27 10:18:18 2002

 

(c) Copyright 2001 Oracle Corporation.  All rights reserved.

 

 

Connected to:

Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production

With the Partitioning option

JServer Release 9.0.1.0.0 - Production

 

SQL>

 

다들 성공하시길~~~~~~~

이글의 버그나 오타는 댓글 달아주세요 전화주셔두 되구요 (016-282-7167) 이 연락처는 박형국님의 연락처입니다.

 

참조 : http://staff.in2.hr/denis/oracle/901install_rh72_en.html

 

 

Posted by 농부지기
,