Question on the % NOTFOUND attribute slider

Here is my PL/SQL:

OPEN FOR C_original_demo
' SELECT pro_flags, spo_flags, proemp_flags, spoemp_flags
OF test.original_demo
WHERE id_number = "< any id > ';
EXTRACTION c_original_demo
IN v_pro_flags, v_spo_flags, v_proemp_flags, v_spoemp_flags;

IF c_original_demo % NOTFOUND THEN
v_pro_flags: = '0000000000000000000000000';
v_spo_flags: = '0000000000000000000000000';
v_proemp_flags: = '00000000000000000000';
v_spoemp_flags: = '00000000000000000000';
END IF;

When the code runs, it bombs on an ID that doesn't have a record in the original_demo table, if his tent of extracting any data in my variables. But which is not what the % NOTFOUND logic is supposed to prevent? I use it wrong?

Thanks for the help,
ivalum21

Hello

I think that must be reported

ID_NUMBER NUMBER(some value) 

Thank you

Tags: Database

Similar Questions

  • question on the [ILO] attribute definition for the products in the file MXI (bug?)

    Hello

    When I set the attribute [bit] of a product in xmi (set to 64) of the file and create the package, Adobe extension manager CS6 refuses to install on a 64-bit system (saying :) because it is a 64-bit extension!

    I tried in two different environments (Vista and 8-64 / CS6) with the same result!

    Is this a bug (known?) or I do something wrong?

    <product version="8" maxversion="8" primary="true" name="InDesign" platform="win" bit="64"/>

    Any idea would be appreciated, thx, mim

    The attribute bits, the version of Win32 or Win64 of the product for which this extension can be installed. It has nothing to do with the Windows operating system architecture. Since InDesign CS6 has 32-bit version of Lara, you don't have to specify as "64" bit, even if you use 64-bit Windows.

    From CC, InDesign has 32-bit and 64-bit version on Windows. But they have the name of different product, "InDesign" and "InDesign64" respectively. So if you only want to create 64-bit InDesign CC extension, you can specify:

    The 'primary' attribute is no longer used on the CC. The name of the product of InDesign on Mac is still 'InDesign', 'dilated' and 'bit' attributes are not necessary to specify in this case.

  • Questions on the Dimension attribute

    1. when I look at the "Attribute" terminology on the link, it says "an attribute provides additional descriptive information about a dimension and/or specific breast of this dimension members... ", but on AWM help, he says"attributes provide information that is typically no additives on the individual dimension members. "I am confused with the word"additional"and"no additive. They have opposite meanings?

    2. it is a good example in the explanation of "Attribute" terminology on the link, for example, he said "in a database of representative of the shoes, you can use a shoe color attribute to select all boots, sneakers and slippers that share the same color. By adding these attributes of types to your data model professional users can answer questions such as: what colors were the most popular in the dresses of the women in the summer 2005? How this compares with the previous summer? ». What happens if we define color as a level, not an attribute in the hierarchy under the product level? What happens if we define color as a dimension, not an attribute? I have to say that the purpose of setting the attribute intrigues me a lot.

    3. There is an option when creating/updating an attribute: Index. AWM help, he said "Select this option to improve the performance of the queries based on the attributes.". What is a 'attribute-based queries? And when we can use?

    4. There is an option when creating/updating an attribute: attribute values are multilingual. If I check it "Long Description" attribute, for example, there are only LONG_DESCRIPTION (AMERICAN) and LONG_DESCRIPTION (ENGLISH) could be mapping. Is there a way to make more than two languages? At the same time, there was still a LONG_DESCRIPTION column in the view of dimension and hierarchy. What language data will be exposed in the view, LONG_DESCRIPTION (AMERICAN) or LONG_DESCRIPTION (ENGLISH)?

    5. to AWM help, he said "You need to map all the attributes of their data sources.". In fact even if I don't maps all attributes, the size of maintenance process always work well. So why he uses the word 'MUST' here?


    Thank you
    Satine

    Satine,

    As you have discovered, AW physical objects are not in the object view. To see the list of objects in an AW you use OLAP DML, which you can make by using the call of PL/SQL dbms_aw.execute. I'm going to assume that your AW is called GLOBAL in this example, but obviously you need to change this to your own.

    -Activate output Server (or you don't see any results)
    Set serverout on

    -Attach the aw
    dbms_aw.execute exec ("' aw attach global")

    -the list of all the objects of the AW
    exec ('listnames') dbms_aw.execute

    -This example lists only things like ' PRODUCT % '.
    dbms_aw.execute exec (' like ListeNoms ' PRODUCT %''))

    -This example lists only dimension of objects
    exec ("ListeNoms size") dbms_aw.execute

    Determination of size "on the disc" objects AW is not directly supported by the OLAP DML language to my knowledge, but the following query may work for you. Once more, replace 'global' with the name of your AW. (More precisely, to replace the table named ' aw$ global "with your aw table.)

    define lines110 500 pages
    Col aw_object for a70

    Select objname |': ' | aw_object partName, round (sum (dbms_lob.getlength ('AWLOB')) / 1024,3) KB
    AW$ global
    where extnum = 0
    Objname group, partname
    order by objname, partname

    David

  • Question related to the JSTL attributes

    Hello

    I am new to JSP and JSTL and needed to define the var attribute < C:SET / > tag to some time of execution attribute value but var does not support the rtexpr. Is there a reason why var and scope of the JSTL attribute do not appear to accept the value of rtexpr? Also if anyonce can suggest the solution so it would be great.

    Thank you
    Niraj Rouault

    Hi Andrew,

    I believe that by means of "rtexpr" expression of the run time. From my understanding of your question, you have a variable in JSP to assign a value to an expression that must be evaluated at run time. In this case, EL can be used. Please see the link below:

    http://docs.Oracle.com/javaee/5/tutorial/doc/bnahq.html

    Also note that you phrase your question thoroughly rather than use the abbreviated expression. This would help to get a quick and accurate response.

    Kind regards
    Amit

  • Question about the attributes Active Directory and ACS 5.2

    To authenticate on our wireless, our ACS server checks to ensure that a node is a member of a specific group of computers.  When we disable the computer account, the continuous ACS server to spend despite the account being disabled the authentication. This isn't the only thing that is checked, we also checked for a valid certificate issued by our CA.  Regardless, if the computer account is disabled I would like for the ACS server to the authentication failed.  Is it possible to map an attribute of the computer account to a radius attribute?  Or simply configure the ACS server to check a flag on the AD attribute?

    Specifically, here's what we see in the steps in the section for a machine that's account has been disabled:

    24475 account user or host is disabled; setting the IdentityAccessRestricted flag to true.

    I want to let him see this 'true' flag and fail authentication, but it does not work.  Any suggestions?

    The IdentityAccessRestricted attribute that is referenced in the steps is an additional attribute that can be used in conditions of approval

    It is set to true if access to the account is disabled, outside the period of access etc.

    This gives flexibility when AD attributes are retrieved for use in licensing requirements and will allow the application to be refused if the flag is set.

    To do this add a new condition in the authorization policy

    If (AD1-> IdentityAccessRestricted) == TRUE select profile permission to deny access to the suite

  • ESBase Studio question - how to set up the dim attribute?

    I installed Essbase Studio, but has not found a place to create the dimensions of the attribute and rather than associate the dimension attributes to standard dimension? Please notify. Any expert can tell me? JohnGoodwin? GlennS_2? CL?

    Published by: user2571802 on January 9, 2010 20:10

    Hello

    Create a hierarchy as usual and add your columns for your dimension attribute, overview make sure your hierarchy is correct.
    Change the hierarchy you want to map the dimension attributes to add the mapping of attributes to the hierarchy. (then member of attribute maps to the dimension member)
    (don't forget to do a relational ship between members of dimension for the attribute members in your source)
    There is an example of adding the mapping to a hierarchy on page 126 of the user's guide of the Regional (multistring with Dimensions of the attribute hierarchy) service
    In the dimension of some model > essbase properties > click the attribute member, and then select the attribute settings. (this will not appear until you have successfully added the mapping of the attributes in the hierarchy to set up)

    See you soon

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

  • Retrieve by using the TYPE attribute of the element type VArray

    I want to recover the varray stores through the type attribute type or no matter WHAT work-around.

    for example, our type is defined as SUCH CREATE "READS" AS VARRAY (200) OF NUMBER (21: 6); (reading is with elements of number type varray (21.6))

    READING is a column in a table of INTERVALS. INTERVALS is a central table and we batch on the INTERVALS that are running sql store procedures. In the stored procedure we have hardcoded the declarations of variables mapping to the element type of type VArray of READING which is NUMBER (21: 6); for example, the stored procedure has declarations of variables such as

    NUMBER OF CONSUMPTION (21: 6);

    each Varray definition is changed or varray is deleted and recreated with precision and of different size, ex on number (21.6) past to number (25.9), we need declarations of variables to change in our store to batch process procedures. I am looking for is CONSUMPTION variable declaration, refer to item VArray type. I want something like that

    INTERVALS OF CONSUMPTION. READINGS. COLUMN_TYPE % TYPE; (I want something like this, identify the type of the items stored by varray)

    No problem. Discussions forum flags viewers have read so you don't need to keep posting.

    In response to your question I don't know of a direct method, but it doesn't seem to be syntactically possible to anchor via a SLIDER instead diverted the road % TYPE and % ROWTYPE.

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> CREATE OR REPLACE TYPE type_name
      2  AS
      3     VARRAY (200) OF VARCHAR2 (3);
      4  /
    
    Type created.
    
    SQL>
    SQL> DECLARE
      2     CURSOR cursor_name
      3     IS
      4        SELECT COLUMN_VALUE column_name
      5        FROM   TABLE (type_name ());
      6
      7     record_name cursor_name%ROWTYPE;
      8
      9     variable_name record_name.column_name%TYPE := 'AAAA';
     10  BEGIN
     11     NULL;
     12  END;
     13  /
    DECLARE
    *
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 9
    
    SQL>
    

    However, if you try this with a digital item type precision and scale are not kept and you will end up with a NUMBER.

    I said just a subtype corresponding to the same place, declaring variables, on this basis and do with it.

  • Satellite U300 PSU3DA: error: could not open the file attribute execution of concept maps

    I have a PSU3DA-U300 which I changed from Vista to XP.
    This is because my main computer use will be for navigation (boat) and I was told that most navigation programs will work better with XP. I have almost nothing on my laptop so far, and the system already seems to be slow and freezing too often.

    My question is now on the program of concept maps which I just installed and which does not open. He repeats to me "Eorror: could not open the file attribute.

    What does that mean? I uninstall and reinstall the program, and he comes back with this message.
    I had a glance at the Device Manager, and the only thing that seems incorrect is the PCI memory controller.
    I did a bit of research on this and it seems that this driver is not required for XP? Is this true?

    Would this be a cause of C-Maps program does not?

    Thanks in advance.

    > I did a bit of research on this and it seems that this driver is not required for XP? Is this true?
    Where did you read this info?
    I put t know if the driver is not required, but you get all the drivers on the Toshiba site.

    For your problem with concept maps, I think that it is best to contact you that support the conceptual maps. Here, this is a forum for Toshiba laptops.

  • the property attribute

    Hi all:

    I am a new learner of teststand, and I confused questions! There are two:

    1: property attributes

    TS help file tells that we can create a property attribute, such as step or sequence; and I don't know under what conditions we can use it,

    Show me the examples may be better; I was confused on this subject for a long time.

    2: the attribute named "TestStand Hyperlink"

    I find a sample for PDM and the attribute named "TestStand Hyperlink", and I don't know where it set?

    Which version of TS are you using?

    It seems to me that you are not aware of how to examine the attributes of propertyobjects.

    Research in the example, that you are referring to, the Locals.WebAddress, the Locals.ImagePath and the Locals.HTMLFilePath have an attribute of type container named "TestStand. You can check this on your own by right clicking on the variable (PropertyObject!) and select Advanced > change attributes...

    For implementation stuff, I've not found much too much. It seems to me that this is part of the modelsupport2.dll which allows to view the data in TS and then creates the string hyper link on the HTML page. Please note that to do this, the PropertyObject with attributes must be "AdditionalResults" of the stage. I fear that only the 'Hyperlink' attribute is implemented in the modelsupport2.dll.

    Norbert

  • Create the Script to fill the SimpleDisplayName attribute Active Directory Exchange

    Hello

    I want to implement the use of SimpleDisplyNames in my Exchange 2010 environment. After my research, I can see that, if the SimpleDisplayName attribute is enabled and left empty it just goes to show the SMTP address for the external recipients. so to say that I need a way to fill all current users SimpleDisplayName attributes with their Displayname and I'll manually change a few users who have to be modified.

    My question is, can someone help me with something of a powershell script that can run through all AD and make the change for me? I want them all have their display name (first and last) in the LEAGUE.

    Thanks in advance

    Greetings,

    That answer. Microsoft.com Community Forum is very focused on consumers.  Your question might get a better response from the IT professionals on the Microsoft TechNet site, at http://forums.technet.Microsoft.com of if you would care to after the same survey here.  You can file it under the section Active Directory or Windows IT Pro.

  • Difficulty for the file attribute "Update time" a file hive of the registry update on XP and Windows Server 2003

    "Time modified" attribute of a file file the registry hive is updated when you load and then unload the registry hive files without making any changes to the files on a computer that is running Windows Server 2008 or Windows Vista, or Windows 7

    I see a hotfix is provided for Windows Server 2008 or Windows Vista: http://support.microsoft.com/kb/973148/ and for Windows Server 2008 R2 or Windows 7: http://support.microsoft.com/kb/983544

    Question: I want to know if this problem is also present in Windows XP and Windows Server 2003, and if so, we have a solution already for XP and Windows 2003?

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Please post your question in the below link: http://social.technet.microsoft.com/Forums/en/category/windowsserver/

  • Questions of the propeller: ghosts of the tip of your finger on the touchscreen and Crooked editing basic keyboard connector.

    Someone else either of these two questions have with their propeller Thinkpad:

    (1) when I use the touch screen, I can see a trail light ghosting on the screen itself, I tap the screen or slide my finger along the screen.  It looks a bit like touching an LCD monitor and dragging your finger down there.  This isn't something I'm used to seeing on touchscreen devices like the propeller.  So, anyone else notice?

    (2) when I got the camera, the keyboard dock has two connectors which allow the tablet to integrate into the cradle depending which way the Tablet is turned.  The left is for the facing and the identical one on the right is for"view."  Display connector was twisted (as if it was not completely inserted).  When I set up the device in display mode, it seemed perfectly connected to the connector.  I tugged on it lightly and it is not out, but I didn't want to press my luck.  Common problem for someone else?

    Thank you!

    # 1, I thought that this is part of Windows 8 eye candy

  • Explorer Windows in Windows 7 change suddenly last updated Date of the files attribute

    I'm moving from XP Pro to Win 7 of last month during this process, I came across a disturbing behavior in Windows Explorer in Windows 7.

    In Windows 7 (and I hear Vista as well) Windows Explorer will sometimes change the file Date changed when slide it / file to a new location.  I spent hours researching this issue.  In some discussions, some participants said it is a reasonable thing, since copying a folder with files creates a new folder and new files, so a new modified Date is guaranteed.  I can understand that as a basis to change the creation Date.  This was the behavior under XP and I think that NT as well.  However, changing the Date of change is a fundamental departure from how the system of files are featured in the past, and it is also a serious departure from good sense.  At the very least, it will make it impossible to find or organize files by date of update, since the original modification Date (date the actual content of the file may have been modified) is lost.  It also seriously decreases the possibility of finding files duplicated by this attribute when simply copy a file it modifies.

    Change the folder view options can prevent this behavior (Options: view folders: check always show icons, never thumbnails).  In addition, edit a file to read-only will also stop this change of Date of modification.  However, none of these options provide a viable solution to this problem.  All first, change the option to display file then prevents look a thumbnails of the image files.  Change once the copy of file causes the copied files to change Date change date created.  The same is true for the readonly attribute (removing it causes the modification Date change), not mention that it is often impractical to effectively apply this strategy.

    I also note that this behavior is not consistent in all areas.  Files copied from a shared disc on a PC network do not seem to this behavior.  But, files and folders transferred by using Dropbox (www.dropbox.com) show the unwanted behavior.  Worse still, the behaviour was not consistent within the folder.  I transferred a file with the 2007 via Dropbox eml files.  In most tests, once the folder has been moved and dropped on the Win 7 machine (whether copied or moved) the Date of editing files has been changed to take account of the date and time that they were dropped.  However, in one case, two of the files has not changed the Date of change.  By clicking on the file or even open it to read has not made a difference.  The modification Date remained unchanged.  I don't really know why this was the case in this instance, given that these same files has been modified Date change in previous experiences.

    Frankly, I'm puzzled and dismayed that this did not become a more important issue.  Do not have a lot of imagination to see how this problem might affect users old files of e-mail to archiving as LME and anyone copy older files, who later need to search or sort them by the Date of change.  There are solutions that I know, as the compression of the files before any copy or use Robocopy with the appropriate options, but they are much less practical as drag - drop.  Furthermore, drag and drop is now so embedded in users what their likely natural choice for file copy or move.  Once the modification Date is lost, it cannot be found without a restore of backup files - once again, an unrealistic option and a lot of time.

    I think it is a serious problem that needs to be processed quickly by Microsoft.  Good design keeps logical and mitigates the factors that can lead to human error.  The above behavior fails both these needs.  Anyone found a solution for this (maybe change registry) or to know if and when Microsoft plans to approach this?

    I've just dealt with the same problem when copying all the contents of my hard drive and found an impressive (and without :-)) Microsoft Utility called RichCopy which solves this problem and makes it much easier to copy a large number of files/folders :-))

    Here is a link to the article about this in Microsoft TechNet Magazine described the tool, which has a link to download it as well: http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx

  • Interesting slq % notfound attribute behavior

    Hi all

    When I use while not p_cur% notfound this does not work. However, did I use output when p_cur% notfound it works. Why?

    the value SERVEROUTPUT on;

       type t_cur is ref cursor;

    c_cur t_cur ;

    procedure my_proc()p_cur sys_refcursor( )

       is

    v_num number ;

       begin

       loop

       fetch p_cur into v_num ;

    DBMS_OUTPUT. PUT_LINE(v_num);

    output when p_cur% notfound;

       end loop;

       close p_cur ;

       end;

    Open the c_cur for ' select 45 to 50 of select double double union '

    my_proc (c_cur);


    Output:

    45

    50

    50

    the value SERVEROUTPUT on;

       type t_cur is ref cursor;

    c_cur t_cur ;

    procedure my_proc()p_cur sys_refcursor( )

       is

    v_num number ;

       begin

    while not p_cur% notfound

       loop

       fetch p_cur into v_num ;

    DBMS_OUTPUT. PUT_LINE(v_num);

       end loop;

       close p_cur ;

       end;

    Open the c_cur for ' select 45 to 50 of select double double union '

    my_proc (c_cur);

    END;


    Output:

    > > No return line

    Documentation:

    % NOTFOUND attribute

    A cursor attribute that can be added in the name of a cursor or cursor variable. Before the first extract a cursor open, cursor_name%NOTFOUND returns NULL . Thereafter, it returns FALSE If the last fetch returns a row, or TRUE If the last extraction did not return a line.

    Hope it is clear now, in your second example prior to extraction.

  • can 2 questions on the same blade cause different identifiers?

    I use 8 Captivate. I have problems with the interaction of SCORM 1.2 question ID.

    I have 2 questions in the survey on the same blade. When it is reported to the LMS, these two issues appear. But they have the same interaction ID. For example:

    I hope that my spouse

    My spouse trusts me

    These two questions are emerging in Moodle as this:

    Agree 12345_I_trust_my_spouse

    12345_My_spouse_trusts_me disagree

    Is it possible to add a second identifier to each question? It would help my queries of the database of the LMS.

    Thank you!

    Not as far as I know, because each slide of questionnaire has only one identifier...

    You could create a custom Likert question, using standard objects and having an interactive object for each question. Each interactive 'object' can have its identifier. But a question slide is considered to be "one" object, not each response.

Maybe you are looking for