Could I export and import my oracle database via Stored Procedure???

Hi all,
I need to export my database using stored procedure, the stored procedure will be called by java application and it works well
Now I still get the "BIG QUESTION", could I export and import database using stored procedure???
Really thanks for the response.
Regards,
Kahlil

Hi,
I think you can use DBMS_DATAPUMP (10.1+), see [DBMS_DATAPUMP|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_datpmp.htm#i1007277], for examples see [http://www.psoug.org/reference/dbms_datapump.html]
Regards,

Similar Messages

  • Export and Import in Oracle

    I need to export users with tables and data from Oracle 8.0.4 and import into Oracle 8.1.7.
    But the condition is that we need to retain the Japanese characters.
    I did this using simple export and import functions but Japanese characters were imported as Junk.
    Can somebody tell me what is the clean way of exporting and importing such that Japanese charaters are not converted to Junk.

    You must set the correct characterset before exporting and importing (I don't know which characterset is correct for you, but choosing the same characterset as the characterset of your database should work).
    Use NLS_LANG environment variable to do this,
    NLS_LANG=<LANGUAGE>_<TERRITORY>.<CHARACTERSET>. On UNIX if NLS_LANG is not set explicitly, it defaults to AMERICAN_AMERICA.US7ASCII, that means all special characters cannot be translated.
    On Windows NLS_LANG is set at installation time, it corresponds to the settings of Windows itself.

  • Export and Import of Portal Database - Help Required

    Hi,
      We have a NW04 production portal running on AIX clustered environment (HACMP). We are building another landscape for which i need to export the current portal and import onto new portal which is already clustered (HACMP). Can someone point document to use sapinst (Jload) for export and import for this high availability systems.
    Thanks
    Murali.

    Hi ,
    Check with below pdfs.
    check whther they are helpful or not
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/303af93a-0811-2a10-0687-f3514f0103c8
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/508e36c5-5914-2b10-a795-d25997cf3270
    EP6 system copy
    Koti Reddy

  • Sending Long Raw Data to Oracle database through Stored  Procedure

    Hi,
    I am trying to push data to Oracle 9i database through Stored Procedure via thin driver. It is going smoothly upto 29411 bytes. But it is not accepting for 53843 bytes and giving following error :
    java.sql.SQLException: Data size bigger than max size for this type: 53843
    Is it thin driver limitation? Can I solve it by using OCI driver? Or is there any other approach?
    I tried creating connection pool in weblogic 7.0 through OCI driver. But I am not able to configure it. Is there any special way of configuration.
    Quick response will be greatly appreciated.
    Thanks
    Sanjiv

    It happens to me. But I am using CMP of Weblogic 7. If you write your own jdbc code, the following link may be helpful.
    http://otn.oracle.com/sample_code/tech/java/codesnippet/xmldb/HowToLoadLargeXML.html

  • Ref import exported 8.1.7 oracle database including webtools procedures

    Hello,
    I was using an old 8.1.7 oracle database with pl/sql procedures with webtools.
    Is it possible use them in 10g?
    If yes. How?
    Thank you,
    Marius Darie

    Hi,
    One more thing: between 8.1.7 and 9i or higher, spatial index
    creation has changed in the following ways:
    -- in 8.1.7, scratch tables are created in user's default tablespace
    -- in 9.0.1+, scratch tables are created in user-specified tablespace for spatial index.
    The scratch tables are intermediate tables used in index creation.
    I think the tablespace you specify as part of the index-creation may not
    be having enough space to hold the scratch tables (along with the index table).
    You may want to increase the size of the "tablespace101" and retry the import.
    Also, check your temp space too. The documentation has guidelines for these sizes.
    - Ravi.

  • How Schema can be exported and imported in Oracle Apex?

    Hi,
    I am very new to oracle apex. I had installed Oracle XE database and apex successfully. I want to import an application to my apex. The application was created using workspace -Ver and Schema- Ves. I had imported the application and workspace into my apex. But, I am not able to run the application because, I had specified my default schema(HR) for the application. How can I import the schema 'Ves' ,in which the application is developed, into my apex?..so that I can run the application in the same schema..Please Help. Thanks

    hari wrote:
    Hi,
    I am very new to oracle apex. I had installed Oracle XE database and apex successfully. I want to import an application to my apex. The application was created using workspace -Ver and Schema- Ves. I had imported the application and workspace into my apex. But, I am not able to run the application because, I had specified my default schema(HR) for the application. How can I import the schema 'Ves' ,in which the application is developed, into my apex?..so that I can run the application in the same schema..Please Help. ThanksI am concerned that perhaps you and Jeffrey are working at cross purposes here. If you wouldn't mind confirming a few things first:
    1. You make references to "import[ing] the application and workspace into +my+ apex - how many instances of oracle/apex do you have?
    2. You say that you "specified [your] default schema (HR) for the application." I am assuming that you are referring to the "parsing schema"? If so, you can change this you know - it isn't 'set in stone' at the time you install.
    3. With the above in mind, does the schema "Ves" exist at all in the 'target' Oracle instance /apex installation? If so, it may not be necessary to re-create it.
    If you really do require to export/import the "Ves" schema, bear in mind that the DDL script will only create the schema objects - it won't load the data with it; you'll need to do that separately (or at least, code that element yourself into the script, if it's on the same DB instance). This might not be a problem for you but if your app relies on metadata from look-up tables and the like, it may not behave the way you expect, or even run at all...

  • Data export and import between Oracle 9 and 10

    Hi all,
    I have been working with this for weeks. Reading posts and oracle doc. Finally, bugs block my way. Hope you can help me out. Many Thanks.
    Situation: I need to export data of one table from Oracle 10.2.0.1 to Oracle 9.2.0.8
    Background: Oracle 10.2.0.1 at Machine 1(IBM AIX), Oracle 9.2.0.8 at Machine 2(don't know, maybe Stratus), My local Machine(XP)
    Method 1: using SQL developer (MWB)
    Bug: there is CLOB field in the target table. All content of CLOB field become "(CLOB)" and data lost. This is a logged bug.
    Solution: give up using SQL developer
    Method 2: using Oracle 10 client exp & imp and remote from my local machine XP
    Bug: PLS-00302-SET_NO_OUTLINES must be declared
    Solution: using Oracle 9 client
    Method 3: using Oracle 9.2.0.1 client, since my local machine is XP
    Bug: EXP-00003: no storage definition found for segment (target DB run Oracle 9.2.0.8)
    Solution: using Oracle 9.2.0.8 client
    Problem: Oracle 9.2.0.8 client is for Stratus x86 only? I have no idea what Stratus is except believing it is a server machine.
    My senior told me to use sqlldr. But I just used it once for 3rd party DB for import. Can sqlldr export data?
    I would like to ask for any suggestions or/and solutions. Many Thanks!
    Best regards,
    Philip

    Hi OrionNet,
    Thank you very much for your helping and my problem solved. Here is my version of spool setting modifying from OrionNet example.
    set echo off
    set newpage 0
    set space 0
    set pagesize 0
    set long 2000000 //this is for CLOB, set it enough large to avoid missing data
    set feed off
    set head off
    set trimout on
    set trimspool on
    spool C:\spool.dat
    SELECT col1||'<EOFD>'||col2||'<EOFD>'||col3||'<EORD>' //this is separator for sqlldr
    FROM tab1
    WHERE col2 = 'XYZ';
    spool off
    and control file for sqlldr
    load data
    infile 'spool.dat' "str '<EORD>'" //ROW separator
    append
    into table tab1
    fields terminated by '<EOFD>' //FIELD separator
    trailing nullcols
    col1,
    col2,
    col3
    I think that using spool and sqlldr is the most "painless" method for Oracle 10g to 9i data move unless you are DBA of both DBs.
    Please share If anyone have easier/safer method. I am just crazy to migrate backward Oracle version.
    Thanks again,

  • Export and Import for R12 database instance (docid 741818.1)

    I have a situation where I am missing objects in CTXSYS schema and other schemas that are not exported but are required by oracle applications after my import. Is there any script I can run to recreate these objects.
    eg AD_CTX_DDL
    APPS_ARRAY_DDL
    APPS_DDL
    CS_KB_CTX_PKG. I think these are packages.
    Also I am missing certain privileges on packages given to system and application users by sys eg DBMS_SHARED_POOL. I have already executed adgrants

    eg AD_CTX_DDL
    APPS_ARRAY_DDL
    APPS_DDL
    ORA-20000 APPS_DDL/APPS_ARRAY_DDL package(s) missing or invalid in schema CTXSYS (Doc ID 944150.1)
    CS_KB_CTX_PKG. I think these are packages.Run the following scripts from $CS_TOP/patch/115/sql directory:
    cskbdstb.pls
    cskbdsts.pls
    Also I am missing certain privileges on packages given to system and application users by sys eg DBMS_SHARED_POOL. I have already executed adgrantsHave you run recreate grants and synonym from adadmin?
    Thanks,
    Hussein

  • Export and Import of repositories

    Hello all,
    I was trying to import a repository and reports created on a different BI server.Can anyone help me with the proper steps to do so?
    When I try to do the same and open up one of the imported report...it asks me for a dsn name and a driver....It is very well understood that the dsn name and the driver is missing coz the db's in the physical layer are in the oracle db...
    But how do I connect when I don't have the table in my oracle db???
    Plz help and let me know if its possible....
    Any suggestions would be considered helpful...
    Thanks
    Susane

    Dear Pushpesh,
    Please, try this
    How Schema can be exported and imported in Oracle Apex?
    If this question is answered, please mark the thread as closed and assign points where earned..
    Best Regards
    Mahmoud

  • Export and import Oracle 10G database

    Hello all
    Can anyone tell me once for all how can i backup oracle 10G database and restore it in other computer (export and import)
    thanks alot
    Ron

    Do you can access to metalink?
    If not, I copy an paste this doc's....
    Doc ID: Note:10767.1
    Subject: How to perform FULL System Export/Imports
    Type: BULLETIN
    Status: PUBLISHED
    Content Type: TEXT/X-HTML
    Creation Date: 18-APR-1994
    Last Revision Date: 30-AUG-2002
    Purpose
    This article highlights some important points to consider when performing
    a Full System Export and Import.
    Scope and Application
    It is intended to assist users performing FULL System Exports and Imports.
    A Full System Export and Import is a useful way to replicate or clean up
    a database. Please note the following guidelines when performing a Full
    System Export and Import:
    1. When performing the import, ensure you are pointing at the correct
    instance. Always check values for the SID and two task driver before
    proceeding.
    *Note:   On Unix systems, just entering a sub-shell, such as using
    C-shell, can change the database that the import would work
    against.
    2. When possible, it is advisable to take a physical copy of the
    exported database and the database you intend to import into before
    starting the import. This ensures any mistakes are reversible.
    3. NEVER run a FULL SYSTEM IMPORT on a machine that has more than one
    database UNLESS you are 100% sure all tablespaces have been
    pre-created. A full import will create any undefined tablespaces
    using the same datafile names as the exported database. There are
    situations where this is very dangerous:
    -> If the datafiles belong to ANY other database, they will be
    CORRUPTED. This is especially true if the exported database is
    on the same machine, because its datafiles will be re-used by
    the database you are importing into.
    -> If the datafiles have names that clash with existing operating
    system files.
    4. When exporting, it is advisable to also produce a report showing
    information you may need before / after the import:
    -> List the tablespaces and datafiles
    -> List the rollback segments
    -> List a count, by user, of each object type such as tables,
    indexes, etc.
    This enables you to ensure that tablespaces have been pre-created
    and to check the success of the import after it is complete.
    5. If you are creating a completely new database from an export, remember
    to create an extra rollback segment in SYSTEM, and make this available
    in the init.ora file before proceeding with the import.
    6. There are some versions of export that do not retain sequence numbers
    correctly. It is advisable to select next_value for each sequence
    after the export so that these can be checked after import.
    Following these guidelines will help you to avoid major problems.
    Doc ID: Note:174226.1
    Subject: How To Copy an Oracle Database To Another Machine
    Type: HOWTO
    Status: PUBLISHED
    Content Type: TEXT/X-HTML
    Creation Date: 12-OCT-2001
    Last Revision Date: 01-OCT-2003
    goal: How to copy an Oracle database to another machine
    fact: Oracle Server - Enterprise Edition
    fix:
    Pre-requisites: The copy is between 2 machines, both have to be on the same OS
    and have to have exactly the same database version installed.
    1. Make sure the database you want to copy was closed with a SHUTDOWN IMMEDIATE,
    SHUTDOWN NORMAL or SHUTDOWN TRANSACTIONAL.
    2. Copy init.ora and control files to create instance and be able to go in
    mount mode. Check the init.ora for the locations where the controlfiles have
    to be, if those locations are not valid on the machine put the control files on
    different places and adjust the init.ora accordingly.
    3.a. Copy the datafiles (all of them).
    b. Copy the redo-logfiles (all of them).
    4.a. (Unix only) Set the environment variables:
    ORACLE_SID - set to the database name you wish to create
    ORACLE_HOME - set to full pathname of the Oracle system home directory
    PATH - needs to include $ORACLE_HOME/bin
    b. (NT/2000 only) Do 'set ORACLE_SID=<SID>'
    Use oradim to create the service for the instance. For more information
    on oradim please refer to (the part that refers to creating a new instance):
    Note:68720.1 Creating a new 7.3, 8.0, 8.1 Instance/Database
    5. Use servermanager (check the name to use for your version of oracle) or
    sqlplus (version 9i and above) to startup the database in mount mode.
    Do
    CONNECT INTERNAL/<PASSWORD>
    then
    STARTUP MOUNT
    Then do a rename of the copied datafiles if they are not in the same path as on
    the other machine. For all the files that are in the result of the query:
    SELECT NAME FROM V$DATAFILE;
    do
    ALTER DATABASE RENAME FILE '<oldfullpath>\<filename>' to <
    newfullpath>\<filename>';
    6. Query the datadictionary for the old location of the redolog files using:
    SELECT MEMBER FROM V$LOGFILE;
    If the new place is not the same as the old do:
    ALTER DATABASE RENAME FILE '<oldfullpath>\<redologfilename>' to &
    lt;newfullpath>\<redologfilename>';
    7. Now open the database:
    ALTER DATBASE OPEN;
    ******************************************************************

  • Query on Database Export and Import

    Hi Techies,
    Currently we are running our Database on Oracle 10g and SAP on4. and OS is HP UX 11.11.
    We have a plan to migrate our HW from PA-RISC to Itanium and at the time of Production migration we are planning to use Export and Import method to get free space.
    Our plan is as below:
    We will not touch the original Production, Just restore the DB into new server.
    And post restore we will create the space on new server equallent to our DB size.
    Then will perform DB export from the new system to the null space
    Then Import the DB into same system.
    Here my queries are:
    1) Is it possible to export and Import the Database from/to null space?
    2) We have 2T size of DB, And good resources like 32G Ram, 12 CPUs etc. How much time can be expected to perform Export and Import?
    3) What are the challenges we can expect?
    4) Minimum how much of free space we can expect with this option?
    Regards,
    Nick Loy

    So with test runs I can expect rapid speed in DB export and Import (1T/H)........If I have good system then Database export and Import gets complete within 2 hrs (Database size is 2T).
    Well 1tb is at the very top of expectations here, you should be careful. I did an export/import of a 1.5tb database of an ERP system lately. We did parallel export (40 processes) / import (20 processes) using distmon, source was HP IA64, target Linux x64_64. The disks were midrange SAN storage systems on both sides.  After tuning we managed to do in 6-7hrs.
    But in your case, if you only have one system, this could mean you have to drop the source db first and then recreate the target db on the same disks. The creation of the 1-2tb database files alone can take up more than 1 hour , besides that you don't have an easy fallback.
    If you have a test system that is comparable from size and hardware perspective, then i suggest you try a test export to get a feeling for it.
    What about the Online re-org of database? What would be the best way to get free space within minimum downtime?
    Theoretically you should be able to gain more or less the same amount of space doing online reorgs. The advantage is less downtime, the downside is the reorgs will be running over a longer time period and put additional load on the system.
    Cheers Michael

  • Steps to export and import oracle 10g databse from AIX to AIX and LINUX

    Hi,
    I need the steps to export the oracle 10g database from AIX server to AIX server and LINUX server.
    Please give me all the steps as this is my first exort an import activity.
    thanks,

    For 10g there exist two ways to do so.
    1) Regular exp/imp.
    2) Data pump expdp/impdp.
    As this is your first export and import activity, relevant concept understanding is mandatory for you.
    Documentation Link
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/toc.htm
    Read the chapters 1,2,3 (Data pump expdp/impdp) and 19 (regular exp/imp). Good luck.

  • Step to export and import oracle 10g on AIX,LINUX

    Hi ,
    Plase any one can give nme the steps to be followed to export and import oracle 10g database from AIX to AIX and LINUX also.
    Waiting for your response.
    Thanks..

    You dont have to follow any special steps, Export and Import are same on all OS's.

  • Guide me for exporting and importing data from oracle 10g to oracle 9i

    I have been trying export and import options in oracle but m not very clear about the procedure..
    Also when i am logging in as Scott/tiger i am facing an error
    ORA 1542 - tablespace 'USER' is offline and cannot allocate space in it.how to resolve it

    Hello,
    I see two questions.
    ORA 1542 - tablespace 'USER' is offline and cannot allocate space in it.how to resolve it About the error ORA-01542 you have to bring the Tablespace USERS online:
    http://www.error-code.org.uk/view.asp?e=ORACLE-ORA-01542
    If you cannot bring it online you may have to Recover it first.
    I have been trying export and import options in oracle but m not very clear about the procedure..About the Export in 10g and Import in 9i (9.2 or 9.0.1 ?), you have to export with the Export utility of the Target Database (the lowest Database version here: 9.0.1 or 9.2) then, you have to Import to the Target Database using its Import utility (in 9.0.1 or 9.2).
    The following Note of MOS may guide you:
    Compatibility Matrix for Export And Import Between Different Oracle Versions [Video] [ID 132904.1]
    NB: You cannot use here the DATAPUMP.
    Hope this help.
    Best regards,
    Jean-Valentin

  • Database Export and Import.

    Hi,
    I want to export and import database using .dmp file from two schema, Schema names as PRODUCTION and DEVELOPMENT.
    I want to export a script of PRODUCTION schema and clean the DEVELOPMENT schema add the .dmp file in DEVELOPMENT schema.
    Please suggest me the script to do this activity. I tried many ways not able to import successfully
    Thanks
    Sudhir

    Sudhir_Meru wrote:
    Hi,
    I want to export and import database using .dmp file from two schema, Schema names as PRODUCTION and DEVELOPMENT.
    I want to export a script of PRODUCTION schema and clean the DEVELOPMENT schema add the .dmp file in DEVELOPMENT schema.
    Please suggest me the script to do this activity. I tried many ways not able to import successfully
    Thanks
    SudhirThe use of export and import for your un-named version of Oracle are well documented in the Utilities Manual, located at tahiti.oracle.com
    How to script it is dependent on your un-named operating system.
    "not able to import successfully" conveys no useful information. What have you tried? What were the results. Actual commands and actual error messages are most useful. Copy and paste are your friends.

