0% found this document useful (0 votes)
140 views7 pages

19c client설치가이드

The document describes installing Oracle database preinstallation packages and setting up the environment for installing Oracle client software on an Oracle Linux 8 system. It installs the oracle-database-preinstall-19c package and its dependencies using yum. It then sets the oracle user password, creates directories for the Oracle software, generates oraInst.loc and gives it permissions. The Oracle client software zip file is uploaded and unzipped to the install directory. The client_install.rsp response file is backed up and modified to specify install properties like inventory location, Oracle home and base before installing the client software.

Uploaded by

joneber
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
140 views7 pages

19c client설치가이드

The document describes installing Oracle database preinstallation packages and setting up the environment for installing Oracle client software on an Oracle Linux 8 system. It installs the oracle-database-preinstall-19c package and its dependencies using yum. It then sets the oracle user password, creates directories for the Oracle software, generates oraInst.loc and gives it permissions. The Oracle client software zip file is uploaded and unzipped to the install directory. The client_install.rsp response file is backed up and modified to specify install properties like inventory location, Oracle home and base before installing the client software.

Uploaded by

joneber
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

rpm 등 필수 패키지 자동 설정

# yum install -y oracle-database-preinstall-19c


Oracle Linux 8 BaseOS Latest (x86_64)
17 MB/s | 66 MB 00:03
Oracle Linux 8 Application Stream (x86_64)
15 MB/s | 53 MB 00:03
Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)
18 MB/s | 82 MB 00:04
Last metadata expiration check: 0:00:10 ago on Tue 28 Nov 2023 12:34:07 AM KST.
Dependencies resolved.
===================================================================================
===========================================================================
Package Architecture Version
Repository Size
===================================================================================
===========================================================================
Installing:
oracle-database-preinstall-19c x86_64 1.0-2.el8
ol8_appstream 31 k
Installing dependencies:
ksh x86_64 20120801-
259.0.1.el8 ol8_appstream 923 k
libaio-devel x86_64 0.3.112-1.el8
ol8_baseos_latest 19 k
libnsl x86_64 2.28-
151.0.1.el8 ol8_baseos_latest 102 k
lm_sensors-libs x86_64 3.4.0-
23.20180522git70f7e08.el8 ol8_baseos_latest 59 k
sysstat x86_64 11.7.3-
11.0.1.el8 ol8_appstream 427 k

Transaction Summary
===================================================================================
===========================================================================
Install 6 Packages

Total download size: 1.5 M


Installed size: 5.0 M
Downloading Packages:
(1/6): libaio-devel-0.3.112-1.el8.x86_64.rpm
48 kB/s | 19 kB 00:00
(2/6): lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64.rpm
105 kB/s | 59 kB 00:00
(3/6): libnsl-2.28-151.0.1.el8.x86_64.rpm
166 kB/s | 102 kB 00:00
(4/6): oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
229 kB/s | 31 kB 00:00
(5/6): sysstat-11.7.3-11.0.1.el8.x86_64.rpm
1.3 MB/s | 427 kB 00:00
(6/6): ksh-20120801-259.0.1.el8.x86_64.rpm
1.5 MB/s | 923 kB 00:00
-----------------------------------------------------------------------------------
---------------------------------------------------------------------------
Total
1.5 MB/s | 1.5 MB 00:01
warning: /var/cache/dnf/ol8_baseos_latest-e4c6155830ad002c/packages/libaio-devel-
0.3.112-1.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Oracle Linux 8 BaseOS Latest (x86_64)
3.0 MB/s | 3.1 kB 00:00
Importing GPG key 0xAD986DA3:
Userid : "Oracle OSS group (Open Source Software group)
<[email protected]>"
Fingerprint: 76FD 3DB1 3AB6 7410 B89D B10E 8256 2EA9 AD98 6DA3
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing :
1/1
Installing : ksh-20120801-259.0.1.el8.x86_64
1/6
Running scriptlet: ksh-20120801-259.0.1.el8.x86_64
1/6
Installing : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64
2/6
Running scriptlet: lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64
2/6
/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6:
hwcap directive ignored

Installing : sysstat-11.7.3-11.0.1.el8.x86_64
3/6
Running scriptlet: sysstat-11.7.3-11.0.1.el8.x86_64
3/6
Installing : libnsl-2.28-151.0.1.el8.x86_64
4/6
Installing : libaio-devel-0.3.112-1.el8.x86_64
5/6
Running scriptlet: oracle-database-preinstall-19c-1.0-2.el8.x86_64
6/6
Installing : oracle-database-preinstall-19c-1.0-2.el8.x86_64
6/6
Running scriptlet: oracle-database-preinstall-19c-1.0-2.el8.x86_64
6/6
/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6:
hwcap directive ignored

