麒麟 V10 一鍵安裝 Oracle 11GR2(231017)單機版 2

firespeed發表於2024-05-08

https://www.modb.pro/db/1762008192972820480

安裝準備

  • 1、安裝好作業系統,建議安裝圖形化
  • 2、配置好網路
  • 3、掛載本地 ISO 映象源
  • 4、上傳必須軟體安裝包(安裝基礎包,補丁包:33991024、35574075、35685663、6880880)
  • 5、上傳一鍵安裝指令碼:OracleShellInstall

✨ 偷懶可以直接下載本文安裝包合集:麒麟 V10 安裝 Oracle 11GR2(231017) 單機版安裝包合集(包含補丁!!!)

演示環境資訊

# 主機版本
[root@kylin soft]# cat /etc/kylin-release
Kylin Linux Advanced Server release V10 (Lance)

# 網路資訊
[root@kylin soft]# ip a
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:0c:29:62:a0:e5 brd ff:ff:ff:ff:ff:ff
inet 192.168.6.222/24 brd 192.168.6.255 scope global noprefixroute ens33
valid_lft forever preferred_lft forever
inet6 fe80::735:5307:2e5e:803c/64 scope link noprefixroute
valid_lft forever preferred_lft forever

# 掛載本地 ISO 映象
[root@kylin soft]# mount | grep iso | grep -v "/run/media"
/dev/sr0 on /mnt type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)
[root@kylin soft]# df -h|grep /mnt
/dev/sr0 4.4G 4.4G 0 100% /mnt

# 安裝包存放在 /soft 目錄下
[root@lucifer ~]# cd /soft/
[root@kylin soft]# ll
總用量 3246300
-rwxr-xr-x 1 root root 162550 2月 26 13:31 OracleShellInstall
-rwx------ 1 root root 1395582860 2月 26 13:34 p13390677_112040_Linux-x86-64_1of7.zip
-rwx------ 1 root root 1151304589 2月 26 13:34 p13390677_112040_Linux-x86-64_2of7.zip
-rwx------ 1 root root 8684 2月 26 13:37 p33991024_11204220118_Generic.zip
-rwx------ 1 root root 562188912 2月 26 13:34 p35574075_112040_Linux-x86-64.zip
-rwx------ 1 root root 86183099 2月 26 13:34 p35685663_112040_Linux-x86-64.zip
-rwx------ 1 root root 128433424 2月 26 13:34 p6880880_112000_Linux-x86-64.zip
-rw-r--r-- 1 root root 4973 2月 26 13:37 print_ora_install_20240226133727.log
-rwxr-xr-x 1 root root 321590 2月 26 13:31 rlwrap-0.44.tar.gz

選擇需要安裝的模式以及版本,即可開始安裝:

安裝命令

使用標準生產環境安裝引數:

# 根據指令碼 README 或者 -h 命令提示,編輯好一鍵安裝命令,進入 /soft 目錄執行安裝:
./OracleShellInstall -lf ens33 `# local ip ifname`\
-n kylin `# hostname`\
-op welcome1 `# oracle password`\
-d /u01 `# software base dir`\
-ord /oradata `# data dir`\
-o lucifer `# dbname`\
-dp welcome1 `# sys/system password`\
-ds AL32UTF8 `# database character`\
-ns AL16UTF16 `# national character`\
-redo 100 `# redo size`\
-opa 35574075 `# oracle PSU/RU`\
-jpa 35685663 `# OJVM PSU/RU`\
-opd Y `# optimize db`

選擇需要安裝的模式以及版本,即可開始安裝:

安裝過程

請選擇安裝模式 [單機(si)/單機ASM(sa)/叢集(rac)] : si

資料庫安裝模式: single

請選擇資料庫版本 [11/12/19/21] : 11

資料庫版本: 11

#==============================================================#
配置本地 YUM 源
#==============================================================#

******

恭喜!Oracle 單機安裝成功,現在是否重啟主機:[Y/N]

連線資料庫

重啟資料庫後,連線資料庫:

[oracle@kylin:/home/oracle]$ sas

SQL*Plus: Release 11.2.0.4.0 Production on Mon Feb 26 14:03:35 2024

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

sys@LUCIFER 2024-02-26 14:03:35> show parameter name

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
cell_offloadgroup_name string
db_file_name_convert string
db_name string lucifer
db_unique_name string lucifer
global_names boolean FALSE
instance_name string lucifer
lock_name_space string
log_file_name_convert string
processor_group_name string
service_names string lucifer

檢視補丁版本:

[oracle@kylin:/home/oracle]$ opatch lspatches
35685663;OJVM PATCH SET UPDATE 11.2.0.4.231017
33991024;11204CERT ON OL8: LINKING ERRORS DURING 11204 FOR DB INSTALL ON OL8.2
35574075;Database Patch Set Update : 11.2.0.4.231017 (35574075)

OPatch succeeded.

相關文章