Maybe you are looking for

  • Iwork 09 (numbers) keep crashing after installing 9.3 update on Macbook retina and Yosemite os.

    I have tried clean install of OS X yosemite, on Macbook pro 12 Retina, Clean Install of iWork 09 from retail DVD. Everything work at this point but, all fonts texts and graphics appear in very low resolution.   As soon as I apply iWork 9.3 update, al

  • How to export two diferents DB to one unique DB

    Hi people, I doubt whether it is possible to export two different databases, each of them a central instance in different machines, one machine where the two instances together and merge these data bases on a single BD.Data from both database consoli

  • Adding Rules - How to Make More Simple???

    Hello - I am a big fan of RULES and have many to add to my new PowerBook G4. When I was on MS Outlook, I used to click on rules from an e-mail, and the program would guess that it was "that" particular sender that I wanted to add to the rule. Is ther

  • What is the latest BIOS for Satellite C855-1U4

    Hello everyone I wanted to know as to which title was the latest bios for notebook Satellite C855-1U4. Thank you.

  • OS X Yosemite application cannot be opened

    I just updated my MAC to OS X Yosemite.  I am the "administrator" and my daughter has her own account.  Everything is running super-smooth on mine.  I went to update her iPad to the Mac and we logged into her account and when we went to open iTunes,