当前位置: 首页 > news >正文

Oracle 19C RU补丁升级,从19.7to19.25 -单机

1. 环境信息:

角色

数据库

IP地址

数据库版本

数据库名称

源端

单实例

172.30.21.191

19.7

hfzcdb

2. 安装准备

用rman备份数据库,再备份下oracle目录:

命令: tar zavf oracle.tar /oracle

 

19.25版本关于19C的补丁内容:

Oracle 19C Grid Database Release Update 19.25.0 Patch 36912597 15-Oct-2024

Oracle 19C Database GI Release Update 19.25.0 Patch 36916690 15-Oct-2024

Oracle 19C OJVM OJVM Release Update 19.25.0 Patch 36878697 15-Oct-2024

3. 安装步骤

下面演示一下 Oracle 19C RU 19.25 补丁的安装步骤。

 

3.1. 阅读 README 文件

首先需要查看补丁的 README 文件(解压补丁后即可获得),其中补丁的前置要求如下:

You must use the OPatch utility version 12.2.0.1.43 or later to apply this patch.

If you are using a Data Guard Physical Standby database, you must install this patch on both the primary database and the physical standby database.

If this is an Oracle RAC environment, install this patch using the OPatch rolling (no downtime) installation method as this patch is rolling RAC installable.

If this is not a RAC environment, shut down all instances and listeners associated with the Oracle home that you are updating.

 

翻译一下就是:

OPatch 版本大于 12.2.0.1.43

有 DG 的环境,DG 也要打补丁

RAC 环境可以滚动升级

单机环境需要关闭所有 oracle 相关的服务

3.2. 升级 OPatch

查看当前数据库的 Opatch 版本:

[oracle@hfzcdb91:/oracle/app/oracle/product/19c/db_1/OPatch]$opatch version
OPatch Version: 12.2.0.1.17
OPatch succeeded.

 

备份之前的Opatch,

[oracle@hfzcdb91:/oracle/app/oracle/product/19c/db_1]$mv OPatch/ OPatch-bak/

opatch 版本低于 43,需要下载最新的 OPatch 补丁替换,在 Patch 6880880 下载对应版本的补丁:

下载后上传到数据库主机,解压替换即可(这一步不需要停机,可以在线操作):## 这里我上传到 /backup 目录,所以需要对目录进行授权
[root@hfzcdb91:/root]# chown -R oracle:oinstall /backup/## oracle 用户静默解压 opatch 到 ORACLE_HOME 目录下
[oracle@hfzcdb91:/home/oracle]$ cd /backup/
[oracle@hfzcdb91:/backup]$ unzip -qo p6880880_190000_Linux-x86-64.zip -d $ORACLE_HOME## 查看替换后的 OPatch 版本
[oracle@hfzcdb91:/oracle/app/oracle/product/19c/db_1/OPatch]$opatch version
OPatch Version: 12.2.0.1.44OPatch succeeded.

升级完 OPatch 版本之后,需要进行安装前补丁冲突检查。

3.3. 冲突检查

首先需要上传 RU 补丁并解压:

## 这里我上传到 /backup 目录,所以需要对目录进行授权
[root@hfzcdb91:/root]# chown -R oracle:oinstall /backup/## oracle 用户静默解压 RU 补丁包
[oracle@hfzcdb91:/backup]$ unzip -q p36912597_190000_Linux-x86-64.zip 
[oracle@hfzcdb91:/backup]$ cd 36912597/## 检查冲突,一般是没有问题的
[oracle@hfzcdb91:/backup/36912597]$/oracle/app/oracle/product/19c/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 12.2.0.1.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.PREREQ sessionOracle Home       : /oracle/app/oracle/product/19c/db_1
Central Inventory : /oracle/app/oraInventoryfrom           : /oracle/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.44
OUI version       : 12.2.0.7.0
Log file location : /oracle/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2024-12-06_16-15-38PM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed.OPatch succeeded.

到这都没问题的话,就可以协商停机时间进行补丁升级了。

3.4. 补丁升级

前置工作都做完之后,补丁升级步骤其实很简单,RAC 滚动升级也可以使用这种方式:

