今天是2014-03-24,介绍一个重命名oracle asm 磁盘组的工具renamedg The renamedg tool enables you to change the name of a cloned disk group. The disk group must be dismounted on all nodes in the cluster before running renamedg on the disk grou
今天是2014-03-24,介绍一个重命名oracle asm 磁盘组的工具renamedg
The renamedg tool enables you to change the name of a cloned disk group. The disk group must be dismounted on all nodes in the cluster before running renamedg on the disk group.
renamedg renames a disk group using a two-step process:
Phase one
This phase generates a configuration file to be used in phase two.
Phase two
This phase uses the configuration file to perform the renaming of the disk group.
The syntax is:
renamedg {-help | help=true}
renamedg
[phase={ one|two |both } ] dgname=diskgroup
newdgname=newdiskgroup [config=configfile]
[ asm_diskstring=discoverystring, discoverystring ... ]
[ clean={true|false} ] [ check={true|false} ]
[ confirm={true|false}] [ verbose={ true|false} ]
[ keep_voting_files={true|false}]
-
phase={one|two|both}
注意:
Applies to:
Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.2.0.0
Information in this document applies to any platform.
Goal
The purpose of this document is to provide information about rename diskgroup in 10g and 11gR1 release
Solution
rename diskgroup option is a new feature of 11gR2 .
You can use this tool to rename your 10g or 11gR1 ASM diskgroup
you need to just install 11gR2 SIHA Grid Infrastructure software only installation.
cd /bin
renamedg
use renamedg tool to rename 10g or 11gR1 diskgroup.
Diskgroup cannot be renamed under following conditions :
- the Diskgroup is mounted
- the Diskgroup is being used by CSS
- Diskgroup contains offline diskseg:
-bash-4.1$ sqlplus / as sysasm SQL*Plus: Release 11.2.0.4.0 Production on Mon Mar 24 15:33:16 2014 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Automatic Storage Management option SQL> alter diskgroup new_datagroup2 dismount; Diskgroup altered. SQL> SQL> SQL> exit -bash-4.1$ -bash-4.1$ renamedg -help NOTE: No asm libraries found in the system Parsing parameters.. phase Phase to execute, (phase=ONE|TWO|BOTH), default BOTH dgname Diskgroup to be renamed newdgname New name for the diskgroup config intermediate config file check just check-do not perform actual operation, (check=TRUE/FALSE), default FALSE confirm confirm before committing changes to disks, (confirm=TRUE/FALSE), default FALSE clean ignore errors, (clean=TRUE/FALSE), default TRUE asm_diskstring ASM Diskstring (asm_diskstring='discoverystring', 'discoverystring1' ...) verbose verbose execution, (verbose=TRUE|FALSE), default FALSE keep_voting_files Voting file attribute, (keep_voting_files=TRUE|FALSE), default FALSE -bash-4.1$ renamedg dgname=NEW_DATAGROUP2 newdgname=datagroup2 asm_diskstring='/dev/oracleasm/disks/*' verbose=true NOTE: No asm libraries found in the system Parsing parameters.. Parameters in effect: Old DG name : NEW_DATAGROUP2 New DG name : DATAGROUP2 Phases : Phase 1 Phase 2 Discovery str : /dev/oracleasm/disks/* Clean : TRUE Raw only : TRUE renamedg operation: dgname=NEW_DATAGROUP2 newdgname=datagroup2 asm_diskstring=/dev/oracleasm/disks/* verbose=true Executing phase 1 Discovering the group Performing discovery with string:/dev/oracleasm/disks/* Identified disk UFS:/dev/oracleasm/disks/ASMDISK5 with disk number:0 and timestamp (33001227 75905024) Identified disk UFS:/dev/oracleasm/disks/ASMDISK6 with disk number:1 and timestamp (33001227 75905024) Identified disk UFS:/dev/oracleasm/disks/ASMDISK7 with disk number:2 and timestamp (33001227 75905024) Identified disk UFS:/dev/oracleasm/disks/ASMDISK8 with disk number:5 and timestamp (33001229 -598404096) Identified disk UFS:/dev/oracleasm/disks/ASMDISK9 with disk number:3 and timestamp (33001229 -678575104) Identified disk UFS:/dev/oracleasm/disks/ASMDISK10 with disk number:4 and timestamp (33001229 -678575104) Checking for hearbeat... Re-discovering the group Performing discovery with string:/dev/oracleasm/disks/* Identified disk UFS:/dev/oracleasm/disks/ASMDISK5 with disk number:0 and timestamp (33001227 75905024) Identified disk UFS:/dev/oracleasm/disks/ASMDISK6 with disk number:1 and timestamp (33001227 75905024) Identified disk UFS:/dev/oracleasm/disks/ASMDISK7 with disk number:2 and timestamp (33001227 75905024) Identified disk UFS:/dev/oracleasm/disks/ASMDISK8 with disk number:5 and timestamp (33001229 -598404096) Identified disk UFS:/dev/oracleasm/disks/ASMDISK9 with disk number:3 and timestamp (33001229 -678575104) Identified disk UFS:/dev/oracleasm/disks/ASMDISK10 with disk number:4 and timestamp (33001229 -678575104) Checking if the diskgroup is mounted or used by CSS Checking disk number:0 Checking disk number:1 Checking disk number:2 Checking disk number:5 Checking disk number:3 Checking disk number:4 Generating configuration file.. Completed phase 1 Executing phase 2 Looking for /dev/oracleasm/disks/ASMDISK5 Modifying the header Looking for /dev/oracleasm/disks/ASMDISK6 Modifying the header Looking for /dev/oracleasm/disks/ASMDISK7 Modifying the header Looking for /dev/oracleasm/disks/ASMDISK8 Modifying the header Looking for /dev/oracleasm/disks/ASMDISK9 Modifying the header Looking for /dev/oracleasm/disks/ASMDISK10 Modifying the header Completed phase 2 Terminating kgfd context 0x7f57a379b0a0 -bash-4.1$ sqlplus / as sysasm SQL*Plus: Release 11.2.0.4.0 Production on Mon Mar 24 15:35:04 2014 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Automatic Storage Management option SQL> select name,state from v$asm_diskgroup; NAME STATE ------------------------------ ----------- DATAGROUP1 MOUNTED DATAGROUP2 DISMOUNTED SQL> alter diskgroup datagroup2 mount; Diskgroup altered. SQL> select name,state from v$asm_diskgroup; NAME STATE ------------------------------ ----------- DATAGROUP1 MOUNTED DATAGROUP2 MOUNTED SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Automatic Storage Management option -bash-4.1$ crsctl stat res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.DATAGROUP1.dg ONLINE ONLINE oracle-one ora.DATAGROUP2.dg ONLINE ONLINE oracle-one ora.LISTENER.lsnr ONLINE ONLINE oracle-one ora.NEW_DATAGROUP2.dg OFFLINE OFFLINE oracle-one ora.asm ONLINE ONLINE oracle-one Started ora.ons OFFLINE OFFLINE oracle-one -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.cssd 1 ONLINE ONLINE oracle-one ora.diskmon 1 OFFLINE OFFLINE ora.evmd 1 ONLINE ONLINE oracle-one ora.rhys.db 1 OFFLINE OFFLINE Instance Shutdown -bash-4.1$ srvctl remove diskgroup -g new_datagroup2 -bash-4.1$ crsctl status res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.DATAGROUP1.dg ONLINE ONLINE oracle-one ora.DATAGROUP2.dg ONLINE ONLINE oracle-one ora.LISTENER.lsnr ONLINE ONLINE oracle-one ora.asm ONLINE ONLINE oracle-one Started ora.ons OFFLINE OFFLINE oracle-one -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.cssd 1 ONLINE ONLINE oracle-one ora.diskmon 1 OFFLINE OFFLINE ora.evmd 1 ONLINE ONLINE oracle-one ora.rhys.db 1 OFFLINE OFFLINE Instance Shutdown

许多Windows11用户遇到错误消息“驱动程序无法在此设备上加载(ene.sys)”,该消息阻止驱动程序在系统上加载并被标记为易受攻击。但是,此问题主要由已将PC升级到Windows11的用户报告。此错误与由于系统操作系统更新问题而损坏的驱动程序和文件密切相关。如果您在每次更新后打开Windows11计算机时都遇到此“ene.sys”错误,请继续阅读这篇文章。在这里,您将找到一些在PC上看到此错误时可以使用的故障排除方法。修复1–安装可选更新第1步。使用Windows+R组

如果您的办公室里有很多打印机,打印机列表可能会很长,并且使完成工作变得乏味。更重要的是,多台打印机通常意味着名称相似,这可能会有点令人困惑。您想要的最后一件事是滚动浏览无穷无尽的列表,但最终仍然将打印作业发送到错误的打印机。幸运的是,您可以通过一个简单的重命名技巧来解决所有这些问题,我们将在下面向您展示。如何在Windows11中重命名我的打印机?1.使用“设置”应用点击键并单击设置。Windows单击蓝牙和设备,然后选择打印机和扫描仪。选择要重命名的打印机。单击打印机属性。导航到常规选项卡,键
![Explorer.exe 在系统启动时不启动 [修复]](https://img.php.cn/upload/article/000/887/227/168575230155539.png)
如今,许多Windows用户开始遇到严重的Windows系统问题。问题是系统加载后Explorer.exe无法启动,用户无法打开文件或文件夹。虽然,Windows用户在某些情况下可以使用命令提示符手动打开Windows资源管理器,并且每次系统重新启动或系统启动后都必须这样做。这可能是有问题的,并且是由于下面提到的以下因素造成的。损坏的系统文件。启用快速启动设置。过时或有问题的显示驱动程序。对系统中的某些服务进行了更改。修改后的注册表文件。请记住以上所有因素,我们提出了一些肯定会对用户有所帮助

更改文件类型(扩展名)是一项简单的工作。但是,有时更简单的事情可能会变得棘手,更改文件扩展名就是其中之一。更改文件类型时应格外小心,因为一个简单的错误可能会使文件变砖并使其无法操作。因此,我们讨论了在Windows11、10上更改文件类型的多种方法。如何在Windows11、10上更改文件类型有两种方法可以做到这一点。您可以使用直接GUI方法(在文件资源管理器中),也可以从终端更改文件类型。方式1–使用文件资源管理器方式2–使用CMD终端方式1–直接更改文件类型您可以直接从文件资源管理器中的上下

重命名的快捷键是F2。解析1重命名的快捷键是F2。2想要给某个文件或者文件夹重新命名的话,可以在选中该文件后按下F2,直接修改后按回车键即可。3有时候也可以用鼠标选中文件后点击右键,选择重命名,修改完成后按回车键即可。4快捷键指的是通过键盘上按键的特殊组合或者顺序来快速完成某个指令,可以有效提高工作效率。补充:快捷键是什么1快捷键,又叫热键,指的是通过某些特定的按键、按键顺序或按键组合来完成一个操作。利用快捷键可以代替鼠标做一些工作,可以利用键盘快捷键打开、关闭和导航开始菜单、桌面、菜单、对话框

win10如何批量重命名文件后缀?现在有非常多的用户都在使用Win10系统,而我们在平时使用电脑的过程中,经常会用到很多的快捷键,因为快捷键能让我们的操作更方便,那么要怎么批量重命名文件?下面,小编就为大家介绍下Win10批量重命名文件的操作。Win10批量重命名文件的操作1、全选你想重命名的文件。2、在选中状态的一个文件上点右键,选择重命名。3、一个文件改好新名称后,其他文件依次被序号标记。方法很简单,只不过修改的时候要注意文件排列顺序,以及被修改的样本文件排序位置。序号是从被修改的样本文件开

打开一个word文档是指把该文档从磁盘调入到内存并显示。word文档是一种计算机文件(文本文档、图片、程序等等),计算机中所有程序的运行(文件的打开)都在内存中进行。计算机打开文件的操作过程是:先将文件调入内存,然后CPU再从内存中读取和处理该文件,当处理完成后CPU将结果传送出来。

就像您PC上的任何其他游戏一样,反恐精英:全球攻势也可能在启动时崩溃、冻结或卡在漆黑的屏幕中。Counter-Strike是市场上的低资源fps游戏之一,它甚至可以在土豆PC上运行。虽然CSGO是一款CPU导向的游戏,但系统GPU也扮演着重要的角色。黑屏问题与GPU问题有关。按照这些简单的解决方案来解决问题。修复1–关闭兼容性如果您在Windows8或7的兼容模式下运行游戏,请将其关闭。CSGO与每个版本的Windows(WindowsXP或更高版本)


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