Verifying : libaio-devel-0.3.112-1.el8.x86_64
1/6
Verifying : libnsl-2.28-151.0.1.el8.x86_64
2/6
Verifying : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64
3/6
Verifying : ksh-20120801-259.0.1.el8.x86_64
4/6
Verifying : oracle-database-preinstall-19c-1.0-2.el8.x86_64
5/6
Verifying : sysstat-11.7.3-11.0.1.el8.x86_64
6/6

Installed:
ksh-20120801-259.0.1.el8.x86_64 libaio-devel-
0.3.112-1.el8.x86_64 libnsl-2.28-151.0.1.el8.x86_64
lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 oracle-database-
preinstall-19c-1.0-2.el8.x86_64 sysstat-11.7.3-11.0.1.el8.x86_64
Complete!

오라클 유저 패스워드 설정
# passwd oracle

오라클 클라이언트용 폴더 생성
# mkdir -p /app/oracle
# chown -R oracle:oinstall /app
# chmod -R 755 /app

오라클 oraInst.loc 파일 생성
# vi /etc/oraInst.loc
inventory_loc=/app/oraInventory
inst_group=oinstall

오라클 oraInst.loc 파일 권한 부여
# chown oracle:oinstall /etc/oraInst.loc
# chmod 664 /etc/oraInst.loc

클라이언트 파일 업로드

클라이언트 파일 권한 부여
# chown oracle:oinstall unzip LINUX.X64_193000_client.zip

클라이언트 파일 unzip
# su - oracle
$ unzip LINUX.X64_193000_client.zip

response 파일 백업
$ cd /app/oracle/client/response/
$ cp client_install.rsp client_install.rspbak

response 파일 수정
$ vi client_install.rsp
요약
oracle.install.responseFileVersion=/oracle/install/
rspfmt_clientinstall_response_schema_v19.0.0
UNIX_GROUP_NAME=dba
INVENTORY_LOCATION=/app/oraInventory
ORACLE_HOME=/app/oracle/product/19c
ORACLE_BASE=/app/oracle
oracle.install.client.installType=Custom
oracle.install.client.customComponents="oracle.network.client:19.0.0.0.0","oracle.s
qlplus:19.0.0.0.0","oracle.rdbms.util:19.0.0.0.0","oracle.odbc:19.0.0.0.0"

전체
###############################################################################
## Copyright(c) Oracle Corporation 1998,2019. All rights reserved. ##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## can help to populate the variables with the appropriate ##
## values. ##
## ##
###############################################################################

#-------------------------------------------------------------------------------
# Do not change the following system generated value.
#-------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/
rspfmt_clientinstall_response_schema_v19.0.0

#-------------------------------------------------------------------------------
# Unix group to be set for the inventory directory.
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME=oinstall
#-------------------------------------------------------------------------------
# Inventory location.
#-------------------------------------------------------------------------------
INVENTORY_LOCATION=/app/oraInventory
#-------------------------------------------------------------------------------
# Complete path of the Oracle Home
#-------------------------------------------------------------------------------
ORACLE_HOME=/app/oracle/product/19c
#-------------------------------------------------------------------------------
# Complete path of the Oracle Base.
#-------------------------------------------------------------------------------
ORACLE_BASE=/app/oracle
#------------------------------------------------------------------------------
#Name : INSTALL_TYPE
#Datatype : String
#Description: Installation type of the component.
#
# The following choices are available. The value should contain
# only one of these choices.
# - Administrator
# - Runtime
# - InstantClient
# - Custom
#
#Example : INSTALL_TYPE = Administrator
#------------------------------------------------------------------------------
oracle.install.client.installType=Custom

#-------------------------------------------------------------------------------
# Name : oracle.install.client.customComponents
# Datatype : StringList
#
# This property is considered only if INSTALL_TYPE is set to "Custom"
#
# Description: List of Client Components you would like to install
#
# The following choices are available. You may specify any
# combination of these choices. The components you choose should
# be specified in the form "internal-component-name:version"
# Below is a list of components you may specify to install.
#
# oracle.sqlj:19.0.0.0.0 -- "Oracle SQLJ"
# oracle.rdbms.util:19.0.0.0.0 -- "Oracle Database Utilities"
# oracle.javavm.client:19.0.0.0.0 -- "Oracle Java Client"
# oracle.sqlplus:19.0.0.0.0 -- "SQL*Plus"
# oracle.dbjava.jdbc:19.0.0.0.0 -- "Oracle JDBC/THIN Interfaces"
# oracle.ldap.client:19.0.0.0.0 -- "Oracle Internet Directory Client"
# oracle.rdbms.oci:19.0.0.0.0 -- "Oracle Call Interface (OCI)"
# oracle.precomp:19.0.0.0.0 -- "Oracle Programmer"
# oracle.xdk:19.0.0.0.0 -- "Oracle XML Development Kit"
# oracle.network.aso:19.0.0.0.0 -- "Oracle Advanced Security"
# oracle.oraolap.mgmt:19.0.0.0.0 -- "OLAP Analytic Workspace Manager and Worksheet"
# oracle.network.client:19.0.0.0.0 -- "Oracle Net"
# oracle.network.cman:19.0.0.0.0 -- "Oracle Connection Manager"
# oracle.network.listener:19.0.0.0.0 -- "Oracle Net Listener"
# oracle.ordim.client:19.0.0.0.0 -- "Oracle Multimedia Client Option"
# oracle.odbc:19.0.0.0.0 -- "Oracle ODBC Driver"
# oracle.has.client:19.0.0.0.0 -- "Oracle Clusterware High Availability API"
# oracle.dbdev:19.0.0.0.0 -- "Oracle SQL Developer"
# oracle.rdbms.scheduler:19.0.0.0.0 -- "Oracle Scheduler Agent"
#
# Example :
oracle.install.client.customComponents="oracle.precomp:19.0.0.0.0","oracle.oraolap.
mgmt:19.0.0.0.0","oracle.rdbms.scheduler:19.0.0.0.0"
#-------------------------------------------------------------------------------
oracle.install.client.customComponents="oracle.network.client:19.0.0.0.0","oracle.s
qlplus:19.0.0.0.0","oracle.rdbms.util:19.0.0.0.0","oracle.odbc:19.0.0.0.0"

