unexpected problem with the permission of type plsql function scheme

Hello
I created a schema authorization function plsql type returning a Boolean. Authorization scheme is for pages only. p2_user_priviledge is a textbox control on the home page that retrieves privilege (list of the pagenos) to the user of the database connection. Homepage has no required permissions. SCHEMA AUTHORIZATION always returns false. I am not able to trace problem in my code. same code works fine for failure to the 'c' of return area.

-CODE OF AUTHORIZATION SCHEME-
declare
PageID varchar2 (10);
VARCHAR2 (300) of privilege;
c number (3);
Start
PageID: = ": P" | to_char(:app_page_id) |': '; -NUMPAGE stored in format *: P2: *
privilege: = trim(:p2_user_priviledge); ++-List contain privileges like: P2:P13:P67:P23: etc +++ select instr (privilege, pageid) in c to double;
If c > 0 then
Returns true;
on the other
Returns false;
end if;
end;

------------------------------------------------------------------------------------------------------------------------------------------

Another problem is again related to the authorization scheme.
I created an application and schema of an authorization (auth_aug), which worked fine. Then, after a few days, I added more than 10 pages for the same application, but now autho_aug always returned false for new pages. Then I copied the code from the "autho_aug" to the new "autho_sept" regime, and it worked for new pages. I do not understand if code is the same for both system, why had to use two different schemas.
Now, I've added a few pages more enforcement and problem mentioned earlier.

any solution to the two problems...

Hello

You can create a component of demand through the shared components in your application, elements of Application option. All you do here is to create a new item and give it a name.

Once this is done, the element can be used as if it were a page element. You can use an Application (also available through shared components) calculation to set the value of this element in the list of page numbers and the value can then be retrieved in a SQL statement or PL/SQL.

You cannot use the popup window Session to change elements from page or application - you will need to create a calculation or process to do.

Andy

Tags: Database

