Oracle19.24发布,打补丁到19.24

一. 19.24发布

2024年7月16日 19c,19.24补丁发布

文档编号19202407.9,文档编码规则:

19(版本号)+2024(年份)+07(当季的第一个月01/04/07/10)+.9

一般每个季度的首月中16号左右发布(北美时间),中国时间17号能看到

具体的patch number如下

The Database patch bundles that were released on July 16, 2024 for Release 19c were:

NameDownload Link
Database Release Update 19.24.0.0.240716Patch 36582781
Grid Infrastructure Release Update 19.24.0.0.240716Patch 36582629
OJVM Release Update 19.24.0.0.240716Patch 36414915
Microsoft Windows 32-Bit & x86-64 Bundle Patch 19.24.0.0.240716Patch 36521936

This is the Known Issues note for the patches listed above. These known issues are in addition to the issues listed:

  • in the README file for each individual Release Update (RU),, or Bundle Patch (BP).

  • in Note 555.1, "Oracle Database 19c Important Recommended One-off Patches"

二.打补丁到19.24

1.本次是单实例打补丁,不需要GI,所需的补丁如下

p6880880_190000_Linux-x86-64.zip (.43的opatch)(要求>=.42)

p36414915_190000_Linux-x86-64.zip(OJVM)

p36582781_190000_Linux-x86-64.zip(DB)

p36582629_190000_Linux-x86-64.zip(GI)(rac需要,GI补丁包含DB)

oracle rac打补丁教程参考如下文章

oracle 19c 打补丁教程_19c ojvm补丁下载-CSDN博客

2.备份opatch

mv /u01/app/oracle/product/19.3.0/db/OPatch /u01/app/oracle/product/19.3.0/db/OPatch.bak.41

3.替换高版本opatch

unzip p6880880_190000_Linux-x86-64.zip -d $ORACLE_HOMEchmod -R 755 /u01/app/oracle/product/19.3.0/db/OPatchchown -R oracle:oinstall /u01/app/oracle/product/19.3.0/db/OPatchopatch versionOPatch Version: 12.2.0.1.43OPatch succeeded.

4.打DB patch

4.1打补丁前需要关闭监听和数据库

lsnrctl stopsqlplus / as sysdba如有pdb 先关闭所有pdbalter pluggable database all close immediate;shutdown immediate;

unzip p36582781_190000_Linux-x86-64.zip -d /u01/appchmod -R 755 /u01/app/36582781chown –R oracle:oinstall /u01/app/36582781

4.2补丁检查

$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/app/36582781/Oracle Interim Patch Installer version 12.2.0.1.41Copyright (c) 2024, Oracle Corporation.  All rights reserved.PREREQ sessionOracle Home       : /u01/app/oracle/product/19.3.0/dbCentral Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/19.3.0/db/oraInst.locOPatch version    : 12.2.0.1.41OUI version       : 12.2.0.7.0Log file location : /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2024-07-16_23-08-12PM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed.OPatch succeeded.

4.3补丁空间检查

Vi /tmp/patch_list_gihome.txt/u01/app/35320081$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txtOracle Interim Patch Installer version 12.2.0.1.41Copyright (c) 2024, Oracle Corporation.  All rights reserved.PREREQ sessionOracle Home       : /u01/app/oracle/product/19.3.0/dbCentral Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/19.3.0/db/oraInst.locOPatch version    : 12.2.0.1.41OUI version       : 12.2.0.7.0Log file location : /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2024-07-16_23-11-17PM_1.logInvoking prereq "checksystemspace"Prereq "checkSystemSpace" passed.OPatch succeeded.

4.4打补丁

