How to import/export in Pl/SQL ?

Hello
I want to write a procedure in PL/SQL which will be copying one user's schema to another.
I have Oracle 9i on Windows 2000.
My first idea was to use IMP EXP commands, but i need to execute this commands from PL/SQL procedure. How can I do this, except from writing Java procedure using Runtime class - I've done it, it works, but sometimes occure an critical error in Oracle Kernel, and I'm sure that Java code is ok.
Or maybe there is much easier way to solve such a problem (PL/SQL interface for import/export or something)?
Thanks for any hints.

No, imp/exp are standalone utilities with no PL/SQL API. Java would be the way to do it.

Similar Messages

  • How to import/export data in pl/sql developer

    how to import/export data,table script in pl/sql developer.
    By using the export functionality i am getting the dump file.I want a sql file.How do i do it?
    And i want the data in csv file and table script in a sep sql file.How do i do it?

    <li>run your query in "Query Builder"
    <li>Right-Click on the Query-Results
    <li>Click "Export"
    <li>Click on the "Drop-Down" in front of "Format" and choose "insert"
    <li>Provide the location and name of ther "sql" file.
    If you want output in CSV format, choose "csv" from the "format" drop-down.
    HTH

  • How to import/export a version?

    Hi,
    how to import/export a version?

    Not sure what you are asking here. If you are asking how to get data into DRM, then you are talking about the import process. If you are talking about how to get data out to other receiving systems, then you are talking the export process. Both of those processes are documented in the user help that comes with DRM.
    If you are talking about an entire version, from say the PROD area to the DEV area, that process is dependent on what the database repository is stored in (ORACLE or SQL).

  • How to import/export   from d2k

    hi
    hi please could you help me in how to import/export from d2k.
    M.P.Kiran Kumar

    FUNCTION open_ldr RETURN varchar2 IS
    out_file Text_io.File_Type;
         v_filename varchar2(255);                              
    Begin
    out_file := Text_IO.Fopen('C:sqlldr.ini', 'R'); /* create a file so that u can store sqlldr path first time it wont be there so write the path after verifying */
    text_io.get_line(out_file,v_filename);
    --message(v_filename);
    return(v_filename);
    Exception when others then
         --message('Check For Sqlldr73.exe or Sqlldr*.exe');
    v_filename := get_file_name(File_Filter=>'sqlldr Files (*.exe)|*.exe|');
    out_file := Text_IO.Fopen('C:\sqlldr.ini', 'W');     
         Text_IO.Put(out_file,v_filename);
    Text_IO.Fclose (out_file);
    if v_filename is null then
         Message('Please Select The Sqlldr Path ');
         Message('Please Select The Sqlldr Path ');
         raise form_trigger_failure;
    end if;
    return(v_filename);
    End;
         Declare
              The_userid varchar2(100):='';
              The_Password varchar2(100):='';
              The_connectstring varchar2(100):='';
              Con_Info varchar2(100):='';
              the_command varchar2(200):='';
              v_filename varchar2(100);
              cursor c1 is select tname from <table_name > /* create a table in ur schema and put all the tables which u want to export */ where tabtype = 'MASTER';
         Begin
              v_filename:=open_ldr;
         The_userid := Get_Application_Property(UserName);
                   The_Password := Get_Application_Property(Password);
                   The_connectstring := Get_Application_Property(Connect_String);
                   Con_Info := The_userid||'/'||The_Password||'@'||The_connectstring;
                   for c1rec in c1 loop
                   C2K_TRUNC_HLL_MASTERS(c1rec.tname);
                   the_command := v_filename||' Control=c:\'||c1rec.tname||'.ctl userid='||Con_Info; -- Change This According To The Path
                   -- message(the_command);message(the_command);
    Host(the_command);
                   End Loop;
                   the_command := v_filename||' Control=c:\control'||'.ctl userid='||Con_Info; -- Change This According To The Path
                   host(the_command);
                   Exception When Others Then
                        Message('Error'||' '||sqlerrm);
                        Message('Error'||' '||sqlerrm);
         End;
    If u have any problems please contact me on [email protected]
    furnish the details properly .
         

  • How to Import/Export database tables from one server to other in oracle8i

    Hello friend,
    Please can any one tell me how to import/export groups of database tables from one server with oracle to another using VB.net. It would be nice if some one can provide some code of it.
    I am a software developer and I am in middle of a large project development, in which I need to export a large oracle database from one server to another efficiently.
    Its very urgent so please someone help me.

    At command prompt (source db)
    set ORACLE_SID=db_name
    exp system/password@db_name full=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\exp.log filesize=2000M
    Then ftp the export dump files (in binary) to the other server or copy to target server over the network.
    At command prompt (target db)
    set ORACLE_SID=db_name
    imp system/password@db_name full=y ignore=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\imp.log filesize=2000M
    If the path names of the datafiles are going to be different in the target server (as compared to the source), then precreate the tablespaces before import. Set buffer value accordingly.
    Message was edited by:
    FeNiCrC_Neil

  • Attunity connectors for Oracle in Import Export Wizard in SQL Server 2008 R2

    Is there a way we can see the Attunity connectors drivers in the Import/Export Wizard (64 bit) for SQL Server 2008 R2?
    Although I made it work for SSIS, I would need these drivers in the Import/Export wizard so as to automate it for numerous number of tables which I want to migrate.
    Can the Attunity connectors for Oracle be used in the Import/Export wizard? If so please let me know.
    Regards,
    Ashutosh.
    Ashutosh.

    I have 100 tables to migrate. Creating a data flow for each table is tedious and that's why I was looking out for a way to do it through import export wizard so that I don't have to create a separate data source and destination for each table in the Data
    flow Task.
    Is there a way to loop through all tables and transfer data in SSIS without having multiple sources and destinations created for each table? This also involves a bit of transformation as well.
    Regards,
    Ashutosh.

  • How to import/export in a MAC ???

    Hello, I have a sony Cyber-shot camera and it is recognized and has no problems importing directly to Iphoto... Just now starting to play with IMovie so my ??? is thus; How do I export them to I movie I tried dragging to desktop and then launching imovie and dragging in but it throws it back to desktop.
    Please be specific as i'm new to this Thank you, James

    How do I export them to I movie I tried dragging to desktop and then launching imovie and dragging in
    If you're dragging them from the iPhoto Window then all you're getting is the preview frame, which is a still image. To export a movie from iPhoto you need to select the movie in the iPhoto Window and go File -> Export: *Kind: Original*
    You can also access the movies in iPhoto via the media browser in iMovie.
    Regards
    TD

  • How to import/export value for ekko-netwr

    Hi friends,
    amount value 'ekko-netwr'  from incude LV61AA43 should pass to include LV61AA43 for this iam using import/export paramters but there is no parameter id for netwr . How can i pass this amout to this rountine.
    Thank u ,
    prasad.

    hi,
    A simple example of ABAP memory is using the EXPORT/IMPORT statements.
    Here in this program, I get the data, export it to memory,
    clear out the internal table in my progam, then reimport the data into it and write out the data.
    You probably wounldn't do this in a normal program,
    but this is how you can pass data from program a to program b when A Submits program B.
    report zxy_0002 .
    data: it001 type table of t001 with header line.
    select * into table it001 from t001.
    export it001 = it001 to memory id 'ZXY_TEST'.
    clear it001. refresh it001.
    import it001 = it001 from memory id 'ZXY_TEST'.
    loop at it001.
    write:/ it001-bukrs, it001-butxt.
    endloop.
    SAP Memory
    SAP memory is a memory area to which all main sessions within a SAPgui have access.
    You can use SAP memory either to pass data from one program to another within a session,
    or to pass data from one session to another.
    Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).
    These parameters can be set either for a particular user
    or for a particular program using the SET PARAMETER statement.
    Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement.
    The most frequent use of SPA/GPA parameters is to fill input fields on screens
    ABAP/4 Memory
    ABAP memory is a memory area that all ABAP programs within the same internal session can access
    using the EXPORT and IMPORT statements.
    Data within this area remains intact during a whole sequence of program calls. To pass data
    to a program which you are calling,
    the data needs to be placed in ABAP memory before the call is made.
    The internal session of the called program then replaces that of the calling program.
    The program called can then read from the ABAP memory.
    If control is then returned to the program which made the initial call, the same process operates in reverse.
    SAP memory
    The SAP memory, otherwise known as the global memory,
    is available to a user during the entire duration of a terminal session.
    Its contents are retained across transaction boundaries as well as external and internal sessions.
    The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.
    ABAP/4 memory
    The contents of the ABAP/4 memory are retained only during the lifetime of an external session
    (see also Organization of Modularization Units).
    You can retain or pass data across internal sessions.
    The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.
    ABAP Memmory & SAP Memmory
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
    Set
    http://www.geocities.com/SiliconValley/Campus/6345/set_para.htm
    GET
    http://www.geocities.com/SiliconValley/Campus/6345/get_para.htm
    EXPORT
    http://www.geocities.com/SiliconValley/Campus/6345/export01.htm
    Other Imp Help
    http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
    Thanks & Regards
    ilesh 24x7

  • How to Import/Export Photos AND revisions

    I have Lightroom 1.3.1 installed on my home machine, and that's where I process my RAW photos. I've recently installed Lightroom on a machine at work, and would like to occasionally export pictures from a specific folder on my home machine to my machine at work. In addition to importing my photos, I would also like to retain all of the revisions I've made to them (cropping, WB adjustment, color adjustment, etc.). I don't think that I need to import the ENTIRE catalog, but please correct me if I'm wrong. I just want the ability to move photos and settings on a per folder basis at this time.
    With that said, can someone please provide me with step-by-step instructions on how I should export all photos AND catalog settings from a single folder? I recently tried to do this, and while I was able to bring the photos into my work machine, the revisions were not recognized on my work machine. My picture rotations, crops, WB and color adjustments were all lost, even though I exported (and tried to import) the catalog.
    Thanks for any help you can provide me.
    Scott

    This is an exact duplicate to a post which already has an answer.

  • How to import date from pl/sql

    I m using 9i database and form 6i windows 2003
    I created a form and using this code to get the backup, resulting I get a .DMP file.
    I want to import data from this DMP file through pl/slq .. how can I ?
    I want that only data should be import from dmp file.
    my export code :-+_
    Declare
    user_name varchar2(50) := Get_Application_Property(username);
    pass varchar2(50) := Get_Application_Property(password);
    Cstring varchar2(50) := Get_Application_Property(connect_string);
    str varchar2(100);
    Begin
    str :='Exp userID='||user_name||'/'||pass||'@'||Cstring||' rows=y file='||:Path;
    :EXP_BLK.PS:=PASS;
    :EXP_BLK.UR:=USER_NAME;
    :EXP_BLK.ST:=CSTRING;
         :Status := 'Backup Start.....Please Wait.......';
         Synchronize;
         Host(Str);
    Bell;
    bell;
         :Status := 'Backup Sucessfully Completed....';
         Synchronize;
    End;

    First of all this is not Forms forum, this is PL/SQL forum.
    Next, your question and the content inside your post confused me. We are not getting one thing - where do you want to import date data type?
    please explain.
    Regards.
    Satyaki De.

  • How To Import / Export My Portal

    I'm beginer to learn Portal .. and Now i create page finish..but i don't know ..how to export and import to other PC ..Plz help me..

    Please refer this link.
    http://download-west.oracle.com/docs/cd/B14099_04/portal.1012/b14037/cg_imex.htm#i1030999

  • How to Import exported mapping in SAP XI

    Hello
    I have a exported mapping from Integration repository file with .xim extension. How we can can import it another XI server.
    Thanks
    Chaitanya

    Hi,
    If u import any objects then ur file be .tpz extension. I m surprised how ur file extension is .xim extension.
    have u followed the same process which is mentioned below:
    1) tools->export->select->FTP/CMS-> selct whole SWCV,individual objects,namespace and finish.
    after whole process it will give the .tpz file name u need to take the file from that FTp server and u need to follow the reverse process in IR.
    Import:
    tools->import->ans go on.
    Refer the link for process.
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/5e56006c17e748a68bb3843ed5aab8/frameset.htm
    Thnx
    Chirag

  • How to import/export in jstudio?

    I have created a project in jstudio. I want to import a java file from file system to this project. I dont find any option. How can I import source code in a project?

    Just copying/moving the files under the project's source root should be enough. Another option is to add an additional source root, you can do it by going to the project's properties and selecting Sources.

  • How to import /export bookmarks in Firefox for Mac

    I wanted to export my bookmarks in Firefox for Mac, in htm or pdf format. Cant find any command for that. Nor any import from htm or pdf. Nor can I list all my bookmarks aplhabetically ; I have lots of bookmarks in different folders and I want to see all these bookmarks listed with no folders.

    In Firefox for OS X, you can export your Bookmarks to HTML via the Bookmarks dialouge window.
    Open your Bookmarks dialouge via the Menu bar: Bookmarks > Show All Bookmarks.
    When the new window has opened, this is what you can do to export your Bookmarks: https://support.mozilla.org/media/uploads/images/2012-09-16-05-44-02-10bc19.png (or view the image attachment).

  • How to Import/Export Manage Privileges Setting

    Hi Everyone,
    I had implemented Security for Analytic object using "Administration>Manage Privileges",
    Now i want to move the settings to production environment , Is there any way through which i can do tht ?

    If it is 11g try the below for 10g do it manually.
    http://www.rittmanmead.com/2012/03/obiee-11g-security-week-managing-application-roles-and-policies-and-managing-security-migrations-and-deployments/
    If helps mark

Maybe you are looking for

  • 24" imac won't turn on

    I was on the computer browsing the net, all of a sudden it turned off. I tried rebooting but it still won't turn on, only the light stays on. help

  • Browsing and selecting through database link to fill in a form item

    Hi I have created a database link named in my application dblink_3 I have a form and report in my application. On the from I have an item called P6_USER_ for which I would like to access a table (trk_user) through the database link I created so that

  • Help oh Help - use of deployment ruleset.xml in IP corporate enviroment!

    Background....... Our technical company with country wide deployment of IP devices (using IP addresses) that were built and supplied with java as the contact interfaces. So we MUST use java to connect to these devices. To date 1.6.30 has been doing t

  • How to transfer the integration scenario?

    Hi All,        I have created a business scenario in particular XI server, now i need to copy it to another XI server. Is it possible or will i have to create the whole scenario again in the new system. Pls advice.. Regards, Ashish

  • DW CC Template- can not access hide div function

    Hi, I created saved my page as a template and created a new page from the template. In the areas marked editable I can no longer access the button to "hide" a fluid grid div. I can pull up the "hide" function in the footer that is NOT in an editable