Thứ Hai, 25 tháng 5, 2026

Thủ tục Apply Patching trên Oracle Database Release Udate 19.31_39034528 (39036936 là combo/bundle)_OK

39036936: Gồm cả GI+DB

Việc cập nhật bản vá cho cơ sở dữ liệu Oracle không còn là tùy chọn nữa mà là trách nhiệm cốt lõi đối với các quản trị viên cơ sở dữ liệu (DBA) quan tâm đến bảo mật, tính ổn định và hỗ trợ lâu dài. Oracle Database 19c là phiên bản phát hành dài hạn, và Oracle tiếp tục cung cấp các bản cập nhật phát hành (RU) hàng quý để khắc phục các lỗ hổng bảo mật, sửa lỗi và cải thiện hiệu suất.

 Trong bài viết này, chúng ta sẽ cùng tìm hiểu một ứng dụng thực tế của Bản vá 39036936 , bản vá này nâng cấp Oracle Database 19c lên Phiên bản cập nhật 19.31 . Hướng dẫn này bao gồm quá trình nâng cấp OPatch, kiểm tra trước khi cài đặt, áp dụng bản vá và xác thực sau khi cài đặt , tất cả đều dựa trên môi trường sản xuất thực tế.


Mục lục 

  • 1.Vì sao bản vá 39036936 lại quan trọng

  • 2.Điều kiện tiên quyết: Yêu cầu phiên bản OPatch

  • 3.Bước 1: Nâng cấp tiện ích OPatch

  • 4.Bước 2: Xác minh cấp độ bản vá hiện tại

  •  Trạng thái vá lỗi SQL cơ sở dữ liệu

  • Kho bản vá Oracle Home

  • 5.Bước 3: Giải nén bản vá 39036936

  • 6.Bước 4: Chạy kiểm tra xung đột và điều kiện tiên quyết

  • 7.Bước 5: Tắt cơ sở dữ liệu và trình lắng nghe

  • 8.Bước 6: Áp dụng bản vá 39036936

  • 9.Bước 7: Chạy các bước kiểm tra tính hợp lệ của Datapatch

  • Áp dụng các bản vá SQL bằng Datapatch

  • Xác minh việc áp dụng bản vá

  • 10.Các thực tiễn tốt nhất được tuân thủ trong chu kỳ vá lỗi này

  • 11.Lời kết

Một số bản vá 19c:

 1. 19.31 GI RU - Patch 39036936 (for Grid Infrastructure home and Database homes on RAC systems), 19.30 DB RU - Patch 39034528 (for Database homes on non-RAC systems)

1. 19.30 GI RU - Patch 38629535 (for Grid Infrastructure home and Database homes on RAC systems), 19.30 DB RU - Patch 39036936 (for Database homes on non-RAC systems)

2. 19.29 GI RU - Patch 38298204 (for Grid Infrastructure home and Database homes on RAC systems), 19.29 DB RU - Patch 38291812 (for Database homes on non-RAC systems)

3. 19.28 GI RU - Patch 37957391 (for Grid Infrastructure home and Database homes on RAC systems), 19.28 DB RU - Patch 37960098 (for Database homes on non-RAC systems)

4. 19.27 GI RU - Patch 37641958 (for Grid Infrastructure home and Database homes on RAC systems), 19.27 DB RU - Patch 37642901 (for Database homes on non-RAC systems)

Vì sao bản vá 39036936 lại quan trọng

Bản vá 39036936bản cập nhật phát hành cơ sở dữ liệu (RU) dành cho Oracle Database 19c. Không giống như các bản vá tạm thời riêng lẻ, bản cập nhật phát hành là bản cập nhật tích lũy. Điều đó có nghĩa là:

  • Nó bao gồm tất cả các bản vá lỗi bảo mật trước đó.

  • Khắc phục các lỗi đã biết của Oracle.

  • Cải thiện tính ổn định và hiệu suất của cơ sở dữ liệu.

  • Đảm bảo hệ thống của bạn tuân thủ chiến lược vá lỗi được Oracle khuyến nghị.

Việc áp dụng bản cập nhật RU mới nhất là rất cần thiết cho các môi trường đang chạy các khối lượng công việc quan trọng, đặc biệt là những môi trường có liên quan đến tích hợp bên ngoài hoặc các yêu cầu tuân thủ.

