APEX Compatibility
I developed a demo tool with APEX 2.1 on Oracle XE. It became very complex over time and is no longer just a demo (so much for the formal development process, huh?).
My company is planning to setup a new server and purchase a Standard Edition license. APEX 3.0.1 will be installed and additional applications will be developed for internal use.
Will my existing 2.1 application be compatible with 3.0.1? Or will it need modifications or even a complete re-write? I am hoping I can export the application and its data, and then import it into APEX 3.0.1 on the new server.
I did the same with half a dozen applications (quite simple applications, I have to say), from 2.1 (XE) to 3.0.1 (11g), and I didn't have problems. Of course I can't guarantee that any functions will work...
BTW, I didn't change anything.
Similar Messages
-
MIME type issue in version 4.1/4.2 Compatibility Mode
Problem: when displaying a PDF file, it displays OK as PDF if APEX 'Compatability Mode' = 'Pre 4.1', but displays as HTML when in either '4.1' or '4.2' mode.
Apex: 4.2.2.00.11
DB: 11gr2
Web server: Apache on Linux
More detailed description... this seems to be a MIME type issue related to APEX (or maybe DB) versioning. The following code works as expected when run in 'Pre 4.1' mode - ie. it displays an appropriate PDF document in the appropriate Acrobat/other plugin in several browsers (Firefox/Opera/Chrome/IE). But just by changing 'Compatability Mode' to '4.2' (or even '4.1'), it then downloads the file but displays it as a bunch of random characters, and the web page header MIME type is 'text/HTML'.
Note: this also happens with other file types such as xls/doc/etc, but I expect fixing PDF should also fix these.
I'm at a bit of a loss as to where this is happening, it seems there is a difference in the 'Compatibility Modes' between either the creating of the HTML header using 'OWA_UTIL.mime_header' or the component path it traverses before reaching apache.
The only other thing I could think of is that we do a bit of redirection to display the PDF, though this seems like it might be a red herring. Basically we use page 560 as a container, and then display the PDF with page 561 within a frame embeded within page 560. So, on the page 560, which is the one we reference throughout the application, we have a region with a source of '<iframe src=?p=&APP_ID.:561:&SESSION.height="500" width="700"></iframe></pre>'. Then on page 561, in a 'On Load - Before Header' process, we make the call to the code 'DOWNLOAD_APPLICANT_PDF' (below).
Note: I did try calling 'apex_application.stop_apex_engine' after 'DOWNLOAD_APPLICANT_PDF', as suggested in a couple threads, but it didn't fix the problem, and caused a couple low-level system errors.
Code:
<pre>
CREATE OR REPLACE PROCEDURE DOWNLOAD_APPLICANT_PDF ( p_doc_id IN NUMBER
AS
v_length NUMBER;
lob_loc BLOB;
l_display_inline CHAR := '1';
BEGIN
SELECT pdf_data, DBMS_LOB.getlength (pdf_data)
INTO lob_loc, v_length
FROM pdf_dest
WHERE pdf_dest_id = p_doc_id;
OWA_UTIL.mime_header ('application/pdf', FALSE);
HTP.p ('Content-length: ' || v_length);
HTP.p ('Content-Disposition:inline;filename="mydoc.pdf"');
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (lob_loc);
END;
</pre>Hi,
for some background information about the above changed behavior, have a look at 4.2 Before Header Processes and Browser Security HTTP Headers of the APEX 4.1. release notes.
Regards
Patrick
Member of the APEX development team
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Compatability between Oracle 10g 10.2.0.3.0 and Apex 2.2
We have an Apex application with a bunch of APEX tree objects. The data for the tree comes from a materialized view. All was fine with the older version of Oracle database (1og 10.2.0.1.0) but when we applied the patch for 10.2.0.3.0 the trees are misbehaving (there are multiple root nodes, ID's are duplicated)
Is there any compatability issue? should we upgrade APEX to APEX2.2.1 or APEX 3.0
Any Help appreciated.
Thanks
Raje.Raje,
You should first apply the 2.2.1 patch. This is easy and it is not an upgrade.
You should also test the materialized views outside of Application Express with your upgraded database.
Also, check with Oracle Support about bugs related to MVs and 10.2.0.3.
Scott -
Blog Post: Octagonal Peg in a Hexagonal Hole (APEX Backward Compatibility)
http://tylermuth.wordpress.com/2009/06/04/octagonal-peg-in-a-hexagonal-hole-apex-backward-compatibility/
Thanks,
TylerNot really a suggested idea since there are QUITE a few new features and such in 4.0.. Why can't you look at updating your 3.1 instance?
Thank you,
Tony Miller
Webster, TX
When you have enough clowns, you have a circus. -
Apex listener compatibility with VMware
We have APEX listener configured on Tomcat server. There is a plan to move the tomcat server to virtual machines (VMware based). Migration will be made using Physical to Virtual (P2V) migration tools.
Application Express 4.0.2.00.07 is installed on Database server.
Software installed on Tomcat server:
• Windows 2008
• TomCat v 6.0
• Java version "1.6.0_25"
• Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
• Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)java
Is the virtual platform supported by Oracle?
What could be problems if we move to virtual machines instead of current physical machine for Tomcat?
Is there any Oracle documentation related to this?Assuming the VM environment is set up correctly, it should be totally transparent whether the underlying infrastructure is virtual or physical.
However*, two observations...
1. TomCat is not an option for the Oracle APEX listener. Valid options are GlassFish, Weblogic or Oracle OC4J (http://www.oracle.com/technetwork/developer-tools/apex-listener/documentation/index.html). So, I don't think that you really have the APEX Listener running under TomCat. Do you mean that you have the mod_plsql for Apache configured to connect to APEX (do you see a "pls" in the URL to your APEX Server)? If so, this isn't actually the APEX Listener. It's just a (supported) configuration of Apache.
2. Whether it will work without an issue and whether it is actually supported are different questions. I don't think Oracle will officially support VM implemented products unless the underlying VM is Oracle's own (rather than, for example, VMWare). I think you would probably still get good, (unofficial!), answers in this forum but, Oracle might tell you to get bent if you opened a tar.
-Joe -
Theme compatibility between Theme 12 in APEX 3.2 & new 4.0 themes
We have successfully upgraded a development environment to 4.0.1. The application we upgraded uses theme 12 from APEX 3.2. Most of our users are still using IE 6 so we are limited in the new themes we can choose because they must also be compatible with IE 6.
Can anyone suggest which of the 5 IE 6 compatible themes in APEX 4.0 would be most closely matched to the old theme 12 from APEX 3.2? The fewest changes the better on this first go round.
Thanks,You can upgrade your application to APEX 4.0 but continue to use the existing theme. The theme is packaged with your app: if the app used theme 12 from APEX 3.2 that theme should still be there and you should be able to continue using it.
Has the upgrade process actually switched your application to one of the new themes? Although I haven't upgraded an installation myself yet (decided to wait for 4.0.1 patch) I wouldn't expect this: my apps on apex.oracle.com retain the themes they had on 3.2.
If for whatever reason theme 12 from 3.2 is not available in your app, then do a theme export from a 3.2 installation and import it into your app (though it won't import as theme 12). It can also be added to the repository so you can easily continue to use it for new apps (though I think your time would be better spent upgrading from IE6). -
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 &quot;!&quot; when expecting one of the following: ( - + case mod new not null &lt;an identifier&gt; &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; continue avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date &lt;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
ThanksNow 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 -
Login from ebs to apex directly .
Hi All,
I have been using the Cabot consulting paper for login to apex from ebs directly .
i placed the following code as onload process
BEGIN
wfa_sec.getsession(:P101_USERNAME);
:P101_PASSWORD :=
XXAPX_SECURITY_PKG.generate_hash
(FND_GLOBAL.user_name);
IF :P101_PASSWORD IS NOT NULL THEN
APEX_CUSTOM_AUTH.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_APP_PAGE => :APP_ID||':1'
END IF;
EXCEPTION WHEN OTHERS THEN NULL;
END;
But the wfa_sec.getsession(:P101_USERNAME); is not working properly , its redirecting me to ERP home page .
Kindly! help me.
Regards,
Nandini Thakur.This is how we do it...
1) Call a function from apps, passing in the app number and page separated by a pipe symbol:
PROCEDURE launch_application(app_page IN VARCHAR2)
IS
l_url VARCHAR2(256);
l_page NUMBER;
c OWA_COOKIE.cookie;
l_application NUMBER;
BEGIN
l_application := TO_NUMBER(SUBSTR(app_page, 1, INSTR(app_page, '|') - 1));
l_page := TO_NUMBER(SUBSTR(app_page, INSTR(app_page, '|') + 1));
OWA_UTIL.mime_header('text/html', FALSE);
OWA_COOKIE.send(
name => 'APEX_EBS_' || l_application,
VALUE => fnd_global.user_name
|| ':'
|| generate_hash(fnd_global.user_name)
|| ':'
|| fnd_global.user_id
|| ':'
|| fnd_global.resp_id
|| ':'
|| fnd_global.resp_appl_id
|| ':'
|| fnd_global.resp_name
|| ':'
|| fnd_global.application_short_name,
expires => SYSDATE + 1 / (24 * 60 * 6), --Expire in 10 seconds
PATH => '/'
l_url :=
fnd_profile.VALUE('APPS_FRAMEWORK_AGENT')
|| '/pls/apex/f?p='
|| l_application
|| ':'
|| l_page
|| '::LAUNCH';
OWA_UTIL.redirect_url(l_url);
END launch_application;Then the APEX login page has a on-header process:
DECLARE
c OWA_COOKIE.cookie;
a wwv_flow_global.vc_arr2;
BEGIN
c:=OWA_COOKIE.get('APEX_EBS_'||:APP_ID);
a:=apex_util.string_to_table(c.vals(1));
:P101_USERNAME:=a(1);
:P101_PASSWORD:=a(2);
:GBL_USER_ID:=a(3);
:GBL_RESP_ID:=a(4);
:GBL_RESP_APPL_ID:=a(5);
:GBL_RESP_NAME := a(6);
:GBL_APPLICATION_SHORT_NAME:=a(7);
wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':1'
EXCEPTION WHEN OTHERS THEN NULL;
END;We set up the globla variables you see above.
We then have an authentication scheme which calls an authentication function:
RETURN xxfnd_apps_to_apex_pk.authorise_userwhich looks like this:
FUNCTION authorise_user(
p_username IN VARCHAR2,
p_password IN VARCHAR2
RETURN BOOLEAN
IS
BEGIN
IF fnd_web_sec.validate_login(p_username, p_password) = 'Y' --This part not really requried but kept in for compatibility
OR validate_hash(p_username, p_password) THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
END;Our validate hash function is checking hashes over a period of time against the calculated hash. This means that the hash is only valid within 10 seconds of being generated - makes things more secure. We also use a salt value which is based on a hash of the apps password. You will have to chose what level of complexity to go into.
Then we have a VPD entry in the APEX Application Security definition:
BEGIN
fnd_global.apps_initialize(NVL(:gbl_user_id,0),
NVL(:gbl_resp_id,0),
NVL(:gbl_resp_appl_id,0)
END;This ensures that apps context is maintained throughout the application. -
Compatibility between RDS 2.0.10 & Java SE 8 ?
Hi,
I just upgraded from Java 1.7 to 1.8 (1.8.0_31) and my apexlistener (actually RDS 2.0.10) doesn't start anymore due to an exception error with the message below :
D:\RDS2010>java.exe -jar ords.war
Exception in thread "main" java.lang.
UnsupportedClassVersionError: oracle/dbtool
s/jarcl/Entrypoint (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
I read that some compatiblity issues may come with Java 8..
Should I reinstall Java 7? is there any foreseen patch for RDS if it's a compatibility issue ? I also precise that I'm running my Apex environment in a standalone mode.
Thanks for your feedback.
Rgds,
YvesThere is no official statement of certification for Java 8. We do support it, however, our stress testing is focused primary on Java 7.
--mark -
Greetings,
I had a report created in APEX 3 that was working fine. Now APEX was upgraded to 4.0.2.00.07, now I am getting the 06502 error. I have not made any changes to the database or any program units or the report itself. Is this an issue known in 4.0.2.00.07 ?? Is there a work around?
Thanks
Vatsacheck the DB version compatibility with apex 4 or your DB version to apex 4.0 support for upgrade!
Oracle Application Express Installation Requirements for 4.0 -
Ora-06502 pl/sql numeric or value error in Report Query in oracle apex
Hello all,
I need your help...
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
I am using bi publisher to generate PDF reports in oracle apex.
We were using APEX 4.0 and migrated to 4.2 just a week ago.
Now we have apex 4.2.
When I try to Create report query,
Shared Components >> Report Queries then create.
and test a report in a create wizard I am getting a error "ORA-06502: PL/SQL: numeric or value error: character string buffer too small".
I have also applied a patch "16760897".
This issue is because of number of columns in a query is more then 26.
If I run a report with 26 or less number of columns then the is working fine, otherwise getting this error.
My before migration report queries working perfectly even now, but not new queries.
This issue is also in apex.oracle.com.
You can see
Not working - http://apex.oracle.com/pls/apex/f?p=619:4
Working - http://apex.oracle.com/pls/apex/f?p=619:2:
Please give a solution.
Thanks you.check the DB version compatibility with apex 4 or your DB version to apex 4.0 support for upgrade!
Oracle Application Express Installation Requirements for 4.0 -
How to Import 3.0 application in APEX 3.2?
How to Import 3.0 application in APEX 3.2? These two are on two different machines. It is not upgrade.
Pls help.Hello,
APEX supports backward compatibility. It means that 3.2 version can run any application that was developed in earlier versions.
In your case, just export the full application from 3.0 and import it in the 3.2
Regards,
Arie.
♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
♦ Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More -
Unable to load Packaged App Document Library 0.91 in Apex 3
I have downloaded packaged application Document Library 0.91 from packaged applications URL and trying to import it into APEX 3.0.
In Application Builder I am getting an error message that 'Script has exceeded the maximum limit'. So I tried executing the install script as a application parsing schema, then it returned following error in SQL*Plus:
SQL> spool doclib_install.log
SQL> @doc_library_installer_0.91.sql
APPLICATION 12487 - Document Library 0.9
Set Credentials...
Illegal security group id value for this schema.
Check Compatibility...
API Last Extended:20070108
Your Current Version:20070108
This import is compatible with version: 20060224
COMPATIBLE (You should be able to run this import without issues.)
Set Application ID...
begin
ERROR at line 1:
ORA-20001: Package variable g_security_group_id must be set.
ORA-06512: at "FLOWS_030000.WWV_FLOW_API", line 45
ORA-06512: at "FLOWS_030000.WWV_FLOW_API", line 237
ORA-06512: at line 4
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Production
With the Partitioning, OLAP and Data Mining options
Am i missing anything or if anybody got a luck to install this app into Apex 3.0 pls. let me know how to resolve the above error?
Thanks & regards,
PreetPreet,
Maybe we need to be more explicit in the readme. You need to "Import and install the doc_library_installer_0.91.sql ... Select to install supporting objects." This is from the Application Builder, select Import. Maybe you uploaded it as a script under the SQL Workshop? Those directions are in the readme for upgrading from the .9 version to the .91 version without losing your data.
-- Sharon -
PROBLEM!! How to upgrade on apex 3.1.2?
Hello everyone!
I am new, and so far I have only worked with. Net tools. I installed Oracle Express, and download apex_3.1.2.zip but not no way to upgrade. I pray that we someone explain in details how difficult to make. On the computer I have Vista OS. Thanks in advance ..
Sorry for mi English, I from Croatia :)
Marko.
Edited by: CroMarko on 2009.01.16 10:33!!!I managed to make this!!!
Connect to SQLPlus as SYS
@APEX_HOME/apex/apxldimg.sql APEX_HOME
@APEX_HOME/apex/apxxepwd.sql password
(where password is the password of the Application Express internal ADMIN account) *
!!!!but my version is probably remained the same, right??!!!!!!!!
Product Build: 2.1.0.00.39
Schema Compatibility: 2005.05.01
Last DDL Time: 02/07/2006 10:55:32 PM
Host Schema: ANONYMOUS
Application Owner: FLOWS_020100
Current User: HR
Language Preference: hr
Current Time (on server): 01/16/2009 12:33:09 PM
* -
When installing apex 3.1.2 in Oracle RDBMS 9.2.0.8 Ii got the following errors:
command:
SQL> @apexins SYSAUX SYSAUX TEMP /i/
output:
APPLICATION 4411 - APEX - System Messages
Set Credentials...
Check Compatibility...
WWV_FLOW_API.FLOWS_API_LAST_EXTENDED20070906
WWV_FLOW_API.CURRENT_FLOWS_VERSION20070906
WWV_FLOW_API.IMPORT_COMPATIBLE_WITH_VERSION 20070108
WWV_FLOW_API.COMPATIBLE
Set Application ID...
begin
ERROR at line 1:
ORA-04068: existing state of packages has been discarded
ORA-04063: package body "FLOWS_030100.WWV_FLOW_UTILITIES" has errors
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at "FLOWS_030100.WWV_FLOW_AUDIT", line 66
ORA-06512: at line 3
Checked table all_errors
output:
FLOWS_030100 WWV_FLOW_UTILITIES PACKAGE BODY 1 5928 3 PLS-00201: identifier 'DBMS_LOCK' must be declared
Any suggestions ?
Regards,
RemoHi Penny,
Your suggested solution worked.
However i got other errors and so i ran apxremov.sql to cleanup the installation.
Forgot to mention that there was a previous installation of apex.
After rerunning apexins.sql installation was completed succesfully.
Thanks for reply.
Remo
Maybe you are looking for
-
Labiew lib for modbus over RS485 over USB
Hi, I have the following problem which I would be grateful for any help to solve. I have a digital meter device (lumel NA5) which has RS485 interface, and modbus protocol over it. A possible solution I'm contemplating is to get a RS485 to USB convert
-
Is it Possible to Upgrade Apex on Amazon RDS?
I don't have any experience of RDS but I'm interested in using it. The problem is RDS seems to come with Apex 4.1. Is it possible to run the upgrade script on it to upgrade it to Apex 4.2?
-
Hi Not quite the correct place to post this but I thought that some of you might have some experience with this toolkit. I'm streaming data to a binary file which I would then like to open for analysis on another machine. The data is being collected
-
Business Connector System tasks
I am trying to determine where the system tasks in SAP Business Connector are documented. There are a number of system tasks in the Scheduler and no documentation. The task that I am concerned with is the 'DB Session Sweeper'.
-
Check whether a transaction is running
I need to know if there is a function I can use to check whether a transaction is being run by a specific user.