APEX Application Export/Import

Hi,
I have my application build in APEX on 10.2.0.4 database which now i want to migrate to 11.2. Name of schema on the back of my application is DBADMIN. What i have done is, i just exported the application from my current apex on 10.2.0.4 and tried to import on my 11.2 but it gives me following error message
ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 80, column 32: PLS-00103: Encountered the symbol "!" when expecting one of the following: ( - + case mod new not null <an identifier> <a double-quoted delimited-identifier> <a bind variable> continue avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date <a string litThis is first time i am migrating my application so please help to find out what is the issue and how to resolve it. Following is the detail how i performed the operation
Source APEX
Workspace name = Monitoring
User of application which loged in to this workspace and created application = SALMAN
Application name = Monitoring
Database schema name behind application = DBADMIN
I exported application in UNIX and also DOS format
Destination APEX
Workspace name = Monitoring
User of application which loged in to import the application = UTACADMIN
Database schema name behind application = DBADMIN and i have already exported the schema from my source database have imported all the objects with data
Tried importing application from UNIX as well as DOS script but same error message as above.
Please guide me how can i successfully migrate my application from my source APEX to this new APEX
Thanks

Now i exported the workspace from my source APEX and imported in destination and everything is fine and now apparently everything is same but still same error during import of the application, please help to resolve.
I tried to execute the application export script on sqlplus, but following error was returned
EMREP.UTAC.COM.SG$APEX_030200> @d:\f100.sql
APPLICATION 100 - Monitoring
Set Credentials...
Check Compatibility...
API Last Extended:20090112
Your Current Version:20090112
This import is compatible with version: 20090112
COMPATIBLE (You should be able to run this import without issues.)
Set Application ID...
begin
ERROR at line 1:
ORA-02291: integrity constraint (APEX_030200.WWV_FLOWS_FK) violated - parent
key not found
ORA-06512: at "APEX_030200.WWV_FLOW_API", line 555
ORA-06512: at line 3Thanks
Salman

Similar Messages

  • Apex Application Export

    hi,
    Could any one let me know if we could take the complete export of the apex applications present in our workbench instead one by one. can the admin do.
    for example we have 100 apex applications in our workbench and we need to take the compete export so that we could import into a different instance. for that to work we would also be exporting our schema so that once we import the applications we can start working as we were doing earlier.
    we can export one by one which would take lot of time, So please can any one let me know if there is an option to export the complete applications in one short.
    Thanks & Regards,
    Ramu
    Edited by: user526994 on Dec 14, 2011 1:14 AM

    Hi,
    You can use command line export utility.
    John have write good article about it
    http://jes.blogs.shellprompt.net/2006/12/12/backing-up-your-applications/
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Application -Export, -Import: ERROR

    Hi @ all,
    I've worked quite a while on an app with HTML-DB. During the course of development I had to move it from the testing system to another (productive) system. Then everything went fine with the export and import of my app.
    Now I tried to install an earlier version of my app that I had created as a BACKUP. The install screen gives me the following:
    Error installing application.
    Return to Application (<---- this is a link)
    ORA-20001: GET_BLOCK Error. ORA-20001: GET_STMT error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 399, column 16: PLS-00103: Encountered the symbol ">" when expecting one of the following: . ( ) , * @ % & = - + < / > at in is mod not rem <> or != or ~= >= <= <> and or like between || ORA-06550: line 418, column 1: PLS-00103: Encountered the symbol "WWV_FLOW_API" ORA-06550: line 450, column 54: PLS-00103: Encountered the symbol ";" when expecting
    My steps are:
    - I import the file (which is on my local HDD) with my local Character Set (Western European ISO-8859-1).
    - I click Install >
    - On the following screen I select:
    o Parse As Schema my schema
    o Build status run and build app
    o Install As App Change app ID(*) and enter a free app ID
    - I click on Install app
    ... and get the Error above... :-(((
    (*) I've tried it with Auto Assign New Application ID too - no better result.
    Everything else works good but I don't want to be restricted to this one computer (in case I have to move it again). I want to have a working backup of my app, in case the thing crashes or burns down.
    Any help is greatly appreciated.
    David
    p.s.: I've tried to install the backup on marvel.oracle.com too - the same result... (so it's not a problem of our installation here.)

    What is the database version? If it's not 9.2.0.3 or higher, you will get this error. Our database runs version 9.2.0.4.
    e.g., &f100.sql.I dont understand this. When I run:
    &f111.sql
    I get an error message: ORA-00900: invalid SQL statement
    (the file f111.sql exists in the export repository)
    Also I took a look at the file f111.sql around line 399 and I can't find this Encountered the symbol ">". Therefore the error message makes no sense (to me).
    375          wwv_flow_api.create_tab (                    
    376          p_id => 1994903743639031 + wwv_flow_api.g_id_offset,                    
    377          p_flow_id => wwv_flow.g_flow_id,                    
    378          p_tab_set => 'TS1',                    
    379          p_tab_sequence => 3,                    
    380          p_tab_name => 'Edit Masterdata',                    
    381          p_tab_text => 'Edit Masterdata',                    
    382          p_tab_step => 3,                    
    383          p_tab_also_current_for_pages => '301,300,311,310,306,305,311,310,316,315,311,310,311,310,3110,3100,311,310,306,305,321,320,321,320,326,325,331,330,336,335,341,340,343,342,346,345,351,350,356,355,361,360,366,365,306,305,331,330,336,335,341,340,8300,8301,210',                    
    384          p_tab_parent_tabset=>'TS1',                    
    385          p_required_patch=>null + wwv_flow_api.g_id_offset,                    
    386          p_tab_comment => '');                    
    387                              
    388                              
    389          end;                    
    390          /                    
    391                              
    392          ---------------------------------------                    
    393          prompt ...FLOW TOPLEVEL TABS                    
    394          --                    
    395                              
    396          begin                    
    397                              
    398          null;                    
    399                              
    400          end;                    
    401          /                    
    402                              
    403          ---------------------------------------                    
    404          prompt ...FLOW NAMED LISTS OF VALUES                    
    405          --                    
    406                              
    407          begin                    
    408                              
    409          wwv_flow_api.create_list_of_values (                    
    410          p_id => 2120319923355695 + wwv_flow_api.g_id_offset,                    
    411          p_flow_id => wwv_flow.g_flow_id,                    
    412          p_lov_name => 'DELIVERY_SUPPLIER',                    
    413          p_lov_query=> 'select to_char(d.DELIVERY_DATE,''YYYY-MM-DD'') || '' - '' || s.SUPPLIER_NAME d, d.IKA r'||chr(10)||                    
    414          '     from DELIVERIES d, SUPPLIERS s'||chr(10)||               
    415          '     where d.SUPPLIER_IKA = s.IKA'||chr(10)||               
    416          ' order by d.DELIVERY_DATE DESC');                    
    417                              
    418          null;                    
    419                              
    420          end;                    
    421          /                    
    David

  • Export APEX application will not import to another APEX instance

    Oracle XE 11gR2
    APEX 4.1.1
    Windows 7
    ===============
    Get the following error when trying to import (via SQL*Plus) an APEX application:
    ORA-02291: integrity constraint (APEX_040100.WWV_FLOWS_FK) violated - parent key not found
    ORA-06512: at "APEX_040100.WWW_FLOW_API", line 679
    ORA-06512: at line 3
    Used the following PL/SQL block to import APEX application:
    declare
    -- the name of the workspace in which to import -- actually your parsing schema
    t_workspace varchar2(30):= 'APEXAPP';
    -- an application number of an existing application in the workspace.
    t_existing_app number := 103;
    -- the "new" application number, an existing number will be dropped first.
    t_new_app number := 103;
    -- security group id, you don't have to set this variable
    t_secgrp_id number;
    begin
    -- get the Security Group ID
    select workspace_id
    into t_secgrp_id
    from apex_applications
    where application_id = t_existing_app;
    wwv_flow_api.set_security_group_id(p_security_group_id => t_secgrp_id);
    apex_application_install.set_application_id(t_new_app);
    apex_application_install.generate_offset;
    apex_application_install.set_schema(t_workspace);
    apex_application_install.set_application_alias('APEXAPP' );
    end;
    @C:\DEPLOY\APEX_APP.sql;
    commit;
    =====================
    I recently did an upgrade from APEX 4.0.2 to 4.1.1 but there were no apps in this particular APEX instance. Just needed an upgrade because the APEX that
    comes with Oracle XE database is 4.0.2 and we are developing with APEX 4.1.1
    Please advise. This block has been used before to deploy APEX exports.

    I'm front of the same issue.
    Did you find a solution ?
    Thanks for help.
    Fanny

  • Problem with EXPORT IMPORT PROCESS in ApEx 3.1

    Hi all:
    I'm having a problem with the EXPORT IMPORT PROCESS in ApEx 3.1
    When I export an application, and try to import it again. I get this error message
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 16, column 28: PLS-00103: Encountered the symbol &amp;quot;牃慥整㈰㈯⼴〲㐰〠㨷㐵㈺′䵐&amp;quot; when expecting one of the following: ( - + case mod new not null &amp;lt;an identifier&amp;gt; &amp;lt;a double-quoted delimited-identifier&amp;gt; &amp;lt;a bind variable&amp;gt; avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp in
    As a workaround, I check the exported file and found this
    wwv_flow_api.create_flow
    p_documentation_banner=> '牃慥整⠤㈰㈯⼴〲㠰〠㨷㠵㈺′äµ
    And when I replace with this
    p_documentation_banner=> ' ',
    I can import the application without the error.
    somebody knows why I have to do this??
    Thank you all.
    Nicolas.

    Hi,
    This issue seems to have been around for a while:
    Re: Error importing file
    I've had similar issues and made manual changes to the file to get it to install correctly. In my case, I got:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.<br>ORA-02047: cannot join the distributed transaction in progress<br>begin execute immediate 'alter session set nls_numeric_characters='''||wwv_flow_api.g_nls_numeric_chars||'''';end;There are several suggestions, if you follow that thread, about character sets or reviewing some of the line breaks within pl/sql code within your processes etc. Not sure what would work for you.

  • Import file  export  instead of  application export

    Hi All
    please help
    i exported my application, now i wanted to do an import to the file
    i did import ------->
    import file : i choose the application export file
    file type : i choose instead of application,page or component export i choose by accidently :*file export*
    did NEXT -> it wrote : Successfully Imported File
    then it wrote If you wish to to Install now, click Next >.
    i did NEXt : it wrote to me in the header :Install Static Files
    logget in as : my user
    install file workspace : name of the workspace
    but i did not push the button of install static files. then i saw that this is not what i won't to do . my quetsion is did i do any harm?
    is the statis files (which i don't really know waht it is ) are sitting on the server , or in the application ? please tell me, is there anything that i need to cancel? i saw in the export ripository that it shown as static files export.
    note : as a person who develope on this application , i've never, use an import of static files.
    inspite of all this, i started to do an import for my application which the suitable file file type , and i stopped in the middle.
    i'll be grateful for a quick response!

    Hello Arie !
    thanks for quick response.
    i've choose onw of the two application which i currently have on my workspace and did what you've wrote with the share componennts -> static files , it right to me no static files. i did the same with my other application , and i got the same message, maybe i'm getting this message because i did not do the install operation ? . however share components are related to the application that i've choose and not to all the apex, right ?
    the thing that i don't get is if i get:no static files found,so why in the Export Repository i'm getting about one application export file:static file export?
    can i delete it from there ?

  • Apex 3.1.2 application export

    Hi
    I have 3 environments, one with apex 3.0 and two with apex 3.1.2. All of them are on 11g DB.
    When I export an application (about 35pages) from apex 3.0 I get file size approx 1,8MB, but when I export same application from 3.1.2 I am getting the file size about 200KB. I made a test and imported the application back into apex 3.1.2 with different application id and found out that i get only pages with page id from 0 to 10.
    I do it like this:
    Home>Application Builder>Application 103>Export / Import>Export
    file format: DOS
    owner override: (empty)
    build status.. :run and build app.
    debugging: yes
    exp. supp.obj. : yes
    exp. comments: yes
    as of: (empty)
    file character set: utf-8
    What I and doing wrong or missing with exporting?
    Taavi
    Edited by: Taavi on Feb 19, 2009 4:11 PM
    On closer look I noticed that most of the downloaded file was cut off for some reason. Any ideas where to look for cutter?
    I managed to export the application with SQL Developer (app.exp>export DDL>save file)

    Make sure the DAD characterset is AL32UTF8.
    Scott

  • APEX 4.Loosing translatable text when exporting/importing to new workspace

    Hi everyone,
    I am developing a bilingual application (base English translated to french) and I noticed something weird when exporting/importing to another workspace.
    First, my application is flagged as requiring synchronization after an import. Yes, I did check that it was not flagged right before the export. I did choose Export Translations.
    Secondly, when I look at the translated application in the new workspace, my Region Names are not translated anymore (in english instead of french). When I cmpare the 2 Translation Repositories (using the Manually Edit Translation Repository) I lost all Region Names entries (Column Description = Region name).
    Thirdly, when again comparing the 2 Translation Repositories, I have the same number of Strings and Distinct Strings by if I group by Column Descriptions the sub-totals differ and I don't even have the same distinct Column Descriptions.
    My test was done with my development workspace and a test workspace (where I deleted all application prior to my test) in the same instance.
    Anybody had these problems?
    Thanks all
    I am using 4.1.1.00.23 on the Oracle Database 11g Express Edition.

    Hi there,
    Well....I guess "they lied" would be me, huh?
    Unfortunately, this is a bug. This issue with region titles was first reported in Bug in 4.1.1: Region Title translations is lost I recorded it as Bug 13801807 - REGION TITLE TRANSLATIONS LOST WHEN IMPORTING AS A NEW APPLICATION ID. It's fixed in APEX 4.2.
    I hope this helps.
    Joel

  • Command Line Export/Import for ApEx

    Hi There,
    I was wondering if there is an ApEx Utility that allows the Export and Import of applications/pages/images/style sheets etc from the command line on a Linux box.
    I am using Oracle Application Express v3.0.1
    Thanks.
    Tony.

    Tony,
    Another post in the past has discussed about this already.
    Exporting/Importing a *Bunch* of Applications
    John Scott wrote a blog post about this as well at [http://jes.blogs.shellprompt.net/2006/12/12/backing-up-your-applications/|http://jes.blogs.shellprompt.net/2006/12/12/backing-up-your-applications/]
    In short, you can use APEX utility - APEXExport to export and standard SQL to import.
    Ittichai
    Edited by: ittichai on Mar 16, 2009 9:38 PM

  • Export / Import of Apex Data

    Hello,
    We are planning to move our Oracle databases from Windows Servers to Linux ones. In a test lab, we have successfully exported all data from an Oracle DB instance on Windows and imported that data on an Oracle DB instance on Linux (with the old export/import Oracle tool)
    But in fact...it was all data except Apex data. The complete Apex environment is available on our new Linux server but no trace of all our workspaces and applications. The only available workspace is Internal.
    We do not want to export / import all workspaces, applications, images and files one by one (by hand on the Apex environment).
    - Is there a particular method to follow to include the Apex data in the export / import process ?
    OR
    - Is there a trick or a utility program that can automate the export / import of Apex data ?
    Thank you for your help.
    - Patrice

    Patrice,
    There is an Apex utility (it's called ApexExport) that can be setup to run workspace, application and page exports. It's a Java based utility and sometimes can be a little maddening to get configured to run but it will do the job once you get it configured. The utility will be on the database machine in the Apex installation directory. There is pretty good documentation available from Oracle but John Scott blogged about it here http://jes.blogs.shellprompt.net/2006/12/12/backing-up-your-applications/ as well.
    Earl

  • How to export/import apex user ?

    Hi All,
    I am using APEX 3.1. How to export apex users and import into different workspace. Basically I am trying export APEX users from dev workspace into Prod. Is it possible to include as part of application export?
    Anyone's help is much appreciated.
    Regards

    apex_util.export_users
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#BABCDACJ
    This function was available with 3.2, I didn't confirm for 3.1
    Scott

  • Exporting/Importing a *Bunch* of Applications

    I know this has been posted many times before but, I couldn't find any good answers.
    I have over 60 applications now and it will take hours (of very tedious effort) to export/import them one at a time.
    Isn't the SOME way to export all of the applications in a work space for import into another? Can I use a regular DB export import of the FLOWS user? Is there any way to batch them? Any ideas at all, supported or non, would be very appreciated.
    Thanks,
    -Joe

    Joe,
    Where you unzipped the Application Express 2.2.1 distribution, there should be a utilities directory.
    If you navigate to this directory, you should be able to run this utility. I unzipped this distribution into my /tmp/oracle_temp directory in this example:
    [oracle@commander utilities]$ pwd
    /tmp/oracle_temp/apex/utilities
    [oracle@commander utilities]$ java oracle.apex.APEXExport
    Usage APEXExport -db  -user  -password  -applicationid  -workspaceid -instance -skipExportDate -debug 
        -db:              Database connect url in JDBC format
        -user:            Database username
        -password :       Database password
        -applicationid :  ID for application to be exported
        -workspaceid :    Workspace ID for which all applications to be exported
        -instance :       Export all applications
        -skipExportDate : Exclude export date from application export files
        Application Example:
           APEXExport -db candy.us.oracle.com:1521:ORCL -user scott -password tiger -applicationid 31500
        Workspace  Example:
           APEXExport -db candy.us.oracle.com:1521:ORCL -user scott -password tiger -workspaceid 9999
        Instance Example:
           APEXExport -db candy.us.oracle.com:1521:ORCL -user flows_020200 -password apex -instance Joel

  • Import of Apex Application to another instance takes a long time

    Hi,
    I have developed an apex application which is of size -24 MB .While importing the appl to another instance it takes a long time (few hours). The imported appl is working fine so far.
    What should be the ideal time for the import of this size appl ?
    Is it the usual due to the size of the app or some thing is wrong with the app ?
    Any one can please throw some light on this, as I am unable to figure out if it the appl issue or the DB issue.
    Thanks in advance!

    The application is getting imported and running, so you do not really have a problem in hand.
    24M is big, but not all that big to run for hours.
    The time taken depends on the resources available on the server where you are trying to import. If the load on that server is high then the resources will be shared between all the processes run on it, and the import process will run longer.
    Monitor disk and CPU usage, it will provide you some clues. Try importing at offpeak time and it should run faster if there is a server resource issue.
    Regards,

  • Export - Import in Oracle Application Database

    The export in Oracle Applications Database works fine.
    But the import always show some issue and sometimes never completes.
    Even if it completes it complete with error , how to ensure an error free export/import ?
    How to handle a table movement if the table consists of a LONG column ?

    The errors are cannot import this tables..
    Also mostly are of Long tables..Any IMP-XXXXX or ORA-XXXXX messages?
    Can you explain how long objects are exported and imported ?What type of objects?
    What is the database version?
    Are you doing a full database import?
    Also sometimes import hangs for 2/3 days?Does it hang when importing a specific object?
    Did you follow the steps outlined in the following notes when you did the Export/Import?
    Note: 362205.1 - 10g Release 2 Export/Import Process for Oracle Applications Release 11i
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362205.1
    Note: 230627.1 - 9i Export/Import Process for Oracle Applications Release 11i
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230627.1

  • Best way to Export/Import Workspace/Applications

    Hello Gurus,
    I am moving servers and wanted to know the best way to Move Workspaces/applications.
    I am on 10G R2 and Application Express 3.0.1.
    I have created a database on the new server.
    Installed http server. Installed Application Express.
    I can get into application express using the admin password.
    On the database side I have 3 tablespaces and 3 Oracle schemas.
    On the Application Express side I have 3 workspaces that are linked to
    the 3 Oracle Schemas.
    I imported (Oracles Import) one of the Schemas.
    If I get into Application Express and try to import the Workspace it gives
    me an error'Workspace will not be created because it already exists.'
    Will importing a workspace import all the applications in the workspace.
    Dhiren

    Did you export the workspace to a file and then try to import it when you got that message? What is the name of the workspace? I don't know why you would get that error in a newly installed Application Express unless you tried to manually create a workspace with that name somehow before you tried the import.
    Anyway, you might want to re-install and start over by (1) exporting each workspace to a file, (2) importing each workspace from those files into the new instance, and (3) do the same export/import cycle for each application from old to new instances, for each workspace. Workspace export/import does not include applications or anything except the workspace name, the schema list, and the user accounts. You may want to export/import css, static files, images, UI defaults, and themes too, if you want to carry those over.
    Scott

Maybe you are looking for