Điều kiện tiên quyết: Yêu cầu phiên bản OPatch

Trước khi áp dụng bản vá này, Oracle yêu cầu rõ ràng:

Phiên bản OPatch 12.2.0.1.51 trở lên

Kiểm tra phiên bản OPatch hiện có cho thấy:

./opatch versionOPatch Version: 12.2.0.1.48

Phiên bản này chưa đủ , do đó việc nâng cấp OPatch là bắt buộc trước khi tiếp tục.

 

Bước 1: Nâng cấp tiện ích OPatch

Để tránh xung đột, thư mục OPatch hiện có đã được sao lưu:

cd $ORACLE_HOMEmv OPatch OPatch_12.2.0.1.48

Tiếp theo, bản OPatch mới nhất đã được giải nén trực tiếp vào thư mục Oracle Home:

unzip p6880880_190000_Linux-x86-64.zip -d /u01/app/oracle/product/19.0.0/

Sau khi giải nén, quá trình xác minh đã xác nhận việc nâng cấp thành công:

./opatch versionOPatch Version: 12.2.0.1.51

 OPatch hiện đã đáp ứng yêu cầu về bản vá.

Hướng dẫn cách tải xuống và cài đặt bản vá OPatch mới nhất

 

Bước 2: Xác minh cấp độ bản vá hiện tại

Trước khi áp dụng bản cập nhật RU mới, điều quan trọng là phải hiểu rõ phiên bản vá lỗi hiện tại.

Trạng thái vá lỗi SQL cơ sở dữ liệu

select action_time, action, status, source_version, target_versionfrom dba_registry_sqlpatch;

ACTION_TIME               ACTION      STATUS   SOURCE_VERSION  TARGET_VERSION

------------------------- --------------- ------------ --------------- ---------------

29-OCT-25 01.14.37.206437 APPLY       SUCCESS  19.1.0.0.0  19.28.0.0.0

Điều này xác nhận rằng cơ sở dữ liệu đã được vá lỗi lên phiên bản 19.30.0.0.0 .

Kho bản vá Oracle Home

opatch lspatches37960098;

Database Release Update : 19.28.0.0.250715 (37960098)29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)

Kết quả hiển thị:

  • Bản cập nhật phát hành cơ sở dữ liệu 19.28

  • Bản cập nhật OCW 19.3

Điều này là điều được dự đoán trước và xác nhận rằng môi trường đã sẵn sàng cho mức RU cao hơn.

 

Bước 3: Giải nén bản vá 39036936

Gói bản vá được trích xuất như sau:

unzip p39036936_190000_Linux-x86-64.zip

Archive:  p39036936_190000_Linux-x86-64.zipcreating: 39036936/creating: 39036936/etc/creating: 39036936/etc/config/inflating: 39036936/etc/config/inventory.xmlinflating: 39036936/etc/config/actions.xmlinflating: 39036936/etc/config/stringsubs.xmlinflating: 39036936/README.htmlcreating: 39036936/custom/creating: 39036936/custom/scripts/..inflating: 39036936/files/dg4sybs/driver/lib/libodbc.socreating: 39036936/files/dg4sybs/driver/locale/creating: 39036936/files/dg4sybs/driver/locale/en_US/creating: 39036936/files/dg4sybs/driver/locale/en_US/LC_MESSAGES/inflating: 39036936/files/dg4sybs/driver/locale/en_US/LC_MESSAGES/HGase23.moinflating: PatchSearch.xml

Thao tác này đã tạo ra thư mục 39036936/chứa bản vá, bao gồm siêu dữ liệu, tập lệnh, tệp nhị phân và tệp cấu hình cần thiết cho quá trình nâng cấp.

 

Bước 4: Chạy kiểm tra xung đột và điều kiện tiên quyết

Trước khi thao tác với Oracle Home, hãy luôn kiểm tra xem có xung đột nào xảy ra hay không:

$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./

--> Chạy 30 phút không ra kết quả vào patch DB

cd /setup/39036936/39034528

$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./

Kết quả:

/u01/app/oracle/product/19.0.0/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./

Oracle Interim Patch Installer version 12.2.0.1.51

Copyright (c) 2026, Oracle Corporation. 

All rights reserved.PREREQ session

Oracle Home   : /u01/app/oracle/product/19.0.0

