{"id":101,"date":"2013-06-10T23:33:38","date_gmt":"2013-06-10T21:33:38","guid":{"rendered":"http:\/\/www.rocworks.at\/wordpress\/?p=101"},"modified":"2013-07-04T18:49:58","modified_gmt":"2013-07-04T16:49:58","slug":"install-new-database-host-and-use-existing-asm-database","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=101","title":{"rendered":"Install new database host and reuse existing ASM database&#8230;"},"content":{"rendered":"<p>My Database-Host was gone (don&#8217;t ask why&#8230;), but my database files are hosted by ASM (data diskgroup with 3 iSCSI disks), so i was able to install a new Solaris-Host and build up my database server with the existing ASM diskgroup and database in the following way:<\/p>\n<p>Install grid-software with option &#8220;software only&#8221;<\/p>\n<p>Run the roothas.pl script from Grid_home using the following syntax:<\/p>\n<p>as root user: \/app\/11.2.0\/grid\/perl\/bin\/perl -I \/app\/11.2.0\/grid\/perl\/lib -I \/app\/11.2.0\/grid\/crs\/install \/app\/11.2.0\/grid\/crs\/install\/roothas.pl<\/p>\n<p>as oracle user from the grid-home \/app\/11.2.0\/grid\/oui&gt; .\/runInstaller -updateNodeList ORACLE_HOME=\/app\/11.2.0\/grid -defaultHomeName CLUSTER_NODES= CRS=TRUE<\/p>\n<p>orapwd file=$ORACLE_HOME\/dbs\/orapw+ASM password=Password123 entries=5<\/p>\n<p>mkdir -p $ORACLE_BASE\/admin\/+ASM<br \/>\ncd $ORACLE_BASE\/admin\/+ASM<br \/>\nmkdir bdump<br \/>\nmkdir udump<br \/>\nmkdir cdump<br \/>\nmkdir pfile<\/p>\n<p>init+ASM.ora:<br \/>\n*.asm_power_limit=1<br \/>\n*.diagnostic_dest=&#8217;\/app\/oracle&#8217;<br \/>\n*.instance_type=&#8217;asm&#8217;<br \/>\n*.large_pool_size=12M<br \/>\n*.remote_login_passwordfile=&#8217;EXCLUSIVE&#8217;<\/p>\n<p>srvctl add listener<br \/>\nsrvctl start listener<br \/>\nsrvctl add asm -l LISTENER -p $ORACLE_HOME\/dbs\/init+ASM.ora -d &#8216;\/dev\/rdsk\/*&#8217;<\/p>\n<p># disks<br \/>\nchown oracle:oinstall \/dev\/rdsk\/c9t2d0s0<br \/>\nchown oracle:oinstall \/dev\/rdsk\/c9t3d0s0<br \/>\nchown oracle:oinstall \/dev\/rdsk\/c9t4d0s0<br \/>\nchmod 660 \/dev\/rdsk\/c9t2d0s0<br \/>\nchmod 660 \/dev\/rdsk\/c9t3d0s0<br \/>\nchmod 660 \/dev\/rdsk\/c9t4d0s0<br \/>\nasmcmd&gt; lsdsk &#8211;discovery<br \/>\nasmcmd&gt; lsdsk<br \/>\nasmcmd&gt; mount DATA<\/p>\n<p>alter system set asm_diskgroups=&#8217;DATA&#8217; scope=spfile;<\/p>\n<p>create pfile with &#8220;SPFILE=+DATA\/DB\/spfiledb.ora&#8221;<br \/>\nmkdir -p \/app\/oracle\/admin\/DB\/adump<br \/>\nsrvctl add database -d DB -o \/app\/oracle\/product\/11.2.0\/dbhome_1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My Database-Host was gone (don&#8217;t ask why&#8230;), but my database files are hosted by ASM (data diskgroup with 3 iSCSI disks), so i was able to install a new Solaris-Host and build up my database server with the existing ASM diskgroup and database in the following way: Install grid-software with option &#8220;software only&#8221; Run the &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=101\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install new database host and reuse existing ASM database&#8230;<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-oracle"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=101"}],"version-history":[{"count":6,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":103,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions\/103"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}