Imp import and exp Export

Source: Internet
Author: User
Import as needed (the log file must be added): C: UsersAdministratorexpscottscott @ orcl11gfiled: temp1.dmplogd: templog. note for log export: The data of the current user is exported. If the current user has DBA permission, all data is exported! Therefore, fully needs to determine the application environment C: UsersAdministr

Import as needed (log files must be added): C: \ Users \ Administratorexp scott/scott @ orcl11g file = 'd:/temp/1. dmp 'Log = 'd:/temp/log. note for log 'export: The data of the current user is exported. If the current user has DBA permission, all data is exported! So full = y needs to determine the application environment C: \ Users \ Administr

Import as needed (log files must be added ):
C: \ Users \ Administrator> exp scott/scott @ orcl11g file = 'd:/temp/1. dmp 'Log = 'd:/temp/log. Log'

Note: The data of the current user is exported. If the current user has DBA permissions, all data is exported! So full = y needs to determine the application environment
C: \ Users \ Administrator> exp scott/scott @ orcl11g file = 'd:/temp/1. dmp 'Log = 'd:/temp/log. log' full = y

Export a specific table
C: \ Users \ Administrator> exp scott/scott @ orcl11g file = 'd:/temp/1. dmp 'Log = 'd:/temp/log. log 'tables = scott. dept

Export the tables of system users and sys users in the database
Exp scott/scott @ orcl11g file = d: \ daochu. dmp owner = (system, sys)

Export the data headers starting with "79" for the field empno In the table emp in the database
Exp scott/scott @ orcl11g file = d: \ scott. dmp tables = (emp) query = \ "where empno like '000000 '\"

Data Import between different names: (import and export according to the scheme)
C: \ Users \ Administrator> imp scott2/scott2 @ orcl11g file = 'd:/temp/1. dmp 'Log = 'd:/temp. /1. log 'fromuser = scott touser = scott2
Import data with the same name

C: \ Users \ Administrator> imp scott2/scott2 @ orcl11g file = 'd:/temp/1. dmp 'Log = 'd:/temp./1. Log'

Imp hkb/hkb @ xe file = c: \ orabackup \ hkbfull. dmp log = c: \ orabackup \ hkbimp. log full = y

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.