Central Inventory : /u01/app/oraInventoryfrom       : /u01/app/oracle/product/19.0.0/oraInst.locOPatch version : 12.2.0.1.51

OUI version   : 12.2.0.7.0

Log file location : /u01/app/oracle/product/19.0.0/cfgtoollogs/opatch/opatch2026-01-21_04-31-57AM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed.

Không phát hiện xung đột nào.

Bước này rất quan trọng để tránh các lần vá lỗi không thành công hoặc các thư mục Oracle Home bị hỏng.

 

Bước 5: Tắt cơ sở dữ liệu và trình lắng nghe

Oracle yêu cầu tắt máy hoàn toàn trước khi áp dụng bản cập nhật phát hành.

SQL> shut immediate;

Database closed.Database dismounted.ORACLE instance shut down.SQL>

Sau đó hãy dừng người nghe lại:

lsnrctl stop

LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 22-OCT-2025 09:23:08Copyright (c) 1991, 2021, Oracle.  All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.100)(PORT=1521)))The command completed successfully

Đến bước này, hệ thống đã hoàn toàn sẵn sàng để vá lỗi.

 

Bước 6: Áp dụng bản vá 39036936

Điều hướng đến thư mục chứa bản vá và áp dụng:

cd /setup/39036936/39034528

/u01/app/oracle/product/19c/dbhome_1/OPatch/opatch apply

(nếu không được thì vào bản Patch nhỏ hơn 39034528

$ cd /setup/39036936/39034528

$ /u01/app/oracle/product/19.0.0/OPatch/opatch apply)

 

Sau khi xác nhận các yêu cầu, OPatch đã thực hiện:

  • Xác thực môi trường

  • Sao lưu tập tin

  • Vá lỗi từng thành phần một

Trong quá trình thực thi, OPatch đã bỏ qua các thành phần tùy chọn không có trong Oracle Home và tiếp tục hoạt động an toàn.

Xác nhận cuối cùng:

[oracle@api-dldcqgnew01 39034528]$ lsnrctl  status

 

LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 25-MAY-2026 15:01:31

 

Copyright (c) 1991, 2025, Oracle.  All rights reserved.

 

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

TNS-12541: TNS:no listener

 TNS-12560: TNS:protocol adapter error

  TNS-00511: No listener

   Linux Error: 111: Connection refused

[oracle@api-dldcqgnew01 39034528]$ /u01/app/oracle/product/19c/dbhome_1/OPatch/opatch apply

Oracle Interim Patch Installer version 12.2.0.1.51

Copyright (c) 2026, Oracle Corporation.  All rights reserved.

 

 

Oracle Home   : /u01/app/oracle/product/19c/dbhome_1

Central Inventory : /u01/app/oraInventory

   from       : /u01/app/oracle/product/19c/dbhome_1/oraInst.loc

OPatch version : 12.2.0.1.51

OUI version   : 12.2.0.7.0

Log file location : /u01/app/oracle/product/19c/dbhome_1/cfgtoollogs/opatch/opatch2026-05-25_15-01-39PM_1.log

 

Verifying environment and performing prerequisite checks...

OPatch continues with these patches:   39034528 

 

Do 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 = '/u01/app/oracle/product/19c/dbhome_1')

 

 

Is the local system ready for patching? [y|n]

y

User Responded with: Y

Backing up files...

Applying interim patch '39034528' to OH '/u01/app/oracle/product/19c/dbhome_1'