-- 关闭数据库
[oracle@hfzcdb91:/backup/36912597]$sqlplus / as sysdbaSQL*Plus: Release 19.0.0.0.0 - Production on Fri Dec 6 16:24:45 2024
Version 19.7.0.0.0Copyright (c) 1982, 2020, Oracle.  All rights reserved.Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.7.0.0.0SYS@hfzcdb> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.-- 关闭监听[oracle@hfzcdb91:/backup/36912597]$lsnrctl stopLSNRCTL for Linux: Version 19.0.0.0.0 - Production on 06-DEC-2024 16:27:54Copyright (c) 1991, 2019, Oracle.  All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hfzcdb91)(PORT=1521)))
The command completed successfully报错:Prerequisite check "CheckActiveFilesAndExecutables" failed.
解决:
[oracle@hfzcdb91:/backup/30783543/30869156]$fuser /oracle/app/oracle/product/19c/db_1/lib/libclntsh.so.19.1
[oracle@hfzcdb91:/backup/30783543/30869156]$kill -9 13411
-- 静默安装补丁(确保没有 oracle 相关进程之后就可以安装补丁)
[oracle@hfzcdb91:/backup/36912597]$/oracle/app/oracle/product/19c/db_1/OPatch/opatch apply -silent
Oracle Interim Patch Installer version 12.2.0.1.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.Oracle Home       : /oracle/app/oracle/product/19c/db_1
Central Inventory : /oracle/app/oraInventoryfrom           : /oracle/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.44
OUI version       : 12.2.0.7.0
Log file location : /oracle/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2024-12-06_16-29-47PM_1.logVerifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:Following active files/executables/libs are used by ORACLE_HOME :/oracle/app/oracle/product/19c/db_1
/oracle/app/oracle/product/19c/db_1/lib/libclntsh.so.19.1
/oracle/app/oracle/product/19c/db_1/lib/libsqlplus.so/oracle/app/oracle/product/19c/db_1/bin/oracle
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /oracle/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2024-12-06_16-29-47PM_1.logOPatch failed with error code 73
[oracle@hfzcdb91:/backup/36912597]$ps -ef|grep ora
root      20097  20006  0 10:02 pts/0    00:00:00 su - oracle
oracle    20099  20097  0 10:02 pts/0    00:00:00 -bash
oracle    20158  20099  0 10:02 pts/0    00:00:00 rlwrap sqlplus / as sysdba
oracle    20159  20158  0 10:02 pts/1    00:00:00 sqlplus   as sysdba
oracle    20160  20159  0 10:02 ?        00:00:00 oraclehfzcdb (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
root      24283  24208  0 11:13 pts/2    00:00:00 su - oracle
oracle    24284  24283  0 11:13 pts/2    00:00:00 -bash
oracle    39035  24284  0 14:50 pts/2    00:00:00 rlwrap sqlplus / as sysdba
oracle    39036  39035  0 14:50 pts/3    00:00:00 sqlplus   as sysdba
root      43090  10228  0 16:00 ?        00:00:00 sshd: oracle [priv]
oracle    43094  43090  1 16:00 ?        00:00:22 sshd: oracle@notty
oracle    43095  43094  0 16:00 ?        00:00:00 /usr/libexec/openssh/sftp-server
oracle    43214  43094  0 16:01 ?        00:00:09 /usr/libexec/openssh/sftp-server
root      43409  43335  0 16:03 pts/4    00:00:00 su - oracle
oracle    43410  43409  0 16:03 pts/4    00:00:00 -bash
oracle    46534  43410  0 16:35 pts/4    00:00:00 ps -ef
oracle    46535  43410  0 16:35 pts/4    00:00:00 grep --color=auto ora
[oracle@hfzcdb91:/backup/36912597]$kill -9 20159
[oracle@hfzcdb91:/backup/36912597]$/oracle/app/oracle/product/19c/db_1/OPatch/opatch apply -silent^C
[oracle@hfzcdb91:/backup/36912597]$ps -ef|grep ora
root      20097  20006  0 10:02 pts/0    00:00:00 su - oracle
oracle    20099  20097  0 10:02 pts/0    00:00:00 -bash
root      24283  24208  0 11:13 pts/2    00:00:00 su - oracle
oracle    24284  24283  0 11:13 pts/2    00:00:00 -bash
oracle    39035  24284  0 14:50 pts/2    00:00:00 rlwrap sqlplus / as sysdba
oracle    39036  39035  0 14:50 pts/3    00:00:00 sqlplus   as sysdba
root      43090  10228  0 16:00 ?        00:00:00 sshd: oracle [priv]
oracle    43094  43090  1 16:00 ?        00:00:22 sshd: oracle@notty
oracle    43095  43094  0 16:00 ?        00:00:00 /usr/libexec/openssh/sftp-server
oracle    43214  43094  0 16:01 ?        00:00:09 /usr/libexec/openssh/sftp-server
root      43409  43335  0 16:03 pts/4    00:00:00 su - oracle
oracle    43410  43409  0 16:03 pts/4    00:00:00 -bash
oracle    46571  43410  0 16:36 pts/4    00:00:00 ps -ef
oracle    46572  43410  0 16:36 pts/4    00:00:00 grep --color=auto ora
[oracle@hfzcdb91:/backup/36912597]$/oracle/app/oracle/product/19c/db_1/OPatch/opatch apply -silent
Oracle Interim Patch Installer version 12.2.0.1.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.Oracle Home       : /oracle/app/oracle/product/19c/db_1
Central Inventory : /oracle/app/oraInventoryfrom           : /oracle/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.44
OUI version       : 12.2.0.7.0
Log file location : /oracle/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2024-12-06_16-36-13PM_1.logVerifying environment and performing prerequisite checks...--------------------------------------------------------------------------------
Start OOP by Prereq process.
Launch OOP...Oracle Interim Patch Installer version 12.2.0.1.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.Oracle Home       : /oracle/app/oracle/product/19c/db_1
Central Inventory : /oracle/app/oraInventoryfrom           : /oracle/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.44
OUI version       : 12.2.0.7.0
Log file location : /oracle/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2024-12-06_16-38-00PM_1.logVerifying environment and performing prerequisite checks...
OPatch continues with these patches:   36912597Do 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 = '/oracle/app/oracle/product/19c/db_1')Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '36912597' to OH '/oracle/app/oracle/product/19c/db_1'
ApplySession: Optional component(s) [ oracle.network.gsm, 19.0.0.0.0 ] , [ oracle.crypto.rsf, 19.0.0.0.0 ] , [ oracle.pg4appc, 19.0.0.0.0 ] , [ oracle.pg4mq, 19.0.0.0.0 ] , [ oracle.precomp.companion, 19.0.0.0.0 ] , [ oracle.rdbms.ic, 19.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 19.0.0.0.0 ] , [ oracle.tfa, 19.0.0.0.0 ] , [ oracle.sdo.companion, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.options.olap.api, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat, 19.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 19.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 19.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 19.0.0.0.0 ] , [ oracle.ldap.ztk, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.jdk, 1.8.0.191.0 ] , [ oracle.jdk, 1.8.0.391.11 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms, 19.0.0.0.0...Patching component oracle.rdbms.util, 19.0.0.0.0...Patching component oracle.rdbms.rsf, 19.0.0.0.0...Patching component oracle.assistants.acf, 19.0.0.0.0...Patching component oracle.assistants.deconfig, 19.0.0.0.0...Patching component oracle.assistants.server, 19.0.0.0.0...Patching component oracle.blaslapack, 19.0.0.0.0...Patching component oracle.buildtools.rsf, 19.0.0.0.0...Patching component oracle.ctx, 19.0.0.0.0...Patching component oracle.dbdev, 19.0.0.0.0...Patching component oracle.dbjava.ic, 19.0.0.0.0...Patching component oracle.dbjava.jdbc, 19.0.0.0.0...Patching component oracle.dbjava.ucp, 19.0.0.0.0...Patching component oracle.duma, 19.0.0.0.0...Patching component oracle.javavm.client, 19.0.0.0.0...Patching component oracle.ldap.owm, 19.0.0.0.0...Patching component oracle.ldap.rsf, 19.0.0.0.0...Patching component oracle.ldap.security.osdt, 19.0.0.0.0...Patching component oracle.marvel, 19.0.0.0.0...Patching component oracle.network.rsf, 19.0.0.0.0...Patching component oracle.odbc.ic, 19.0.0.0.0...Patching component oracle.ons, 19.0.0.0.0...Patching component oracle.ons.ic, 19.0.0.0.0...Patching component oracle.oracore.rsf, 19.0.0.0.0...Patching component oracle.perlint, 5.28.1.0.0...Patching component oracle.precomp.common.core, 19.0.0.0.0...Patching component oracle.precomp.rsf, 19.0.0.0.0...Patching component oracle.rdbms.crs, 19.0.0.0.0...Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...Patching component oracle.rdbms.deconfig, 19.0.0.0.0...Patching component oracle.rdbms.oci, 19.0.0.0.0...Patching component oracle.rdbms.rsf.ic, 19.0.0.0.0...Patching component oracle.rdbms.scheduler, 19.0.0.0.0...Patching component oracle.rhp.db, 19.0.0.0.0...Patching component oracle.rsf, 19.0.0.0.0...Patching component oracle.sdo, 19.0.0.0.0...Patching component oracle.sdo.locator.jrf, 19.0.0.0.0...Patching component oracle.sqlplus, 19.0.0.0.0...Patching component oracle.sqlplus.ic, 19.0.0.0.0...Patching component oracle.wwg.plsql, 19.0.0.0.0...Patching component oracle.xdk.rsf, 19.0.0.0.0...Patching component oracle.javavm.server, 19.0.0.0.0...Patching component oracle.xdk.xquery, 19.0.0.0.0...Patching component oracle.ctx.rsf, 19.0.0.0.0...Patching component oracle.ovm, 19.0.0.0.0...Patching component oracle.oraolap, 19.0.0.0.0...Patching component oracle.nlsrtl.rsf.lbuilder, 19.0.0.0.0...Patching component oracle.rdbms.rat, 19.0.0.0.0...Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...Patching component oracle.rdbms.dv, 19.0.0.0.0...Patching component oracle.xdk, 19.0.0.0.0...Patching component oracle.mgw.common, 19.0.0.0.0...Patching component oracle.ldap.client, 19.0.0.0.0...Patching component oracle.install.deinstalltool, 19.0.0.0.0...Patching component oracle.rdbms.rman, 19.0.0.0.0...Patching component oracle.oraolap.api, 19.0.0.0.0...Patching component oracle.dbtoolslistener, 19.0.0.0.0...Patching component oracle.rdbms.drdaas, 19.0.0.0.0...Patching component oracle.rdbms.hs_common, 19.0.0.0.0...Patching component oracle.rdbms.lbac, 19.0.0.0.0...Patching component oracle.sdo.locator, 19.0.0.0.0...Patching component oracle.rdbms.dm, 19.0.0.0.0...Patching component oracle.ldap.ssl, 19.0.0.0.0...Patching component oracle.xdk.parser.java, 19.0.0.0.0...Patching component oracle.odbc, 19.0.0.0.0...Patching component oracle.network.listener, 19.0.0.0.0...Patching component oracle.ctx.atg, 19.0.0.0.0...Patching component oracle.rdbms.install.common, 19.0.0.0.0...Patching component oracle.rdbms.hsodbc, 19.0.0.0.0...Patching component oracle.network.aso, 19.0.0.0.0...Patching component oracle.rdbms.locator, 19.0.0.0.0...Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...Patching component oracle.nlsrtl.rsf.core, 19.0.0.0.0...Patching component oracle.nlsrtl.rsf.ic, 19.0.0.0.0...Patching component oracle.oraolap.dbscripts, 19.0.0.0.0...Patching component oracle.network.client, 19.0.0.0.0...Patching component oracle.precomp.common, 19.0.0.0.0...Patching component oracle.precomp.lang, 19.0.0.0.0...Patching component oracle.jdk, 1.8.0.201.0...
Patch 36912597 successfully applied.
Sub-set patch [30869156] has become inactive due to the application of a super-set patch [36912597].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /oracle/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2024-12-06_16-38-00PM_1.logOPatch succeeded.
[oracle@hfzcdb91:/backup/36912597]$

 

查看数据库已经升级完成:

[oracle@hfzcdb91:/backup/36912597]$/oracle/app/oracle/product/19c/db_1/OPatch/opatch lspatches
36912597;Database Release Update : 19.25.0.0.241015 (36912597)
30805684;OJVM RELEASE UPDATE: 19.7.0.0.200414 (30805684)
29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)OPatch succeeded.

 

