Export data schema from one workspace to another

Hi guys,.

I run two workspaces with two separate schemas. One for the PROD and one as a DEV. I can easily export applications, and the objects of schema (DDL) a workspace to another, but is there a way I can migrate data (stored in arrays) of one schema to another using APEX?

Otherwise, what is the best way to approach this situation? Thanks for watching it.


APEX 4.1 running on Oracle 11g XE

Hello

Under SQL Workshop/utilities there are options for the creation and export/import DOF for objects, as well as the data in a text or XML. You could do what you need with these options, but it might get a bit tedious and would not particularly fast for large data migrations. In general, unless you have access to your data through the Apex, I would use a General as datapump or exp/imp database utility or even the copy of database SQL Developer utilities.

Concerning
André

Tags: Database

Similar Questions

  • How to move a specific tablespace data file from one directory to another

    Database: 10.2.0.1
    OS: generic
    Description of the problem: how to move a specific tablespace data file of one directory to another account of the database that is on the installer of Oracle Dataguard

    * Oracle is working on this issue, but at the same time opens the topic community so that community members can add their views, experience, or knowledge. This will strengthen again all the knowledge bases, including My Oracle Support and My Oracle Support Communities *.

    Published by: ram_orcl on August 16, 2010 21:21

    Dear ram_orcl,

    Please follow the procedures here;

    http://download-UK.Oracle.com/docs/CD/B19306_01/server.102/b14239/manage_ps.htm#i1034172

    8.3.4 Renaming a Datafile in the Primary Database
    
    When you rename one or more datafiles in the primary database, the change is not propagated to the standby database. Therefore, if you want to rename the same datafiles on the standby database, you must manually make the equivalent modifications on the standby database because the modifications are not performed automatically, even if the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    
    The following steps describe how to rename a datafile in the primary database and manually propagate the changes to the standby database.
    
       1.
    
          To rename the datafile in the primary database, take the tablespace offline:
    
          SQL> ALTER TABLESPACE tbs_4 OFFLINE;
    
       2.
    
          Exit from the SQL prompt and issue an operating system command, such as the following UNIX mv command, to rename the datafile on the primary system:
    
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf
          /disk1/oracle/oradata/payroll/tbs_x.dbf
    
       3.
    
          Rename the datafile in the primary database and bring the tablespace back online:
    
          SQL> ALTER TABLESPACE tbs_4 RENAME DATAFILE      2> '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            3>  TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
          SQL> ALTER TABLESPACE tbs_4 ONLINE;
    
       4.
    
          Connect to the standby database, query the V$ARCHIVED_LOG view to verify all of the archived redo log files are applied, and then stop Redo Apply:
    
          SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
          SEQUENCE# APP
          --------- ---
          8 YES
          9 YES
          10 YES
          11 YES
          4 rows selected.
    
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    
       5.
    
          Shut down the standby database:
    
          SQL> SHUTDOWN;
    
       6.
    
          Rename the datafile at the standby site using an operating system command, such as the UNIX mv command:
    
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf /disk1/oracle/oradata/payroll/tbs_x.dbf
    
       7.
    
          Start and mount the standby database:
    
          SQL> STARTUP MOUNT;
    
       8.
    
          Rename the datafile in the standby control file. Note that the STANDBY_FILE_MANAGEMENT initialization parameter must be set to MANUAL.
    
          SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            2> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
    
       9.
    
          On the standby database, restart Redo Apply:
    
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
            2> DISCONNECT FROM SESSION;
    
    If you do not rename the corresponding datafile at the standby system, and then try to refresh the standby database control file, the standby database will attempt to use the renamed datafile, but it will not find it. Consequently, you will see error messages similar to the following in the alert log:
    
    ORA-00283: recovery session canceled due to errors
    ORA-01157: cannot identify/lock datafile 4 - see DBWR trace file
    ORA-01110: datafile 4: '/Disk1/oracle/oradata/payroll/tbs_x.dbf'
    

    Hope that helps.

    Ogan

  • How to copy all the tables, triggers, etc, from a schema from one user to another

    Hello everyone!

    I'm looking for a QUERY or a stored procedure to copy the tables of a schema of the user to a different schema.

    Should resemble the kind of: copy (select * from object where owner = 'UserIwantToCopyFrom') user = "UserIwantToCopyTO".

    I'm sure that my example is rubbish, but I tried to explain what I want to do.

    Then there is a chance to do in sql code? I have to build a model of a schema of the user with hundreds of tables, triggers, etc. and copy it into several other user patterns.

    Thanks for your advice!

    Jan

    There are many examples available.
    What you generally want to do is:

    For the export, use the job_mode-online option "SCHEMA".
    Example of export

    http://www.oracle-base.com/articles/10g/OracleDataPump10g.php
    
    DECLARE
      l_dp_handle       NUMBER;
      l_last_job_state  VARCHAR2(30) := 'UNDEFINED';
      l_job_state       VARCHAR2(30) := 'UNDEFINED';
      l_sts             KU$_STATUS;
    BEGIN
      l_dp_handle := DBMS_DATAPUMP.open(
        operation   => 'EXPORT',
        job_mode    => 'SCHEMA',
        remote_link => NULL,
        job_name    => 'EMP_EXPORT',
        version     => 'LATEST');
    
      DBMS_DATAPUMP.add_file(
        handle    => l_dp_handle,
        filename  => 'SCOTT.dmp',
        directory => 'TEST_DIR');
    
      DBMS_DATAPUMP.add_file(
        handle    => l_dp_handle,
        filename  => 'SCOTT.log',
        directory => 'TEST_DIR',
        filetype  => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    
      DBMS_DATAPUMP.metadata_filter(
        handle => l_dp_handle,
        name   => 'SCHEMA_EXPR',
        value  => '= ''SCOTT''');
    
      DBMS_DATAPUMP.start_job(l_dp_handle);
    
      DBMS_DATAPUMP.detach(l_dp_handle);
    END;
    /
    

    for import, you can use the remap_schema option with:

    DBMS_DATAPUMP.METADATA_REMAP (
       handle      IN NUMBER,
       name        IN VARCHAR2,
       old_value   IN VARCHAR2,
       value       IN VARCHAR2,
       object_type IN VARCHAR2 DEFAULT NULL);
    

    There are many more details in the document as provided Thierry.

  • How to migrate a page from one workspace to another workspace

    APEX 4.0.2.00.07
    Oracle 10.1.2.0.0
    I have 2 workspaces, a look like Dev env, another look like Pro. approx.
    When the change need to be migrated, the few pages of Dev work space should be exemplary in Pro. one. I export the pages I want spend. dev, then try to import into Pro. but I get the error like below:
    Page Origin: This page was exported from a different application or from an application in different workspace. Page cannot be installed in this application. 
    Is there a better way to solve? I don't want to copy the page one by one.

    Thank you and best regards.

    IMO = in my opinion.

    And you do not have to remove the old application prior to importation revised Prod. Locate Application Alias. The URL given to users should be with Alias.
    Once your revised application is imported and you're sure it's ok to release, just to change the Alias of the original into something unused, and apply the New Alias that users have (old application had).

    Kind regards

  • Import the schema from one instance to another

    Hello

    I'm going through a pattern of a (production) Oracle instance to another (development) that is located on a different server. I modified this two years ago, and the data are now obsolete. We do export every night of all schemas and I only want to import the schema of "Bob" in dev. I copied the export file to the dev server and used the following command:

    Sys IMP / < password > file = server.dmp fromuser = bob ignore = y

    The import worked well for a bit, then I started getting errors cannot create scopes on the tablespace and possibly the imp stopped. I check, and of course, like many primary tablespace which is strange since the two prod and the dev team have the same size. In any case, I went in and has doubled the size of the index and the data of the tablespaces and tried to import again.

    This time, I got the following:

    IMP-00019: line rejected due to the ORACLE 1 error
    IMP-00003: ORACLE error 1
    ORA-00001: unique constraint (SYS. XPKACCOUNT_TRANSACTION) violated
    Column 1 3956
    2 1074785 column
    Column 3 20 - APR - 2001:08:57:44
    Column 4 483
    Column 5 52905
    Column 6 CR
    Column 7-. 72
    Column 8
    Column 9 47650
    Column 10
    Column 11
    Column 12
    IMP-00019: line rejected due to the ORACLE 1 error
    IMP-00003: ORACLE error 1
    ORA-00001: unique constraint (SYS. XPKACCOUNT_TRANSACTION) violated
    Column 1 3957
    2 1076007 column
    Column 3 20 - APR - 2001:13:38:04
    Column 4 483
    Column 5 24290
    Column 6 CR
    Column 7-. 26
    Column 8
    Column 9 47839
    Column 10
    Column 11
    Column 12
    IMP-00019: line rejected due to the ORACLE 1 error
    IMP-00003: ORACLE error 1
    ORA-00001: unique constraint (SYS. XPKACCOUNT_TRANSACTION) violated
    3958 1 column
    2 1076015 column
    Column 3 20 - APR - 2001:13:38:54
    Column 4 483
    Column 5 24290
    Column 6 CR
    Column 7-. 09
    Column 8
    Column 9 47842
    Column 10
    Column 11
    Column 12

    I use the "ignore = y ' option it will ignore a problem if the object already exists, but it adds the data to import or clear and then add it? I'm guessing that he tries to add data, which are the cause of the errors.

    I remember in the past, the only way I got this job was to open a session as long as sys, delete user Bob w/waterfall, and then re-create the user before importing. This seems to be a royal pain in the lacrosse.

    Did I miss something on how to properly import the schema?

    Thank you

    This works. If you have changes of geometry in the table, it's probably best to drop the scheme or at least the table. What if all you want to do is update the data and nothing else has changed, then you can simply truncate and then import the data.

    Dean

  • Copy schemas from one server to another?

    Hi all

    I have two servers, server1, server2, all two database 11g R1. I would like to move 175 patterns, its data, privileges and other things in these patterns from server1 to server2. Server1 to may other schemas. I asked it to find the size of these patterns and it is about 115GB. What is the best method to perform above transfer?

    If schema1 has a select statement on Object1 schema2 then same privileges need to be copied in server2.

    I come from the non - dba.

    Thank you.

    I would use either Data Pump or the former import / export tool to export and then import in the second database.

    Either will work.

    Example:

    http://www.rossgroupinc.com/documents/DataMigration.PDF

    Best regards

    mseberg

  • data transfer from one table to another and by generating a primary key

    Hello experts,

    Well, I have 2 paintings and I need to move columns in one of them.
    the problem is state that the primary key of the second table has to go in a column in the first table, and I generate a primary key in the first table as well. How to generate the primary key

    You can insert the value of key primary agent_id from agent table via before level trigger for insertion line. The agent_id value can be generated through a sequence.

    the trigger code can be as

    create sequence seq_agent;
    
    create or replace trigger trg_agent_id before insert
    on agent
    for each row
    declare
       v_agent_id number;
    Begin
       select seq_agent.nextval into v_agent_id from dual;
       :new.agent_id:= v_agent_id;
    End;
    

    So when will pull you insert tasks than this agent_id value will be added. And you will not get error

    Twinkle

  • Movement of data user from one unit to another server

    HI -.

    At the point where we move, they run 4.2 unit (1) on both servers (Windows 2003 and Exchange 2003). Unity servers are in separate domains and in partnership with Exchange servers in different administrative groups. They are digitally networked, in the same area of composition, a forest of AD. Due to a reorganization, about 100 subscribers of the unit will move. Their computer and AD accounts will be migrated to the new domain - inboxes has left the old Exchange admin group to the new. I want to coordinate the movement of these unit using GSM subscribers. This works when accounts are being migrated with ADMT? Are there measures, other than as a result of the help available for GSM, that I should follow for best practices?

    Thanks in advance,

    Ginger

    No, unfortunately this custom fly - the user to move utility GSM is built around a model of "pivot" where the pointers to the letters and accounts AD boxes are meant to remain static, while the server unit exchange - the location of the mailbox can change, of course, that is not a problem because the unit will detect and reconnect to it on the fly. However to move the AD account will switch us to the top. Right hand the only way to deal with it is to remove the Subscriber Unit 1, move its AD account and then re-import them on unit 2... of course, we test with ADMT and I can't speak with authority on the behavior that results from here (i.e. If it retains the same unique identifier within the directory to research purposes or other). My suspicion is it's not and by moving the directory on the identification information a new Unity server will not have the effect desired without worrying.

  • Table data transfer from one page to another page in the OFA

    Hi all

    Could you please help me with the following requirements. I'm transferring the first records of the selected page to the second page, but running in question.

    I have 2 custom OAF pages:

    1st Page is the search looking for an invoice and invoice page, the user can select "multiple entries" (her table with a multiple selection area) and click transfer.

    Internally, the button calls the setForwardUrl method and call the 2nd page, where the second page contains region Advacned table to display the records selected the 1st page.

    Because the user can select more than 1 record in the search box on the first page, I want to hold all the rows in a table of Hashmap with integer index and transfers them to the 2nd page. Here is the syntax of hashmap that I use:

    map of java.util.HashMap < Integer, InvoiceRow > new < Integer, InvoiceRow > = (); Here InvoiceRow is a CLASS structure personalized with InvoiceNumber and as variables inside customer number.

    But if I passed the HashMap above to the setForwardURL method, the JDeveloper throw an exception indicating that the message "setForwardURL cannot invoke".

    Could you please help me how can I transfer the first page of records multiselected on the second page?

    Enjoy your time.

    -Vincent

    Mohamed, the approach that I told you can try below way:

    public String getSelectedData()
    {
    String whereclause = "(";"
    String whereclause1 = "(";"
    XXCONTAINLINESVOImpl vo = this.getXXCONTAINLINESVO1 ();
    OAViewObject vo = (OAViewObject) getXXDPECONTAINLINESVO1 ();
    System.out.println ("debTEST" + punload);
    Rank [] sumVoRow = vo.getFilteredRows ("Select1", "Y");
          
    System.out.println ("deb multi select test" + sumVoRow.length);
    If (sumVoRow! = null & sumVoRow.length > 0)
    {
    for (int i = 0; i)< sumvorow.length;="" i++)="">
             
            
    String wipEntityId =
    sumVoRow [i].getAttribute("LineId").toString ();
              
                
    WhereClause = whereclause + sumVoRow [i].getAttribute("LineId").toString () + ",";
                 
    System.out.println ("deb multi select test" + whereclause);
            
    }
    }
    If (whereclause.length () > 0 & whereclause.charAt (whereclause.length () - 1) == ',')
    {
            
    B StringBuilder = new StringBuilder (whereclause);
    ("b.Replace (WhereClause.LastIndexOf (","), whereclause.lastIndexOf (", ") + 1," ")");
    WhereClause = b.toString ();
    whereclause return;
              
    }
    System.out.println ("deb where test clause" + whereclause);
           
    whereclause return;
    }

    This method will return the value as: whereclause = (111,222,333) then put it in a varibale session and go to method of CO below

    ----------------------------
    public void processPOData (String wherclause)
    {

    String query = getXXDPECONTAINDATAVO1 () .getQuery (); Old stringbuffer queryStringBuffer = new StringBuffer();
    String newwhereclause = "LINE. LINE_ID IN "+ wherclause;

    System.out.println ("NEW DEB where clause:" + newwhereclause);
    StringBuffer stringbuffer = new StringBuffer();
                          
    StringBuffer.Append ("SELECT rownum LINE_NUM, A.* (" ");
    StringBuffer.Append (Query);
    StringBuffer.Append ('where');
    StringBuffer.Append (newwhereclause);
                       
    ViewDefImpl viewdefimpl is getXXDPECONTAINDATAVO1 () .getViewDefinition ();.

    viewdefimpl.setQuery (stringbuffer.toString ());
                       
        
               
    System.out.println ("DEB NEW QUERY TEST:"+stringbuffer.toString()); ")
    getXXDPECONTAINDATAVO1 () .executeQuery ();
              
    }

    Let me know if stil you face to deliver you

    Thnaks

    Deb

  • Help: How to transfer data from one form to another form form

    Hello:

    I was wondering how / if it is possible to transfer data from form from one form to another form. I create a flow of forms, which are as follows: form of Incident report-> form of risk analysis-> error-> report form decision support survey Standard-> report form of risk control-> form of mitigation-> etc... You get the gist. It would be very time-consuming to constantly transfer the standard who, what, when, where and how from one form to the other. I was wondering how do? I have looked around on the net and this forum and couldn't find a tutorial or a guide? Is this possible with Adobe forms?

    I use a XML schema for the form to preload a list of employees and the standard list information and then publish the form to submit in PDF format for opening and tracking form mobile device. I notice that I can export the data in a form that is distributed in XML but I can't import in a distributed form. I'm a newb with code, but may contain a little of my own.

    An example of how to achieve this with a field name or something would be greatly appreciated! If you need anything, or a copy of the forms let me know!

    Thank you kindly,

    Al

    Hi Al,.

    I have here an example where the data in a single form are 'communicated' to other forms. Please note that there are specific script in each of the forms. It's a work in progress and one day I'll come back make a more polished example: http://assure.ly/qQivbm.

    See also John Brinkman's blog for a different approach: http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_1.html and http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_2.html.

    Good luck

    Niall

  • How to migrate from one server to another (home of the workspace) html file

    Hello

    Does anyone know how to move an html file that is attached as a home page for the workspace from one server to another server?
    When I try to use the export option, I do not see this file to select.


    Thanks in advance,
    PM

    You can use the feature of LCM.

    THX

  • Export configurations of SLA from one instance to another instance?

    Topic: Export configurations of SLA from one instance to another instance?

    Team,

    No matter what we've tried to export configurations from one source to the target instance? We have the challenge by completing all the settings for 60 BU during the introduction of the end of week.

    Any ideas are appreciated.

    Someone tried this - http://oraclecs.com/create-your-own-workspace-set-an-accounting-methods-builder-context.html

    Rgds,
    Hervé

    We had exports for ALS for an instance to another instance. This requires the simultaneous program "Export Application accounting definition" of the source system. This must be managed separately for each application for which the SLA is changed individually. This will create individual files (for individual applications run) in the path provided during execution of the query (for ex/usr/tmp).

    Now these files can be moved by the ADMINISTRATOR of the source system to the target system on the same path. In the target system, we ned to run the "Import Application accounting definition" program, again individually for each application. This automatically import the SLA changed in the target system and validate the same also.

    (Note: demand must be performed in incongruous individual application itself.) For ex - if we export/import SLA for AR, we need run demand for accountability of the AR.

    Also note that the custom sources are not exported by this method. They must be manually created in the target system)

    Hope that clarifies

    Serge

  • HFM export and import of security from one environment to another

    Hi all

    I had an obligation to migrate the HFM application (V11.1.2) from one environment to another environment.

    I've migrated the application via the HFMCopyApplication.exe utility.

    could you please guide me how to export security from one environment to the other so that I can reproduce the security too

    Thank you

    VT

    Hi 2687075,

    If your environment is the same or similar version and the application groups are named the same, you can use LCMS as suggested by Amarnath.  You'll want to come the native Directory artifact that contains native users, Aboriginal groups (with their AD/native users) and roles.  Be careful when you do this, if you use accounts/passwords different in each environment native user as the new will overwrite the old.

    Thank you

    Erich

  • Page of the copy from one application to another application in the same workspace

    Is it possible to copy a page from one application to another application in the same workspace?

    If so could you tell me how its done?

    Thanking you in advance.

    go to any page in your target application and click on 'Create' > 'new page as a copy '. The rest of the process is driven by the magician.

    Denes Kubicek

    -------------------------------------------------------------------

    http://deneskubicek.blogspot.com/

    http://www.Apress.com/9781430235125

    https://Apex.Oracle.com/pls/Apex/f?p=31517:1

    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494

    -------------------------------------------------------------------

  • Best way to move data from one page to another within the app

    Hi all as I started to write that and was way to complicated to explain in full without a novel.

    Brief description. I use the query string that begins in the parent (from href in JSON) window must then be moved in the iframe url when moving to other pages to avoid security as a page and iframe is conflicting http and https. and are not accessible... It seems that there must be a better way.

    So my question is what is the best way in a platform open to move data from one page to another?

    You do it this way, it's in the menu.json, but when you work within the iframe and if your loading pages in applications using vairable relative URLS cross they come through.
    Discovered only this framework using the browser and you can se the construction and scope of all URLS used.

    The apps are sandboxed you cannot access aything in the parent frame, this is a feature of derliberate if something you can not do.

    As I said, you have a few methods to your own data storage space.

