How can import oracle dump into oracle XE 11 - oracle

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

Related

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 .....

What do I have to do to enable the DML replication in the Oracle 18c EE?

I have installed the Oracle DB 18c EE. I have installed the Oracle GoldenGate.
My test replication is good.
Then: I have modified the EXTRACT to DDL replication.
But logs say me: You have to prepare the Oracle DB.
The log message:
2019-08-02 17:29:05 ERROR OGG-00529 DDL Replication is enabled but table dima.GGS_DDL_HIST is not found. Please check DDL installation in the database.
There is No Scripts like in the article for the Oracle DB 12 (marker_table, and etc.) in my deployment (18c). DML replication works.
What Do I have to do in a Oracle 18c EE installation to enable the DDL in the DB?
If You are using the SQLPlus in the $ORACLE_HOME/bin path You will be using a full path to scripts. All scripts are placed in the Golden Gate root directory.
Use a cd:
export PATH=$PATH:$ORACLE_HOME/bin
cd /home/oracle/ggs/
sqlplus / as sysdba
The Full Guide is : DDL Guide

I need to export .DMP file from oracle 11g please suggest with step related error has mentioned

How can I resolve this issue and how to get proper export using Putty (linux).
[oracle#oracledb ~]$ exp
Export: Release 11.2.0.3.0 - Production on Wed Jul 1 14:23:16 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Username: CORP_DM
Password:
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 -
64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options
Enter array fetch buffer size: 4096 >
Export file: expdat.dmp > CORP_DM_01072015
(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U >
Export grants (yes/no): yes >
Export table data (yes/no): yes >
Compress extents (yes/no): yes >
Export done in WE8MSWIN1252 character set and AL16UTF16
NCHAR character set
About to export specified users ...
User to be exported: (RETURN to quit) >
Export terminated successfully without warnings.
You are being prompted to supply a user to export:
About to export specified users ...
User to be exported: (RETURN to quit) >
That means the CORP_DM user you are connecting as has the EXP_FULL_DATABASE privilege; if it didn't then you would not see that prompt and that user's objects would be exported automatically.
When you are prompted you are not supplying a value, which means you just quit the export (as the prompt says) without doing any work, and end up with an (almost) empty and pointless dump file.
So provide the user when prompted. Assuming you just want to export CORP_DM enter that at the fist user prompt, and hit return at the second one to tell export that you are done:
About to export specified users ...
User to be exported: (RETURN to quit) > CORP_DM
User to be exported: (RETURN to quit) >
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user CORP_DM
... etc.
As mentioned in comments, consider using data pump export rather than the desupported original export:
Original Export is desupported for general use as of Oracle Database 11g. The only supported use of original Export in Oracle Database 11g is backward migration of XMLType data to Oracle Database 10g release 2 (10.2) or earlier. Therefore, Oracle recommends that you use the new Data Pump Export and Import utilities, except in the following situations which require original Export and Import:
You want to import files that were created using the original Export utility (exp).
You want to export files that will be imported using the original Import utility (imp). An example of this would be if you wanted to export data from Oracle Database 10g and then import it into an earlier database release.

Export from Oracle 10g database with 11g client - detailed

Database Version : 10g Enterprise Edition Release 10.2.0.4.0
Client Version: 11g Enterprise Edition Release 11.2.0.1.0 (windows 7 64bit)
When I try to export (exp) a table from database:
exp usr/pass#remote_db file=f.dmp tables=table
I get the following error:
EXP-00008: ORACLE error 904 encountered
ORA-00904: "POLTYP": invalid
identifier EXP-00000: Export terminated unsuccessfully
I know this question was answered earlier (the answer is "install 10g client to use its exp utility"), but I still didn't understand correctly:
Is Oracle 10g client 10.2.0.4 is ok for this? Do I need to setup TNS etc?
If I use the previous command to export the DB will the system automatically use the Ora10g client exp tool?
1) Yes, the 10.2.0.4 client would be OK. Yes, assuming that you use a tnsnames.ora file to connect to the database, you would need to configure a tnsnames.ora file in the Oracle Home for the newly installed 10.2.0.4 client or set the TNS_ADMIN environment variable to point at a single tnsnames.ora file for all Oracle Homes on the server. If you don't use a tnsnames.ora file to connect to the database, you would not need to configure one.
2) The command you posted will use the operating system's name resolution logic to determine which executable to invoke. Generally, that will be the executable in whichever Oracle Home is first in the operating system's PATH environment variable. Of course, you could specify an explicit path or change the current directory to the %Oracle Home%\bin of the 10.2.0.4 Oracle Home if that home was not first in the path.

Errors on importing my oracle 10g database

I am running my oracle on a debian machine. Today I decided to create a new user and a new tablespace. Then I export a database with the user System which on the same machine. I got some error when I try to import to my new user account.
here is what I've done:
./imp mynewuser/passwrdb#orcl file=newdump_sept.dmp system/tomynewuser
Import: Release 10.2.0.1.0 - Production on Thu Sep 29 18:06:23 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release
10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
Warning: the objects were exported by SYSTEM, not by you
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses WE8ISO8859P1 character set (possible charset conversion)
IMP-00085: multiple input files specified for unbounded export file
IMP-00000: Import terminated unsuccessfully
Any suggestion to my problem?
From http://www.error-code.org.uk/view.asp?e=ORACLE-IMP-00085 :
Oracle Error :: IMP-00085
multiple input files specified for unbounded export file Cause
You specified multiple file names for the FILE parameter when doing an
import, but the header in the export file indicates that that the
export operation could create only one file. Specifying multiple file
names is valid for an import operation only if the export files were
created by an export operation in which the user specified a non-zero
value for the FILESIZE parameter. Action
If you believe the export contains multiple files, verify that you
have specified the correct files. If you believe the export should be
in only one file then try the import operation again, but specify only
one value for the FILE parameter.
You should probably use:
./imp mynewuser/passwrdb#orcl file=newdump_sept.dmp fromuser=system touser=tomynewuser
For help: imp help=y
In my case I solved the error by importing the dump file by using SYS user instead of SYSTEM user and import working without errors.

Resources