#-------------------------------------------------------------------------------
# Host name to be used for by the Oracle Scheduler Agent.
# This needs to be entered in case oracle.rdbms.scheduler is selected in the
# list of custom components during custom install
#
# Example : oracle.install.client.schedulerAgentHostName = acme.domain.com
#------------------------------------------------------------------------------
oracle.install.client.schedulerAgentHostName=

#------------------------------------------------------------------------------
# Port number to be used for by the Oracle Scheduler Agent.
# This needs to be entered in case oracle.rdbms.scheduler is selected in the
# list of custom components during custom install
#
# Example: oracle.install.client.schedulerAgentPortNumber = 1500
#------------------------------------------------------------------------------
oracle.install.client.schedulerAgentPortNumber=

INS-08101 에러 방지를 위해 설정( 참조 https://positivemh.tistory.com/486 )


$ export CV_ASSUME_DISTID=RHEL7.6

클라이언트 설치전 사전 검증
$ ./runInstaller -silent -executePrereqs -responseFile
/app/oracle/client/response/client_install.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 415 MB. Actual 41209 MB Passed
Checking swap space: must be greater than 150 MB. Actual 7899 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2023-11-28_12-
48-34AM. Please wait ...
클라이언트 설치
$ ./runInstaller -waitforcompletion -showProgress -silent -responseFile
/app/oracle/client/response/client_install.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 415 MB. Actual 40380 MB Passed
Checking swap space: must be greater than 150 MB. Actual 7899 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2023-11-28_12-
53-59AM. Please wait ...[WARNING] [INS-32016] The selected Oracle home contains
directories or files.
ACTION: To start with an empty Oracle home, either remove its contents or choose
another location.
The response file for this session can be found at:
/app/oracle/product/19c/install/response/client_2023-11-28_12-53-59AM.rsp

You can find the log of this install session at:


/app/oraInventory/logs/installActions2023-11-28_12-53-59AM.log

Prepare in progress.
.................................................. 6% Done.

Prepare successful.

Copy files in progress.


.................................................. 12% Done.
.................................................. 17% Done.
.................................................. 22% Done.
.................................................. 27% Done.
.................................................. 32% Done.
.................................................. 37% Done.
.................................................. 42% Done.
.................................................. 47% Done.
.................................................. 52% Done.
.................................................. 57% Done.

Copy files successful.

Link binaries in progress.

Link binaries successful.

Setup files in progress.


........................................
Setup files successful.

Setup Inventory in progress.

Setup Inventory successful.


..........
Finish Setup in progress.
.................................................. 62% Done.

Finish Setup successful.


The installation of Oracle Client 19c was successful.
Please check '/app/oraInventory/logs/silentInstall2023-11-28_12-53-59AM.log' for
more details.

Setup Oracle Base in progress.


Setup Oracle Base successful.
.................................................. 69% Done.

Prepare for configuration steps in progress.

Prepare for configuration steps successful.


.................................................. 85% Done.

Oracle Client Configuration in progress.


Successfully Setup Software.
.................................................. 100% Done.

Oracle Client Configuration successful.

테스트
sqlplus 실행
$ sqlplus

SQL*Plus: Release 19.0.0.0.0 - Production on Tue Nov 28 01:09:35 2023


Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle. All rights reserved.

Enter user-name:
명령어가 정상적으로 수행됨 정상

tnsping 실행
$ tnsping

TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 28-NOV-2023 01:09:54

Copyright (c) 1997, 2019, Oracle. All rights reserved.

TNS-03502: Insufficient arguments. Usage: tnsping <address> [<count>]


명령어가 정상적으로 수행됨 정상

You might also like