impdp

oracle 数据泵 EXPDP&IMPDP

久未见 提交于 2020-04-07 08:51:38
导出/导入步骤: expdp system/pwd directory=s_dirname dumpfile=mes1_20150810.dmp logfile=mes1_20150810.log schemas=mes1 CONTENT=METADATA_ONLY 1.在源资料库s中查看mes1与mes4中所有表和索引存放的表空间名称: SQL@S> SELECT DISTINCT TABLESPACE_NAME FROM DBA_TABLES WHERE OWNER IN('MES1','MES4'); SQL@S> SELECT DISTINCT TABLESPACE_NAME FROM DBA_INDEXES WHERE OWNER IN ('MES1','MES4'); 2.根据查询结果,在目标数据库t中建立相同名称的表空间,数据文件位置根据t服务器实际磁盘分区决定.可以与s数据文件位置不同. SQL@T> CREATE TABLESPACE CMES DATAFILE 'XXXX.DBF' SIZE 300M AUTOEXTEND ON 30M; …… 3.在t中新建账号mes1/mes4/ztm01t1_ap,角色cit_group/mes_select.默认表空间设置为mes_user SQL@T> CREATE USER MES1 IDENTIFIED BY

impdp+network link 跳过expdp直接导入目标库

拈花ヽ惹草 提交于 2020-02-29 18:05:32
说起来惭愧,这还是客户itpub上看到的,是有关10G impdp直接导入的,来邮件问是否可行,自己实验了下,还真可以,确实方便很多。 实验环境:linux下11G,一式两份 (手头只有11G虚拟机) 要点:需要用到监听,以下是源库的 监听信息和 目标库的tnsname信息 源库 listener.ora: [oracle @primary admin]$ cat l* # listener.ora Network Configuration File: /u01/app/oracle/product/11.2/network/admin/listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /u01/app/oracle/product/11.2) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME = orcl) (ORACLE_HOME = /u01/app/oracle/product/11.2) (SID_NAME = orcl) ) ) LISTENER = (DESCRIPTION_LIST =

Can't import dump from mapped net drive using data pump

我只是一个虾纸丫 提交于 2020-01-07 03:52:07
问题 I'm trying to import few users from .dmp file from a net drive. Unofrtunately it seems that I lack some rights to do so since I get ORA-39001: invalid argument value ORA-39000: bad dump file specification ORA-31640: unable to open dump file "\\net\drive\directory\placeholder\my_dump.dmp" for read ORA-27041: unable to open file OSD-04002: unable to open file O/S-Error: (OS 5) Access is denied. I'm not sure why, because I can both access that directory, and for example save a txt file there.

ORA-39122: Unprivileged users may not perform REMAP_SCHEMA remappings

半城伤御伤魂 提交于 2020-01-02 02:32:31
问题 When i'm trying to run impdp command in sqlplus , i got below error. ORA-31631: privileges are required ORA-39122: Unprivileged users may not perform REMAP_SCHEMA remappings. I have granted IMPORT FULL DATABASE privileged to schema which i'm trying to import. but i'm getting above error. how could i solve this ? 回答1: more than likely, you granted: grant import full database to YOURUSER; instead grant: grant imp_full_database to YOURUSER; 回答2: grant imp_full_database to YOURUSER; will solve

How to export oracle 11g user to 10g and on a different default tablespace

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:54:20
问题 I have an 11g database and I want to export a dump to import it later on a 10g database. I can use expdp with option VERSION=10.2 but my problem is that I have to import this dump on a different tablespace. thank you 回答1: You can use the REMAP_TABLESPACE parameter during the import: Remaps all objects selected for import with persistent data in the source tablespace to be created in the target tablespace. You can specify multiple mappings if necessary. 来源: https://stackoverflow.com/questions

What happens to existing tables during import using impdp

拥有回忆 提交于 2019-12-12 02:39:44
问题 I want to export and import an entire schema from Prod to Dev, but Dev has already existing tables (that are not there in Prod) which I don't want to be affected. So, the question is during import (impdp) what happens to those existing tables? thanks. 回答1: if you have backuped full database including create database and create tables queries in backup then there occurs error. To solve the problem you needs to remove each line that is intented to create database and new table. if you have

Oracle data pump impdp to remote server

柔情痞子 提交于 2019-12-10 17:19:24
问题 We have a dump file that we want to import to an Amazon rds server. This is what I did: Create a public db link and verify it works: create public database link rdsdblink connect to dbuser identified by dbpsw using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST='xxx')(PORT=1521)))(CONNECT_DATA=(SID=dbsid)))'; SQL> select * from dual @ rdsdblink; D - X Create a directory for the dump file: CREATE OR REPLACE DIRECTORY DATA_PUMP_DIR AS 'G:\DB'; Import the dump file: impdp dbuser/dbpsw

impdp in Oracle. Why it does not create users?

左心房为你撑大大i 提交于 2019-12-10 13:45:15
问题 I am newbie in oracle and I am facing troubles with impdp . I have a production server and I have created a new server for testing purposes, so I installed centos, oracle and created the database "sire" . Now I make a dump from the production server with the following command: expdp system/password@sire full=Y directory=pump_dir dumpfile=sire_dump.dmp logfile=sire.log The I come to the new server, and I execute impdp: impdp system/password@sire full=Y directory=pump_directorio dumpfile=sire