OL 7.6 RPM 방식 으로 Oracle 19c 를 설치 하 는 튜 토리 얼

호스트 이름 설정

[root@localhost ~]# cat /etc/hosts
127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4
::1     localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.0.11 study1.localdomain study1
[root@localhost ~]# cat /etc/hostname
study1.localdomain
환경 준비 도구 설치
사실 rpm 을 직접 설치 하면 의존 문 제 를 자동 으로 해결 할 수 있 습 니 다.환경 준비 도 구 를 포함 합 니 다.그러나 Oacle 사용 자 는 홈 디 렉 터 리 가 없 기 때문에 환경 준비 도 구 를 따로 설치 합 니 다.

[root@study1 /]# yum -y install oracle-database-preinstall-19c
Loaded plugins: langpacks, ulninfo
ol7_UEKR5                                                                                            | 2.5 kB 00:00:00  
ol7_latest                                                                                            | 2.7 kB 00:00:00  
(1/4): ol7_UEKR5/x86_64/updateinfo                                                                                | 49 kB 00:00:01  
(2/4): ol7_latest/x86_64/updateinfo                                                                               | 1.1 MB 00:00:05  
(3/4): ol7_UEKR5/x86_64/primary_db                                                                                | 5.7 MB 00:00:27  
(4/4): ol7_latest/x86_64/primary_db                                                                               | 19 MB 00:01:21  
Resolving Dependencies
(many more lines supressed)
Installed:
 oracle-database-preinstall-19c.x86_64 0:1.0-1.el7                                                                                  
Dependency Installed:
 compat-libcap1.x86_64 0:1.10-7.el7  compat-libstdc++-33.x86_64 0:3.2.3-72.el7  glibc-devel.x86_64 0:2.17-292.0.1.el7    glibc-headers.x86_64 0:2.17-292.0.1.el7  kernel-headers.x86_64 0:3.10.0-1062.el7 
 ksh.x86_64 0:20120801-139.0.1.el7   libaio-devel.x86_64 0:0.3.109-13.el7     libstdc++-devel.x86_64 0:4.8.5-39.0.1.el7 
Dependency Updated:
 glibc.x86_64 0:2.17-292.0.1.el7                   glibc-common.x86_64 0:2.17-292.0.1.el7                   libstdc++.x86_64 0:4.8.5-39.0.1.el7                  
Complete!
[root@study1 /]#
rhel 이나 centos 라면 preinstall rmp 패 키 지 를 손 으로 다운로드 한 다음 로 컬 설치(또는 Oacle Liux 의 yum 소스 를 추가 하여 yum 설치)

[root@study1 /]# curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
 % Total  % Received % Xferd Average Speed  Time  Time   Time Current
                 Dload Upload  Total  Spent  Left Speed
100 18204 100 18204  0   0 18037   0 0:00:01 0:00:01 --:--:-- 18059
[root@study1 /]# yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
Oacle 소프트웨어 설치

[root@study1 db]# yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm
Loaded plugins: langpacks, ulninfo
Examining oracle-database-ee-19c-1.0-1.x86_64.rpm: oracle-database-ee-19c-1.0-1.x86_64
Marking oracle-database-ee-19c-1.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-ee-19c.x86_64 0:1.0-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================================================================
 Package                         Arch                   Version                 Repository                               Size
========================================================================================================================================================================================================================
Installing:
 oracle-database-ee-19c                  x86_64                  1.0-1                  /oracle-database-ee-19c-1.0-1.x86_64                  6.9 G
Transaction Summary
========================================================================================================================================================================================================================
Install 1 Package
Total size: 6.9 G
Installed size: 6.9 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
 Installing : oracle-database-ee-19c-1.0-1.x86_64                                                                                 1/1
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-19c configure
 Verifying : oracle-database-ee-19c-1.0-1.x86_64                                                        1/1
Installed:
 oracle-database-ee-19c.x86_64 0:1.0-1                                                            
Complete!
[root@study1 db]#
oracle_home   /opt/oracle/product/19c/dbhome_1
데이터베이스 만 들 기

[root@study1 dbhome_1]# /etc/init.d/oracledb_ORCLCDB-19c configure
Configuring Oracle Database ORCLCDB.
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
 /opt/oracle/cfgtoollogs/dbca/ORCLCDB.
Database Information:
Global Database Name:ORCLCDB
System Identifier(SID):ORCLCDB
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details.
 
Database configuration completed successfully. The passwords were auto generated, you must change them by connecting to the database using 'sqlplus / as sysdba' as the oracle user.
[root@study1 dbhome_1]#
이 기본 값 은 ORCLCDB 와 pdb 이름 ORCLPDB 1 이라는 데이터 베 이 스 를 만 들 었 습 니 다.물론 이렇게 만 들 지 않 고 전통 적 인 dbca 방식 으로 만 들 수 있 습 니 다.
장단 점
실제로 이 방식 은 아무 소 용이 없습니다.침묵 으로 설치 하 는 것 보다 더 쉬 워 보이 지 않 습 니 다.데이터베이스 소프트웨어 만 설치 할 수 있 고 데이터 베 이 스 를 업그레이드 할 수 없습니다.또한 rac 에 사용 할 수 없습니다.단일 인 스 턴 스 데이터 베 이 스 를 설치 하 는 데 만 사용 할 수 있 습 니 다.전체 배 치 는 맞 춤 형 공간 을 제공 하지 않 았 습 니 다.예 를 들 어 Oacle홈 디 렉 터 리 가 만약 당신 회사 의 디스크 계획 과 일치 하지 않 는 다 면,초보 자 들 은 이렇게 하 는 것 이 더 간단 하 다 고 생각 할 수 있 습 니 다.이 방식 은 단지 시험 해 보 는 것 일 뿐,실제 생산 에 서 는 거의 사용 할 수 없습니다.
총결산
위 에서 말 한 것 은 편집장 이 소개 한 OL 7.6 에 RPM 방식 으로 Oracle 19c 를 설치 하 는 튜 토리 얼 입 니 다.여러분 에 게 도움 이 되 기 를 바 랍 니 다.궁금 한 점 이 있 으 시 면 저 에 게 메 시 지 를 남 겨 주세요.편집장 은 신속하게 답 해 드 리 겠 습 니 다.여기 서도 저희 사이트 에 대한 여러분 의 지지 에 감 사 드 립 니 다!
만약 당신 이 본문 이 당신 에 게 도움 이 된다 고 생각한다 면,전 재 를 환영 합 니 다.번 거 로 우 시 겠 지만 출처 를 밝 혀 주 십시오.감사합니다!

좋은 웹페이지 즐겨찾기