再升级 OJVM:

[oracle@hfzcdb91:/backup]$unzip -q p36878697_190000_Linux-x86-64.zip
replace PatchSearch.xml? [y]es, [n]o, [A]ll, [N]one, [r]ename: yes
[oracle@hfzcdb91:/backup]$cd 36878697/
[oracle@hfzcdb91:/backup/36878697]$ll
total 64
drwxr-x--- 3 oracle oinstall    28 Sep 24 15:15 etc
drwxr-x--- 6 oracle oinstall    80 Sep 24 15:15 files
-rw-rw-r-- 1 oracle oinstall 59526 Oct 15 12:01 README.html
-rw-r--r-- 1 oracle oinstall    11 Sep 24 15:15 README.txt
[oracle@hfzcdb91:/backup/36878697]$/oracle/app/oracle/product/19c/db_1/OPatch/opatch apply
Oracle Interim Patch Installer version 12.2.0.1.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.Oracle Home       : /oracle/app/oracle/product/19c/db_1
Central Inventory : /oracle/app/oraInventoryfrom           : /oracle/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.44
OUI version       : 12.2.0.7.0
Log file location : /oracle/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2024-12-06_17-06-13PM_1.logVerifying environment and performing prerequisite checks...
OPatch continues with these patches:   36878697Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/oracle/app/oracle/product/19c/db_1')Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '36878697' to OH '/oracle/app/oracle/product/19c/db_1'Patching component oracle.javavm.server, 19.0.0.0.0...Patching component oracle.javavm.server.core, 19.0.0.0.0...Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...Patching component oracle.rdbms, 19.0.0.0.0...Patching component oracle.javavm.client, 19.0.0.0.0...
Patch 36878697 successfully applied.
Sub-set patch [30805684] has become inactive due to the application of a super-set patch [36878697].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /oracle/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2024-12-06_17-06-13PM_1.logOPatch succeeded.

 

查看 ojvm 已经升级完成:

[oracle@hfzcdb91:/backup/36878697]$/oracle/app/oracle/product/19c/db_1/OPatch/opatch lspatches
36878697;OJVM RELEASE UPDATE: 19.25.0.0.241015 (36878697)
36912597;Database Release Update : 19.25.0.0.241015 (36912597)
29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)OPatch succeeded.

3.5. 数据库升级,执行 datapatch:

Oracle 软件升级成功后,数据库本身也需要进行一些升级:

