Database used by Apex and other dev tools

Hi
As the applications here start to get more complex, I have noticed that much of the business logic in the database is getting more dependent on Apex-specific procedures and packages.
For instance, in many places we use v('APP_USER') to get the connected user, or rely on Apex authorisation schemes to control access etc. This happens - I think - because it is so easy to integrate the logic in the DB with the Apex environment and vice-versa (what would not be the case if other tool were used).
However, if we start using another tool to develop a new app that uses the same logic in the database, obviously much of the code will not work.
Anyone faced with this situation? Is it a bad practice to reference Apex-specific calls in the business logic? What have you done to circumvent this problem?
Thanks,
Luis

Hi,
APP_USER is indeed a "lightweight user", as you name it. The actual connection to the database runs on a technical user. You can change APEX authentication to use database credentials in order to have APP_USER mapped to existing database accounts, if that would help you, or use a custom authentication scheme that links to some SSO-solution, but the acting database user will always be the technical user.
I'm not sure what kind of JAVA user you mean, I assume you mean other technical users, e.g. users in a datasource of your J2EE application.
It wouldn't be too difficult to put the special case into your policy, like
IF USER = 'APEX_PUBLIC_USER' THEN
  l_login_user=v('APP_USER');
ELSE
  l_login_user=USER;
END IF;This should work easily if you use database authentication in APEX. Otherwhise, you may have to implement a more complex policy.
Hope this helps you setup your policy.
-Udo

