Importing DMP file into oracle 10g xe - oracle

I exported backup file of user hr By using this command
exp hr/usman file=c:\backup\hr.dmp owner=hr
Now I am importing dmp file into oracle 10 express edition after importing dmp file tables are not showing in user or schema.
imp system/sys file=c:\backup\hr.dmp fromuser=hr touser=hr

Related

Import dmp file to Oracle

my customer has provided a dmp file (10 GO), and i tried the following:
Create a user:
create user USERNAME identified by PASSWORD;
Grant read write access
Import the dump file(using imp and impdp)
impdp or imp system/password#db dumpfile=EXPDAT.DMP FULL=Y logfile=dice.log
and here's the error message:
Import: Release 18.0.0.0.0 - Production on Tue Feb 23 11:46:07 2021
Version 18.4.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
ORA-39002: invalid operation
ORA-39059: dump file set is incomplete
ORA-39246: cannot locate master table within provided dump files
Can anyone help on that?
First, imp and impdp are not interchangeable; they have different file formats and options. You need to know exactly which was used to create the file you have.
Second, assuming the file was created with expdp (aka datapump, the more modern choice) and you should be using impdp to load it, the error indicates that there's a problem with the datafile itself.
ORA-39246 cannot locate master table within provided dump files
Cause: Check the export log file and make sure all of the files that
were exported are included in the current job.
Action: A Data Pump IMPORT or SQL_FILE operation was being performed
but not all of the files from the Data Pump export dump file set were
included. In particular, the dump file containing the export job's
master table was not provided.
It seems likely that your customer has not provided you with the complete data dump and you should have received additional files. This is possible if either the "parallel" or "filesize" option was used during the export. Confirm with them the number and size of the files you should have.

Import Oracle DUMP file in oracle instance 19c

I have an oracle .dmp file and I do not know any other information about that, I want to import this dump file to my oracle 19c database.
When I use the imdb command like this:
impdp DIRECTORY=E:\Oracle19c\db_home\admin\sample\bdump DUMPFILE=tf20200325.dmp
I get these errors:
Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39087: directory name E:\ORACLE19C\DB_HOME\ADMIN\SAMPLE\BDUMP is invalid
When I use the imp command like this:
imp file=E:\Oracle19c\db_home\admin\sample\bdump\tf20200325.dmp full=y;
I get these errors:
IMP-00038: Could not convert to environment character set's handle
IMP-00000: Import terminated unsuccessfully
I tried after searching on the web, but not found any solution to help me.
notable: I am not creating any databases, I only create a user with all privileges.
The directory you specify is the name of a database directory object, not the actual directory. So, connect to your db as SYS, and do
create directory xyz as 'E:\Oracle19c\db_home\admin\sample\bdump\';
grant all on directory xyz to (put your user name);
and then you can use it like this:
impdp directory=xyz .....

Importing Oracle dmp file into AWS RDS

We're trying to import a dmp file that is on our local machine onto an external database on AWS RDS. We have tried using the Toad GUI tool and get the error:
IMP-00038: Could not convert to environment character set's handle
The dmp file is encoded with ANSI encoding which I'm assuming is what Toad should be expecting.
From what we have read we need to use imp rather than impdp (PL/SQL developer import dump) since we have the file locally.
There doesn't seem to be an option on Oracle SQL Develop to import from a dmp file.
We have tried using IMPDP with the command:
IMPDP usr/pass#connection directory='our_local_dir' dumpfile='file.dmp' logfile='log.txt'
We got the error:
UDI-00014: invalid value for parameter, 'directory'
I'm just looking for any advice on how to import this dmp file and which tools we need to use.

How can import oracle dump into oracle XE 11

I have got the oracle 9i database dump and i have installed oracle 11 XE on home.
I have installed on Ubuntu 14.04
I also have installed sql developer
I don't know how the dump was created but this is the log file
Connected to: Oracle9i Release 9.2.0.8.0 - Production
JServer Release 9.2.0.8.0 - Production
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user JOHN
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user JOHN
About to export JOHN's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export JOHN's tables via Conventional Path ...
I am new to oracle so not sure how to import it.
Is there any GUI tools for that. Can i do in sql developer 4
You will need to use SQLPLUS with imp command.
To import, create a shell script called importdb.sh:
sqlplus sys/sys#localhost as sysdba #Script.sql
imp asset_dw/asset_dw FILE=asset_dw.dmp fromuser=asset_dw
Script.sql located in the same directory, asset_dw is an Oracle user, also the DB:
DROP USER asset_dw CASCADE;
CREATE USER asset_dw IDENTIFIED BY asset_dw;
GRANT ALL PRIVILEGES TO asset_dw;
quit;
You will need asset_dw.dmp in the same directory
Or you can try: this

Import .sql file in Oracle?

I have .sql file. I need to import that to oracle 11g.
.sql file contains ddl queries for all tables.
How can i import .sql file to oracle 11g.
I have sqldeveloper tool.
Thanks in Advance.
From SQL Developer or Toad
Open --> File --> /locationofyourfile/yourfile.sql.
Once you have the file opened in SQL Developer or Toad,
execute by F5
From SQLPlus
#/locationofyourfile/yourfile.sql
# Physical path of sql file.
eg. If my file is on c: and file name is beckup.sql. Then command will be as follows(On console - sqlplus):
# c:\backup.sql

Resources