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 11g version1. Put the backup file of the database: XX. DMP Copy to D:\work\app\admin\
;
The last line of command may not work, but it does not matter, the previous line has been executed.
9, SHUTDOWN IMMEDIATE;
10, STARTUP
The character set is set to complete. Can mount Pl/sql execute this query statement select USERENV (' language ') Nls_lang from dual;
has been correctly modified to simplified. Chinese_china. ZHS16GBK.
11. Import the DMP file (imp a/a@127.0.0.1/xe file=d:\1.dmp full=y log=
/[email protected]File=d:\daochu.dmp owner= (System,sys)3 Exporting Tables Table1, table2 in the databaseExp system/[email protected]File=d:\daochu.dmp tables= (Table1,table2)4 Export the field filed1 in table table1 in the database with data beginning with "00"Exp system/[email protected]File=d:\daochu.dmp tables= (table1) query=\ "where filed1 like ' 0% ' \"The above is a common export, for compression I do not care, with WinZip to the DMP file can
Create Oracle directory, login with user SqlplusCreate or replace directory dpdata1 as '/a/b ';
Grant permission, dba Login SqlplusGrant Read,write on directory dpdata1 to user;
Exporting DMPA. Export by table, under Bin directory./EXPDP User/[email Protected] tables=table1,table2 dumpfile=expdp.dmp directory=dpdata1;B. Export by user./EXPDP User/[email Protected] schemas=user dumpfile=expdp.dmp directory=dpdata1;
Importing DMPA. Import the Dmp
/oradata/orcl/the place where the database files are stored, usually after the database is installed, there are control files, data files and log files in the folder, plus the name of the table space to create +DBF (data file)3) Initial size of 1024m table space4) Auto-grow size of 100m table space5) Maximum size of 10240m table space
2. Create a data table space
Create tablespace ha logging datafile '/u01/app/oralce/oradata/orcl/ha.dbf ' size 1024m autoextend on next
Tags: File table RAC size login file replace CTO table space OracleFirst step: Create a backup file storage directory Create or replace directory Back_file as ' D:\app\yangxf\back_or_memery_file '; Create or replace directory name as ' D:\app\yangxf\back_or_memery_file '; Step two: Create a table space Create tablespace base_data datafile ' D:\app\yangxf\oradata\base_tablespace\BASE.dbf ' size 100M autoextend on next 50m; Create tablespace table space name (consistent with backup file tablespace
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)autoextend on next 50MMaxSize UnlimitedExtent management Local Autoallocatesegment Space man
Tags: style blog http use file dataOracle in the DMP backup and restore, the server-side character set and the client character set will have a significant impact on the process, especially in the data table stored in Chinese, stored procedures used in Chinese encoding (note), if there is no good character set problem, when the restoration will encounter problems, There are several issues that I have encountered:1: The Chinese characters stored in the
Before creating a user name, you need to log on to the database as a user Administrator 1, to create a table space before creating a user:
The format is: Format: Create tablespace table name datafile ' data file name ' size table space;
For example:
sql> Create tablespace mytable datafile ' d:\myoracle\mytables1.dbf ' size 1024M segment space management auto;
If the table space is insufficient to import data, you can modify the table space as follows:
Sql>alter database datafile ' d:\myoracle\my
Import using the cmd command
Enter cmd Direct input command
IMP username/password @ Listener path/Database instance name file= ' d:\ database file. dmp ' Full=y ignore=y
For example:
Imp Mislogin/mislogin@localhost/jfjoa file= "D:\data.dmp" Full=y ignore=y
using Oracle's Bin directory imp.exe import
Open Oracle Home DirectoryE:\app\shaoduo\product\11.2.0\dbhome_1\BINFind Impdb.exe for importRun with the administrator identity. Enter the passw
DSP ad.com ads on the meijiu.com. Suppose DMP is called cm.api.taobao.com.
Create a GID mapping table
(1) ad.com is deployed on Meiju.com's page, pointing to DMP-----cm.api.taobao.com
(2) Then the user opens the Meijiu.com page of the browser and requests the-cm.api.taobao.com
(3) cm.api.taobao.com will 302 redirect to ad.com and attach the relevant GID information to the DSP for use. and returns a baco
Label:Import Library:Prepare beforehand:1. Ensure that Oracle is installed correctly on the Linux server2, Oracle client, capable of connecting to Oracle on server.Start Step:1, CREATE table space (table space is more common will give you a script to create a tablespace.) such as Createspace-for-windows.sql).2, login to the Linux server, such as SSH 192.168.20.222, enter the user name password. Default User name is root3, enter su-oracle Note, do not enter into Su Oracle.4, move the
An error occurred while executing the import command to the Oracle database, which probably means that the service name could not be found in TNSLet's talk about the resolution step1: Enter Oracle user, use Cat to view the. bash_profile file, locate the Oracle_home variable2: Enter the Oracle_home/network/admin directory3: Check the Tnsnames.ora listening file, find the corresponding listener name, such as the following import statement, can be executed successfully[Email protected] admin]$ IMPD
The project began to get the DMP file, the database is 10g, but did not guide the success, then want to possibly export the time with 11, decided to try.
Just the machine is 11 of the client, the results do not recognize imp command, to the installation directory under the Bin folder to see the implementation of the file without imp. May install the client when does not elect the manager to install.
What to do, copy one of the imp files from the oth
unlock accounts: Alter user account unlock
Login sys User: Sqlplus/as sysdba
Modify SYS User: ALTER user sys identify by password
Modify SYSTEM User: Alter user system identified by
Data export: 1 completely export database test, user Name System Password Manager exported to D:\daochu.dmp expsystem/ Manager@testfile=d:\daochu.dmp full=y 2 Export the table of the system user and SYS user in the database expsystem/ Manager@testfile=d:\daochu.dmp owner= (System,sys) 3 The tables in the
One IMPDP import--Delete user if user already exists (can connect using Oracle's own sqlplus)sql> Drop user user_name cascadesql>/sql> drop tablespace user_tablespace including contents and Datafilessql>/--Create table space download sql> CREATE tablespace user_tablespace datafile ' User_tablespace. DBF ' SIZE 200M autoextend on NEXT 50M MAXSIZE UNLIMITED PERMANENT DEFAULT STORAGE (INITIAL 64K minextents 1 MAXEXTENTS 2147 483645) MINIMUM EXTENT 64K LOGGING ONLINEsql>/--Create usersql> CREATE USE
Tags: database export of Style file BSP error one Owner ImpNormal Import method (cmd command): First build table space, then build user IMP database name/database password @orcl file= database file path (can be dragged in auto-generated) full=y Statistics=none Common Export Method (cmd command): EXP database name/database password @orcl file= database file path (can be dragged in automatically generated) owner= (database name) Description: Because the data volume is too large in the import pro
offline.(1) Reason: Table space is offline Workaround: Check the tablespace status and put it online:Sql>alter tablespace table space name online;(2) Cause: The file that corresponds to the tablespace does not exist Workaround: Create the corresponding tablespace ( the corresponding tablespace size is determined according to the size of the file you imported ) under the file corresponding to the table space that prompted the errorSql>create tablespace Ceimsexchange 2 datafile ' F:\asmfil
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.