Impdp: looks right, but still getting ORA-39087: directory name invalid

This is fairly mysterious, particularly since I've done this many other times without problems.
I created the directory C:\OracleImportTest on the server's filesystem, created a corresponding directory object DP_DIR in Oracle, and granted my user read and write access to it. I've been staring at it and trying different things all morning, but I still get the following results:
C:\test>impdp cgernon/**** DIRECTORY=dp_dir SERVICE_NAME=test1 DUMPFILE=export.dmp LOGFILE=import.log
Import: Release 11.1.0.6.0 - Production on Friday, 27 May, 2011 12:01:08
Copyright (c) 2003, 2007, Oracle.  All rights reserved.
Connected to: Oracle Database 11g Release 11.1.0.6.0 - Production
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39087: directory name DP_DIR is invalid"But Mercurial!" you say, "surely you screwed something up setting up the directory and either it doesn't exist or you don't have access to it!" I would be the first to agree that is the most likely cause of the problem, but performing the following queries to double-check leaves me in a state of complete confusion:
select * from all_directories;
OWNER DIRECTORY_NAME DIRECTORY_PATH
SYS   DP_DIR         C:\OracleImportTest                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
select * from user_tab_privs where table_name = 'DP_DIR';
GRANTEE OWNER TABLE_NAME GRANTOR PRIVILEGE GRANTABLE HIERARCHY
CGERNON SYS   DP_DIR     SYS     READ      NO        NO       
CGERNON SYS   DP_DIR     SYS     WRITE     NO        NO        Does anyone know of any other conditions that can trigger this error, or see anything I'm missing here? I am thoroughly mystified. Thanks!

Good suggestion, but I'm still getting the same error ... using that command, as typed above.
HOWEVER, changing the command as follows works:
impdp cgernon/****@test1 DIRECTORY=dp_dir DUMPFILE=export.dmp LOGFILE=import.logWhich brings up another question. In the past, I've used the SERVICE_NAME option to specify the TNS Name for the database instance I want to connect to. Is that not what this option actually represents? And if not, why was it working for me in the past?
At this point, I guess my original problem is resolved, but if anyone can explain the SERVICE_NAME option to me, I would appreciate it - thanks!

Similar Messages

  • Rman transportable tablespace ORA-39087: directory name is invalid

    Hello all,
    We are trying to restore a backup of a tablepace using RMAN's TRANSPORTABLE TABLESPACE command. I created the director in oracle (and it exists on the server), granted privs yet it fails with ORA-39087: directory name is invalid. It seems to fail at the end. Here's my steps, does anyone know how to fix? Thanks in advance for your time!
    Dave
    CREATE DIRECTORY ARCH_DIR as '/opt/oracle/arch';
    GRANT IMP_FULL_DB, EXP_FULL_DB TO SYS, RMAN, SYSTEM;
    GRANT READ, WRITE ON DIRECTORY ARCH_DIR TO SYS, RMAN, SYSTEM;
    export ORACLE_SID=ADMIN_P1
    rman target / catalog rman/rmanpassword@mydb
    TRANSPORT TABLESPACE REPORTER
    TABLESPACE DESTINATION '/opt/oracle/arch'
    AUXILIARY DESTINATION '/opt/oracle/arch'
    UNTIL SCN 2144439724
    DATAPUMP DIRECTORY ARCH_DIR
    DUMP FILE 'reporter.dmp'
    IMPORT SCRIPT 'reporter.imp'
    EXPORT LOG 'reporter.log';

    Creating a directory object inside the database does not create anything in the operating system. My guess is that the physical directory, with appropriate permissions, does not exist.

  • Partitioning option enabled but still getting ORA-00439

    Hello,
    I'm facing a weird situation. I'm trying to import some partitioned tables on an instance, and it fails with the following error:
    IMP-00003: ORACLE error 439 encountered
    ORA-00439: feature not enabled: Partitioning
    However when I check v$option it seems to be available:
    Partitioning   TRUE
    I'm using Oracle Enterprise server 10.2.0.3 64bit on Linux RedHat 4.5 x86_64
    Anyone can help me?
    Regards, and thanks in advance.

    Thanks all for your responses. Eventually, I reinstalled Oracle software and everything went fine then.
    What I do not come to understand is why v$option reported Partitioning as enabled when it really was not...
    Once again , thanks a lot.
    Fran.

  • Setup seems right but still TNS-12535: TNS:operation timed out

    I have Oracle express Edition installed on Fedora 4. I know the listener is started and believe the tnsnames.ora is configured properly but still get a timout when I try to connect with SQL*Plus. I am able to get into SQL with tue GUI tools but want to be able to get into SQL*Plus so I can refresh my skills with writing shell scripts. The only thing I can think is that some port is blocked somewho. I get this timeout when I start a terminal session directly on the computer. I think my environment variables are correct or I would get a different error.

    Positive sign ... when going into sqlplus on the same machine as the database AND not using the '@xe', you are bypassing the listener entirely.
    So
    1) the tnsnames.ora (in $ORACLE_HOME/network/admin) needs to have an appropriate entry (say 'xe') that tells Oracle Network to 'find' the database named 'something' on 'host such and such' (as resolved by /etc/hosts or by DNS) using the listener that is listening on 'port so and so'.
    Example:
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = fuzzy)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
      )2) The listener needs to be up
    pop2@fuzzy:~> su - oracle
    Password:
    oracle@fuzzy:~> . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
    oracle@fuzzy:~> lsnrctl start
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 20-JUN-2006 21:35:36
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Starting /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Log messages written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fuzzy.forbrichcomputing.ca)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                20-JUN-2006 21:35:36
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File         /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fuzzy.forbrichcomputing.ca)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    oracle@fuzzy:~> ps -ef | grep lsnr                                       
    oracle    5882     1  0 21:35 ?        00:00:00 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr LISTENER -inherit
    oracle    5901  5840  0 21:40 pts/1    00:00:00 grep lsnr
    oracle@fuzzy:~> 3) The database needs to be registered to the listener and hopefully the listener will ACK the database existence.
    oracle@fuzzy:~> sqlplus system/oracle
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jun 20 21:37:59 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> alter system register;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 20-JUN-2006 21:38:22
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                20-JUN-2006 21:35:36
    Uptime                    0 days 0 hr. 2 min. 45 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File         /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fuzzy.forbrichcomputing.ca)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fuzzy.forbrichcomputing.ca)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XE" has 1 instance(s).
      Instance "XE", status READY, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
      Instance "XE", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
      Instance "XE", status READY, has 1 handler(s) for this service...
    The command completed successfully
    oracle@fuzzy:~>                                       The above was done on
    oracle@fuzzy:~> uname -a
    Linux fuzzy 2.6.16.13-4-default #1 Wed May 3 04:53:23 UTC 2006 i686 i686 i386 GNU/Linux
    oracle@fuzzy:~> cat /etc/issue
    Welcome to SUSE LINUX 10.1 (i586) - Kernel \r (\l).
    oracle@fuzzy:~>                         Hope that helps

  • I keep getting a error message when I open iTunes asking me to reinstall the 64 bit version. I have reinstalled but still get the message.

    When I open iTunes I keep getting a error message asking me to reinstall iTunes 64 bit version. I have reinstalled but still get the message. Does anyone know a fix for this?

    This is obviously a problem apple! Please look at your community boards and see that a number of people have issues with the latest update and sort out.
    I have tried a number of times to install the update and have failed getting the same message as you. Tried with the 32 bit instead & no luck. Ive come on here to see if anyone else has a solution & found we all have the same problem. Someone else tried the old uninstall reinstall trick to no avail. Please sort this out apple!!

  • How received the following error message:  iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 998).  I did what was requested and reinstalled iTunes, but still get this error message.  Help!

    My Toshiba laptop just recently started showing the the following error message when I try to open iTunes: " iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 998)".  I did what was requested and reinstalled iTunes, but still get this error message.  Help!

    b noir I never got any message about an entry point
    Many thanks. If we're looking at a "naked" Error 7, I'd start with box two in the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • ITunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5). I have uninstalled in correct order and reinstalled but still getting same error message. Any help??

    iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5). I have uninstalled in correct order and reinstalled but still getting same error message. Any help??

    Take a look at iTunes for Windows: "Error 7" message when opening iTunes. Perhaps your .NET Framework needs a repair.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • HT1222 I get the message that there are items that I bought in tunes that have not been transfered. I syncronize my ipad, but still get the sa,e message. what can I do?

    I am trying to update my ipad. When I start the process, I get the message " there are items bought in itunes that were not transfered. I synchronized my ipad, but still get the same message. What can I do?

    I assume that this means items that haven't been transferred from the iPad into iTunes.
    Connect the iPad to your PC and launch iTunes. Right click on the iPad name on the left side under "Devices" and select Transfer Purchases from the pop up window. Then sync one more time. Then after that, right click on the iPad name again and select - Backup. After that process completes then you should be OK.

  • I'm trying to upgrade to itunes 10.x on Windows 7 Pro.  The installation stuck at the stage "Registering iTunes automation server".  I removed the Antivirus software and re-install iTunes again.  But still get same problem.  Any solution?

    I was trying to upgrade to itunes 10.x on Windows 7 Pro.  The installation stuck at the stage "Registering iTunes automation server".  I removed the Antivirus software and re-install iTunes again.  But still get same problem.  Any solution?
    JA

    Peter Hah
    After spending another two days on pinning down the iTunes 10.5 blank store page problem, here's the solution to be found: https://discussions.apple.com/thread/3372617?start=0&tstart=0
    Look out for "japiohelp".
    In short:
    a) press Windows key + "R", enter "cmd", and press Ctrl+Shift+Enter (= runs as admin)
    b) enter "netsh winsock reset" and pres enter
    c) reboot the computer
    and Bob's your uncle.
    P.

  • I downloaded 11.1 but now can't access the store, can only view my library. I've reinstalled but still get a blank, white screen when I try to go to the itunes store. How can I get to the store for purchases?

    I downloaded 11.1 but now can't access the store, can only view my library. I've reinstalled but still get a blank, white screen when I try to go to the itunes store. How can I get to the store for purchases?

    In iTunes prefs>Store - is the Store check box unchecked?
    Did you repair pemissions with Disk Utility?
    MJ

  • When I try to open Firefox 3.6 (Mac) by clicking on the icon, I get this message: "Close Firefox: A copy of Firefox is already open. Only one copy of Firefox can be open at a time." I've removed older versions and restarted, but still get this message. Wh

    I've just downloaded Firefox 3.6 (Mac). When I attempt to open, this message pops up: "Close Firefox: A copy of Firefox is already open. Only one copy of Firefox can be open at a time." I've removed older versions and restarted, but still get this message. What's going on?
    == This happened ==
    Every time Firefox opened
    == after I downloaded the latest version. ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    You might find your solution in [http://kb.mozillazine.org/Profile_in_use this article].

  • Ever since updating to new OS, my iphone won't sync to itunes. When I plug in the phone to the PC, it says I need to update itunes to 10.6.3 or later. I did, but still get the same error message.

    Ever since updating to new OS, my iphone won't sync to itunes. When I plug in the phone to the PC, dialog box says I need to update itunes to 10.6.3 or later. I did that update, but still get the same error message.
    Can anyone offer suggestions?
    Thanks!

    Since it told me to update, I updated to 10.7.
    Then when I plugged in the phone again, it gave the same message that I need to update itunes.

  • When I start iTunes I get the following message. "A required iTunes component is not installed. Please repair or reinstall iTunes (-42404)" I have installed the latest version of iTunes but still get this message. Can anyone help.

    When I start iTunes I get the following message. "A required iTunes component is not installed. Please repair or reinstall iTunes (-42404)". I have installed the latest version of iTunes but still get this message. Can anyone help?

    Hello mustangcim243,
    iTunes has various components bundled with it that it requires for general usage. I advise that we completely remove iTunes and all of these related components, verify that they have been removed, then reinstall. To do so, please follow the steps in this article:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/HT1923
    Note: it is important to remove the 7 components in order. Uninstalling these components in a different order, or only uninstalling some of these components may have unintended affects.
    If the above does not resolve your issue, I recommend we reset the SC Info folder:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    (See Step 4: Remove the SC Info folder)
    Thanks,
    Matt M.

  • When syncing with itunes, got error message saying had error and now ipad2 will not do anything other than showing the USB cable with arrow pointing to Itunes on screen.  have done the reset and restart, but still get same thing.

    when syncing with itunes, got error message saying had error and now ipad2 will not do anything other than showing the USB cable with arrow pointing to Itunes on screen.  have done the reset and restart, but still get same thing.  Ipad does not show up in itunes even though cable plugged in.  Have shut down and restarted Windows 7 computer.

    I had done all of that to no avail.  I did call Apple Tech Support and after he suggested I try a USB port in the rear of the Win 7 computer, things starting working again.  I had tried switching the USB port at the front of the machine but that had not helped.  Everything is good to go again.  thanks for  your reply

  • I suddenly am unable to retrieve my emails.  I discussed this with my Internet provider, but still get an error message and can't access my emails.  Any suggestions???

    I am unable to retrieve my emails since yesterday.  I called Time Warner Cable, my Internet provider, but they could not help me; they stated that the settings had changed, since they were upgrading.  I adjusted the settings, but still get an error message: 
              Alert
              There may be a problem with the mail server or network.  Verify the settings for account "Mail 1" or try again.
              The server returned the error:  The connection to the server "smtp.roadrunner.com" on port 110 timed out.
    I changed the server, and the port, as Time Warner Cable tech rep recommended, but to no avail.  They recommended I delete my current email account and recreate it, but that I check with Apple first, because I might lose my contact list (and any email messages I'd previously saved!?).  They suggested Apple might be able to tell me how to not lose the contacts, emails, profile.
    Any help would be appreciated. 

    Hi, what Interface are you using, & which one are you checking?
    Each Interface will have it's own settings.
    Though all of these steps may or may not be needed, I'm including them all.
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    10.4 instructions...
    Is that Interface dragged to the top of Network>Show:>Network Port Configurations.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

Maybe you are looking for

  • FM / BAPI Inbound delivery creation for a Purchase Order without material

    Dear All, I have a requirement to create a Inbound Delivery for a Purchase order without material number. The Purchase Order has only Material text and no material number. Please let me know a BAPI or FM to create inbound delivery in this case where

  • Using Power Query in Excel for Power BI Report with OData Feedfack

    I am trying to get the data into Excel Power Query from Dynamics CRM 2013 using OData Feedback. Every thing works fine but the data that I retrieve in Power Query Editor shows columns as Record and when I expand it by selecting Value option shown it

  • Database Restarting

    HI, Oracle database version 9.2.0.4: O/S Version :SuSE Linux Enterprise Server 9 (x86_64) Around last week the database was restarting and it was showing in the log file that "Restarting background process QMN0". So what i did was I changed the AQ_TM

  • One to one relationship modelling

    Hi all How to model a one to one relationship? i have a scenario where i had to maintain 2 different entities and cannot merge them into a single table coz they are separate entities Now while modelling them ... do we need to have a primary key for t

  • What to use and how to convert a quicktime movie for a website. . .

    I have a handful of Quicktime movies on my computer that I have edited and then coverted to MPeg4, AVI and mov. Now what I need to do is to get the to flash to put on my webpage. How exactly would I go about this?