Feature of simple authorisation scheme does not

I am using an authorization scheme based on a 'function from PL/SQL returning a Boolean' and seem to be running into trouble.

I have a function (in a package) that verifies users 'role' as specified in the table users and returns true or false for whether or not they are privileged... sounds simple to me...

The only problem is, when I try this in the APEX (4), it gives the following error.

ORA-06550: line 2, column 1: PLS-00221: 'APPROVE_ME' is not a procedure or is undefined ORA-06550: line 2, column 1: PL/SQL: statement ignored

I have checked and double-checked everything is stated correctly and that's it works fine... except with APEX.

Someone at - it ideas? Or y at - it something that my lack of experience does not happen?

How did you enter the code in 1 Expression for the authorization scheme?

return .

I was able to reproduce your problem by leaving out the "return" statement

Van
Trent

Tags: Database

Similar Questions

  • ORA-19007 - schema does not match

    On my database, we have two matching schemas tables in each - one for the active data and the other for data which stands for research in the long term. Both contain a pattern registered XMLType column. However, when I try to insert directly from the assets in the archive, I get the following:

    SQL > insert into eci_archv_schema.rev_item_earn_dtl_archv
    2 Select * from eci_schema.rev_item_earn_dtl
    3 where ROWNUM = 1;
    insert into eci_archv_schema.rev_item_earn_dtl_archv
    *
    ERROR on line 1:
    ORA-19007: http://xmlns.foo.com/1.3.1/ABC.xsd Schema does not match http://xmlns.foo.com/1.3.1/ABC.xsd expected.

    The only way in which I can properly move the data from one to the other is to wrap select it from one of the following:

    1 XMLType.createXML (my_xml_column.getCLOBVal ())
    2 XMLType.createNonSchemaBasedXML (my_xml_column)

    These two taking unusually long to complete and cause my check-in process is very, very slow. Apparently because the patterns were recorded under different database diagrams, they are somehow regarded as incompatible. This is the case or not they actually fit in another way? Is there an easy way to compare?

    FYI: we are 11.2.0.3, but this also happens on 11.2.0.2. Any help would be appreciated.

    What specific information would be useful: the XSD who sign us up?

    Yes, including the one you're importing (if not too big) or a simplified version if possible?

    BTW, it's binary storage object-relational or XML?

  • ORA-20000: Schema does not exist or insufficient privileges

    Salvation of DBA

    I do the upgrade from 9.2.0.6 to 10g database
    I'm following ID. doc. 316889.1 - step 7
    I get the following error while taking backup existing statistics as follows:

    SQL > exec dbms_stats.export_schema_stats ('WMSYS', 'dictstattab', statown = > 'SYS');
    BEGIN dbms_stats.export_schema_stats ('WMSYS', 'dictstattab', statown = > 'SYS'); END;

    *
    ERROR on line 1:
    ORA-20000: WMSYS Schema does not exist or not sufficient to analyze privileges a
    object it contains
    ORA-06512: at "SYS." DBMS_STATS", line 4984
    ORA-06512: at "SYS." DBMS_STATS", line 5007
    ORA-06512: at "SYS." DBMS_STATS", line 5409
    ORA-06512: at line 1

    SQL > exec dbms_stats.export_schema_stats ('XDB', 'dictstattab', statown = > 'SYS');
    BEGIN dbms_stats.export_schema_stats ('XDB', 'dictstattab', statown = > 'SYS'); END;

    *
    ERROR on line 1:
    ORA-20000: XDB Schema does not exist or not sufficient to analyze privileges a
    object it contains
    ORA-06512: at "SYS." DBMS_STATS", line 4984
    ORA-06512: at "SYS." DBMS_STATS", line 5007
    ORA-06512: at "SYS." DBMS_STATS", line 5409
    ORA-06512: at line 1


    SQL > exec dbms_stats.export_schema_stats ('WKSYS', 'dictstattab', statown = > 'SYS');
    BEGIN dbms_stats.export_schema_stats ('WKSYS', 'dictstattab', statown = > 'SYS'); END;

    *
    ERROR on line 1:
    ORA-20000: WKSYS Schema does not exist or not sufficient to analyze privileges a
    object it contains
    ORA-06512: at "SYS." DBMS_STATS", line 4984
    ORA-06512: at "SYS." DBMS_STATS", line 5007
    ORA-06512: at "SYS." DBMS_STATS", line 5409
    ORA-06512: at line 1


    SQL > exec dbms_stats.export_schema_stats ('LBACSYS', 'dictstattab', statown = > 'SYS');
    BEGIN dbms_stats.export_schema_stats ('LBACSYS', 'dictstattab', statown = > 'SYS'); END;

    *
    ERROR on line 1:
    ORA-20000: LBACSYS Schema does not exist or not sufficient to analyze privileges
    an object it contains
    ORA-06512: at "SYS." DBMS_STATS", line 4984
    ORA-06512: at "SYS." DBMS_STATS", line 5007
    ORA-06512: at "SYS." DBMS_STATS", line 5409
    ORA-06512: at line 1


    SQL > exec dbms_stats.export_schema_stats ('DMSYS', 'dictstattab', statown = > 'SYS');
    BEGIN dbms_stats.export_schema_stats ('DMSYS', 'dictstattab', statown = > 'SYS'); END;

    *
    ERROR on line 1:
    ORA-20000: DMSYS Schema does not exist or not sufficient to analyze privileges a
    object it contains
    ORA-06512: at "SYS." DBMS_STATS", line 4984
    ORA-06512: at "SYS." DBMS_STATS", line 5007
    ORA-06512: at "SYS." DBMS_STATS", line 5409
    ORA-06512: at line 1


    SQL > exec dbms_stats.export_schema_stats ('SI_INFORMTN_SCHEMA', 'dictstattab', statown = > 'SYS');
    BEGIN dbms_stats.export_schema_stats ('SI_INFORMTN_SCHEMA', 'dictstattab', statown = > 'SYS'); END;

    *
    ERROR on line 1:
    ORA-20000: SI_INFORMTN_SCHEMA Schema does not exist or insufficient privileges
    to analyze an object it contains
    ORA-06512: at "SYS." DBMS_STATS", line 4984
    ORA-06512: at "SYS." DBMS_STATS", line 5007
    ORA-06512: at "SYS." DBMS_STATS", line 5409
    ORA-06512: at line 1

    Please guide me to solve the problem above.

    Thank you
    SG

    SG,

    You can ignore these errors.

    Note: 359483.1 - upgrade from 9.2.0.6 to 10.1.0.4.2 with Applications 11.5.10.2
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=359483.1

    Kind regards
    Hussein

  • OAM authentication scheme does not

    Hello

    I see a weird or probably known OAM authentication scheme feature. I added a diagram to a policy, it redirects to the login (authentication based on form) correctly. But, after authenticating successfully, it redirects to oberr.cgi? page, it works when I add the same form:, action: defy the parameters to an another authentication scheme, the policy works fine. It is clear that there is no problem with policies configured, because when replaced already authentication scheme with this one, it works fine. I tried to add a new window altogether after you remove the old. It does work for her as well. Don't know what the problem is. I updated, turn and even rebooted OVD/PM/ASIS, but still he does not accept the authentication scheme.

    Any who came across this type of problem before. Any help is appreciated.

    Although he long ago, I asked this question. The mistake was due to the webgate to Oberror redirect because it was not configured correctly.

    If someone finds this post useful, please try to check all the layers of webgate between.

    Hope that helps.

  • Windows Vista using Windows features turn on or off does not

    I am trying to turn on IIS in Windows Vista using the Windows features turn on or off. I check the box IIS and click OK. Then I get a message that says "Please wait while the features are configured. This may take several minutes. "There is a progress bar but it is blank and there is a Cancel button, but it is disabled. I tried to create a new user account, and it does not solve the problem. If it's any help, when I use the Task Manager to end the task, he said something along the lines of "this programming is waiting for a user input. How can I solve this problem? Is there another way to turn on IIS?

    Sorry I have not responded earlier. I never saw your post. Maintenance has been done on the forum yesterday and your message appeared as if by magic.

    There are many problems with vista that will most probably never be fixed. If they could have fixed them easily Microsoft would not be rushed on Windows 7.

    The only hope would be SP3 but it seems unlikely.

    It's a shame because that Vista could have and should have be the best OS to date, but because of all the problems, complain and impatient people and $$$ along Windows 7.

    No need to throw your laptop Vista in the drink!

    I got rid of 98% of the problems in this way.

    When I bought my last laptop I paid extra for the OS DVD and reinstalled the operating system after SP2 came out (and was very happy also to get rid of the full factory image of... Dell put on my system).

    SP1 was on my DVD of the OS, so I bought SP2 from Microsoft (it costs $4 more delivery charges) https://om2.one.microsoft.com/opa/Validation.aspx?StoreID=1a7e5dd8-0088-46ce-a7d3-8fa1ab523be0&LocaleCode=en-us and after installing the OS, I installed SP2 before the drivers, utilities and Applications, in that order, and most of the problems have disappeared.

  • APEX permission scheme does not not after importation

    Hi all

    I work with APEX 4.2. I created a simple application APEX with a diagram of permission on a development server. After export and import on the production server authorization system does not work. However, it is displayed as expected in the IDE. Someone at - it this experience?

    I figured this out. After import, I needed run the access control administration page and set the mode of application of restricted access, and add users to the list of access control.

  • Directory LDAP authentication scheme does not

    I did some research on how to use active directory for authentication and it seems pretty obvious, but it does not for me in the APEX, while trying to authenticate the Works database.

    I created a new authentication system

    System type: LDAP Directory Service

    Host: < < Directory Server Active > >

    Port: 389

    DN: < < FIELD > > \%LDAP_USER%

    Use the distinguished name exactly: Yes

    I made sure that the new authentication scheme is underway.

    What application is running and I'm trying to connect, debug displays:

    ... Authentication failed: Invalid Login Credentials < div id = "apex_login_throttle_div" > please wait < span id = "apex_login_throttle_sec" > seconds 30 </span > to log in again. < / div

    But, I ran a test database using this code below that I found on the web and it runs without exception, so I don't know my settings, domain, host, port, user and password are correct.  Y at - it a step that I forget?

    DECLARE

    l_retval PLS_INTEGER;

    l_retval2 PLS_INTEGER;

    l_session dbms_ldap.session;

    l_ldap_host VARCHAR2 (256);

    l_ldap_port VARCHAR2 (256);

    l_ldap_user VARCHAR2 (256);

    l_ldap_passwd VARCHAR2 (256);

    l_ldap_base VARCHAR2 (256);

    BEGIN

    l_retval: = - 1;

    dbms_ldap.use_exception: = TRUE;

    l_ldap_host: = '< < ad server > > ';

    l_ldap_port: = '389';

    l_ldap_user: = ' < < MY AREA > >-< < my user > > ';

    l_ldap_passwd: = '< < password > > ';

    l_session: = dbms_ldap.init (l_ldap_host, l_ldap_port);

    l_retval: = dbms_ldap.simple_bind_s(l_session,l_ldap_user,l_ldap_passwd);

    dbms_output.put_line (' return value: ' | l_retval);

    l_retval2: = dbms_ldap.unbind_s (l_session);

    EXCEPTION

    WHILE OTHERS THEN

    dbms_output.put_line (rpad ('ldap session', 25, ' ') |) ': ' ||

    RAWTOHEX (substr (l_session, 1, 8)).

    '(retourné depuis init)");

    dbms_output.put_line (' error: ' |) SQLERRM | ' ' || SQLCODE);

    dbms_output.put_line (' user: ' | l_ldap_user);

    dbms_output.put_line (' host: ' | l_ldap_host);

    dbms_output.put_line ('port: ' | l_ldap_port);

    l_retval: = dbms_ldap.unbind_s (l_session);

    END;

    Hello

    If it works in the database, perhaps it is a typing error in your frame at the APEX?

    Create PL/SQL processes "on the charge before the header' on connection and as a PL/SQL block page for this entry process:

    begin
      APEX_DEBUG.ENABLE(apex_debug.c_log_level_engine_trace);
    end;
    

    Then run application, try to login and check the debug information. Maybe you'll find some clues to solve your problem.

  • great mystery - simple animation now does not have safari and chrome

    An animation simple edge - basically a slideshow with a button / stop - which has certainly worked with Chrome a few weeks ago now does not work - neither with Safari.

    http://peachesincrime.com/SWF/HardlyStrictlyBluegrass2012/HardlyStrictlyBluegrass2012.html

    First thought is that both of these browsers have changed their behavior script and "users of edge so sorry."

    But having found that there is no fundamental difference between it and all other animations on http://peachesincrime.com/underthehood.html I reduced the size of the stage of 1388 x 933 to 800 x 600 and it now seems to work. I have not yet seen what the upper limit is

    Customer wishes to maintain the resolution or even increase in the future to display pictures in all their glory on the retina screen resolutions.

    Is this a problem with the edge and is there a way around this?

    Thank you

    I have updated the animation with pictures that match the size of the scene with precision. An initial test suggests that it works now with chrome, but so far on a single machine under test, safari seems to run the animation but to 1/20 the speed of the other browsers.

    for anyone interested in trying to figure out what is causing this, I moved the defective original mentioned above in another folder http://peachesincrime.com/swf/HardlyStrictlyBluegrass2012-2/HardlyStrictlyBluegrass2012.ht ml files

  • In Flex application feature sometimes works and sometimes does not...

    Hello

    Please help me on this...

    In my flex application features works sometimes and doesn't work sometimes does not...

    In my project, I have 5 sections with 5 separate screens... Each screen is a module of different.

    After logining in the application:

    I'll go to a screen... First time each feature works in this form...

    Ex: I have a screen with datagrid. This user select name from a datagrid job click on the next button...

    According to the name of the selected user work, I display information on the next screen and customer names.customer whose name is a drop-down list box.

    Here is the code:

    public void populateAllOEMCustomers(event:ResultEvent):void
    {

    1) var object_CustomerList:CustomerList = event.result as CustomerList; the values of the object //Assigining the object reference variable result.

    (2) var allOEMCustomersCollection:ArrayCollection = new ArrayCollection(); Variable declaration ArrayColliction referance.

    (3) var i: int = 0;
    (4) var customerComboLabel:Label = new Sun;

    (5) for (i = 0; i < object_CustomerList.arryCollCustName.length; i ++)
    {
    var strCustName:String = object_CustomerList.arryCollCustName.getItemAt (i) m:System.NET.SocketAddress.ToString ();
    var strCustId:String = object_CustomerList.arryCollCustId.getItemAt (i) m:System.NET.SocketAddress.ToString ();

    customerComboLabel = new Sun; Dynamic Declaration of the label.

    customerComboLabel.name = strCustName; Assinging the customer name in the label name box.
    customerComboLabel.text = strCustId; Assingning the customer id in the text box on the Label.

    allOEMCustomersCollection.addItem (customerComboLabel); Addition of Lable in the referace ArrayCollection variable collection.
    }
    customerComboID.selectedItem = ' - ';.
    OEMCustomersComboID.dataProvider = allOEMCustomersCollection;
    OEMCustomersComboID.selectedItem = - 1;

    }

    This feature works very well when I visit the first time on the screen... If you go back to another screen and return to the same screen and click the button following this names combo box customer time has no customer Details... I get Nullpointer Exception and it shows the number of the line 5 (I gave the above code number..)

    If I change the first line of the code to the following: each time the feature above works fine. Not getting no not an error msg...

    var object_CustomerList:Object = event.result;

    If I type cast in specific class (CustomerList), the feature does not work... do null pointer exception... If I type cast to object everything works fine... In my code each time I'm typecasted for the features of the specific class is not working (gettingNullpointerExcepion).

    Please help me on this... I don't get what could be the reason...

    I am using::Flex 3, Flash player 10.1

    Thanks in advance...

    Kind regards

    Satya

    Hi Satya,

    This sometimes as in your case may not work the way you have specified the RemoteClass attribute in your AS class. Because sometimes there may be a case because before it is mapped to a server-side, you are returned to the data and so that you can not get your custom class data but as normal object type.

    So to avoid this, you can map the class server-side for as classes in the Manager PreInitialize itself as shown below:

    Specify the preinitializeHandler in your main application and write the function below. That way, too, you can map as classes on the side server. So you will have no problem referring to your application AS class types.

    You can use the same line for recording of all classes. Using this, you can remove all of the [RemoteClass] attributes on all CLASSES and attach it to the unique place.

    preinitialize = "onPreinitialize ()" "

    private function onPreinitialize (): void
    {
    registerClassAlias ("com.expeditor.ScriptAdmin.Objects.CustomerList", list of clients);
    }

    In the line above the quoted string code refer to the namespace of the class on the server side and the second is your AS class. Also, remember to import the namespace from the correspondent as a class in the file.

    Try this and let me know...

    Thank you

    Jean Claude

  • video clip of simple melted text does not work - I'm crazy?

    Help!  I'm going crazy?

    I have a melted clip simple text that will 'play' but does not work when I "test movie".  What Miss me?  I do not regularly use Flash at the moment and managed at the front, but this is ridiculous - and I know I'm probably missing something very simple.

    Thanks for any help you can provide!

    If it uses a dynamic textfield you must incorporate the police into the TextField.

  • simple if/else does not work

    Hi - I'm trying to 'validate' that the user puts a smaller number in the to field of text than in the text field B. It works with single-digit numbers, but if I put ' 12A ' and '4' b, the error occurs it Joanie. I thought it was a really simple if/else set up, but it does not work.

    Can someone tell me please in the sense of a solution.

    TIA
    JL

    Use the number function to compare numbers. your string comparison.

  • Custom mouse pointer scheme does not load at startup

    I am running windows vista Home premium and I downloaded a mouse on the internet system. I saved the regime as "smooth" and clicked on apply and it worked. But when I restarted my computer, the system of mouse returns to the plan original windows vista aero. I've tried to stop all non-microsoft msconfig services and disabled all services start and enabled in the well, but yet the scheme has not been loaded.

    balingsta,
    Thank you for visiting the Microsoft Answers community forum.

    If your mouse is a Logitech brand, it deals with the issue.    If this is not the case, let us know what you have the mouse and we will try to help you solve this problem.

    This should solve your problem:

    1. click on start, type "msconfig" in the search box and press ENTER.
    If you are prompted for an administrator password or a confirmation, type your password or click on continue
    2. in the System Configuration dialog box, click the Startup tab
    3. Locate the entries called KHALMNPR or similar and uncheck the box next to each of them.
    4. click OK and restart your computer.
    5. after the restart, change your mouse pointer, the way you want and restart again.  Your mouse settings remain the same.

    Let us know if this information was useful or if you need assistance.
    Thank you

    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows Update, error 80073712 / IE10 or 11 will not install / empty window to "Turn Windows features on or off ' / defender does not / SFC does not

    Windows 7 SP1

    I got these during some time and tried all the things suggested in many answers CIHI / other forums. Some updates won't be finished and keep re-setup

    I tried for example

    -Run the system scan tool

    -installation pre req IE10 and IE11 - tried but not applicable to my computer PC

    -all-in-one-repair tool (that managed to get the job of Ombudsman)

    -SFC - but it does not work in normal mode or safe.

    OTHERWISE the PC works OK

    Tried to run all the viruses / malware checkers available - no thugs file detected

    A response suggests I check the CBS and that seemed to be important

    ERROR_SXS_COMPONENT_STORE_CORRUPT

    Can I fix this?  Is this the road to my problems?

    Mel

    Solved by restoring backup of WHServer in June - where the problem appeared from WUpdate Journal! Now I have 2 OSs on 2 SSD - 1 good OS; 1 with up-to-date data.

    Mel

  • Problem with complex schema does not

    Hello

    I created the fairly complicated pattern: http://i.imgur.com/Wt2Bo7w.png

    And when I'm playing with him (some pathfinder to the cutting edge etc.) Illustrator is "not responding" problem and after a few minutes it comes back to life (with process finished). It's weird because my machine is pretty good and Illustrator, while that "does not" use only 30% of my CPU and about 6 GB of ram (I've got 16 GB). Is there a way to make it faster? What would you recommend?

    Try using fill patterns.

    Or try to use overlays raster graphics

  • Not available user: schema does not exist in the database?

    Hi team,

    I am trying to add to the existing table. Plaintiff mentioned schrma_name and table_name.

    I used under request... to find the schema exists or not.

    Select the username, ACCOUNT_STATUS from dba_users where username = "ABCD_USA_NUM";

    no selected line.

    Please suggest one., average user schema did not exist right did not exist? It is 4 knots of RAC database.

    Thnaks
    Please suggest any one., User not existed means schema not existed right?. This is 4 nodes RAC Database.
    

    In your case, Yes.

    Rgds,

    Ahmer

    N.B.: To win a good reputation on the forums, and if you want that your question will be answered in due time. Kindly adopt a used to score your closed questions as soon as you give the answer. and be courteous to people who tries to help.

Maybe you are looking for