Prefaceabout the DMP File we're still using more, DMP file It is as Oracle Import and export the file format used by the table, today will DMP file export and import for learning. DMP file export DMP file export with more than th
To guide a remote server's database to another server today, colleagues have already added a regular export function to the source server, using the EXPDP exported DMP file, with the export log. log file. Therefore, to import to the target server, you must import it in IMPDP mode.
First of all, the target server must have already built database and database instances, I am here are ORCL, bfb2c/dhhzdhhz.
Secondly, send a command to import
(1) Determine whether the Oracle connection is correct
1. Install a client on the local machine and use. net manager to configure the listener.
2. Use plsql to log in with the user name and password (use the normal user role to import and export the oracle database)
(2) create a database user1. database creation
2. log on to the SYS user to create a tablespace.Create tablespace TSP_YDEMRLoggingDATAFILE
Data Import
1. Import the data in D: "daochu. dmp to the test database.
IMP system/manager @ test file = D: "daochu. dmp
IMP aichannel/aichannel @ HUST full = y file = D: "data" newsmgnt. dmp ignore = y
The above may be a problem, because some tables already exist, and then it will report an error, the table will not be imported.
Add ignore = Y to the end.
Assuming that the data user USER1 uses the default tablespace TS1, the user USER2 uses the default table space TS2, and now imports USER1 data into USER2, which requires tablespace TS2.
It is not possible to specify tablespace through imp command parameter tablespaces.
At this time there is a simple method, suitable for the case of relatively few data: direct use of UltraEdit DMP file, the default is 16 into the system.
Through the formula bar-
Label:Recently, in a database table export, because it produces a lot of data every day, it is necessary to use a condition to qualify it. Special NOTE: This command is only used under Windows. Below is an example of it:Exp fep_h****/[email protected]EL file=yy0709.dmp tables= (t06_cda_triggers) query= "" "where tr_handle_date >to_date (' 2015-07-03 00:00:00 ', ' yyyy-mm-dd hh24:mi:ss ') "" "Here, "" "" "inside the content, similar to the SQL where co
About DMP Files We use more, DMP files It is used as the file format for the Oracle Import and export tables, and today the DMP files are exported and imported for learning.DMP file ExportDMP file export is generally three kinds, they are: export all the data under the entire database instance, export all the tables of
1. Use IMP to export data
Run cmd to enter the orcle installation directory bin and enter the following command:
Exp username/password @ oracleepp file = c: \ hysjb. dmp owner = magazine_hy rows = y
2. Use IMP to generate the index. SQL File
ImP
3. Modify the index. SQL File
Find: 'rem
Find: '"
Find: '...' Replace: 'rem ...'
Find: 'connect 'replace: 'rem connect'
PS: query the table space statement:
Select
DF . Table
Tag: DDR error OTT ADE repeat ASC Cascade self-executingImp help=yTo import your own tables:Exp Scott/[email protected] tables= (student, address) File=d:\scott_stu_add.dmp Log=d:\scott_stu_add.logImp scott/[email protected] file=d:\scott_stu_add.dmp Log=d:log.logImp scott/[email protected] file=d:\scott_stu_add.dmp tables=studentImport someone else's table:Conn Sys as SYSDBA;Drop user test cascade;Create user test identified by test;Here's the right one:Imp test/[email protected] file=d:\scott_
Label:CREATE TABLE SpaceCreate Tablespace BOSSTempfile ' d:/oraclexe/boss.dbf 'Size 500MAutoextend on next 50M maxsize 4000M;Delete Table spaceDrop tablespace BOSS including contents and datafilesmodifying character setsALTER SYSTEM ENABLE RESTRICTED SESSION;ALTER SYSTEM SET job_queue_processes=0;ALTER SYSTEM SET aq_tm_processes=0;--If you are from a subset to a parent set, you need to use the Internal_use parameter to skip the hyper-subset detectionALTER DATABASE CHARACTER SET internal_use ZHS1
Tags: SID data Else exists implement timed end exp BatOracle Database automatic Backup implementation effect
Export DMP format files using the Oracle EXP command;
Automatically compress DMP files using 7z command line to reduce storage space;
Use Windows timed tasks to automatically back up, and periodically delete backups up to n days;
Back
Oracle Import and Export DMP file:Open the Cmd window and, under the cmd window, enter the following corresponding commands as required by your individual:1. IMP username/password @ NETWORK SERVICE name file=xxx.dmp fromuser=xxx touser=xxx;//Import dmp File2. IMP username/password @ NETWORK SERVICE name file=xxx.dmp full=y;//Import
Label:Usually we need to export the database tables to backup and others use. So we must know-do export those data. Just exmple when I export the Oracle all database tables with DMP files. The method is following: #exp oracle_username/"" Oracle_userpassword "" "@orcl file=/specifiedpath/name.dmp full=y Note:why to does use the "" "" "" "Oracle_userpassword" "" ". If your password contains special characters
Oracle Data Import and export imp/exp is equivalent to Oracle data restore and backup. The EXP command can export data from a remote database server to a local DMP file, and the IMP command can import the DMP file from a local to a distant database server. With this feature you can build two identical databases, one fo
Oracle Exports DMP Files:1, fully export database Oracle, export to C:\daochu.dmpExp User/[email protected] file=c:\xxx.dmp full=y or exp user/[email PROTECTED]:1521/ORCL file=e:\xxx.dmp2, export the tables of RfD users and JYZGCX users in the databaseExp User/[email protected] file=d:\xxx.dmp owner= (RFD,JYZGCX)3, export the table T_user, t_role in the databaseE
Tags: ACL command line NIS ant user ora Create user dmp file use1, first create the usersyntax [Create users]: Create user username identified by password [i.e. password];Example: Create user zhengxin identified by Zhengxin;2. Giving the User DBA Authority Grant DBA to Zhengxin3. Open cmd command lineSyntax: MP username/password @ host IP: Port number/instance file=dmp the path where the file is located ful
First describe the DMP file:Typically, the backup files exported by the Oracle database through the EXP or EXPDP commands are terminated with DMP.This file is an Oracle logical backup file that is commonly used for database logical backups, database migrations, and so on.Oracle Import Backup File step: I'm using the Oracle
Label:Assuming Oracle has an entirely new database ORCL, now it's time to import the database file (. dmp) into this new database ORCL. The detailed steps are as follows:1. Create a table spaceFor example:Create tablespace Test (tablespace name) datafile ' F:\oracle\oradata\orcl\test.dmp ' (table Space storage location)size 50M (table space size, unit trillion)au
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.