[oracle@19ocm ~]$ cd /u01/app[oracle@19ocm app]$ cd 36582781/[oracle@19ocm 36582781]$[oracle@19ocm 36582781]$[oracle@19ocm 36582781]$[oracle@19ocm 36582781]$ /u01/app/oracle/product/19.3.0/db/OPatch/opatch applyOracle Interim Patch Installer version 12.2.0.1.43Copyright (c) 2024, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/19.3.0/dbCentral Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/19.3.0/db/oraInst.locOPatch version    : 12.2.0.1.43OUI version       : 12.2.0.7.0Log file location : /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2024-07-17_01-12-01AM_1.logVerifying environment and performing prerequisite checks...OPatch continues with these patches:   36582781Do you want to proceed? [y|n]yUser Responded with: YAll checks passed.Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.(Oracle Home = '/u01/app/oracle/product/19.3.0/db')Is the local system ready for patching? [y|n]yUser Responded with: YBacking up files...Applying interim patch '36582781' to OH '/u01/app/oracle/product/19.3.0/db'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.net.cman, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 19.0.0.0.0 ] , [ oracle.sdo.companion, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 19.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.options.olap.api, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.jdk, 1.8.0.191.0 ]  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.nlsrtl.rsf.core, 19.0.0.0.0...Patching component oracle.nlsrtl.rsf.ic, 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.ovm, 19.0.0.0.0...Patching component oracle.rdbms.drdaas, 19.0.0.0.0...Patching component oracle.oraolap, 19.0.0.0.0...Patching component oracle.rdbms.dv, 19.0.0.0.0...Patching component oracle.nlsrtl.rsf.lbuilder, 19.0.0.0.0...Patching component oracle.rdbms.hsodbc, 19.0.0.0.0...Patching component oracle.rdbms.hs_common, 19.0.0.0.0...Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...Patching component oracle.install.deinstalltool, 19.0.0.0.0...Patching component oracle.oraolap.api, 19.0.0.0.0...Patching component oracle.xdk.parser.java, 19.0.0.0.0...Patching component oracle.mgw.common, 19.0.0.0.0...Patching component oracle.network.listener, 19.0.0.0.0...Patching component oracle.xdk.xquery, 19.0.0.0.0...Patching component oracle.ldap.ssl, 19.0.0.0.0...Patching component oracle.rdbms.rman, 19.0.0.0.0...Patching component oracle.odbc, 19.0.0.0.0...Patching component oracle.sdo.locator, 19.0.0.0.0...Patching component oracle.ldap.client, 19.0.0.0.0...Patching component oracle.rdbms.install.common, 19.0.0.0.0...Patching component oracle.ctx.atg, 19.0.0.0.0...Patching component oracle.rdbms.dm, 19.0.0.0.0...Patching component oracle.oraolap.dbscripts, 19.0.0.0.0...Patching component oracle.xdk, 19.0.0.0.0...Patching component oracle.javavm.server, 19.0.0.0.0...Patching component oracle.dbtoolslistener, 19.0.0.0.0...Patching component oracle.rdbms.locator, 19.0.0.0.0...Patching component oracle.ctx.rsf, 19.0.0.0.0...Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...Patching component oracle.network.client, 19.0.0.0.0...Patching component oracle.rdbms.rat, 19.0.0.0.0...Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...Patching component oracle.rdbms.lbac, 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 36582781 successfully applied.Sub-set patch [29517242] has become inactive due to the application of a super-set patch [36582781].Please refer to Doc ID 2161861.1 for any possible further required actions.Log file location: /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2024-07-17_01-12-01AM_1.logOPatch succeeded.[oracle@19ocm 36582781]$

opatch 后补丁检查

OPatch succeeded.[oracle@19ocm 36582781]$ opatch lspatches36582781;Database Release Update : 19.24.0.0.240716 (36582781)29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)OPatch succeeded.

4.5打补丁常见报错

  非rac环境使用opatchauto会报错

/u01/app/oracle/product/19.3.0/db/OPatch/opatchauto apply /u01/app/35320081 -oh /u01/app/oracle/product/19.3.0/dbOPatchauto session is initiated at Thu Aug 10 09:51:58 2023OPATCHAUTO-72083: Performing bootstrap operations failed.OPATCHAUTO-72083: The bootstrap execution failed because Cannot detect any valid Grid Infrastructure setup..OPATCHAUTO-72083: Fix the reported problem and re-run opatchauto.OPatchauto session completed at Thu Aug 10 09:51:58 2023Time taken to complete the session 0 minute, 0 secondopatchauto bootstrapping failed with error code 255.错误原因,非RAC环境不可以使用opatchauto

