升级Oracle Rac 11.2.0.4 到 11.2.0.4.1
1、当前数据库环境:
双节点Oracle linux 5.4 RAC
Grid software 11.2.0.4
Oracle software 11.2.0.4
OPatch Version 11.2.0.3.4
2、OPatch下载
下载11.2.0.4.1 Patch:17478514
p17478514_112040_Linux-x86-64.zip
根据该psu readme :
OPatch Utility
You must use the OPatch utility version 11.2.0.3.5 or later to apply this patch. Oracle recommends that you use the latest released OPatch version for 11.2, which is available for download from My Oracle Support patch 6880880 by selecting the 11.2.0.0.0 release.
由于OPatch Version 11.2.0.3.4,所以我们需要更新OPatch version,下载OPatch :补丁程序6880880: OPatch patch of version 11.2.0.3.6 for Oracle software releases 11.2.0.x
p6880880_112000_Linux-x86-64.zip
3、更新OPatch version/OCM configuration
将p6880880_112000_Linux-x86-64.zip解压到各个节点DB home 和 GI home
节点1,2上分别用grid和oracle用户执行
mv $ORACLE_HOME/OPatch/ $ORACLE_HOME/OPatch.bak
节点1,2上分别用grid和oracle用户执行
unzip /software/p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME/
节点1,2上分别用grid和oracle用户执行
--执行如下命令在当前目录下创建文件 ocm.rsp
cd $ORACLE_HOME/OPatch/
$ORACLE_HOME/OPatch/ocm/bin/emocmrsp
验证OPatch版本更新
$ORACLE_HOME/OPatch/opatch version
OPatch Version: 11.2.0.3.6
OPatch succeeded.
4、Patch Conflict Detection and Resolution
解压文件:
unzip p17478514_112040_Linux-x86-64.zip
cd /software/17478514/
冲突检测:
节点1,2上分别用grid和oracle用户执行
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
5、Instructions for Patching a Grid Infrastructure (GI) Home
root用户执行:(注意权限问题,,grid用户安装补丁该补丁由grid解压,oracle类似)
安装grid 补丁
export ORACLE_HOME=/arch/grid2
(opatch auto
$ORACLE_HOME/OPatch/opatch auto /software/opatch/ -oh $ORACLE_HOME/ -ocmrf $ORACLE_HOME/OPatch/ocm.rsp
[root@devnode1 opatch]# $ORACLE_HOME/OPatch/opatch auto /software/opatch/ -oh $ORACLE_HOME/ -ocmrf $ORACLE_HOME/OPatch/ocm.rsp
Executing /arch/grid2/perl/bin/perl /arch/grid2/OPatch/crs/patch11203.pl -patchdir /software -patchn opatch -oh /arch/grid2/ -ocmrf /arch/grid2/OPatch/ocm.rsp -paramfile /arch/grid2/crs/install/crsconfig_params
This is the main log file: /arch/grid2/cfgtoollogs/opatchauto2014-04-14_17-57-35.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/arch/grid2/cfgtoollogs/opatchauto2014-04-14_17-57-35.report.log
2014-04-14 17:57:35: Starting Clusterware Patch Setup
Using configuration parameter file: /arch/grid2/crs/install/crsconfig_params
Enter 'yes' if you have unzipped this patch to an empty directory to proceed (yes/no):yes
Enter 'yes' if you have unzipped this patch to an empty directory to proceed (yes/no):yes
Unable to determine if /arch/grid2 is shared oracle home
Enter 'yes' if this is not a shared home or if the prerequiste actions are performed to patch this shared home (yes/no):yes
Stopping CRS...
Stopped CRS successfully
patch /software/opatch/17478514 apply successful for home /arch/grid2
Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
安装oracle补丁
export ORACLE_HOME=/arch/oracle/product/11.2.0/db_1
$ORACLE_HOME/OPatch/opatch auto /software/opatch/ -oh $ORACLE_HOME/ -ocmrf $ORACLE_HOME/OPatch/ocm.rsp
[root@devnode1 software]# export ORACLE_HOME=/arch/oracle/product/11.2.0/db_1
[root@devnode1 software]# $ORACLE_HOME/OPatch/opatch auto /software/opatch/ -oh $ORACLE_HOME/ -ocmrf $ORACLE_HOME/OPatch/ocm.rsp
Executing /arch/grid2/perl/bin/perl /arch/oracle/product/11.2.0/db_1/OPatch/crs/patch11203.pl -patchdir /software -patchn opatch -oh /arch/oracle/product/11.2.0/db_1/ -ocmrf /arch/oracle/product/11.2.0/db_1/OPatch/ocm.rsp -paramfile /arch/grid2/crs/install/crsconfig_params
This is the main log file: /arch/oracle/product/11.2.0/db_1/cfgtoollogs/opatchauto2014-04-14_15-51-51.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/arch/oracle/product/11.2.0/db_1/cfgtoollogs/opatchauto2014-04-14_15-51-51.report.log

MySQL使用的是GPL許可證。 1)GPL許可證允許自由使用、修改和分發MySQL,但修改後的分發需遵循GPL。 2)商業許可證可避免公開修改,適合需要保密的商業應用。

