码迷,mamicode.com
首页 > 数据库 > 详细

Oracle11G双机冷备

时间:2017-09-28 01:04:11      阅读:315      评论:0      收藏:0      [点我收藏+]

标签:libev   ror   chmod   import   access   cache   tables   centos 6   pos   

环境:centos5.5 32位 oracle11G

NFS环境:centos6.8mini版

共享方式:nfs

共享路径:/home/oracle

目录权限:755

NFS的搭建

//查看防火墙状态

[root@data ~]# service iptables status

Table: filter

Chain INPUT (policy ACCEPT)

num target prot opt source destination

1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED

2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0

3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0

4 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22

5 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

 

Chain FORWARD (policy ACCEPT)

num target prot opt source destination

1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

 

Chain OUTPUT (policy ACCEPT)

num target prot opt source destination

//防火墙永久关闭

[root@data ~]# chkconfig iptables off

//重起电脑

[root@data ~]# reboot

//查看防火墙状态

[root@data ~]# service iptables status

iptables: Firewall is not running.

//安装NFS所需软件

[root@data ~]# yum -y install nfs-utils rpcbind

Loaded plugins: fastestmirror

Setting up Install Process

base | 3.7 kB 00:00

base/primary_db | 4.7 MB 00:00

extras | 3.4 kB 00:00

extras/primary_db | 29 kB 00:00

updates | 3.4 kB 00:00

updates/primary_db | 3.7 MB 00:01

Resolving Dependencies

--> Running transaction check

---> Package nfs-utils.x86_64 1:1.2.3-75.el6 will be installed

--> Processing Dependency: nfs-utils-lib >= 1.1.0-3 for package: 1:nfs-utils-1.2.3-75.el6.x86_64

--> Processing Dependency: libtirpc >= 0.2.1-11 for package: 1:nfs-utils-1.2.3-75.el6.x86_64

--> Processing Dependency: keyutils >= 1.4-4 for package: 1:nfs-utils-1.2.3-75.el6.x86_64

--> Processing Dependency: python-argparse for package: 1:nfs-utils-1.2.3-75.el6.x86_64

--> Processing Dependency: libgssglue.so.1(libgssapi_CITI_2)(64bit) for package: 1:nfs-utils-1.2.3-75.el6.x86_64

--> Processing Dependency: libgssglue for package: 1:nfs-utils-1.2.3-75.el6.x86_64

--> Processing Dependency: libevent for package: 1:nfs-utils-1.2.3-75.el6.x86_64

--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.2.3-75.el6.x86_64

--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.2.3-75.el6.x86_64

--> Processing Dependency: libgssglue.so.1()(64bit) for package: 1:nfs-utils-1.2.3-75.el6.x86_64

--> Processing Dependency: libevent-1.4.so.2()(64bit) for package: 1:nfs-utils-1.2.3-75.el6.x86_64

---> Package rpcbind.x86_64 0:0.2.0-13.el6_9.1 will be installed

--> Running transaction check

---> Package keyutils.x86_64 0:1.4-5.el6 will be installed

---> Package libevent.x86_64 0:1.4.13-4.el6 will be installed

---> Package libgssglue.x86_64 0:0.1-11.el6 will be installed

---> Package libtirpc.x86_64 0:0.2.1-13.el6_9 will be installed

---> Package nfs-utils-lib.x86_64 0:1.1.5-13.el6 will be installed

---> Package python-argparse.noarch 0:1.2.1-2.1.el6 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

=============================================================================================================================================================================================

Package Arch Version Repository Size

=============================================================================================================================================================================================

Installing:

nfs-utils x86_64 1:1.2.3-75.el6 base 336 k

rpcbind x86_64 0.2.0-13.el6_9.1 updates 51 k

Installing for dependencies:

keyutils x86_64 1.4-5.el6 base 39 k

libevent x86_64 1.4.13-4.el6 base 66 k

libgssglue x86_64 0.1-11.el6 base 23 k

libtirpc x86_64 0.2.1-13.el6_9 updates 82 k

nfs-utils-lib x86_64 1.1.5-13.el6 base 71 k

python-argparse noarch 1.2.1-2.1.el6 base 48 k

 

Transaction Summary

=============================================================================================================================================================================================

Install 8 Package(s)

 

Total download size: 715 k

Installed size: 2.0 M

Downloading Packages:

(1/8): keyutils-1.4-5.el6.x86_64.rpm | 39 kB 00:00

(2/8): libevent-1.4.13-4.el6.x86_64.rpm | 66 kB 00:00

(3/8): libgssglue-0.1-11.el6.x86_64.rpm | 23 kB 00:00

(4/8): libtirpc-0.2.1-13.el6_9.x86_64.rpm | 82 kB 00:00

