DataPump

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

Error Importing a .dmp file in AWS RDS Oracle DB

℡╲_俬逩灬. 提交于 2019-12-24 10:55:19
问题 I have followed the AWS Importing Data into RDS guide. I have copied the .dmp file from Source Oracle Instance on another machine to the DATA_DUMP_DIR on RDS Instance. Now I am trying to import it using the code below: DECLARE hdnl NUMBER; BEGIN hdnl := DBMS_DATAPUMP.OPEN( operation => 'IMPORT', job_mode => 'SCHEMA', job_name=>null); DBMS_DATAPUMP.ADD_FILE( handle => hdnl, filename => 'sample_copied.dmp', directory => 'DATA_PUMP_DIR', filetype => dbms_datapump.ku$_file_type_dump_file); DBMS

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

如何利用Object Browser图形化工具提高Oracle开发工作效率(三)数据库管理篇

*爱你&永不变心* 提交于 2019-12-03 20:21:40
在数据库开发工作的进行过程中,往往需要时常监视和管理数据库的相关信息。以往的做法当然是通过命令行或登录oracle自带的em console去查看和管理。 但是非专业的DBA很难将那些复杂的命令行都记在脑子里,更别提动不动就出问题的em了。 我们关心的并不是怎么做可以实现,而是怎么做能够快速、高效的解决。 不可否认,这些年来很多oracle第三方工具都提供了比较完善和方便的开发支援,但是在数据库管理方面一直没有长足进步。似乎大家都习惯与把开发和管理分开来考虑,但是作为一款工具来说,两方面都能够集成在一起,对于用户操作来说才是最合适最方便的。 那么,ObjectBrowser都能管理哪些数据库信息呢?如图所示: 用户信息(User)、表空间信息(Table Space)、会话信息(Session)、锁定信息(Lock)、数据库信息(Database)、性能信息(Performance)、回收站(Recycle Bin)。另外,还有导入导出dmp文件,导入导出oracle数据泵DataPump等。 用户信息管理(User) 在用户列表画面,可以清楚的看到该数据库下所有的user信息。当然也可以在这里新建一个用户。 新用户的认证方法,密码,表空间,lib空间,profile以及角色,权限等都可以在一个画面里设定。在新建成功后,会根据你的设定生成create文。 表空间信息(Table

利用第三方工具进行数据库转移—导入导出、备份还原

旧巷老猫 提交于 2019-11-28 10:59:37
前文 所谓数据库的转移,说白了就是把开发使用的数据库服务器上做好的表、数据、存储过程等复制出来,再导入到另一个服务器中。 一般来说方法有三种: 一是利用数据库自己的带参命令exp和imp进行,这种方式古老又低效,但因为其传统又官方,是老DBA彰显水平的必备手段; 二是利用第三方工具借助于数据库本身提供的功能(如Oracle的exp.exe以及imp.exe;SQL Server的Integration Service和“备份/还原”功能)进行图形化界面操作,本质上与第一种方法是一样的,但因为其操作简单方便,莫名其妙的常常被老DBA鄙视; 三是利用第三方工具为用户独创的“脚本输出/脚本执行”功能,也就是将数据库对象的CREATE文输出成SQL文件,然后利用这个SQL文件就可以随时再次创建数据库。这在PL/SQL和Object Browser中都有提供。 本文将以 Object Browser 为图例对后两种方法进行讲解,因为其中文界面较为简单易懂。最后再简单的交流一下关于DataPump的问题。 那么首先,我们来介绍一下Oracle的导入导出功能。说白了就是数据库对象以二进制文件(.DMP)的形式输出,之后再解析并输入到另一个数据库环境中。 Oracle导出 1,从菜单进入导出界面 2,在[选择]页中,可以指定导出的对象范围。 全数据库 :数据库上所有用户的所有对象全部导出 用户指定