Oracle 11g 單實例使用+asm修改主機名導致ORA-29701 故障分析

解決

把服務器名修改為原來的,重啟服務器。

故障

建表空間失敗。
在這里插入圖片描述

分析

查看告警日志

ORA-1119 signalled during: create tablespace splex datafile ‘+DATA’ size 2000M…
Tue May 20 18:04:28 2025
create tablespace splex datafile ‘+DATA/option/datafile/splex01.dbf’ size 2G
WARNING: ASM communication error: op 11 state 0x50 (3113)
ERROR: slave communication error with ASM
ORA-1119 signalled during: create tablespace splex datafile ‘+DATA/option/datafile/splex01.dbf’ size 2G…

往前查,有其他ORA報錯,最早發生在Mar 19.

Wed Mar 19 11:25:50 2025
NOTE: ASMB terminating
Errors in file /u01/app/oracle/diag/rdbms/option/Option/trace/Option_asmb_3250.trc:
ORA-15064: communication failure with ASM instance
ORA-03113: end-of-file on communication channel
Process ID:
Session ID: 1135 Serial number: 27
Errors in file /u01/app/oracle/diag/rdbms/option/Option/trace/Option_asmb_3250.trc:
ORA-15064: communication failure with ASM instance
ORA-03113: end-of-file on communication channel
Process ID:
Session ID: 1135 Serial number: 27
ASMB (ospid: 3250): terminating the instance due to error 15064
Wed Mar 19 11:25:51 2025
System state dump requested by (instance=1, osid=3250 (ASMB)), summary=[abnormal instance termination].
System State dumped to trace file /u01/app/oracle/diag/rdbms/option/Option/trace/Option_diag_3224_20250319112551.trc
Dumping diagnostic data in directory=[cdmp_20250319112551], requested by (instance=1, osid=3250 (ASMB)), summary=[abnormal instance termination].
Instance terminated by ASMB, pid = 3250

偵聽看不到asm實例

lsnrctl status

正常情況可以看到asm實例和數據庫實例。但是看不到asm實例。判斷
asm運行故障。

懷疑存儲故障

查看硬盤沒有故障燈。

查MOS錯誤代碼ORA-29701

  • Preliminary Checks When “ERROR: unrecoverable error ORA-29701 raised in ASM I/O path” in Oracle Restart Setup (Doc ID 1473701.1)

提到的oracle,grid的權限,group等, 經檢查,都沒有問題。

溝通

跟客戶溝通,確認客戶前段時間修改了服務器名,從option修改為 db-option。

嘗試重啟數據庫和has

關閉數據庫時報錯,直接kill -9殺死數據庫和asm的pmon進程

手動啟動has報錯

[root@db-option init.d]# /u01/app/11.2.0/grid/bin/crsctl start has
CLSU-00100: Operating System function: opendir failed with error data: 2
CLSU-00101: Operating System error message: No such file or directory
CLSU-00103: error location: scrsearch1
CLSU-00104: additional error information: cant open scr home dir scls_scr_getval
CRS-4000: Command Start failed, or completed with errors

chatgpt分析:
ls -ld /etc/oracle/scls_scr 這個目錄有問題

檢查發現目錄名字是原來的主機名, 啟動時讀取這個而目錄失敗。

所以考慮改名會解決。

服務器改名并重啟

#hostnamectl set-hostname option

重啟服務器。

asm和數據庫自動啟動正常。

建表空間正常。

總結

單實例+ASM數據庫,管理和RAC類似,對OS的IP, 主機名的修改不像文件系統那么簡單。

一般來說,在部署前應該確定服務器名,數據庫名,IP等。修改要慎重。如果要修改,參考文檔

  • How to change Hostname / IP for a Grid Infrastructure Oracle Restart
    Standalone Configuration (SIHA) 11.2 and Later (Doc ID 1552810.1)
