{"id":262438,"date":"2015-07-28T16:04:02","date_gmt":"2015-07-28T12:04:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=262438"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=262438","title":{"rendered":"\u0421\u0442\u0440\u043e\u0438\u043c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 Oracle Data Guard 12c \u0438\u0437 Oracle RAC \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Far Sync"},"content":{"rendered":"<br \/>\n<h4>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0426\u0435\u043b\u044c\u044e \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0442\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0434\u0435\u043c\u043e \u0441\u0442\u0435\u043d\u0434\u0430 \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 Oracle Data Guard \u0438\u0437 \u0443\u0437\u043b\u043e\u0432 Oracle RAC 12.1.0.2.0.<\/p>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0431\u044b \u043c\u043e\u0433 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u043d\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b (7 \u0448\u0442\u0443\u043a), \u0442\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u0444\u0438\u0441\u043d\u044b\u0445 PC.<\/p>\n<p>  \u0418\u0442\u043e\u0433\u043e \u0438\u043c\u0435\u0435\u043c:  <\/p>\n<ol>\n<li>3 PC \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c\u0438: CPU i5, 16 GB RAM<\/li>\n<li>\u041e\u0431\u044b\u0447\u043d\u0430\u044f \u043e\u0444\u0438\u0441\u043d\u0430\u044f \u0441\u0435\u0442\u044c 1Gbit\/s<\/li>\n<\/ol>\n<p>  \u041d\u0430 \u0434\u0432\u0443\u0445 PC \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u044f\u0442\u0441\u044f \u0434\u0432\u0430 \u0441\u0430\u0439\u0442\u0430 Oracle Data Guard, \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e 2 \u0443\u0437\u043b\u0430 Oracle RAC 12c \u0438 \u043e\u0434\u0438\u043d Far Sync \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0438\u0440\u0442\u0443\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445.<\/p>\n<p>  \u041d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u043c PC \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441 Oracle Enterprise Manager Cloud Control 12c Release 5 (12.1.0.5). \u041d\u0430\u0441\u0447\u0435\u0442 EM \u2014 \u0434\u0430\u043b\u044c\u0448\u0435 \u044f \u043e \u043d\u0435\u043c \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443 \u0432\u0432\u0438\u0434\u0443 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u0430 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0430\u044f \u043d\u0435 \u0441 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0435\u043d\u0434\u0430 Data Guard, \u0430 \u0441 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c.<\/p>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 Oracle \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441 \u0438\u0445 \u0441\u0430\u0439\u0442\u0430, \u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u044f \u0432\u044b\u0431\u0440\u0430\u043b Fedora 22 \u0441 qemu-kvm + libvirt + openvswitch. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0433\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u041e\u0421 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Oracle Linux 6.6.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 Fedora \u0434\u043b\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d<\/h4>\n<p>  \u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043f\u043e 4 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. \u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0435\u0442\u0435\u0439:  <\/p>\n<table>\n<tr>\n<td>192.168.100.0\/24<\/td>\n<td>#VLAN 100 Public Clusterware network<\/td>\n<\/tr>\n<tr>\n<td>192.168.101.0\/24<\/td>\n<td>#VLAN 101 Interconnect 1<\/td>\n<\/tr>\n<tr>\n<td>192.168.102.0\/24<\/td>\n<td>#VLAN 101 Interconnect 2<\/td>\n<\/tr>\n<tr>\n<td>192.168.103.0\/24<\/td>\n<td>#VLAN 103 Data Guard<\/td>\n<\/tr>\n<\/table>\n<p>  Interconnect \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443 \u043d\u0430\u0441 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d, \u0434\u043b\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 Data Guard \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u0442\u044c. \u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u0432\u043d\u0435\u0448\u043d\u044f\u044f \u0441\u0435\u0442\u044c \u0438 \u043e\u0434\u0438\u043d \u043f\u043e\u0440\u0442 Open vSwitch \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c PC \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 IP \u0430\u0434\u0440\u0435\u0441 \u043f\u043e DHCP \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0435\u0442\u0438.<\/p>\n<p>  \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c IP \u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code class=\"bash\"># cat \/etc\/hosts<\/code><\/pre>\n<p>  <\/p>\n<table>\n<tr>\n<td>192.168.100.1<\/td>\n<td>prmy.example.com<\/td>\n<td>prmy<\/td>\n<td># PC1 Primary RAC Database<\/td>\n<\/tr>\n<tr>\n<td>192.168.100.2<\/td>\n<td>sby.example.com<\/td>\n<td>sby<\/td>\n<td># PC2 Standy RAC Database<\/td>\n<\/tr>\n<tr>\n<td>192.168.100.3<\/td>\n<td>em.example.com<\/td>\n<td>em<\/td>\n<td># PC3 EM 12c<\/td>\n<\/tr>\n<tr>\n<td>192.168.100.11<\/td>\n<td>prmy1.example.com<\/td>\n<td>prmy1<\/td>\n<td># PC1 VM1 Node 1 Primary RAC Database<\/td>\n<\/tr>\n<tr>\n<td>192.168.100.12<\/td>\n<td>prmy2.example.com<\/td>\n<td>prmy2<\/td>\n<td># PC1 VM2 Node 2 Primary RAC Database<\/td>\n<\/tr>\n<tr>\n<td>192.168.100.13<\/td>\n<td>prmy3.example.com<\/td>\n<td>prmy3<\/td>\n<td># PC1 VM3 Primary Far Sync<\/td>\n<\/tr>\n<tr>\n<td>192.168.100.21<\/td>\n<td>sby1.example.com<\/td>\n<td>sby1<\/td>\n<td># PC2 VM1 Node 1 Standy RAC Database<\/td>\n<\/tr>\n<tr>\n<td>192.168.100.22<\/td>\n<td>sby2.example.com<\/td>\n<td>sby2<\/td>\n<td># PC2 VM2 Node 2 Standy RAC Database<\/td>\n<\/tr>\n<tr>\n<td>192.168.100.23<\/td>\n<td>sby3.example.com<\/td>\n<td>sby3<\/td>\n<td># PC2 VM3 Standy Far Sync<\/td>\n<\/tr>\n<\/table>\n<p>  \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0438\u043c\u0435\u043d\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# hostnamectl set-hostname prmy.example.com [root@sby ~]# hostnamectl set-hostname sby.example.com [root@em ~]# hostnamectl set-hostname em.example.com <\/code><\/pre>\n<p>  \u0418\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 GNOME \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u043e\u043a:  <\/p>\n<pre><code class=\"bash\"> # systemctl set-default multi-user.target <\/code><\/pre>\n<p>  \u0421\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c HugeMem \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a \u0438\u0437 \u0440\u0430\u0441\u0447\u0435\u0442\u0430 4300M \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e.  <\/p>\n<pre><code class=\"bash\"> # echo &quot;vm.nr_hugepages=6450&quot; &gt; \/etc\/sysctl.d\/hugepages.conf <\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0438\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e:  <\/p>\n<pre><code class=\"bash\"> # echo &quot;net.ipv4.ip_forward = 1&quot; &gt; \/etc\/sysctl.d\/forward.conf <\/code><\/pre>\n<p>  \u041a\u043b\u0430\u0441\u0442\u0435\u0440\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430 prmy \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c chronyd:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# echo &quot;allow 192.168.100\/24&quot; &gt;&gt; \/etc\/chrony.conf [root@prmy ~]# systemctl enable chronyd <\/code><\/pre>\n<p>  \u041d\u0430 prmy \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c DHCP \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0430\u0447\u0438 IP \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0430\u043c:  <\/p>\n<pre><code class=\"bash\"> root@prmy ~]# dnf install dhcp [root@prmy ~]# systemctl enable dhcpd [root@prmy ~]# vi \/etc\/dhcp\/dhcpd.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \/etc\/dhcp\/dhcpd.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> # # DHCP Server Configuration file. #   see \/usr\/share\/doc\/dhcp\/dhcpd.conf.example #   see dhcpd.conf(5) man page # authoritative;  option domain-name   &quot;example.com&quot;; ddns-domainname      &quot;example.com&quot;; ddns-rev-domainname  &quot;in-addr.arpa.&quot;; ddns-update-style    interim; ddns-updates         on; ignore               client-updates;  default-lease-time 21600; max-lease-time 43200;  #\tPublic subnet 192.168.100.0 netmask 255.255.255.0 { \toption routers\t\t192.168.100.1; \toption subnet-mask\t\t255.255.255.0; \toption broadcast-address\t192.168.100.255; \toption domain-name-servers\t192.168.100.1; \toption ntp-servers\t\t192.168.100.1;  \toption ip-forwarding on;  \tpool \t{ \t\trange 192.168.100.100 192.168.100.254; \t}  \tgroup \t{ \t\thost prmy1 { hardware ethernet 00:16:3e:00:01:01; fixed-address 192.168.100.11; } \t\thost prmy2 { hardware ethernet 00:16:3e:00:01:02; fixed-address 192.168.100.12; } \t\thost prmy3 { hardware ethernet 00:16:3e:00:01:03; fixed-address 192.168.100.13; }  \t\thost sby1 { hardware ethernet 00:16:3e:00:02:01; fixed-address 192.168.100.21; } \t\thost sby2 { hardware ethernet 00:16:3e:00:02:02; fixed-address 192.168.100.22; } \t\thost sby3 { hardware ethernet 00:16:3e:00:02:03; fixed-address 192.168.100.23; } \t} }  #\tInterconnect 1 subnet 192.168.101.0 netmask 255.255.255.0 { \toption subnet-mask\t\t255.255.255.0; \toption broadcast-address\t192.168.101.255; \trange \t\t\t192.168.101.100 192.168.101.254; }  #\tInterconnect 2 subnet 192.168.102.0 netmask 255.255.255.0 { \toption subnet-mask\t\t255.255.255.0; \toption broadcast-address\t192.168.102.255; \trange\t\t\t192.168.102.100 192.168.102.254; }  #\tData Guard subnet 192.168.103.0 netmask 255.255.255.0 { \toption subnet-mask\t\t255.255.255.0; \toption broadcast-address\t192.168.103.255;  \tpool \t{ \t\trange 192.168.103.100 192.168.103.254; \t}  \tgroup \t{ \t\thost prmy1-dg { hardware ethernet 00:16:3e:00:01:31; fixed-address 192.168.103.11; } \t\thost prmy2-dg { hardware ethernet 00:16:3e:00:01:32; fixed-address 192.168.103.12; } \t\thost prmy3-dg { hardware ethernet 00:16:3e:00:01:33; fixed-address 192.168.103.13; }  \t\thost sby1-dg { hardware ethernet 00:16:3e:00:02:31; fixed-address 192.168.103.21; } \t\thost sby2-dg { hardware ethernet 00:16:3e:00:02:32; fixed-address 192.168.103.22; } \t\thost sby3-dg { hardware ethernet 00:16:3e:00:02:33; fixed-address 192.168.103.23; } \t} } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c DNS  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# dnf install bind [root@prmy ~]# systemctl enable named <\/code><\/pre>\n<p>  \u0412 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \/etc\/named.conf \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u0447\u043a\u0438:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# vi \/etc\/named.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u0442\u0440\u043e\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0432 \u0444\u0430\u0439\u043b vi \/etc\/named.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> listen-on port 53 { 192.168.100.1; }; allow-query\t\t{ localhost; 192.168.100.0\/24; }; allow-query-cache\t{ localhost; 192.168.100.0\/24; }; allow-recursion\t\t{ localhost; 192.168.100.0\/24; }; zone &quot;example.com&quot; {         type master;         file &quot;dynamic\/example.zone&quot;;         allow-update { key &quot;rndc-key&quot;; };         notify yes; };  zone &quot;100.168.192.in-addr.arpa&quot; IN {         type master;         file &quot;dynamic\/192.168.100.zone&quot;;         allow-update { key &quot;rndc-key&quot;; };         notify yes; };  zone &quot;103.168.192.in-addr.arpa&quot; IN {         type master;         file &quot;dynamic\/192.168.103.zone&quot;;         allow-update { key &quot;rndc-key&quot;; };         notify yes; }; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0437\u043e\u043d\u044b:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# vi \/var\/named\/dynamic\/example.zone <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \/var\/named\/dynamic\/example.zone<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> $ORIGIN . $TTL 86400      ; 1 day example.com             IN SOA  dns.example.com. sysadmin.example.com. (                                 59\t\t; serial                                 28800\t\t; refresh (8 hours)                                 7200\t\t; retry (2 hours)                                 2419200\t\t; expire (4 weeks)                                 86400\t\t; minimum (1 day)                                 )                         IN      NS   dns.example.com. $ORIGIN example.com. $TTL 10800      ; 3 hours $TTL 86400      ; 1 day dns\t\t\tA\t192.168.100.1 prmy\t\t\tCNAME\tdns prmy1\t\t\tA\t192.168.100.11 prmy2\t\t\tA\t192.168.100.12 prmy3\t\t\tA\t192.168.100.13  sby\t\t\tA\t192.168.100.2 sby1\t\t\tA\t192.168.100.21 sby2\t\t\tA\t192.168.100.22 sby3\t\t\tA\t192.168.100.23  prmy1-dg\t\tA\t192.168.103.11 prmy2-dg\t\tA\t192.168.103.12 prmy3-dg\t\tA\t192.168.103.13  sby1-dg\t\t\tA\t192.168.103.21 sby2-dg\t\t\tA\t192.168.103.22 sby3-dg\t\t\tA\t192.168.103.23  em\t\t\tA\t192.168.100.3  clu-prmy-gns\t\tA\t192.168.100.51 clu-prmy\t\tNS\tclu-prmy-gns.example.com. <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# vi \/var\/named\/dynamic\/192.168.100.zone <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \/var\/named\/dynamic\/192.168.100.zone<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> $ORIGIN . $TTL 86400      ; 1 day 100.168.192.in-addr.arpa IN SOA dns.example.com. sysadmin.example.com. (                                 40         ; serial                                 28800      ; refresh (8 hours)                                 7200       ; retry (2 hours)                                 2419200    ; expire (4 weeks)                                 86400      ; minimum (1 day)                                 )                         NS      dns.example.com. $ORIGIN 100.168.192.in-addr.arpa. 1\t\t\tPTR\tdns.example.com. 11\t\t\tPTR\tprmy1.example.com. 12\t\t\tPTR\tprmy2.example.com. 13\t\t\tPTR\tprmy3.example.com.  2\t\t\tPTR\tsby.example.com. 21\t\t\tPTR\tsby1.example.com. 22\t\t\tPTR\tsby2.example.com. 23\t\t\tPTR\tsby3.example.com.  3\t\t\tPTR\tem.example.com.  51\t\t\tPTR\tclu-prmy-gns.example.com. <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# vi \/var\/named\/dynamic\/192.168.103.zone <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \/var\/named\/dynamic\/192.168.103.zone<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> $ORIGIN . $TTL 86400      ; 1 day 103.168.192.in-addr.arpa IN SOA dns.example.com. sysadmin.example.com. (                                 42\t\t; serial                                 28800\t\t; refresh (8 hours)                                 7200\t\t; retry (2 hours)                                 2419200\t\t; expire (4 weeks)                                 86400\t\t; minimum (1 day)                                 )                         NS      dns.example.com. $ORIGIN 103.168.192.in-addr.arpa. 11\t\t\tPTR\tprmy1-dg.example.com. 12\t\t\tPTR\tprmy2-dg.example.com. 13\t\t\tPTR\tprmy3-dg.example.com.  21\t\t\tPTR\tsby1-dg.example.com. 22\t\t\tPTR\tsby2-dg.example.com. 23\t\t\tPTR\tsby3-dg.example.com. <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# chown named:named \/var\/named\/dynamic\/* <\/code><\/pre>\n<p>  \u0423 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0438 DHCP \u0438 DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043c\u0435\u0448\u0430\u0442\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u0444\u0438\u0441\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u043c\u044b \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0442\u0435\u043d\u0434\u0430 \u0441\u0432\u043e\u0438 \u043f\u043e\u0434\u0441\u0435\u0442\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 VLAN.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Open vSwitch:  <\/p>\n<pre><code class=\"bash\"> # dnf install openvswitch # systemctl enable openvswitch # systemctl disable NetworkManager # systemctl enable network <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0432\u0438\u0447 \u0434\u043b\u044f public \u0441\u0435\u0442\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:  <\/p>\n<pre><code class=\"bash\"> # vi \/etc\/sysconfig\/network-scripts\/ifcfg-ovsbr0 DEVICE=ovsbr0 DEVICETYPE=ovs TYPE=OVSBridge ONBOOT=yes OVSBOOTPROTO=&quot;dhcp&quot; OVSDHCPINTERFACES=&quot;enp3s0&quot; DELAY=0 HOTPLUG=no NOZEROCONF=yes <\/code><\/pre>\n<p>  \u0412\u043c\u0435\u0441\u0442\u0435 \u0441 \u043c\u043e\u0441\u0442\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043f\u043e\u0440\u0442 \u0438 \u043d\u0430 \u043d\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441 \u0438\u043c\u0435\u043d\u0438\u0435\u043c \u043c\u043e\u0441\u0442\u0430 ovsbr0. \u042d\u0442\u043e\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c IP \u0430\u0434\u0440\u0435\u0441 \u0441 \u043e\u0444\u0438\u0441\u043d\u043e\u0433\u043e DHCP \u0447\u0435\u0440\u0435\u0437 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 enp3s0.<\/p>\n<p>  \u0412 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 enp3s0 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u043a \u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0441\u0442\u0443:  <\/p>\n<pre><code class=\"bash\"> # vi \/etc\/sysconfig\/network-scripts\/ifcfg-enp3s0 DEVICE=&quot;enp3s0&quot; DEVICETYPE=ovs TYPE=OVSPort OVS_BRIDGE=ovsbr0 ONBOOT=yes HWADDR=60:a4:4c:3c:93:06 IPV4_FAILURE_FATAL=no IPV6INIT=no NM_CONTROLLED=no USERCTL=no NOZEROCONF=yes HOTPLUG=no <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u0440\u0442 (VLAN 100) \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 Open vSwitch \u0434\u043b\u044f public \u0441\u0435\u0442\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432. \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0434\u0430\u0432\u0430\u0442\u044c IP \u0430\u0434\u0440\u0435\u0441\u0430, DNS \u0438 NTP \u0434\u043b\u044f \u0432\u0438\u0440\u0443\u0430\u043b\u043e\u043a \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432 \u0438 EM 12c.  <\/p>\n<pre><code class=\"bash\"> # vi \/etc\/sysconfig\/network-scripts\/ifcfg-pub0 DEVICE=pub0 TYPE=&quot;OVSIntPort&quot; DEVICETYPE=&quot;ovs&quot; OVS_BRIDGE=&quot;ovsbr0&quot; OVS_OPTIONS=&quot;tag=100&quot; OVS_EXTRA=&quot;set Interface $DEVICE external-ids:iface-id=$(hostname -s)-$DEVICE-vif&quot; ONBOOT=yes BOOTPROTO=static IPADDR=192.168.100.1 PREFIX=24 IPV6INIT=no DELAY=0 HOTPLUG=no NOZEROCONF=yes <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0432\u0438\u0447, \u043f\u043e\u0440\u0442 (VLAN 101) \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 Open vSwitch \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e inetrconnect&#8217;\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.  <\/p>\n<pre><code class=\"bash\"> # vi \/etc\/sysconfig\/network-scripts\/ifcfg-iconn1 DEVICE=iconn1 DEVICETYPE=ovs TYPE=OVSBridge OVS_EXTRA=&quot;set port $DEVICE tag=101&quot; ONBOOT=yes BOOTPROTO=none IPADDR=192.168.101.1 PREFIX=24 DELAY=0 HOTPLUG=no NOZEROCONF=yes <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0432\u0438\u0447, \u043f\u043e\u0440\u0442 (VLAN 102) \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 Open vSwitch \u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e inetrconnect&#8217;\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432.  <\/p>\n<pre><code class=\"bash\"> # vi \/etc\/sysconfig\/network-scripts\/ifcfg-iconn2 DEVICE=iconn2 DEVICETYPE=ovs TYPE=OVSBridge OVS_EXTRA=&quot;set port $DEVICE tag=102&quot; ONBOOT=yes BOOTPROTO=none IPADDR=192.168.102.1 PREFIX=24 DELAY=0 HOTPLUG=no NOZEROCONF=yes <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0432\u0438\u0447, \u043f\u043e\u0440\u0442 (VLAN 103) \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 Open vSwitch \u0434\u043b\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 Data Guard.  <\/p>\n<pre><code class=\"bash\"> # vi \/etc\/sysconfig\/network-scripts\/ifcfg-dg0 DEVICE=dg0 DEVICETYPE=ovs TYPE=OVSBridge OVS_EXTRA=&quot;set port $DEVICE tag=103&quot; ONBOOT=yes BOOTPROTO=none IPADDR=192.168.103.1 PREFIX=24 DELAY=0 HOTPLUG=no NOZEROCONF=yes <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0430\u043a\u0438\u0435 \u0436\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u043d\u0430 sby \u043c\u0435\u043d\u044f\u044f HWADDR \u043d\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0446\u0438\u0444\u0440\u0443 \u0432 IP \u0430\u0434\u0440\u0435\u0441\u0430\u0445 \u0434\u043b\u044f sby \u043d\u0430 2.<br \/>  \u0421\u0432\u0438\u0447\u0438 iconn1, iconn2 \u0438 dg0 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0443 \u043d\u0430\u0441 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u0438\u0445 \u0442\u0440\u0430\u0444\u0438\u043a \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u043d\u0430\u0440\u0443\u0436\u0443. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u043d\u0430 prmy \u043c\u043e\u0433\u043b\u0438 \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e \u0432\u0441\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c \u0441\u0435\u0442\u044f\u043c \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438 \u043d\u0430 sby \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u044d\u0442\u0438 \u0441\u0432\u0438\u0447\u0438 \u043a ovsbr0, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0440\u0442.<\/p>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u044d\u0442\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0445 \u0441\u0432\u0438\u0447\u0435\u0439 \u00ab\u043f\u0430\u0440\u043e\u0432\u043e\u0437\u0438\u043a\u043e\u043c\u00bb \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Patch \u043f\u043e\u0440\u0442\u043e\u0432 \u043d\u0430 \u0441\u0432\u0438\u0447\u0430\u0445.<\/p>\n<p>  \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b \u043d\u0430 prmy \u0438 sby:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0435\u0434\u0438\u043d\u0435\u0438\u0435 \u0441\u0432\u0438\u0447\u0435\u0439 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Patch \u043f\u043e\u0440\u0442\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> # vi \/etc\/sysconfig\/network-scripts\/ifcfg-patch-ovsbr0-iconn1 DEVICE=patch-ovsbr0-iconn1 ONBOOT=yes DEVICETYPE=ovs TYPE=OVSPatchPort OVS_BRIDGE=ovsbr0 OVS_PATCH_PEER=patch-iconn1-ovsbr0  # vi \/etc\/sysconfig\/network-scripts\/ifcfg-patch-iconn1-ovsbr0 DEVICE=patch-iconn1-ovsbr0 ONBOOT=yes DEVICETYPE=ovs TYPE=OVSPatchPort OVS_BRIDGE=iconn1 OVS_PATCH_PEER=patch-ovsbr0-iconn1  # vi \/etc\/sysconfig\/network-scripts\/ifcfg-patch-iconn1-iconn2 DEVICE=patch-iconn1-iconn2 ONBOOT=yes DEVICETYPE=ovs TYPE=OVSPatchPort OVS_BRIDGE=iconn1 OVS_PATCH_PEER=patch-iconn2-iconn1  # vi \/etc\/sysconfig\/network-scripts\/ifcfg-patch-iconn2-iconn1 DEVICE=patch-iconn2-iconn1 ONBOOT=yes DEVICETYPE=ovs TYPE=OVSPatchPort OVS_BRIDGE=iconn2 OVS_PATCH_PEER=patch-iconn1-iconn2  # vi \/etc\/sysconfig\/network-scripts\/ifcfg-patch-iconn2-dg0 DEVICE=patch-iconn2-dg0 ONBOOT=yes DEVICETYPE=ovs TYPE=OVSPatchPort OVS_BRIDGE=iconn2 OVS_PATCH_PEER=patch-dg0-iconn2  # vi \/etc\/sysconfig\/network-scripts\/ifcfg-patch-dg0-iconn2 DEVICE=patch-dg0-iconn2 ONBOOT=yes DEVICETYPE=ovs TYPE=OVSPatchPort OVS_BRIDGE=dg0 OVS_PATCH_PEER=patch-iconn2-dg0 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c prmy \u0438 sby.<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0443\u044e\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e openvswitch:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# ovs-vsctl show <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b ovs-vsctl show<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> 3d20f852-5b67-4a1c-b983-e2a8caa27de1     Bridge &quot;dg0&quot;         Port &quot;patch-dg0-iconn2&quot;             Interface &quot;patch-dg0-iconn2&quot;                 type: patch                 options: {peer=&quot;patch-iconn2-dg0&quot;}         Port &quot;dg0&quot;             tag: 103             Interface &quot;dg0&quot;                 type: internal     Bridge &quot;iconn1&quot;         Port &quot;iconn1&quot;             tag: 101             Interface &quot;iconn1&quot;                 type: internal         Port &quot;patch-iconn1-iconn2&quot;             Interface &quot;patch-iconn1-iconn2&quot;                 type: patch                 options: {peer=&quot;patch-iconn2-iconn1&quot;}         Port &quot;patch-iconn1-ovsbr0&quot;             Interface &quot;patch-iconn1-ovsbr0&quot;                 type: patch                 options: {peer=&quot;patch-ovsbr0-iconn1&quot;}     Bridge &quot;iconn2&quot;         Port &quot;iconn2&quot;             tag: 102             Interface &quot;iconn2&quot;                 type: internal         Port &quot;patch-iconn2-iconn1&quot;             Interface &quot;patch-iconn2-iconn1&quot;                 type: patch                 options: {peer=&quot;patch-iconn1-iconn2&quot;}         Port &quot;patch-iconn2-dg0&quot;             Interface &quot;patch-iconn2-dg0&quot;                 type: patch                 options: {peer=&quot;patch-dg0-iconn2&quot;}     Bridge &quot;ovsbr0&quot;         Port &quot;pub0&quot;             tag: 100             Interface &quot;pub0&quot;                 type: internal         Port &quot;ovsbr0&quot;             Interface &quot;ovsbr0&quot;                 type: internal         Port &quot;enp3s0&quot;             Interface &quot;enp3s0&quot;         Port &quot;patch-ovsbr0-iconn1&quot;             Interface &quot;patch-ovsbr0-iconn1&quot;                 type: patch                 options: {peer=&quot;patch-iconn1-ovsbr0&quot;}     ovs_version: &quot;2.3.2&quot; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0439 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445.<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c IP \u0430\u0434\u0440\u0435\u0441\u0430:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# ip addr show <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b ip addr show<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> 1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default      link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1\/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1\/128 scope host         valid_lft forever preferred_lft forever 2: enp3s0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel master ovs-system state UP group default qlen 1000     link\/ether 60:a4:4c:3c:93:06 brd ff:ff:ff:ff:ff:ff     inet6 fe80::62a4:4cff:fe3c:9306\/64 scope link         valid_lft forever preferred_lft forever 3: ovs-system: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN group default      link\/ether 0a:91:1b:82:ce:a9 brd ff:ff:ff:ff:ff:ff 4: iconn1: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UNKNOWN group default      link\/ether d6:22:60:7e:9f:48 brd ff:ff:ff:ff:ff:ff     inet 192.168.101.1\/24 brd 192.168.101.255 scope global iconn1        valid_lft forever preferred_lft forever     inet6 fe80::d422:60ff:fe7e:9f48\/64 scope link         valid_lft forever preferred_lft forever 5: ovsbr0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UNKNOWN group default      link\/ether 60:a4:4c:3c:93:06 brd ff:ff:ff:ff:ff:ff     inet 192.168.118.16\/26 brd 192.168.118.63 scope global dynamic ovsbr0        valid_lft 62646sec preferred_lft 62646sec     inet6 fe80::62a4:4cff:fe3c:9306\/64 scope link         valid_lft forever preferred_lft forever 6: pub0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UNKNOWN group default      link\/ether f2:c2:ba:85:a2:6e brd ff:ff:ff:ff:ff:ff     inet 192.168.100.1\/24 brd 192.168.100.255 scope global pub0        valid_lft forever preferred_lft forever     inet6 fe80::f0c2:baff:fe85:a26e\/64 scope link         valid_lft forever preferred_lft forever 7: iconn2: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UNKNOWN group default      link\/ether f2:e6:e8:93:f0:43 brd ff:ff:ff:ff:ff:ff     inet 192.168.102.1\/24 brd 192.168.102.255 scope global iconn2        valid_lft forever preferred_lft forever     inet6 fe80::f0e6:e8ff:fe93:f043\/64 scope link         valid_lft forever preferred_lft forever 8: dg0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UNKNOWN group default      link\/ether ae:bb:09:25:5c:4e brd ff:ff:ff:ff:ff:ff     inet 192.168.103.1\/24 brd 192.168.103.255 scope global dg0        valid_lft forever preferred_lft forever     inet6 fe80::acbb:9ff:fe25:5c4e\/64 scope link         valid_lft forever preferred_lft forever  [root@sby ~]# ip addr show 1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default      link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1\/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1\/128 scope host         valid_lft forever preferred_lft forever 2: enp3s0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel master ovs-system state UP group default qlen 1000     link\/ether 10:bf:48:e2:58:5e brd ff:ff:ff:ff:ff:ff     inet6 fe80::12bf:48ff:fee2:585e\/64 scope link         valid_lft forever preferred_lft forever 3: ovs-system: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN group default      link\/ether 66:9a:f8:af:48:b4 brd ff:ff:ff:ff:ff:ff 4: iconn1: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UNKNOWN group default      link\/ether da:85:ce:d4:36:4f brd ff:ff:ff:ff:ff:ff     inet 192.168.101.2\/24 brd 192.168.101.255 scope global iconn1        valid_lft forever preferred_lft forever     inet6 fe80::d885:ceff:fed4:364f\/64 scope link         valid_lft forever preferred_lft forever 5: ovsbr0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UNKNOWN group default      link\/ether 10:bf:48:e2:58:5e brd ff:ff:ff:ff:ff:ff     inet 192.168.118.28\/26 brd 192.168.118.63 scope global dynamic ovsbr0        valid_lft 64250sec preferred_lft 64250sec     inet6 fe80::12bf:48ff:fee2:585e\/64 scope link         valid_lft forever preferred_lft forever 6: pub0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UNKNOWN group default      link\/ether d6:2e:c7:82:d5:8c brd ff:ff:ff:ff:ff:ff     inet 192.168.100.2\/24 brd 192.168.100.255 scope global pub0        valid_lft forever preferred_lft forever     inet6 fe80::d42e:c7ff:fe82:d58c\/64 scope link         valid_lft forever preferred_lft forever 7: iconn2: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UNKNOWN group default      link\/ether aa:e2:ca:f4:76:4c brd ff:ff:ff:ff:ff:ff     inet 192.168.102.2\/24 brd 192.168.102.255 scope global iconn2        valid_lft forever preferred_lft forever     inet6 fe80::a8e2:caff:fef4:764c\/64 scope link         valid_lft forever preferred_lft forever 8: dg0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UNKNOWN group default      link\/ether ca:cc:91:bd:20:47 brd ff:ff:ff:ff:ff:ff     inet 192.168.103.2\/24 brd 192.168.103.255 scope global dg0        valid_lft forever preferred_lft forever     inet6 fe80::c8cc:91ff:febd:2047\/64 scope link         valid_lft forever preferred_lft forever 9: vnet0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel master ovs-system state UNKNOWN group default qlen 500     link\/ether fe:16:3e:00:02:01 brd ff:ff:ff:ff:ff:ff     inet6 fe80::fc16:3eff:fe00:201\/64 scope link         valid_lft forever preferred_lft forever 10: vnet1: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel master ovs-system state UNKNOWN group default qlen 500     link\/ether fe:16:3e:00:02:11 brd ff:ff:ff:ff:ff:ff     inet6 fe80::fc16:3eff:fe00:211\/64 scope link         valid_lft forever preferred_lft forever 11: vnet2: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel master ovs-system state UNKNOWN group default qlen 500     link\/ether fe:16:3e:00:02:21 brd ff:ff:ff:ff:ff:ff     inet6 fe80::fc16:3eff:fe00:221\/64 scope link         valid_lft forever preferred_lft forever 12: vnet3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel master ovs-system state UNKNOWN group default qlen 500     link\/ether fe:16:3e:00:02:31 brd ff:ff:ff:ff:ff:ff     inet6 fe80::fc16:3eff:fe00:231\/64 scope link         valid_lft forever preferred_lft forever <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0442\u043e ping \u0435\u0441\u0442\u044c \u043d\u0430 \u0432\u0441\u0435 \u0430\u0434\u0440\u0435\u0441\u0430.<\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d<\/h4>\n<p>  \u0413\u043e\u0442\u043e\u0432\u0438\u043c libvirt:  <\/p>\n<pre><code class=\"bash\"> # systemctl start libvirtd # systemctl enable libvirtd <\/code><\/pre>\n<p>  \u0423\u0434\u0430\u043b\u044f\u0435\u043c default \u0441\u0435\u0442\u044c libvirt:  <\/p>\n<pre><code class=\"bash\"> # virsh net-destroy default # virsh net-undefine default <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0432\u043e\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0439:  <\/p>\n<pre><code class=\"bash\"> #vi ovsbr0.xml <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;network&gt;   &lt;name&gt;public&lt;\/name&gt;   &lt;forward mode='bridge'\/&gt;   &lt;bridge name='ovsbr0'\/&gt;   &lt;virtualport type='openvswitch'\/&gt;   &lt;portgroup name='public' default='yes'&gt;     &lt;vlan&gt;       &lt;tag id='100'\/&gt;     &lt;\/vlan&gt;   &lt;\/portgroup&gt; &lt;\/network&gt; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> # virsh net-define ovsbr0.xml # virsh net-start public # virsh net-autostart public <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> #vi interconnect1.xml <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;network&gt;   &lt;name&gt;interconnect1&lt;\/name&gt;   &lt;forward mode='bridge'\/&gt;   &lt;bridge name='iconn1'\/&gt;   &lt;virtualport type='openvswitch'\/&gt;   &lt;portgroup name='interconnect1' default='yes'&gt;     &lt;vlan&gt;       &lt;tag id='101'\/&gt;     &lt;\/vlan&gt;   &lt;\/portgroup&gt; &lt;\/network&gt; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> # virsh net-define interconnect1.xml # virsh net-start  interconnect1 # virsh net-autostart  interconnect1 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> #vi interconnect2.xml <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;network&gt;   &lt;name&gt;interconnect2&lt;\/name&gt;   &lt;forward mode='bridge'\/&gt;   &lt;bridge name='iconn2'\/&gt;   &lt;virtualport type='openvswitch'\/&gt;   &lt;portgroup name='interconnect2' default='yes'&gt;     &lt;vlan&gt;       &lt;tag id='102'\/&gt;     &lt;\/vlan&gt;   &lt;\/portgroup&gt; &lt;\/network&gt; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> # virsh net-define interconnect2.xml # virsh net-start  interconnect2 # virsh net-autostart  interconnect2 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> #vi dataguard.xml <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;network&gt;   &lt;name&gt;dataguard&lt;\/name&gt;   &lt;forward mode='bridge'\/&gt;   &lt;bridge name='dg0'\/&gt;   &lt;virtualport type='openvswitch'\/&gt;   &lt;portgroup name='dataguard' default='yes'&gt;     &lt;vlan&gt;       &lt;tag id='103'\/&gt;     &lt;\/vlan&gt;   &lt;\/portgroup&gt; &lt;\/network&gt; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> # virsh net-define dataguard.xml # virsh net-start   dataguard # virsh net-autostart   dataguard <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:  <\/p>\n<pre><code class=\"bash\"> # virsh net-list  Name                 State      Autostart     Persistent ----------------------------------------------------------  dataguard            active     yes           yes  interconnect1        active     yes           yes  interconnect2        active     yes           yes  public               active     yes           yes <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0438\u0441\u043a\u0438 \u0434\u043b\u044f prmy1:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# mkdir \/var\/lib\/libvirt\/images\/prmy1 [root@prmy ~]# qemu-img create -f qcow2 \/var\/lib\/libvirt\/images\/prmy1\/system.qcow2 20G [root@prmy ~]# qemu-img create -f qcow2 \/var\/lib\/libvirt\/images\/prmy1\/u01.qcow2 16G <\/code><\/pre>\n<p>  \u0417\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c qemu+kvm \u0441 \u043e\u0431\u0449\u0438\u043c\u0438 \u0434\u0438\u0441\u043a\u0430\u043c\u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 qcow2 \u043c\u043d\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0431\u0449\u0438\u0435 \u0434\u0438\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 raw.  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# qemu-img create -f raw \/var\/lib\/libvirt\/images\/df.img 33G [root@prmy ~]# qemu-img create -f raw \/var\/lib\/libvirt\/images\/dg.img 11G <\/code><\/pre>\n<p>  \u0411\u0435\u0440\u0435\u043c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Oracle Linux 6.6 64bit \u0438 \u043a\u043b\u0430\u0434\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u043c\u0435\u0441\u0442\u043e:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# cp V52218-01.iso \/var\/lib\/libvirt\/images <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c NFS \u0441\u0435\u0440\u0432\u0435\u0440:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# mkdir \/stage [root@prmy ~]# echo '\/stage\t\t192.168.100.0\/24(ro)' &gt; \/etc\/exports.d\/stage.exports [root@prmy ~]# systemctl start nfs-server [root@prmy ~]# systemctl enable nfs-server <\/code><\/pre>\n<p>  \u0412 \/stage \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u044b Grid Infrastructure, Oracle Database 12.1.0.2 \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0438\u0445.  <\/p>\n<pre><code class=\"bash\"> [root@prmy stage]# cd \/stage [root@prmy ~]# unzip -q linuxamd64_12102_database_1of2.zip [root@prmy ~]# unzip -q linuxamd64_12102_database_2of2.zip [root@prmy ~]# unzip -q linuxamd64_12102_grid_1of2.zip [root@prmy ~]# unzip -q linuxamd64_12102_grid_2of2.zip <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b prmy1:  <\/p>\n<pre><code class=\"bash\"> [root@prmy stage]# mkdir prmy1 [root@prmy stage]# cd prmy1 [root@prmy prmy1]#  vi prmy1.xml <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 prmy1.xml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;domain type='kvm'&gt;   &lt;name&gt;prmy1&lt;\/name&gt;   &lt;memory unit='MiB'&gt;4300&lt;\/memory&gt;   &lt;currentMemory unit='MiB'&gt;4300&lt;\/currentMemory&gt;   &lt;memoryBacking&gt;     &lt;hugepages\/&gt;   &lt;\/memoryBacking&gt;   &lt;vcpu placement='static'&gt;1&lt;\/vcpu&gt;   &lt;os&gt;     &lt;type arch='x86_64' machine='pc-i440fx-2.3'&gt;hvm&lt;\/type&gt;   &lt;\/os&gt;   &lt;features&gt;     &lt;acpi\/&gt;     &lt;apic\/&gt;     &lt;pae\/&gt;   &lt;\/features&gt;   &lt;cpu mode='host-model'&gt;     &lt;model fallback='allow'\/&gt;   &lt;\/cpu&gt;   &lt;clock offset='utc'&gt;     &lt;timer name='rtc' tickpolicy='catchup'\/&gt;     &lt;timer name='pit' tickpolicy='delay'\/&gt;     &lt;timer name='hpet' present='no'\/&gt;   &lt;\/clock&gt;   &lt;on_poweroff&gt;destroy&lt;\/on_poweroff&gt;   &lt;on_reboot&gt;restart&lt;\/on_reboot&gt;   &lt;on_crash&gt;restart&lt;\/on_crash&gt;   &lt;pm&gt;     &lt;suspend-to-mem enabled='no'\/&gt;     &lt;suspend-to-disk enabled='no'\/&gt;   &lt;\/pm&gt;   &lt;devices&gt;     &lt;emulator&gt;\/usr\/bin\/qemu-kvm&lt;\/emulator&gt;     &lt;disk type='file' device='disk'&gt;       &lt;driver name='qemu' type='qcow2'\/&gt;       &lt;source file='\/var\/lib\/libvirt\/images\/prmy1\/system.qcow2'\/&gt;       &lt;target dev='vda' bus='virtio'\/&gt;       &lt;boot order='1'\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'\/&gt;     &lt;\/disk&gt;     &lt;disk type='file' device='disk'&gt;       &lt;driver name='qemu' type='qcow2'\/&gt;       &lt;source file='\/var\/lib\/libvirt\/images\/prmy1\/u01.qcow2'\/&gt;       &lt;target dev='vdb' bus='virtio'\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'\/&gt;     &lt;\/disk&gt;     &lt;disk type='file' device='disk'&gt;       &lt;driver name='qemu' type='raw'\/&gt;       &lt;source file='\/var\/lib\/libvirt\/images\/df.img'\/&gt;       &lt;target dev='vdc' bus='virtio'\/&gt;       &lt;shareable\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'\/&gt;     &lt;\/disk&gt;     &lt;disk type='file' device='disk'&gt;       &lt;driver name='qemu' type='raw'\/&gt;       &lt;source file='\/var\/lib\/libvirt\/images\/dg.img'\/&gt;       &lt;target dev='vdd' bus='virtio'\/&gt;       &lt;shareable\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'\/&gt;     &lt;\/disk&gt;     &lt;disk type='file' device='cdrom'&gt;       &lt;driver name='qemu' type='raw'\/&gt;       &lt;source file='\/var\/lib\/libvirt\/images\/V52218-01.iso'\/&gt;       &lt;target dev='hda' bus='ide'\/&gt;       &lt;readonly\/&gt;       &lt;boot order='2'\/&gt;       &lt;address type='drive' controller='0' bus='0' target='0' unit='0'\/&gt;     &lt;\/disk&gt;     &lt;controller type='usb' index='0' model='ich9-ehci1'&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'\/&gt;     &lt;\/controller&gt;     &lt;controller type='usb' index='0' model='ich9-uhci1'&gt;       &lt;master startport='0'\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'\/&gt;     &lt;\/controller&gt;     &lt;controller type='usb' index='0' model='ich9-uhci2'&gt;       &lt;master startport='2'\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'\/&gt;     &lt;\/controller&gt;     &lt;controller type='usb' index='0' model='ich9-uhci3'&gt;       &lt;master startport='4'\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'\/&gt;     &lt;\/controller&gt;     &lt;controller type='pci' index='0' model='pci-root'\/&gt;     &lt;controller type='virtio-serial' index='0'&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'\/&gt;     &lt;\/controller&gt;     &lt;controller type='ide' index='0'&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'\/&gt;     &lt;\/controller&gt;     &lt;interface type='network'&gt;       &lt;mac address='00:16:3e:00:01:01'\/&gt;       &lt;source network='public' portgroup='public'\/&gt;       &lt;model type='virtio'\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'\/&gt;     &lt;\/interface&gt;     &lt;interface type='network'&gt;       &lt;mac address='00:16:3e:00:01:11'\/&gt;       &lt;source network='interconnect1' portgroup='interconnect1'\/&gt;       &lt;model type='virtio'\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'\/&gt;     &lt;\/interface&gt;     &lt;interface type='network'&gt;       &lt;mac address='00:16:3e:00:01:21'\/&gt;       &lt;source network='interconnect2' portgroup='interconnect2'\/&gt;       &lt;model type='virtio'\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'\/&gt;     &lt;\/interface&gt;     &lt;interface type='network'&gt;       &lt;mac address='00:16:3e:00:01:31'\/&gt;       &lt;source network='dataguard' portgroup='dataguard'\/&gt;       &lt;model type='virtio'\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x0d' function='0x0'\/&gt;     &lt;\/interface&gt;     &lt;serial type='pty'&gt;       &lt;target port='0'\/&gt;     &lt;\/serial&gt;     &lt;console type='pty'&gt;       &lt;target type='serial' port='0'\/&gt;     &lt;\/console&gt;     &lt;channel type='unix'&gt;       &lt;source mode='bind' path='\/var\/lib\/libvirt\/qemu\/channel\/target\/prmy1.org.qemu.guest_agent.0'\/&gt;       &lt;target type='virtio' name='org.qemu.guest_agent.0'\/&gt;       &lt;address type='virtio-serial' controller='0' bus='0' port='1'\/&gt;     &lt;\/channel&gt;     &lt;channel type='spicevmc'&gt;       &lt;target type='virtio' name='com.redhat.spice.0'\/&gt;       &lt;address type='virtio-serial' controller='0' bus='0' port='2'\/&gt;     &lt;\/channel&gt;     &lt;input type='tablet' bus='usb'\/&gt;     &lt;input type='mouse' bus='ps2'\/&gt;     &lt;input type='keyboard' bus='ps2'\/&gt;     &lt;graphics type='spice' autoport='yes'\/&gt;     &lt;video&gt;       &lt;model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'\/&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'\/&gt;     &lt;\/video&gt;     &lt;memballoon model='virtio'&gt;       &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'\/&gt;     &lt;\/memballoon&gt;   &lt;\/devices&gt; &lt;\/domain&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy1]# virsh define prmy1.xml <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Virtual Machine Manager \u0438 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u0443\u0435\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043b\u044e\u0431\u044b\u043c \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0434\u043b\u044f \u0432\u0430\u0441 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c. \u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0438 IP \u0430\u0434\u0440\u0435\u0441\u0430 \u0441 \u043d\u0430\u0448\u0435\u0433\u043e DHCP. 200MB \u043e\u0442\u0434\u0430\u0435\u043c \u0434\u043b\u044f \/boot, 8GB \u0434\u043b\u044f swap \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043b\u044f \/. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043b\u044f \/ \u0438 \/boot \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 ext3.<\/p>\n<p>  \u0412 \u0441\u043e\u0441\u0442\u0430\u0432 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u0433\u0440\u0443\u043f\u043f\u044b \u043f\u0430\u043a\u0435\u0442\u043e\u0432:  <\/p>\n<pre><code class=\"bash\"> @core @base @x11 @basic-desktop @general-desktop @guest-agents <\/code><\/pre>\n<p>  \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0430\u043a\u0435\u0442\u044b:  <\/p>\n<pre><code class=\"bash\"> oracleasm-support oracle-rdbms-server-12cR1-preinstall nscd ntp <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Oracle Linux 6<\/h4>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0435 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0435\u0435:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# ssh -X root@prmy1.example.com <\/code><\/pre>\n<p>  \u0418\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 GNOME:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# vi \/etc\/inittab id:3:initdefault: <\/code><\/pre>\n<p>  \u0418\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c root:   <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# sed -i -e 's\/alias\/#&\/gi' \/root\/.bashrc <\/code><\/pre>\n<p>  \u0418\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0442\u0438\u043f\u0430 cups \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 chkconfig:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# chkconfig cups off \u2026 <\/code><\/pre>\n<p>  \u0421\u0435\u0440\u0432\u0438\u0441\u044b ntpd \u0438 nscd \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# chkconfig  ntpd on [root@prmy1 ~]# chkconfig  nscd on <\/code><\/pre>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b chkconfig &#8212;list | grep :on<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> [root@prmy1 ~]# chkconfig --list | grep :on acpid          \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off atd            \t0:off\t1:off\t2:off\t3:on\t4:on\t5:on\t6:off auditd         \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off blk-availability\t0:off\t1:on\t2:on\t3:on\t4:on\t5:on\t6:off cpuspeed       \t0:off\t1:on\t2:on\t3:on\t4:on\t5:on\t6:off crond          \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off haldaemon      \t0:off\t1:off\t2:off\t3:on\t4:on\t5:on\t6:off irqbalance     \t0:off\t1:off\t2:off\t3:on\t4:on\t5:on\t6:off mcelogd        \t0:off\t1:off\t2:off\t3:on\t4:off\t5:on\t6:off messagebus     \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off netfs          \t0:off\t1:off\t2:off\t3:on\t4:on\t5:on\t6:off network        \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off nfslock        \t0:off\t1:off\t2:off\t3:on\t4:on\t5:on\t6:off nscd           \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off ntpd           \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off oracle-rdbms-server-12cR1-preinstall-firstboot\t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off oracleasm      \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off portreserve    \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off qemu-ga        \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off rpcbind        \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off rpcgssd        \t0:off\t1:off\t2:off\t3:on\t4:on\t5:on\t6:off rsyslog        \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off spice-vdagentd \t0:off\t1:off\t2:off\t3:off\t4:off\t5:on\t6:off sshd           \t0:off\t1:off\t2:on\t3:on\t4:on\t5:on\t6:off sysstat        \t0:off\t1:on\t2:on\t3:on\t4:on\t5:on\t6:off udev-post      \t0:off\t1:on\t2:on\t3:on\t4:on\t5:on\t6:off <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c ntpd:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# vi \/etc\/sysconfig\/ntpd # Drop root to id 'ntp:ntp' by default. OPTIONS=&quot;-x -u ntp:ntp -p \/var\/run\/ntpd.pid -g&quot;  # Set to 'yes' to sync hw clock after successful ntpdate SYNC_HWCLOCK=no  # Additional options for ntpdate NTPDATE_OPTIONS=&quot;&quot; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# vi \/etc\/ntp.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430\/etc\/ntp.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> # For more information about this file, see the man pages # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).  driftfile \/var\/lib\/ntp\/drift  # Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery  # Permit all access over the loopback interface.  This could # be tightened as well, but to do so would effect some of # the administrative functions. restrict 127.0.0.1 restrict -6 ::1  # Hosts on local network are less restricted. #restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap  # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http:\/\/www.pool.ntp.org\/join.html). server  192.168.100.1 server  127.127.1.0     # local clock fudge   127.127.1.0 stratum 10 broadcastdelay  0.008  # Key file containing the keys and key identifiers used when operating # with symmetric key cryptography. keys \/etc\/ntp\/keys <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u043b\u0438\u043c\u0438\u0442\u044b:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# vi \/etc\/security\/limits.conf <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0444\u0430\u0439\u043b \/etc\/security\/limits.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> oracle  soft    nofile  131072 oracle  hard    nofile  131072 oracle  soft    nproc   131072 oracle  hard    nproc   131072 oracle  soft    core    unlimited oracle  hard    core    unlimited oracle  soft    memlock 3828161 oracle  hard    memlock 3828161 grid    soft    nofile  131072 grid    hard    nofile  131072 grid    soft    nproc   131072 grid    hard    nproc   131072 grid    soft    core    unlimited grid    hard    core    unlimited grid    soft    memlock 3828161 grid    hard    memlock 3828161 # Recommended stack hard limit 32MB for oracle installations # oracle   hard   stack    32768 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# cd \/etc\/profile.d [root@prmy1 profile.d]# vi oracle.sh if [ $USER = &quot;oracle&quot; ] || [ $USER = &quot;grid&quot; ]; then     if [ \/bin\/bash = &quot;\/bin\/ksh&quot; ]; then         ulimit -p 16384         ulimit -n 65536     else         ulimit -u 16384 -n 65536     fi     umask 022 fi <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 profile.d]# ln -s oracle.sh oracle.csh <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# sed -i -r -e 's\/(tmpfs.*)(defaults)\/\\1size=3800M,rw,exec\/gi' \/etc\/fstab <\/code><\/pre>\n<p>  eth0,eth3 \u2014 public eth1, eth2 \u2014 interconnect  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# echo &quot;net.ipv4.conf.eth0.rp_filter = 1&quot; &gt;&gt; \/etc\/sysctl.conf [root@prmy1 ~]# echo &quot;net.ipv4.conf.eth3.rp_filter = 1&quot; &gt;&gt; \/etc\/sysctl.conf [root@prmy1 ~]# echo &quot;net.ipv4.conf.eth1.rp_filter = 2&quot; &gt;&gt; \/etc\/sysctl.conf [root@prmy1 ~]# echo &quot;net.ipv4.conf.eth2.rp_filter = 2&quot; &gt;&gt; \/etc\/sysctl.conf <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0433\u0440\u0443\u043f\u043f\u044b \u0434\u043b\u044f Oracle:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# groupadd oper [root@prmy1 ~]# groupadd asmdba [root@prmy1 ~]# groupadd asmoper [root@prmy1 ~]# groupadd asmadmin <\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f oracle \u0432 \u0433\u0440\u0443\u043f\u043f\u044b dba, oper \u0438 asmdba  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# usermod -G dba,oper,asmdba oracle [root@prmy1 ~]# passwd oracle <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f grid:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# useradd -m -g oinstall -G asmdba,asmoper,asmadmin grid [root@prmy1 ~]# passwd grid <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0438\u043c\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 Oracle \u0432 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0435 bash:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# echo 'export PS1=&quot;[\\u@\\h-\\`echo \\$ORACLE_SID\\` \\W]$ &quot;' &gt;&gt; \/home\/oracle\/.bashrc [root@prmy1 ~]# echo 'export PS1=&quot;[\\u@\\h-\\`echo \\$ORACLE_SID\\` \\W]$ &quot;' &gt;&gt; \/home\/grid\/.bashrc [root@prmy1 ~]# echo 'export PS1=&quot;[\\u@\\h-\\`echo \\$ORACLE_SID\\` \\W]# &quot;' &gt;&gt; \/root\/.bashrc <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b \u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u043e\u043c \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u043e\u0444\u0442\u0430 Oracle.<br \/>  \u0414\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\"> [root@sby1- ~]# fdisk -u -c -l \/dev\/vdb Disk \/dev\/vdb: 17.2 GB, 17179869184 bytes 3 heads, 2 sectors\/track, 5592405 cylinders, total 33554432 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): 512 bytes \/ 512 bytes I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes Disk identifier: 0xf12e0427     Device Boot      Start         End      Blocks   Id  System \/dev\/vdb1            2048    33554431    16776192   83  Linux <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# mkfs.ext3 -L u01 \/dev\/vdb1 <\/code><\/pre>\n<p>  \u041c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u044f \u0445\u043e\u0447\u0443 \u043d\u0435 \u043f\u043e uuid, \u0430 \u043f\u043e LABEL:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# tune2fs -L boot \/dev\/vda1 [root@prmy1 ~]# tune2fs -L root \/dev\/vda3 [root@prmy1 ~]# swapoff [root@prmy1 ~]# mkswap -L swap \/dev\/vda2 [root@prmy1 ~]# vi \/etc\/fstab LABEL=root\t\t\/                       ext3    defaults        1 1 LABEL=boot\t\t\/boot                   ext3    defaults        1 2 LABEL=swap\t\tswap                    swap    defaults        0 0 tmpfs                   \/dev\/shm                tmpfs   defaults        0 0 devpts                  \/dev\/pts                devpts  gid=5,mode=620  0 0 sysfs                   \/sys                    sysfs   defaults        0 0 proc                    \/proc                   proc    defaults        0 0 LABEL=u01\t\t\/u01\t\t\text3\tdefaults\t0 0 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# mount -a [root@prmy1 ~]# mkdir -p \/u01\/app\/12.1.0\/grid [root@prmy1 ~]# mkdir -p \/u01\/app\/grid [root@prmy1 ~]# mkdir -p \/u01\/app\/oracle [root@prmy1 ~]# chown -R grid:oinstall \/u01 [root@prmy1 ~]# chown oracle:oinstall \/u01\/app\/oracle [root@prmy1 ~]# chmod -R 775 \/u01\/ <\/code><\/pre>\n<p>  \u041d\u0430\u0440\u0435\u0437\u0430\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u0434\u043b\u044f ASM \u0434\u0438\u0441\u043a\u043e\u0432, \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 \u0438\u0442\u043e\u0433\u0435 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\"> [root@sby1- ~]# fdisk -l -u -c \/dev\/vdc Disk \/dev\/vdc: 35.4 GB, 35433480192 bytes 16 heads, 63 sectors\/track, 68656 cylinders, total 69206016 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): 512 bytes \/ 512 bytes I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes Disk identifier: 0x8cee7a8e     Device Boot      Start         End      Blocks   Id  System \/dev\/vdc1            2048     5656927     2827440   83  Linux \/dev\/vdc2         5656928    11311807     2827440   83  Linux \/dev\/vdc3        11311808    16966687     2827440   83  Linux \/dev\/vdc4        16966688    69206015    26119664    5  Extended \/dev\/vdc5        16968736    22623615     2827440   83  Linux \/dev\/vdc6        22625664    28280543     2827440   83  Linux \/dev\/vdc7        28282592    33937471     2827440   83  Linux \/dev\/vdc8        33939520    39594399     2827440   83  Linux \/dev\/vdc9        39596448    45251327     2827440   83  Linux \/dev\/vdc10       45253376    50908255     2827440   83  Linux \/dev\/vdc11       50910304    56565183     2827440   83  Linux \/dev\/vdc12       56567232    62222111     2827440   83  Linux \/dev\/vdc13       62224160    67879039     2827440   83  Linux <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> [root@sby1- ~]# fdisk -u -c -l \/dev\/vdd Disk \/dev\/vdd: 11.8 GB, 11811160064 bytes 1 heads, 32 sectors\/track, 720896 cylinders, total 23068672 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): 512 bytes \/ 512 bytes I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes Disk identifier: 0x3416c855     Device Boot      Start         End      Blocks   Id  System \/dev\/vdd1            2048     5656927     2827440   83  Linux \/dev\/vdd2         5656928    11311807     2827440   83  Linux \/dev\/vdd3        11311808    16966687     2827440   83  Linux \/dev\/vdd4        16966688    22621567     2827440   83  Linux <\/code><\/pre>\n<p>  \u0421 \u0441\u0430\u0439\u0442\u0430 Oracle \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442 oracleasmlib-2.0.4-1.el6.x86_64 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u043d\u0430 prmy \u0432 \/stage \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# mount prmy:\/stage \/stage [root@prmy1 ~]# rpm -Uvh oracleasmlib-2.0.4-1.el6.x86_64 [root@prmy1 ~]# rpm -Uvh \/stage\/grid\/rpm\/cvuqdisk-1.0.9-1.rpm [root@prmy1 ~]# umount \/stage <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c oracleasm:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# \/usr\/sbin\/oracleasm configure -e -u grid -g asmadmin -s y <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c ASM \u0434\u0438\u0441\u043a\u0438:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# oracleasm createdisk ASMDISK1P1 \/dev\/vdc1 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P2 \/dev\/vdc2 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P3 \/dev\/vdc3 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P4 \/dev\/vdc5 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P5 \/dev\/vdc6 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P6 \/dev\/vdc7 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P7 \/dev\/vdc8 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P8 \/dev\/vdc9 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P9 \/dev\/vdc10 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P10 \/dev\/vdc11 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P11 \/dev\/vdc12 [root@prmy1 ~]# oracleasm createdisk ASMDISK1P12 \/dev\/vdc13 [root@prmy1 ~]# oracleasm createdisk ASMDISK2P1 \/dev\/vdd1 [root@prmy1 ~]# oracleasm createdisk ASMDISK2P2 \/dev\/vdd2 [root@prmy1 ~]# oracleasm createdisk ASMDISK2P3 \/dev\/vdd3 [root@prmy1 ~]# oracleasm createdisk ASMDISK2P4 \/dev\/vdd4 <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u044b\u043c, \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0435\u0435 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0435\u0435 \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e. \u041d\u043e \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u0434\u043b\u044f \u043e\u0431\u043b\u0435\u0433\u0447\u0435\u043d\u0438\u044f \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441 \u043d\u0435\u0435 \u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0435.  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# ssh prmy mkdir \/stage\/prmy1 [root@prmy1 ~]# scp \/etc\/sysconfig\/network prmy:\/stage\/prmy1 [root@prmy1 ~]# scp \/etc\/sysconfig\/network\/scripts\/ifcfg-eth* prmy:\/stage\/prmy1 [root@prmy1 ~]# scp \/etc\/udev\/rules.d\/70-persistent-net.rules prmy:\/stage\/prmy1  [root@prmy1 ~]# poweroff <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d<\/h4>\n<p>  \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043e\u0431\u0449\u0438\u0435 \u0434\u0438\u0441\u043a\u0438 \u043d\u0430 sby:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# scp \/var\/lib\/libvirt\/images\/*.img sby:\/var\/lib\/libvirt\/images <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# mkdir \/var\/lib\/libvirt\/images\/prmy2 [root@prmy ~]# mkdir \/var\/lib\/libvirt\/images\/prmy3 [root@prmy ~]# ssh sby mkdir \/var\/lib\/libvirt\/images\/sby1 [root@prmy ~]# ssh sby mkdir \/var\/lib\/libvirt\/images\/sby2 [root@prmy ~]# ssh sby mkdir \/var\/lib\/libvirt\/images\/sby3 <\/code><\/pre>\n<p>  \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448\u0438 \u00ab\u044d\u0442\u0430\u043b\u043e\u043d\u043d\u044b\u0435\u00bb \u043e\u0431\u0440\u0430\u0437\u044b system.qcow \u0438 u01.qcow2 \u043d\u0430 sby.  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# scp \/var\/lib\/libvirt\/images\/prmy1\/system.qcow sby:\/var\/lib\/libvirt\/images [root@prmy ~]# scp \/var\/lib\/libvirt\/images\/prmy1\/ u01.qcow2 sby:\/var\/lib\/libvirt\/images\/sby1 [root@prmy ~]# scp \/var\/lib\/libvirt\/images\/prmy1\/ u01.qcow2 sby:\/var\/lib\/libvirt\/images\/sby2 [root@prmy ~]# scp \/var\/lib\/libvirt\/images\/prmy1\/ u01.qcow2 sby:\/var\/lib\/libvirt\/images\/sby3 <\/code><\/pre>\n<p>  \u041a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0438\u0441\u043a system.qcow2 \u043d\u0430 prmy:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# mv \/var\/lib\/libvirt\/images\/prmy1\/system.qcow2 \/var\/lib\/libvirt\/images [root@prmy ~]# qemu-img create -f qcow2 -o backing_file=\/var\/lib\/libvirt\/images\/system.qcow2 \/var\/lib\/libvirt\/images\/prmy1\/system.qcow2 [root@prmy ~]# qemu-img create -f qcow2 -o backing_file=\/var\/lib\/libvirt\/images\/system.qcow2 \/var\/lib\/libvirt\/images\/prmy2\/system.qcow2 [root@prmy ~]# qemu-img create -f qcow2 -o backing_file=\/var\/lib\/libvirt\/images\/system.qcow2 \/var\/lib\/libvirt\/images\/prmy3\/system.qcow2 <\/code><\/pre>\n<p>  \u0414\u0438\u0441\u043a u01.qcow2 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# cp \/var\/lib\/libvirt\/images\/prmy1\/u01.qcow2 \/var\/lib\/libvirt\/images\/prmy2\/u01.qcow2 [root@prmy ~]# cp \/var\/lib\/libvirt\/images\/prmy1\/u01.qcow2 \/var\/lib\/libvirt\/images\/prmy3\/u01.qcow2 <\/code><\/pre>\n<p>  \u0413\u043e\u0442\u043e\u0432\u0438\u043c \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u0437\u0430\u043c\u0435\u043d\u0443 \u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0430\u0445:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# mkdir \/stage\/{prmy2, prmy3} [root@prmy ~]# cd \/stage\/prmy1 [root@prmy prmy1]# cp ifcfg-eth* network 70-persistent-net.rules ..\/prmy2 [root@prmy prmy1]# cp ifcfg-eth* network 70-persistent-net.rules ..\/prmy3 [root@prmy prmy1]# scp ifcfg-eth* network 70-persistent-net.rules sby:\/stage\/sby1 [root@prmy prmy1]# scp ifcfg-eth* network 70-persistent-net.rules sby:\/stage\/sby2 [root@prmy prmy1]# scp ifcfg-eth* network 70-persistent-net.rules sby:\/stage\/sby3 <\/code><\/pre>\n<p>  \u0422\u0443\u0434\u0430 \u0436\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b prmy1:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy1]# cp prmy1.xml \/stage\/prmy2\/prmy2.xml [root@prmy prmy1]# cp prmy1.xml \/stage\/prmy3\/prmy3.xml [root@prmy prmy1]# scp prmy1.xml sby:\/stage\/sby1\/sby1.xml [root@prmy prmy1]# scp prmy1.xml sby:\/stage\/sby2\/sby3.xml [root@prmy prmy1]# scp prmy1.xml sby:\/stage\/sby3\/sby3.xml [root@prmy prmy1]# cd ..\/prmy2 <\/code><\/pre>\n<p>  \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u044b:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy2]# sed -i -r -e &quot;s\/prmy1\/prmy2\/gi&quot; network [root@prmy prmy2]# sed -i -r -e 's\/(00:16:3E:00:0)(.)(:.)(1)\/\\11\\32\/gi' ifcfg-eth* 70-persistent-net.rules <\/code><\/pre>\n<p>  \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0438\u0445 \u0432 \u043e\u0431\u0440\u0430\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b prmy2:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy2]# guestfish &lt;&lt; EOF add \/var\/lib\/libvirt\/images\/prmy2\/system.qcow2 run mount \/dev\/sda3 \/ copy-in network \/etc\/sysconfig copy-in ifcfg-eth0 \/etc\/sysconfig\/network-scripts copy-in ifcfg-eth1 \/etc\/sysconfig\/network-scripts copy-in ifcfg-eth2 \/etc\/sysconfig\/network-scripts copy-in ifcfg-eth3 \/etc\/sysconfig\/network-scripts copy-in 70-persistent-net.rules \/etc\/udev\/rules.d umount \/ exit EOF <\/code><\/pre>\n<p>  \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b prmy2.<br \/>  \u043c\u0435\u043d\u044f\u0435\u043c \u0438\u043c\u0435\u043d\u0430:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy2]# sed -i -r -e &quot;s\/prmy1\/prmy2\/gi&quot; prmy2.xml <\/code><\/pre>\n<p>  \u043c\u0435\u043d\u044f\u0435\u043c mac \u0430\u0434\u0440\u0435\u0441\u0430:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy2]# sed -i -r -e 's\/(00:16:3E:00:0)(.)(:.)(1)\/\\11\\32\/gi' prmy2.xml <\/code><\/pre>\n<p>  \u0443\u0434\u0430\u043b\u044f\u0435\u043c CDROM:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy2]# sed -i &quot;\/&lt;disk.*cdrom\/,\/&lt;\\\/disk&gt;\/ {; d; }&quot; prmy2.xml <\/code><\/pre>\n<p>  \u0443\u0434\u0430\u043b\u044f\u0435\u043c IDE \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy2]# sed -i &quot;\/&lt;controller.*ide\/,\/&lt;\\\/controller&gt;\/ {; d; }&quot; prmy2.xml <\/code><\/pre>\n<p>  \u0418 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 prmy2:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy2]# virsh define prmy2.xml <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0432 \u0442\u043e\u043c \u0436\u0435 \u0434\u0443\u0445\u0435 \u0441 prmy3.<br \/>  \u0418\u043c\u0435\u043d\u0430 \u043c\u0435\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy3]# sed -i -r -e &quot;s\/prmy1\/prmy3\/gi&quot; network prmy3.xml <\/code><\/pre>\n<p>  Mac \u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e:  <\/p>\n<pre><code class=\"bash\"> [root@prmy prmy3]# sed -i -r -e 's\/(00:16:3E:00:0)(.)(:.)(1)\/\\11\\33\/gi' ifcfg-eth* 70-persistent-net.rules prmy3.xml <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# virsh start prmy1 [root@prmy ~]# virsh start prmy2 [root@prmy ~]# virsh start prmy3 <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u043d\u0438\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0442\u043e \u0438\u043c\u044f \u0443 \u043d\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435, \u0441\u043e\u0441\u0435\u0434\u043e\u043a \u043f\u043e \u0441\u0435\u0442\u0438, DNS \u0438 NTP \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043e\u043d\u0438 \u0432\u0438\u0434\u0438\u0442, \u0434\u0438\u0441\u043a\u0438 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435:  <\/p>\n<pre><code class=\"bash\"> # hostname # ping # df -h # oracleasm listdisks <\/code><\/pre>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0443\u044e \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438 \u043d\u0430 sby.example.com.<br \/>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u043c\u0435\u043d\u0430 \u0438 Mac \u0430\u0434\u0440\u0435\u0441\u0430 \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 \u0434\u043b\u044f sby1 \u043c\u0435\u043d\u044f\u0435\u043c \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\"> [root@sby sby1]# sed -i -r -e &quot;s\/prmy1\/sby1\/gi&quot; network sby1.xml [root@sby sby1]# sed -i -r -e 's\/(00:16:3E:00:0)(.)(:.)(1)\/\\12\\31\/gi' ifcfg-eth* 70-persistent-net.rules sby1.xml <\/code><\/pre>\n<p>  sby2:  <\/p>\n<pre><code class=\"bash\"> [root@sby sby2]# sed -i -r -e &quot;s\/prmy1\/sby2\/gi&quot; network sby2.xml [root@sby sby2]# sed -i -r -e 's\/(00:16:3E:00:0)(.)(:.)(1)\/\\12\\32\/gi' ifcfg-eth* 70-persistent-net.rules sby2.xml <\/code><\/pre>\n<p>  sby3:  <\/p>\n<pre><code class=\"bash\"> [root@sby sby2]# sed -i -r -e &quot;s\/prmy1\/sby3\/gi&quot; network sby3.xml [root@sby sby2]# sed -i -r -e 's\/(00:16:3E:00:0)(.)(:.)(1)\/\\12\\33\/gi' ifcfg-eth* 70-persistent-net.rules sby3.xml <\/code><\/pre>\n<p>  \u0418\u0445 \u0442\u043e\u0436\u0435 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u043c:  <\/p>\n<pre><code class=\"bash\"> [root@sby ~]# virsh start sby1 [root@sby ~]# virsh start sby2 [root@sby ~]# virsh start sby3 <\/code><\/pre>\n<h4>\u0418\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f Grid Infrastructure<\/h4>\n<p>  \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043b\u0438\u043d\u043d\u044b\u0439 \u0438 \u0441\u043a\u0443\u0447\u043d\u044b\u0439.<\/p>\n<p>  \u0418\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u0443\u0435\u043c Grid Infrastructure \u043d\u0430 prmy:  <\/p>\n<pre><code class=\"bash\"> [root@prmy ~]# ssh -X grid@prmy1 [grid@prmy1- ~]$ su - [root@prmy1 ~]# mount prmy:\/stage \/stage [root@prmy1 ~]# exit [grid@prmy1- ~]$ \/stage\/grid\/runInstaller <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6b5\/ee1\/8d4\/6b5ee18d4be1467e81234d458b9ddc6b.png\"\/><\/p>\n<p>  Flex Cluster \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/888\/e87\/e6a\/888e87e6ae134999b6c2e3ff412f86e5.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2dc\/d9f\/056\/2dcd9f05643649ef8b6bcdac4993cebd.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b12\/8e2\/244\/b128e2244c564da18544e31e30492493.png\"\/><\/p>\n<p>  \u0421\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c GNS \u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u0435, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u0432 DNS \u043f\u0440\u0438 \u0434\u0435\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0437\u043e\u043d\u044b.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/686\/307\/620\/686307620b534c769edb3c2116e15628.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1a6\/b21\/50d\/1a6b2150d65f4ebc8705c38cb6b87d82.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/bb0\/d5a\/647\/bb0d5a64754d4a208077342629b9cbd9.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ae6\/2b6\/aa7\/ae62b6aa737844b8bb6a806089a824b7.png\"\/><\/p>\n<p>  \u0421\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c Flex ASM, \u0445\u043e\u0442\u044f \u043e\u043d \u0442\u0443\u0442 \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d. \u0412\u043f\u0440\u043e\u0447\u0435\u043c \u044d\u0442\u043e \u0436\u0435 \u0441\u0442\u0435\u043d\u0434 \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0437\u043b\u043e\u0432 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 ASM \u0434\u0432\u0443\u043c\u044f. \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e ASM \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u2014 \u0435\u0433\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f 300M \u0432\u043c\u0435\u0441\u0442\u043e 1G \u0443 Flex ASM.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3bf\/f12\/880\/3bff1288001f42ac86f9deec63178332.png\"\/><\/p>\n<p>  \u0411\u0435\u0440\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0435 8 \u0434\u0438\u0441\u043a\u043e\u0432<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1c5\/073\/3f5\/1c50733f59fb4068ab6d02e484e47c50.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1d9\/4c1\/6e0\/1d94c16e093d4a67a89b6055cb0a9fbc.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/25f\/d17\/3cd\/25fd173cd6244a358c8072d0fdfa5ff1.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/72e\/79b\/dfb\/72e79bdfb4984deab711c2bd443a6117.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/be2\/bec\/f3f\/be2becf3ff4440bb801ef321368f3bc0.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/107\/c51\/961\/107c5196185d4585847545fec4303007.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e4a\/535\/670\/e4a535670a7e4d1bb95b337907d7808c.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f9a\/18d\/671\/f9a18d671a4c49f1a0a66d130ff7f465.png\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0432\u0441\u044f \u043a\u0430\u043a \u0443 \u043c\u0435\u043d\u044f, \u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u0440\u043e\u0439\u0442\u0438 \u0431\u0435\u0437 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0439.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f45\/cde\/d8d\/f45cded8d76748e4bfc04c35a6fe7e58.png\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 GNS \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430:  <\/p>\n<pre><code class=\"bash\"> [grid@prmy ~]# su - [root@prmy1 ~]# . oraenv ORACLE_SID = [root] ? +ASM1 The Oracle base has been set to \/u01\/app\/grid [root@prmy1 ~]# srvctl export gns -clientdata \/tmp\/gnsclientdata root@prmy1 ~]# scp \/tmp\/gnsclientdata sby1:\/tmp\/gnsclientdata <\/code><\/pre>\n<p>  GNS \u0431\u0443\u0434\u0435\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0435. \u0420\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c GNS \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e.<\/p>\n<p>  \u0418\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f Grid Infrastructure \u043d\u0430 sby \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u043c\u044b \u0443\u0436\u0435 \u0434\u0435\u043b\u0430\u043b\u0438 \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0438\u043c\u0435\u043d \u0443\u0437\u043b\u043e\u0432 \u0438 GNS.  <\/p>\n<pre><code class=\"bash\"> [root@sby ~]# ssh -X grid@sby1 [grid@sby1- ~]$ su - [root@sby1 ~]# mount prmy:\/stage \/stage [root@sby1 ~]# exit [grid@sby1- ~]$ \/stage\/grid\/runInstaller <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e Flex Cluster, \u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c GNS \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c4c\/97c\/b1d\/c4c97cb1dc6b40cfa2a5a3893205de79.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e7e\/146\/e37\/e7e146e37b064c81b7d8697a9a0dc5c7.png\"\/><\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0438\u0441\u043a\u043e\u0432\u044b\u0445 \u0433\u0440\u0443\u043f\u043f ASM<\/h4>\n<p>  \u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0438\u0441\u043a\u043e\u0432\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u043d\u0430 \u043e\u0431\u043e\u0438\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430\u0445:<br \/>  FRA \u2014 Fast Recovery Area<br \/>  ACFS \u2014 \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u0433\u043e Oracle Home Oracle Database.<\/p>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0436\u0434\u0443\u044e \u0434\u0438\u0441\u043a\u043e\u0432\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443 \u0431\u0435\u0440\u0435\u043c \u043f\u043e 4 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0434\u0438\u0441\u043a\u0430, redundancy external.<\/p>\n<p>  \u041d\u0430 ACFS \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u043e\u043c \u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 acfs \u0438 \u0442\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 Oracle Database. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u0430\u0442\u0447\u0435\u0439 \u0438 \u0430\u043f\u0433\u0440\u0435\u0439\u0430\u0445 \u043d\u0430\u0441 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0432\u043e\u043b\u043d\u0443\u0435\u0442 \u2014 \u043d\u0430 \u044d\u0442\u043e\u043c \u0441\u0442\u0435\u043d\u0434\u0435 \u0432\u0440\u044f\u0434 \u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u0417\u0430\u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u0442 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f \u0441\u043e\u0444\u0442\u0430 \u0438 \u0447\u0443\u0442\u044c \u043f\u0440\u043e\u0449\u0435 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c Data Duard.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u043e\u0447\u043a\u0443 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f acfs:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# mkdir -p \/u01\/app\/oracle\/acfsmounts\/acfs_db1 [root@prmy1 ~]# ssh prmy2 mkdir -p \/u01\/app\/oracle\/acfsmounts\/acfs_db1 [root@prmy1 ~]# ssh prmy3 mkdir -p \/u01\/app\/oracle\/acfsmounts\/acfs_db1 [root@prmy1 ~]# chown -R oracle:oinstall \/u01\/app\/oracle\/acfsmounts [root@prmy1 ~]# ssh prmy2 chown -R oracle:oinstall \/u01\/app\/oracle\/acfsmounts [root@prmy1 ~]# ssh prmy3 chown -R oracle:oinstall \/u01\/app\/oracle\/acfsmounts <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> [grid@prmy1-+ASM1 ~]$ asmca <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ea9\/409\/215\/ea940921593f4f658a283edd7be86f68.png\"\/><\/p>\n<p>  \u0414\u0440\u0443\u0433\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0443 \u043d\u0430\u0441 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u0435\u043d\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 compatible.rdbms \u0438 compatible.asm \u0433\u0440\u0443\u043f\u043f\u044b DATA \u043d\u0430 12.1.0.2.0.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d9d\/75e\/b67\/d9d75eb677d74539a59ef5b3f6f1d19e.png\"\/><\/p>\n<p>  FRA \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441 compatible.rdbms \u0438 compatible.asm 12.1.0.2.0.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f1f\/80d\/70f\/f1f80d70f3954ef8a0b46244964ca3f1.png\"\/><\/p>\n<p>  \u041d\u0430 ACFS \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u043c compatible.advm= 12.1.0.2.0.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e20\/470\/97f\/e2047097f8984cc6843da98aadf873e2.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/632\/005\/e9d\/632005e9d0f34697acac9ffa103d91dd.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/393\/f33\/a5d\/393f33a5d4b2487980b91d9ee44f6274.png\"\/><\/p>\n<p>  \u041d\u0430\u0441 \u043f\u043e\u043f\u0440\u043e\u0441\u044f\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/580\/b46\/45b\/580b4645ba414282adaab7cce452778c.png\"\/>  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# \/u01\/app\/grid\/cfgtoollogs\/asmca\/scripts\/acfs_script.sh ACFS file system \/u01\/app\/oracle\/acfsmounts\/acfs_db1 is mounted on nodes prmy1,prmy2,prmy3 <\/code><\/pre>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0434\u0438\u0441\u043a\u043e\u0432\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u043d\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 sby.<\/p>\n<h4>\u0418\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f Oracle Database<\/h4>\n<p>  \u0418\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 Oracle Database. \u0421\u0430\u043c\u0443 \u0431\u0430\u0437\u0443 \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 dbca. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u0432\u0441\u0435 3 \u0443\u0437\u043b\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/aa1\/07c\/0a3\/aa107c0a3b754fba8257fbc8c88dd7a5.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ce5\/eb3\/46c\/ce5eb346c30a499d9f86700af8dc7ff8.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a77\/b4d\/114\/a77b4d114a754b61a8ae654a147870f3.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/638\/43f\/2da\/63843f2da0d54df8b6c3c755a9f0e3b1.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f6b\/328\/759\/f6b32875906a4f5bb2957e067e71f690.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/9b5\/29c\/b24\/9b529cb240d84ec5b4886691ee2fee3c.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1f5\/1a0\/fed\/1f51a0feda0841b49a8d9c93180cfcda.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1f8\/159\/3b7\/1f81593b77cf481b8119ebdd7e485a2e.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/7e3\/f41\/c1e\/7e3f41c1e8f74325841b352dcf0a2b99.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/678\/a06\/3c4\/678a063c41b24d51af3db093095766ba.png\"\/><\/p>\n<p>  \u041f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u043e\u043d \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043d\u0435 \u0432\u0438\u0434\u0438\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u043d\u0443\u0436\u043d\u043e\u0435 \u0435\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 hard memlock=3828161. \u0421\u043e\u0437\u0434\u0430\u0435\u0442 fixup \u0441\u043a\u0440\u0438\u043f\u0442, \u0430 \u043f\u0440\u0438 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0432 \u0442\u043e \u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043d\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043e\u0431\u0438\u0436\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u041a\u043e\u0440\u043e\u0447\u0435, \u0441\u043c\u0435\u043b\u043e \u044d\u0442\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u043c.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/14a\/217\/296\/14a2172965b84a58a9f449c33a3d6e57.png\"\/><\/p>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u043e\u0444\u0442 \u043d\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 sby.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u043d\u0430 sby \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre><code class=\"bash\"> [root@sby1-sby ~]# \/u01\/app\/12.1.0\/grid\/bin\/setasmgidwrap o=\/u01\/app\/oracle\/acfsmounts\/acfs_db1\/bin\/oracle <\/code><\/pre>\n<p>  \u0418\u043d\u0430\u0447\u0435 \u043d\u0430\u0448\u0430 stanby \u0411\u0414 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u043d\u0430 ASM.<\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>  \u0411\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0438 policy \u0438\u043b\u0438 administrator managed. \u0412 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0411\u0414 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e 2 \u0443\u0437\u043b\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430. \u0422\u0440\u0435\u0442\u0438\u0439 \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0434\u043b\u044f Far Sync.<\/p>\n<p>  \u042f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b administrator managed \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445:  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1- ~]$ . oraenv ORACLE_SID = [oracle] ? prmy ORACLE_HOME = [\/home\/oracle] ? \/u01\/app\/oracle\/acfsmounts\/acfs_db1 The Oracle base has been set to \/u01\/app\/oracle [oracle@prmy1-prmy ~]$ dbca <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2b7\/d9f\/632\/2b7d9f63200e46a0b53c483d5c606a11.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/942\/048\/318\/9420483180a348d595cb9f9ecb8f2c34.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/35f\/a92\/2a5\/35fa922a547b42779b7ed501137d7a3c.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/97c\/0ae\/54b\/97c0ae54b03d4d4db508f08ee146f2d9.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/367\/6d7\/1ea\/3676d71ea10243e8a9e4d08815784a72.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/12f\/4a5\/be7\/12f4a5be7a1446f6a8bd4b70fc0b90a8.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/36b\/7c4\/5c8\/36b7c45c86814ff9b0ea64bfb8c1ad7a.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/547\/e6a\/cf2\/547e6acf2e3746f7960acd6260dd31ee.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/188\/12e\/cc5\/18812ecc5b674d129bf9c2d5a4c7bcc5.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8e0\/b3d\/a14\/8e0b3da14e96432ea9f291e1b2f9306c.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/cb2\/631\/deb\/cb2631deb57b40ac9b0f0d8ac05b1fee.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/523\/108\/5d1\/5231085d18ae4d598a7b7c15e80c530e.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/11d\/2a5\/5a8\/11d2a55a85bd4131999783921e47cd3e.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/588\/fb2\/ce9\/588fb2ce977742a18f01f491830b0c1b.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/103\/3e3\/e1e\/1033e3e1e8364b34852a8c7d798e47cf.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/71c\/19e\/058\/71c19e0589854b0cb4d3ce162b07b1af.png\"\/>  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ cd $ORACLE_HOME\/dbs [oracle@prmy1-prmy dbs]$ mv initprmy1.ora initprmy.ora [oracle@prmy1-prmy dbs]$ rm initprmy2.ora [oracle@prmy1-prmy dbs]$ ln -s initprmy.ora initprmy1.ora [oracle@prmy1-prmy dbs]$ ln -s initprmy.ora initprmy2.ora <\/code><\/pre>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Oracle Net \u0434\u043b\u044f Data Guard<\/h4>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u043c \u043e\u0441\u0442\u0430\u0432\u0448\u0443\u044e\u0441\u044f \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0435\u0442\u044c 192.168.103.0\/24 \u0434\u043b\u044f Data Guard.  <\/p>\n<pre><code class=\"bash\"> [root@prmy1 ~]# . oraenv ORACLE_SID = [root] ? +ASM1 The Oracle base has been set to \/u01\/app\/grid [root@prmy1-+ASM1 ~]# oifcfg setif -global eth3\/192.168.103.0:public [root@prmy1-+ASM1 ~]# crsctl stop cluster -all [root@prmy1-+ASM1 ~]# crsctl start cluster -all <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0442\u0435 \u0441\u0435\u0442\u0438, \u0447\u0442\u043e \u0443\u0436\u0435 \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1-+ASM1 ~]# crsctl stat res -t | grep network ora.net1.network <\/code><\/pre>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0441\u0435\u0442\u0438 -2, \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0435\u0435:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1-+ASM1 ~]# srvctl add network -netnum 2 -subnet 192.168.103.0\/255.255.255.0\/eth3 -nettype dhcp -verbose Successfully added Network.  [root@prmy1-+ASM1 ~]# crsctl stat res -t | grep network ora.net1.network ora.net2.network <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c VIP \u0430\u0434\u0440\u0435\u0441\u0430:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1-+ASM1 ~]# srvctl add vip -node prmy1 -netnum 2 [root@prmy1-+ASM1 ~]# srvctl add vip -node prmy2 -netnum 2 [root@prmy1-+ASM1 ~]# srvctl add vip -node prmy3 -netnum 2 <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u0438\u0445:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1-+ASM1 ~]# srvctl start vip -node prmy1 -netnum 2 [root@prmy1-+ASM1 ~]# srvctl start vip -node prmy2 -netnum 2 [root@prmy1-+ASM1 ~]# srvctl start vip -node prmy3 -netnum 2 <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c SCAN LISTENER&#8217;\u044b:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1-+ASM1 ~]# srvctl add scan_listener -netnum 2 -listener DG -endpoints TCP:12001 <\/code><\/pre>\n<p>  \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0442\u0435\u0445 \u0447\u0442\u043e \u0432 public \u0441\u0435\u0442\u0438, \u044d\u0442\u0438 \u0441\u043b\u0443\u0448\u0430\u044e\u0442 \u043f\u043e\u0440\u0442 12001.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u044d\u0442\u0443 \u0441\u0435\u0442\u044c SCAN \u0430\u0434\u0440\u0435\u0441. \u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u0442\u0430\u043a\u043e\u0435 \u0436\u0435 \u0447\u0442\u043e \u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0433\u043e SCAN \u0432 public \u0441\u0435\u0442\u0438:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1-+ASM1 ~]# srvctl add scan -scanname prmy-dg-scan -netnum 2 <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u0438\u0445:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1-+ASM1 ~]# srvctl start scan_listener -netnum 2 [root@prmy1-+ASM1 ~]# srvctl start scan -netnum 2 <\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u0447\u0442\u043e \u043c\u044b \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c\u0441\u044f \u0432 GNS:  <\/p>\n<pre><code class=\"bash\"> [root@prmy1-+ASM1 ~]# srvctl config gns -list <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b srvctl config gns -list<\/b><\/p>\n<div class=\"spoiler_text\">Net-X-1.oraAsm SRV Target: 192.168.101.100.sby-cluster Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-1.oraAsm SRV Target: 192.168.101.103 Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-2.oraAsm SRV Target: 192.168.101.102 Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-2.oraAsm SRV Target: 192.168.101.106.sby-cluster Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-3.oraAsm SRV Target: 192.168.101.101 Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-3.oraAsm SRV Target: 192.168.101.105.sby-cluster Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-4.oraAsm SRV Target: 192.168.102.100.sby-cluster Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-4.oraAsm SRV Target: 192.168.102.103 Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-5.oraAsm SRV Target: 192.168.102.101 Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-5.oraAsm SRV Target: 192.168.102.106.sby-cluster Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-6.oraAsm SRV Target: 192.168.102.102 Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-6.oraAsm SRV Target: 192.168.102.105.sby-cluster Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Oracle-GNS A 192.168.100.51 Unique Flags: 0x115<br \/>  prmy-cluster-scan A 192.168.100.127 Unique Flags: 0x81<br \/>  prmy-cluster-scan A 192.168.100.128 Unique Flags: 0x81<br \/>  prmy-cluster-scan A 192.168.100.129 Unique Flags: 0x81<br \/>  <font color=\"#ff0000\">prmy-cluster-scan1-net2-vip A 192.168.103.103 Unique Flags: 0x1<\/font><br \/>  prmy-cluster-scan1-vip A 192.168.100.128 Unique Flags: 0x81<br \/>  <font color=\"#ff0000\">prmy-cluster-scan2-net2-vip A 192.168.103.104 Unique Flags: 0x1<\/font><br \/>  prmy-cluster-scan2-vip A 192.168.100.129 Unique Flags: 0x81<br \/>  <font color=\"#ff0000\">prmy-cluster-scan3-net2-vip A 192.168.103.105 Unique Flags: 0x1<\/font><br \/>  prmy-cluster-scan3-vip A 192.168.100.127 Unique Flags: 0x81<br \/>  prmy-cluster.Oracle-GNS SRV Target: Oracle-GNS Protocol: tcp Port: 42325 Weight: 0 Priority: 0 Flags: 0x115<br \/>  prmy-cluster.Oracle-GNS TXT CLUSTER_NAME=\u00abprmy-cluster\u00bb, CLUSTER_GUID=\u00abf1d4ab3f48f1df86bf83ea440ea13327\u00bb, NODE_NAME=\u00abprmy3\u00bb, SERVER_STATE=\u00abRUNNING\u00bb, VERSION=\u00ab12.1.0.2.0\u00bb, DOMAIN=\u00abclu-prmy.example.com\u00bb Flags: 0x115<br \/>  <font color=\"#ff0000\">prmy-dg-scan A 192.168.103.103 Unique Flags: 0x1<\/font><br \/>  <font color=\"#ff0000\">prmy-dg-scan A 192.168.103.104 Unique Flags: 0x1<\/font><br \/>  <font color=\"#ff0000\">prmy-dg-scan A 192.168.103.105 Unique Flags: 0x1<\/font><br \/>  <font color=\"#ff0000\">prmy1-2-vip A 192.168.103.100 Unique Flags: 0x1<\/font><br \/>  prmy1-vip A 192.168.100.139 Unique Flags: 0x81<br \/>  <font color=\"#ff0000\">prmy2-2-vip A 192.168.103.101 Unique Flags: 0x1<\/font><br \/>  prmy2-vip A 192.168.100.140 Unique Flags: 0x81<br \/>  <font color=\"#ff0000\">prmy3-2-vip A 192.168.103.102 Unique Flags: 0x1<\/font><br \/>  prmy3-vip A 192.168.100.141 Unique Flags: 0x81<br \/>  sby-cluster-scan.sby-cluster A 192.168.100.145 Unique Flags: 0x1<br \/>  sby-cluster-scan.sby-cluster A 192.168.100.149 Unique Flags: 0x1<br \/>  sby-cluster-scan.sby-cluster A 192.168.100.150 Unique Flags: 0x1<br \/>  sby-cluster-scan1-vip.sby-cluster A 192.168.100.150 Unique Flags: 0x1<br \/>  sby-cluster-scan2-vip.sby-cluster A 192.168.100.149 Unique Flags: 0x1<br \/>  sby-cluster-scan3-vip.sby-cluster A 192.168.100.145 Unique Flags: 0x1<br \/>  sby1-vip.sby-cluster A 192.168.100.148 Unique Flags: 0x1<br \/>  sby2-vip.sby-cluster A 192.168.100.151 Unique Flags: 0x1<br \/>  sby3-vip.sby-cluster A 192.168.100.138 Unique Flags: 0x1  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043b\u0438\u0441\u0442\u0435\u043d\u0435\u0440 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0435\u0442\u0438 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c LISTENER_DG \u0438 \u043f\u043e\u0440\u0442\u043e\u043c 12001.  <\/p>\n<pre><code class=\"bash\"> [grid@prmy1-+ASM1 ~]$ netca <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6bb\/2a3\/921\/6bb2a392196842079059281d2a1bdf16.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/dd4\/60d\/d6a\/dd460dd6a7214baf8f54d1fe3a38fd2a.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/9db\/487\/1b7\/9db4871b768f4be2bccf239e4e876202.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/380\/dcc\/9f2\/380dcc9f2da24faca2fa9f0983825528.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ce8\/b50\/49c\/ce8b5049c46246fb8746f1257e4dd313.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/0b3\/60e\/b5d\/0b360eb5d48e41aca8963b232cfd2ef0.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ec2\/1b0\/bf8\/ec21b0bf8337491da7f4adcb61f51769.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/11d\/0e4\/cac\/11d0e4cac0ad41dd856b7f2cb0f2e2ef.png\"\/><\/p>\n<p>  \u042d\u0442\u043e\u0442 \u043b\u0438\u0441\u0442\u0435\u043d\u0435\u0440 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f Data Guard \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0443\u0437\u043b\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432 \u0438 \u0432 \u043d\u0435\u043c \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f Data Guard.<\/p>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0443\u0434\u0443 \u0432 2 \u0448\u0430\u0433\u0430, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0447\u0435\u0440\u0435\u0437 netmgr \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435:<\/p>\n<p>  <b><u>prmy1:<\/u><\/b>  <\/p>\n<pre><code class=\"bash\"> [grid@prmy1-+ASM1 ~]$ netmgr <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/108\/363\/281\/108363281df7451ebed570a5d983a442.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/fdc\/de0\/319\/fdcde0319db44275821d5cd8ff814b9c.png\"\/><\/p>\n<p>  \u0410 \u043f\u043e\u0442\u043e\u043c \u0435\u0449\u0435 \u0438 \u0440\u0443\u043a\u0430\u043c\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e netmgr \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 *_BUF_SIZE.  <\/p>\n<pre><code class=\"bash\"> [grid@prmy1-+ASM1 ~]$ vi $ORACLE_HOME\/network\/admin\/listener.ora LISTENER_DG =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_DG)(SEND_BUF_SIZE = 10485760)(RECV_BUF_SIZE = 10485760))   )  SID_LIST_LISTENER_DG =   (SID_LIST =     (SID_DESC =       (GLOBAL_DBNAME = prmy_dgmgrl.example.com)       (ORACLE_HOME = \/u01\/app\/oracle\/acfsmounts\/acfs_db1)       (SID_NAME = prmy1)     )   ) <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:  <\/p>\n<pre><code class=\"bash\"> [grid@prmy1-+ASM1 ~]$ lsnrctl reload listener_dg Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_DG)(SEND_BUF_SIZE=10485760)(RECV_BUF_SIZE=10485760))) The command completed successfully <\/code><\/pre>\n<p>  <b><u>prmy2:<\/u><\/b>  <\/p>\n<pre><code class=\"bash\"> [grid@prmy2-+ASM2 ~]$ netmgr [grid@prmy2-+ASM2 ~]$ vi $ORACLE_HOME\/network\/admin\/listener.ora LISTENER_DG =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_DG)(SEND_BUF_SIZE = 10485760)(RECV_BUF_SIZE = 10485760))   )  SID_LIST_LISTENER_DG =   (SID_LIST =     (SID_DESC =       (GLOBAL_DBNAME = prmy_dgmgrl.example.com)       (ORACLE_HOME = \/u01\/app\/oracle\/acfsmounts\/acfs_db1)       (SID_NAME = prmy2)     )   ) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> [grid@prmy2-+ASM2 ~]$ lsnrctl reload listener_dg Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_DG)(SEND_BUF_SIZE=10485760)(RECV_BUF_SIZE=10485760))) The command completed successfully <\/code><\/pre>\n<p>  <b><u>prmy3:<\/u><\/b>  <\/p>\n<pre><code class=\"bash\"> [grid@prmy3-+ASM3 ~]$ netmgr [grid@prmy3-+ASM3 ~]$ vi $ORACLE_HOME\/network\/admin\/listener.ora LISTENER_DG =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_DG)(SEND_BUF_SIZE = 10485760)(RECV_BUF_SIZE = 10485760))   )  SID_LIST_LISTENER_DG =   (SID_LIST =     (SID_DESC =       (GLOBAL_DBNAME = prmy_dgmgrl.example.com)       (ORACLE_HOME = \/u01\/app\/oracle\/acfsmounts\/acfs_db1)       (SID_NAME = prmy3)     )   ) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"> [grid@prmy3-+ASM3 ~]$ lsnrctl reload listener_dg Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_DG)(SEND_BUF_SIZE=10485760)(RECV_BUF_SIZE=10485760))) The command completed successfully <\/code><\/pre>\n<p>  <u>\u0414\u043b\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 sby \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c:<\/u>  <\/p>\n<pre><code class=\"bash\"> [root@sby1 ~]# . oraenv ORACLE_SID = [root] ? +ASM1 The Oracle base has been set to \/u01\/app\/grid [root@sby1-+ASM1 ~]# oifcfg setif -global eth3\/192.168.103.0:public [root@sby1-+ASM1 ~]# crsctl stop cluster -all [root@sby1-+ASM1 ~]# crsctl start cluster -all [root@sby1-+ASM1 ~]# srvctl add network -netnum 2 -subnet 192.168.103.0\/255.255.255.0\/eth3 -nettype dhcp -verbose Successfully added Network.  [root@sby1-+ASM1 ~]# srvctl add vip -node sby1 -netnum 2 [root@sby1-+ASM1 ~]# srvctl add vip -node sby2 -netnum 2 [root@sby1-+ASM1 ~]# srvctl add vip -node sby3 -netnum 2 [root@sby1-+ASM1 ~]# srvctl start vip -node sby1 -netnum 2 [root@sby1-+ASM1 ~]# srvctl start vip -node sby2 -netnum 2 [root@sby1-+ASM1 ~]# srvctl start vip -node sby3 -netnum 2 [root@sby1-+ASM1 ~]# srvctl add scan_listener -netnum 2 -listener DG -endpoints TCP:12001 [root@sby1-+ASM1 ~]# srvctl add scan -scanname sby-dg-scan -netnum 2 [root@sby1-+ASM1 ~]# srvctl start scan_listener -netnum 2 [root@sby1-+ASM1 ~]# srvctl start scan -netnum 2 <\/code><\/pre>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c (\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 prmy1):  <\/p>\n<pre><code class=\"bash\"> [root@prmy1-+ASM1 ~]# srvctl config gns -list <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b srvctl config gns -list<\/b><\/p>\n<div class=\"spoiler_text\">Net-X-1.oraAsm SRV Target: 192.168.101.100.sby-cluster Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-1.oraAsm SRV Target: 192.168.101.103 Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-2.oraAsm SRV Target: 192.168.101.102 Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-2.oraAsm SRV Target: 192.168.101.106.sby-cluster Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-3.oraAsm SRV Target: 192.168.101.101 Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-3.oraAsm SRV Target: 192.168.101.105.sby-cluster Protocol: tcp Port: 1522 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-4.oraAsm SRV Target: 192.168.102.100.sby-cluster Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-4.oraAsm SRV Target: 192.168.102.103 Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-5.oraAsm SRV Target: 192.168.102.101 Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-5.oraAsm SRV Target: 192.168.102.106.sby-cluster Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-6.oraAsm SRV Target: 192.168.102.102 Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Net-X-6.oraAsm SRV Target: 192.168.102.105.sby-cluster Protocol: tcp Port: 1523 Weight: 0 Priority: 0 Flags: 0x101<br \/>  Oracle-GNS A 192.168.100.51 Unique Flags: 0x115<br \/>  prmy-cluster-scan A 192.168.100.127 Unique Flags: 0x81<br \/>  prmy-cluster-scan A 192.168.100.128 Unique Flags: 0x81<br \/>  prmy-cluster-scan A 192.168.100.129 Unique Flags: 0x81<br \/>  <font color=\"#ff0000\">prmy-cluster-scan1-net2-vip A 192.168.103.103 Unique Flags: 0x1<\/font><br \/>  prmy-cluster-scan1-vip A 192.168.100.128 Unique Flags: 0x81<br \/>  <font color=\"#ff0000\">prmy-cluster-scan2-net2-vip A 192.168.103.104 Unique Flags: 0x1<\/font><br \/>  prmy-cluster-scan2-vip A 192.168.100.129 Unique Flags: 0x81<br \/>  <font color=\"#ff0000\">prmy-cluster-scan3-net2-vip A 192.168.103.105 Unique Flags: 0x1<\/font><br \/>  prmy-cluster-scan3-vip A 192.168.100.127 Unique Flags: 0x81<br \/>  prmy-cluster.Oracle-GNS SRV Target: Oracle-GNS Protocol: tcp Port: 42325 Weight: 0 Priority: 0 Flags: 0x115<br \/>  prmy-cluster.Oracle-GNS TXT CLUSTER_NAME=\u00abprmy-cluster\u00bb, CLUSTER_GUID=\u00abf1d4ab3f48f1df86bf83ea440ea13327\u00bb, NODE_NAME=\u00abprmy3\u00bb, SERVER_STATE=\u00abRUNNING\u00bb, VERSION=\u00ab12.1.0.2.0\u00bb, DOMAIN=\u00abclu-prmy.example.com\u00bb Flags: 0x115<br \/>  <font color=\"#ff0000\">prmy-dg-scan A 192.168.103.103 Unique Flags: 0x1<\/font><br \/>  <font color=\"#ff0000\">prmy-dg-scan A 192.168.103.104 Unique Flags: 0x1<\/font><br \/>  <font color=\"#ff0000\">prmy-dg-scan A 192.168.103.105 Unique Flags: 0x1<\/font><br \/>  <font color=\"#ff0000\">prmy1-2-vip A 192.168.103.100 Unique Flags: 0x1<\/font><br \/>  prmy1-vip A 192.168.100.139 Unique Flags: 0x81<br \/>  <font color=\"#ff0000\">prmy2-2-vip A 192.168.103.101 Unique Flags: 0x1<\/font><br \/>  prmy2-vip A 192.168.100.140 Unique Flags: 0x81<br \/>  <font color=\"#ff0000\">prmy3-2-vip A 192.168.103.102 Unique Flags: 0x1<\/font><br \/>  <font color=\"#ff0000\">prmy3-vip A 192.168.100.141 Unique Flags: 0x81<\/font><br \/>  sby-cluster-scan.sby-cluster A 192.168.100.145 Unique Flags: 0x1<br \/>  sby-cluster-scan.sby-cluster A 192.168.100.149 Unique Flags: 0x1<br \/>  sby-cluster-scan.sby-cluster A 192.168.100.150 Unique Flags: 0x1<br \/>  <font color=\"#0000ff\">sby-cluster-scan1-net2-vip.sby-cluster A 192.168.103.106 Unique Flags: 0x1<\/font><br \/>  sby-cluster-scan1-vip.sby-cluster A 192.168.100.150 Unique Flags: 0x1<br \/>  <font color=\"#0000ff\">sby-cluster-scan2-net2-vip.sby-cluster A 192.168.103.107 Unique Flags: 0x1<\/font><br \/>  sby-cluster-scan2-vip.sby-cluster A 192.168.100.149 Unique Flags: 0x1<br \/>  <font color=\"#0000ff\">sby-cluster-scan3-net2-vip.sby-cluster A 192.168.103.108 Unique Flags: 0x1<\/font><br \/>  sby-cluster-scan3-vip.sby-cluster A 192.168.100.145 Unique Flags: 0x1<br \/>  <font color=\"#0000ff\">sby-dg-scan.sby-cluster A 192.168.103.106 Unique Flags: 0x1<\/font><br \/>  <font color=\"#0000ff\">sby-dg-scan.sby-cluster A 192.168.103.107 Unique Flags: 0x1<\/font><br \/>  <font color=\"#0000ff\">sby-dg-scan.sby-cluster A 192.168.103.108 Unique Flags: 0x1<\/font><br \/>  <font color=\"#0000ff\">sby1-2-vip.sby-cluster A 192.168.103.109 Unique Flags: 0x1<\/font><br \/>  sby1-vip.sby-cluster A 192.168.100.148 Unique Flags: 0x1<br \/>  <font color=\"#0000ff\">sby2-2-vip.sby-cluster A 192.168.103.110 Unique Flags: 0x1<\/font><br \/>  sby2-vip.sby-cluster A 192.168.100.151 Unique Flags: 0x1<br \/>  <font color=\"#0000ff\">sby3-2-vip.sby-cluster A 192.168.103.111 Unique Flags: 0x1<\/font><br \/>  sby3-vip.sby-cluster A 192.168.100.138 Unique Flags: 0x1<\/p>\n<p>  \u0421\u0438\u043d\u0438\u043c \u0446\u0432\u0435\u0442\u043e\u043c \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u044b \u0437\u0430\u043f\u0438\u0441\u0438 GNS \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u0430\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0435\u0442\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 sby.  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043b\u0438\u0441\u0442\u0435\u043d\u0435\u0440 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.  <\/p>\n<pre><code class=\"bash\"> [grid@sby1-+ASM1 ~]$ netca <\/code><\/pre>\n<p>  <b><u>sby1:<\/u><\/b>  <\/p>\n<pre><code class=\"bash\"> [grid@sby1-+ASM1 ~]$ netmgr <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/108\/363\/281\/108363281df7451ebed570a5d983a442.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/91c\/04f\/d1c\/91c04fd1c9604a17b052294befd0bf28.png\"\/><\/p>\n<p>  \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 prmy \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u2014 sby.example.com. \u041e\u043d \u043d\u0430\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f\u0434\u043b\u044f \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Data Guard Broker \u044d\u0442\u043e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441 \u043e\u0442\u0441\u044e\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/79e\/e62\/5bd\/79ee625bd7a5442eb6836bad63185861.png\"\/><\/p>\n<pre><code class=\"bash\"> [grid@sby1-+ASM1 ~]$ vi $ORACLE_HOME\/network\/admin\/listener.ora LISTENER_DG =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_DG)(SEND_BUF_SIZE = 10485760)(RECV_BUF_SIZE = 10485760))   )  SID_LIST_LISTENER_DG =   (SID_LIST =     (SID_DESC =       (GLOBAL_DBNAME = sby_dgmgrl.example.com)       (ORACLE_HOME = \/u01\/app\/oracle\/acfsmounts\/acfs_db1)       (SID_NAME = sby1)     )     (SID_DESC =       (GLOBAL_DBNAME = sby.example.com)       (ORACLE_HOME = \/u01\/app\/oracle\/acfsmounts\/acfs_db1)       (SID_NAME = sby)     )   )  [grid@sby1-+ASM1 ~]$ lsnrctl reload listener_dg Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_DG)(SEND_BUF_SIZE=10485760)(RECV_BUF_SIZE=10485760))) The command completed successfully <\/code><\/pre>\n<p>  <b><u>sby2:<\/u><\/b>  <\/p>\n<pre><code class=\"bash\"> [grid@sby2-+ASM2 ~]$ netmgr [grid@sby2-+ASM2 ~]$ vi $ORACLE_HOME\/network\/admin\/listener.ora LISTENER_DG =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_DG)(SEND_BUF_SIZE = 10485760)(RECV_BUF_SIZE = 10485760))   )  SID_LIST_LISTENER_DG =   (SID_LIST =     (SID_DESC =       (GLOBAL_DBNAME = sby_dgmgrl.example.com)       (ORACLE_HOME = \/u01\/app\/oracle\/acfsmounts\/acfs_db1)       (SID_NAME = sby2)     )   )  [grid@sby2-+ASM2 ~]$ lsnrctl reload listener_dg Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_DG)(SEND_BUF_SIZE=10485760)(RECV_BUF_SIZE=10485760))) The command completed successfully <\/code><\/pre>\n<p>  <b><u>sby3:<\/u><\/b>  <\/p>\n<pre><code class=\"bash\"> [grid@sby3-+ASM3 ~]$ netmgr [grid@sby3-+ASM3 ~]$ vi $ORACLE_HOME\/network\/admin\/listener.ora LISTENER_DG =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_DG)(SEND_BUF_SIZE = 10485760)(RECV_BUF_SIZE = 10485760))   )  SID_LIST_LISTENER_DG =   (SID_LIST =     (SID_DESC =       (GLOBAL_DBNAME = sbyfs_dgmgrl.example.com)       (ORACLE_HOME = \/u01\/app\/oracle\/acfsmounts\/acfs_db1)       (SID_NAME = sbyfs1)     )   )  [grid@sby3-+ASM3 ~]$ lsnrctl reload listener_dg Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_DG)(SEND_BUF_SIZE=10485760)(RECV_BUF_SIZE=10485760))) The command completed successfully <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c tnsnames.ora.  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1- ~]$ . oraenv ORACLE_SID = [oracle] ? prmy The Oracle base has been set to \/u01\/app\/oracle [oracle@prmy1-prmy ~]$ vi $ORACLE_HOME\/network\/admin\/tnsnames.ora <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 \/u01\/app\/oracle\/acfsmounts\/acfs_db1\/network\/admin\/tnsnames.ora<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> PRODSERV1 =   (DESCRIPTION =     (FAILOVER=on)     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy-cluster-scan.clu-prmy.example.com)(PORT = 1521))       (ADDRESS = (PROTOCOL = TCP)(HOST = sby-cluster-scan.sby-cluster.clu-prmy.example.com)(PORT = 1521))     )     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = prodserv.example.com)     )   )  PRMY =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy-cluster-scan.clu-prmy.example.com)(PORT = 1521))     )     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = prmy.example.com)     )   )  SBY =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = TCP)(HOST = sby-cluster-scan.sby-cluster.clu-prmy.example.com)(PORT = 1521))     )     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = sby.example.com)     )   )  PRMYFS =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy-cluster-scan.clu-prmy.example.com)(PORT = 1521))     )     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = prmyfs.example.com)     )   )  SBYFS =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = TCP)(HOST = sby-cluster-scan.sby-cluster.clu-prmy.example.com)(PORT = 1521))     )     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = sbyfs.example.com)     )   )  PRMY_DG =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy-dg-scan.clu-prmy.example.com)(PORT = 12001))     )     (SDU = 65535)     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = prmy.example.com)     )   )  PRMYFS_DG =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy-dg-scan.clu-prmy.example.com)(PORT = 12001))     )     (SDU = 65535)     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = prmyfs.example.com)     )   )  SBY_DG =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = TCP)(HOST = sby-dg-scan.sby-cluster.clu-prmy.example.com)(PORT = 12001))     )     (SDU = 65535)     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = sby.example.com)     )   )  SBYFS_DG =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = TCP)(HOST = sby-dg-scan.sby-cluster.clu-prmy.example.com)(PORT = 12001))     )     (SDU = 65535)     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = sbyfs.example.com)     )   )  PRMY1_LOCAL_NET1 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy1-vip.clu-prmy.example.com)(PORT = 1521))   )  PRMY1_LOCAL_NET2 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy1-2-vip.clu-prmy.example.com)(PORT = 12001))   )  PRMY2_LOCAL_NET1 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy2-vip.clu-prmy.example.com)(PORT = 1521))   )  PRMY2_LOCAL_NET2 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy2-2-vip.clu-prmy.example.com)(PORT = 12001))   )  PRMY3_LOCAL_NET1 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy3-vip.clu-prmy.example.com)(PORT = 1521))   )  PRMY3_LOCAL_NET2 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy3-2-vip.clu-prmy.example.com)(PORT = 12001))   )  SBY1_LOCAL_NET1 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = sby1-vip.sby-cluster.clu-prmy.example.com)(PORT = 1521))   )  SBY1_LOCAL_NET2 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = sby1-2-vip.sby-cluster.clu-prmy.example.com)(PORT = 12001))     (SDU = 65535)     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = sby.example.com)     )   )  SBY2_LOCAL_NET1 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = sby2-vip.sby-cluster.clu-prmy.example.com)(PORT = 1521))   )  SBY2_LOCAL_NET2 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = sby2-2-vip.sby-cluster.clu-prmy.example.com)(PORT = 12001))   )  SBY3_LOCAL_NET1 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = sby3-vip.sby-cluster.clu-prmy.example.com)(PORT = 1521))   )  SBY3_LOCAL_NET2 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = sby3-2-vip.sby-cluster.clu-prmy.example.com)(PORT = 12001))   )   REMOTE_NET1 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy-cluster-scan.clu-prmy.example.com)(PORT = 1521))       (ADDRESS = (PROTOCOL = TCP)(HOST = sby-cluster-scan.sby-cluster.clu-prmy.example.com)(PORT = 1521))   )  REMOTE_NET2 =   (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = prmy-dg-scan.clu-prmy.example.com)(PORT = 12001))       (ADDRESS = (PROTOCOL = TCP)(HOST = sby-dg-scan.sby-cluster.clu-prmy.example.com)(PORT = 12001))   ) <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ scp $ORACLE_HOME\/network\/admin\/tnsnames.ora sby1:$ORACLE_HOME\/network\/admin <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ srvctl status database -d prmy Instance prmy1 is running on node prmy1 Instance prmy2 is running on node prmy2  [oracle@prmy1-prmy ~]$ export ORACLE_SID=prmy1 [oracle@prmy1-prmy1 ~]$ srvctl stop database -d prmy <\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0437\u0430\u043e\u0434\u043d\u043e Flashback Database.  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy1 ~]$ sqlplus \/ as sysdba Connected to an idle instance. SQL&gt; startup mount ORACLE instance started.  Total System Global Area 1048576000 bytes Fixed Size\t\t    2932336 bytes Variable Size\t\t  717226384 bytes Database Buffers\t  322961408 bytes Redo Buffers\t\t    5455872 bytes Database mounted. SQL&gt; alter database archivelog; Database altered. SQL&gt; alter database flashback on; Database altered. SQL&gt; shutdown immediate ORA-01109: database not open Database dismounted. ORACLE instance shut down. SQL&gt; exit  [oracle@prmy1-prmy1 ~]$ srvctl start database -d prmy [oracle@prmy1-prmy1 ~]$ sqlplus \/ as sysdba SQL&gt; alter database force logging; SQL&gt; select GROUP#,BYTES,MEMBERS,THREAD# from v$log;      GROUP#\tBYTES\t MEMBERS    THREAD# ---------- ---------- ---------- ---------- \t 1   52428800\t       2\t  1 \t 2   52428800\t       2\t  1 \t 3   52428800\t       2\t  2 \t 4   52428800\t       2\t  2 SQL&gt; alter database add standby logfile thread 1 ('+DATA', '+FRA' ) size 52428800; SQL&gt; alter database add standby logfile thread 1 ('+DATA', '+FRA' ) size 52428800; SQL&gt; alter database add standby logfile thread 2 ('+DATA', '+FRA' ) size 52428800; SQL&gt; alter database add standby logfile thread 2 ('+DATA', '+FRA' ) size 52428800;  SQL&gt; alter system set log_archive_dest_1='location=USE_DB_RECOVERY_FILE_DEST valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=prmy' scope=both sid ='*';  SQL&gt; alter system set log_archive_dest_state_1='enable' scope=both sid ='*'; SQL&gt; alter system set fal_server='sby' scope=both sid='*'; SQL&gt; alter system set log_archive_max_processes=4 scope=both sid ='*'; SQL&gt; alter system set log_archive_config='dg_config=(prmy,prmyfs,sby,sbyfs)' scope=both sid ='*'; SQL&gt; alter system set standby_file_management='auto' scope=both sid ='*';  SQL&gt; alter pluggable database all open; SQL&gt; alter pluggable database all save state; <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>  <\/p>\n<pre><code class=\"bash\"> [oracle@sby1- ~]$ mkdir -p \/u01\/app\/oracle\/admin\/sby\/adump [oracle@sby1- ~]$ ssh sby2 mkdir -p \/u01\/app\/oracle\/admin\/sby\/adump [oracle@sby1- ~]$ ssh sby3 mkdir -p \/u01\/app\/oracle\/admin\/sbyfs\/adump  [oracle@sby1- ~]$ . oraenv ORACLE_SID = [oracle] ? sby ORACLE_HOME = [\/home\/oracle] ? \/u01\/app\/oracle\/acfsmounts\/acfs_db1 The Oracle base has been set to \/u01\/app\/oracle <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.  <\/p>\n<pre><code class=\"bash\"> [oracle@sby1-sby ~]$ echo 'DB_NAME=sby' &gt; $ORACLE_HOME\/dbs\/initsby.ora [oracle@sby1-sby ~]$ echo 'DB_DOMAIN=example.com' &gt;&gt; $ORACLE_HOME\/dbs\/initsby.ora <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u043e\u043b\u0435\u0439, \u0435\u0433\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 DUPLICATE.  <\/p>\n<pre><code class=\"bash\"> [oracle@sby1-sby ~]$ orapwd file=$ORACLE_HOME\/dbs\/orapwsby password=oracle_4U <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440:  <\/p>\n<pre><code class=\"bash\"> [oracle@sby1-sby ~]$ sqlplus \/ as sysdba SQL&gt; startup nomount pfile='$ORACLE_HOME\/dbs\/initsby.ora' ORACLE instance started.  Total System Global Area  243269632 bytes Fixed Size\t\t    2923000 bytes Variable Size\t\t  184550920 bytes Database Buffers\t   50331648 bytes Redo Buffers\t\t    5464064 bytes SQL&gt; exit <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>  \u0413\u043e\u0442\u043e\u0432\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f RMAN. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0447\u0442\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0443 \u043d\u0430\u0441 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043d\u0430\u044f.  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ vi cr_phys_sby.txt run {    allocate channel prmy1 type disk;    allocate auxiliary channel sby1 type disk;     duplicate target database for standby from active database      spfile        parameter_value_convert 'prmy','sby'        set db_unique_name='sby'        set control_files='+DATA','+FRA'        set log_archive_config='dg_config=(prmy,prmyfs,sby,sbyfs)'        set fal_server='prmy'        set log_archive_dest_1='location=USE_DB_RECOVERY_FILE_DEST valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=sby'        set instance_number='1'        set thread='1'        set undo_tablespace='UNDOTBS1'; } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442:  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ rman target sys\/oracle_4U@prmy auxiliary sys\/oracle_4U@sby1_local_net2 RMAN&gt; @cr_phys_sby.txt <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"> RMAN&gt; run { 2&gt;    allocate channel prmy1 type disk; 3&gt;    allocate auxiliary channel sby1 type disk; 4&gt;  5&gt;    duplicate target database for standby from active database 6&gt;      spfile 7&gt;        parameter_value_convert 'prmy','sby' 8&gt;        set db_unique_name='sby' 9&gt;        set control_files='+DATA','+FRA' 10&gt;        set log_archive_config='dg_config=(prmy,prmyfs,sby,sbyfs)' 11&gt;        set fal_server='prmy' 12&gt;        set log_archive_dest_1='location=USE_DB_RECOVERY_FILE_DEST valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=sby' 13&gt;        set instance_number='1' 14&gt;        set thread='1' 15&gt;        set undo_tablespace='UNDOTBS1'; 16&gt; } using target database control file instead of recovery catalog allocated channel: prmy1 channel prmy1: SID=91 instance=prmy1 device type=DISK  allocated channel: sby1 channel sby1: SID=28 device type=DISK  Starting Duplicate Db  contents of Memory Script: {    backup as copy reuse    targetfile  '+DATA\/PRMY\/PASSWORD\/pwdprmy.277.886095621' auxiliary format   '\/u01\/app\/oracle\/acfsmounts\/acfs_db1\/dbs\/orapwsby'   ;    restore clone from service  'prmy' spfile to   '\/u01\/app\/oracle\/acfsmounts\/acfs_db1\/dbs\/spfilesby.ora';    sql clone &quot;alter system set spfile= ''\/u01\/app\/oracle\/acfsmounts\/acfs_db1\/dbs\/spfilesby.ora''&quot;; } executing Memory Script  Starting backup Finished backup  Starting restore  channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: restoring SPFILE output file name=\/u01\/app\/oracle\/acfsmounts\/acfs_db1\/dbs\/spfilesby.ora channel sby1: restore complete, elapsed time: 00:00:05 Finished restore  sql statement: alter system set spfile= ''\/u01\/app\/oracle\/acfsmounts\/acfs_db1\/dbs\/spfilesby.ora''  contents of Memory Script: {    sql clone &quot;alter system set  audit_file_dest =   ''\/u01\/app\/oracle\/admin\/sby\/adump'' comment=  '''' scope=spfile&quot;;    sql clone &quot;alter system set  dispatchers =   ''(PROTOCOL=TCP) (SERVICE=sbyXDB)'' comment=  '''' scope=spfile&quot;;    sql clone &quot;alter system set  db_unique_name =   ''sby'' comment=  '''' scope=spfile&quot;;    sql clone &quot;alter system set  control_files =   ''+DATA'', ''+FRA'' comment=  '''' scope=spfile&quot;;    sql clone &quot;alter system set  log_archive_config =   ''dg_config=(prmy,prmyfs,sby,sbyfs)'' comment=  '''' scope=spfile&quot;;    sql clone &quot;alter system set  fal_server =   ''prmy'' comment=  '''' scope=spfile&quot;;    sql clone &quot;alter system set  log_archive_dest_1 =   ''location=USE_DB_RECOVERY_FILE_DEST valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=sby'' comment=  '''' scope=spfile&quot;;    sql clone &quot;alter system set  instance_number =   1 comment=  '''' scope=spfile&quot;;    sql clone &quot;alter system set  thread =   1 comment=  '''' scope=spfile&quot;;    sql clone &quot;alter system set  undo_tablespace =   ''UNDOTBS1'' comment=  '''' scope=spfile&quot;;    shutdown clone immediate;    startup clone nomount; } executing Memory Script  sql statement: alter system set  audit_file_dest =  ''\/u01\/app\/oracle\/admin\/sby\/adump'' comment= '''' scope=spfile sql statement: alter system set  dispatchers =  ''(PROTOCOL=TCP) (SERVICE=sbyXDB)'' comment= '''' scope=spfile sql statement: alter system set  db_unique_name =  ''sby'' comment= '''' scope=spfile sql statement: alter system set  control_files =  ''+DATA'', ''+FRA'' comment= '''' scope=spfile sql statement: alter system set  log_archive_config =  ''dg_config=(prmy,prmyfs,sby,sbyfs)'' comment= '''' scope=spfile sql statement: alter system set  fal_server =  ''prmy'' comment= '''' scope=spfile sql statement: alter system set  log_archive_dest_1 =  ''location=USE_DB_RECOVERY_FILE_DEST valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=sby'' comment= '''' scope=spfile sql statement: alter system set  instance_number =  1 comment= '''' scope=spfile sql statement: alter system set  thread =  1 comment= '''' scope=spfile sql statement: alter system set  undo_tablespace =  ''UNDOTBS1'' comment= '''' scope=spfile  Oracle instance shut down  connected to auxiliary database (not started) Oracle instance started  Total System Global Area    1048576000 bytes  Fixed Size                     2932336 bytes Variable Size                750780816 bytes Database Buffers             222298112 bytes Redo Buffers                  72564736 bytes allocated channel: sby1 channel sby1: SID=40 instance=sby device type=DISK  contents of Memory Script: {    sql clone &quot;alter system set  control_files =    ''+DATA\/SBY\/CONTROLFILE\/current.276.886160849'', ''+FRA\/SBY\/CONTROLFILE\/current.256.886160853'' comment=  ''Set by RMAN'' scope=spfile&quot;;    restore clone from service  'prmy' standby controlfile; } executing Memory Script  sql statement: alter system set  control_files =   ''+DATA\/SBY\/CONTROLFILE\/current.276.886160849'', ''+FRA\/SBY\/CONTROLFILE\/current.256.886160853'' comment= ''Set by RMAN'' scope=spfile  Starting restore  channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: restoring control file channel sby1: restore complete, elapsed time: 00:00:12 output file name=+DATA\/SBY\/CONTROLFILE\/current.278.886160863 output file name=+FRA\/SBY\/CONTROLFILE\/current.258.886160865 Finished restore  contents of Memory Script: {    sql clone 'alter database mount standby database'; } executing Memory Script  sql statement: alter database mount standby database  contents of Memory Script: {    set newname for clone tempfile  1 to new;    set newname for clone tempfile  2 to new;    set newname for clone tempfile  3 to new;    switch clone tempfile all;    set newname for clone datafile  1 to new;    set newname for clone datafile  3 to new;    set newname for clone datafile  4 to new;    set newname for clone datafile  5 to new;    set newname for clone datafile  6 to new;    set newname for clone datafile  7 to new;    set newname for clone datafile  8 to new;    set newname for clone datafile  9 to new;    set newname for clone datafile  10 to new;    set newname for clone datafile  11 to new;    set newname for clone datafile  12 to new;    restore    from service  'prmy'   clone database    ;    sql 'alter system archive log current'; } executing Memory Script  executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME  renamed tempfile 1 to +DATA in control file renamed tempfile 2 to +DATA in control file renamed tempfile 3 to +DATA in control file  executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME  Starting restore  channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00001 to +DATA channel sby1: restore complete, elapsed time: 00:00:56 channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00003 to +DATA channel sby1: restore complete, elapsed time: 00:00:57 channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00004 to +DATA channel sby1: restore complete, elapsed time: 00:00:27 channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00005 to +DATA channel sby1: restore complete, elapsed time: 00:00:15 channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00006 to +DATA channel sby1: restore complete, elapsed time: 00:00:10 channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00007 to +DATA channel sby1: restore complete, elapsed time: 00:00:47 channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00008 to +DATA channel sby1: restore complete, elapsed time: 00:00:04 channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00009 to +DATA channel sby1: restore complete, elapsed time: 00:00:27 channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00010 to +DATA channel sby1: restore complete, elapsed time: 00:00:46 channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00011 to +DATA channel sby1: restore complete, elapsed time: 00:00:01 channel sby1: starting datafile backup set restore channel sby1: using network backup set from service prmy channel sby1: specifying datafile(s) to restore from backup set channel sby1: restoring datafile 00012 to +DATA channel sby1: restore complete, elapsed time: 00:01:16 Finished restore  sql statement: alter system archive log current  contents of Memory Script: {    switch clone datafile all; } executing Memory Script  datafile 1 switched to datafile copy input datafile copy RECID=18 STAMP=886161275 file name=+DATA\/SBY\/DATAFILE\/system.279.886160903 datafile 3 switched to datafile copy input datafile copy RECID=19 STAMP=886161275 file name=+DATA\/SBY\/DATAFILE\/sysaux.280.886160957 datafile 4 switched to datafile copy input datafile copy RECID=20 STAMP=886161276 file name=+DATA\/SBY\/DATAFILE\/undotbs1.281.886161013 datafile 5 switched to datafile copy input datafile copy RECID=21 STAMP=886161276 file name=+DATA\/SBY\/1BC6D0646EC94B23E0530B64A8C0D5EA\/DATAFILE\/system.282.886161039 datafile 6 switched to datafile copy input datafile copy RECID=22 STAMP=886161276 file name=+DATA\/SBY\/DATAFILE\/users.283.886161061 datafile 7 switched to datafile copy input datafile copy RECID=23 STAMP=886161277 file name=+DATA\/SBY\/1BC6D0646EC94B23E0530B64A8C0D5EA\/DATAFILE\/sysaux.284.886161065 datafile 8 switched to datafile copy input datafile copy RECID=24 STAMP=886161277 file name=+DATA\/SBY\/DATAFILE\/undotbs2.285.886161113 datafile 9 switched to datafile copy input datafile copy RECID=25 STAMP=886161277 file name=+DATA\/SBY\/1BC752209CF679EBE0530B64A8C0EE64\/DATAFILE\/system.286.886161117 datafile 10 switched to datafile copy input datafile copy RECID=26 STAMP=886161277 file name=+DATA\/SBY\/1BC752209CF679EBE0530B64A8C0EE64\/DATAFILE\/sysaux.287.886161143 datafile 11 switched to datafile copy input datafile copy RECID=27 STAMP=886161277 file name=+DATA\/SBY\/1BC752209CF679EBE0530B64A8C0EE64\/DATAFILE\/users.288.886161189 datafile 12 switched to datafile copy input datafile copy RECID=28 STAMP=886161277 file name=+DATA\/SBY\/1BC752209CF679EBE0530B64A8C0EE64\/DATAFILE\/example.289.886161191 Finished Duplicate Db released channel: prmy1 released channel: sby1  RMAN&gt; **end-of-file** <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  RMAN \u0445\u043e\u0442\u044c \u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u043b \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0434\u0430\u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u043a\u043e\u0435-\u043a\u0430\u043a\u0438\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c, \u043d\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u044b DUPLICATE \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u0434\u043e \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043d\u043e\u0439 \u0411\u0414. \u041f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043e\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e.  <\/p>\n<pre><code class=\"bash\"> [oracle@sby1-sby dbs]$ sqlplus \/ as sysdba SQL&gt; alter system reset instance_number scope=spfile sid='*'; SQL&gt; alter system set instance_number=1 scope=spfile sid='sby1'; SQL&gt; alter system set instance_number=2 scope=spfile sid='sby2'; SQL&gt; alter system reset thread scope=spfile sid='*'; SQL&gt; alter system set thread=1 scope=spfile sid='sby1'; SQL&gt; alter system set thread=2 scope=spfile sid='sby2'; SQL&gt; alter system reset undo_tablespace scope=spfile sid='*'; SQL&gt; alter system set undo_tablespace='UNDOTBS1' scope=spfile sid='sby1'; SQL&gt; alter system set undo_tablespace='UNDOTBS2' scope=spfile sid='sby2'; SQL&gt; create pfile='\/tmp\/initsby.ora' from spfile; SQL&gt; create spfile='+DATA\/sby\/spfilesby.ora' from pfile='\/tmp\/initsby.ora'; SQL&gt; host echo &quot;SPFILE='+DATA\/sby\/spfilesby.ora'&quot; &gt; ${ORACLE_HOME}\/dbs\/initsby.ora SQL&gt; shutdown immediate SQL&gt; exit <\/code><\/pre>\n<p>  \u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u043d\u0430 \u043c\u0435\u0441\u0442\u043e \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u043e\u043b\u0435\u0439, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0411\u0414 \u0438 \u0435\u0435 \u044d\u043a\u0437\u0430\u043c\u043f\u043b\u044f\u0440\u0430\u0445 \u0432 OCR \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.  <\/p>\n<pre><code class=\"bash\"> [oracle@sby1-sby ~]$ cd $ORACLE_HOME\/dbs [oracle@sby1-sby dbs]$ ln -s initsby.ora initsby1.ora [oracle@sby1-sby dbs]$ ln -s initsby.ora initsby2.ora [oracle@sby1-sby dbs]$ rm spfilesby.ora [oracle@sby1-sby dbs]$ orapwd input_file='orapwsby' file='+DATA\/SBY\/orapwdb' dbuniquename='sby' [oracle@sby1-sby dbs]$ rm orapwsby [oracle@sby1-sby dbs]$ srvctl add database -db sby -oraclehome $ORACLE_HOME -dbtype RAC -domain example.com -spfile +DATA\/sby\/spfilesby.ora -role PHYSICAL_STANDBY -startoption MOUNT -pwfile +DATA\/SBY\/orapwdb -dbname prmy -diskgroup &quot;DATA,FRA&quot; -policy AUTOMATIC -acfspath $ORACLE_HOME [oracle@sby1-sby dbs]$ srvctl add instance -db sby -node sby1 -instance sby1 [oracle@sby1-sby dbs]$ srvctl add instance -db sby -node sby2 -instance sby2 [oracle@sby1-sby dbs]$ srvctl start database -d sby [oracle@sby1-sby dbs]$ srvctl status database -d sby -verbose Instance sby1 is running on node sby1. Instance status: Mounted (Closed). Instance sby2 is running on node sby2. Instance status: Mounted (Closed). <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Far Sync<\/h4>\n<p>  \u0421 Far Sync \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u043c\u0438 \u0411\u0414 \u0432\u0441\u0435 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u0414\u043b\u044f \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0444\u0430\u0439\u043b \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0411\u0414.<\/p>\n<p>  \u0418\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f far sync.  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ export ORACLE_SID=prmy1 [oracle@prmy1-prmy1 ~]$ sqlplus \/ as sysdba SQL&gt; create pfile='\/tmp\/initprmyfs.ora' from spfile; SQL&gt; alter database create far sync instance controlfile as '\/tmp\/prmyfs.ctl'; SQL&gt; exit <\/code><\/pre>\n<p>  \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u043b\u0435\u0436\u0438\u0442 \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u0432 ASM \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0435\u0433\u043e \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b.  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy1 ~]$ srvctl config database -d prmy | grep -i password Password file: +DATA\/PRMY\/PASSWORD\/pwdprmy.276.885980759  [oracle@prmy1-prmy1 ~]$ asmcmd --privilege sysdba pwcopy +DATA\/PRMY\/PASSWORD\/pwdprmy.276.885980759 \/tmp\/orapwprmyfs copying +DATA\/PRMY\/PASSWORD\/pwdprmy.276.885980759 -&gt; \/tmp\/orapwprmyfs  [oracle@prmy1-prmy1 ~]$ scp \/tmp\/{initprmyfs.ora,orapwprmyfs,prmyfs.ctl} prmy3:\/tmp [oracle@prmy1-prmy1 ~]$ scp \/tmp\/initprmyfs.ora sby3:\/tmp\/initsbyfs.ora [oracle@prmy1-prmy1 ~]$ scp \/tmp\/orapwprmyfs sby3:\/tmp\/orapwsbyfs [oracle@prmy1-prmy1 ~]$ scp \/tmp\/prmyfs.ctl sby3:\/tmp\/sbyfs.ctl <\/code><\/pre>\n<p>  <u>\u0421\u043e\u0437\u0434\u0430\u0435\u043c Far Sync prmyfs:<\/u><br \/>  \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy3- ~]$ mkdir -p \/u01\/app\/oracle\/admin\/prmyfs\/adump [oracle@prmy3- ~]$ sed -i 's\/prmy\/prmyfs\/gi' \/tmp\/initprmyfs.ora [oracle@prmy3- ~]$ sed -i -r 's\/(db_name=.*)(prmyfs)\/\\1prmy\/gi' \/tmp\/initprmyfs.ora [oracle@prmy3- ~]$ sed -i -r &quot;s\/(dg_config=)(.*$)\/\\1(prmy,prmyfs,sby,sbyfs)\\'\/gi&quot; \/tmp\/initprmyfs.ora [oracle@prmy3- ~]$ sed -i -r 's\/(fal_server.*)(sby)\/\\1prmy\/gi' \/tmp\/initprmyfs.ora [oracle@prmy3- ~]$ sed -i -r &quot;s\/(control_files=)(.*$)\/\\1\\'+DATA\\',\\'+FRA\\'\/gi&quot; \/tmp\/initprmyfs.ora [oracle@prmy3- ~]$ echo '*.db_unique_name=prmyfs' &gt;&gt; \/tmp\/initprmyfs.ora [oracle@prmy3- ~]$ echo &quot;*.log_file_name_convert='prmy','prmyfs'&quot; &gt;&gt; \/tmp\/initprmyfs.ora [oracle@prmy3- ~]$ cd \/u01\/app\/oracle\/acfsmounts\/acfs_db1\/dbs [oracle@prmy3- dbs]$ echo &quot;SPFILE='+DATA\/prmyfs\/spfileprmyfs.ora'&quot; &gt; initprmyfs.ora [oracle@prmy3- dbs]$ ln -s initprmyfs.ora initprmyfs1.ora <\/code><\/pre>\n<p>  \u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0430 ASM:  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy3- ~]$ . oraenv ORACLE_SID = [oracle] ? prmyfs1 ORACLE_HOME = [\/home\/oracle] ? \/u01\/app\/oracle\/acfsmounts\/acfs_db1 The Oracle base has been set to \/u01\/app\/oracle  [oracle@prmy3-prmyfs1 ~]$ sqlplus \/ as sysdba SQL&gt; startup nomount pfile='\/tmp\/initprmyfs.ora' SQL&gt; create spfile='+DATA\/prmyfs\/spfileprmyfs.ora' from pfile='\/tmp\/initprmyfs.ora'; SQL&gt; shutdown immediate SQL&gt; exit <\/code><\/pre>\n<p>  \u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u043d\u0430 ASM. \u0418 \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 RMAN, \u043e\u043d \u043d\u0430\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0444\u0430\u0439\u043b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0430 \u0438\u0445 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 ASM.  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy3-prmyfs1 ~]$ rman target \/ RMAN&gt; startup nomount RMAN&gt; restore controlfile from '\/tmp\/prmyfs.ctl'; Starting restore using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=36 device type=DISK channel ORA_DISK_1: copied control file copy output file name=+DATA\/PRMYFS\/CONTROLFILE\/current.303.886006117 output file name=+FRA\/PRMYFS\/CONTROLFILE\/current.281.886006121 Finished restore RMAN&gt; shutdown immediate; Statement processed released channel: ORA_DISK_1 RMAN&gt; exit <\/code><\/pre>\n<p>  \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Oracle Clusterware:  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy3-prmyfs1 ~]$ srvctl add database -db prmyfs -oraclehome $ORACLE_HOME -dbtype RAC -domain example.com -spfile +DATA\/prmyfs\/spfileprmyfs.ora -role FAR_SYNC -startoption MOUNT -dbname prmy -policy AUTOMATIC -diskgroup &quot;DATA,FRA&quot; -acfspath $ORACLE_HOME [oracle@prmy3-prmyfs1 ~]$ srvctl add instance -db prmyfs -node prmy3 -instance prmyfs1 [oracle@prmy3-prmyfs1 ~]$ srvctl start database -d prmyfs [oracle@prmy3-prmyfs1 dbs]$ asmcmd --privilege sysdba pwcopy --dbuniquename prmyfs \/tmp\/orapwprmyfs +DATA\/prmyfs\/orapwdb <\/code><\/pre>\n<p>  \u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c RAC Far Sync \u0432 RAC One Node \u043d\u0435 \u0443\u0432\u0435\u043d\u0447\u0430\u043b\u0430\u0441\u044c \u0443\u0441\u043f\u0435\u0445\u043e\u043c:  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy3-prmyfs1 ~]$ srvctl convert database -db prmyfs -dbtype RACONENODE -instance prmyfs1 PRCD-1242 : Unable to convert RAC database prmyfs to RAC One Node database because the database had no service added  [oracle@prmy3-prmyfs1 ~]$ srvctl add service -db prmyfs -service prmyfarsync -preferred prmyfs1 PRCD-1306 : Services cannot be created for the far sync database prmyfs. <\/code><\/pre>\n<p>  <u>\u0421\u043e\u0437\u0434\u0430\u0435\u043c Far Sync sbyfs:<\/u>  <\/p>\n<pre><code class=\"bash\"> [oracle@sby3- ~]$ mkdir -p \/u01\/app\/oracle\/admin\/sbyfs\/adump [oracle@sby3- ~]$ sed -i 's\/prmy\/sbyfs\/gi' \/tmp\/initsbyfs.ora [oracle@sby3- ~]$ sed -i -r 's\/(db_name=.*)(sbyfs)\/\\1prmy\/gi' \/tmp\/initsbyfs.ora [oracle@sby3- ~]$ sed -i -r &quot;s\/(dg_config=)(.*$)\/\\1(prmy,prmyfs,sby,sbyfs)\\'\/gi&quot; \/tmp\/initsbyfs.ora [oracle@sby3- ~]$ sed -i -r &quot;s\/(control_files=)(.*$)\/\\1\\'+DATA\\',\\'+FRA\\'\/gi&quot; \/tmp\/initsbyfs.ora [oracle@sby3- ~]$ echo '*.db_unique_name=sbyfs' &gt;&gt; \/tmp\/initsbyfs.ora [oracle@sby3- ~]$ echo &quot;*.log_file_name_convert='prmy','sbyfs'&quot; &gt;&gt; \/tmp\/initsbyfs.ora [oracle@sby3- ~]$ cd \/u01\/app\/oracle\/acfsmounts\/acfs_db1\/dbs [oracle@sby3- dbs]$ echo &quot;SPFILE='+DATA\/sbyfs\/spfilesbyfs.ora'&quot; &gt; initsbyfs.ora [oracle@sby3- dbs]$ ln -s initsbyfs.ora initsbyfs1.ora  [oracle@sby3- dbs]$ . oraenv ORACLE_SID = [oracle] ? sbyfs1 ORACLE_HOME = [\/home\/oracle] ? \/u01\/app\/oracle\/acfsmounts\/acfs_db1 The Oracle base has been set to \/u01\/app\/oracle [oracle@sby3-sbyfs1 dbs]$ sqlplus \/ as sysdba SQL&gt; startup nomount pfile='\/tmp\/initsbyfs.ora' SQL&gt; create spfile='+DATA\/sbyfs\/spfilesbyfs.ora' from pfile='\/tmp\/initsbyfs.ora'; SQL&gt; shutdown immediate SQL&gt; exit  [oracle@sby3-sbyfs1 dbs]$ rman target \/ RMAN&gt; startup nomount RMAN&gt; restore controlfile from '\/tmp\/sbyfs.ctl'; Starting restore using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=39 instance=sbyfs1 device type=DISK channel ORA_DISK_1: copied control file copy output file name=+DATA\/SBYFS\/CONTROLFILE\/current.301.886016175 output file name=+FRA\/SBYFS\/CONTROLFILE\/current.274.886016179 Finished restore RMAN&gt; shutdown immediate; RMAN&gt; exit  [oracle@sby3-sbyfs1 dbs]$ srvctl add database -db sbyfs -oraclehome $ORACLE_HOME -dbtype RAC -domain example.com -spfile +DATA\/sbyfs\/spfilesbyfs.ora -role FAR_SYNC -startoption MOUNT -dbname prmy -policy AUTOMATIC -diskgroup &quot;DATA,FRA&quot; -acfspath $ORACLE_HOME [oracle@sby3-sbyfs1 dbs]$ srvctl add instance -db sbyfs -node sby3 -instance sbyfs1 [oracle@sby3-sbyfs1 dbs]$ srvctl start database -d sbyfs [oracle@sby3-sbyfs1 dbs]$ asmcmd --privilege sysdba pwcopy --dbuniquename sbyfs \/tmp\/orapwsbyfs +DATA\/sbyfs\/orapwdb <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0411\u0414 \u0432 \u043b\u0438\u0441\u0442\u0435\u043d\u0435\u0440\u0430\u0445<\/h4>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0434\u0430\u043b\u0438\u043c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 sby.example.com \u0432 \u043b\u0438\u0441\u0442\u0435\u043d\u0435\u0440\u0435 LISTENER_DG \u043d\u0430 sby1:  <\/p>\n<pre><code class=\"bash\"> [grid@sby1-+ASM1 ~]$ vi $ORACLE_HOME\/network\/admin\/listener.ora <\/code><\/pre>\n<p>  \u042d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c:<br \/>  <s><\/p>\n<pre><code class=\"bash\">     (SID_DESC =       (GLOBAL_DBNAME = sby.example.com)       (ORACLE_HOME = \/u01\/app\/oracle\/acfsmounts\/acfs_db1)       (SID_NAME = sby)     ) <\/code><\/pre>\n<p>  <\/s>  <\/p>\n<pre><code class=\"bash\"> [grid@sby1-+ASM1 ~]$ lsnrctl reload listener_dg <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0441\u044f \u043a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u0411\u0414:  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ sqlplus sys\/oracle_4U@prmy as sysdba SQL&gt; alter system set local_listener='' SCOPE=BOTH SID='*'; SQL&gt; alter system set remote_listener='' SCOPE=BOTH SID='*'; SQL&gt; alter system set listener_networks='((NAME=network1)(LOCAL_LISTENER=PRMY1_LOCAL_NET1)(REMOTE_LISTENER=REMOTE_NET1))','((NAME=network2)(LOCAL_LISTENER=PRMY1_LOCAL_NET2)(REMOTE_LISTENER=REMOTE_NET2))' SCOPE=BOTH SID='prmy1'; SQL&gt; alter system set listener_networks='((NAME=network1)(LOCAL_LISTENER=PRMY2_LOCAL_NET1)(REMOTE_LISTENER=REMOTE_NET1))','((NAME=network2)(LOCAL_LISTENER=PRMY2_LOCAL_NET2)(REMOTE_LISTENER=REMOTE_NET2))' SCOPE=BOTH SID='prmy2';  SQL&gt; connect sys\/oracle_4U@prmyfs as sysdba SQL&gt; alter system set local_listener='' SCOPE=BOTH SID='*'; SQL&gt; alter system set remote_listener='' SCOPE=BOTH SID='*'; SQL&gt; alter system set listener_networks='((NAME=network1)(LOCAL_LISTENER=PRMY3_LOCAL_NET1)(REMOTE_LISTENER=REMOTE_NET1))','((NAME=network2)(LOCAL_LISTENER=PRMY3_LOCAL_NET2)(REMOTE_LISTENER=REMOTE_NET2))' SCOPE=BOTH SID='prmyfs1';  SQL&gt; connect sys\/oracle_4U@sby as sysdba SQL&gt; alter system set local_listener='' SCOPE=BOTH SID='*'; SQL&gt; alter system set remote_listener='' SCOPE=BOTH SID='*'; SQL&gt; alter system set listener_networks='((NAME=network1)(LOCAL_LISTENER=SBY1_LOCAL_NET1)(REMOTE_LISTENER=REMOTE_NET1))','((NAME=network2)(LOCAL_LISTENER=SBY1_LOCAL_NET2)(REMOTE_LISTENER=REMOTE_NET2))' SCOPE=BOTH SID='sby1'; SQL&gt; alter system set listener_networks='((NAME=network1)(LOCAL_LISTENER=SBY2_LOCAL_NET1)(REMOTE_LISTENER=REMOTE_NET1))','((NAME=network2)(LOCAL_LISTENER=SBY2_LOCAL_NET2)(REMOTE_LISTENER=REMOTE_NET2))' SCOPE=BOTH SID='sby2';  SQL&gt; connect sys\/oracle_4U@sbyfs as sysdba SQL&gt; alter system set local_listener='' SCOPE=BOTH SID='*'; SQL&gt; alter system set remote_listener='' SCOPE=BOTH SID='*'; SQL&gt; alter system set listener_networks='((NAME=network1)(LOCAL_LISTENER=SBY3_LOCAL_NET1)(REMOTE_LISTENER=REMOTE_NET1))','((NAME=network2)(LOCAL_LISTENER=SBY3_LOCAL_NET2)(REMOTE_LISTENER=REMOTE_NET2))' SCOPE=BOTH SID='sbyfs1'; <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Data Guard<\/h4>\n<p>  \u0421\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u0431\u0440\u043e\u043a\u0435\u0440\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0411\u0414:  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ sqlplus sys\/oracle_4U@prmy as sysdba SQL&gt; alter system set dg_broker_config_file1='+DATA\/prmy\/dg_broker1.dat' scope=both sid='*'; SQL&gt; alter system set dg_broker_config_file2='+FRA\/prmy\/dg_broker2.dat' scope=both sid='*'; SQL&gt; alter system set dg_broker_start=TRUE scope=both sid='*';  SQL&gt; connect sys\/oracle_4U@prmyfs as sysdba SQL&gt; alter system set dg_broker_config_file1='+DATA\/prmyfs\/dg_broker1.dat' scope=both sid='*'; SQL&gt; alter system set dg_broker_config_file2='+FRA\/prmyfs\/dg_broker2.dat' scope=both sid='*'; SQL&gt; alter system set dg_broker_start=TRUE scope=both sid='*';  SQL&gt; connect sys\/oracle_4U@sby as sysdba SQL&gt; alter system set dg_broker_config_file1='+DATA\/sby\/dg_broker1.dat' scope=both sid='*'; SQL&gt; alter system set dg_broker_config_file2='+FRA\/sby\/dg_broker2.dat' scope=both sid='*'; SQL&gt; alter system set dg_broker_start=TRUE scope=both sid='*';  SQL&gt; connect sys\/oracle_4U@sbyfs as sysdba SQL&gt; alter system set dg_broker_config_file1='+DATA\/sbyfs\/dg_broker1.dat' scope=both sid='*'; SQL&gt; alter system set dg_broker_config_file2='+FRA\/sbyfs\/dg_broker2.dat' scope=both sid='*'; SQL&gt; alter system set dg_broker_start=TRUE scope=both sid='*'; <\/code><\/pre>\n<p>  \u0423\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0414\u0411 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u044b \u0432\u0438\u0434\u0430: *_dg:  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ sqlplus sys\/oracle_4U@prmy_dg as sysdba [oracle@prmy1-prmy ~]$ sqlplus sys\/oracle_4U@prmyfs_dg as sysdba [oracle@prmy1-prmy ~]$ sqlplus sys\/oracle_4U@sby_dg as sysdba [oracle@prmy1-prmy ~]$ sqlplus sys\/oracle_4U@sbyfs_dg as sysdba <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e Data Guard.  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ export ORACLE_SID=prmy1 [oracle@prmy1-prmy1 ~]$ dgmgrl \/ DGMGRL&gt; create configuration RAC_DG as primary database is prmy connect identifier is prmy_dg; DGMGRL&gt; edit instance prmy1 on database prmy set PROPERTY StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=prmy1-2-vip.clu-prmy.example.com)(PORT=12001))(CONNECT_DATA=(SERVICE_NAME=prmy_DGMGRL.example.com)(INSTANCE_NAME=prmy1)(SERVER=DEDICATED)))'; DGMGRL&gt; edit instance prmy2 on database prmy set PROPERTY StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=prmy2-2-vip.clu-prmy.example.com)(PORT=12001))(CONNECT_DATA=(SERVICE_NAME=prmy_DGMGRL.example.com)(INSTANCE_NAME=prmy2)(SERVER=DEDICATED)))';  DGMGRL&gt; add far_sync prmyfs as connect identifier is prmyfs_dg;  DGMGRL&gt; add database sby as connect identifier is sby_dg; DGMGRL&gt; edit instance sby1 on database sby set PROPERTY StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sby1-2-vip.sby-cluster.clu-prmy.example.com)(PORT=12001))(CONNECT_DATA=(SERVICE_NAME=sby_DGMGRL.example.com)(INSTANCE_NAME=sby1)(SERVER=DEDICATED)))'; DGMGRL&gt; edit instance sby2 on database sby set PROPERTY StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sby2-2-vip.sby-cluster.clu-prmy.example.com)(PORT=12001))(CONNECT_DATA=(SERVICE_NAME=sby_DGMGRL.example.com)(INSTANCE_NAME=sby2)(SERVER=DEDICATED)))';  DGMGRL&gt; add far_sync sbyfs as connect identifier is sbyfs_dg;  DGMGRL&gt; edit far_sync prmyfs set property maxfailure=1; DGMGRL&gt; edit far_sync sbyfs set property maxfailure=1; DGMGRL&gt; edit far_sync prmyfs set property nettimeout=8; DGMGRL&gt; edit far_sync sbyfs set property nettimeout=8; DGMGRL&gt; edit far_sync prmyfs set property reopensecs=5; DGMGRL&gt; edit far_sync sbyfs set property reopensecs=5;  DGMGRL&gt; enable configuration <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b:  <\/p>\n<pre><code class=\"bash\"> DGMGRL&gt; edit far_sync prmyfs SET PROPERTY RedoRoutes = '(prmy:sby ASYNC)'; DGMGRL&gt; edit database prmy SET PROPERTY RedoRoutes = '(prmy:prmyfs SYNC alt=(sby async fallback))'; DGMGRL&gt; edit far_sync sbyfs SET PROPERTY RedoRoutes = '(sby:prmy ASYNC)'; DGMGRL&gt; edit database sby SET PROPERTY RedoRoutes = '(sby:sbyfs SYNC alt=(prmy async fallback))';  DGMGRL&gt; show configuration verbose Configuration - rac_dg    Protection Mode: MaxPerformance   Members:   prmy   - Primary database     prmyfs - Far sync instance        sby    - Physical standby database      sby    - Physical standby database (alternate of prmyfs)    Members Not Receiving Redo:   sbyfs  - Far sync instance     Properties:     FastStartFailoverThreshold      = '30'     OperationTimeout                = '30'     TraceLevel                      = 'USER'     FastStartFailoverLagLimit       = '30'     CommunicationTimeout            = '180'     ObserverReconnect               = '0'     FastStartFailoverAutoReinstate  = 'TRUE'     FastStartFailoverPmyShutdown    = 'TRUE'     BystandersFollowRoleChange      = 'ALL'     ObserverOverride                = 'FALSE'     ExternalDestination1            = ''     ExternalDestination2            = ''     PrimaryLostWriteAction          = 'CONTINUE'  Fast-Start Failover: DISABLED  Configuration Status: SUCCESS <\/code><\/pre>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 REDO \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0411\u0414 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043d\u0430 far sync prmyfs, \u0430 \u043e\u0442 \u043d\u0435\u0433\u043e \u0443\u0436\u0435 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e \u043d\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 standy sby. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 prmyfs \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435, \u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0441 prmy \u043d\u0430 sby.<\/p>\n<p>  \u041f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u0440\u043e\u043b\u0435\u0439 \u0411\u0414 \u0441\u0445\u0435\u043c\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0430 \u0436\u0435, \u043d\u043e \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c sby-&gt;sbyfs-&gt;prmy \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c sby-&gt;prmy.<\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/h4>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u043e, \u0440\u0430\u0434\u0438 \u0447\u0435\u0433\u043e \u0432\u0441\u0435 \u0438 \u0437\u0430\u0442\u0435\u0432\u0430\u043b\u043e\u0441\u044c \u2014 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c\u0438 RAC \u0438 Data Guard.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u043e\u0439 \u0411\u0414 orcl. \u042d\u0442\u043e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0411\u0414 prmy \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439.  <\/p>\n<pre><code class=\"bash\"> [oracle@prmy1-prmy ~]$ srvctl add service -db prmy -service prodserv1.example.com -role PRIMARY -failovermethod BASIC -failovertype SELECT -failoverdelay 1 -failoverretry 180 -preferred prmy1,prmy2 -pdb orcl -notification TRUE [oracle@prmy1-prmy ~]$ srvctl start service -db prmy -service prodserv1.example.com  [oracle@prmy1-prmy ~]$ sqlplus system\/oracle_4U@prodserv1 SQL&gt; show con_id  CON_ID ------------------------------ 3 <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043c\u044b \u044d\u0442\u043e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438 \u0432 \u0411\u0414 sby, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 PRODSERV1 \u0438\u0437 tnsnames.ora \u0432\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u043c\u0435\u043d\u044b \u0440\u043e\u043b\u0435\u0439.  <\/p>\n<pre><code class=\"bash\"> [oracle@sby1-sby ~]$ srvctl add service -db sby -service prodserv1.example.com -role PRIMARY -failovermethod BASIC -failovertype SELECT -failoverdelay 1 -failoverretry 180 -preferred sby1,sby2 -pdb orcl -notification TRUE. <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0434\u0435\u043c\u043e \u0441\u0442\u0435\u043d\u0434 \u0434\u043b\u044f \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c\u0438 RAC \u0438 Data Guard. \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u00ab\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c\u00bb \u0436\u0435\u043b\u0435\u0437\u0435 \u0441 \u0434\u043e\u0440\u043e\u0433\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p>  \u042d\u0442\u043e\u0442 \u0441\u0442\u0435\u043d\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u043c, \u0432 \u043d\u0435\u043c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0442 Logical Standby, \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 Enterprise Manager&#8217;\u0430 \u0438 \u0442\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f \u0431\u0435\u0437 \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043a\u0430\u0441\u043a\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u0435\u0433\u043e \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u0442\u044c \u0438\u0437 \u043b\u044e\u0431\u043e\u0433\u043e \u0434\u0435\u0448\u0435\u0432\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438.             <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/263723\/\"> http:\/\/habrahabr.ru\/post\/263723\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h4>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0426\u0435\u043b\u044c\u044e \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0442\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0434\u0435\u043c\u043e \u0441\u0442\u0435\u043d\u0434\u0430 \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 Oracle Data Guard \u0438\u0437 \u0443\u0437\u043b\u043e\u0432 Oracle RAC 12.1.0.2.0.<\/p>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0431\u044b \u043c\u043e\u0433 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u043d\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b (7 \u0448\u0442\u0443\u043a), \u0442\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043e\u0444\u0438\u0441\u043d\u044b\u0445 PC.<\/p>\n<p>  \u0418\u0442\u043e\u0433\u043e \u0438\u043c\u0435\u0435\u043c:  <\/p>\n<ol>\n<li>3 PC \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c\u0438: CPU i5, 16 GB RAM<\/li>\n<li>\u041e\u0431\u044b\u0447\u043d\u0430\u044f \u043e\u0444\u0438\u0441\u043d\u0430\u044f \u0441\u0435\u0442\u044c 1Gbit\/s<\/li>\n<\/ol>\n<p>  \u041d\u0430 \u0434\u0432\u0443\u0445 PC \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u044f\u0442\u0441\u044f \u0434\u0432\u0430 \u0441\u0430\u0439\u0442\u0430 Oracle Data Guard, \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e 2 \u0443\u0437\u043b\u0430 Oracle RAC 12c \u0438 \u043e\u0434\u0438\u043d Far Sync \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0438\u0440\u0442\u0443\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445.<\/p>\n<p>  \u041d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u043c PC \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441 Oracle Enterprise Manager Cloud Control 12c Release 5 (12.1.0.5). \u041d\u0430\u0441\u0447\u0435\u0442 EM \u2014 \u0434\u0430\u043b\u044c\u0448\u0435 \u044f \u043e \u043d\u0435\u043c \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443 \u0432\u0432\u0438\u0434\u0443 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u0430 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0430\u044f \u043d\u0435 \u0441 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0435\u043d\u0434\u0430 Data Guard, \u0430 \u0441 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c.<\/p>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 Oracle \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441 \u0438\u0445 \u0441\u0430\u0439\u0442\u0430, \u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u044f \u0432\u044b\u0431\u0440\u0430\u043b Fedora 22 \u0441 qemu-kvm + libvirt + openvswitch. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0433\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u041e\u0421 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Oracle Linux 6.6.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-262438","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=262438"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262438\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}