## 打开数据库
[oracle@hfzcdb91:/backup/36878697]$sqlplus / as sysdbaSQL*Plus: Release 19.0.0.0.0 - Production on Fri Dec 6 17:12:14 2024
Version 19.25.0.0.0Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to an idle instance.SYS@hfzcdb> startup
ORACLE instance started.Total System Global Area 2466247680 bytes
Fixed Size                  8942592 bytes
Variable Size             973078528 bytes
Database Buffers         1476395008 bytes
Redo Buffers                7831552 bytes
Database mounted.
Database opened.##  执行 datapatch 更新数据库
[oracle@hfzcdb91:/backup/36878697]$/oracle/app/oracle/product/19c/db_1/OPatch/datapatch -verbose
SQL Patching tool version 19.25.0.0.0 Production on Fri Dec  6 17:14:27 2024
Copyright (c) 2012, 2024, Oracle.  All rights reserved.Log file for this invocation: /oracle/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_53308_2024_12_06_17_14_27/sqlpatch_invocation.logConnecting to database...OK
Gathering database info...done
Bootstrapping registry and package to current versions...done
Determining current state...doneCurrent state of interim SQL patches:
Interim patch 30805684 (OJVM RELEASE UPDATE: 19.7.0.0.200414 (30805684)):Binary registry: Not installedSQL registry: Applied successfully on 27-OCT-24 07.01.18.209121 PM
Interim patch 36878697 (OJVM RELEASE UPDATE: 19.25.0.0.241015 (36878697)):Binary registry: InstalledSQL registry: Not installedCurrent state of release update SQL patches:Binary registry:19.25.0.0.0 Release_Update 241010184253: InstalledSQL registry:Applied 19.7.0.0.0 Release_Update 200404035018 successfully on 27-OCT-24 06.51.42.945421 PMAdding patches to installation queue and performing prereq checks...done
Installation queue:The following interim patches will be rolled back:30805684 (OJVM RELEASE UPDATE: 19.7.0.0.200414 (30805684))Patch 36912597 (Database Release Update : 19.25.0.0.241015 (36912597)):Apply from 19.7.0.0.0 Release_Update 200404035018 to 19.25.0.0.0 Release_Update 241010184253The following interim patches will be applied:36878697 (OJVM RELEASE UPDATE: 19.25.0.0.241015 (36878697))Installing patches...
Patch installation complete.  Total patches installed: 3Validating logfiles...done
Patch 30805684 rollback: SUCCESSlogfile: /oracle/app/oracle/cfgtoollogs/sqlpatch/30805684/23401476/30805684_rollback_HFZCDB_2024Dec06_17_15_46.log (no errors)
Patch 36912597 apply: SUCCESSlogfile: /oracle/app/oracle/cfgtoollogs/sqlpatch/36912597/25871884/36912597_apply_HFZCDB_2024Dec06_17_16_57.log (no errors)
Patch 36878697 apply: SUCCESSlogfile: /oracle/app/oracle/cfgtoollogs/sqlpatch/36878697/25797620/36878697_apply_HFZCDB_2024Dec06_17_16_56.log (no errors)
SQL Patching tool complete on Fri Dec  6 17:23:28 2024
[oracle@hfzcdb91:/backup/36878697]$

3.6. 编译无效对象

升级过程中可能导致某些对象失效,所以需要重编译:

[oracle@hfzcdb91:/backup/36878697]$sqlplus / as sysdba @?/rdbms/admin/utlrp.sqlSQL*Plus: Release 19.0.0.0.0 - Production on Fri Dec 6 17:25:16 2024
Version 19.25.0.0.0Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.25.0.0.0Session altered.TIMESTAMP
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_BGN              2024-12-06 17:25:16DOC>   The following PL/SQL block invokes UTL_RECOMP to recompile invalid
DOC>   objects in the database. Recompilation time is proportional to the
DOC>   number of invalid objects in the database, so this command may take
DOC>   a long time to execute on a database with a large number of invalid
DOC>   objects.
DOC>
DOC>   Use the following queries to track recompilation progress:
DOC>
DOC>   1. Query returning the number of invalid objects remaining. This
DOC>      number should decrease with time.
DOC>         SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
DOC>
DOC>   2. Query returning the number of objects compiled so far. This number
DOC>      should increase with time.
DOC>         SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;
DOC>
DOC>   This script automatically chooses serial or parallel recompilation
DOC>   based on the number of CPUs available (parameter cpu_count) multiplied
DOC>   by the number of threads per CPU (parameter parallel_threads_per_cpu).
DOC>   On RAC, this number is added across all RAC nodes.
DOC>
DOC>   UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel
DOC>   recompilation. Jobs are created without instance affinity so that they
DOC>   can migrate across RAC nodes. Use the following queries to verify
DOC>   whether UTL_RECOMP jobs are being created and run correctly:
DOC>
DOC>   1. Query showing jobs created by UTL_RECOMP
DOC>         SELECT job_name FROM dba_scheduler_jobs
DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>
DOC>   2. Query showing UTL_RECOMP jobs that are running
DOC>         SELECT job_name FROM dba_scheduler_running_jobs
DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>#PL/SQL procedure successfully completed.TIMESTAMP
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_END              2024-12-06 17:25:22DOC> The following query reports the number of invalid objects.
DOC>
DOC> If the number is higher than expected, please examine the error
DOC> messages reported with each object (using SHOW ERRORS) to see if they
DOC> point to system misconfiguration or resource constraints that must be
DOC> fixed before attempting to recompile these objects.
DOC>#OBJECTS WITH ERRORS
-------------------54DOC> The following query reports the number of exceptions caught during
DOC> recompilation. If this number is non-zero, please query the error
DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
DOC> are due to misconfiguration or resource constraints that must be
DOC> fixed before objects can compile successfully.
DOC> Note: Typical compilation errors (due to coding errors) are not
DOC>       logged into this table: they go into DBA_ERRORS instead.
DOC>#ERRORS DURING RECOMPILATION
---------------------------0Function created.PL/SQL procedure successfully completed.Function dropped.PL/SQL procedure successfully completed.

查看数据库补丁升级的版本:

SYS@hfzcdb> select action,comments from registry$history;ACTION                         COMMENTS
------------------------------ ------------------------------
BOOTSTRAP                      RDBMS_19.25.0.0.0DBRU_LINUX.X64_241010RU_APPLY                       Patch applied on 19.3.0.0.0: Release_Update - 190410122720RU_APPLY                       Patch applied from 19.3.0.0.0to 19.7.0.0.0: Release_Update- 200404035018jvmpsu.sql                     RAN jvmpsu.sql
APPLY                          OJVM RU post-install
jvmpsu.sql                     RAN jvmpsu.sql
ROLLBACK                       OJVM RU post-deinstall
jvmpsu.sql                     RAN jvmpsu.sql
APPLY                          OJVM RU post-install
RU_APPLY                       Patch applied from 19.7.0.0.0to 19.25.0.0.0: Release_Update- 24101018425310 rows selected.