Similar Messages

  • Can I build a database, using my Contacts and then email them?

    Can I build a database, using my Contacts and then email them?

    If you mean email them as a group you need to get a group messaging app first. If you mean email the database you need to take a screen shot and email the photo.

  • I am trying to use IMAQ acquire and other IMAQ functions with Queue functions.

    i am trying to use IMAQ acquire and other IMAQ functions with Queue functions.
    i mean i would like to acquire the image in a queue and deque it afterwards. would be the queue function accept the IMAQ data type?

    Refer posting, http://exchange.ni.com/servlet/Redirect?id=8879554

  • Can't use the Browser and other Apps on my Torch 9860

    Hi~
    I'm having problem with my BB 9860. It appears that my phone is connected to Wifi but when I tried to use the Browser and other apps, it's says "Unable to Connect on the Internet".
    Do you guys have any idea what could be the problem??
    I will appreciate any kind of help.
    Thanks in advance ^__^

    Hi jinyunstar 31516
    Welcome to the Community
    Please have a look at the Article of Help blog from Inside BlackBerry How to connect to a Wi-Fi network using a BlackBerry smartphone .
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • IPad bombs out returns to home page using Google Earth and other random Apps, why and how can I prevent it happening?

    iPad bombs out returns to home page using Google Earth and other random Apps, why and how can I prevent it happening?

    Quit/close all apps and restart the iPad.
    Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    You can try this as well.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • TS4196 screen sharing fails to start when i am using messages beta and other party is using ichat

    anyone having issues screen sharing fails to start when i am using Messages beta and other party is using iChat?

    Sorry for the short answer, but was your problem similar at all to this?

  • Connecting to a Mysql database using CF Administrator and DW

    I can't create a mysql datasource in CF Administrator.
    If I use the following datasource settings in CF
    Administrator:
    JDBC URL: jdbc:mysql://localhost:3306/test
    Drive Class: MySQL Connector J
    AND (note the emphasis) I set my local and remote folders in
    my DW site local folder, remote folder and testing server folders
    all to C:\CFusionMX\db\, I can connect to my mysql database in CF
    Administrator.
    However, with these DW site folder settings, DW doesn't
    recognize any databases (Access or Mysql) at all.
    When I change my DW site folder settings to 'wwwroot'
    (e.g.local folder C:\CFusionMX\db\' is changed to
    'C:\CFusionMX\wwwroot') DW now lists all my CF Administrator
    databases.
    The problem is CF Administrator can't connect to my Mysql
    data sources. It gives me the error:
    "Connection verification failed for data source: javaserver
    []java.sql.SQLException: SQLException occurred in JDBCPool
    while attempting to connect, please check your username, password,
    URL, and other connectivity info.
    The root cause was that: java.sql.SQLException: SQLException
    occurred in JDBCPool while attempting to connect, please check your
    username, password, URL, and other connectivity info"
    I've tried changing the 3306 port to 8500, but this doesn't
    help.
    My java path and connector file is:
    C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar,
    Is this a ID/password problem? I've tried both 'root' and
    leaving the ID field in the CF Administrator add data source block,
    both to no avail. I don't have a password set in Mysql for 'root'
    either.
    Any help would be gratefully appreciated. I've been working
    on this for weeks and keep running into one problem after another.
    Thanks a million in advance.
    Sincerely,
    Graham A. Kerby

    1) ensure mysql server is running
    2) there are numerous tutorials for mysql installation out
    there
    3) there are good free mysql admin tools out there
    4) use both the above to verify your mysql installation is
    correct
    5) please tell me you do have your zonealarm DISABLED
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Oracle Personal Edition and SQL dev. tool

    I installed Oracle 10g Personal Edition on my laptop and want to use SQL Creator (SQL developer's tool/program - http://www.snefru.com/index.jsp) with it.
    I'm trying to setup my SQL developers tool to connect to my local Oracle database and there is a connection wizard for the SQL program which prompts me:
    1.) "Select a JDBC driver..."
    2.) "Enter Host name for the server that the database is located on...."
    3.) "Enter Port number that the database is listening on...."
    4.) "Unique SID of the database instance..."
    How can I find out 1.) - 4.) for my specific, local database?
    Thanks in advance...

    When you run SQL*Plus, what is the version number displayed:
    C:\>sqlplus
    SQL*Plus: Release 9.2.0.3.0 - Production on Tue Nov 22 17:11:44 2005
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Enter user-name:?
    You woudl download the driver that matches with that release.
    if you did the database install, chances are you already have the jdbc driver installed.
    Do you have a directry ORACLE_HOME/jdbc/lib ?
    Do you have files like classes*.jar in that directory?
    if you do you already have the jdbc driver files.

  • X I and other integration tools

    can any one tell me  ...the advantages & disadvantages of XI comparing with other integration tools...

    Hi Lokesh,
    Go through the following threads, you will surely be able to find something useful:
    Advantages Of XI
    SAP XI advantages
    Advantages of SAP XI
    What are the adavantages SAP XI for legacy customers
    Scope and demand of XI
    SAP XI over Business connector
    XI vs BizTalk , WBI
    functionality differences between XI and other middleware
    Before XI?
    Connectors and Xi...
    Benefits Of XI
    https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=16263
    If you still need more, try searching on SDN with keywords XI and Advantage. You will find lots of stuff (apart from the above links )
    Bye
    Ankur

  • Lasso and other selection tools

    When I select an object and resize, or transform it, it makes the edges blurry, and not as sharp. I've been using this tool forever and it only started doing this. Can anyone help?

    It happens when I work at 100% magnification, and at all magnifications. The feather value is set at zero. I'm working with photoshop Elements 12 on the Cintiq Companion. Wacom said it must be a photoshop problem. It just started happening out of the blue -- don't know why it's not working like it used to. Any other suggestions? thanks!

  • Measuring power using NI-USRP and Spectral measurements tool kit

    Hello every one 
    I'm just inquiring how to calculate the power in a channel using NI USRP and SMT tool kit because I have failed calculating it using direct method so I purchased SMT so could any one help me by providing me with an example that describes how to calculate the power using spectral measurements tool kit , our he could tell me the steps that I could follow .
    Thanks a lot 

    Hi MHantera,
    I don't think I'm fully understanding your most recent message. The FFT Spectrum (Mag-Phase) VI in the USRP example as well as the FFT Power Spectrum and PSD VI both output a full spectrum that already includes the f0 and df so you don't need to set those. If you're using the later you should select Power Spectrum (the default for "export mode") for the In Band measurement. Using that VI are you seeing a size limitation? What settings and sample size are you trying to use? Is it returning an error about being unable to perform the FFT or are you just not seeing the results you should? Any more information you can provide about this would be helpful.
    Best Regards,
    Peter W.

  • Install "Make" and other unix tools on 10.5

    I am new to Macbook but accustomed with other unix computers.
    I want to have unix tool "make" available on Mac 10.5.
    Where can I download this and other tools? Are there pre-built binary distributions?

    xcode sounds like a helpful hint, thanks.
    Now the box with the installation media is here, while my wife and the computer are abroad for a few weeks. Can this xcode be installed by download from somewhere?
    (Of course I tried to enter "xcode" in the top right search box on this webpage, but I end up at a server error page not found page (does apple's own search function not create correct links?).)

  • Using slugs on database for categories names and others

    Hello,
    I have the following SQL Categories table:
        create table dbo.Categories (
          Id int not null primary key clustered (Id),
          Name nvarchar (40) not null
            constraint UQ_Genders_Name unique (Name)
    On an ASP.NET MVC application I need to display products by category but I would like the url to be meaningful, something like:
        http://mydomain.com/books-and-magazines
    So I suppose I need a slug field in my database. But should the slug be unique?
    On the MVC application I could also use the following url:
        http://mydomain.com/2/books-and-magazines
    Where 2 is the id of the category and now I would look by id ...
    Or should I create a slug which would be equal to "name converted to slug" + id so:
        http://example.com/books-and-magazines-2
    How is this usually done on the MVC side and on the SQL side?
    And if a name changes should I change the slug?
    Is there a way to generate the slug on the database?
    Thank You,
    Miguel

    It is possible to display 
    CatergoryID,  url
    1                   http://mydomain.com/books-and-magazines
    2                    http://mydomain.com/books-and-magazines_something
    else
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Justification for using Oracle Text vs Other Search Tools

    Hello,
    Can someone give me good cause (justification) for utilizing Oracle Text over other tools out there that are not tied directly to Oracle?
    Apparently it is possible to identify metadata within text and do keyfield and keyword searches this way with other tools, but I question the accuracy, speed, or value in terms of data relationships with this approach. I feel the relationships belong in the database along with the indexes but can't convince anyone of this.
    Has anyone experience working with Oracle Text where relationships help to drive the search and can give me good cause to this approach?
    thanks

    Tools like Autonomy have fantastic searching functions, far in excess of what we get with Text. What they aren't very good at is the database side of things. So if your prime concern is to be able to search free text documents on your file system using a baroque range of filters then Text is not the right choice. But if you want to join the outcomes of free text searches with structured data in database tables or if the text you want to search is stored in database tables then using Oracle's built-in functionality is the better approach.
    From your post I'm not sure which scenario fits your situation more closely.
    Cheers, APC

  • Using After Effects and Other Adobe CC 2014 on 4K Display.

    I am using a new 4K display and I scaled the UI in Windows 7 to 150%, and all my other programs scaled just fine. When I use my adobe programs the UI is extremely small in the 4K resolution, i was able to scale Photoshop CC 2014 up but am having issues scaling up other programs like AE, Pr, and Ai etc. I need help with this because all these programs are unusable at this size the tools, numbers, values etc are all tiny and really hard to see. If anyone is having the same issue or has found a solution please help, thank you!

    Not one that I can share publicly.
    That's not meant as a dodge. We're just at a point right now where it's hard to estimate with confidence, and I don't want to give my best guess publicly and then have it be wrong and have set the wrong expectation.

Maybe you are looking for

  • Syncing iphone and itunes

    I recently purchased a macbook pro because my old macbook crashed. I was unable to back up my itunes on my old computer before it crashed. Is there anyway of transferring my old itunes library that is on my iphone (especially music that I did not pur

  • How to resize the spark datagrid collumns based on the headertext?

    Hi friends,      I am using spark datagrid for displaying the tablur data in my application, when i setting the dataprovider property of the datagrid, it displays the content exactally what i expeceted. but the widht of the collumns are based on the

  • Error while assigning dates to associative array of date type

    Hi All, I am facing the issue while assigning dates to associative array of date type: Oracle Version: SQL> select * from v$version; BANNER Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi PL/SQL Release 10.2.0.1.0 - Production CORE  

  • NO CD ICON ON DESKTOP OR IN ITUNES WINDOW

    Hi, I wish to transfer the music from a PC burnt home music cd, a TDK CD-R80 700MB up to 52 speed disc. However, after perhaps 20 cd loadings, the icon does not appear on the desktop or in the itunes window. Quite a few times as well, the mac does no

  • Cannot add role to CAS

    We are have expanded a (2012 r2) primary site into a CAS and would now like to add the asset intelligence synchronization point and reporting services point to the CAS. When I right-click on the server name under \Administration\Overview\Site Configu