選擇InnoDB而不是MyISAM的情況包括:1)需要事務支持,2)高並發環境,3)需要高數據一致性;反之,選擇MyISAM的情況包括:1)主要是讀操作,2)不需要事務支持。 InnoDB適合需要高數據一致性和事務處理的應用,如電商平台,而MyISAM適合讀密集型且無需事務的應用,如博客系統。

在MySQL中,外鍵的作用是建立表與表之間的關係,確保數據的一致性和完整性。外鍵通過引用完整性檢查和級聯操作維護數據的有效性,使用時需注意性能優化和避免常見錯誤。

MySQL中有四種主要的索引類型:B-Tree索引、哈希索引、全文索引和空間索引。 1.B-Tree索引適用於範圍查詢、排序和分組,適合在employees表的name列上創建。 2.哈希索引適用於等值查詢,適合在MEMORY存儲引擎的hash_table表的id列上創建。 3.全文索引用於文本搜索,適合在articles表的content列上創建。 4.空間索引用於地理空間查詢,適合在locations表的geom列上創建。

toCreateAnIndexinMysql,usethecReateIndexStatement.1)forasingLecolumn,使用“ createIndexIdx_lastNameEnemployees(lastName); 2)foracompositeIndex,使用“ createIndexIndexIndexIndexIndexDx_nameOmplayees(lastName,firstName,firstName);” 3)forauniqe instex,creationexexexexex,

MySQL和SQLite的主要區別在於設計理念和使用場景:1.MySQL適用於大型應用和企業級解決方案,支持高性能和高並發;2.SQLite適合移動應用和桌面軟件,輕量級且易於嵌入。

MySQL中的索引是數據庫表中一列或多列的有序結構,用於加速數據檢索。 1)索引通過減少掃描數據量提升查詢速度。 2)B-Tree索引利用平衡樹結構,適合範圍查詢和排序。 3)創建索引使用CREATEINDEX語句,如CREATEINDEXidx_customer_idONorders(customer_id)。 4)複合索引可優化多列查詢,如CREATEINDEXidx_customer_orderONorders(customer_id,order_date)。 5)使用EXPLAIN分析查詢計劃,避

在MySQL中使用事務可以確保數據一致性。 1)通過STARTTRANSACTION開始事務,執行SQL操作後用COMMIT提交或ROLLBACK回滾。 2)使用SAVEPOINT可以設置保存點,允許部分回滾。 3)性能優化建議包括縮短事務時間、避免大規模查詢和合理使用隔離級別。


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

PhpStorm Mac 版本
最新(2018.2.1 )專業的PHP整合開發工具

Atom編輯器mac版下載
最受歡迎的的開源編輯器

WebStorm Mac版
好用的JavaScript開發工具

SecLists
SecLists是最終安全測試人員的伙伴。它是一個包含各種類型清單的集合,這些清單在安全評估過程中經常使用,而且都在一個地方。 SecLists透過方便地提供安全測試人員可能需要的所有列表,幫助提高安全測試的效率和生產力。清單類型包括使用者名稱、密碼、URL、模糊測試有效載荷、敏感資料模式、Web shell等等。測試人員只需將此儲存庫拉到新的測試機上,他就可以存取所需的每種類型的清單。

EditPlus 中文破解版
體積小,語法高亮,不支援程式碼提示功能