ApplySession: Optional component(s) [ oracle.network.gsm, 19.0.0.0.0 ] , [ oracle.assistants.asm, 19.0.0.0.0 ] , [ oracle.datamining, 19.0.0.0.0 ] , [ oracle.java.sqlj.sqljruntime, 19.0.0.0.0 ] , [ oracle.crypto.rsf, 19.0.0.0.0 ] , [ oracle.oraolap.mgmt, 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.sdo.companion, 19.0.0.0.0 ] , [ oracle.tfa, 19.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 19.0.0.0.0 ] , [ oracle.ldap.ztk, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 19.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.options.olap.api, 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.util, 19.0.0.0.0...

 

Patching component oracle.rdbms.rsf, 19.0.0.0.0...

 

Patching component oracle.rdbms, 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.wwg.plsql, 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.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.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.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.install.common, 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.sqlj.sqljruntime, 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.tfa.db, 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.rdbms.hs_common, 19.0.0.0.0...

 

Patching component oracle.javavm.server, 19.0.0.0.0...

 

Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...

 

Patching component oracle.rdbms.locator, 19.0.0.0.0...

 

Patching component oracle.oraolap.api, 19.0.0.0.0...

 

Patching component oracle.rdbms.hsodbc, 19.0.0.0.0...

 

Patching component oracle.network.client, 19.0.0.0.0...

 

Patching component oracle.rdbms.drdaas, 19.0.0.0.0...

 

Patching component oracle.rdbms.dm, 19.0.0.0.0...

 

Patching component oracle.rdbms.rman, 19.0.0.0.0...

 

Patching component oracle.rdbms.rat, 19.0.0.0.0...

 

Patching component oracle.ovm, 19.0.0.0.0...

 

Patching component oracle.odbc, 19.0.0.0.0...

 

Patching component oracle.xdk.server, 19.0.0.0.0...

 

Patching component oracle.oraolap.dbscripts, 19.0.0.0.0...

 

Patching component oracle.xdk.xquery, 19.0.0.0.0...

 

Patching component oracle.network.listener, 19.0.0.0.0...

 

Patching component oracle.dbtoolslistener, 19.0.0.0.0...

 

Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...

 

Patching component oracle.xdk.parser.java, 19.0.0.0.0...

 

Patching component oracle.sdo.locator, 19.0.0.0.0...

 

Patching component oracle.ctx.rsf, 19.0.0.0.0...

 

Patching component oracle.ldap.ssl, 19.0.0.0.0...

 

Patching component oracle.oraolap, 19.0.0.0.0...

 

Patching component oracle.mgw.common, 19.0.0.0.0...

 

Patching component oracle.install.deinstalltool, 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.nlsrtl.rsf.lbuilder, 19.0.0.0.0...

 

Patching component oracle.ctx.atg, 19.0.0.0.0...

 

Patching component oracle.network.aso, 19.0.0.0.0...

 

Patching component oracle.rdbms.lbac, 19.0.0.0.0...

 

Patching component oracle.precomp.lang, 19.0.0.0.0...

 

Patching component oracle.precomp.common, 19.0.0.0.0...

 

Patching component oracle.jdk, 1.8.0.201.0...

Patch 39034528 successfully applied.

Sub-set patch [38632161] has become inactive due to the application of a super-set patch [39034528].

Please refer to Doc ID 2161861.1 for any possible further required actions.

Log file location: /u01/app/oracle/product/19c/dbhome_1/cfgtoollogs/opatch/opatch2026-05-25_15-01-39PM_1.log

 

OPatch succeeded.

 

Lưu ý quan trọng:

Thông báo này xác nhận rằng bản cập nhật 19.31 RU thay thế bản 19.30 , đây chính xác là cách mà các bản cập nhật phát hành được thiết kế để hoạt động.

 

Bước 7: Chạy các bước kiểm tra tính hợp lệ của Datapatch

Sau khi vá lỗi nhị phân, các thay đổi ở cấp độ SQL phải được xác thực.

Trước khi chạy datapatch, Oracle cung cấp một bước tiền kiểm tra mạnh mẽ:

$ORACLE_HOME/OPatch/datapatch -sanity_checks

ERROR: Can't connect to DB: ORA-01034: ORACLE not available

ORA-27101: shared memory realm does not exist

Linux-x86_64 Error: 2: No such file or directory

Additional information: 4513

Additional information: 1957047447 (DBD ERROR: OCISessionBegin)

Database is not available, stopping sanity checks

--> Bật Instance

Các khoản thanh toán bao gồm:

  • Trạng thái thành phần cơ sở dữ liệu

  • Đối tượng không hợp lệ

  • Vi phạm PDB

  • Sức khỏe của Tablespace

  • Công việc lập lịch

  • Hoạt động của Data Pump

  • Các trình kích hoạt JVM, Vault và GoldenGate

  • Kho lưu trữ tập trung và tính nhất quán của từ điển

Tất cả các séc đã được trả lại:

[oracle@api-dldcqgnew01 39034528]$         $ORACLE_HOME/OPatch/datapatch -sanity_checks

SQL Patching sanity checks version 19.31.0.0.0 on Mon 25 May 2026 03:49:16 PM +07

Copyright (c) 2021, 2026, Oracle.  All rights reserved.

 

Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sanity_checks_20260525_154916_417722/sanity_checks_20260525_154916_417722.log

 

Running checks

JSON report generated in /u01/app/oracle/cfgtoollogs/sqlpatch/sanity_checks_20260525_154916_417722/sqlpatch_sanity_checks_summary.json file

Checks completed. Printing report:

 

Check: Database component status - INFO

  There should be no INVALID components prior patching due to risk of potential errors.

  Listed components have a non-valid status.

  For INVALID components: Run '?/rdbms/admin/utlrp.sql' (per container) to try recompiling invalid objects and restore component status.

  For other non-valid status, depending on patch content warnings may be returned.

  apidldc:

| COMPONENT | STATUS  |

|-----------+---------|

|    SDO | LOADING |

|-----------+---------|

Check: PDB Violations - OK

Check: Invalid System Objects - OK

Check: Tablespace Status - OK

Check: Backup jobs - OK

Check: Temp file exists - OK

Check: Temp file online - OK

Check: Data Pump running - OK

Check: Container status - OK

Check: Oracle Database Keystore - OK

Check: Dictionary statistics gathering - OK

Check: Scheduled Jobs - WARNING

  Execution of scheduler jobs while database patching is running may lead to failures and/or performance issues.

  There are jobs currently running or scheduled to be executed during next hour.

  If you experience Datapatch errors caused by locking in the database, consider patching the database when jobs are not running or preventing jobs from starting.

  To check for jobs that are running or scheduled to run:

SELECT owner as schema_name, job_name, state, next_run_date

FROM sys.all_scheduler_jobs

WHERE state = 'RUNNING'

UNION

   SELECT owner as schema_name, job_name, state, next_run_date

   FROM sys.all_scheduler_jobs

   WHERE state = 'SCHEDULED'

   and cast(next_run_date as date) > sysdate

   and cast(next_run_date as date) < sysdate + 1/24;

  apidldc:

| SCHEMA_NAME |      JOB_NAME       |   STATE   |        NEXT_RUN_DATE        |

    |-------------+-----------------------------+-----------+-------------------------------------|

|     SYS | OBJNUM_REUSE_MAINTAIN_JOB$$ | SCHEDULED | 25-MAY-26 04.23.04.959098 PM +07:00 |

    |-------------+-----------------------------+-----------+-------------------------------------|

Check: GoldenGate triggers - OK

Check: Logminer DDL triggers - OK

Check: Check sys public grants - OK

Check: Statistics gathering running - OK

Check: Optim dictionary upgrade parameter - OK

Check: Symlinks on oracle home path - OK

Check: Central Inventory - OK

Check: Java Virtual Machine Enable - OK

Check: Oracle Database Vault Enabled - OK

Check: Queryable Inventory database directories - OK

Check: Queryable Inventory locks - OK

Check: Queryable Inventory package - OK

Check: Queryable Inventory external table - OK

Check: Imperva processes - OK

Check: Guardium processes - OK

Check: Locale - OK

 

Refer to MOS Note 2975965.1 and debug log

/u01/app/oracle/cfgtoollogs/sqlpatch/sanity_checks_20260525_154916_417722/sanity_checks_debug_20260525_154916_417722.log

 

SQL Patching sanity checks completed on Mon 25 May 2026 03:49:20 PM +07

 

Điều này xác nhận cơ sở dữ liệu đã sẵn sàng cho việc vá lỗi SQL và hoàn toàn nhất quán.

 

Bước 8. Áp dụng các bản vá SQL bằng Datapatch

Bây giờ hãy chạy tiện ích datapatch để áp dụng các tập lệnh SQL tương ứng với bản vá nhị phân 19.29.

Tư vấn Oracle Cloud

[oracle@TnD-ORA OPatch]$ $ORACLE_HOME/OPatch/datapatch -verbose

Datapatch kết nối với cơ sở dữ liệu, thu thập thông tin registry và áp dụng các thay đổi SQL:

[oracle@api-dldcqgnew01 39034528]$   $ORACLE_HOME/OPatch/datapatch -verbose

SQL Patching tool version 19.31.0.0.0 Production on Mon May 25 15:55:29 2026

Copyright (c) 2012, 2026, Oracle.  All rights reserved.

 

Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_418350_2026_05_25_15_55_29/sqlpatch_invocation.log

 

Connecting to database...OK

Gathering database info...done

Bootstrapping registry and package to current versions...done

Determining current state...done

 

Current state of interim SQL patches:

Interim patch 38194382 (OJVM RELEASE UPDATE: 19.29.0.0.251021 (38194382)):

  Binary registry: Installed

  SQL registry: Applied successfully on 21-MAY-26 09.02.02.207089 PM

 

Current state of release update SQL patches:

  Binary registry:

19.31.0.0.0 Release_Update 260426152757: Installed

  SQL registry:

Applied 19.31.0.0.0 Release_Update 260426152757 successfully on 25-MAY-26 03.52.12.848905 PM

 

Adding patches to installation queue and performing prereq checks...done

Installation queue:

  No interim patches need to be rolled back

  No release update patches need to be installed

  No interim patches need to be applied

 

SQL Patching tool complete on Mon May 25 15:56:07 2026

 

Điều này xác nhận rằng registry của SQL đã được cập nhật thành công.

Đào tạo về cơ sở dữ liệu Oracle

 

Bước  9. Xác minh việc áp dụng bản vá

Để xác nhận việc cài đặt bản vá, hãy truy vấn chế  độ xem DBA_REGISTRY_SQLPATCH  .

set lines 200

col action_time format a25

col status format a12

select action_time, action, status, source_version, target_version from dba_registry_sqlpatch;

Kết quả hiển thị như sau:

ACTION_TIME           ACTION      STATUS   SOURCE_VERSION  TARGET_VERSION

------------------------- --------------- ------------ --------------- ---------------

21-MAY-26 08.39.09.002998 APPLY           SUCCESS  19.1.0.0.0  19.30.0.0.0

 PM

 

21-MAY-26 09.02.02.207089 APPLY           SUCCESS  19.30.0.0.0 19.30.0.0.0

 PM

 

25-MAY-26 03.52.12.848905 APPLY           SUCCESS  19.30.0.0.0 19.31.0.0.0

 PM

 

[oracle@prod OPatch]$ /u01/app/oracle/product/19.0.0/OPatch/opatch lspatches

39036936;Database Release Update : 19.30.0.0.260120 (39036936)29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)