列出补丁升级的内容,内容较多,只列出了一部分:

[oracle@hfzcdb91:/backup/36878697]$/oracle/app/oracle/product/19c/db_1/OP[oracle@hfzcdb91:/backup/36878697]$/oracle/app/oracle/product/19c/db_1/OPatch/opatch lsinventory |more
Oracle Interim Patch Installer version 12.2.0.1.44
Copyright (c) 2024, Oracle Corporation.  All rights reserved.Oracle Home       : /oracle/app/oracle/product/19c/db_1
Central Inventory : /oracle/app/oraInventoryfrom           : /oracle/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.44
OUI version       : 12.2.0.7.0
Log file location : /oracle/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2024-12-06_17-29-36PM_1.logLsinventory Output file location : /oracle/app/oracle/product/19c/db_1/cfgtoollogs/opatch/lsinv/lsinventory2024-12-06_17-29-36PM.txt
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: hfzcdb91
ARU platform id: 226
ARU platform description:: Linux x86-64Installed Top-level Products (1):Oracle Database 19c                                                  19.0.0.0.0
There are 1 products installed in this Oracle Home.Interim patches (3) :Patch  36878697     : applied on Fri Dec 06 17:08:36 CST 2024
Unique Patch ID:  25797620
Patch description:  "OJVM RELEASE UPDATE: 19.25.0.0.241015 (36878697)"Created on 24 Sep 2024, 07:15:03 hrs UTCBugs fixed:12565410, 12949919, 14112098, 15897884, 16799766, 17443054, 1875926019397646, 20875943, 22037067, 22873666, 23614160, 24701882, 2517317225881271, 26716835, 27015468, 28127287, 28209601, 28674263, 2877707328852334, 29224710, 29254623, 29372173, 29415774, 29445548, 2951212529540327, 29540831, 29707582, 29774362, 29942275, 29997959, 3013474630160625, 30408443, 30534662, 30674373, 30796980, 30855101, 3088944330895577, 31247838, 31306261, 31311732, 31335142, 31359215, 3139570831494420, 31668872, 31727233, 31776121, 31844357, 32032733, 3206969632124570, 32165759, 32167592, 32327208, 32523206, 32587721, 3289288333184467, 33223248, 33427267, 33563137, 33613833, 33805155, 3382288133863611, 33872610, 34006650, 34022133, 34149263, 34346865, 3445036634461697, 34473578, 34533150, 34604941, 34699616, 34786432, 3481720835021301, 35099674, 35239280, 35240410, 35309432, 35354098, 3535505835397949, 35480672, 35717077, 35806962, 35949725, 36021678, 3613812036210227, 36260537, 36365931, 36368005, 36405296, 36533029, 3668695836761847, 36866733, 37065931Patch  36912597     : applied on Fri Dec 06 16:48:18 CST 2024
Unique Patch ID:  25871884
Patch description:  "Database Release Update : 19.25.0.0.241015 (36912597)"Created on 11 Oct 2024, 06:47:24 hrs UTCBugs fixed:10121473, 10123661, 1297945, 14570574, 14735102, 15878434, 1593175615959416, 16662822, 16664572, 16750494, 17275499, 17395507, 1742881617468475, 17562236, 17777718, 18534283, 18697534, 18943905, 1908074219138896, 19147630, 19226753, 19630878, 19697993, 19884953, 1995823920007421, 20044584, 20083476, 20289608, 20313356, 20319830, 2047954520661314, 20721183, 20867658, 20922160, 21119541, 21217621, 2123278621245711, 21374587, 21528318, 21533734, 21629064, 21639146, 2188835221965541, 22066547, 22252368, 22325312, 22387320, 22553815, 2258035522599382, 22725871, 22729345, 22748979, 22813401, 23020668, 2306646323094775, 23125587, 23220873, 23294761, 23296836, 23311885, 2360624123645975, 23734075, 23734111, 23763462, 24336782, 24356932, 2440875424559425, 24561942, 24596874, 24597536, 24669730, 24673201, 24687075
……36816302, 36822350, 36844157, 36847318, 36850140, 36852920, 3686047936885853, 36903861, 36905385, 36905587, 36908826, 36916250, 3692752036928879, 36942226, 36943142, 36955210, 36958975, 36982498, 3698858536995477, 37010561, 37034448, 37048709, 37057169, 37078302, 3708189137097367, 37110446, 37156413, 7391838, 8460502, 8476681, 9002767Patch  29585399     : applied on Thu Apr 18 15:21:33 CST 2019
Unique Patch ID:  22840393
Patch description:  "OCW RELEASE UPDATE 19.3.0.0.0 (29585399)"Created on 9 Apr 2019, 19:12:47 hrs PST8PDTBugs fixed:27222128, 27572040, 27604329, 27760043, 27877830, 28302580, 2847067328621543, 28642469, 28699321, 28710663, 28755846, 28772816, 2878532128800508, 28808652, 28815557, 28847541, 28847572, 28870496, 2887104028874416, 28877252, 28881191, 28881848, 28888083, 28911140, 2892525028925460, 28935956, 28940472, 28942694, 28951332, 28963036, 2896877928980448, 28995287, 29003207, 29003617, 29016294, 29018680, 2902487629026154, 29027933, 29047127, 29052850, 29058476, 29111631, 2911245529117337, 29123444, 29125708, 29125786, 29129476, 29131772, 2913245629139727, 29146157, 29147849, 29149170, 29152603, 29152752, 2915463129154636, 29154829, 29159216, 29159661, 29160462, 29161923, 2916954029169739, 29170717, 29173618, 29181568, 29182920, 29183298, 2918609129191827, 29201143, 29201695, 29209545, 29210577, 29210610, 2921062429210683, 29213641, 29219627, 29224294, 29225861, 29229839, 2923593429242906, 29243749, 29244495, 29244766, 29244968, 29248723, 2924958329251564, 29255616, 29260224, 29261695, 29271019, 29273360, 2928209029282666, 29285453, 29285621, 29290235, 29292232, 29293806, 2929475329299830, 29307090, 29307109, 29311336, 29329675, 29330791, 2933929929357821, 29360467, 29360775, 29367971, 29368725, 29379299, 2937938129380527, 29381000, 29382296, 29391301, 29393649, 29402110, 2941193129413360, 29457319, 29465047, 3--------------------------------------------------------------------------------OPatch succeeded.

