Importing MYSQL dump into Oracle database
Hi,
I want to import MYSQL database dump into Oracle 9i database.
Can any body suggest as how to proceed for this.
thanks in advance
if you're referring to dump generated by mysqldump then you have a lot of work to do since Oracle does not support sql syntax in the dump file.
alternatively, you can export each table into .csv file using phpMyAdmin and then load that .csv using SQL Loader or external table.
Similar Messages
-
Importing 8i dump into oracle 9i
Hi,
Is it possible to import oracle 8i dump into oracle 9i database.
If yes, whether any data loss would occur if I import oracle 8i dump into oracle 9i server.
Please explain me in this regard.Yes, I have a same environment as my production database is on Oracle8i and backup(another site) database is on Oracle8i and we have scheduled weekly import which export the data from Oracle8i using Oracle8i 'exp' command and import into Oracle9i using its 'imp' command.
I have never noticed any error while importing... all logs are quite clear and record logs as 'successfully imported'
As Paul indicated, if you are really getting any error, write it specifically.
Zia Shareef -
Import oracle apps dump into oracle database
Dears,
Is it possible to import the dump taken form oracle apps to oracle 11g.
If it is possible could anybody list down the steps.
Thanks
Janani.Cfrom oracle apps (64 bit) to oracle 11g (64 bit).The source of a dump is a database, not apps. The source may be 11g or 10g or 9i.
If this "apps" environment is an Oracle EBusiness Suite you must follow the instructions on Export-Import of EBusiness Suite which are detailed in a few notes on support.oracle.com Not following the instructions will leave you with a not-working, unsupportable environment.
Hemant K Chitale -
Importing a dump into Oracle...
I have a dump file (*.dmp) from an Oracle database. How do I import it into my Oracle database? The tables are alll created in my Oracle database. The import utility only seems to import from XML or Excel files. I have the Oracle Database 10g Express Edition I downloaded from this site.
I think this is the last piece of the puzzle to get me set up with what I need.
Thanks!"The import utility only seems to import from XML or Excel files."
The import utility can only understand the dump file (*.dmp) created by export utility. Import cannot read XML or Excel files.
To import the data one example is as follows
c:\> imp file=yourfile.dmp fromuser=scott touser=hary
You can also take the help of imp utility by the following command.
c:\> imp help=y
As concern to version compatibility issues, Please read the following thread.
Re: Getting problem in Import/export of data
-aijaz -
Import Raster image into oracle database
I am trying to load raster image into oracle spatial 10g. It is a tiff file. I am using Oracle Mapbuilder that comes with oc4j.
I use Tools Menu -> Import Image to import that image into an oracle table.
But I get error -
java.lang.NoSuchMethodError: javax.media.jai.RenderedOp.getNumBands()I
i am using java 1.5 and i have set path to java media library - jai_codec.jar, jai_codec_depl.jar , jai_core.jar, jai_core_depl.jar
Pl help..
Thanksooee i solved it...
i used jre 1.6 and it works fine... -
Need help for importing oracle 10G dump into 9i database
hi, Someone help me to import oracle 10G dump into 9i database. I'm studying oracle . Im using oracle 10G developer suite(downloaded from oracle) and oracle 9i database. I saw some threads tat we can't import the higher version dumps into lower version database. But i'm badly need help for importing the dump...
or
someone please tell me the site to download oracle 9i Developer suite as i can't find it in oracle site...I didnt testet it to import a dump out of a 10g instance into a 9i instance if this export has been done using a 10g environment.
But it is possible to perform an export with a 9i environment against a 10g instance.
I am just testing this with a 9.2.0.8 environment against a 10.2.0.4.0 instance and is working so far.
The system raises an EXP-00008 / ORA-37002 error after exporting the data segments (exporting post-schema procedural objects and actions).
I am not sure if it is possible to perform an import to a 9i instance with this dump but maybe worth to give it a try.
It should potentially be possible to export at least 9i compatible objects/segments with this approach.
However, I have my doubts if this stunt is supported by oracle ...
Message was edited by:
user434854 -
Convhow to erting MySQL database into oracle Database
Hi,
how to import/convert MySQL database/tables into oracle database/table.
i need SQL code or any import wizard technique.
ThnxzPlease refer:
http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html -
How to import a data dump into Oracle express
Hi
Thank you for reading my post
how i can import a data dump which is a dump of my Schema in oracle 10g into oracle database express ?
indeed it is just 20 tables and one sequence that i exported from oracle 10g and i want to import it into my oracle express 10g
thanksHi,
I
1) export the data from your source database XE
C:\WINDOWS\system32>exp userid=USER1@XE1 file=user1.dmp
2) in the target XE database you would have to recreate the same user, e.g. USER1
3) run imp on the same dump file:
C:\WINDOWS\system32>imp userid=USER1@xe2 file=user1.dmp full=yes ignore=yes
II
From DOS prompt make directory
DOS>md c:\oraclexe\tmp
DOS>cd c:\oraclexe\app\product\10.2.0\server\BIN
DOS>sqlplus SYS/Password AS SYSDBA
It is posible to be SYS/Password@SID AS SYSDBA
SQLPlus>CREATE OR REPLACE DIRECTORY XMLDIR AS 'C:\oraclexe\Tmp';
SQLPlus>GRANT READ, WRITE ON DIRECTORY XMLDIR TO property;
Go back to DOS prompt. There are two files - expdp.exe and impdp.exe in BIN directory.
DOS>expdp SYS/Password AS SYSDBA SCHEMAS=property DIRECTORY=XMLDIR DUMPFILE=property.dmp LOGFILE=property.log
From DOS prompt make directory
DOS>md c:\oraclexe\tmp
DOS>cd c:\oraclexe\app\product\10.2.0\server\BIN
DOS>sqlplus SYS/Password AS SYSDBA
It is posible to be SYS/Password@SID AS SYSDBA
SQLPlus>ALTER SYSTEM SET NLS_LENGTH_SIMANTICS='CHAR' SCOPE=BOTH;
SQLPlus>CREATE OR REPLACE DIRECTORY dmpdir AS 'C:\oraclexe\Tmp';
SQLPlus>GRANT READ, WRITE ON DIRECTORY XMLDIR TO public;
Go back to DOS prompt. There are two files - expdp.exe and impdp.exe in BIN directory.
DOS>impdp SYS/Password AS SYSDBA SCHEMAS=property DIRECTORY=XMLDIR DUMPFILE=property.dmp LOGFILE=property.log
There are so many treads about export and import in XE.
Konstantin -
I export dump from oracle database 8.1.7 and try to import in 10.2.0. while import its prompt error as follow
8.1.7
SQL> select * from nls_database_parameters where parameter like '%SET%';
PARAMETER VALUE
NLS_CHARACTERSET US7ASCII
NLS_NCHAR_CHARACTERSET US7ASCII
10.2.0
SQL> select * from nls_database_parameters where parameter like '%SET%';
PARAMETER VALUE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_CHARACTERSET WE8MSWIN1252
C:\Documents and Settings\Administrator>imp system/manager file=H:\CGlByte\cglby
te_03-07-2013Wed.dmp fromuser=system touser=cglbyte ignore=y
Import: Release 10.2.0.4.0 - Production on Thu Jul 4 16:11:49 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Produc
tion
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V08.01.07 via conventional path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses WE8MSWIN1252 character set (possible charset conversion)
export client uses WE8ISO8859P1 character set (possible charset conversion)
export server uses US7ASCII NCHAR character set (possible ncharset conversion)
Import terminated successfully without warnings.
Pl suggest remedy
Regards,8.1.7
AMERICAN_AMERICA.WE8ISO8859P1
10.2.0
AMERICAN_AMERICA.WE8MSWIN1252
exp system/manager file=d:\cgl.dmp owner=cgl, even i set character set before export but no impact -
I can not import the mvdemo.dmp into oracle database
I have download mapviewer from oracle ,but i can not import the demo data of mvdemo.dmp into oracle database ,it just report the character set problem can not transfer. i am using oracle 9i resease Chinese edition,may smoe friend tell me the how to solve problem. thanks a lot.and which character character set of mvdemo.dmp has used.
Drag the photos to the iPhoto icon on the dock. Then wait for the fix that will hopefully come in 10.8.3
-
Can one import .odarc extention file into oracle database
Hi All,
When we asked client for their production data dump, we got a file with .odarc extention. I googled to find out about this file extention and found info mostly referring to User Productivity Kit. I assume that this file cannot be imported in to oracle database. Since my knowledge about this is limited, I want to find out if it's possible to import this file to oracle database or not. If it's possible what's the work around.
Environment details
OS : Windows server 2003 sp2
Oracle version : 11.2.0.1
Please ask me if the info is insufficient.
Thanks & RegardsOracle can only process files created with :
1. Oracle exp (export tool) with imp
2. Oracle expdp (data pump export) with impdp
3. plain ASCII files with a column based format like CSV with SQL*Loader or external table
4. file containing Oracle SQL statements with SQL*Plus or similar tool.
Any other file type cannot be directly processed by Oracle.
Edited by: P. Forstmann on 17 févr. 2011 09:11 -
Import data from a Fixed Length File into Oracle database
Hi,
I would like to import data from a Fixed Length text file into a table using HTML DB application.
As of now, i have a .sql file(that uses external table) to import the data into Oracle tables
I would like to integrate this in my HTML DB application so that the user can directly import the data into the table.
Sample data
XXXYYYYZZZZZ
Data should be read to table that has
Col1 Col2 Col3
XXX YYYY ZZZZZHi,
I would like to import data from a Fixed Length text
file into a table using HTML DB application.AFAIK, fixed length imports are not something you can do directly with the HTML DB tools or available APIs.
As of now, i have a .sql file(that uses external
table) to import the data into Oracle tables
I would like to integrate this in my HTML DB
application so that the user can directly import the
data into the table.Any fixed-length data needs to have a specification associated with it that indicates which character position begins a new column and what each column represents. Some also include what datatype should be used for each of those.
If you really want to do this I would suggest that you create a table that you can store the file spec in. It would probably have columns for field name, start position, length or end position, datatype and any alias/column name you might want to apply. You would then use this table in a PL/SQL procedure (probably a package with the main processing procedure and various supporting procedures/functions) to read the file into memory, apply the file spec to each line and then do inserts into your table.
Obviously, this is just a concept or strategy. Implementing it will depend on your PL/SQL skills and determination. If you want to pursue this strategy I'm sure you can find some jump-starts by doing a search on the PL/SQL forum.
This may not sound like an answer - but the answer is you need to code it to fit your requirements. Hope that helps.
Earl -
Importing the dump into 10g which exported from 11g server
hi
can i import the dump into 10g which exported from 11g server?
thanks
nidhiknidhi wrote:
hi
can i import the dump into 10g which exported from 11g server?
thanks
nidhiHi Nidhi,
No, if you want to use an 11g export dump and import it using 10g utilities to a 10g database.
Yes, if you use 10g export utility to extract 11g database data, and use 10g import utility to import in 10g database.
For more information on export/import compatibility, please check:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/exp_imp.htm#
HTH
Regards,
Z.K. -
How to insert a image file into oracle database
hi all
can anyone guide me how to insert a image file into oracle database now
i have created table using
create table imagestore(image blob);
but when inserting i totally lost don't know what to do how to write query to insert image fileHi I don't have time to explain really, I did have to do this a while ago though so I will post a code snippet. This is using the commons file upload framework.
Firstly you need a multi part form data (if you are using a web page). If you are not using a web page ignore this bit.
out.println("<form name=\"imgFrm\" method=\"post\" enctype=\"multipart/form-data\" action=\"FileUploadServlet?thisPageAction=reloaded\" onSubmit=\"return submitForm();\"><input type=\"FILE\" name=\"imgSource\" size='60' class='smalltext' onKeyPress='return stopUserInput();' onKeyUp='stopUserInput();' onKeyDown='stopUserInput();' onMouseDown='noMouseDown(event);'>");
out.println(" <input type='submit' name='submit' value='Submit' class='smalltext'>");
out.println("</form>"); Import this once you have the jar file:
import org.apache.commons.fileupload.*;Now a method I wrote to upload the file. I am not saying that this is correct, or its the best way to do this. I am just saying it works for me.
private boolean uploadFile(HttpServletRequest request, HttpSession session) throws Exception {
boolean result = true;
String fileName = null;
byte fileData[] = null;
String fileUploadError = null;
String imageType = "";
String error = "";
DiskFileUpload fb = new DiskFileUpload();
List fileItems = fb.parseRequest(request);
Iterator it = fileItems.iterator();
while(it.hasNext()){
FileItem fileItem = (FileItem)it.next();
if (!fileItem.isFormField()) {
fileName = fileItem.getName();
fileData = fileItem.get();
// Get the imageType from the filename extension
if (fileName != null) {
int dotPos = fileName.indexOf('.');
if (dotPos >= 0 && dotPos != fileName.length()-1) {
imageType = fileName.substring(dotPos+1).toLowerCase();
if (imageType.equals("jpg")) {
imageType = "jpeg";
String filePath = request.getParameter("FILE_PATH");
session.setAttribute("filePath", filePath);
session.setAttribute("fileData", fileData);
session.setAttribute("fileName", fileName);
session.setAttribute("imageType", imageType);
return result;
} And now finally the method to actually write the file to the database:
private int writeImageFile(byte[] fileData, String fileName, String imageType, String mode, Integer signatureIDIn, HttpServletRequest request) throws Exception {
//If the previous code found a file that can be uploaded then
//save it into the database via a pstmt
String sql = "";
UtilDBquery udbq = getUser(request).connectToDatabase();
Connection con = null;
int signatureID = 0;
PreparedStatement pstmt = null;
try {
udbq.setUsePreparedStatements(true);
con = udbq.getPooledConnection();
con.setAutoCommit(false);
if((!mode.equals("U")) || (mode.equals("U") && signatureIDIn == 0)) {
sql = "SELECT SEQ_SIGNATURE_ID.nextval FROM DUAL";
pstmt = con.prepareStatement(sql);
ResultSet rs = pstmt.executeQuery();
while(rs.next()) {
signatureID = rs.getInt(1);
if (fileName != null && imageType != null) {
sql = "INSERT INTO T_SIGNATURE (SIGNATURE_ID, SIGNATURE) values (?,?)";
InputStream is2 = new ByteArrayInputStream(fileData);
pstmt = con.prepareStatement(sql);
pstmt.setInt(1, signatureID);
pstmt.setBinaryStream(2, is2, (int)(fileData.length));
pstmt.executeUpdate();
pstmt.close();
con.commit();
con = null;
if(mode.equals("U") && signatureIDIn != 0) {
signatureID = signatureIDIn.intValue();
if (fileName != null && imageType != null) {
sql = "UPDATE T_SIGNATURE SET SIGNATURE = ? WHERE SIGNATURE_ID = ?";
InputStream is2 = new ByteArrayInputStream(fileData);
pstmt = con.prepareStatement(sql);
pstmt.setBinaryStream(1, is2, (int)(fileData.length));
pstmt.setInt(2, signatureID);
pstmt.executeUpdate();
pstmt.close();
con.commit();
con = null;
} catch (Exception e) {
con = null;
throw new Exception(e.toString());
return signatureID;
} -
Import DMP file into Oracle 8.1.5 on Windows 2000
How to import DMP file into Oracle 8.1.5 database on Windows 2000 ?
Please mention a coding example
Thanks,
Vivek GuptaImport has a lot of options, so it depends on what you want to do.
C:\> imp help=y
will show you all possible options. An example of full import :
C:\> imp <username>/<password>@<TNS alias> file=<DMP file> full=y log=<LOG file>
Message was edited by:
Paul M.
...and there is always [url http://download-uk.oracle.com/docs/cd/F49540_01/DOC/index.htm]The documentation
Maybe you are looking for
-
My machine will not boot. I get a grey screen,an apple, and then silent black stillness. I can boot from my install disk and run Disk Utility. I select the Macintosh HD, and get a First Aid failed message with the following info: Invalid Key Length V
-
my iphone has just updated the lastest upgrade and i have lost my purchased ring tones they are still in my itunes but will not sync with my phone any help please
-
Japanese characters retrieved from UTF8 d/b from excel
Hi All, I am generating a csv file(comma seperated) through a query from Oracle 9i database. There is one field which is Japanese. Our database is UTF8 enabled and when the csv file is opened from notepad/textpad then it is showing the Japanese chara
-
Colourfull row in classical report
Hi, I have classical report. I have to do colour full to row in report. how i can set green colour for a row in classical report. Thanks & regards Vedant
-
Office 2010 and windows 7 not save power point presentation ?
I am opening Power point Presentation 2010 then internet gives me 3 options , open , save, cancel. If i save Power Point Presentation then i will save it to drive location. after some modification and saved back to presentation. i have user power poi