Impdp using parfile...

Hi ,
I am doing import of table using parfile with query option. My import is running is running from 4 hours where as export get completed with in half hours???
Kindly suggest...
query_imp.par
tables=ABC
query=ABC:"WHERE TIMESTAMP BETWEEN '09/20/2013 00:00:00' AND '10/09/2013' "
logfile=import_ABC.log
parallel= 3
DIRECTORY=export_ABC
DUMPFILE=export_ABC_%U.dmp
table_exists_action=APPEND
CONTENT=ALL
JOB_NAME=import_ABC
while executing the command:
impdp SYSTEM/*****@orcl parfile=/***/***/query_imp.par
O/P:
Starting "SYSTEM"."IMPORT_ABC":  SYSTEM/********@ORCL tables=ABC parfile=/***/***/query_imp.par
Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-39152: Table "XYZ"."ABC" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Why status is 100% completed where job is running ????
and STATUS is:
Import> STATUS
Job: IMPORT_ABC
  Operation: IMPORT
  Mode: TABLE
  State: EXECUTING
  Bytes Processed: 0
  Current Parallelism: 5
  Job Error Count: 0
  Dump File: /**/**/export_ABC_%u.dmp
  Dump File: /**/**/export_ABC_01.dmp
  Dump File: /**/**/export_ABC_02.dmp
Worker 1 Status:
  State: WORK WAITING
Worker 2 Status:
  State: EXECUTING
  Object Schema:XYZ
  Object Name: ABC
  Object Type: TABLE_EXPORT/TABLE/TABLE_DATA
  Completed Objects: 1
  Completed Bytes: 55,512,836,576
  Percent Done: 100
  Worker Parallelism: 1

Hi ,
While checking the lock status: i am getting..throug this query:
set linesize 150;
set head on;
col sid_serial form a13
col ora_user for a15;
col object_name for a35;
col object_type for a10;
col lock_mode for a15;
col last_ddl for a8;
col status for a10;
break on sid_serial;
SELECT l.session_id||','||v.serial# sid_serial,
       l.ORACLE_USERNAME ora_user,
       o.object_name,
       o.object_type,
       DECODE(l.locked_mode,
          0, 'None',
          1, 'Null',
          2, 'Row-S (SS)',
          3, 'Row-X (SX)',
          4, 'Share',
          5, 'S/Row-X (SSX)',
          6, 'Exclusive',
          TO_CHAR(l.locked_mode)
       ) lock_mode,
       o.status,
       to_char(o.last_ddl_time,'dd.mm.yy') last_ddl
FROM dba_objects o, gv$locked_object l, v$session v
WHERE o.object_id = l.object_id
      and l.SESSION_ID=v.sid
order by 2,3;
===================
SESSION_ID ORACLE_USERNAME OS_USER_NAME    OBJECT OWNER                   OBJECT_NAME                           OBJECT_TYPE                           LOCKED_MODE
1028        SYSTEM         oracle          www                              ABC                          TABLE                                           6
1015        NFINSERT       qa                 www                         ABC                        TABLE                                           0
982         NFINSERT         qa                www                                  ABC                 TABLE                                           0
482         NFINSERT          qa             www                                      ABC               TABLE                                           0