(5/8): nfs-utils-1.2.3-75.el6.x86_64.rpm | 336 kB 00:00

(6/8): nfs-utils-lib-1.1.5-13.el6.x86_64.rpm | 71 kB 00:00

(7/8): python-argparse-1.2.1-2.1.el6.noarch.rpm | 48 kB 00:00

(8/8): rpcbind-0.2.0-13.el6_9.1.x86_64.rpm | 51 kB 00:00

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Total 527 kB/s | 715 kB 00:01

warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Importing GPG key 0xC105B9DE:

Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>

Package: centos-release-6-8.el6.centos.12.3.x86_64 (@anaconda-CentOS-201605220104.x86_64/6.8)

From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : libgssglue-0.1-11.el6.x86_64 1/8

Installing : libtirpc-0.2.1-13.el6_9.x86_64 2/8

Installing : rpcbind-0.2.0-13.el6_9.1.x86_64 3/8

Installing : python-argparse-1.2.1-2.1.el6.noarch 4/8

Installing : libevent-1.4.13-4.el6.x86_64 5/8

Installing : keyutils-1.4-5.el6.x86_64 6/8

Installing : nfs-utils-lib-1.1.5-13.el6.x86_64 7/8

Installing : 1:nfs-utils-1.2.3-75.el6.x86_64 8/8

Verifying : rpcbind-0.2.0-13.el6_9.1.x86_64 1/8

Verifying : 1:nfs-utils-1.2.3-75.el6.x86_64 2/8

Verifying : libtirpc-0.2.1-13.el6_9.x86_64 3/8

Verifying : keyutils-1.4-5.el6.x86_64 4/8

Verifying : libevent-1.4.13-4.el6.x86_64 5/8

Verifying : nfs-utils-lib-1.1.5-13.el6.x86_64 6/8

Verifying : libgssglue-0.1-11.el6.x86_64 7/8

Verifying : python-argparse-1.2.1-2.1.el6.noarch 8/8

 

Installed:

nfs-utils.x86_64 1:1.2.3-75.el6 rpcbind.x86_64 0:0.2.0-13.el6_9.1

 

Dependency Installed:

keyutils.x86_64 0:1.4-5.el6 libevent.x86_64 0:1.4.13-4.el6 libgssglue.x86_64 0:0.1-11.el6 libtirpc.x86_64 0:0.2.1-13.el6_9 nfs-utils-lib.x86_64 0:1.1.5-13.el6

python-argparse.noarch 0:1.2.1-2.1.el6

 

Complete!

[root@data ~]# chmod 666 /home/oracle/

[root@data ~]# vim /etc/exports

-bash: vim: command not found

[root@data ~]# yum install vim

Loaded plugins: fastestmirror

Setting up Install Process

Determining fastest mirrors

* base: centos.ustc.edu.cn

* extras: mirror.lzu.edu.cn

* updates: centos.ustc.edu.cn

Resolving Dependencies

--> Running transaction check

---> Package vim-enhanced.x86_64 2:7.4.629-5.el6_8.1 will be installed

--> Processing Dependency: vim-common = 2:7.4.629-5.el6_8.1 for package: 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64

--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64

--> Processing Dependency: libperl.so()(64bit) for package: 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64

--> Processing Dependency: libgpm.so.2()(64bit) for package: 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64

--> Running transaction check

---> Package gpm-libs.x86_64 0:1.20.6-12.el6 will be installed

---> Package perl.x86_64 4:5.10.1-144.el6 will be installed

--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-144.el6.x86_64

--> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-144.el6.x86_64

--> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-144.el6.x86_64

---> Package perl-libs.x86_64 4:5.10.1-144.el6 will be installed

---> Package vim-common.x86_64 2:7.4.629-5.el6_8.1 will be installed

--> Processing Dependency: vim-filesystem for package: 2:vim-common-7.4.629-5.el6_8.1.x86_64

--> Running transaction check

---> Package perl-Module-Pluggable.x86_64 1:3.90-144.el6 will be installed

---> Package perl-Pod-Simple.x86_64 1:3.13-144.el6 will be installed

--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-144.el6.x86_64

---> Package perl-version.x86_64 3:0.77-144.el6 will be installed

---> Package vim-filesystem.x86_64 2:7.4.629-5.el6_8.1 will be installed

--> Running transaction check

---> Package perl-Pod-Escapes.x86_64 1:1.04-144.el6 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

=============================================================================================================================================================================================

Package Arch Version Repository Size

=============================================================================================================================================================================================

Installing:

vim-enhanced x86_64 2:7.4.629-5.el6_8.1 base 1.0 M

Installing for dependencies:

gpm-libs x86_64 1.20.6-12.el6 base 28 k

perl x86_64 4:5.10.1-144.el6 base 10 M

