Help Export database

hello !
I use a JDBC to connect for MySQL and now I want to export all data structure into a file.
I'm running a simple java application and I'm just using a mysql-connector-java-5.1.6-bin.jar for the connection and it runs perfectly but my problem is how to export my database to a file.
the file structure must be like this :
create database my_database;
create table t1.......
create table t2......
insert into .....
insert into .....
pleeeeeeeease help & thanks in advance

2mohamed2 wrote:
I use a JDBC to connect for MySQL and now I want to export all data structure into a file.Certainly looks to me like mysqldump creates the DDL. If it didn't it would be pretty pointless to add 'drop' statements in.
[http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html]

Similar Messages

  • Help: How to forbiden Export utilities to export database?

    Hi all,
    How to forbiden Export utilities to export database?
    Thanks
    Eric David

    please find the required Process ID of the exp job by using the following command :
    $ ps -ef|grep exp
    After finding it kill the pid (assuming PID as 3388) :
    $ kill -9 3388 --- where 3388 is the PID
    I thought it was regarding the process killing...My word misunderstood it...You cannot disable EXP/IMP utility because it comes with the oracle software itself...if you dont want any one to take the export then revoke those privileges from the required users...
    Cheers!
    Edited by: imran khan on 25 Jul, 2011 2:09 AM

  • Errors in Exporting Database

    Hello!
    I am trying to export a user when i got these problems. My Operating System is Windows 2003 ans my Oracle ver is 9.2.0.3.0. Please help me.
    . exporting pre-schema procedural objects and actions
    EXP-00008: ORACLE error 4068 encountered
    ORA-04068: existing state of packages has been discarded
    ORA-04063: package body "SYS.DBMS_AW" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "SYS.DBMS_AW_EXP", line 216
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when calling SYS.DBMS_AW_EXP.schema_inf
    o_exp
    . exporting foreign function library names for user RESO
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user RESO
    About to export RESO's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    EXP-00056: ORACLE error 31600 encountered
    ORA-31600: invalid input value EMIT_SCHEMA for parameter NAME in function SET_TR
    ANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 3926
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 4050
    ORA-06512: at "SYS.DBMS_METADATA", line 836
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully

    Your first error results into this,
    ORA-04068:     existing state of packagesstringstringstring has been discardedCause:     One of errors 4060 - 4067 when attempt to execute a stored procedure.
    Action:     Try again after proper re-initialization of any application's state. >
    And looking at the 2nd error code,
    ORA-04063:     %s has errorsCause:     Attempt to execute a stored procedure or use a view that has errors. For stored procedures, the problem could be syntax errors or references to other, non-existent procedures. For views, the problem could be a reference in the view's defining query to a non-existent table. Can also be a table which has references to non-existent or inaccessible types.
    Action:     Fix the errors and/or create referenced objects as necessary. >
    So the said package of Sys has issues. Is this database being upgraded recently and thus is having some invalid packages?
    HTH
    Aman....

  • 1005000 &1005029 Essbase Error - MaxL Export database

    Hi, I'm trying to export data in a MaxL command called by a Perl program (automated batch process) using the following command: export database StgAll.StgAll level0 data in columns to data_file 'H:/Export_folder_server09/StgALL_export_server.txtThe Perl program is called from the server 04 and it export a database on the server 09. The ?H:/Export_folder_server09/? directory is mapped ?network driver? on the server 04. I get the following Error message: Executing [export database StgAll.StgAll level0 data in columns to data_file 'H:/Export_folder_server09/StgALL_export_server.txt']... 1005029 - Parallel export enabled: Number of export threads [1] 1005000 - Ascii Backup: Failed to open [H:/Export_folder_server09/StgALL_export_server.txt]. 9 - Essbase error encountered: [GetProcessState] [1005000] 51 - MaxL execution failedWhat am I doing wrong?Someone can help me ?Thanks in advance, Manon

    I'm not certain if thi sis your problem, but I believe it has something to do with the way you are using / marks in your directory path.Take a look at this excerpt from the MaxL tech doc. I hope this helps you.Use of backslashesIgnored unless preceded by another backslash (the escape character). Must use single quotation marks around the token containing the two backslashes.Example: create or replace group 'R\\D';Result: Group R\D is created.Example (Windows): export database sample.basic using report_file 'Essbase\\App\\Sample\\Basic\\asym.rep' to data_file 'c:\\home\\month2.rpt'; Result: The Windows file paths are interpreted correctly as Essbase\App\Sample\Basic\asym.rep and c:\home\month2.rpt.

  • Want to export database not user. i am using oracle 8i and developer 6i.

    i am using oracle 8i and developer 6i. i have created a button(when_button_pressed) on d2k with this command mentioned below. it is working only for user objects but i need to export database. how can i do this?
    declare
         com varchar2(100);
    begin
    host('exp tAJCO/tAJCO@tajco file=D:\dump\tajco.dmp');
    if
         not form_success then
         message('Export failed.');
    else
         message('Export successful');
    end if;
    end;
    please help me.....
    thanks
    mostafiz

    mostafiz,
    To Export entirel database, use the statement
         Host('EXP tAJCO/tAJCO@tajco FILE=D:\dump\tajco.dmp FULL=YES DIRECT=Y',NO_SCREEN);
    Regards,
    Manu.

  • Urgent help needed; Database shutdown issues.

    Urgent help needed; Database shutdown issues.
    Hi all,
    I am trying to shutdown my SAP database and am facing the issues below, can someone please suggest how I can go about resolving this issue and restart the database?
    SQL> shutdown immediate
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-01089: immediate shutdown in progress - no operations are permitted
    SQL> shutdown abort
    ORA-01031: insufficient privileges
    Thanks and regards,
    Iqbal

    Hi,
    check SAP Note 700548 - FAQ: Oracle authorizations
    also check Note 834917 - Oracle Database 10g: New database role SAPCONN
    regards,
    kaushal

  • I got error when I export database ORACLE 9i from solaris 9.

    I want to export full database ORACLE 9i from SOLARIS 9 to import full database on ORACLE 9i on windows.
    I set oracle environment and NSL_LANG with command:
    bash-3.00$ export ORACLE_SID=TIS
    bash-3.00$ export NLS_LANG=AMERICAN_AMERICA.TH8TISASCII
    and then run command to export:
    bash-3.00$ exp system/manager@TIS full=y file= /u03/dmp/TISfull.dmp log=/u03/dmp/exp_TIS.log
    I got error message as:
    Export: Release 9.2.0.1.0 - Production on Thu Oct 8 17:57:32 2009
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export done in TH8TISASCII character set and UTF8 NCHAR character set
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions
    . exporting system procedural objects and actions
    . exporting pre-schema procedural objects and actions
    EXP-00008: ORACLE error 25153 encountered
    ORA-25153: Temporary Tablespace is Empty
    ORA-06512: at "SYS.DBMS_AW", line 42
    ORA-06512: at "SYS.DBMS_AW", line 105
    ORA-06512: at "SYS.DBMS_AW", line 221
    ORA-06512: at "SYS.DBMS_AW_EXP", line 264
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when calling SYS.DBMS_AW_EXP.schema_info_exp
    . exporting cluster definitions
    EXP-00056: ORACLE error 25153 encountered
    ORA-25153: Temporary Tablespace is Empty
    ORA-06512: at "SYS.DBMS_LOB", line 424
    ORA-06512: at "SYS.DBMS_METADATA", line 1140
    ORA-06512: at line 1
    EXP-00056: ORACLE error 25153 encountered
    ORA-25153: Temporary Tablespace is Empty
    ORA-06512: at "SYS.DBMS_LOB", line 424
    ORA-06512: at "SYS.DBMS_METADATA", line 1140
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    How can I solve this problem?
    Any suggestion?

    #### HOW to solve it.
    ## To check the default temporary tablespace of the database:
    SQL> select property_name, property_value from database_properties;
    ## check DEFAULT_TEMP_TABLESPACE, if it use wrong temporary tablespace, run:
    SQL> alter database default temporary tablespace temp;
    ## check user with temporary tablespace, run command:
    SQL> select username, temporary_tablespace, account_status from dba_users;
    ## change temporary tablespace:
    SQL> create temporary tablespace temp1 tempfile '/data/u01/app/oracle/oradata/TIS/temp_b.dbf' size 100m;
    SQL> alter database default temporary tablespace temp1;
    SQL> drop tablespace temp including contents and datafiles;
    SQL> create temporary tablespace temp tempfile '/data/u01/app/oracle/oradata/TIS/temp01.dbf' size 100m autoextend off extent management local uniform size 1m;
    SQL> alter database default temporary tablespace temp;
    SQL> drop tablespace temp1 including contents and datafiles;
    Thanks

  • Export database in quiet mode

    I'm trying to export database (or part of it) via exp utility. Exp utility should be called from command file or from another process (on windows). If something goes wrong (for example user name or password is not correct) exp pauses it's execution and trying to ask user what to do (for example enter valid user name). This is the problem. I want that exp just finish it's execution without asking any input from user. It is possible at all?
    I have read exp's documentation and not found any command line keys which could run exp in non-interactive mode.

    My export command follows:
    D:\Users\ender>C:\Oracle\Ora102g\bin\exp.exe hr/hr@ORCL102G FULL=Y FILE='D:\Users\ender\My Documents
    \hr.dmp' LOG='D:\Users\ender\My Documents\hr.log'
    Export: Release 10.2.0.1.0 - Production on Tue Apr 10 13:26:54 2007
    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
    EXP-00023: must be a DBA to do Full Database or Tablespace export
    (2)U(sers), or (3)T(ables): (2)U > ^C
    D:\Users\ender>
    The real problem is not that HR user must be DBA. The problem is that exp asking questions instead of just fail and exit.

  • How to read a passward protected excel file with the help of database connectivity tool kit

    hi, i was reading an excel file with the help of database connectivity tool kit in labview 8.0
    i made tabels in the excel file nand made odbc connection and specified the workbbok name.
    now my problem is how to read the same file if i specife a pasword to that excel file ?

    Hi,
    Check out this thread about opening a password-protected Excel file using ActiveX. This should take care of it for you!
    Amanda Howard
    Americas Services and Support Recruiting Manager
    National Instruments

  • I need help exporting pages newsletters as single page PDF's or as a .jpeg for an online photo book.

    need help exporting pages newsletters as single page PDF's or as a .jpeg for an online photo book.

    No same idea: 1. Look  2. Try.
    This is in Mavericks:
    Peter

  • Urgent- Exporting database tables

    Hi There,
    I am using Oracle 8.0.6. I want export a table from one server to another.(both are unix machines). How can I do it?
    Thanx in advance

    If a table is samll, then I would recommend you to create a dblink between them and use copy command to copy the table from one db to another.
    Export:
    exp system/password file=exp.dmp log=exp.dmp tables=username.table_name direct=y statistics=none
    ftp the exp.dmp file in binary mode to other unix server.
    imp username/password file=exp.dmp log=imp.dmp fromuser=username touser=username full=y
    Do you have same user exists in both databases? Do you have same tablespaces exists on both databases?
    When you import, it will look for the same tablespace as exported database tablespace. Otherwise, the user who is importing revome unlimited tablespace quota and use one tablespace. also, you have to include ignore=y in this scinario.
    Jaffar

  • How to Export DataBase

    Hello
    How to export database in one line query in command Prompt. Again i explain Single Line Query. I have some Problem in it.
    Thanks

    Hi
    It comes bundled with 10g DB Software so when you install your DB software it is automatically installed and available to you.
    Follow this link to get more info on EXPDP
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_overview.htm
    Cheers

  • Export Database Running Soooo Slow

    Hi,
    I am exporting our oracle 11gR2 database
    C:\Documents and Settings\Administrator>exp system/manager@prod1 FULL=Y STATISTICS=NONE
    Export: Release 11.1.0.6.0 - Production on Tue Apr 26 09:11:53 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
    Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in WE8MSWIN1252 character set and UTF8 NCHAR character set
    server uses UTF8 character set (possible charset conversion)
    About to export the entire database ...
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
    Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in WE8MSWIN1252 character set and UTF8 NCHAR character set
    server uses UTF8 character set (possible charset conversion)
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions
    . exporting system procedural objects and actionsWhy is that it is hanging at "exporting system procedural objects and actions"? It already stayed here for 5 hours.
    How do I count all the procedural objects and actions, so I know how big are they?
    How can I speedup this part?
    Thanks

    843228 wrote:
    I am exporting our oracle 11gR2 database
    Export: Release 11.1.0.6.0 - Production on Tue Apr 26 09:11:53 2011
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bitAre you going to import to 11.1.0.6 server?
    As mentioned a few times, For Oracle Database 10g release 1 (10.1) or higher, Oracle recommends the Data Pump Export and Import utilities... (see the Utilities doc).
    Export done in WE8MSWIN1252 character set and UTF8 NCHAR character set
    server uses UTF8 character set (possible charset conversion)You might want to consider using a client/export character set for the export session that doesn't risk loosing information (e.g. UTF8 / AL32UTF8).
    Why is that it is hanging at "exporting system procedural objects and actions"? It already stayed here for 5 hours.You could turn on tracing for the exp session to try to find out what it is doing. If you have AWR/ASH license then e.g. v$active_session_history might be of some use.
    Edited by: orafad on Apr 26, 2011 9:28 AM

  • Performance for full export database.

    Hi,
    Is it possibe to estimate or measure how much time needs to export the whole database?
    Should I use the parameter "direct=y" to speed up the export process?
    Thanks very much.
    Frank

    Hi,
    I tried the export in the database server, but the error is encountered.
    Is it because the user(system) is different from owner(ds_ap_dwh)?
    Anyone can advise me? thanks alot.
    Frank.
    C:\>exp system/manager owner=ds_ap_dwh direct=y file=g:\oracle\export\ds_ap_dwh.d
    mp log=g:\oracle\export\ds_ap_dwh.log
    Export: Release 9.2.0.1.0 - Production on Tue May 29 23:48:36 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Release 9.2.0.1.0 - Production
    JServer Release 9.2.0.1.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user DS_AP_DWH
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user DS_AP_DWH
    About to export DS_AP_DWH's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    EXP-00056: ORACLE error 24324 encountered
    ORA-24324: service handle not initialized
    EXP-00056: ORACLE error 24324 encountered
    ORA-24324: service handle not initialized
    EXP-00000: Export terminated unsuccessfully

  • I need help exporting Apple Mail messages to Outlook for MAC 2011

    Good morning,
    I need help exporting Apple Mail messages to Outlook for MAC 2011. Please....

    It is possible to do this without external tools, but it is a tremendous faff. See
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macoutlook/import-ema il-from-mail-to-outlook-2011/5e858173-e1f4-4adc-99d7-253cc467169d?page=2 for details.
    The easiest way, however, is to use Mail Exporter Pro https://itunes.apple.com/us/app/mail-exporter-pro/id675131616?mt=12 which will convert the email for you from one format to the other, and comes with an excellent manual.
    A third possibility is to connect Apple Mail to an email account via IMAP (this doesn’t have to be your usual account, you can just create a Gmail account for the purpose) . Copy all the messages into it and they will be uploaded. Then connect Outlook 2011 to the same account, via IMAP again, and let the messages download, then copy them to wherever you want to keep them and disconnect from that account. This is slow but preserves the attributes of your email (e.g. read/unead) better than any other method.

