In the Apex version control

We are fairly new to apex, and we plan to create a broad application using the latest version of the Apex.  We plan to use Subversion (SVN) version control tool.

We have 3 scenes like

-Development

-Staging

-Production

Our plan is to use the same id of the workspace, the application id and the ID of page in all environments, so that we can apply individual for the pages of the application changes after the initial version is deployed in all 3 environments.

The workflow will be development in the development-> Testing environment in staging-> deploy to Production

What is a good way to make the Apex version control?   Is there any other better practical approach that we can use?

Thanks in advance

Hi Dragonia,

Start with, you're in the right direction! The first (step 1) for control of current version of APEX is to have cloned DB systems for DEV/TEST/PROD. This ensures internal APEX IDs are the same in all settings and it will help us to detect only valid changes.

Step 2: export the individual components of the APEX in sql files. Add them to version control.

To export individual components of APEX in the form of sql files, you can use the Java utilities provided by APEX. These classes are under the folder path below APEX zip

\apex\utilities\oracle\apex

APEXExport.class - use this utility to export specified from the specified workspace APEX and DB application

APEXExportSplitter.class - use this utility for dividing bulk single apex sql file into individual sql files (generates an sql for APEX component)

Step 3: when changes are made, rerun the utility of separator and validate the svn changes (you can only commit files sql for components respective apex which you have changed)

Step 4: build patches script to migrate following environment changes (the hard part!)

There is no easy way to do this by their SUMMIT. You must take all the files of sql that you changed, and you must prepare an installation script to run all of these sql files. When you run apex splitter, it gives you all the parts of apex with a well organized with install.sql file folder structure. You can see this install.sql file to prepare your own patches script.

Another difficult point is - some components of the APEX should be deleted before re-creating them. For example if you changed the page 10 and you want to export the following environment changes, then install.sql sample will be as below

-- install.sql
@application/init.sql
@application/set_environment.sql
@application/delete_pages.sql
@application/pages/page_00010.sql
@application/end_environment.sql

And the contents of delete_pages.sql will be as follows

-- delete_pages.sql
SET DEFINE OFF 

BEGIN
    wwv_flow_api.g_mode := 'REPLACE';
END;
/

BEGIN
    wwv_flow_api.remove_page (p_flow_id=>101, p_page_id=>10);
END;
/

And this isn't the end of the story. Some of the changes to shared component can be directly applied to the next environment using sql scripts generated by splitter apex (such as models, methods of application), but some of the shared components cannot be. We must first remove and then we have to recreate it using files sql generated via a dispatcher of the apex. And we need to go through the undocumented internal APEX wwv_flow_api care to know what procedure we use to remove that shared component package.

Also when delete us a page, then all registered users reports public and private will be lost. So before you move your changes to Production, you should export user reports public/private and you should re - install Production DB after the installation of pages.

To summarize, apex version control applications is not hard, but preparation 'delta script or patch' is very difficult.

Hi joelkallman-Oracle, I do remember that you promised to publish a white paper ticket or a blog on this topic. It is already published. If so, can you please share the details. Thanks a lot for your wonderful support in advance.

Kind regards

Hari

Tags: Database

