{"id":6601,"date":"2015-12-21T15:43:50","date_gmt":"2015-12-21T14:43:50","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/"},"modified":"2015-12-21T15:43:50","modified_gmt":"2015-12-21T14:43:50","slug":"ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/","title":{"rendered":"OCM 12c preparation: restore Voting disks, OCR and ASM spfile"},"content":{"rendered":"<h2>By Franck Pachot<\/h2>\n<p>.<br \/>\nAs in the previous posts, here are a few commands I used to check that I know how to restore the cluster mandatory files in 12c. It&#8217;s what I&#8217;m doing while preparing the OCM 12c exam, but without any clue about what will be at the exam.<br \/>\n<!--more--><br \/>\nFor more details, it&#8217;s in the MOS note <a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=1062983.1\" target=\"_blank\" rel=\"noopener noreferrer\">1062983.1<\/a><\/p>\n<h3>OCR<\/h3>\n<p>Here are the OCR backups:<\/p>\n<pre><code>\n[root@racp1vm1 ~]# ocrconfig -showbackuploc\nThe Oracle Cluster Registry backup location is [\/u01\/app\/12.1.0\/grid_1\/cdata\/]\n[root@racp1vm1 ~]# ocrconfig -showbackup\n&nbsp;\nracp1vm1     2015\/11\/24 17:23:27     \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/backup00.ocr     3467666221\nracp1vm1     2015\/11\/24 13:23:26     \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/backup01.ocr     3467666221\nracp1vm1     2015\/11\/24 09:23:26     \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/backup02.ocr     3467666221\nracp1vm1     2015\/11\/23 07:14:45     \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/day.ocr     0\nracp1vm1     2015\/11\/23 07:14:45     \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/week.ocr     0\nracp1vm1     2015\/12\/18 20:28:50     \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/backup_20151218_202850.ocr     3467666221\nracp1vm1     2015\/12\/18 20:28:42     \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/backup_20151218_202842.ocr     3467666221\nracp1vm1     2015\/12\/18 20:28:40     \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/backup_20151218_202840.ocr     3467666221\nracp1vm1     2015\/11\/23 09:53:43     \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/backup_20151123_095343.ocr     3467666221\nracp1vm1     2015\/11\/23 01:33:18     \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/backup_20151123_013318.ocr     0\n<\/code><\/pre>\n<p>We need to stop Grid Infrastructure on all nodes<\/p>\n<pre><code>\n[root@racp1vm1 ~]# crsctl stop crs -f\nCRS-4639: Could not contact Oracle High Availability Services\nCRS-4000: Command Stop failed, or completed with errors.\n&nbsp;\n[root@racp1vm1 ~]# crsctl stop crs -f\nCRS-4639: Could not contact Oracle High Availability Services\nCRS-4000: Command Stop failed, or completed with errors.\n<\/code><\/pre>\n<p>and start it in exclusive mode without starting CRSD<\/p>\n<pre><code>\n[root@racp1vm1 ~]# crsctl start crs -h\nUsage:\n  crsctl start crs [-excl [-nocrs] [-cssonly]] | [-wait | -waithas | -nowait] | \n&nbsp;\n[-noautostart]\n     Start OHAS on this server\nwhere\n     -excl        Start Oracle Clusterware in exclusive mode\n     -nocrs       Start Oracle Clusterware in exclusive mode without starting CRS\n     -nowait      Do not wait for OHAS to start\n     -wait        Wait until startup is complete and display all progress and \n&nbsp;\nstatus messages\n     -waithas     Wait until startup is complete and display OHASD progress and \n&nbsp;\nstatus messages\n     -cssonly     Start only CSS\n     -noautostart Start only OHAS\n<\/code><\/pre>\n<pre><code>\n[root@racp1vm1 ~]# crsctl start crs -excl -nocrs\n<\/code><\/pre>\n<p>Then we are able to restore the OCR:<\/p>\n<pre><code>\n[root@racp1vm1 grid]# ocrconfig -restore \/u01\/app\/12.1.0\/grid_1\/cdata\/ws-dbi\/backup_20151123_095343.ocr\n<\/code><\/pre>\n<h3>Voting disks<\/h3>\n<p>Here are my voting disks:<\/p>\n<pre><code>\n[root@racp1vm1 grid]# crsctl query css votedisk\n$##  STATE    File Universal Id                File Name Disk group\n--  -----    -----------------                --------- ---------\n 1. ONLINE   22bf1a8f5f634fafbf521c83d8bf5982 (\/dev\/sdb1) [DATA]\nLocated 1 voting disk(s).\n<\/code><\/pre>\n<p>I can delete it and re-create it:<\/p>\n<pre><code>\n[root@racp1vm1 grid]# crsctl delete css votedisk +DATA\nCRS-4611: Successful deletion of voting disk +DATA.\n<\/code><\/pre>\n<pre><code>\n[root@racp1vm1 grid]# crsctl replace votedisk +DATA\nSuccessful addition of voting disk 67ad2282347d4f77bf2151e0a7c10105.\nSuccessfully replaced voting disk group with +DATA.\nCRS-4266: Voting file(s) successfully replaced\n<\/code><\/pre>\n<h3>ASM spfile<\/h3>\n<p>Here I&#8217;m removing the ASM spfile withotu having a backup:<\/p>\n<pre><code>\nASMCMD&gt; spget\n+DATA\/ws-dbi\/ASMPARAMETERFILE\/registry.253.896481653\nASMCMD&gt; rm +DATA\/ws-dbi\/ASMPARAMETERFILE\/registry.253.896481653\n<\/code><\/pre>\n<p>But I can get the non-default parameters from the alert.log:<\/p>\n<pre><code>\n[root@racp1vm1 ~]# adrci exec='set home +ASM1 ; show alert'\nG\n?non-default\n<\/code><\/pre>\n<p>and paste them to a pfile. Note that I have to add the instance_type which is not listed as non-default:<\/p>\n<pre><code>\ncat &gt; \/tmp\/spfile.txt\n  large_pool_size          = 12M\n  remote_login_passwordfile= \"EXCLUSIVE\"\n  asm_diskgroups           = \"ACFSDG\"\n  asm_diskgroups           = \"FRA\"\n  asm_power_limit          = 1\ninstance_type='asm'\n<\/code><\/pre>\n<p>Then re-create spfile:<\/p>\n<pre><code>\n[grid@racp1vm1 ~]$ sqlplus \/ as sysasm\n&nbsp;\nSQL*Plus: Release 12.1.0.2.0 Production on Fri Dec 18 21:35:25 2015\n&nbsp;\nCopyright (c) 1982, 2014, Oracle.  All rights reserved.\n&nbsp;\nConnected to:\nOracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production\nWith the Real Application Clusters and Automatic Storage Management options\n&nbsp;\nSQL&gt; create spfile='+DATA' from pfile='\/tmp\/spfile.txt';\nFile created.\n<\/code><\/pre>\n<h3>Now ready to restart the cluster:<\/h3>\n<pre><code>\n[root@racp1vm1 grid]# crsctl stop crs -f\n[root@racp1vm1 grid]# crsctl start crs\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>By Franck Pachot . As in the previous posts, here are a few commands I used to check that I know how to restore the cluster mandatory files in 12c. It&#8217;s what I&#8217;m doing while preparing the OCM 12c exam, but without any clue about what will be at the exam.<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[456,714,96],"type_dbi":[],"class_list":["post-6601","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","tag-grid-infrastructure","tag-ocm-12c","tag-oracle"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>OCM 12c preparation: restore Voting disks, OCR and ASM spfile - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OCM 12c preparation: restore Voting disks, OCR and ASM spfile\" \/>\n<meta property=\"og:description\" content=\"By Franck Pachot . As in the previous posts, here are a few commands I used to check that I know how to restore the cluster mandatory files in 12c. It&#8217;s what I&#8217;m doing while preparing the OCM 12c exam, but without any clue about what will be at the exam.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-21T14:43:50+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"headline\":\"OCM 12c preparation: restore Voting disks, OCR and ASM spfile\",\"datePublished\":\"2015-12-21T14:43:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/\"},\"wordCount\":171,\"commentCount\":0,\"keywords\":[\"Grid Infrastructure\",\"OCM 12c\",\"Oracle\"],\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/\",\"name\":\"OCM 12c preparation: restore Voting disks, OCR and ASM spfile - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2015-12-21T14:43:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OCM 12c preparation: restore Voting disks, OCR and ASM spfile\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"caption\":\"Oracle Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"OCM 12c preparation: restore Voting disks, OCR and ASM spfile - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/","og_locale":"en_US","og_type":"article","og_title":"OCM 12c preparation: restore Voting disks, OCR and ASM spfile","og_description":"By Franck Pachot . As in the previous posts, here are a few commands I used to check that I know how to restore the cluster mandatory files in 12c. It&#8217;s what I&#8217;m doing while preparing the OCM 12c exam, but without any clue about what will be at the exam.","og_url":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/","og_site_name":"dbi Blog","article_published_time":"2015-12-21T14:43:50+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"headline":"OCM 12c preparation: restore Voting disks, OCR and ASM spfile","datePublished":"2015-12-21T14:43:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/"},"wordCount":171,"commentCount":0,"keywords":["Grid Infrastructure","OCM 12c","Oracle"],"articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/","url":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/","name":"OCM 12c preparation: restore Voting disks, OCR and ASM spfile - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2015-12-21T14:43:50+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/ocm-12c-preparation-restore-voting-disks-ocr-and-asm-spfile\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"OCM 12c preparation: restore Voting disks, OCR and ASM spfile"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","caption":"Oracle Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=6601"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6601\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=6601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=6601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=6601"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=6601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}