imp is a command line tool in Oracle database, used to import exported data and objects from one database instance to another database instance. The general syntax of the imp command is "imp username/password@connect_string file=file_name [options]".
imp is a command line tool in Oracle database that is used to import exported data and objects from one database instance to another database instance.
The following is the general syntax of the imp command:
imp username/password@connect_string file=file_name [options]
The meaning of each parameter is as follows:
Commonly used imp command options include:
The following is an example:
imp scott/tiger@localhost:1521/orcl file=expdat.dmp full=y
The above command will import all objects and data from the expdat.dmp file to the database instance under the scott user.
It should be noted that the imp command is obsolete in Oracle 10g and above versions. It is recommended to use the impdp command for data import and export operations.
The above is the detailed content of Oracle imp command introduction. For more information, please follow other related articles on the PHP Chinese website!