Similar Messages

  • Using Parfile in oracle10G

    Anybody can provide me the example how to use parfile argument in RMAN Backup and how to create a parfile.

    Use CMDFILE keyword.
    http://download-uk.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta013.htm#sthref259

  • Script to execute impdp using SILO concept

    Hi ,
    Could any one help me to write a shell script to perform impdp using dbms_datapump using SILO concept .
    Thanks
    JP

    Hi Harry ,
    Thanks for your reply .
    In my company for performing schema refresh we are using expdp/impdp using dbms_datapump through network link .Since it uses n/w link it takes 8 to 10 hours to complete the refresh .
    Now we shouldn't use n/w link and time should be decresed 4 to 5 hours and we are planning for another solutions like performing export only 1 time in source db and moving the dump file into respective boxes and then perform impdp using dbms_datapump have to use SILO concept to perform impdp.
    I have wrote the script to perform export now i need to write the script to perform import using SILO concept and the SILO value should call trough shell script
    Thanks
    JP
    Edited by: JP88 on Apr 4, 2013 3:39 AM

  • Taking impdp using network_link

    HI PPl,
    Am stuck in a very difficult situation..
    Can you please tell me is it possible to take an import from a database which is open in READ-ONLY mode,
    and i am going to use the impdp utility and network_link (syntax) and connect to readonly database and to carry out the import..
    Ples help as we want to do production testing.

    Zombie,
    English is probably not your first language.
    I say this because you
    export from
    and
    import into
    Import from a read-only database just doesn't make sense.
    Yes, you should be able to export from a read-only database
    No, you shouldn't be able to import into a read-only database.
    The network link doesn't matter in this regard.
    Can you please explain further?
    Sybrand Bakker
    Senior Oracle DBA

  • Impdp using EXCLUDE

    Hi
    I want to import a full database excluding a list of schemas. I know I can use the parameter EXCLUDE to do that but I need to exclude several schemas and I am having problem writing the appropiate list in the parameter EXCLUDE. Can you help me?
    Thanks

    I tried as you recommed but I got an error as well
    impdp system/???@????? exclude=SCHEMA:"='DBSNMP,MGMT_VIEW,SYSMAN,SYS,SYSTEM,FLOWS_FILES,MDSYS,SCOTT,WMSYS,APPQOSSYS,XS$NULL,APEX_030200,OWBSYS_AUDIT,MDDATA,OWBSYS,ORACLE_OCM,ORDDATA,ANONYMOUS,OUTLN,DIP,EXFSYS,APEX_PUBLIC_USER,XDB,ORDSYS,SPATIAL_CSW_ADMIN_USR,CTXSYS,SPATIAL_WFS_ADMIN_USR,ORDPLUGINS,OLAPSYS,SI_INFORMTN_SCHEMA'" DIRECTORY=dirorigen LOGFILE=DATA_PUMP_DIR:imp.log FULL=y DUMPFILE=fullbk.dmp
    $
    $ ./importarfullexclude.sh
    LRM-00116: syntax error at 'SCHEMA:' following '='
    $
    I tried on this way and I got an error again...
    Import: Release 11.2.0.2.0 - Production on Fri Feb 18 11:35:00 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39071: Value for EXCLUDE is badly formed.
    ORA-00920: invalid relational operator
    $
    impdp system/???@????? exclude=SCHEMA:"'DBSNMP,MGMT_VIEW,SYSMAN,SYS,SYSTEM,FLOWS_FILES,MDSYS,SCOTT,WMSYS,APPQOSSYS,XS$NULL,APEX_030200,OWBSYS_AUDIT,MDDATA,OWBSYS,ORACLE_OCM,ORDDATA,ANONYMOUS,OUTLN,DIP,EXFSYS,APEX_PUBLIC_USER,XDB,ORDSYS,SPATIAL_CSW_ADMIN_USR,CTXSYS,SPATIAL_WFS_ADMIN_USR,ORDPLUGINS,OLAPSYS,SI_INFORMTN_SCHEMA'" DIRECTORY=dirorigen LOGFILE=DATA_PUMP_DIR:imp_2011.log FULL=y DUMPFILE=fullbk_2011.dmp
    $

  • Impdp using network_link

    Hi All,
    I have imported a database from a remote server using the following script:-
    impdp system/manager DIRECTORY=dir NETWORK_LINK=LINK remap_schema=test:test FLASHBACK_SCN = 8254511416354 content=all TABLE_EXISTS_ACTION = REPLACE
    It was successfully imported.
    But constraints are not being imported. How to import these constrains now without affecting the data at all in the target database?

    Hi All,
    I have imported a database from a remote server using the following script:-
    impdp system/manager DIRECTORY=dir NETWORK_LINK=LINK remap_schema=test:test FLASHBACK_SCN = 8254511416354 content=all TABLE_EXISTS_ACTION = REPLACE
    It was successfully imported.
    But constraints are not being imported. How to import these constrains now without affecting the data at all in the target database?

  • Refreshing sa user on 2 instances through impdp using network_link

    Hi all,
    I have 2 instances XLTCRM1 & XLTCRM2 .I want to refresh the sa user of XLTCRM2  with sa user of XLTCRM1.
    Can anyone provide the query for doing that through a single line impdp command and network_link or any other feature of impdp.
    Cheers,
    Kunwar

    Hi
    In XLTCRM2, create a database link:
    create database link old_sa connect to sa identified by <password>  using 'XLTCRM1';Then use following at the XLTCRM2
    impdp sa/<password> DIRECTORY=dmpdir NETWORK_LINK=old_sayou have to make sure that your tnsnames has the entry for the xltcrm1 and you have the directory with proper rights.
    regards

  • Metadata filter using parfile

    Hi, my parfile is as follows
    DUMPFILE=1965x_metadata_exp.dmp
    LOGFILE=1965x_metadata_exp.log
    DIRECTORY=exports
    CONTENT=METADATA_ONLY
    INCLUDE=TABLE:"LIKE '%PROFIT%'"when I run the expdp utility as
    expdp "' / as sysdba'" parfile=1965x1.par i am getting the following error
    Starting "SYS"."SYS_EXPORT_SCHEMA_02":  "/******** AS SYSDBA" parfile=1965x1.par
    ORA-39168: Object path TABLE was not found.
    ORA-31655: no data or metadata objects selected for job
    Job "SYS"."SYS_EXPORT_SCHEMA_02" completed with 2 error(s) at 15:59:25my question is why am i getting the error ORA-39168
    because when i log into my database and execute the query "Select table_name from dba_tables where table_name like '%PROFIT%' "
    I am getting two rows, so shouldn't the metadata on those two rows be exported.
    Is there something wrong with the way i wrote the parfile or am I executing the expdp with parfile worng?
    my database version is 11.2.0.3.0 running on AIX
    THANKS

    Hello vlethakula, thank you for your reply, but I got the solution, I forgot to include the schema name so that is why I was getting the errors. But thanks though.

  • Impdp using ASM or local to instance file

    Hi,
    I am wondering if anyone compared performance running impdp from
    a) ASM with fiber optic (SAN)
    b) local file system to instance
    Would there be any performance benefit to move from local file system to ASM ?
    Linuks, Oracle 10g, 2 nodes RAC
    Thanks
    Turtle
    Edited by: Turtle on Jun 26, 2012 3:20 AM
    Edited by: Turtle on Jun 26, 2012 3:22 AM

    sed -e 's/\/.*$//' proxyLog
    Roger

  • Memory fault while using impdp

    I'm unable to import a database using impdp; as soon as I start the impdp cmd it errors out with a memory fault
    I was able to previously import 1 TB out of a total of 3 TB, and then got an error related to the new MEMORY_TARGET parameter, complaining about insufficient tmpfs.
    I resolved that error, and then after that I can't invoke impdp without the memory fault error as described below..
    $ nohup impdp "'/ as sysdba'" JOB_NAME=LANCE_FULL_01 parfile=auexpdp.dat &
    [1] 32118
    $ nohup: appending output to `nohup.out'
    [1] + Memory fault nohup impdp "'/ as sysdba'" JOB_NAME=LANCE_FULL_01 parfile=auexpdp.dat &
    $
    I also get the following error in the import log
    ORA-39012: Client detached before the job started.
    This is what my parfile looks like
    directory=dmpdir
    dumpfile=aexp1_%U.dmp,aexp2_%U.dmp,aexp3_%U.dmp,aexp4_%U.dmp
    parallel=8
    full=y
    exclude=SCHEMA:"='MDDATA'"
    exclude=SCHEMA:"='OLAPSYS'"
    exclude=SCHEMA:"='ORDSYS'"
    exclude=SCHEMA:"='DMSYS'"
    exclude=SCHEMA:"='OUTLN'"
    exclude=SCHEMA:"='ORDPLUGINS'"
    include=tablespace
    #transform=oid:n
    logfile=expdpapps.log
    trace=1FF0300
    Has anybody seen this type of error before ?
    Thanks

    Pl post details of OS and database versions
    >
    $ nohup impdp "'/ as sysdba'" JOB_NAME=LANCE_FULL_01 parfile=auexpdp.dat &
    >
    You should not use '/ as sysdba' for expdp/impdp - use SYSTEM account instead - see the first NOTE sections in these links
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#i1012781
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_import.htm#i1012504
    HTH
    Srini

  • Use multiple parfile .......

    Hi experts
    i have importing problem . following error occered
    imp '"sys/0rasys as sysdba"' parfile=a2.txt,a3.txt
    LRM-00112: multiple values not allowed for parameter 'parfile'
    how can use multiple parameter file

    If you have 10g, you can save time by using Datapump. Datapump gives you the facility to bulk your export/import by specifying different schemas and different tables and different query criteria for those tables.
    Example, this parfile can be used to export/import one schema and 3 tables from 3 other different schemas. in this parfile.par, test_schema1 and test_schema3 has one table each that use query criteria while test_schema2 has one table export with no query criteria and test_schema4 is full schema export.
    Here, export_dir is your Database Directory
    DIRECTORY=export_dir
    DUMPFILE=export_file.dmp
    LOGFILE=export_file.log
    SCHEMAS=TEST_SCHEMA1,TEST_SCHEMA2,TEST_SCHEMA3,TEST_SCHEMA4
    INCLUDE=TABLE:"IN ('TEST_TABLE1','TEST_TABLE2','TEST_TABLE3')"
    QUERY=TEST_SCHEMA1.TEST_TABLE1:"WHERE TEST_COL1=1001"
    QUERY=TEST_SCHEMA3.TEST_TABLE3:"WHERE TEST_COL3=3003"
    You can simply use the same parfile for both datapump export (expdp) and datapump import (impdp)
    expdp system parfile=parfile.par
    or
    impdp system parfile=parfile.par

  • Import database using impdp

    Hello,
    I wanna import a database using impdp. Can i import while i'm logged with system/<password> ? On which database should i be logged? I have a single database, 'orcl'
    Thanks

    I wanna import a database using impdp.
    Can i import while i'm logged with system/<password> ?
    On which database should i be logged? I have a single database, 'orcl'You don't have to login to any database to perform the import using datapump import.
    You just have to set the oracle database environment where you want to import into.
    suppose, you have an export dump generated already,using datapump export(expdp) and if you want to import into orcl database,
    set the oracle environment to orcl
    You have to have the directory object created with read,write access to the user performing export/import(expdp or impdp)
    use impdp help=y at the command line to see the list of available options.
    http://download.oracle.com/docs/cd/B13789_01/server.101/b10825/dp_import.htm
    -Anantha

  • ORA-00001: unique constraint @ impdp with table_exists_action=truncate

    Hi everybody
    I can't understand why my data pump import execution with parameter TABLE_EXISTS_ACTION=TRUNCATE returned ORA-00001 (unique constraint violation), while importing schema tables from a remote database where the source tables have the same unique constraints as the corresponding ones on the target database.
    Now my question is "If the table would be truncated, why I get unique constraint violation when inserting records from a table where the same unique constraint is validated?
    Here are the used parameter file content and the impdp logfile.
    parfile
    {code}
    DIRECTORY=IMPEXP_LOG_COLL2
    CONTENT=DATA_ONLY
    NETWORK_LINK=PRODUCTION
    PARALLEL=1
    TABLE_EXISTS_ACTION=TRUNCATE
    EXCLUDE=STATISTICS
    {code}
    logfile
    {code}
    Import: Release 10.2.0.1.0 - Production on Gioved� 22 Ottobre, 2009 15:33:44
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connesso a: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    FLASHBACK automatically enabled to preserve database integrity.
    Starting "IMPEXP"."PROVA_REFRESH_DBCOLL": impexp/********@dbcoll SCHEMAS=test_pump LOGFILE=test_pump.log parfile=refresh_dbcoll.par JOB_NAME=prova_refresh_dbcoll
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 523 MB
    ORA-31693: Table data object "TEST_PUMP"."X10000000_TRIGGER" failed to load/unload and is being skipped due to error:
    ORA-00001: unique constraint (TEST_PUMP.SYS_C00726627) violated
    ORA-31693: Table data object "TEST_PUMP"."X10000000_BASIC" failed to load/unload and is being skipped due to error:
    ORA-00001: unique constraint (TEST_PUMP.SYS_C00726625) violated
    Job "IMPEXP"."PROVA_REFRESH_DBCOLL" completed with 2 error(s) at 15:34:04
    {code}
    Thank you
    Bye Alessandro

    I forgot to read the last two lines of the documentation about TABLE_EXISTS_ACTION where it says:
    "TRUNCATE cannot be used on clustered tables or over network links."
    So it seems that it ignored the clause for the use of NETWORK_LINK and unreasonably opted for an APPEND action instead of throwing an error to highlight the conflicting parameters in the used configuration.
    Bye Alessandro

  • Impdp import errors  Oracle 11.1.0.6

    Hello to everyone.
    I need help. I've searched help sites/forums for the past few days and have not found a solution.
    I am new to using impdp and cannot get it to work. My prior experience was the old "imp" utility. We recently upgraded to 11.1.0.6 database and trying to import an export file created from 11.1.0.7 using the export parameter VERSION=11.1.0.6. The DBA sending me the export file has sent it to me as both a DBA and non-DBA export. Both get the same errors. Both databases are on Sun Solaris platforms. I had already created a directory and granted TIMS read/write.
    OWNER DIRECTORY_NAME
    DIRECTORY_PATH
    SYS ERPMGR_DATADUMPS
    /app/erpmgr/datadumps
    Following are the roles granted to the user "TIMS":
    SQL> select * from user_role_privs;
    USERNAME GRANTED_ROLE ADM DEF OS_
    TIMS CONNECT NO YES NO
    TIMS DBA NO YES NO
    TIMS IMP_FULL_DATABASE NO YES NO
    TIMS RESOURCE NO YES NO
    The parameter file is as follows:
    content=data_only
    DIRECTORY=erpmgr_datadumps
    DUMPFILE=afp44_mri.dmp
    TABLES=afp44_mri
    NOLOGFILE=y
    The errors generated are:
    erpimsvm > impdp TIMS parfile=mri.par
    Import: Release 11.1.0.6.0 - 64bit Production on Friday, 18 June, 2010 8:44:10
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Password:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bitn
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39002: invalid operation
    ORA-31694: master table "TIMS"."SYS_IMPORT_TABLE_01" failed to load/unload
    ORA-02354: error in exporting/importing data
    ORA-02373: Error parsing insert statement for table "TIMS"."SYS_IMPORT_TABLE_01.
    ORA-00904: "ORIGINAL_OBJECT_NAME": invalid identifier
    I checked the description of the source tables against the target tables and they are identical.
    All of my tablespaces have have sufficient freespace, especially the TIMS default tablespace.
    I've tried this with several different parameter files for different tables and all get the same errors.
    Any help wouldbe appreciated.
    Thanks,
    Glenn

    Re: ORA-02373 error on expdp, table failed to import!!
    shows a similar problem. Might help you to a solution

  • ORA-39776 from impdp

    Greetings
    I am trying to do a test import with impdp from a 10.1.0.5 system to a 10.2.0.1.0 system. I have the following parfile:
    DIRECTORY=image_import
    remap_schema=track2:image_admin
    remap_tablespace=users:image_test
    remap_tablespace=indx:image_test
    job_name=impdp_track2_try1
    logfile=impdp_track2.log
    dumpfile=expdp_track2_01.dmp
    I set up the directory with
    create directory or replace image_import '/oracle/oradata'
    and put the files there. I set the ownership to oracle:orinstal
    When I try to run the import with
    impdp IMAGE_ADMIN/***** PARFILE=impdp.parfile
    I get the error:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ORA-39002: invalid operation
    ORA-31694: master table "IMAGE_ADMIN"."IMPDP_TRACK2_TRY1" failed to load/unload
    ORA-02354: error in exporting/importing data
    ORA-39776: fatal Direct Path API error loading table "IMAGE_ADMIN"."IMPDP_TRACK2_TRY1"
    ORA-00600: internal error code, arguments: [klaprs_12], [], [], [], [], [], [], []
    The user image_admin as the sysdba role and import privileges.
    I'm guessing that 39776 is the root cause, but I can't find enough info on this error to figure out what to do next. Can I use impdp from 10.1 to 10.2? Can anyone suggest some places where I might look for an error?
    Thanks
    Mike

    Thanks for the reply. I've been off on other tasks for awhile.
    The command used was:
    impdp IMAGE_ADMIN/******* PARFILE=impdp.parfile
    The parfile contains:
    DIRECTORY=image_import
    remap_schema=track2:image_admin
    remap_tablespace=users:image_test
    remap_tablespace=indx:image_test
    job_name=impdp_track2_try1
    logfile=impdp_track2.log
    dumpfile=expdp_track2_01.dmp
    Regarding patchsets--I see many possible. I have downloaded document 316901.1 "Known issues specific to the 10.2.0.1 Beta Release" and it has a number of issues listed, but I don't see a link to a particular patch set. I have also downloaded the patches through the Maintenance view of the EnterpriseManager, but I don't see anything that looks like a single patchset. The patchsets and patches I do see have cautions about applying them if they are not relevant to the problem. Any guidance in this area will be gratefully appreciated.
    Thanks
    Mike

Maybe you are looking for

  • Can I use my cinema display as the primary monitor???

    I've just cracked the screen on my macbook pro and want to know if it's possible that i could use my 23" apple cinema display as the primary screen, so that when I load up my dock etc will appear on the external monitor rather than the laptop monitor

  • Printing/creating PDF problems with Mac OS 10.6.4 and word v.X

    In my job at university I use Word 2003 (version 10) in my new iMac. Since I updated to MacOS 10.6.4 I have problems with the printing menu. That means that I can not print or convert to PDF or even generate a preview. When trying to print or obtain

  • DVI Adapter for LED Cinema Display Mini DisplayPort?

    Is there an adapter for use with the new LED Cinema display port? I expect the new Mini's to switch to the Mini DisplayPort, if there is a new Mini, but in the meantime ... Now that everything is going black, glass and aluminum, when is Apple going t

  • Custom Authorization Policy

    Hello Experts, I need to create new custom Authorization Policies, but seems that I can create or copy only Policy from these Entity Type: - User Management - Role Management - Authenticated Self Service User Management What about the other entity Ty

  • Can't set an alert on Calender entries on my Mac

    I'm running OS X 10.8.3. I use two Google Apps domains for my calendars. I have no problem adding Calendar alerts to events on my iPhone, but if I try to set them on my MBP, they disappear almost immediately. Has anybody else seen this problem, and k