Similar Questions

  • Multiple instances of the APEX version share the same House of Oracle?

    Hello

    I'm working on the database oracle 11.2.0.2

    I have 2 instances DEV and PROD sharing the same oracle home.

    For the moment, the apex version is identical to 2 instances (4.2.1.00.08) and installed together with the embedded PL/SQL gateway.

    is there a potential problem for upgrade only version apex for the dev to 4.2.6 instance?

    concerning

    JM

    jmniard wrote:

    I'm working on the database oracle 11.2.0.2

    I have 2 instances DEV and PROD sharing the same oracle home.

    For the moment, the apex version is identical to 2 instances (4.2.1.00.08) and installed together with the embedded PL/SQL gateway.

    is there a potential problem for upgrade only version apex for the dev to 4.2.6 instance?

    An instance of the APEX using EPG exists entirely within the database once it is installed. External dependencies only would be on the scripts of utility provided with the installation media. Extract the installation files to the version files in a subfolder of the APEX of the ORACLE_HOME (apex/4.2.1, apex/4.2.6 etc.), to ensure you have access to the 4.2.1 and 4.2.6 install files so that should need you to execute a utility script (apxchpwd.sql for example) that you are running the correct for the involved database version.

  • How to upgrade the APEX version on 10gXE

    I'm working on a database of 10gXE (express edition Release 2) and I see that APEX (application specific) different (certainly seems more) than to the APEX. 4.1 which should be the last (and I tested on turbidity to http://apex.oracle.com/i/index.html).
    My question is this: is it possible to upgrade the APEX version on my 10gXE of the database?
    Http://www.oracle.com/technetwork/developer-tools/apex/overview/index.html, I read that for the installation I have do I run the installation script Application Express, apexins.sql. It works for the upgrade as well, or not? I have only to upgrade the version and not completely install APEX
    Thank you!

    Watch this video for a general idea of what you are doing... http://www.mandsconsulting.com/upgrading-to-apex-4-on-oracle-xe-and-windows

    Then follow these steps... http://www.oracle.com/technetwork/developer-tools/apex/upgrade-apex-for-xe-154969.html

  • The EBS Version control tools

    Hi all

    We are on request R12.1.3. We want to implement for E-Business Application version control. Any change in the application is performed in a controlled manner.

    Please indicate if there are tools available for E-Business applications version control?

    Thanks and greetings

    PVCS is a good version control software for Oracle EBS.

    Serena Dimensions is the best tool for version control. It is not only as a version control, but also as a tool of liberation.

    Other version control tools that are available: Express Sourcegear, TortoiseSVN, Dimension, Cleartool, clearcase, etc.

    Best regards

    ShihO

  • Confirming the APEX version

    Hi - We were on APEX 3.0.1. Our DBA just installed 3.2 APEX. However, when I connect to our development environment.
    info-line at the bottom right always shows 3.0.1.00.06 Express demand, and on request Express, the info is product Build: 3.0.1.00.07
    Compatibility of the schema: 2007.05.25 last time DDL: 2008-10-01 13:37:44 (I don't know why these versions differ slightly.)
    This version information is always accurate, or is there another way, I can confirm the version? The upgrade are automatically reflected in / available in the development environment, or is there another step that needs to happen?


    Thank you
    Carol

    Carol,

    Don't worry, this happened to many people including me. It is being upgraded, but the information bar keep showing the old version.

    Here is a simple way to check:

    In your sql Studio, run the following: select version_no in the apex_release;

    Hope this helps,
    Sam K

    Please reward useful answers with correct or useful marking ;)

    Published by: Sam_Khalaf on September 8, 2009 16:50

  • Oracle 11g and the APEX version

    Hello

    My understanding is that APEX 4.0 comes by default with Oracle 11 g. recently, we have the oracle 10 g updated to 11g and our admin has mentioned that APEX verision shows APEX 3.2.1...

    Please advice...

    Thank you

    No, you'll need to download and install 4.0.2 assuming you want the most recent apex.

  • Integrate SQL Developer with IBM's Clearcase Version control

    Hello

    I explored the part of version control for SQL code by incorporating my SQL with Clearcase from IBM Developer. So far I have not been successful with it, I managed to remove the SVN Version control options, but I am not able to use it for my Clearcase link. Could I know please if there is any plugin available from Oracle for this to do. If it please help & drop your suggestions.


    Thank you

    Michael ([email protected])

    Hi Julien,

    There is ClearCase comes available for JDeveloper extension versions, and as any given SQL Developer release some releases JDeveloper, you may be able to find an appropriate version of the extension for your use case.  Looking for ClearCase in the center of update JDev:
    http://www.Oracle.com/ocom/groups/public/@OTN/documents/WEBCONTENT/131167.XML

    Of course, ClearCase is Nolisted in the release notes for SQL Developer as a supported Version control system:

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/downloads/sqldev-releasenotes-v4-1925251.html

    If you want to give it a go, however, here's what I did to install a ClearCase plug-in for my 4.0.1 Developer SQL...

    1. check the SQL Developer Help > about > Extensions for the version of oracle.jdeveloper.vcs (12.1.3.2.41.140207.1351)

    2 downloaded vcs - clearcase_bundle.zip (12.1.2.0.40.66.68 is the closest available JDev version)

    3. in the zip file, modify or replace the value of the property maxVersion in the META file - INF\bundle.xml (from 12.1.2.0.40.66.68 to 12.1.3.2.42.99.99)

    4. install the zip: Tools > features... > Check for Updates (top-right) > install from a Local (radio button) file...

    5. now, ClearCase will be available from the main tool bar: team > ClearCase

    I don't have a ClearCase installed on my machine, so that's as far as I could go.  I hope that you will still make progress.

    Kind regards
    Gary

    SQL development team

  • Install the APEX 3.0.1 on RDBMS 11 GR 2

    Hi all

    I was wondering if it is possible to install version 3.0.1 on oracle database version-11.2.0.3 APEX?
    We currently have a database 10g with APEX 3.0.1 installed. We must now upgrade project
    to install the latest version of the database. Unfortunately, we do not have enough time to migrate the
    Application of the APEX. This is why the APEX version should stay the same.

    If someone experiences with APEX 3.0.1 and RDBMS 11.2?
    (I searched the oracle documentation, but could not find anything useful.)

    Thank you
    Joe

    Joe,

    (1) the minimum version of the APEX, which can be used with GR 11, 2 DB is APEX 3.2.1. I know that this is not documented anywhere, but he had made 11 GR 2-specific problems so this SUMMIT could work in DB 11 GR 2. This minimum version is 3.2.1 APEX.

    (2) I don't think that there is a way you can avoid the update of the APEX. When you upgrade your version of the database, the DBUA will focus on what version of APEX you. And if the latest version is less than 3.2,1 APEX, APEX and then will be upgraded as well.

    My opinion - and it's probably not what you want to hear, but if you can't avoid the upgrade of the APEX, then you can consider as well the upgrade from 4.1.1 APEX before the DB Upgrade (to avoid too much change at the same time).

    I hope this helps.

    Joel

  • Trigger the error but only in the Apex

    I have a trigger with the following insert statement:

    insert into oe_headers_iface_all (order_source_id, orig_sys_document_ref, order_type_id, created_by, creation_date, last_updated_by, last_update_date, sold_from_org_id, sold_to_org_id, operation_code, booked_flag)
    values (1023, 'TEST', 1116, sysdate, 0, 0, sysdate, 225,65372, 'INSERT', ' don't);

    This trigger works well outside the Apex; It is not a mistake and inserts values into this table. But when I insert a record in my table by Apex, I get the following error:


    ORA-01722: invalid number ORA-06512: at the 'APPS '. RMA_TRACKER_T1', line 144 ORA-04088: error during execution of trigger ' APPS. RMA_TRACKER_T1'

    If I comment that insert statement it runs in the Apex and does not error.

    Any idea about what could be done Apex so angry with this insert statement? It says "invalid number" but I checked the fields again and again, and like I said if I just run this statement myself or insert a record in my table manually it works and does not work error, so Apex seems to be lying to me. In addition, the Apex version is 4.0.1.00.03.

    Published by: Cydonia on May 25, 2011 15:54

    Hello

    Oracle order management interface have a few important columns requiring registrant in the tables of the interface,

    OE_HEADERS_IFACE_ALL:
    ORIG_SYS_DOCUMENT_REF
    ORDER_SOURCE
    CONVERSION_RATE
    ORG_ID
    ORDER_TYPE_ID
    PRICE_LIST
    SOLD_FROM_ORG_ID
    SOLD_TO_ORG_ID
    SHIP_TO_ORG_ID
    SHIP_FROM_ORG_ID
    CLIENT_NAME
    INVOICE_TO_ORG_ID
    OPERATION_CODE

    I have this Inserts instructions and work very well for me...

    Insert in Ontario. OE_HEADERS_IFACE_ALL
    (
    CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY.
    ORIG_SYS_DOCUMENT_REF, ORDER_SOURCE_ID, ORDER_CATEGORY, ORDERED_DATE.
    ORG_ID, sold_from_org_id, ORDER_TYPE_ID, SALESREP_ID, CUSTOMER_PO_NUMBER,
    CUSTOMER_id, sold_to_org_id, BOOKED_FLAG)
    Values
    (Sysdate, Sysdate, P_USER_ID P_USER_ID, vReq_num, SOURCE_OM, 'ORDER', Sysdate,
    P_Org_ID, P_Org_ID, 1027, vSales, vPo_num, ii. CUSTOMER_ID, i.CUSTOMER_ID,
    'N' );
    ----

    It is to command lines
    ---
    Insert into Ontario. OE_LINES_IFACE_ALL
    (ORDER_SOURCE_ID, ORIG_SYS_DOCUMENT_REF, ORIG_SYS_LINE_REF, ORG_ID, LINE_NUMBER, INVENTORY_ITEM, ORDERED_QUANTITY, UNIT_SELLING_PRICE, UNIT_LIST_PRICE, PAYMENT_TERM_ID,
    CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, ORDER_QUANTITY_UOM, CREATED_BY
    ATTRIBUT1, ATTRIBUT2, ATTRIBUT3, CALCULATE_PRICE_FLAG, SCHEDULE_SHIP_DATE)
    Values
    (SOURCE_OM, vReq_num, vlinea, p_Org_ID, vlinea, j.upc, j.ORDER_FORM, ((j.costo / 0.95), 2),)
    Tower of ((j.costo / 0.95), 2), 1003, P_USER_ID, P_USER_ID, Sysdate, Sysdate, one ', j.costo, 5% ', j.costo,
    ' N ", j.NEED_BY_DATE);

    Mortus-

  • Migration to the public website of the Apex - keeping in the Google rankings / links

    Hello

    We have developed and application of Apex that will replace the exsiting customer non-Apex Web site. The customer is concerned about the impact this will have on their Google rankings and links from the Google search results.

    For example, the current site of the non-Apex has a 'Contact us', page whose URL is www.mycustomer.com/contact_us.asp. Googling 'my client contact us' will show this link search results. The Apex of this page version URL will be something like www.mycustomer.com/pls/apex/f?p=app:contact_us.

    Thus, when the client performs a migration towards the Apex version, links to Google search results will be more valid. How should we go about the redirection of invalid links from Google for the new Member States?

    Thank you

    Andrew.

    Hi André,.

    If you happen to be running apache as your Web server instead of the integrated bridge, you could look at using the mod_rewrite module and guidelines in your virtual host containers so that the elders the URL of the page is a redirect in the appropriate in your apex application page. By practice that google will gradually update their links to your site visitors to directly access your apex pages, as he was transferring the page rank of the original page to your new page apex. You can also check the id of the session extraordinary '0' for the simplification of the URL.

    Alternatively, you can edit existing pages site do a 301 redirect to the new pages in their treatment of header - not enough and also means that you have to run at the old site.

    See you soon,.

    Mike

  • dates of 24 hours in the apex

    Newbie question:

    I'm having a hard time getting any time after 13:00 inserted in a TIMESTAMP field.

    I have a table named TRUCK with a column of timestamp TIME_IN. I've had APEX generate a form on TRUCK and TIME_IN is presented as a DATE in format DD-MON-RR HH24:MM PICKER.

    1. when I leave such TIME_IN generated on the shape of the APEX, I get this error when entering the time > = 13:00

    ORA-01849: time must be between 1 and 12

    2. when I use this calculation to modify the value of TIME_IN as follows after submit

    TO_CHAR (TO_TIMESTAMP (: P15_TIME_IN, 'DD-MON-RR HH24'), ' DD-MON-RR HH: MI AM ")

    I get this error:

    ORA-01858: a non-digit character was found here where was waiting for a digital

    3. Finally, when I omit the 'AM' in the format mask, I have no errors but any time after that 13:00 are incorrect - they are reduced to 12 hours
    (I mean that when I create a new record, after selecting 23:15 on the date picker, the time 11:15 is inserted in the table):

    Can anyone help?

    BTW this is APEX 2, the version that comes with Oracle XE for Windows.


    Thank you
    Peter Kopke
    [email protected]
    .

    Hello

    > It's BTW of APEX 2, the version that comes with Oracle XE for Windows.

    TIMESTAMP support was added in version 2.2, so in the last version you use (2.1) it is not supported.

    You must upgrade the APEX version you use, and the following should help you - http://www.oracle.com/technology/products/database/application_express/html/why_upgrade_xe.html

    Kind regards
    Arie.

  • The AUDIT command in, oracle apex (version 4.2.5.00.08), error "ORA-00911: invalid character '.

    I am trying to run

    "AUDIT INSERT, UPDATE, DELETE on emp BY ACCESS WHENEVER SUCCESSFUL;"

    in "SQL commands" on oracle-apex (version 4.2.5.00.08).

    I get the error message ' ORA-00911: invalid character '.

    Can someone tell me the solution for this?

    Apex environment we need to set the database AUDIT_TRAIL to TRUE for the control

    "AUDIT INSERT, UPDATE, DELETE on emp BY ACCESS WHENEVER SUCCESSFUL;"  to work.

    By their Summit, to be able to change the setting of database AUDIT_TRAIL we have to log-in as a DBA from the link "SQL workshop--> utilities--> on the database.

  • FireFox says Java is outdatedon my computer, but the control panel of microsoft shows that it is the what is the latest version with that?

    Firefox said I need to update Java. But I get automatic updates from microsoft in the Control Panel Add or remove watch it shows that I have the latest version of Java. And it has been updated 11/02/12 I don't understand, are plug-ins something different

    You seem to have 1.6.0_29 of next generation Java plug-in installed, where 1.6.0_30 is the latest version of Java.

  • The best software of version control

    Hello

    It is an open question.

    Could you suggest me a decent software to version control that I can integrate with TS and LabVIEW?

    What do you use?

    Hello

    Here at OR we tend to use Perforce , although there are many other options. Knowledge base below can give a few ideas, but also the discussion of Large LabVIEW Application development community.

    Including third-party Source control providers can use with LabVIEW 8.0 and later versions?

    What Source Code Control do you use?

    Concerning

    Rich

    NEITHER | UK

  • How can I uninstall the old version of java 2 runtime environment (H.E. v1.4.2) when it is not listed in the Add/Remove Programs section in the control panel

    Java shows that I have an old version of Java installed.  I can't see to find this version anywhere.  I can't remove it, if I can't find it.  I looked in the Control Panel, under Java and everywhere else I could think of.  I removed something with the hotfix from microsoft, it shows the old version as Java installed on my computer.  Help!

    Try my computer, search, chk the box to search for files, search for downstairs,

    more options, chk boxes, search for system files, hidden files, etc. We could

    In addition, open C:, file open windows, scroll to the folder.

Maybe you are looking for