directory 'TM43'도 제대로 설정을 해놨었으며, 아래  path를 확인해보면 모든게 정상적인데도 불구하고

파일을 읽을수 없다느니 이것저것 에러를 뱉어 냈다.


[root@test oracle]# impdp admin/admin dumpfile=spidertm_log.dmp directory=TM43

Import: Release 11.2.0.1.0 - Production on Tue May 17 10:28:08 2016


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

ORA-39001: invalid argument value

ORA-39000: bad dump file specification

ORA-31640: unable to open dump file "/data/backup/oracle/spidertm_log.dmp" for read

ORA-27041: unable to open file

Linux-x86_64 Error: 13: Permission denied

Additional information: 9

 


너무 단순한 문제인데도 불구하고 계속 directory에 문제가 있지 않을까? 라고 고민을 하는 바람에 엉뚱한 삽질만.... ㄷㄷㄷ


너무 간단하게 해결되었다. 실제 해당 dmp파일을 gzip으로 압축하는 과정이 있는데 해당 압축을 푸는 과정에서


읽기 쓰기 권한이 root에게만 설정이 되어버렸다.


-rw------- 1 root   root     765952 2016-05-17 10:27 spidertm_log.dmp 


즉 오라클은 읽을수 조차 없었던것이다. 해당 값을 수정하고 다시 실행하면



[root@test oracle]# chmod 755 spidertm_log.dmp

[root@test oracle]# impdp admin/admin dumpfile=spidertm_log.dmp directory=TM43


Import: Release 11.2.0.1.0 - Production on Tue May 17 10:37:55 2016


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Master table "ADMIN"."SYS_IMPORT_FULL_01" successfully loaded/unloaded

Starting "ADMIN"."SYS_IMPORT_FULL_01":  admin/******** dumpfile=spidertm_log.dmp directory=TM43

Processing object type TABLE_EXPORT/TABLE/TABLE

Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

. . imported "ADMIN"."SPIDERTM_LOG"                   647.0 KB    5026 rows

Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

Job "ADMIN"."SYS_IMPORT_FULL_01" successfully completed at 10:37:57



이와 같이 정상적으로 import 됨을 알수 있다.

'Programer > DB' 카테고리의 다른 글

ORACLE expdp 설정시 where 의 to_date, to_char 설정 방법  (0) 2015.02.12
ORA-00020 : maximum number of processes(xxx) exceeded  (0) 2015.01.29
ORA-12505 에러  (0) 2013.01.17
tcpdump 사용법  (0) 2012.08.14
TNS-12555: TNS:permission denied  (0) 2012.04.16