Previous Topic

Next Topic

Book Contents

importdb

Purpose

Imports the given database schema.

Location

<InstallationDirectory>\InForm\Bin\DBOra folder.

Usage

importdb [connection-string] [dump-file-directory-path] [dump-file-name] [from-userid] /Prompt [log options] [/AdditionalParametersFile:optionsfile] [/NotTrial]

importdb [connection-string] [dump-file-directory-path] [dump-file-name] [from-userid] /AccountParams:[paramfile] [log options] [/AdditionalParametersFile:options-file] [/NotTrial]

Where:

Parameter

Description

connection-string

Database TNS Instance Name.

dump-file-directory-path

Physical path on database server where the dump is located.

Note: The path must conform to the proper OS path format, and the path is expected to be case-sensitive.

dump-file-name

Filename of the dump file to import.

Note: The name must conform to the proper OS format for the database server, and the name is expected to be case-sensitive.

from-userid

Original schema owner User ID when exported.

paramfile

Path to text file containing the list of parameters.

log-options

Optional parameters for specifying the log file name and/or location.

The log file defaults to being named ImportDB.log.

The log file path defaults to the current working directory.

Options:

  • /LogFile:[filespec]
    • filespec = fully qualified name and path for created log file. If a relative path is given, it is based from the current working folder.
    • Overrides the logfile-path to be the resolved path to the given filespec.
    • Overrides the logfile-name to be the resolved name of the given filespec.
    • Do not specify this if either of the other logging options are specified.
  • /LogFilePath:[pathspec]
    • pathspec = fully qualified path to create the log file in. If a relative path is given, it is based from the current working folder.
    • Overrides the logfile-path to be the resolved path to the given pathspec.
    • Does not change logfile-name.
  • /LogFileName:[filename]
    • filespec = Filename for the log file.
    • Overrides the logfile-name for the log file.
    • Does not change logfile-path.

options-file

Path to a text file containing list of additional import parameters. These options are added to the default import parameters, allowing customization of the import operation.

Operations such as remap_schema and remap_tablespace may be added to the file, each on a separate line, with no intervening spaces.

For example:

remap_schema=oldschemaownerid:newschemaownerid
remap_tablespace=oldtablespacename:INFORM

See the impdp documentation for details on import options.

/NotTrial

 

Prevents pre-import tablespace analysis of the schema prior to importing.

This behavior is only supported for Trial Schemas, and should be prevented through this parameter for any other type of schema being imported.

Command line prompts

If using prompting, you are prompted for the following parameters:

Parameter file contents

When using a parameter file, the path to a text file is given. The format of the parameter file is parameter=value, with each value on a separate line, and no spaces between the parameter name, =, and value.

The parameter file must contain the following parameters:

The parameter file may contain the following parameters:

Example

importdb trial1 /backups backup.dmp pfst63uid /prompt
importdb trial1 /backups backup.dmp pfst631uid /accountparams:myparamfile.txt
importdb trial1 /backups backup.dmp pfst6211 /prompt /logfilepath:c:\exportlogs
importdb trial1 /backups other.dmp oldotherschemuid /prompt /nottrial

Send Feedback