Điều này xác nhận rằng cơ sở dữ liệu Oracle đã được nâng cấp thành công lên phiên  bản 19.30.0.0.0 .

 

Các thực tiễn tốt nhất được tuân thủ trong chu kỳ vá lỗi này

Quá trình vá lỗi này tuân theo một số phương pháp thực hành tốt nhất được Oracle khuyến nghị:

Bản vá OPatch được nâng cấp trước khi áp dụng RU.

Kiểm tra xung đột được thực hiện trước đó

Dọn dẹp cơ sở dữ liệu và tắt trình lắng nghe.

Kiểm tra tính hợp lệ sau khi vá lỗi

Không có lỗi nào bị bỏ qua hoặc phớt lờ.

Các bước này giúp giảm đáng kể rủi ro khôi phục dữ liệu và thời gian ngừng hoạt động ngoài kế hoạch.

 

Lời kết

Việc áp dụng bản vá 39036936 (Oracle 19.30 RU) là một quy trình đơn giản nếu được thực hiện một cách bài bản. Điều quan trọng cần nhớ là việc vá lỗi thành công không chỉ đơn thuần là chạy lệnhopatch apply , mà còn cần sự chuẩn bị, xác nhận và kiểm tra kỹ lưỡng.

Đối với các quản trị viên cơ sở dữ liệu (DBA) quản lý môi trường Oracle 19c, việc cập nhật thường xuyên các bản phát hành mới đảm bảo:

  • Tư thế an ninh tốt hơn

  • Cải thiện tính ổn định của cơ sở dữ liệu

  • Tiếp tục tuân thủ các quy định hỗ trợ của Oracle.

