首页 > 其他分享 >ADG级联备库环境PSU应用验证

ADG级联备库环境PSU应用验证

时间:2023-05-23 09:56:08浏览次数:44  
标签:00 备库 22 16 ------------------------------ 11.2 ADG 2023 PSU

上篇文章

我只在中间备库环境应用了PSU,解决了级联备库从中间备库duplicate数据库的问题:

细心的朋友已经发现,因为是备库环境,并没有做数据库执行相关脚本部分,所以如果去DB查询补丁应用信息是没有的:

SQL> r
  1*  select * from dba_registry_history

ACTION_TIME                   ACTION         NAMESPACE        VERSION        ID BUNDLE_SERIES      COMMENTS
--------------------------------------------------------------------------- ------------------------------ ------------------------------ ------------------------------ ---------- ------------------------------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
17-SEP-11 10.21.11.595816 AM                APPLY        SERVER       11.2.0.3          0 PSU          Patchset 11.2.0.2.0
04-APR-23 04.37.58.780922 PM                APPLY        SERVER       11.2.0.3          0 PSU          Patchset 11.2.0.2.0

本篇文章就继续把级联备库以及主库的PSU软件补丁打上,步骤和上篇无区别,不再赘述。
最后要在主库按照readme执行对应脚本(只需在主库执行哦,通过ADG基理会将这些改变自动同步到备库):

cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> QUIT

再次看状态:

set lines 1000
select * from dba_registry_history;

SQL> set lines 1000
select * from dba_registry_history;SQL>

ACTION_TIME                   ACTION         NAMESPACE        VERSION        ID BUNDLE_SERIES      COMMENTS
--------------------------------------------------------------------------- ------------------------------ ------------------------------ ------------------------------ ---------- ------------------------------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
17-SEP-11 10.21.11.595816 AM                APPLY        SERVER       11.2.0.3          0 PSU          Patchset 11.2.0.2.0
04-APR-23 04.37.58.780922 PM                APPLY        SERVER       11.2.0.3          0 PSU          Patchset 11.2.0.2.0
22-MAY-23 04.55.20.039373 PM                APPLY        SERVER       11.2.0.3         15 PSU          PSU 11.2.0.3.15

最后去备库,以及级联备库分别确认同步状态:

备库状态:已有11.2.0.3.15信息

[oracle@db11gadg ~]$ 

SQL> @dg

NAME           VALUE          UNIT           TIME_COMPUTED        DATUM_TIME
---------------------- ---------------------- ------------------------------ ------------------------------ ------------------------------
transport lag        +00 00:00:00       day(2) to second(0) interval   05/22/2023 16:56:04      05/22/2023 16:56:03
apply lag        +00 00:00:00       day(2) to second(0) interval   05/22/2023 16:56:04      05/22/2023 16:56:03
apply finish time      +00 00:00:00.000       day(2) to second(3) interval   05/22/2023 16:56:04
estimated startup time 9          second           05/22/2023 16:56:04

SQL> set lines 1000
select * from dba_registry_history;SQL>

ACTION_TIME                   ACTION         NAMESPACE        VERSION        ID BUNDLE_SERIES      COMMENTS
--------------------------------------------------------------------------- ------------------------------ ------------------------------ ------------------------------ ---------- ------------------------------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
17-SEP-11 10.21.11.595816 AM                APPLY        SERVER       11.2.0.3          0 PSU          Patchset 11.2.0.2.0
04-APR-23 04.37.58.780922 PM                APPLY        SERVER       11.2.0.3          0 PSU          Patchset 11.2.0.2.0
22-MAY-23 04.55.20.039373 PM                APPLY        SERVER       11.2.0.3         15 PSU          PSU 11.2.0.3.15

级联备库状态:在主库切日志后也会有11.2.0.3.15信息:

[oracle@db11gcas ~]$

SQL> @dg

NAME           VALUE          UNIT           TIME_COMPUTED        DATUM_TIME
---------------------- ---------------------- ------------------------------ ------------------------------ ------------------------------
transport lag        +00 00:00:48       day(2) to second(0) interval   05/22/2023 16:56:50      05/22/2023 16:56:06
apply lag        +00 00:00:48       day(2) to second(0) interval   05/22/2023 16:56:50      05/22/2023 16:56:06
apply finish time           day(2) to second(3) interval   05/22/2023 16:56:50
estimated startup time 9          second           05/22/2023 16:56:50

SQL> set lines 1000
select * from dba_registry_history;SQL>

ACTION_TIME                   ACTION         NAMESPACE        VERSION        ID BUNDLE_SERIES      COMMENTS
--------------------------------------------------------------------------- ------------------------------ ------------------------------ ------------------------------ ---------- ------------------------------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
17-SEP-11 10.21.11.595816 AM                APPLY        SERVER       11.2.0.3          0 PSU          Patchset 11.2.0.2.0
04-APR-23 04.37.58.780922 PM                APPLY        SERVER       11.2.0.3          0 PSU          Patchset 11.2.0.2.0

SQL> /