1) Configure the CSS & OHAS services as root user as follows:
# <Grid Infrastructure Oracle Home>/crs/install/roothas.pl -deconfig -force
Please note that from 12.1.0.2 onwards need to run roothas.sh instead of roothas.pl
2) Now Change the hostname
3) Reconfigure the cluster
# cd <11.2 Grid infrastructure Oracle Home>
# ./root.sh
For 12.1.0.2 and later releases ,
Please run <Grid infrastructure Oracle Home>/crs/install/roothas.sh
4) Go to the grid home bin directory.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=eon8x73rq_280&id=1552810.1
2/8Use the srvctl add database command to add the database in an Oracle Restart configuration. If you have
role separation then use the DB home owner for this.
5) Please perform the next steps as oracle or grid OS user (as the Grid Infrastructure OS owner):
5/21/25, 11:00 AM
Document 1552810.1
$> <Grid Infrastructure Oracle Home>/bin/crsctl modify resource "ora.cssd" -
init -attr "AUTO_START=1" -unsupported
NOTE: "-unsupported" is not required for 11.2 version
6) Restart the OHAS stack as grid or oracle OS user (as the Grid Infrastructure OS owner):
$> <Grid Infrastructure Oracle Home>/bin/crsctl stop has
$> <Grid Infrastructure Oracle Home>/bin/crsctl start has
7) Check the CSS & OHAS state as grid or oracle OS user (as the Grid Infrastructure OS owner):
$> <Grid Infrastructure Oracle Home>/bin/crsctl check has
$> <Grid Infrastructure Oracle Home>/bin/crsctl check css
$> <Grid Infrastructure Oracle Home>/bin/ crsctl stat resource
$> <Grid Infrastructure Oracle Home>/bin/crsctl stat res -t
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=eon8x73rq_280&id=1552810.1
3/85/21/25, 11:00 AM
Document 1552810.1
Note: If the CSS & OHAS service did NOT start, then you will need to reboot the Linux/unix box and check
them again.
8) Recreate the default listener (LISTENER) using port 1521 (or using your desired port), thru the NETCA GUI
located on the new Grid Infrastructure Oracle Home (or manually if you do not have graphical access) as grid
or oracle OS user (as the Grid Infrastructure OS owner):
$> srvctl add listener
$> srvctl start listener
9) Please create the init+ASM.ora file on the <Grid Infrastructure Oracle Home>/dbs directory with the next
parameters:
asm_diskgroups= <list of diskgroups>
asm_diskstring= '/dev/oracleasm/disks/*' ?= use the existing asm_diskstring
value. This can be found with "asmcmd dsget" command.
instance_type='asm'
large_pool_size=12M
10) Add the ASM instance as grid or oracle OS user (as the Grid Infrastructure OS owner):
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=eon8x73rq_280&id=1552810.1
4/85/21/25, 11:00 AM
Document 1552810.1
$> <Grid Infrastructure Oracle Home>/bin/srvctl add asm
$> <12.1 Grid Infrastructure Oracle Home>/bin/srvctl add asm
11) Enable ASM instance Auto Start as grid or oracle OS user (as the Grid Infrastructure OS owner) as
follow:
$> <Grid Infrastructure Oracle Home>/bin/crsctl modify resource "ora.asm" -init
-attr "AUTO_START=1" -unsupported
NOTE: "-unsupported" is not required for 11.2 version
12) Make sure the disks are discovered by kfod as grid or oracle OS user (as the Grid Infrastructure OS
owner) as follow:
Example:
$> <Grid Infrastructure Oracle Home>/bin/kfod asm_diskstring='ORCL:*' disks=all
?= if using ASMlib, otherwise use below.
Or
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=eon8x73rq_280&id=1552810.1
5/85/21/25, 11:00 AM
Document 1552810.1
$> <Grid Infrastructure Oracle Home>/bin/kfod asm_diskstring='<full path ASM
disks location>/*' disks=all
13) If so, then startup the ASM instance as grid or oracle OS user (as the Grid Infrastructure OS owner) as
follow:
$> export ORACLE_SID=+ASM
$> <Grid Infrastructure Oracle Home>/bin/sqlplus “/as sysasm”
SQL> startup pfile=init+ASM.ora --#init file from point #6
SQL> show parameter asm
14) Validate that the candidate disks are being discovered:
SQL> select path from v$asm_disk;
15) Create a new ASM instance spfile:
SQL> create spfile from pfile;
16) Add the new ASM spfile and listener to the new ASM instance resource:
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=eon8x73rq_280&id=1552810.1
6/85/21/25, 11:00 AM
Document 1552810.1
$> <Grid Infrastructure Oracle Home>/bin/srvctl modify asm -p <spfile full
path>
$> <Grid Infrastructure Oracle Home>/bin/srvctl modify asm -l LISTENER
17) Validate the OHAS (Oracle Restart) services start as follows:
$> <Grid Infrastructure Oracle Home>/bin/crsctl stop has
$> <Grid Infrastructure Oracle Home>/bin/crsctl start has
$> <Grid Infrastructure Oracle Home>/bin/crsctl stat res
$> <Grid Infrastructure Oracle Home>/bin/crsctl stat res -t

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/web/81300.shtml
繁體地址,請注明出處:http://hk.pswp.cn/web/81300.shtml
英文地址,請注明出處:http://en.pswp.cn/web/81300.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

消息隊列的使用

使用內存隊列來處理基于內存的【生產者-消費者】場景 思考和使用Disruptor Disruptor可以實現單個或多個生產者生產消息&#xff0c;單個或多個消費者消息&#xff0c;且消費者之間可以存在消費消息的依賴關系 使用Disruptor需要結合業務特性&#xff0c;設計要靈活 什么業務…

《帝國時代1》游戲秘籍

資源類 PEPPERONI PIZZA&#xff1a;獲得 1000 食物。COINAGE&#xff1a;獲得 1000 金。WOODSTOCK&#xff1a;獲得 1000 木頭。QUARRY&#xff1a;獲得 1000 石頭。 建筑與生產類 STEROIDS&#xff1a;快速建筑。 地圖類 REVEAL MAP&#xff1a;顯示所有地圖。NO FOG&#xf…

使用JSP踩過的坑

雖然說jsp已經過時了&#xff0c;但是有時維護比較老的項目還是需要的。 下面說下&#xff0c;我使用jsp踩過的坑&#xff1a; 1.關于打印輸出 在jsp中輸出使用 out.println("hello");而不是 System.out.println("hello");如果在定義函數部分需要打印…

redis集群創建時手動指定主從關系的方法

適用場景&#xff1a; 創建主從關系時默認參數 --cluster-replicas 1 會自動分配從節點。 為了能精確控制 Redis Cluster 的主從拓撲結構&#xff0c;我們通過 Redis Cluster 的手動分片功能來實現 一、手動指定主從關系的方法 使用 redis-cli --cluster-replicas 0 先創建純…

ROS合集(七)SVIn2聲吶模塊分析

文章目錄 一、整體思想二、具體誤差建模流程三、總結明確&#xff08;預測值與觀測值&#xff09;四、選點邏輯五、Sonar 數據處理流水線1. ROS Launch 配置&#xff08;imagenex831l.launch&#xff09;2. SonarNode 節點&#xff08;sonar_node.py&#xff09;3. Subscriber …

Python爬蟲實戰:研究PySpider框架相關技術

1. 引言 1.1 研究背景與意義 網絡爬蟲作為互聯網數據采集的重要工具,在信息檢索、輿情分析、市場調研等領域發揮著重要作用。隨著互聯網信息的爆炸式增長,如何高效、穩定地獲取所需數據成為了一個關鍵挑戰。PySpider 作為一款功能強大的 Python 爬蟲框架,提供了豐富的功能…

《大模型開源與閉源的深度博弈:科技新生態下的權衡與抉擇》

開源智能體大模型的核心魅力&#xff0c;在于它構建起了一個全球開發者共同參與的超級協作網絡。想象一下&#xff0c;來自世界各個角落的開發者、研究者&#xff0c;無論身處繁華都市還是偏遠小鎮&#xff0c;只要心懷對技術的熱愛與追求&#xff0c;就能加入到這場技術狂歡中…

大數據模型對陌生場景圖像的識別能力研究 —— 以 DEEPSEEK 私有化部署模型為例

摘要 本研究聚焦于已訓練的大數據模型能否識別未包含在樣本數據集中的陌生場景圖像這一問題&#xff0c;以 DEEPSEEK 私有化部署模型為研究對象&#xff0c;結合機器學習理論&#xff0c;分析模型識別陌生場景圖像的影響因素&#xff0c;并通過理論探討與實際應用場景分析&…

STM32——從點燈到傳感器控制

STM32基礎外設開發&#xff1a;從點燈到傳感器控制 一、前言 本篇文章總結STM32F10x系列基礎外設開發實例&#xff0c;涵蓋GPIO控制、按鍵檢測、傳感器應用等。所有代碼基于標準庫開發&#xff0c;適合STM32初學者參考。 二、硬件準備 STM32F10x系列開發板LED模塊有源蜂鳴器…

[特殊字符] 使用增量同步+MQ機制將用戶數據同步到Elasticsearch

在開發用戶搜索功能時&#xff0c;我們通常會將用戶信息存儲到 Elasticsearch&#xff08;簡稱 ES&#xff09; 中&#xff0c;以提高搜索效率。本篇文章將詳細介紹我們是如何實現 MySQL 到 Elasticsearch 的增量同步&#xff0c;以及如何通過 MQ 消息隊列實現用戶信息實時更新…

MyBatis緩存機制全解析

在MyBatis中&#xff0c;緩存分為一級緩存和二級緩存&#xff0c;它們的主要目的是減少數據庫的訪問次數&#xff0c;提高查詢效率。下面簡述這兩種緩存的工作原理&#xff1a; 一、 一級緩存&#xff08;SqlSession級別的緩存&#xff09; 一級緩存是MyBatis默認開啟的緩存機…

【短距離通信】【WiFi】WiFi7關鍵技術之4096-QAM、MRU

目錄 3. 4096-QAM 3.1 4096-QAM 3.2 QAM 的階數越高越好嗎&#xff1f; 4. MRU 4.1 OFDMA 和 RU 4.2 MRU 資源分配 3. 4096-QAM 摘要 本章主要介紹了Wi-Fi 7引入的4096-QAM對數據傳輸速率的提升。 3.1 4096-QAM 對速率的提升 Wi-Fi 標準一直致力于提升數據傳輸速率&a…

【二刷力扣】【力扣熱題100】今天的題目是:283.移動零

題目&#xff1a; 給定一個數組 nums&#xff0c;編寫一個函數將所有 0 移動到數組的末尾&#xff0c;同時保持非零元素的相對順序。 請注意 &#xff0c;必須在不復制數組的情況下原地對數組進行操作。 示例 1: 輸入: nums [0,1,0,3,12] 輸出: [1,3,12,0,0] 示例 2: 輸…

機器學習中的多GPU訓練模式

文章目錄 一、數據并行&#xff08;Data Parallelism&#xff09;二、模型并行&#xff08;Model Parallelism&#xff09;1. 模型并行2. 張量并行&#xff08;Tensor Parallelism&#xff09; 三、流水線并行&#xff08;Pipeline Parallelism&#xff09;四、混合并行&#x…

《JavaScript 性能優化:從原理到實戰的全面指南》

《JavaScript 性能優化&#xff1a;從原理到實戰的全面指南》 一、JavaScript 性能優化基礎理論 在深入探討 JavaScript 性能優化技術之前&#xff0c;我們需要明白JavaScript 的執行機制和性能瓶頸產生的根本原因。JavaScript 是一種單線程、非阻塞的腳本語言&#xff0c;其…

選擇合適的Azure數據庫監控工具

Azure云為組織提供了眾多服務&#xff0c;使其能夠無縫運行應用程序、Web服務和服務器部署&#xff0c;其中包括云端數據庫部署。Azure數據庫能夠與云應用程序實現無縫集成&#xff0c;具備可靠、易擴展和易管理的特性&#xff0c;不僅能提升數據庫可用性與性能&#xff0c;同時…

9.4在 VS Code 中配置 Maven

在 VS Code 中配置 Maven 需要完成 Maven 環境安裝 一、安裝 Maven&#xff08;如果未安裝&#xff09; 下載 Maven 訪問 Apache Maven 官網&#xff0c;下載最新版本的 Maven&#xff08;如apache-maven-3.9.9-bin.zip&#xff09;。 解壓文件 將下載的 ZIP 文件解壓到本地目…

影刀自動化流程復用技巧:流程復用

草莓時刻會創建一個新的空白流程。但是很多時候需要復用過往基礎流程&#xff0c;在此基礎上進行修改即可。而而不是重新創建基礎流程。 為了解決這個問題&#xff0c;我們需要了解一下影刀流程的基礎結構。 影刀流程基礎結構概覽 影刀自動化流程的基礎結構主要包括幾個關鍵組…

理論篇六:如何在Webpack中實現持久化緩存?

在 Webpack 中實現持久化緩存可以顯著提升構建速度,尤其是在大型項目中。以下是 7 種核心策略 及其詳細配置方法: 一、文件哈希命名(Content Hash) 確保文件內容變化時哈希值才改變,利用瀏覽器緩存。 // webpack.config.js output: {filename: [name].[contenthash:8].j…

C++單例模式與線程安全

C單例模式的線程安全實踐與優化-CSDN博客 https://www.zhihu.com/question/56527586/answer/2344903391 C11中的單例模式 在C11及更高版本中&#xff0c;可以使用std::call_once和std::once_flag來確保單例實例的線程安全初始化。這種方法不需要顯式地使用互斥鎖&#xff0c…