Similar Questions

  • Problem with the CLOB data type.

    Greetings,

    I am facing a problem with the CLOB data type. I know that the CLOB data type is 4 GB (I use Oracle 9i). But in the Pl Sql procedure, I can only store 34305 size for a CLOB variable character data.

    This is the test script that I am trying to run.

    DECLARE
    -Local variables here*.
    I have INTEGER;
    C_1 CLOB.
    BEGIN
    FOR Rec IN (SELECT
    *
    ACCORDING TO THE TABLE)
    LOOP
    C_1: = c_1 | Rec.Clo_1;
    END LOOP;
    EXCEPTION
    WHILE OTHERS THEN
    Dbms_Output.put_line (SQLERRM);
    END;


    Here variable C_1 range value 34305 good character regardless of type CLOB. Now the above script fails if query my buckle - huge number of return values. It is throwing the exception "error during transfer of files ORA-06502: PL/SQL: digital error or value."

    He would be grateful if someone can help me on this.

    Thank you.

    You are probably better off using DBMS_LOB.append, instead of the concatenation of varchar2 (|).

    And... take off your when-other Manager exceptions, please...

  • Problems with the declarations of Type in Oracle 9i

    Create OR replace Type Ty is object
    (
    attr1 varchar2 (30),
    attr2 Varchar2 (30),
    attr3 Varchar2 (30),
    Manufacturer Ty function return AS a result,
    Ty (p_attr1 IN Varchar2) constructor function
    Return self as RESULT,
    Constructor Function ty (p_attr1 IN Varchar2,
    p_attr2 IN Varchar2)
    Return to SELF, RESULT,
    Constructor Function Ty (P_attr1 IN Varchar2,
    P_attr2 IN Varchar2,
    P_attr3 IN Varchar2)
    Return self as RESULT
    );
    /
    Create OR replace Type body Ty like
    Ty function constructor return self as result that
    Start
    RETURN;
    End;
    Constructor function Ty(p_attr1 IN Varchar2) return
    SELF as RESULT that
    Begin
    COTTAGES. Attr1: = p_attr1;
    RETURN;
    End;
    Constructor Function Ty (p_attr1 IN Varchar2,
    P_attr2 IN Varchar2)
    Return self as RESULT that
    Begin
    COTTAGES. Attr1: = p_attr1;
    COTTAGES. Attr2: = P_attr2;
    RETURN;
    End;
    Constructor Function Ty (P_attr1 IN Varchar2,
    P_attr2 IN Varchar2,
    P_attr3 IN Varchar2)
    Return self as RESULT that
    Start
    COTTAGES. Attr1: = P_attr1;
    COTTAGES. Attr2: = P_attr2;
    COTTAGES. Attr3: = P_attr3;
    RETURN;
    End;
    End;
    /
    Declare
    T1 Ty: = Ty();
    Ty T2: = Ty ('A');
    T3 Ty: = Ty('B','C');
    T4 Ty: = Ty('D','E','F');
    Begin
    dbms_output.put_line (t1. Attr1);
    dbms_output.put_line (t2.attr1);
    dbms_output.put_line (t3. Attr1);
    dbms_output.put_line (t4. Attr1);
    End;
    T4 Ty: = Ty('D','E','F');
    *
    ERROR on line 5:
    ORA-06550: line 5, column 12:
    PLS-00307: too many statements of "TY" corresponds to this call
    ORA-06550: line 5, column 6:
    PL/SQL: Ignored Element
    ORA-06550: line 10, column 25:
    PLS-00320: the declaration of the type of the expression is incomplete or
    Malformed
    ORA-06550: line 10, column 3:
    PL/SQL: Statement ignored

    Please help me what is the problem with me? I use Oracle 9i release 2.

    You don't need to declare a constructor for "all" attributes - you get one automatically. Remove the declaration of the complete constructor function on all 3 attributes, and you will find your block works fine dbms_outputs.

  • problem with the tab control type def

    Hello community,

    There is still much more to learn more about LabVIEW.

    I have a tab control which is a (non-strict) type definition. It has 5 tabs with indicators.

    When I open type def and insert another tab, say three position and close type def, the tab on my fp control will of course win the additional tab.

    But the new number three tab will contain this as the former number tab three content and only the last tab will be empty.

    This isn't what I wanted. I think that I am doing it wrong.

    Is it possible to get an empty tab posted on three without defeat the purpose of a def type (because obviously I could decouple the def of type control, insert the tab and do a new type def).

    Best regards

    Florian

    Florian,

    I hope that you will display the tab as a user interface control in one place. In this case, you can have a typedef enum to subVIs and disconnect the the typedef tab control.

    Thank you

    George S

  • problem with the blob data type

    Hello
    Hi just created a blob table data type and insert a text file of the directory - file "DG" and text contain text "Hello dba.

    CREATE TABLE blob_sample (id, NUMBER, blob_data BLOB);

    DECLARE
    l_bfile BFILE.
    l_blob BLOB;
    BEGIN
    INSERT INTO blob_sample (id, blob_data)
    VALUES (1, empty_blob())
    RETURN blob_data INTO l_blob;
    l_bfile: = BFILENAME ("'DG', ' hello.txt");
    DBMS_LOB. FileOpen (l_bfile, Dbms_Lob.File_Readonly);
    DBMS_LOB. LoadFromFile (l_blob, l_bfile, DBMS_LOB.getlength (l_bfile));
    DBMS_LOB. FileClose (l_bfile);
    COMMIT;
    END;
    /

    SQL > select * from blob_sample;
    ID BLOB_DATA
    1 68656C6C6F206462612773

    Above is coded image shape & I try this with the Insert as below... IT WORKS
    SQL > insert into blob_sample (id, blob_data) values (1, '68656C6C6F206462612773');

    1 line of creation.


    But this does not work when encoded length is too large (size 10 KB text file or more)

    It returns error

    insert into blob_sample (blob_data) values ('416374697
    *
    ERROR on line 1:
    ORA-01704: string literal too long


    Please HELP how how can I insert with this method

    Published by: Mr. singh on 9 October 2012 18:54

    Published by: Mr. singh on October 9, 2012 19:38

    It does not make sense to try to build a literal string that represents the binary data in a GIF file and that insert a BLOB using an INSERT... Statement of VALUES.

    You can use the first approach (dbms_lob.loadfromfile) to load a GIF file (or any file) into a BLOB.
    If the image you are trying to load is not a file on the filesystem of database, you can use SQL * Loader on the client machine to load the data, or you can write an application in any language you want that reads the data from the file and inserts it into the BLOB by using the API in your language / framework. You have not told us what language and framework you use, but it shouldn't be too hard to find a suitable example. For example, if you use Java and JDBC, here is an example of loading a GIF in a table.

    Justin

  • Problems with the Long data type conversion

    With the help of Oracle 11 G.

    I have a vision where one of the name of the column is of type long, I need to convert in varchar2. I tried using the to_Lob() function, but this error:

    ORA-00932: inconsistent data types: expected - got LONG

    I followed this article (step 1), which suggests to use to_lob()

    My query is:
    select
    item1, -- this is of type LONG
    item_vat, 
    price_pc_tot,
    from xd_item_price_view 
    I tried to convert it into:
    select
    to_lob(item1) as item1_x, -- this is of type LONG
    item_vat, 
    price_pc_tot,
    from xd_item_price_view 
    I am confused about the "-", why he would expect that? Thanks for watching it.

    >
    Sorry mate, just realized that. Yep, this is the one I followed (step 1 using to_lob())
    >
    It's a case of 'use' along in a query or search.

    But you can use to_lob as part of creating a new table.

    Response to see Dom Brooks in this thread
    Re: Conversion long to varchar2

    And he directly answered your original question
    >
    But you can't use TO_LOB in a statement SELECT right:

  • Problem with the permission of PC

    I would like to move to one old PC (Win 7, ADE2.0, authorized) to another (Win 10, ADE 4.5). When you try to authorize the new PC (with the same email address) I get the error message attached.error message ADE4.5.png

    Having once die Zeit, das die Datum und Zeitzone auf be system. Eins davon caused den den Fehler.

  • Problem with the use of MID/LEFT functions

    I have a problem, see the point of these functions if (as seems to be the case) they will not allow another cell to be referenced.

    I want to do a SUMIFS with match being the first four characters of another cell data. I can't find any way to do it without manually copying the first four characters in another cell.

    If I use only LEFT like this:

    LEFT ('ABCD', 3) to derive 'ABC '.

    so why would just enter ABC in the first place? But that's what show examples and any attempt to do what I really want

    that is LEFT (F19: 3)

    causes a syntax error.

    I believe that I'm missing something really stupid, but I'm darn if I can see it.

    Hi jon,

    LEFT (F19: 3)

    causes a syntax error.

    Try a comma in place of the colon

    = LEFT(B2,3)

    It's your area used for the decimal point. If you use the comma for decimals, use a semicolon in the formula, = LEFT(B2;3)

    Kind regards

    Ian.

  • Problem with the ASD file type

    I discovered an important document was recovered by WORD, but when I tried to open, he was informed that it is an ASD file.

    Windows directed me to a site that contains a list of FREE downloads of software designed for ASD Files "difficulty and open."

    It comes, I know not that you trust that I have already installed DriverCure, my security watchdog immediately sandboxes there as soon as I start!

    Could someone suggest the best, in all respects, free downloads to open the ASD files?

    Very grateful,

    JififnerM

    See the following article to see if it helps.  Word should automatically rename and open the ASD files loading:http://support.microsoft.com/kb/107686.  Maybe if configure you an automatic recovery file and place the file in there, that's going to happen the next time you open Word.

    If this does not help, please repost your question in the Forums Office: http://social.answers.microsoft.com/Forums/en-US/wordcreate/threads , where experts in Word will be happy to help you.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Problem with the percentage data type

    Hello

    I understand that if a member account data type is percentage, then the corresponding value in the form of data is displayed as a percentage. For example, if I need to get 50% against the particular account member, then I can type either 0.5 or 50%. But is there the parameters by which if I hit 50, system will consider as 50%, not 5 000%.

    Thank you.

    You can type either 0.5 or 50%

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Problem with the incompatible data type

    Hi all

    I wrote this query and trying to run it and got the following error.

    I got this error when I add column.if description I do not add the description column query works fine. _

    Attempted to solve by other means but did not work.

    Please help on this.

    SELECT the description, product, /*Defect.Product*/
    TO_CHAR (BG_DETECTION_DATE, 'yyyy') year,
    TO_CHAR (BG_DETECTION_DATE, 'Q'). ' Q'Quarter
    BUG
    where service_type as "Incident".
    and produced in ("Siebel", "Intg_Mgmt", "SOA", "NICE", "Genesys", "DW Analytics")
    AND DETECTION_DATE
    BETWEEN TO_DATE('01-01-2009','MM-DD-YYYY')
    AND TO_DATE (OCTOBER 30, 2010 ","DD-MM-YYYY")

    Group of to_char(bg_detection_date,'yyyy'), to_char(bg_detection_date,'Q'),
    product, description

    order by product, year desc, asc quarter


    error: ORA-00932: given inconsistent type.expected get clob_

    Try to replace every occurrence of "description" by 'dbms_lob.substr (description, 100, 1)' in your query, for example.

    It of OK if you want to show how only and group using the first 100 characters of the column "description".

  • problem with the definition of a boolean as output parameter type

    Hi, I have a problem with the definition of type boolean as output parameter and it must return true if the query procedure retrieves one line else it shouuld return false

    Hi, I have a problem with the definition of type boolean as output parameter and it must return true if the query procedure retrieves one line else it shouuld return false

    And what are the issues? Its simple.

    SQL> create or replace procedure is_emp_exist
      2  (
      3     p_empno  in  emp.empno%type
      4   , p_result out boolean
      5  )
      6  as
      7     l_empno emp.empno%type;
      8  begin
      9     select empno into l_empno
     10       from emp
     11      where empno = p_empno;
     12
     13     p_result := true;
     14  exception
     15     when no_data_found then
     16        p_result := false;
     17  end;
     18  /
    
    Procedure created.
    
    SQL> declare
      2     l_result boolean;
      3  begin
      4     is_emp_exist (7788, l_result);
      5
      6     if l_result then
      7        dbms_output.put_line('Employee Exist');
      8     else
      9        dbms_output.put_line('Employee does not Exist');
     10     end if;
     11  end;
     12  /
    Employee Exist
    
    PL/SQL procedure successfully completed.
    
    SQL> declare
      2     l_result boolean;
      3  begin
      4     is_emp_exist (1000, l_result);
      5
      6     if l_result then
      7        dbms_output.put_line('Employee Exist');
      8     else
      9        dbms_output.put_line('Employee does not Exist');
     10     end if;
     11  end;
     12  /
    Employee does not Exist
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • Problem with the Lenovo Z510 battery indicator

    I have an old Ideapad of one year z510. Last week, the battery indicator began to stuck on 100%. So not connected, he stops suddenly without notifying me with 10% and 7% remaining notification. I tried to uninstall the Microsoft ACPI control method battery compatible from the Device Manager but no change... Anyone has an idea what should I do otherwise.

    Thank you
    Ahmed

    In response to customer relationships of unexpected problems with the performance of the batteries portable Z500 and Z510, Lenovo made an update of the firmware of battery available via download on the Lenovo Forums.

    This battery firmware is intended to solve unexpected load following symptoms when a Z500 and Z510 mobile phone is turned on:

    • Battery is dead

    • Battery is not detected

    • Battery is detected and charged 100%, but when the power is removed, the laptop turns off immediately

    • When the battery is fully charged and the AC power is removed, the battery level falls considerably less than 10 minutes

    Please note a procedure step by step for the upgrade of the firmware is included in the .zip file, found in the file "ReadMe".

    The battery firmware update can be downloaded here: https://download.lenovo.com/lenovo/content/sm/z500_z510_battery_firmware_update.zip

    Thank you

  • [Z510] Problems with the battery not charging

    I have ideapad z510 for almost a year. and now my unit still shows that it is at 0% battery. and she indicates that she battery level does not increase. and for this reason I could not use my unit when it is not plugged. What should I do about it?

    Comment to Moderator: New thread is created. The topic is edited to include the model.

    In response to customer relationships of unexpected problems with the performance of the batteries portable Z500 and Z510, Lenovo made an update of the firmware of battery available via download on the Lenovo Forums.

    This battery firmware is intended to solve unexpected load following symptoms when a Z500 and Z510 mobile phone is turned on:

    • Battery is dead

    • Battery is not detected

    • Battery is detected and charged 100%, but when the power is removed, the laptop turns off immediately

    • When the battery is fully charged and the AC power is removed, the battery level falls considerably less than 10 minutes

    Please note a procedure step by step for the upgrade of the firmware is included in the .zip file, found in the file "ReadMe".

    The battery firmware update can be downloaded here: https://download.lenovo.com/lenovo/content/sm/z500_z510_battery_firmware_update.zip

    Thank you

  • I am running Windows XP and I'm trying to upgrade to Windows 7. There seems to be a problem with the administrator no no not the permission to create a file?

    I am running windows XP.  I try to install the upgrade to windows 7.  I was on the phone with technical support of 4 - 5 times, and they may not always help.  There seems to be a problem with the administrator and with not not permission to create a file?  I have a HP desktop computer. Can anyone help?

    original title: help with Windows 7 install

    Hello

    ·         Account administrator that you use?

    ·         You have the disc to install Windows 7 or upgrade disk?

    Follow these steps and check if that helps.

    Step 1:

    To see if your PC is ready for Windows 7, download free Windows 7 Upgrade Advisor. It scans your PC for potential issues with your hardware, devices, installed programs and recommends what to do before upgrade you.

    Windows 7 Upgrade Advisor

    http://Windows.Microsoft.com/en-us/Windows/downloads/Upgrade-Advisor

    Step 2:

    Follow the exact steps in this article and check if that helps.

    Upgrade Windows XP to Windows 7

    http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-XP-to-Windows-7

    Note: Make sure that you back up all important data on the computer before you install Windows 7.

Maybe you are looking for

  • iOS 10 - proposal No. Emoji

    After update to iOS 10, die keyboard should provide proposals for Emoji. Te typing 'mac' should display a mac-Emoji on the 3rd Position of the bar of the proposal. I know an iPhone (6 s) where he comes from. It does not work on my iPhone (6 s) and my

  • Problem face Time and sky Hub... Help!

    Hi, we have a Hub of Sky - SR102-Z for our connection broadband. Speeds are great, without connection problems with the exception of FaceTime on iPhone, iPad and iMac too. Our connection speeds are- Upstream (Kbps) 5676 Downstream (kbit/s) 30816 We a

  • Can I drive D to shrink and put it in C?

    Hi, I got my new Acer Predator 15 a few weeks back with 1 TB of data that I've been happy with. But ive noticed recently (I'm new at this stuff) that I have a C drive and D drive Acer data D: C: So I did not know what were these I put a bit of resear

  • View full-screen media back to the small window after 20-30 minutes of play. WMP - 11, Classic, VLC, all media players.

    Did you recently clean reinstall of the operating system, no malware present, all drivers up to date, no media questions before you reinstall, now, when playing video files in any format, on any media player, full-screen doesn't "stick", but she clim

  • port forwarding for file sharing on the internet.

    I am trying to determine what port numbers, I need to transfer to my router (in virtual server) to be able to share my NAS files over the internet with my friends? I want to use file sharing, have implemented a DDNS on the NAS with a client account t