缺少fuser,需要安装psmisc包

Oracle Interim Patch Installer version 12.2.0.1.43Copyright (c) 2023, Oracle Corporation. All rights reserved.Oracle Home : /u01/app/oracle/product/19.3.0/dbCentral Inventory : /u01/app/oraInventoryfrom : /u01/app/oracle/product/19.3.0/db/oraInst.locOPatch version : 12.2.0.1.43OUI version : 12.2.0.7.0Log file location : /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2023-08-10_10-02-32AM_1.logVerifying environment and performing prerequisite checks...Prerequisite check "CheckSystemCommandAvailable" failed.The details are:Missing command :fuserUtilSession failed:Prerequisite check "CheckSystemCommandAvailable" failed.Log file location: /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2023-08-10_10-02-32AM_1.logOPatch failed with error code 73这个报错是因为缺少fuser命令yum search fuserLoaded plugins: fastestmirrorDetermining fastest mirrors====================================================================== Matched: fuser =======================================================================psmisc.x86_64 : Utilities for managing processes on your systemyum install -y psmisc #安装这个包

5.OJVM补丁

基本和上面的步骤一致

unzip p36414915_190000_Linux-x86-64.zip -d /u01/app/chmod -R 755 /u01/app/36414915chown -R oracle:oinstall /u01/app/36414915cd /u01/app/36414915/u01/app/oracle/product/19.3.0/db/OPatch/opatch apply---------------------------------Oracle Interim Patch Installer version 12.2.0.1.43Copyright (c) 2024, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/19.3.0/dbCentral Inventory : /u01/app/oraInventoryfrom           : /u01/app/oracle/product/19.3.0/db/oraInst.locOPatch version    : 12.2.0.1.43OUI version       : 12.2.0.7.0Log file location : /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2024-07-17_01-24-45AM_1.logVerifying environment and performing prerequisite checks...OPatch continues with these patches:   36414915Do you want to proceed? [y|n]yUser Responded with: YAll checks passed.Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.(Oracle Home = '/u01/app/oracle/product/19.3.0/db')Is the local system ready for patching? [y|n]yUser Responded with: YBacking up files...Applying interim patch '36414915' to OH '/u01/app/oracle/product/19.3.0/db'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 36414915 successfully applied.Log file location: /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2024-07-17_01-24-45AM_1.logOPatch succeeded.

检查补丁结果

[oracle@19ocm 36414915]$ opatch lspatches36414915;OJVM RELEASE UPDATE: 19.24.0.0.240716 (36414915)36582781;Database Release Update : 19.24.0.0.240716 (36582781)29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)OPatch succeeded.

6.补完丁后操作

6.1 非pdbs

[oracle@19ocm 36414915]$ sqlplus / as sysdbaSQL*Plus: Release 19.0.0.0.0 - Production on Wed Jul 17 01:28:24 2024Version 19.24.0.0.0Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to an idle instance.SQL> startup upgradeORACLE instance started.Total System Global Area 1073739904 bytesFixed Size                  8947840 bytesVariable Size             855638016 bytesDatabase Buffers          201326592 bytesRedo Buffers                7827456 bytesDatabase mounted.Database opened.SQL>SQL> show pdbs;SQL>SQL>

6.2 pdb模式

