Oracle 视图 DBA_REGISTRY_SQLPATCH 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_REGISTRY_SQLPATCH可用于汇总Oracle数据库的SQL Patch(补丁)的相关信息。它显示补丁或SQL条件包含的语句及表示补丁状态的列,如果已应用了补丁,它也会显示该补丁的说明。
DBA_REGISTRY_SQLPATCH视图使DBA可以查询已安装的SQL补丁,可让其了解安装后的改变,进而尽可能避免SQL补丁和数据库不兼容的问题,也可以查询指定补丁是否已安装,以及未安装补丁可能导致的问题。
使用这个视图需要系统权限,需要以SYSDBA身份登录并执行以下查询:
SELECT * FROM DB_REGISTRY_SQLPATCH;
官方英文解释
DBA_REGISTRY_SQLPATCH
contains information about the SQL patches that have been installed in the database.
A SQL patch is a patch that contains SQL scripts which need to be run after OPatch completes. DBA_REGISTRY_SQLPATCH
is updated by the datapatch utility. Each row contains information about an installation attempt (apply or roll back) for a given patch.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Unique numeric identifier for this datapatch session. All patches installed in the same invocation of datapatch will have the same value for |
|
|
|
ID associated with the patch |
|
|
|
UPI (Universal Patch ID) associated with the patch |
|
|
|
Type of the patch. Possible values:
|
|
|
|
|
|
|
|
Possible values:
|
|
|
|
Timestamp when the install was performed |
|
|
Description of this patch from OPatch metadata |
|
|
|
|
Location of the logfile for this apply or rollback attempt |
|
|
Logfile location for RU specific commands |
|
|
|
One or more of the following:
|
|
|
|
Contents of the XML descriptor for the patch |
|
|
|
Contents of the patch directory under ORACLE_HOME/sqlpatch |
|
|
|
5 digit version (for example, 18.3.2.0.0) for the version on which the patch was applied |
|
|
|
Build description (for example, Release_Update or Release_Update_Revision) for the version on which the patch was applied |
|
|
|
Build timestamp for the version on which the patch was applied |
|
|
|
5 digit version (for example, 18.4.0.0.0) for the version to be installed |
|
|
|
Build description (for example, Release_Update or Release_Update_Revision) for the version to be installed |
|
|
|
Build timestamp for the version to be installed |
See Also:
-
Oracle OPatch User’s Guide for Windows and UNIX for more information about OPatch and related patching utilities
-
My Oracle Support note 1585822.1 “Datapatch: Database 12c Post Patch SQL Automation” at the following URL for more information about datapatch:
https://support.oracle.com/rs?type=doc&id=1585822.1