3.7. 回退 RU 补丁

这里适当介绍一下 RU 补丁的回退步骤,一般适用于升级后应用出现问题无法访问的情况:

opatch rollback -id 35943157

同样的,需要先关闭数据库以及监听等 oracle 相关的资源,然后备份 ORACLE_HOME 之后,执行以上命令进行回退,回退成功之后,再次执行 datapatch 操作。

 

 

相关文章:

Oracle 19C RU补丁升级,从19.7to19.25 -单机

1. 环境信息: 角色 数据库 IP地址 数据库版本 数据库名称 源端 单实例 172.30.21.191 19.7 hfzcdb 2. 安装准备 用rman备份数据库,再备份下oracle目录: 命令: tar zavf oracle.tar /oracle 19.25版本关于19C的补丁内…...

Web day08 项目实战(2)

目录 查询员工: 在EmpController层: 在pojo层: 在EmpServiceImpl 层中: 在dao层: 新增员工: pojo层: EmpController层: 在EmpServiceImpl 层中: 在EmpMapper层: …...

生命周期(vue2和vue3的生命周期对比)有哪些?

Vue.js 提供了一套完整的数据驱动和组件化思想,其生命周期钩子是开发者理解组件行为的关键。以下是 Vue 2 和 Vue 3 中生命周期钩子的对比: Vue 2 生命周期钩子 创建阶段 beforeCreate:实例初始化之前调用,此时 data 和 methods …...

智慧信息发系统——控件磁吸

//鍙悜涓婂惛 function fun_鎺т欢纾佸惛_璁$畻(鐏典綋y,寮曞姏鍊�,閫夋嫨鍖哄煙,璁$畻鍧愭爣绫诲瀷) {const 灞忓箷椤圭洰 document.querySelectorAll(閫夋嫨鍖哄煙);var 璺濈鎴戞渶杩憏 0;var 鏈€杩戜竴娆″紩鍔� 0…...

【时间序列预测】基于PyTorch实现CNN_LSTM算法

文章目录 1. CNN_LSTM模型概述2. 网络结构3. 完整代码实现4.模型解析4.1 CNN层4.2 ReLU层4.3 MaxPooling层4.4 LSTM层4.5 输出层4.6 前向传播 5. 总结 在时间序列预测任务中,CNN(卷积神经网络)和LSTM(长短期记忆网络)是…...

Android环境搭建

Android环境搭建 第一步:安装 Homebrew 执行以下命令来安装 Homebrew: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"检测是否安装成功: brew --version第二步:安装 No…...

HarmonyOS 5.0应用开发——Ability与Page数据传递

【高心星出品】 文章目录 Ability与Page数据传递Page向Ability传递数据Ability向Page传递数据 Ability与Page数据传递 基于当前的应用模型,可以通过以下几种方式来实现UIAbility组件与UI之间的数据同步。 使用EventHub进行数据通信:在基类Context中提供…...

【数据结构】顺序表

一、顺序表的基本概念 1.1 概念 顺序表是一种线性表的存储结构,其特点是:使用一段连续的存储空间存储线性表中的数据元素,通过数组实现,具有随机访问的能力。 可以把顺序表直接理解为数组,只不过这个数组里可以存各种类…...

光伏与储能软件有哪些?

随着技术的不断进步,光伏与储能的软件系统也层出不穷,为这一领域的发展提供了强有力的支持。 一、光伏设计软件 1、PVSyst 功能:这是一款全球广泛使用的光伏系统设计软件,支持光伏系统的模拟与设计,包括组件阵列、倾…...

AI周报(12.1-12.7)

AI应用-AI独立开发“小猫补光灯” 无论GitHub Copilot、Amazon CodeWhisperer,还是前面AI周报(6.23-6.29)Devv.ai,重在提高编码效率、提供编码补全和建议。小猫补光灯第一次让一个完全不会编程的产品经理,与AI协作&…...

windows 脚本批量管理上千台服务器实战案例

如果你们有接触服务器,都是知道服务器有BMC管理界面的,这几天我在做项目中,需要不断的开关机服务器,如果一两台服务器登录BMC界面重启服务器还好,如果服务器数量非常的庞大,成百上千台,我们不可…...

一级路由访问家里的二级路由设备 例如nas

家里升级千兆网,更换了光猫设备,家里走网线的话,只有100m速度,就直接用了光猫的无线,这次换的很顶,下载和打游戏也够用了,基本上没有网络波动。就客厅用了一个路由器,接了nas和摄像头…...

线程(二)——线程安全

如何理解线程安全: 多线程并发执行的时候,有时候会触发一些“bug”,虽然代码能够执行,线程也在工作,但是过程和结果都不符合我们的开发时的预期,所以我们将此类线程称之为“线程安全问题”。 例如&#xff…...

Altium Designer学习笔记 31 PCB布线优化_GND处理

基于Altium Designer 23学习版,四层板智能小车PCB 更多AD学习笔记:Altium Designer学习笔记 1-5 工程创建_元件库创建Altium Designer学习笔记 6-10 异性元件库创建_原理图绘制Altium Designer学习笔记 11-15 原理图的封装 编译 检查 _PCB封装库的创建Al…...

第四节、电机定角度转动【51单片机-TB6600驱动器-步进电机教程】