STARTUP UPGRADEORACLE instance started.Total System Global Area 1.0100E+10 bytesFixed Size 13893832 bytesVariable Size 1610612736 bytesDatabase Buffers 8455716864 bytesRedo Buffers 19656704 bytesDatabase mounted.Database opened.SQL> show pdbsCON_ID CON_NAME OPEN MODE RESTRICTED---------- ------------------------------ ---------- ----------2 PDB$SEED MIGRATE YES3 YZCCREP MOUNTEDSQL>alter pluggable database all open;alter pluggable database all open*ERROR at line 1:ORA-65054: Cannot open a pluggable database in the desired mode.这时候PDB是无法启动的,需要先关闭数据库 然后正常startupSQL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.SQL> startupORACLE instance started.Total System Global Area 1.0100E+10 bytesFixed Size 13893832 bytesVariable Size 1610612736 bytesDatabase Buffers 8455716864 bytesRedo Buffers 19656704 bytesDatabase mounted.Database opened.SQL> show pdbsCON_ID CON_NAME OPEN MODE RESTRICTED---------- ------------------------------ ---------- ----------2 PDB$SEED READ ONLY NO3 YZCCREP READ WRITE NOSQL>SQL>SQL> exit

6.3 datapatch 

PDB模式下要确认所有的pdb都是open的,不然可能会出现pdb和cdb版本不一致而引起的pdb状态受限

pdb状态受限处理办法参考文章

Warning: PDB altered with errors pdb RESTRICTED-CSDN博客

datapatch -verbose

[oracle@19ocm 36414915]$ datapatch -verboseSQL Patching tool version 19.24.0.0.0 Production on Wed Jul 17 01:34:47 2024Copyright (c) 2012, 2024, Oracle.  All rights reserved.Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_16472_2024_07_17_01_34_47/sqlpatch_invocation.logConnecting to database...OKGathering database info...doneBootstrapping registry and package to current versions...doneDetermining current state...doneCurrent state of interim SQL patches:Interim patch 36414915 (OJVM RELEASE UPDATE: 19.24.0.0.240716 (36414915)):  Binary registry: Installed  SQL registry: Not installedCurrent state of release update SQL patches:  Binary registry:    19.24.0.0.0 Release_Update 240627235157: Installed  SQL registry:    No release update patches installedAdding patches to installation queue and performing prereq checks...doneInstallation queue:  No interim patches need to be rolled back  Patch 36582781 (Database Release Update : 19.24.0.0.240716 (36582781)):    Apply from 19.1.0.0.0 Feature Release to 19.24.0.0.0 Release_Update 240627235157  The following interim patches will be applied:    36414915 (OJVM RELEASE UPDATE: 19.24.0.0.240716 (36414915))Installing patches...Patch installation complete.  Total patches installed: 2Validating logfiles...donePatch 36582781 apply: SUCCESS  logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/36582781/25751445/36582781_apply_OCMDB_2024Jul17_01_35_24.log (no errors)Patch 36414915 apply: SUCCESS  logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/36414915/25700138/36414915_apply_OCMDB_2024Jul17_01_35_24.log (no errors)SQL Patching tool complete on Wed Jul 17 01:40:37 2024

6.4编译无效对象

@$ORACLE_HOME/rdbms/admin/utlrp.sql

6.5检查补丁结果

SQL> set linesize 180col action for a15col status for a15SQL> SQL>SQL>SQL> select PATCH_ID,PATCH_TYPE,ACTION,STATUS,TARGET_VERSION from dba_registry_sqlpatch;  PATCH_ID PATCH_TYPE ACTION          STATUS          TARGET_VERSION---------- ---------- --------------- --------------- ---------------  36414915 INTERIM    APPLY           SUCCESS         19.24.0.0.0  36582781 RU         APPLY           SUCCESS         19.24.0.0.0SQL> select PATCH_UID,PATCH_ID,ACTION,STATUS,ACTION_TIME ,DESCRIPTION from dba_registry_sqlpatch; PATCH_UID   PATCH_ID ACTION          STATUS          ACTION_TIME---------- ---------- --------------- --------------- ---------------------------------------------------------------------------DESCRIPTION----------------------------------------------------------------------------------------------------  25700138   36414915 APPLY           SUCCESS         17-JUL-24 01.35.24.166005 AMOJVM RELEASE UPDATE: 19.24.0.0.240716 (36414915)  25751445   36582781 APPLY           SUCCESS         17-JUL-24 01.40.09.023139 AMDatabase Release Update : 19.24.0.0.240716 (36582781)SQL>