Maybe you are looking for

  • Oracle VM Server v3.1.1 stuck at "Starting Udev"

    This is a fresh install of 3.1.1. No matter what I install on to, be it a physical HDD or USB key, I can't get 3.1.1 to boot. Everytime it gets as far as "Starting udev" and then just gets stuck at this stage. v3.0.3 on the exact same machine works f

  • Queries on Event Notification Service

    Hi, I have installed the System Messaging Server 6 2005Q1 in Linux and wish to use the Event Notification Service for the Mail Server. I have the following queries on the ENS 1) Does it follow the SUBSCRIBE/NOTIFY dialog under SIP? 2) The enp:// type

  • JTable custom cell editor losing focus

    This is a followup to Re: Tutorial on AWT/Swing control flow wherein I ask for pointers to help me understand the source of focus-loss behaviour in my JTable's custom cell editor. I have done some more investigations and it turns out that the focus l

  • Robot Class (Screen Capture)

    Hello friends, i have a problem and i don't know if it's a bug or something wrong with my code i just developed this code below to create a screencapture application and i do get the screen capture in the jpeg format but the problem is that i don't s

  • File Place an image brings in a really huge graphic

    Hi All, I have just started using InDesign CS6 and I am trying to place images in between paragraphs of text for a book. When I place the image it comes in really huge, breaks the text and disappears, so I can't even see the image to reduce its size.