Home » RDBMS Server » Server Utilities » indexes parameters original imp (11.2.0.1.0 Windos XP)
indexes parameters original imp [message #524641] Sun, 25 September 2011 22:16 Go to next message
andy huang
Messages: 498
Registered: July 2011
Senior Member
Dear all,
As we know,there is a parameters named indexes of orignal imp,it use to generate create index ddl,Is there a parameter in impdp compare to it?
Re: indexes parameters original imp [message #524642 is a reply to message #524641] Sun, 25 September 2011 22:33 Go to previous messageGo to next message
BlackSwan
Messages: 26626
Registered: January 2009
Location: SoCal
Senior Member
when all else fails, Read The Fine Help

You can accomplish the same, but using different syntax.

bcm@bcm-laptop:~$ expdp help=yes

Export: Release 11.2.0.1.0 - Production on Sun Sep 25 20:31:56 2011

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


The Data Pump export utility provides a mechanism for transferring data objects
between Oracle databases. The utility is invoked with the following command:

   Example: expdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp

You can control how Export runs by entering the 'expdp' command followed
by various parameters. To specify parameters, you use keywords:

   Format:  expdp KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
   Example: expdp scott/tiger DUMPFILE=scott.dmp DIRECTORY=dmpdir SCHEMAS=scott
               or TABLES=(T1:P1,T1:P2), if T1 is partitioned table

USERID must be the first parameter on the command line.

------------------------------------------------------------------------------

The available keywords and their descriptions follow. Default values are listed within square brackets.

ATTACH
Attach to an existing job.
For example, ATTACH=job_name.

COMPRESSION
Reduce the size of a dump file.
Valid keyword values are: ALL, DATA_ONLY, [METADATA_ONLY] and NONE.

CONTENT
Specifies data to unload.
Valid keyword values are: [ALL], DATA_ONLY and METADATA_ONLY.

DATA_OPTIONS
Data layer option flags.
Valid keyword values are: XML_CLOBS.

DIRECTORY
Directory object to be used for dump and log files.

DUMPFILE
Specify list of destination dump file names [expdat.dmp].
For example, DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.

ENCRYPTION
Encrypt part or all of a dump file.
Valid keyword values are: ALL, DATA_ONLY, ENCRYPTED_COLUMNS_ONLY, METADATA_ONLY and NONE.

ENCRYPTION_ALGORITHM
Specify how encryption should be done.
Valid keyword values are: [AES128], AES192 and AES256.

ENCRYPTION_MODE
Method of generating encryption key.
Valid keyword values are: DUAL, PASSWORD and [TRANSPARENT].

ENCRYPTION_PASSWORD
Password key for creating encrypted data within a dump file.

ESTIMATE
Calculate job estimates.
Valid keyword values are: [BLOCKS] and STATISTICS.

ESTIMATE_ONLY
Calculate job estimates without performing the export.

EXCLUDE
Exclude specific object types.
For example, EXCLUDE=SCHEMA:"='HR'".

FILESIZE
Specify the size of each dump file in units of bytes.

FLASHBACK_SCN
SCN used to reset session snapshot.

FLASHBACK_TIME
Time used to find the closest corresponding SCN value.

FULL
Export entire database [N].

HELP
Display Help messages [N].

INCLUDE
Include specific object types.
For example, INCLUDE=TABLE_DATA.

JOB_NAME
Name of export job to create.

LOGFILE
Specify log file name [export.log].

NETWORK_LINK
Name of remote database link to the source system.

NOLOGFILE
Do not write log file [N].

PARALLEL
Change the number of active workers for current job.

PARFILE
Specify parameter file name.

QUERY
Predicate clause used to export a subset of a table.
For example, QUERY=employees:"WHERE department_id > 10".

REMAP_DATA
Specify a data conversion function.
For example, REMAP_DATA=EMP.EMPNO:REMAPPKG.EMPNO.

REUSE_DUMPFILES
Overwrite destination dump file if it exists [N].

SAMPLE
Percentage of data to be exported. 

SCHEMAS
List of schemas to export [login schema].

SOURCE_EDITION
Edition to be used for extracting metadata.

STATUS
Frequency (secs) job status is to be monitored where
the default [0] will show new status when available.

TABLES
Identifies a list of tables to export.
For example, TABLES=HR.EMPLOYEES,SH.SALES:SALES_1995.

TABLESPACES
Identifies a list of tablespaces to export.

TRANSPORTABLE
Specify whether transportable method can be used.
Valid keyword values are: ALWAYS and [NEVER].

TRANSPORT_FULL_CHECK
Verify storage segments of all tables [N].

TRANSPORT_TABLESPACES
List of tablespaces from which metadata will be unloaded.

VERSION
Version of objects to export.
Valid keyword values are: [COMPATIBLE], LATEST or any valid database version.

------------------------------------------------------------------------------

The following commands are valid while in interactive mode.
Note: abbreviations are allowed.

ADD_FILE
Add dumpfile to dumpfile set.

CONTINUE_CLIENT
Return to logging mode. Job will be restarted if idle.

EXIT_CLIENT
Quit client session and leave job running.

FILESIZE
Default filesize (bytes) for subsequent ADD_FILE commands.

HELP
Summarize interactive commands.

KILL_JOB
Detach and delete job.

PARALLEL
Change the number of active workers for current job.

REUSE_DUMPFILES
Overwrite destination dump file if it exists [N]. 

START_JOB
Start or resume current job.
Valid keyword values are: SKIP_CURRENT.

STATUS
Frequency (secs) job status is to be monitored where
the default [0] will show new status when available.

STOP_JOB
Orderly shutdown of job execution and exits the client.
Valid keyword values are: IMMEDIATE.


bcm@bcm-laptop:~$ 

Re: indexes parameters original imp [message #524643 is a reply to message #524641] Sun, 25 September 2011 23:29 Go to previous messageGo to next message
Michel Cadot
Messages: 66691
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Quote:
it use to generate create index ddl

No, it is used to generate all the DDL not only index ones.

Quote:
Is there a parameter in impdp compare to it?

SQLFILE + CONTENT + INCLUDE/EXCLUDE/...

Regards
Michel
Re: indexes parameters original imp [message #524689 is a reply to message #524643] Mon, 26 September 2011 03:49 Go to previous messageGo to next message
andy huang
Messages: 498
Registered: July 2011
Senior Member
Quote:
No, it is used to generate all the DDL not only index ones.


hi,
Flowing test show it just only generate ddl of indexes using parameters indexfile.

SQL> Create Table tb_hxl_imp_test
  2  (
  3   Id Number,
  4   Name Varchar2(64)
  5  );

Table created.

SQL>
SQL> Create unique Index idx_tb_hxl_imp_test
  2  On tb_hxl_imp_test(Id);

Index created.


generate dmp file
exp hxl/hxl@orcl file=D:\expfile\a.dmp tables=(tb_hxl_imp_test) rows=n


imp dmp using parameters indexfile
imp hxl/hxl@orcl file=D:\expfile\a.dmp tables=(tb_hxl_imp_test) indexfile=C:\index.txt


There is just only ddl of index,no any other ddl of table.
C:\Documents and Settings\huangxl>type C:\index.txt

REM  CREATE TABLE "HXL"."TB_HXL_IMP_TEST" ("ID" NUMBER, "NAME"
REM  VARCHAR2(64)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
REM  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 FREELISTS 1 FREELIST
REM  GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TEST" LOGGING NOCOMPRESS ;
CONNECT HXL;
CREATE UNIQUE INDEX "HXL"."IDX_TB_HXL_IMP_TEST" ON "TB_HXL_IMP_TEST" ("ID"
) PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576
MINEXTENTS 1 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE
"TEST" LOGGING ;


Re: indexes parameters original imp [message #524694 is a reply to message #524689] Mon, 26 September 2011 03:54 Go to previous messageGo to next message
Michel Cadot
Messages: 66691
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
So what is:
REM CREATE TABLE "HXL"."TB_HXL_IMP_TEST" ("ID" NUMBER, "NAME"
REM VARCHAR2(64)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
REM STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 FREELISTS 1 FREELIST
REM GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TEST" LOGGING NOCOMPRESS ;

Anyway, the question was how to do it with Data Pump, wasn't it?

Regards
Michel

[Updated on: Mon, 26 September 2011 03:56]

Report message to a moderator

Re: indexes parameters original imp [message #524702 is a reply to message #524694] Mon, 26 September 2011 04:31 Go to previous messageGo to next message
andy huang
Messages: 498
Registered: July 2011
Senior Member

it is right,but i was confused by you said, so i try to test.
Re: indexes parameters original imp [message #524708 is a reply to message #524702] Mon, 26 September 2011 04:59 Go to previous message
Michel Cadot
Messages: 66691
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Fair.

Actually, it generates all DDL for tables (not other object types: sequence, procedure...).

Regards
Michel
Previous Topic: how to know dmp file contents
Next Topic: Tablespace refresh
Goto Forum:
  


Current Time: Tue Nov 19 04:45:36 CST 2019