Nếu bạn đang lên kế hoạch cho chu kỳ cập nhật bản vá tiếp theo, quy trình làm việc này cung cấp một tài liệu tham khảo vững chắc, đã được kiểm chứng trong thực tế.


=============================
TƯ VẤN: Click Here hoặc Hotline/Zalo 090.29.12.888
=============================
Website không chứa bất kỳ quảng cáo nào, mọi đóng góp để duy trì phát triển cho website (donation) xin vui lòng gửi về STK 90.2142.8888 - Ngân hàng Vietcombank Thăng Long - TRAN VAN BINH
=============================
Nếu bạn không muốn bị AI thay thế và tiết kiệm 3-5 NĂM trên con đường trở thành DBA chuyên nghiệp hay làm chủ Database thì hãy đăng ký ngay KHOÁ HỌC ORACLE DATABASE A-Z ENTERPRISE, được Coaching trực tiếp từ tôi với toàn bộ bí kíp thực chiến, thủ tục, quy trình của gần 20 năm kinh nghiệm (mà bạn sẽ KHÔNG THỂ tìm kiếm trên Internet/Google) từ đó giúp bạn dễ dàng quản trị mọi hệ thống Core tại Việt Nam và trên thế giới, đỗ OCP.
- CÁCH ĐĂNG KÝ: Gõ (.) hoặc để lại số điện thoại hoặc inbox https://m.me/tranvanbinh.vn hoặc Hotline/Zalo 090.29.12.888
- Chi tiết tham khảo:
https://bit.ly/oaz_w
=============================
2 khóa học online qua video giúp bạn nhanh chóng có những kiến thức nền tảng về Linux, Oracle, học mọi nơi, chỉ cần có Internet/4G:
- Oracle cơ bản: https://bit.ly/admin_1200
- Linux: https://bit.ly/linux_1200
=============================
KẾT NỐI VỚI CHUYÊN GIA TRẦN VĂN BÌNH:
📧 Mail: binhoracle@gmail.com
☎️ Mobile/Zalo: 0902912888
👨 Facebook: https://www.facebook.com/BinhOracleMaster
👨 Inbox Messenger: https://m.me/101036604657441 (profile)
👨 Fanpage: https://www.facebook.com/tranvanbinh.vn
👨 Inbox Fanpage: https://m.me/tranvanbinh.vn
👨👩 Group FB: https://www.facebook.com/groups/DBAVietNam
👨 Website: https://www.tranvanbinh.vn
👨 Blogger: https://tranvanbinhmaster.blogspot.com
🎬 Youtube: https://www.youtube.com/@binhguru
👨 Tiktok: https://www.tiktok.com/@binhguru
👨 Linkin: https://www.linkedin.com/in/binhoracle
👨 Twitter: https://twitter.com/binhguru
👨 Podcast: https://www.podbean.com/pu/pbblog-eskre-5f82d6
👨 Địa chỉ: Tòa nhà Sun Square - 21 Lê Đức Thọ - Phường Mỹ Đình 1 - Quận Nam Từ Liêm - TP.Hà Nội

