可用 showmount -e 服务端 ip 来查看可 mount 目录
[root@testdb01 /]#showmount -e 10.1.1.1
export list for 10.1.1.1:
/share (everyone)
2.客户端
--创建共享目录
mkdir /mydump1
--挂载目录
LINUX:
mount -t nfs 10.1.1.1:/share /mydump1
AIX:
mount -V nfs 10.1.1.1:/share /mydump1
挂载不上,显示以下信息
[root@testdb01 /]#mount -V nfs 10.1.1.1:/share /mydump1
mount: 1831-010 server 10.1.1.1 not responding: RPC: 1832-008 Timed out
nfsmnthelp: 1831-019 10.1.1.1: A remote host did not respond within the timeout
period.
mount: retrying
10.1.1.1:/share
nfsmnthelp: 1831-019 10.1.1.1: A remote host did not respond within the timeout
period.
查询相关报错解决办法,可修改参数 nfs_use_reserved_ports 后挂载
nfso -p -o nfs_use_reserved_ports=1
mount 10.1.1.1:/share /mydump1
还是挂载不上
[root@testdb01 /]#nfso -p -o nfs_use_reserved_ports=1
[root@testdb01 /]#mount 10.1.1.1:/share /mydump1
mount: 1831-010 server 10.1.1.1 not responding: RPC: 1832-008 Timed out
nfsmnthelp: 1831-019 10.1.1.1: A remote host did not respond within the timeout
period.
mount: retrying
10.1.1.1:/share
查询中有提到添加 hosts 文件的
在服务端/etc/hosts 文件中添加客户端的 ip 及 hostname
[root@sjzzapp01 ~]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.1.1.1 sjzzapp01-pps sjzzapp01-pps
10.6.140.131 testdb01
再挂载 mount -V nfs 10.1.1.1:/share /mydump1
[root@testdb01 /]#mount -V nfs 10.1.1.1:/share /mydump1
[root@testdb01 /]#df -g
10.1.1.1:/share 2015.86 1653.20 18% 14899 1% /mydump1
3.expdp 数据导出
--导数目录创建及授权
create or replace directory dmp_dir as '/mydump1/dumpdir/teabsdb1';
grant read,write on directory dmp_dir to public;
--导数
expdp \' / as sysdba \' directory=dmp_dir dumpfile=teabsdb_20210621_%U.dump
logfile=teabsdb_20210621_exp.log COMPRESSION=all exclude=statistics PARALLEL=8
full=y cluster=no
导数任务报错
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit
评论