ACTION_TIME                   ACTION         NAMESPACE        VERSION        ID BUNDLE_SERIES      COMMENTS
--------------------------------------------------------------------------- ------------------------------ ------------------------------ ------------------------------ ---------- ------------------------------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
17-SEP-11 10.21.11.595816 AM                APPLY        SERVER       11.2.0.3          0 PSU          Patchset 11.2.0.2.0
04-APR-23 04.37.58.780922 PM                APPLY        SERVER       11.2.0.3          0 PSU          Patchset 11.2.0.2.0
22-MAY-23 04.55.20.039373 PM                APPLY        SERVER       11.2.0.3         15 PSU          PSU 11.2.0.3.15

SQL> @dg

NAME           VALUE          UNIT           TIME_COMPUTED        DATUM_TIME
---------------------- ---------------------- ------------------------------ ------------------------------ ------------------------------
transport lag        +00 00:00:00       day(2) to second(0) interval   05/22/2023 16:57:18      05/22/2023 16:57:11
apply lag        +00 00:00:00       day(2) to second(0) interval   05/22/2023 16:57:18      05/22/2023 16:57:11
apply finish time           day(2) to second(3) interval   05/22/2023 16:57:18
estimated startup time 9          second           05/22/2023 16:57:18


SQL> @dg

NAME           VALUE          UNIT           TIME_COMPUTED        DATUM_TIME
---------------------- ---------------------- ------------------------------ ------------------------------ ------------------------------
transport lag        +00 00:00:56       day(2) to second(0) interval   05/22/2023 16:58:16      05/22/2023 16:58:07
apply lag        +00 00:00:56       day(2) to second(0) interval   05/22/2023 16:58:16      05/22/2023 16:58:07
apply finish time           day(2) to second(3) interval   05/22/2023 16:58:16
estimated startup time 9          second           05/22/2023 16:58:16

都没问题了,整个过程也符合PSU补丁应用逻辑。

标签:00,备库,22,16,------------------------------,11.2,ADG,2023,PSU
From: https://www.cnblogs.com/jyzhao/p/17422429.html

相关文章

  • 源端为备库的场景下Duplicate失败问题
    环境:Oracle11.2.0.3+OEL7.9A->B->C级联ADG环境:db11g->db11gadg->db11gcas之前测试提到,从一级备库duplicate到二级备库会报错:RMAN-00571:===========================================================RMAN-00569:===============ERRORMESSAGESTACKFOLLOWS......
  • Firefox+BurpSuite绕过HSTS抓包
      1、firefox的证书设置在firefox的url栏输入 http://burp点击 CACertificate 下载证书然后在导入证书选项---> 高级--->证书--->查看证书 2、点击导入,然后找到刚刚下载的证书打开勾选第一个,信任使用该CA标志的网站然后点击确定 就导入成功了 ......
  • Jmeter函数助手13-threadGroupName
    threadGroupName函数获取当前线程组的名称。该函数没有参数,直接引用即可。1、返回当前线程组的名称......
  • burpsuite抓不到回环地址127.0.0.1的数据包
    使用火狐浏览器,访问本地搭建的靶场,然后burpsuite抓不到包查看了浏览器代理地址和端口,也查看了burpsuite的代理地址和端口号,都没有毛病。后来网上找了才发现,浏览器默认是关闭了访问回环地址的代理,我们需要打开才行。地址栏输入about:config,点接受风险并继续。 然后输入networ......
  • ADG无法切换:报错 ORA-16467
    现象:ADG无法切换:验证时就报错ORA-16467记录问题,顺便展现一次troubleshooting的心路历程。具体查询:在主库操作,@primary切换验证:alterdatabaseswitchovertodemoracverify;报错ORA-16467:SQL>alterdatabaseswitchovertodemoracverify;alterdatabaseswitchov......
  • BurpSuit配置浏览器代理 chrome
    1、BurpSuit配置默认代理 2、添加谷歌插件switchyomega,修改服务器和端口 打开代理,选择刚才添加的代理 3、访问http://burp/,获取证书 4、将证书添加到Chrome浏览器 5、访问任意网址,发现可以抓到包包啦~ ......
  • KingbaseES V8R6 集群运维案例--备库timeline not contain minimum recovery point故
    ​案例现象:KingbaseESV8R6集群备库启动后,加入集群失败,sys_log日志信息提示,如下图所示:适用版本:kingbaseESV8R6一、问题分析在timeline对应的history文件中会记录每次timeline切换时所对应的lsn,如下图所示,在sys_wal目录下:.......-rw-------1kingbasekingbase1.2KFe......
  • burpsuite响应乱码中文乱码
    burp响应报文中含有中文时,会出现不显示中文或中文乱码的情况。解决方案,一个是修改字体为中文类型的字体,另一个是修改字符集,使用UTF-8,修改后马上可以看到效果。 ......
  • 黑客工具之BurpSuite详解
    BurpSuite是用于攻击Web应用程序的集合平台,包含了许多工具。BurpSuite为这些工具设计了许多接口,以加快攻击应用程序的过程。所有工具都共享一个请求,并能处理对应的HTTP消息、持久性、认证、代理、日志、警报。BurpSuite基于Java开发,所以你的电脑上必须得安装有JDKProxy代理模块B......
  • 运行pycharm报错ModuleNotFoundError: No module named 'psutil'
    解决办法:psutil库要和电脑的python版本还有系统匹配才可以,我个人是不建议直接用pycharm的插件库来安装第三方包的,他是直接用pycharm安装所以不成功,我去官网下载了匹配他系统的版本再安装就成功了1、upgrade进行升级 ......