=============================
cơ sở dữ liệu, cơ sở dữ liệu quốc gia, database, AI, trí tuệ nhân tạo, artificial intelligence, machine learning, deep learning, LLM, ChatGPT, DeepSeek, Grok, oracle tutorial, học oracle database, Tự học Oracle, Tài liệu Oracle 12c tiếng Việt, Hướng dẫn sử dụng Oracle Database, Oracle SQL cơ bản, Oracle SQL là gì, Khóa học Oracle Hà Nội, Học chứng chỉ Oracle ở đầu, Khóa học Oracle online,sql tutorial, khóa học pl/sql tutorial, học dba, học dba ở việt nam, khóa học dba, khóa học dba sql, tài liệu học dba oracle, Khóa học Oracle online, học oracle sql, học oracle ở đâu tphcm, học oracle bắt đầu từ đâu, học oracle ở hà nội, oracle database tutorial, oracle database 12c, oracle database là gì, oracle database 11g, oracle download, oracle database 19c/21c/23c/23ai, oracle dba tutorial, oracle tunning, sql tunning , oracle 12c, oracle multitenant, Container Databases (CDB), Pluggable Databases (PDB), oracle cloud, oracle security, oracle fga, audit_trail,oracle RAC, ASM, oracle dataguard, oracle goldengate, mview, oracle exadata, oracle oca, oracle ocp, oracle ocm , oracle weblogic, postgresql tutorial, mysql tutorial, mariadb tutorial, ms sql server tutorial, nosql, mongodb tutorial, oci, cloud, middleware tutorial, docker, k8s, micro service, hoc solaris tutorial, hoc linux tutorial, hoc aix tutorial, unix tutorial, securecrt, xshell, mobaxterm, putty

ĐỌC NHIỀU

Trần Văn Bình - Oracle Database Master