APEX and considerations of CAE

Hey you all APEX gurus.

I have a few questions about the implementation of MEV for developers and users of the APEX.

For end-users APEX, it seems simple enough to apply policies MEV using the "PL/SQL initialization" in the properties of the Application of the APEX. Help for this explicit definition mentions VPD, so no problem (theoretically).

But what do you do to restrict access to the data for APEX developers in SQL Studio using a policy of the CAE?

What database user session using APEX developer to connect to the database - is the APEX_PUBLIC_USER or the schema assigned to the workspace?

Tracking the question just for my understanding is: what user database session (s) of the user of the APEX app connects to the database - is the APEX_PUBLIC_USER or the scheme of the analysis of the application?

Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

APEX application Express 5.0.1.00.06

See you soon,.

Michael

Michael Everding wrote:

If we have a bunch of tables with say ORG_ID column and we want to limit developers to the lines of their own ORG_ID. is it a post login process that can be executed after someone connects to a workspace APEX (as a developer) to apply a VPD policy according to their user name? It seems that, as you say, you can determine access based on the user database, because everyone connects as APEX_PUBLIC_USER or ANONYMOUS. I hope that makes sense.

It doesn't seem to be any workspace - or equivalent SQL Workshop at the level of the property of initialization Code of PL/SQL application. Re: Apex and the CAE is an old post of team Oracle APEX, but AFAIK nothing has changed since then.

However, because SQL Workshop is in itself an APEX application, APP_USER is set to the username of the developer, as you want the username of the application when running your applications. See the results of executing the following query in SQL commands:

select user, v('app_user'), sys_context('userenv', 'current_schema') from dual
USER V('APP_USER') SYS_CONTEXT('USERENV','CURRENT_SCHEMA')
APEX_PUBLIC_USER FAC586 NANDBTAG

It does not set a value of context, but it provides a user identifier that could be used in a VPD policy.

Tags: Database