Maybe you are looking for

  • Apple Watch turn-by-turn navigation problem

    When Im using the navigation turn by turn on the Apple Watch plan it does not have the option to start navigation, rather 'INFO and CLEAR' are my only choices in the menu. What is the problem with that? How can I start my browsing directly from my wa

  • interface of Minesweeper (ver 6, build 6001) on Vista

    Indicator for the remaining bombs nor time is displayed correctly. I only see the figure on the left in the window provided. I am running Vista Home Premium. I used to kick butt on this game, but without the ability to calculate the remaining bombs b

  • HP Pavilion dv9000 - XP does not see the HARD drive, how to install it?

    Hello I try to install XP SP3 on HP Pavilion dv9000, but XP Setup does not see the hard drive. Can you please point me in right direction - what I do files and how to add them to the XP SP3 installation CD necessary? I guess that somewhere there is a

  • ObjectGroup and NonPersistableObjectException

    I'm trying to reduce my handles in memory by using the ObjectGroup.createGroup () on an array of objects.  JDE 4.1 documentation says nothing on objects that need to be Persistable or that a NonPersistableObjectException can be lifted.  The JDE 4.3 m

  • "Control transaction cannot be completed at this time" problem IPS

    Hello Yesterday, the module AIP-SSM-20 of the customer for the second time in the last month 5 present an error on the sensor and is just the stop sensor analyzed it package. When the problem is present you can access the management interface, the in