{"id":98,"date":"2013-06-10T23:25:08","date_gmt":"2013-06-10T21:25:08","guid":{"rendered":"http:\/\/www.rocworks.at\/wordpress\/?p=98"},"modified":"2014-08-30T18:46:55","modified_gmt":"2014-08-30T16:46:55","slug":"setup-solaris-11-1-for-oracle-database-with-asm","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=98","title":{"rendered":"Setup Solaris 11.1 \/ 11.2 for Oracle Database with ASM"},"content":{"rendered":"<p># allow root ssh<br \/>\n1) Modify PermitRootLogin to yes in \/etc\/ssh\/sshd_config.<br \/>\n2) Comment out the \u201cCONSOLE=\/dev\/console\u201d line in \/etc\/default\/login.<br \/>\n3) Remove \u201ctype=role\u201d from the root entry in \/etc\/user_attr.<\/p>\n<p># for ssh X11 forwarding<br \/>\npkg install xauth<br \/>\n\/etc\/ssh\/sshd_config:<br \/>\n   # X11 tunneling options<br \/>\n   X11Forwarding yes<br \/>\n   X11DisplayOffset 10<br \/>\n   X11UseLocalhost yes<\/p>\n<p>svcadm restart svc:\/network\/ssh:default<\/p>\n<p># check network cards<br \/>\ndladm show-phys<br \/>\ndladm show-link<br \/>\nipadm show-if<br \/>\nipadm show-addr<\/p>\n<p># change profile to fixed<br \/>\nnetadm enable -p ncp DefaultFixed<\/p>\n<p># setup network to public network<br \/>\nipadm create-ip net0<br \/>\nipadm create-addr -T static -a 192.168.1.19\/24 net0\/acme<br \/>\nsvccfg -s network\/dns\/client setprop config\/nameserver=net_address: &#8220;(192.168.1.1)&#8221;<\/p>\n<p>root@solaris:~# svccfg<br \/>\nsvc:&gt; select dns\/client<\/p>\n<p>svc:\/network\/dns\/client&gt; select dns\/client<br \/>\nsvc:\/network\/dns\/client&gt; setprop config\/nameserver=net_address: &#8220;(192.168.1.1)&#8221;<br \/>\nsvc:\/network\/dns\/client&gt; refresh<br \/>\nsvc:\/network\/dns\/client&gt; validate<\/p>\n<p>svc:\/network\/dns\/client&gt; select name-service\/switch<br \/>\nsvc:\/system\/name-service\/switch&gt; setprop config\/host = astring: &#8220;files dns&#8221;<br \/>\nsvc:\/system\/name-service\/switch&gt; refresh<br \/>\nsvc:\/system\/name-service\/switch&gt; validate<\/p>\n<p># set defaultrouter\/nameserver:<br \/>\necho &#8220;192.168.1.1&#8221; &gt;&gt; \/etc\/defaultrouter<br \/>\necho &#8220;192.168.1.1&#8221; &gt;&gt; \/etc\/resolv.conf<\/p>\n<p># setup network to storage network<br \/>\ndladm set-linkprop -p mtu=9000 net1<br \/>\nipadm create-ip net1<br \/>\nipadm create-addr -T static -a 192.168.100.19\/24 net1\/acme<\/p>\n<p># user and groups<br \/>\ngroupadd -g 1000 oinstall<br \/>\ngroupadd -g 1001 dba<br \/>\nuseradd -u 1000 -g oinstall -G dba -m oracle<br \/>\nmkdir -p \/app\/11.2.0\/grid<br \/>\nmkdir -p \/app\/oracle<br \/>\nchown -R oracle:oinstall \/app<br \/>\nchmod -R 775 \/app\/<\/p>\n<p># set swap to ram=swap size (for below 16g RAM, for more than 16g RAM set swap fix to 16g)<br \/>\nzfs set volsize=4g rpool\/swap<\/p>\n<p># packages<br \/>\npkg install SUNWarc<br \/>\npkg install SUNWbtool<br \/>\npkg install SUNWcsl<br \/>\npkg install SUNWhea<br \/>\npkg install SUNWlibC<br \/>\npkg install SUNWlibm<br \/>\npkg install SUNWlibms<br \/>\npkg install SUNWsprot<br \/>\npkg install SUNWtoo<br \/>\npkg install SUNWi1cs<br \/>\npkg install SUNWi15cs<br \/>\npkg install motif<\/p>\n<p># 12.1.0.2<br \/>\npkg install x11-info-clients<\/p>\n<p>file-descriptor-limit:<br \/>\n  add a line to \/etc\/system and reboot:<br \/>\n  set rlim_fd_max=1024<\/p>\n<p># allow oracle user to use more than 25% of system memory (execute as root user!)<br \/>\nprojadd -p 100 -c &#8216;Oracle Database&#8217; -U oracle -G dba -K &#8216;project.max-shm-memory=(privileged,3G,deny)&#8217; DB<br \/>\nusermod -K project=DB oracle<\/p>\n<p># iscsi static connect for asm disks<br \/>\niscsiadm add static-config iqn.2013-06.nas.solarisvm.asm,192.168.100.8:3260<br \/>\niscsiadm modify discovery &#8211;static enable<\/p>\n<p>&nbsp;<\/p>\n<p># prepare local disk for ASM<br \/>\nformat<br \/>\nAVAILABLE DISK SELECTIONS:<br \/>\n0. c8t0d0 &lt;IET-VIRTUAL-DISK-0001-40.00GB&gt;<br \/>\n\/pci@0,0\/pci15ad,1976@10\/sd@0,0<br \/>\n1. c8t1d0 &lt;IET-VIRTUAL-DISK-0001 cyl 2046 alt 2 hd 128 sec 32&gt;<br \/>\n\/pci@0,0\/pci15ad,1976@10\/sd@1,0<br \/>\n2. c8t2d0 &lt;IET-VIRTUAL-DISK-0001 cyl 5219 alt 2 hd 255 sec 63&gt;<br \/>\n\/pci@0,0\/pci15ad,1976@10\/sd@2,0<br \/>\n3. c8t3d0 &lt;IET-VIRTUAL-DISK-0001 cyl 5219 alt 2 hd 255 sec 63&gt;<br \/>\n\/pci@0,0\/pci15ad,1976@10\/sd@3,0<br \/>\n4. c8t4d0 &lt;IET-VIRTUAL-DISK-0001 cyl 5219 alt 2 hd 255 sec 63&gt;<br \/>\n\/pci@0,0\/pci15ad,1976@10\/sd@4,0<\/p>\n<p>format&gt; fdisk<br \/>\nformat&gt; label<br \/>\nformat&gt; partition<br \/>\npartition&gt; p<\/p>\n<p>Volume: ASM00D1<br \/>\nCurrent partition table (original):<br \/>\nTotal disk cylinders available: 5218 + 2 (reserved cylinders)<\/p>\n<p>Part Tag Flag Cylinders Size Blocks<br \/>\n0 unassigned wm 0 0 (0\/0\/0) 0<br \/>\n1 unassigned wm 0 0 (0\/0\/0) 0<br \/>\n2 backup wu 0 &#8211; 5217 39.97GB (5218\/0\/0) 83827170<br \/>\n3 unassigned wm 0 0 (0\/0\/0) 0<br \/>\n4 unassigned wm 0 0 (0\/0\/0) 0<br \/>\n5 unassigned wm 0 0 (0\/0\/0) 0<br \/>\n6 unassigned wm 0 0 (0\/0\/0) 0<br \/>\n7 unassigned wm 0 0 (0\/0\/0) 0<br \/>\n8 boot wu 0 &#8211; 0 7.84MB (1\/0\/0) 16065<br \/>\n9 unassigned wm 0 0 (0\/0\/0) 0<\/p>\n<p>partition&gt; 0<\/p>\n<p>Enter partition id tag[unassigned]: usr<br \/>\nEnter partition permission flags[wm]:<br \/>\nEnter new starting cyl[1]:<br \/>\nEnter partition size[0b, 0c, 1e, 0.00mb, 0.00gb]: 5217c<br \/>\npartition&gt; label<br \/>\nReady to label disk, continue? y<\/p>\n<p># change owner and permission for disks<br \/>\nchown oracle:oinstall \/dev\/rdsk\/c8t1d0s0<br \/>\nchmod 660 \/dev\/rdsk\/c8t1d0s0<\/p>\n<p># add a new disk to an existing diskgroup:<\/p>\n<p>&gt; sqlplus \/ as sysasm<\/p>\n<p>SQL&gt; select name, path from v$asm_disk;<\/p>\n<p>NAME<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nPATH<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><strong>\/dev\/rdsk\/c8t6d0s0<\/strong><\/p>\n<p>DATA_0003<br \/>\n\/dev\/rdsk\/c8t2d0s0<\/p>\n<p>DATA_0001<br \/>\n\/dev\/rdsk\/c8t3d0s0<br \/>\nNAME<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nPATH<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nDATA_0002<br \/>\n\/dev\/rdsk\/c8t4d0s0<\/p>\n<p>DATA_0004<br \/>\n\/dev\/rdsk\/c8t5d0p0<br \/>\nSQL&gt; alter diskgroup data add disk &#8216;\/dev\/rdsk\/c8t6d0s0&#8217;;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p># allow root ssh 1) Modify PermitRootLogin to yes in \/etc\/ssh\/sshd_config. 2) Comment out the \u201cCONSOLE=\/dev\/console\u201d line in \/etc\/default\/login. 3) Remove \u201ctype=role\u201d from the root entry in \/etc\/user_attr. # for ssh X11 forwarding pkg install xauth \/etc\/ssh\/sshd_config: # X11 tunneling options X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes svcadm restart svc:\/network\/ssh:default # check network cards dladm &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=98\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Setup Solaris 11.1 \/ 11.2 for Oracle Database with ASM<\/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,10],"tags":[],"class_list":["post-98","post","type-post","status-publish","format-standard","hentry","category-oracle","category-solaris"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/98","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=98"}],"version-history":[{"count":12,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":535,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions\/535"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}