摘要:本节介绍用电机转动角度计算步骤,从而控制步进电机转角 一、 计算过程 1.1 驱动器接收一个脉冲后,步进电机转动一步,根据驱动器设置的细分值 计算一个脉冲对应电机转动的角度step_x s t e p x s t e p X … … ① step_{x…...

亚马逊云科技用生成式AI,向开发的复杂性动手了

生成式 AI、分布式扩展功能全面进化,还降价了。 同一天的发布,完全不同的方向。 今天凌晨,云计算巨头亚马逊云科技的 re:Invent 与大号创业公司 OpenAI 的发布「撞了车」。后者公布了一系列生成式 AI 应用,价格更贵、性能更强大&a…...

SharpDevelop IDE IViewContent.cs类

文件位置&#xff1a;IViewContent.cs /// <summary>/// IViewContent is the base interface for "windows" in the document area of SharpDevelop./// A view content is a view onto multiple files, or other content that opens like a document/// (e.…...

【工具变量】地级市城市全社会用电量数据(2006-2021年)

一、数据范围&#xff1a;覆盖中国300多个地级市 二、包含指标&#xff1a; 省份、地级市、年份、全社会用电量。 三、数据来源&#xff1a;国家电网查询数据。对于极大部分城市&#xff0c;国网售电量就是全社会用电量(往年的售电量和全社会用电量数据相同&#xff09;,此外…...

vue列表滚动动画效果

一、效果展示&#xff1a; 录屏2024-12-07 02.16.59 二、步骤&#xff1a; 1. 需要用<transition-group>包裹需要渲染的item列表 ⚠️注意&#xff1a;这里的:key"item.id"&#xff0c;必须要用id之类的&#xff0c;不能用index <transition-group name&qu…...

33.5 remote实战项目之设计prometheus数据源的结构

本节重点介绍 : 项目要求 通过remote read读取prometheus中的数据通过remote write向prometheus中写入数据 准备工作 新建项目 prome_remote_read_write设计prometheus 数据源的结构初始化 项目要求 通过remote read读取prometheus中的数据通过remote write向prometheus中写…...

Ceph文件存储

Ceph文件存储1.概念:数据以文件的形式存储在存储介质上&#xff0c;每个文件都有一个唯一的文件名并存储在一个目录结构中。提供方便的文件访问接口&#xff0c;支持多种文件操作&#xff0c;如创建、删除、读取、写入、复制等。用于存储和管理个人文件&#xff0c;如文档、图片…...

力扣-图论-5【算法学习day.55】

目录 前言 习题 1.移除可疑的方法 后言 前言 ###我做这类文章一个重要的目的还是给正在学习的大家提供方向和记录学习过程&#xff08;例如想要掌握基础用法&#xff0c;该刷哪些题&#xff1f;&#xff09;我的解析也不会做的非常详细&#xff0c;只会提供思路和一些关键…...

Linux-音频应用编程

ALPHA I.MX6U 开发板支持音频&#xff0c;板上搭载了音频编解码芯片 WM8960&#xff0c;支持播放以及录音功能&#xff01;本章我们来学习 Linux 下的音频应用编程&#xff0c;音频应用编程相比于前面几个章节所介绍的内容、其难度有所上升&#xff0c;但是笔者仅向大家介绍 Li…...

SQL复杂查询功能介绍及示例

文章目录 1. 多表连接&#xff08;JOIN&#xff09;功能介绍应用场景示例查询及初始表格customers 表&#xff08;未查询前&#xff09;orders 表&#xff08;未查询前&#xff09;INNER JOIN 示例LEFT JOIN 示例 2. 子查询&#xff08;Subquery&#xff09;功能介绍应用场景示…...

Python使用Selenium自动实现表单填写之蛇年纪念币蛇钞预约(附源码,源码有注释解析,已测试可用

Python实现纪念币预约自动填写表单 声明:本文只做技术交流,不可用代码为商业用途,文末有源码下载,已测试可用。 Part 1 配置文件改写(源码 有详细的注释说明 读取配置文件,自己组数据库,录入信息 配置文件 Part 2 主函数 每一期的xpath路径都不一样 所以需要提前去网站…...

快速掌握HTML

目录 1. HTML文件的基本结构* 前端开发工具搭建* vscode的三个插件* 编写第一个html代码* 快速生成代码框架 *html特殊字符2. 双标签2.1 标题标签 h12.2 段落标签 p2.3 格式化标签2.4 超链接标签 a2.5 表格标签2.6 列表标签1. 无序列表&#xff1a;ul标签( 快捷键&#xff1a;u…...

Linux 音频驱动实验

音频是我们最常用到的功能&#xff0c;音频也是 linux 和安卓的重点应用场合。I.MX6ULL 带有 SAI接口&#xff0c;正点原子的 I.MX6ULL ALPHA 开发板通过此接口外接了一个 WM8960 音频 DAC 芯片&#xff0c;本章我们就来学习一下如何使能 WM8960 驱动&#xff0c;并且通过 WM89…...

【分布式】Redis分布式缓存

一、什么是Redis分布式缓存 Redis分布式缓存是指使用Redis作为缓存系统来存储和管理数据的分布式方案。在分布式系统中&#xff0c;多台服务器共同对外提供服务&#xff0c;为了提高系统的性能和可扩展性&#xff0c;通常会引入缓存来减轻数据库的压力。Redis作为一种高性能的…...

几个Linux系统安装体验: 一些系统对比和使用记录

本文对一些系统做对比&#xff0c;并记录一些使用过程。 背景 本文所记录的内容&#xff0c;不保证绝对性&#xff0c;也不代表任何方的意见、意思、看法、观点。如有不适&#xff0c;权当笑料。 个人使用记录 centos7 centos7为笔者的主力系统&#xff0c;生产工具。虚拟机…...

c++数据结构算法复习基础--11--高级排序算法-快速排序-归并排序-堆排序

高阶排序 1、快速排序 冒泡排序的升级算法 每次选择一个基准数&#xff0c;把小于基准数的放到基准数的左边&#xff0c;把大于基准数的放到基准数的右边&#xff0c;采用 “ 分治算法 ”处理剩余元素&#xff0c;直到整个序列变为有序序列。 最好和平均的复杂度&#xff1a…...

特朗普画像

任务内容 Description 特朗普当选了&#xff0c;网上流传着很多段子&#xff0c;也出了特朗普的头像。有人说&#xff0c;特朗普 的头像像一团云。所以今年马云去了美国和特朗普谈中美企业的发展。那么你能帮 忙打印出特朗普的头像吗&#xff1f; 抽象派认为&#xff0c;特朗普…...

torch如何产生3d随机变形场(DVFs)

随机变形场(Deformation Vector Fields, DVFs)是一种在图像处理和计算机视觉中常用的技术,用于生成变形后的图像或增强数据集的多样性。它通过创建一个在空间中定义的位移场,以实现图像的随机变形。以下是生成随机DVFs的主要步骤和方法: 1. 随机噪声生成 随机变形场的基…...

【PlantUML系列】用例图(三)

目录 一、组成部分 二、典型案例 一、组成部分 参与者&#xff08;Actors&#xff09;&#xff1a;使用关键字 actor 后跟参与者的名称。用例&#xff08;Use Cases&#xff09;&#xff1a;使用关键字 usecase 后跟用例的名称和编号&#xff08;可选&#xff09;。系统边界…...

PHP使用RabbitMQ(正常连接与开启SSL验证后的连接)

代码中包含了PHP在一般情况下使用方法和RabbitMQ开启了SSL验证后的使用方法&#xff08;我这边消费队列是使用接口请求的方式&#xff0c;每次只从中取出一条&#xff09; 安装amqp扩展 PHP使用RabbitMQ前&#xff0c;需要安装amqp扩展&#xff0c;之前文章中介绍了Windows环…...

距离与AoA辅助的三维测距算法(适用于四个基站的情况的单点定位),MATLAB代码

本MATLAB 代码实现了一个基于LOS/NLOS混合环境的单点定位系统&#xff0c;主要用于估计目标物体的单点位 文章目录 代码运行结果源代码代码功能概述主要步骤分析初始化部分 绘图与输出 代码运行结果 定位结果如下&#xff1a; 命令行的坐标和误差输出&#xff1a; 部分代码…...

计算机网络原理之HTTP与HTTPS

一、前言 为了理解HTTP&#xff0c;我们有必要事先了解一下TCP/IP协议簇。 通常我们使用的网络&#xff08;包括互联网&#xff09;是在TCP/IP协议簇的基础上运作的。而HTTP属于它内部的一个子集。 计算机与网络设备要相互通信&#xff0c;双方必须基于相同的方法。比如&#…...

使用did包进行多期DID分析

本例中&#xff0c;样例数据来自 Callaway 和 Sant’Anna (2020)&#xff0c;研究问题是各州提高最低工资对县级青少年就业率影响。 样例数据集包含 2003 年至 2007 年 500 个县级青少年就业率的数据&#xff0c;其中一些州在 2004 年首次接受治疗&#xff0c;也有一些在 2006…...

Windows宝塔面板下IIS环境如何部署SSL证书?

Windows宝塔面板下IIS环境如何部署SSL证书&#xff1f; 平时服务器linux宝塔用的较多&#xff0c;所以linux系统宝塔&#xff0c;如何部署SSL证书还是比较熟悉&#xff0c;今天遇到一个windows的部署SSL证书&#xff0c;还是头一次&#xff0c;所以记录一下&#xff0c;以防忘…...

【MySQL】函数

函数 1.日期函数2.字符串函数3.数学函数4.其他函数 点赞???收藏???关注??? 你的支持是对我最大的鼓励&#xff0c;我们一起努力吧??? 在mysql中其实内置了很多的函数操作&#xff0c;这些函数可以让我们在数据统计的时候以及查表的时候进行各自各样的操作。 1.日…...

面试复盘 part 02·1202-1207 日

作品集讲述部分 分析反思 作品集讲述部分&#xff0c;视觉讲述部分需要更换&#xff0c;需要换成其他视觉相关的修改 具体话术 这是一个信息展示优化方案&#xff0c;用户为财务&#xff0c;信息区分度不足&#xff0c;理解成本较高&#xff0c;因此选择需要降低理解成本。…...

RISC-V 汇编语言

安装RISCV工具链 riscv-gnu-toolchain工具链和模拟器安装记录 - 知乎 (zhihu.com) riscv-gnu-toolchain工具链分elf-gcc、linux-gnu-gcc两个版本&#xff0c;以及对应的32位和64位版本。两个版本的主要区别是&#xff1a; riscv32-unknown-elf-gcc、riscv64-unknown-elf-gcc…...

MySQL Explain 指南

MySQL Explain 指南 idselect_typetablepartitionstypepossible_keyskeykeylenrefrowsfilteredExtra 使用 explain 执行 DML 语句时&#xff0c;数据不会发生变化。explain 的结果可能包含多行数据&#xff0c;每行对应一个表。若涉及 union 操作&#xff0c;MySQL 会创建临时表…...

keil报错---connection refused due to device mismatch

解决办法如下&#xff1a; 记得改成1 把Enable取消...

ubuntu下的chattts 学习4:Advanced Usage

源码 import ChatTTS import torch import torchaudiochat ChatTTS.Chat() chat.load(compileFalse) # Set to True for better performance ################################### # Sample a speaker from Gaussian.rand_spk chat.sample_random_speaker() print(rand_spk)…...

Ubuntu桌面突然卡住,图形界面无反应

1.可能等待几分钟&#xff0c;系统会自动反应过来。你可以选择等待几分钟。 2.绝大多数情况系统是不会反应过来的&#xff0c;这时候可以进入tty终端直接注销用户。 (1)Ubuntu有6个tty终端&#xff0c;按住CtrlAltF1可以进入tty1终端&#xff0c;&#xff08;同理CtrlAltF2&a…...

毕设记录_论文阅读(动磁式音圈电机的开发与应用)_20241207

前言 提醒&#xff1a; 文章内容为方便作者自己后日复习与查阅而进行的书写与发布&#xff0c;其中引用内容都会使用链接表明出处&#xff08;如有侵权问题&#xff0c;请及时联系&#xff09;。 其中内容多为一次书写&#xff0c;缺少检查与订正&#xff0c;如有问题或其他拓展…...

我有一个Python项目,已经用docker打包镜像也push了,k8s怎么部署呢?

要在Kubernetes (k8s) 部署你的Python项目&#xff0c;你需要创建一系列的Kubernetes资源定义文件&#xff08;通常是以.yaml为扩展名&#xff09;&#xff0c;这些文件描述了你希望在集群中运行的应用程序。以下是部署的基本步骤&#xff1a; 1. **准备Docker镜像**&#xff1…...

GAN(生成对抗网络)原理与目标函数

GAN&#xff08;生成对抗网络&#xff09;原理与目标函数 什么是 GAN&#xff1f; GAN 是一种生成模型&#xff0c;全名是 生成对抗网络 (Generative Adversarial Network)。它由两个部分组成&#xff1a; 生成器 (Generator, G)&#xff1a;负责生成“假数据”。判别器 (Di…...

[Java]项目入门

这篇简单介绍一些入门的有关项目和行业的知识&#xff0c;并带着实现一个小项目。便于已经编程入门的各位准备进阶到下一个阶段。 先大致地介绍&#xff0c;一个完整的项目(不看客户端、服务端的分类)基本可以划分为三部分&#xff1a; 1.前端。比如你现在看到的CSDN页面就是一…...

自定义指令,全局,局部,注册

让输入框自动获取焦点(每次刷新自动获取焦点&#xff09; <template><div><h3>自定义指令</h3><input ref"inp" type"text"></div> </template><script> export default {mounted(){this.$refs.inp.focus…...