Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Deploying APEX Application including images using SQL*Plus

Posted on 2013-01-08
10
Medium Priority
?
1,771 Views
Last Modified: 2013-02-02
Hi all

Oracle APEX export and import feature allows to dump an application into an SQL-file which can be importet in an other environment. Doing this using the webapp gives the possibility to run the installation scripts of supporing objects after the import of the app.
When running the installation from commandline using sqlplus creates the installation scripts in the target repository but does not run them.

How can this step be automated as well?

Thanks for any help
Thomy
0
Comment
Question by:Thomy-M
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 16

Expert Comment

by:Swadhin Ray
ID: 38762043
Is the workspace ID is same ?
0
 
LVL 16

Expert Comment

by:Swadhin Ray
ID: 38762047
0
 
LVL 1

Author Comment

by:Thomy-M
ID: 38762283
The workspace where the application and supporting objects are installed is the same. The workspace where the export file is coming from is a different one. I have to deploy from dev - test - prod which are different APEX instances on different systems.

The question ist, how to run the install scripts which are written to the target system by calling wwv_flow_api.create_install_script() in the exported file.
When exporting the application with parameter "Export Supporting Object Defintions" set to Yes, these scripts are included in the export file. When importing the file using APEX, the wizard ask to execute them after installing the application. But when executing the installation using sqlplus, this task has to be done using an according API-call. Unfortuanetly these packages seems not to be documented in public.

I found several hints in oracle forums which advices to call things like
wwv_flow_api.set_security_group_id();
But this package seems not to be documentd in public. I think that there might be a call there to run the install scripts as well.
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 16

Expert Comment

by:Swadhin Ray
ID: 38762335
<<<The workspace where the application and supporting objects are installed is the same. The workspace where the export file is coming from is a different one. >>>

See if you have exported the application from different workspace then you need to modify the name and then install it on the traget database (so that what you are importing should be same as ID of the workspace on the target db).

And if you have apex installed on the target database why don't you directly import it from the import and export application which will also have the option to install the supporting objects.

Did you tried this ?
0
 
LVL 16

Expert Comment

by:Swadhin Ray
ID: 38762363
Also check the APEX version from where you have exported and where you are installing .
The target APEX should be same or higher not lower version.
0
 
LVL 1

Author Comment

by:Thomy-M
ID: 38762619
Surely I know that importing the application using APEX would run these scripts. The reason why I want to do this using cmdline is that we already have a setup tool to deploy a lot of other things. Our APEX-App ist only a small part of all and we would like to deploy everything at the same time using the same mechanism.

We require that the same APEX version is installed on all environments.

Everything is working fine except the app images.
0
 
LVL 16

Expert Comment

by:Swadhin Ray
ID: 38765790
Did you checked if the import is taking the alias which might be the issue.

For more details you can check this link:
https://forums.oracle.com/forums/thread.jspa?threadID=617165
0
 
LVL 1

Accepted Solution

by:
Thomy-M earned 0 total points
ID: 38767222
We are using images deployed as application images because the image directory /i/ is part of the listener instance.

Today i figured out the solution!
In the workspace home, there is another export command available. This command allows to create an export file of all images including the nessecary code around everything to assign the correct security-ID and application-ID.
The location is not that obvious to catch it on the first sight, but this script works fine even executed using sqlplus or even JDBC.
So the problem is solved.

Thanks for your help
0
 
LVL 16

Expert Comment

by:Swadhin Ray
ID: 38773220
That sounds great that you got the solution.
0
 
LVL 1

Author Closing Comment

by:Thomy-M
ID: 38846442
Apex-Deployment could be optimized
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question