perl-Module-Pluggable x86_64 1:3.90-144.el6 base 41 k

perl-Pod-Escapes x86_64 1:1.04-144.el6 base 33 k

perl-Pod-Simple x86_64 1:3.13-144.el6 base 213 k

perl-libs x86_64 4:5.10.1-144.el6 base 579 k

perl-version x86_64 3:0.77-144.el6 base 52 k

vim-common x86_64 2:7.4.629-5.el6_8.1 base 6.7 M

vim-filesystem x86_64 2:7.4.629-5.el6_8.1 base 15 k

 

Transaction Summary

=============================================================================================================================================================================================

Install 10 Package(s)

 

Total download size: 19 M

Installed size: 59 M

Is this ok [y/N]: y

Downloading Packages:

(1/10): gpm-libs-1.20.6-12.el6.x86_64.rpm | 28 kB 00:00

(2/10): perl-5.10.1-144.el6.x86_64.rpm | 10 MB 00:03

(3/10): perl-Module-Pluggable-3.90-144.el6.x86_64.rpm | 41 kB 00:00

(4/10): perl-Pod-Escapes-1.04-144.el6.x86_64.rpm | 33 kB 00:00

(5/10): perl-Pod-Simple-3.13-144.el6.x86_64.rpm | 213 kB 00:00

(6/10): perl-libs-5.10.1-144.el6.x86_64.rpm | 579 kB 00:00

(7/10): perl-version-0.77-144.el6.x86_64.rpm | 52 kB 00:00

(8/10): vim-common-7.4.629-5.el6_8.1.x86_64.rpm | 6.7 MB 00:02

(9/10): vim-enhanced-7.4.629-5.el6_8.1.x86_64.rpm | 1.0 MB 00:00

(10/10): vim-filesystem-7.4.629-5.el6_8.1.x86_64.rpm | 15 kB 00:00

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Total 2.9 MB/s | 19 MB 00:06

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : 1:perl-Pod-Escapes-1.04-144.el6.x86_64 1/10

Installing : 4:perl-libs-5.10.1-144.el6.x86_64 2/10

Installing : 1:perl-Pod-Simple-3.13-144.el6.x86_64 3/10

Installing : 1:perl-Module-Pluggable-3.90-144.el6.x86_64 4/10

Installing : 3:perl-version-0.77-144.el6.x86_64 5/10

Installing : 4:perl-5.10.1-144.el6.x86_64 6/10

Installing : gpm-libs-1.20.6-12.el6.x86_64 7/10

Installing : 2:vim-filesystem-7.4.629-5.el6_8.1.x86_64 8/10

Installing : 2:vim-common-7.4.629-5.el6_8.1.x86_64 9/10

Installing : 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64 10/10

Verifying : 3:perl-version-0.77-144.el6.x86_64 1/10

Verifying : 4:perl-libs-5.10.1-144.el6.x86_64 2/10

Verifying : 2:vim-common-7.4.629-5.el6_8.1.x86_64 3/10

Verifying : 4:perl-5.10.1-144.el6.x86_64 4/10

Verifying : 2:vim-filesystem-7.4.629-5.el6_8.1.x86_64 5/10

Verifying : 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64 6/10

Verifying : 1:perl-Pod-Simple-3.13-144.el6.x86_64 7/10

Verifying : 1:perl-Pod-Escapes-1.04-144.el6.x86_64 8/10

Verifying : 1:perl-Module-Pluggable-3.90-144.el6.x86_64 9/10

Verifying : gpm-libs-1.20.6-12.el6.x86_64 10/10

 

Installed:

vim-enhanced.x86_64 2:7.4.629-5.el6_8.1

 

Dependency Installed:

gpm-libs.x86_64 0:1.20.6-12.el6 perl.x86_64 4:5.10.1-144.el6 perl-Module-Pluggable.x86_64 1:3.90-144.el6 perl-Pod-Escapes.x86_64 1:1.04-144.el6

perl-Pod-Simple.x86_64 1:3.13-144.el6 perl-libs.x86_64 4:5.10.1-144.el6 perl-version.x86_64 3:0.77-144.el6 vim-common.x86_64 2:7.4.629-5.el6_8.1

vim-filesystem.x86_64 2:7.4.629-5.el6_8.1

 

Complete!

[root@data ~]# vim /etc/exports

[root@data ~]# exportfs -r

[root@data ~]# yum -y install portmap

Loaded plugins: fastestmirror

Setting up Install Process

Loading mirror speeds from cached hostfile

* base: centos.ustc.edu.cn

* extras: mirror.lzu.edu.cn

* updates: centos.ustc.edu.cn

Package rpcbind-0.2.0-13.el6_9.1.x86_64 already installed and latest version

Nothing to do

[root@data ~]# service portmap start