三 更多打补丁相关请参考

oracle 19c 打补丁教程_19c ojvm补丁下载-CSDN博客
oracle19C rac打patch到19.14_19c rac datapatch-CSDN博客
oracle 19.23 Patch发布(含下载链接)_19.23补丁-CSDN博客
oracle19.22的patch已发布-CSDN博客
OPatch failed with error code 73-CSDN博客

oracle 19C Release Update patch number_oracle database 19c release-CSDN博客
 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/874000.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

02-Spring Core中的设计模式分析

Spring Core中的设计模式分析 1. 单例模式 (Singleton Pattern) 源码分析: 在Spring框架中,Bean默认是单例的。这意味着在整个Spring IoC容器中,只有一个Bean实例。Spring通过DefaultSingletonBeanRegistry来实现单例模式。 public class…

Android Launcher3桌面图标样式修改(添加圆角)

1.源码类:LauncherActivityCachingLogic.java /** Copyright (C) 2018 The Android Open Source Project** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You…

js修改hash的方法

关键: window.onhashchange (event) > {// do something }hash变化包括 js修改hash手动修改url的hash浏览器前进、后退 js修改hash: location.href "#user";在vue-router等路由组件中如何实现history模式呢? 关键函数:hi…

【学习笔记】Redis学习笔记——第14章 客户端

第14章 服务器 14.1 命令请求的执行过程 14.1.1 发送命令请求 客户端将发送的命令准换成协议格式然后发送给服务器 14.1.2 读取命令请求 1>保存命令至客户端状态输入缓冲区 2>提取命令参数及参数个数保存至客户端状态的argv与argc字段中 3>获取命令执行器并执行命…

Flink CDC 同步表至Paimon 写数据流程,write算子和commit算子。

Flink CDC 同步表至Paimon 写数据流程,write算子和commit算子。(未吃透版) 流程图 一般基本flink cdc 任务同步数据至paimon表时包含3个算子,source、write、global commit。 source端一般是flink connector实现的连接源端进行获取数据的过程,本文探究的是 source算子获…

Haproxy服务

目录 一.haproxy介绍 1.主要特点和功能 2.haproxy 调度算法 3.haproxy 与nginx 和lvs的区别 二.安装 haproxy 服务 1. yum安装 2.第三方rpm 安装 3.编译安装haproxy 三.配置文件详解 1.官方地址配置文件官方帮助文档 2.HAProxy 的配置文件haproxy.cfg由两大部分组成&…

Synchronized升级到重量级锁会发生什么?

我们从网上看到很多&#xff0c;升级到重量锁的时候不会降级&#xff0c;再来线程都是重量级锁 今天我们来实验一把真的是这样的吗 1.首选导入Java对象内存布局的工具库&#xff1a; <dependency><groupId>org.openjdk.jol</groupId><artifactId>jol-…

【moyu】河北省职工职业技能大赛决赛

[32m [33mMOYU [32m[0m 工作不算争取价值&#xff0c;是劳动换取酬劳&#xff1b; 工作的时候偷闲才是为自己争取价值。 [32m[0m****************************************************** ******************* 让我摸个鱼吧&#xff01; ******************* *****************…

二叉树---最大二叉树

题目&#xff1a; 给定一个不重复的整数数组 nums 。 最大二叉树 可以用下面的算法从 nums 递归地构建: 创建一个根节点&#xff0c;其值为 nums 中的最大值。递归地在最大值 左边 的 子数组前缀上 构建左子树。递归地在最大值 右边 的 子数组后缀上 构建右子树。 返回 nums…

web前端 React 框架面试200题(四)

面试题 97. React 两种路由模式的区别&#xff1f;hash和history&#xff1f; 参考回答&#xff1a; 1: hash路由 hash模式是通过改变锚点(#)来更新页面URL&#xff0c;并不会触发页面重新加载&#xff0c;我们可以通过window.onhashchange监听到hash的改变&#xff0c;从而处…

什么是内网穿透?

前言 我们常常会听到“内网穿透”这个术语&#xff0c;但对于很多人来说&#xff0c;它可能还比较陌生。作为一个在网络世界中摸索了一段时间的使用者&#xff0c;我来和大家分享一下我对内网穿透的理解。 目录 一、内网穿透介绍 二、发现 三、特点 四、优势 简单来说&am…

初识godot游戏引擎并安装

简介 Godot是一款自由开源、由社区驱动的2D和3D游戏引擎。游戏开发虽复杂&#xff0c;却蕴含一定的通用规律&#xff0c;正是为了简化这些通用化的工作&#xff0c;游戏引擎应运而生。Godot引擎作为一款功能丰富的跨平台游戏引擎&#xff0c;通过统一的界面支持创建2D和3D游戏。…

web前端 React 框架面试200题(五)

面试题 129. React.forwardRef是什么&#xff1f;它有什么作用&#xff1f; 参考回答&#xff1a; React.forwardRef 会创建一个React组件&#xff0c;这个组件能够将其接受的 ref 属性转发到其组件树下的另一个组件中。这种技术并不常见&#xff0c;但在以下两种场景中特别有…

Git使用技巧

rebase & merge 先说结论&#xff0c;rebase比较适用于私人分支&#xff0c;可以把主干分支上其他人开发的功能拉到自己的分支上&#xff0c;并且是一条线&#xff1b;merge则主要适用于主分支&#xff0c;可以将其他人的代码合并上去&#xff0c;因为要保留主分支的完整历…

opencv读写路径包含中文的文件

读文件 opencv直接读写路径包含中文的文件会出错。这是因为 cv2.imread 内部处理文件路径时&#xff0c;默认使用的是 C 标准库中的字符串处理函数&#xff0c;这些函数对于非 ASCII 字符可能处理不当&#xff0c;导致无法正确读取文件。 1、使用 numpy.fromfi…

JavaWeb笔记_Cookie

一.会话技术概述 在日常生活中,A和B之间在打电话过程中一连串的你问我答就是一个会话 在BS模型中,会话可以理解为通过浏览器访问服务端的资源,点击超链接可以进行资源的跳转,直到浏览器关闭过程叫做会话 我们使用会话技术可以解决的是整个会话过程中(通过浏览器浏览服务…

css-01-如何实现“文本过长(文本在一行排),超出部分被省略号代替”

目录 需求代码代码解释 需求 最近写一个项目&#xff0c;遇到了一个问题&#xff0c;就是希望实现下面这种文字效果&#xff1a;文字在一行排&#xff0c;超出的部分用省略号代替 代码 <!DOCTYPE html> <html lang"en"><head><meta charset…

【芯片设计- RTL 数字逻辑设计入门 番外篇 12 -- SoC 设计中的 ECO】

请阅读【ARM AMBA AXI 总线 文章专栏导读】 请阅读【芯片设计 RTL 数字逻辑设计扫盲 】 转自&#xff1a;简单了解SoC设计中的ECO — 快乐的芯片工程师 文章目录 ECO 概述Pre-Mask ECO&#xff08;预掩模ECO&#xff09;芯片设计前端与后端的区别 Post-Mask ECO&#xff08;后…

IAR环境下STM32+IAP方案的实现

--基于STM32F103ZET6的UART通讯实现 一、什么是IAP&#xff0c;为什么要IAP IAP即为In Application Programming(在应用中编程)&#xff0c;一般情况下&#xff0c;以STM32F10x系列芯片为主控制器的设备在出厂时就已经使用J-Link仿真器将应用代码烧录了&#xff0c;如果在设备使…

BM34 判断是不是二叉搜索树

1.题目描述 给定一个二叉树根节点&#xff0c;请你判断这棵树是不是二叉搜索树。 二叉搜索树满足每个节点的左子树上的所有节点均小于当前节点且右子树上的所有节点均大于当前节点。 例&#xff1a; 图1 图2 数据范围&#xff1a;节点数量满足 1≤&#x1d45b;≤104 1≤n≤104…