Similar Questions

  • How to download a file .xlsx in APEX and how to store in a Table?

    Hi team,

    I have an item "Browse file" to transfer a file in any Application in the APEX. Ce_que I want to know, it's only 1) where I can find the downloaded document, 2) how can I move the entire folder in any table, 3) how can I saw the downloaded file by clicking on the button Preview in my application. Please help me do the above things.

    Thanks in advance,

    Chennakesavan.

    If you just want to keep it as a large object (BLOB) so it depends on your version of the APEX and that setting associate you with the widget to browse to files.

    If will probably start in apex_application_files, but you can move it elsewhere, or load it directly into your own BLOB column for a record.

    There are a BUNCH of info on this line, for example:

    OraExplorer file browser' 4 APEX with specified in the source item attribute BLOB column

    Preview a spreadsheet can be more difficult, unless you want to see as data.

    The excel2collection plugin is great to do, resulting in an apex_collection .xls spreadsheets.

    demo based here

    https://Apex.Oracle.com/pls/Apex/f?p=52007:6:no:

    Otherwise, you can simply open the document of the BLOB in a new tab and depending on the browser, it can view online or download.

  • Apex and accept Ref Cursor?

    Apex and accept Ref Cursor?

    Apex and accept objects?

    can someone help me please.

    Hi Nani4850,

    Nani4850 wrote:

    Apex and accept Ref Cursor?

    Apex and accept objects?

    The language of business for APEX is PL/SQL, so yes you can use REF CURSOR and pass objects to you packaged functions/procedures.

    How does this relate to Oracle APEX?

    Please explain what you plan to use a REF CURSOR in the APEX.

    Kind regards

    Kiran

  • ICX/Session Cookie - integration of APEX and Oracle EBS

    Hello

    I'm moving a FND username or id of session ICX APEX of Oracle e-Business to load the information of the employee. The Oracle while paper and the document of the stem of the West, he says that we can use the following functions.

    wfa_sec. GetSession (< username outparameter >);

    icx_sec.GetSessionCookie;

    Both of these functions return-1 or going into exception. I have confirmed with our DBAs that the APEX and e-business are installed on the same domain. APEX has access to the schema of APPS but its connected to one of our schema custom.

    No idea why it does not work?

    In addition, how can I pass the username to fnd the URL using methods (JSP Interoperable with OA) GWY.jsp? targetAppType = APEX & p101:1 or LaunchApex.jsp (depending on jsp SSWA)? Examples? And how can we apply a checksum to the URL, because it originates in Oracle e-Business.

    Your help is very appreciated.

    Hoang.

    We finally got this working. The problem was with load balancing. He was using a https protocol while ApEx has been using http. We changed the balance of the load to a http protocol, the functions return the correct values.

    Hoang.

  • No content is loaded when you try to use Apex and ADR

    Hello

    I try to use Apex 4.2 on a database of 11g XE on a Windows 7 machine and I am running on a question.

    I did the installation and the tasks according to the instructions and had no problem with this.

    I want to use ADR as a standalone option, so I just did the following:

    java -jar ords.war
    

    And went through the configuration options and seized what was needed. I put static resources such as D:\apex\images\ (where is my install apex) and set the port as 8080 I then ran in stand-alone mode, once again just by placing the same order as above and stated that:

    INFO: http://localhost: 8080/ADR / began to.

    Now when I try to connect to this I get a blank page so I thought to go and look at the html source code as I thought it would be that it does not find the static resources, but seen in firebug html code is:

    <html>
    <head>
    <link title="Wrap Long Lines" href="resource://gre-resources/plaintext.css" type="text/css" rel="alternate stylesheet">
    </head>
    <body>
    <pre></pre>
    </body>
    </html>     
    

    I made a mistake in the configuration as its unable to serve the content of the page in the database or I did something else wrong? Windows authorization would have something to do with it or will I be stupid?

    See you soon,.

    Paul.

    Hello

    I realized that it was. It relates to the problems here: Apex 4.2.2 via Apex earpiece 2 - white screen returns

    I don't know why I never saw this in the search. When I called full URL like: http://localhost: 8080/ADR/f? p = 4550:1:0: the apex login screen comes to us as expected.

    Kind regards

    Paul.

  • Hi I am new to Oracle APEX and my desires to organize me working on it... can someone help me to begin with?

    Hi I am new to Oracle APEX and my desires to organize me working on it... can someone help me to begin with?

    Hello

    Start reading the documentation

    Oracle Application Express - Documentation

    Check the packaged applications that comes with the APEX.

    You can find a lot of info and examples of Oracle Learning Library

    http://Apex.Oracle.com/pls/Apex/f?p=44785:2:0:FORCE_QUERY:2, IRB, CIR:P2_GROUP_ID, P2_PRODUCT_ID:1000 %2 C 2039

    APEX to read related blogs

    WORLD: APEX Blogroll

    You can find many things from this forum, just use search.

    Kind regards

    Jari

  • Add the value of point two apex and display the result in another part of the apex

    Hello

    I need to make the addition of the two item values using apex.item.text and find the result in another apex.item.text.

    For example:
    SELECT
    apex_item. Text(1,null) ONE
    apex_item. Text(2,null) TWO
    apex_item. Text(3,null) RESULT
    FROM EMP
    please suggest me

    Thank you
    Sudhir

    >
    No it does not add the two values in the column, user key to enter the value, it must add the value of the item and displays the result in a dynamic way. Need a suggestion for using javascript
    >
    This requirement was not not clear in the op.

    See the demo of Denes Kubicek.

    This topic is discussed far too often. Have you tried to Oracle Application Express (APEX) and adapting one of the many examples of LoV cascading to your situation?

    See you soon,.

    PS: Tip:
    Look for the p_item_id and p_attributes of the APEX_ITEM API parameters.
    You can call JS functions for example using p_attribute

    APEX_ITEM.TEXT(...
    p_attributes => 'onchange="doTotal(this);"', /* doTotal being your JS Function */
    ...
    

    Published by: Dominic August 16, 2012 11:52

  • How to log on automatically to the apex and run a specific page / application

    Hi all.

    I would like to know if there is a way to connect automatically to the apex and run a specific page / application. I mean, invoke browser and necessary information for you connect (non-public user) and run a specific application (secure ina in if possible).

    Thanks in advance...!

    Hello

    Well, as a very crude test, you can set your authentication scheme being request Express authentication define specific users to Apex. Then, create one before the login process of header on the page of connection (101) to automatically open a session that contains:

    apex_authentication.login(
        p_username => :P101_USERNAME,
        p_password => :P101_PASSWORD );
    :P101_PASSWORD := NULL;
    

    conditional on P101_PASSWORD is not null.

    Then you can login using your username and password in the URL, for example

    f? p = YOURAPP:LOGIN:P101_USERNAME, P101_PASSWORD:username, password

    Rod West

  • Apex and Audit Vault - anonymous user instead of use the Apex

    Hello
    We have Apex 3.2 & Audit Vault 10.2.3.
    Audit Vault stores the name of the database user when a table is updated through SQL * Plus etc as expected.
    Problem is by Apex and insert into the db table using simple form on the table of the ANONYMOUS user is registered.
    We have real end-user connected upon Express request.

    Is anyway to configure the Audit Vault or Apex to use/pass v('APP_USER')? Must something be done by their Summit to set up a session?

    Running below shows 2 ANONYMOUS users and no end-user APEX_PUBLIC_USER or Apex.
    Select the user name, count (*)
    session $ v
    Group user name;

    All tips & guidance would be great - thanks in advance

    Hello:

    Since Vault Audit relies on the native database auditing it can only collect information that is recorded by the 'source' database in its audit trail. APEX fills the field of connection with the APP_USER CLIENT_INFO. However, CLIENT_INFO is not recorded in the audit log. Instead, the CLIENT_IDENTIFIER is captured. APEX records a composite value in this area. The value is in the format "APP_USER:SESSION_ID". This value must be recorded in the audit log and therefore sent to Audit Vault. Audit Vault reports should be able to display this field, and you can filter on it to get the information you need.

  • Oracle apex and extjs grid table

    Hello

    IM new to extjs and I was wondering if anyone can help me with this.
    I want to create a report in oracle apex and place the output in the extjs grid table
    for example, I want to display the output of select * from object in table grid

    thnx in advance
  • Remote debugging with Apex and SQL Developer

    Hello

    I try to turn on remote debugging with Apex and SQL Developer.

    I can debug the PL/SQL procedure when it is called from SQL * PLUS, but when I call the procedure from Apex 'Process', the debugger does not stop at breakpoints.

    I checked that the procedure is called Apex process as I can see 'things' happening in the procedure but the debugger does not stop at breakpoints. The program being debugged (session Apex) manages to fix the SQL Developer debug listener.

    Apex (OnSubmit) process
    ---------------------------

    BEGIN

    DBMS_DEBUG_JDWP. CONNECT_TCP ('10.176.20.225', 4000);
    DONOTHING;
    DBMS_DEBUG_JDWP. DISCONNECT;
    END;


    Procedure
    -------------------------------------
    CREATE OR REPLACE
    PROCEDURE DONOTHING ACE
    testvar VARCHAR2 (100);
    BEGIN
    update cross-set test_data = 'I came here 11111'; -It is run
    commit;
    testvar: = "aaa"; -bREAK POINT IS HERE
    DONOTHING END;
    /

    Thanks in advance,
    Paresh

    Published by: pyadav1 on November 19, 2008 15:19

    Hello

    Sorry... seems I was too hasty in reading your question...

    You also gave * DEBUG ON [Parsingschema]. [procediurename] * APEX_PUBLIC_USER (or ANONYMOUS or HTMLDB_PUBLIC_USER). Otherwise, the behavior is exactly the same as you have described...

    The privilege of the DEBUGGING SESSION to CONNECT need to given to the schema analysis but the APEX_PUBLIC_USER schema needs debug privilege on the function or procedure...

    Does that help?

    Carsten-

  • Apex and E/R Diagrammer

    I have two questions:

    1. is there any ROUND-TRIP within Apex diagrammer?

    2. I am familiar with JDeveloper E/R Diagrammer.
    I've heard also Oracle SQL Developer.

    My second question is:
    Is - this SQL Developer
    no advantage over JDeveloper
    for my work with Apex?

    Thank you very much.

    Hi user835541,

    (1) it is forbidden, even if it is possible to see the direct relationships between the tables in the SQL workshop > Table > model

    (2) Developer SQL does not currently modeling capabilities, but I know that there is currently work in progress in this area, see the SQL Dev SOD here:
    http://www.Oracle.com/technology/products/database/sql_developer/files/sqldeveloperstatementofdirection.htm

    In what concerns the benefits of SQL Dev on JDeveloper, then there are other significant advantages to the use of SQL Dev with APEX, because both are integrated. From in SQL Developer (assuming that your use SQL Dev 1.2.1 up / APEX 3.0.1 upwards) you can import / export / deploy applications, remote debugging code called by APEX, browse relationships preset on the dictionary of APEX and many more. I find it particularly useful to move applications integration and by referencing the APEX during the development dictionary. You can learn more about the integration here:
    http://www.Oracle.com/technology/products/database/application_express/HTML/sql_dev_integration.html

    It will be useful,
    Anthony

    ------------------------------------------------------
    http://anthonyrayner.blogspot.com

  • APEX and UTF-8 FAQ autour?

    As 'The Application Builder User Guide' is fairly quiet when it comes to support UTF-8, is - can anyone recommend an APEX FAQ about UTF-8 support in APEX?

    Best regards, Tom

    Hi Tom,

    The answer is 'no '. It's not an easy (or even feasible) way to do this without converting your AL32UTF8 database character set.

    Details:

    As you've already identified, there are utf-8 characters which cannot be stored in a database of character value WE8MSWIN1252. Then only a type NVARCHAR2 data type could be considered for store a utf-8 in a database of the WE8MSWIN1252 character, you have no practical way to move these bytes from the browser to the Web server to the database for the NVARCHAR2 data type, at least certainly not in an application for the APEX.

    The character set of the 'customer' to the database (in this case, SST/mod_plsql or APEX Listener) must be AL32UTF8. All pages served by APEX page encoding must be utf-8. For various reasons, but we will just consider this as a requirement for the time being.

    You have now an AL32UTF8 client talk to a WEMSWIN1252 database. The conversion of characters will be between these two components. So at the point where your character utf-8 is in the database, the character is already changed. In addition, the entry points into the engine of the APEX are all mainly VARCHAR2. PL/SQL variables, by definition, are in the character set of the database. So even if you imagined a way to avoid the character conversion between the client and the database, at the time where it 'touches' the engine of the APEX, it would be a local variable of VARCHAR2, NVARCHAR2 no and again, being converted and ultimately corrupted.

    I know you're probably dealing with a legacy database, and/or a system of third parties who may require the WE8MSWIN1252, or many other systems that may not be able to bear an AL32UTF8 conversion, but it is really not a great way to support utf-8 data via an APEX application, if the underlying database character set can support only the data.

    Many years ago an AL32UTF8 database performance was considerably worse than a US7ASCII or WE8MSWIN1252 WE8ISO8859P1 database. But these problems have long been rectified. And, as one of my colleagues has said before, "the language of the Internet is utf-8. Basically, if you create a new Oracle database today, there no compelling reason to not create this character set AL32UTF8.

    Sorry I don't have better news for you.

    MIT thank wurde.
    Joel

  • How to add data to the table changed in sql developer at Apex and vice versa

    Hello

    I had tables of database with sql developer. But now, I have modified the database (new tables added + changed the data in the tables). However, in the Apex, I the old database. Is it possible to get the new Apex database with the data of the table changed so this database in both places (sql and apex developer) is exactly the same... Also the other way around.

    Thank you

    The database schema that contains the tables, is it associated with the workspace even you are searching through the APEX product t development?  Why I'm asking is, if they are the same schema, the tables that you MODIFIED should be appear in the sql for APEX workshop part.  Now reports and forms will NOT see the changes (unless you have actually added or updated definitions for column).

    Can you explain what exactly you were doing the SQL Developer to the tables in your schema?

    Thank you

    Tony Miller
    Los Alamos, NM

  • Script export application APEX and saving on DB

    I use 5 APEX. I currently have a script that runs to back up my data to DB (schema "PS"). I want to add in the export of my APEX application for this script and stored in the DB as well. My Application ID will always be "100" and the work/schema namespace name is the same "PS". What is the best way to do it?

    Exactly how do you expect the java export routine to support export to the database?  It' are expresses the goal is to export the application EXTERNAL to the database, you can use the file in a version control environment or a way to install using another API command line...

    What is the problem with writing a small procedure or an anonymous block to insert in a table?  You cannot add code to your existing, or is the script script existing non-Oracle script?

    Thank you

    Tony Miller
    Los Alamos, NM

Maybe you are looking for

  • Twitter and Tumblr does not properly render text.

    Image here: http://i.imgur.com/FtK6K.jpg Tried the usual troubleshooting. When you change the page to 'Style No.' style - the text appears. Manually disable all addons and plugins does not solve the problem, but when using Firefox in safe mode, the t

  • Where can I download the network drivers / wireless for my Satellite Pro L300?

    Hello. I reformatted my laptop from Windows Vista to Windows XP Professional SP3 and it never came with the network drivers / wireless to connect to the Internet. I tried to go on the Web from Toshiba site, which is the manufacturer of the laptop, bu

  • Bluetooth driver for hp pavilion g6-2237us

    Hi guys,. I recently bought the lappy. the bad news is that it doesn't have bluetooth capability. is it possible to install a driver bluetooth in there or when your laptop doesn't have Bluetooth, then it is not possible to install a? If possible, how

  • Photosmart C4380 - not found wireless network

    My photosmart C4383 than worked fine with wifi since 2007, but yesterday he lost his IP address. I ran hp-setup, with connected USB and the network connection has been restored, but he disappeared after the first attempt to print. After that, each ru

  • Windows Live Mail 2012 link problem

    I am running Windows 7, IE 11 and Windows Live Mail.  Recently I can't open links contained in emails that I receive.  I checked all the settings mentioned in any discussion of research I can find, but nothing helped.   Default values are all applied