portmap: unrecognized service

[root@data ~]# /etc/init.d/rpcbind start

Starting rpcbind: [ OK ]

[root@data ~]# /etc/init.d/nfslock start

Starting NFS statd: [ OK ]

[root@data ~]# /etc/init.d/nfs start

Starting NFS services: [ OK ]

Starting NFS mountd: [ OK ]

Starting NFS daemon: [ OK ]

Starting RPC idmapd: [ OK ]

[root@data ~]# chkconfig rpcbind on

[root@data ~]# chkconfig nfslock on

[root@data ~]# chkconfig nfs on

[root@data ~]# ps aux|grep nfs

root 1521 0.0 0.0 0 0 ? S 03:31 0:00 [nfsd4]

root 1522 0.0 0.0 0 0 ? S 03:31 0:00 [nfsd4_callbacks]

root 1523 0.0 0.0 0 0 ? S 03:31 0:00 [nfsd]

root 1524 0.0 0.0 0 0 ? S 03:31 0:00 [nfsd]

root 1525 0.0 0.0 0 0 ? S 03:31 0:00 [nfsd]

root 1526 0.0 0.0 0 0 ? S 03:31 0:00 [nfsd]

root 1527 0.0 0.0 0 0 ? S 03:31 0:00 [nfsd]

root 1528 0.0 0.0 0 0 ? S 03:31 0:00 [nfsd]

root 1529 0.0 0.0 0 0 ? S 03:31 0:00 [nfsd]

root 1530 0.0 0.0 0 0 ? S 03:31 0:00 [nfsd]

root 1568 0.0 0.0 103312 876 pts/0 S+ 03:32 0:00 grep nfs

[root@data ~]#

[root@data ~]#

[root@data ~]#

[root@data ~]# ls

anaconda-ks.cfg install.log install.log.syslog

[root@data ~]# cd /home/

[root@data home]# stat ./oracle/

File: `./oracle/‘

Size: 4096 Blocks: 8 IO Block: 4096 directory

Device: 801h/2049d Inode: 525803 Links: 3

Access: (0666/drw-rw-rw-) Uid: ( 500/ UNKNOWN) Gid: ( 500/ UNKNOWN)

Access: 2017-09-24 03:58:41.970399715 -0400

Modify: 2017-09-24 03:56:26.086403454 -0400

Change: 2017-09-24 03:56:26.086403454 -0400

[root@data home]# chmod 755 /home/oracle/

[root@data home]#

Socket error Event: 32 Error: 10053.

Connection closing...Socket close.

 

Connection closed by foreign host.

 

Disconnected from remote host(data) at 11:48:38.

 

Type `help‘ to learn how to use Xshell prompt.

[d:\~]$

 

Connecting to 192.168.1.4:22...

 

Type `help‘ to learn how to use Xshell prompt.

[d:\~]$

 

Connecting to 192.168.1.4:22...

Connection established.

To escape to local shell, press ‘Ctrl+Alt+]‘.

 

WARNING! The remote SSH server rejected X11 forwarding request.

Last login: Sun Sep 24 03:22:14 2017 from 192.168.1.254

[root@data ~]# cd /home/

[root@data home]# stat ./

File: `./‘

Size: 4096 Blocks: 8 IO Block: 4096 directory

Device: 801h/2049d Inode: 523265 Links: 3

Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)

Access: 2017-09-24 03:23:55.251405549 -0400

Modify: 2017-09-24 03:19:17.766292460 -0400

Change: 2017-09-24 03:19:17.766292460 -0400

[root@data home]# cd oracle/

[root@data oracle]# stat ./

File: `./‘

Size: 4096 Blocks: 8 IO Block: 4096 directory

Device: 801h/2049d Inode: 525803 Links: 3

Access: (0666/drw-rw-rw-) Uid: ( 500/ UNKNOWN) Gid: ( 500/ UNKNOWN)

Access: 2017-09-24 04:01:35.528404860 -0400

Modify: 2017-09-24 04:01:01.546402917 -0400

Change: 2017-09-24 04:01:25.061396879 -0400

[root@data oracle]# cd ..

[root@data home]# chmod -R 777 ./oracle/

[root@data home]# stat ./

File: `./‘

Size: 4096 Blocks: 8 IO Block: 4096 directory

Device: 801h/2049d Inode: 523265 Links: 3

Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)

Access: 2017-09-24 03:23:55.251405549 -0400

Modify: 2017-09-24 03:19:17.766292460 -0400

Change: 2017-09-24 03:19:17.766292460 -0400

[root@data home]# chmod -R 755 ./oracle/

 

Oracle11G双机冷备

标签:libev   ror   chmod   import   access   cache   tables   centos 6   pos   

原文地址:http://www.cnblogs.com/lightsoft/p/7604643.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!