APEX Application 3.1.2 to 4.0

Hi,
Currently we have developed an application in APEX 3.1.2 Version. We have another APEX instance and its version is 4.0.
Can anyone please tell me, How to migrate my application which I developed in APEX 3.1.2 to APEX 4.0?
Thanks in advance, Waiting for your reply.
Regards
Balaji S

Hi,
You export app from Apex 3 instance and then you import to Apex 4 instance.
Then on Apex 4 you can run "Upgrade Application"
http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/bldapp.htm#sthref1097
This is not necessary. Application should work OK in Apex 4 instance.
Regards,
Jari

Similar Messages

  • Apex application registered with sso as partner application

    We have 1 apex app registered with sso and working properly.
    I just registered a new apex application with sso. when i authenticate through sso, it directs me to the originally registered application.
    I went in through the portal administrator app and verified my settings all pointed to the new application. I verified that my dad is set up correctly.
    Any ideas?
    APEX 2.0

    i did register and obtain the keys through portal admin.
    to ensure i used the proper keys (i guess there is a possibility i used the keys from db1 registration) i re-ran regapp with the right keys but recieved the following output:
    SQL> @regapp
    Partner Application Configuration
    Enter value for listener_token: HTML_DB:050iasphttp.xxx.na.xxx.com:7777
    Enter value for site_id: EFBE3E14
    Enter value for site_token: MSMXURH1EFBE3E14
    Enter value for login_url: https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admin.ls_login
    Enter value for encryption_key: 2EBDD126A3A40606
    Enter value for ip_check: N
    ERROR: Error in registration. Please try again
    User-Defined Exception
    Registration successful.
    Listener token: HTML_DB:050iasphttp.xxx.na.xxx.com:7777
    Site id : EFBE3E14
    Site token : MSMXURH1EFBE3E14
    Encryption key: 2EBDD126A3A40606
    Login URL :
    https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admi
    n.ls_login
    Logout URL :
    https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admi
    n.ls_logout
    IP check : N
    PL/SQL procedure successfully completed.
    Commit complete.
    No errors.
    SQL>
    ...in spite of the error, i aske the app developer to try and use sso for db2. he now recieves:
    User-Defined Exception
    Error Error in wwv_flow_custom_auth_sso.process_success:l_sso_user_name:l_sess_id:: Please contact administrator.
    OK
    any ideas?

  • Problem with logging in to apex application builder listener

    I have problem with my settings and am posting this in hope that someone else out there had similar problem and solved it!
    I am trying to use reverseproxy to access to our db through apex listener.
    It's been all set-up and I can login to the application it self either through proxy or no proxy using the listener.
    But when I try to login to apex application builder I cannot do it through proxy(with no proxy, it works).
    It just refreshes the login page when I click login....
    I tried to upgrade the listener to the latest v1.1(using 1.0.2) but it causes my tomcat to crash...
    So solution i am looking for is how to make logging in work through proxy..
    In the firebug it is showing that below and few other request status as 302 moved temporariry
    http://myserver:8080/testsin/apex/wwv_flow.accept
    Where as with no proxy it is saying Found.....
    Any thoughts??
    Thanks
    Sin K

    Hello Sin K,
    so proxy and Tomcat are located on different machines as well? Is the proxy able to commuicate with the Tomcat on the configured internal ports and is the proxy able to lookup the hostname you configured for the Tomcat?
    For the connector, the proxyName and proxyPort should be the parameters the client uses to call APEX. So if your clients should call via http://proxyserver:8080/testsin/apex the settings would be
    proxyName=proxyserver
    proxyPort=8080Reason for this is that applications (e.g. the APEX Listener) generate there URL references with these parameters.
    But does your proxy actually serve on port 8080? And is that port accessible by clients? Do clients accept cookies from that server?
    In my case, there is only one 302 which redirects to http://host:port/apex/f?p=4500:1000:sessionid which is correct.
    If you look into your first post request in firebug, what's in the request header?
    -Udo

  • How to log in automatically to an Apex application

    I'm looking for a way to launch an Apex app that uses database authentication from e.g. Forms without having to enter your username and password again and I found this clue in a document about extending Oracle Applications 11i with Apex:
    "The next problem to overcome is the automatic logon to the Apex application. Here two approaches that could be used are:
    1. Create an Apex public logon page where you can supply the username and password as parameters to the page;
    2. Pass the username and password from Applications 11i to Apex in a cookie."
    I'm more interested in the first option but I can't find any examples of it. The Apex sample application seems to have a login page but I can't figure out how it would accept the username and password as parameters?

    Pauli,
    This might be useful: Re: Direct Login to Application Remember to use https (SSL) if you are passing clear text passwords around, otherwise you need a more secure technique.
    Scott

  • Flash contents not being displayed on the published Apex application URL

    I've had to publish one of my apex application through an bluecoat proxy to reach my Oracle HTTP server. It works fantastic for everything - except my flash charts. Flash contents are not getting loaded.Issue is only in the published application URL,the same application is working fine internally without proxy.
    Does anyone have any idea why this is failing and how I might fix this?.The bluecoat support enginner is having the following findings
    I am seeing some strange behavior when the browser goes through the
    proxy vs when it does not.
    When the browser uses the proxy the last thing it requests is the
    following(packet 354):
    GET /i/themes/theme_20/btn-bg.gif HTTP/1.1 Via: 1.1 GITS6ISA Cookie:
    WWV_CUSTOM-F_941005998277888_193=7DE31ABFD8D9E680 User-Agent:
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19)
    Gecko/2010031422 Firefox/3.0.19 GTB7.1 (.NET CLR 3.5.30729) Host:
    ithelpdesk.anupcomp.ae Accept: image/png,image/*;q=0.8,*/*;q=0.5
    Accept-Language: en-us,en;q=0.5 Accept-Charset:
    ISO-8859-1,utf-8;q=0.7,*;q=0.7 Referer:
    http://ithelpdesk.anupcomp.ae/i/themes/theme_20/theme_3_1.css
    X-Forwarded-For: 86.98.85.117 Cache-Control: max-stale=0 Connection:
    Keep-Alive X-BlueCoat-Via: E2DE37912594ECAA
    HTTP/1.1 200 OK ETag: "1a887e1-92-4c2c5105" Content-Type: image/gif
    Last-Modified: Thu, 01 Jul 2010 08:25:41 GMT Server:
    Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
    OracleAS-Web-Cache-10g/10.1.2.0.2
    (G;max-age=3600+360;age=0;ecid=121853469393,0) Date: Tue, 25 Jan 2011
    07:52:55 GMT Accept-Ranges: bytes Content-Length: 146 Connection:
    Keep-Alive Age: 0
    That is the browser requests
    http://ithelpdesk.anupcomp.ae/i/themes/theme_20/btn-bg.gif and gets a
    200 ok from the proxy/server.
    When the browser does not use the proxy I see the following
    behavior(packet 2783):
    The browser requests
    http://anupserver:7777/i/themes/theme_20/btn-bg.gif 2 times, each time
    the server responds with a 304 not modified status, this means the
    browser has the most recent copy of the .gif file. The browser finally
    does a post to http://anupserver:7777/pls/apex/wwv_flow.accept. Given
    that the browser gets a 200 ok response from the proxy when requesting
    http://ithelpdesk.anupcomp.ae/i/themes/theme_20/btn-bg.gif and then
    stops requesting data, we need to understand why the browser is behaving
    differently without the proxy(i.e. why does it request the content 2
    times and why is it doing the post). The interaction between the
    browser and the proxy appears normal, a 200 ok response with content is
    normal, why does the browser stop requesting content?
    GET /i/themes/theme_20/btn-bg.gif HTTP/1.1 Accept: */* Referer:
    http://anupserver:7777/pls/apex/f?p=193:1 Accept-Language:
    en-us,ar-ae;q=0.5 Accept-Encoding: gzip, deflate If-Modified-Since: Thu,
    01 Jul 2010 08:25:41 GMT If-None-Match: "1a887e1-92-4c2c5105"
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
    CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;
    .NET CLR 3.5.30729) Host: anupserver:7777 Connection: Keep-Alive
    HTTP/1.1 304 Not Modified Date: Sun, 13 Feb 2011 12:42:01 GMT Server:
    OracleAS-Web-Cache-10g/10.1.2.0.2 Content-Type: text/html Connection:
    Keep-Alive Keep-Alive: timeout=5, max=999 Content-Length: 0
    GET /i/themes/theme_20/btn-bg.gif HTTP/1.1 Accept: */* Referer:
    http://anupserver:7777/pls/apex/f?p=193:1 Accept-Language:
    en-us,ar-ae;q=0.5 Accept-Encoding: gzip, deflate If-Modified-Since: Thu,
    01 Jul 2010 08:25:41 GMT If-None-Match: "1a887e1-92-4c2c5105"
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
    CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;
    .NET CLR 3.5.30729) Host: anupserver:7777 Connection: Keep-Alive
    HTTP/1.1 304 Not Modified Date: Sun, 13 Feb 2011 12:42:02 GMT Server:
    OracleAS-Web-Cache-10g/10.1.2.0.2 Content-Type: text/html Connection:
    Keep-Alive Keep-Alive: timeout=5, max=999 Content-Length: 0
    POST /pls/apex/wwv_flow.accept HTTP/1.1 Accept: image/gif,
    image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash,
    application/vnd.ms-excel, application/vnd.ms-powerpoint,
    application/msword, application/x-ms-application, application/x-ms-xbap,
    application/vnd.ms-xpsdocument, application/xaml+xml, */* Referer:
    http://anupserver:7777/pls/apex/f?p=193:1 Accept-Language:
    en-us,ar-ae;q=0.5 Content-Type: application/x-www-form-urlencoded
    Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE
    6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR
    2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Host:
    anupserver:7777 Content-Length: 262 Connection: Keep-Alive
    Cache-Control: no-cache

    Hello Orton,
    I think this has something to do with network access, may be a firewall restricting access to the server.
    Thanks,
    Machaan

  • 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,

  • APEX application deployment

    Hi All,
    I will soon be exporting my first APEX application from a development database to a test database. I do not want to export the data which the application is built on as the development database contains sample data instead of the "real" data. Before exporting my application, I will of course install APEX 3.2.1 in the test environment and then import the "real" data into the test database so that once the application has been exported and installed in the new environment, the APEX application will already have its data in place.
    On page 14-12 in Chapter 14 of the Oracle Application Express Application Builder User's Guide, I saw the following section:
    Exporting an Application
    When you export an application, Oracle Application Express generates a text file containing PL/SQL API calls.
    To export an application:
    1. Navigate to the Export page:
    a. On the Workspace home page, click the Application Builder icon.
    b. Select an application.
    c. On the Application home page, click Export/Import.
    d. On the Export/Import page, click Export and then click Next.
    2. From Application, select the application to be exported.
    3. From File Format, select how rows in the export file will be formatted:
    ■ Choose UNIX to have the resulting file contain rows delimited by line feeds.
    ■ Choose DOS to have the resulting file contain rows delimited by carriage
    returns and line feeds.
    4. From Owner Override, optionally select another owner. By default, the application is owned by the owner identified in the application attribute owner.
    5. From Build Status Override, select one of the following:
    ■ Run Application Only - Developers can only run an application
    ■ Run and Build Application - Developers can both run and edit an application
    Selecting Run Application Only is an effective way to protect an application from modifications from other developers.
    6. From Debugging, select one of the following:
    ■ Yes exports the application with debugging enabled.
    ■ No exports the application with debugging disabled.
    7. From Exporting Supporting Object Definitions, specify whether to export
    supporting object definitions with your application.
    8. From Export Comments, specify whether to export comments for this application.
    See "Adding Developer Comments" on page 6-22.
    9. Use the As of field to export your application as it was previously defined. Specify the number of minutes in the field provided.
    10. Click Export Application
    Since I do not have any images, themes, static files, workspace users, cascading style sheets, etc, to export, it makes no sense to use the “Packaged Application” method to perform the export. All I need is the application definition that contains all my interactive reports, forms, etc.
    The next step would then be to Import the application into the target Oracle Application Express instance and install the application.
    This method should be OK for my needs, right?
    Thanks

    By simply doing an application export, all you will export is the metadata associated with your application (page definitions, items, processes, validations etc).
    No "Customer Data" will be exported neither will any tables or PL/SQL packages that are owned by your parsing schema.
    If you aim is simply to export the APEX application and no tables, pl/sql units, data etc, then doing a simple application export should be good enough. Thats all we ever do and then add the PL/SQL units / table data on top as additional scripts.
    Hope that helps
    Duncs
    http://djmein.blogspot.com
    As a courtesy, please remember to mark helpful or correct responses accordingly :)

  • APEX Application behaviour in a RAC setup

    Hi
    Caveat first: I'm pretty new to Oracle RAC and just looking into it as an option. We have an APEX application currently running in Oracle 11gR2 single node currently and are considering HA for this.
    My question is: What would be the expected behaviour seen by a User of an APEX application, in the event of a node failure, when running with an OHS / RAC configuration? Will they get "transparent fail-over" and see nothing or will they see an error?
    I appreciate I could post in the APEX forum, but feel that is probably more of a development forum and possibly someone here has had to look at things at this level.
    I have read what I think may be the definitive reference for this:
    http://www.oracle.com/technetwork/developer-tools/apex/learnmore/apex-rac-wp-133532.pdf
    but while it covers most of what I want I don't believe I have found an answer to my question
    This states:
    "The Transparent Application Failover (TAF) feature of Oracle Net Services is a runtime failover for high-availability environments. It enables client applications to automatically reconnect to the database if the connection fails and, optionally, resume a SELECT statement that was in progress. The reconnection happens automatically from within the Oracle Call Interface (OCI) library. For applications that do insert, update or delete transactions, the application must trap the error when the failure occurs, rollback the transaction, and then resubmit. If the application is not written to be TAF aware, the session will get disconnected."
    However (as I understand it) APEX runs in the database and would fail with the database, it isn't a typical "client application" connecting to Oracle via a TAF aware connection pool - it is essentially a large pl/sql package and TAF only covers SELECT statements not packages.
    May be I'm over-reading this and it's simpler than that: APEX/Mod_plsql might just handle it?
    - APEX User/HTTP session state is stored in database APEX: Understanding session state which is available on other nodes
    - Mod_plsql in OHS can detect the error returning and reissues the request to good server and APEX on that instance can retrieve Users/HTTP state and process the request (APEX/RAC doc states mod_plsql can see an error from database and cleanup connection up and form a new connection, but not that it will retry the request for the client into other APEX/DB node).
    I'm really just after a (transparent/non-transparent) statement based on experience, but an outline of how the components behave would be useful.
    Thanks in advance
    Dave

    Hi
    Any chance of getting that link outside of Metalink? - I'm trying to get our customer support id, but no luck at present.
    I'm aware that APEX can run with RAC (as per the link I posted) - I'm really after next level info around behaviour in that environment.
    Thanks
    Dave

  • APEX application starts very slow

    Hi all,
    I have developed a small apex application for my website. I am running this application on OracleXE. Every time I when I log in the response is extremily slow. It will take approx. 1 min before the login page appears, then it takes another 20 sec. before the homepage appears. After that you can notice that the application is getting faster and faster. If I stop working with the application and I start working again after 1 hour the same thing happens.
    I log in localy, not thru my website, but I can imagine that people that approach the application thru the website will experience the same.
    What is causing this ? Is the database going into some sort of 'sleeping mode' ?
    How can I prevent this ? The database is (ofcourse) running 24/7. Any help will be appreciated, because people will stay away when everytime the responsetime is as long as 1 min before they can login.

    This seems to be a issue specific to Oracle XE
    See Re: Workaround to keep users happy

  • APEX Application accessing data from two different databases

    Hi All,
    Currently as we all know that APEX Application resides in database and is connected to the schema of that database.
    I want APEX Application to be running and accessing data from two different databases. Elaborating my question,
    Currently, my APEX Production Application is connected with XXXX Schema of DB1 Database(Where APEX Resides). Now I want to add some pages into this APEX Application for REPORT Purpose, But I want to connect this REPORT APEX Pages to get data from Different Schema YYYY for Database DB2.
    Is it possible to configure this scenario?
    The reason for doing this is to avoid the REPORT related (adhoc queries) resource utilization effect on Production DB1 Database.
    Thanks
    Nil

    1. If you do the joining of two or more tables in DB1 then all data is pulled over to DB1 and then the join is executed: so more data over the databaselink and more work for DB1. Better keep the joining stuff where the data resides and just pull exactly that data over that you need.
    2. Don't know about your different block sizes. Seems a nice question for one of the other forums (DBA or SQL).
    3. I mean create synonyms on DB1 for reports VIEWS in DB2.
    Hope all is clear!

  • APEX application integration into Java application

    Hello,
    I'm working on a new APEX application and I would like to integrate that application into an existing Java application.
    The integration should be invisible for the end-users. Our application will have the same look and feel as the Java application.
    The existing menu of the Java app will be extended with a new link. This link will then call our application.
    Visually I was thinking about using an Iframe to display the content of the APEX application inside the Java generated xHTML.
    This is however not the biggest issue.
    We are working in a secure context and we thus need to make sure that our APEX application doesn't create a backdoor on the
    security mechanism provided by the Java app.
    Some options have come to mind, but the one that look best is this:
    We keep the java application as the single point of entry for our end-users and make sure that the apex application is "hidden".
    We could do this by means of some re-routing code in the java application so that the incomming requests there are send to the correct server (java or apex).
    Then we will need to capture the response of the APEX application and place it inside the Java generated xHTML. The combined content is then send to the client.
    Or we could place a reverse proxy server that does this for us.
    The goal is thus that we can rely on the existing java application to cover the security and the navigation structure.
    Any ideas on this ?
    How-to's or other options ?
    thanks & regards
    Karel

    In a project I am currently working on we do it using iframes and passsing parameters over a http link.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Info : Migrating Apex Application from Non-SSO to SSO environment

    Hi All,
    This post is to share my experience while working on APEX. This may be useful to some apex developer.
    If we migrate an apex application from a non-sso (i.e. http) to sso (i.e. https) environment, the flash chart doesn't work.
    I found that in the source of a Flash Chart region, we use #HOST# variable to locate the swf file. The environment variable takes the correct path but with "http" as prefix. But to access application pages "https" is used. Because of which, the swf file couldn't be located by the application.
    Work-around Solution : If I hard code the value i.e. the application path having "https" replacing #HOST# variable then the flash chart works fine. I couldn't found a way by which the #HOST# parameter value can be updated to take "https".
    The same environment host other non-sso applications as well.
    Any comments on this are welcomed.
    Regards,
    Mangal

    Hi Dirk,
    Thanks for the reply.
    As I mentioned earlier, by Non-SSO I mean "http" and by SSO I mean "https". This is because, before migration the application was accessible using "http" and now we have to use "https" alongwith SSO to access the application. I only want to highlight the Flash Chart issue with this migration.
    The problem doesn't solves with your solution as I am getting correct instance/environment name with #HOST# but prefixed with "http" and not "https". Hence the application won't be able to locate the required swf file.
    Even the workaround I mentioned is only feasible, if an application has only few Flash Charts. However, if there are large no. of Flash charts in an application, then it would be a tedious task to update all flash chart source either by an application item (as you mentioned in your post) or hard coding the path itself. Also, every new Flash Chart source needs to be updated by a developer to fix this.
    A better solution is required by which the Flash chart source is not touched and the #HOST# variable for the application is updated to take the "https" prefixed to the swf file path.
    Regards,
    Mangal
    Edited by: Mangal on Mar 5, 2009 11:31 PM

  • APEX application development with an existing data model

    Dear all,
    We - as a company - are trying to build an application in ApEx with an existing data model. The idea is that the data model that has all sorts of TAPIs and business rules defined is going to be re-used in an ApEx environment. I am actually wondering whether this is possible, wise, feasible. When I am building some simple pages on one specific table, which has approx. 35 fields, sometimes the triggers around that table fail. Before I am actually going to dive in to try and sort these problems I am wondering whether this use of a data model in an ApEx environment is wise.
    I mean, when you build an ApEx application there are usually no triggers and TAPIs available. My logic is that the ApEx application can look after validation and stuff.
    Does anybody experienced have anything smart and useful to say about this. Any feedback is appreciated.
    Kind regards,
    -victorbax
    -leiderdorp, the netherlands

    Hey vik,
    At my company we rarely use the standard APEX wizards because of multi-linguility (on data level) and error management issues.
    We always create an API in PL/SQL and call the procedures for APEX making APEX the 'view' layer in a kind of model-view-controller architecture.
    The main thing to keep in mind is maintainability, if you're working with an existing datamodel with an API that works it's probably best to just created forms and reports through APEX and then calling the appropriate pl/sql (packaged) procedure manually. We believe that this kind of architecture has the downside of being a little more work initially but it's much easier to maintain large projects through a self written API and take care of issues like error handling, logging and multi-linguility through a self written API.
    Kind Regards,
    Geert Guldentops

  • Apex application registered as an external application to Portal 10.2

    I am having trouble doing this. I have followed this document
    http://www.oracle.com/technology/products/database/application_express/howtos/htmldb_as_external_app.html
    And when I click on the link I end up with a blank page.
    Any advise?

    Has anyone used an Apex application as an external application to Oracle Portal? If so what directions did you follow to make it work?

  • SSO for Oracle Apex application

    Hi All,
    I am working on the requirement where the client want to implement the SSO for the apex application which are in different workspaces.
    But not using oracle SSO server :(
    The Microsoft active directory is used for authentication.
    Please give me some idea how to implement SSO for these apex applications.
    Thanks & Regards,
    Prutha

    Hi,
    I am trying to implement Single-Sign On for my Apex applications. Below are the requirement steps:
    This is working fine within same WORKSPACE and on single DB, but I need to implement SSO across DB with different workspaces.
    1. I have *2 Databases* DB-1 and DB-2. Both are different and running on different machines.
    2. On Both DB's Apex is configured.
    3. I have to deploy an app which uses internal Application Express account credentials for Login on DB-1
    4. From DB-1, after login, I have to provide a link to open another Apex App deployed on DB-2
    5. All Apex Apps on both DB's are using same Authentication Schemes.
    6. In both DB's I have PAGE SENTRY function for session validation.
    Can we configure Apex only once on both DB servers like RAC. Do we have any admin setting in Apex by which we can achieve th motive.
    Please help me to implement such functionality using only Apex across different DB's and different Workspaces.
    Thanks,
    Ismail
    Edited by: user9536278 on Mar 27, 2012 4:18 AM

  • Oracle dbms.set_role does not work in APEX application

    Hi, in our j2ee applications, we use secure application role. Basically, the data source use the app user schema to connect to the database. the app user only has create session privileges. the database logon trigger will copy a set of attribute to the local secure context. (ip address, session user, client id, application name). The applications explicitly invoke the stored procedure sec_mgr.set_role before any DMLs are executed.
    the sec_mgr.set_role will check the local context attribute , authorize the ip, application name, and set an appreciated role to this session based on session user.
    we want to apply the same framework to the APEX application. First, we change the paring schema to the app schema which only has create session privilege. then we put the plsql code in which sec_mgr.set_role is called in the application builder --> shared components ---> edit security attribute ---> Virtual Private Database (VPD).
    however, we got the error ORA-06565: cannot execute SET ROLE from within stored procedure
    the sec_mgr.set_role is defined as invoker's right(AUTHID CURRENT_USER)
    do i missing something in APEX to get it work?
    Thanks

    Please explain it does not work in APEX? Is the application updating tables that have a trigger? APEX does NOT override trigger actions. Is it possible the values your trigger is looking for are NOT available in your APEX application? Can you post the trigger code here for review?
    Thank you,
    Tony Miller
    Webster, TX
    What if you really were stalking a paranoid schizophrenic... Would they know?
    If this question is answered, please mark the thread as closed and assign points where earned..

Maybe you are looking for