你好,游客 登錄 注冊 搜索
背景:
閱讀新聞

Oracle 11g雙機冷備

[日期:2017-10-20] 來源:Linux社區  作者:lightsoft [字體: ]

環境:CentOS 5.5 32位 Oracle11G

NFS環境:CentOS 6.8mini版

共享方式:nfs

共享路徑:/home/oracle

目錄權限:755

NFS的搭建

//查看防火墻狀態

[[email protected] ~]# 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

//防火墻永久關閉

[[email protected] ~]# chkconfig iptables off

//重起電腦

[[email protected] ~]# reboot

//查看防火墻狀態

[[email protected] ~]# service iptables status

iptables: Firewall is not running.

//安裝NFS所需軟件

[[email protected] ~]# 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) <[email protected]>

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!

[[email protected] ~]# chmod 666 /home/oracle/

[[email protected] ~]# vim /etc/exports

-bash: vim: command not found

[[email protected] ~]# 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!

[[email protected] ~]# vim /etc/exports

[[email protected] ~]# exportfs -r

[[email protected] ~]# 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

[[email protected] ~]# service portmap start

portmap: unrecognized service

[[email protected] ~]# /etc/init.d/rpcbind start

Starting rpcbind: [ OK ]

[[email protected] ~]# /etc/init.d/nfslock start

Starting NFS statd: [ OK ]

[[email protected] ~]# /etc/init.d/nfs start

Starting NFS services: [ OK ]

Starting NFS mountd: [ OK ]

Starting NFS daemon: [ OK ]

Starting RPC idmapd: [ OK ]

[[email protected] ~]# chkconfig rpcbind on

[[email protected] ~]# chkconfig nfslock on

[[email protected] ~]# chkconfig nfs on

[[email protected] ~]# 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

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]# ls

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

[[email protected] ~]# cd /home/

[[email protected] 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

[[email protected] home]# chmod 755 /home/oracle/

[[email protected] 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

[[email protected] ~]# cd /home/

[[email protected] 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

[[email protected] home]# cd oracle/

[[email protected] 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

[[email protected] oracle]# cd ..

[[email protected] home]# chmod -R 777 ./oracle/

[[email protected] 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

[[email protected] home]# chmod -R 755 ./oracle/

更多Oracle相關信息見Oracle 專題頁面 http://www.nmzech.live/topicnews.aspx?tid=12

本文永久更新鏈接地址http://www.nmzech.live/Linux/2017-10/147823.htm

linux
相關資訊       Oracle 11g雙機冷備  Oracle 11g冷備 
本文評論   查看全部評論 (0)
表情: 表情 姓名: 字數

       

評論聲明
  • 尊重網上道德,遵守中華人民共和國的各項有關法律法規
  • 承擔一切因您的行為而直接或間接導致的民事或刑事法律責任
  • 本站管理人員有權保留或刪除其管轄留言中的任意內容
  • 本站有權在網站內轉載或引用您的評論
  • 參與本評論即表明您已經閱讀并接受上述條款
北京快乐8走势图彩客网