linux impdp 出现 bash: impdp: command not found

17 篇文章 6 订阅
14 篇文章 1 订阅

impdp 出现 bash: impdp:  command not found解决办法:

[oracle@jrzldb impdp]$ impdp xxyh/xxxxxx directory= dump_file_dir dumpfile=ods.dmp.01.20220420 remap_schema=ods:xxyh remap_tablespace=CZFLCORE_DATA:SJ_DATA table_exists_action=REPLACE logfile=xyh_20230515.log;
bash: impdp: command not found

今天上班导入的时候忽然报错,检查了一下:

1.登录oralce测试

 [root@localhost ~]# sqlplus /nolog
 
 -bash: sqlplus: command not found

找不到sqlplus 可执行文件找不到。 所以我们要去/usr/bin/ 下查看sqlplus 是否存在

2.这种突然报错的,基本都存在。

是环境变量没有生效的原因。所以我们soruce一下,使得马上生效

[oracle@localhost ~]$ source .bash_profile

3.回到Oracle下执行一下这个操作。

再测试就ok了。

[oracle@localhost ~]$ sqlplus /nolog
	SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 11 12:51:24 2009
	
	Copyright (c) 1982, 2005, Oracle.  All rights reserved.
	
	SQL> conn / as sysdba
	
	Connected to an idle instance.
	
	SQL> startup
	
	ORACLE instance started.
	
	Total System Global Area  167772160 bytes
	
	Fixed Size                  1218316 bytes
	
	Variable Size              79694068 bytes
	
	Database Buffers           83886080 bytes
	
	Redo Buffers                2973696 bytes
	
	Database mounted.
	
	Database opened.
	
	SQL>

PS:

还有一种情况,就是你新建的账户没有赋权:

select * from user_role_privs;

 如果没有3、4两条,那么你导入导出也是没法执行的。

grant connect,resource,dba,EXP_FULL_DATABASE, IMP_FULL_DATABASE to xxyh;

重新赋权就可以了。

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值