The random crazy cursor behavior

I have an iMac (27 "3.5 ghz i7 QuadCore - 3 TB FD - 4 GB NVidia GTX - Yosemite 10.10.5).

This is the mouse cursor has recently started to jump and clicking randomly. I searched the internet and this Council extensively, and then I find a lot of those who suffer from this problem, I can't find a coherent solution.

  • This happens regardless of the mouse I use.
    • It happens with No mouse and no keyboard.
  • He can't start, but starts happening after 5 minutes and gradually gets worse.
    • Think this is heat, I installed TGPro to monitor the temperature; nothing seems to be very hot.
  • I have reset NVRAM and SMC.

Are there other causes/solutions possible for this behavior? It makes the computer completely unusable, of course.

Thank you!

Have you blown dust lately?

All 3rd party extensions you are running?

EtreCheck is a simple little app to display the important details of your system configuration and allows you to copy this information to the Clipboard. It is intended to be used with Apple Support communities to help people to help you with your Mac.

http://www.etresoft.com/ etrecheck

What other devices are attached?

Tags: Mac

Similar Questions

  • Date limited to NOT allow the random text?

    Hello

    I use LiveCycle ES3.  This may seem like a stupid question, but how do I prevent users from random input, not- date text, such as "adsfasdfkafsdj" in a date field?  I defined the required field and set the modes of display/editing/validation validation as indicated below, but still I can enter the random text in the field. Indeed, it appears saying the date is in the wrong format and return correctly, but then the right cursor moves to the next field, leave the incorrect text in the date field and does not require the user to correct my custom error message.

    View model

    Date {MM/DD/YY}

    Edit the model

    Date {m/d/YY} | date {MM/DD/YYYY}. date {MM/DD/YY} | date {MM/DD/YYYY}. date {M/DD/YY} | date {M/DD/YYYY}. Date {mm/D/YY} | date {D/mm/yyyy}. Date {M.D.yy} | Date {M.D.yyyy} | date {mm. DD. YY} | date {MM DD. YYYY} | Date {M.DD. YY} | Date {M.DD. YYYY} | date {Messrs. D.yy} | date {mm. D.yyyy} | Date {M-D-YY} | date {M-D-YYYY} | da te{MM-DD-YY}|date{MM-DD-YYYY}|date{M-DD-YY}|date{M-DD-YYYY}|date{MM-D-YY}|date{MM-D-YYYY}| Date {MMDDYY} | date {MMDDYYYY}

    Model validation

    Date {m/d/YY} | date {MM/DD/YYYY}. date {MM/DD/YY} | date {MM/DD/YYYY}. date {M/DD/YY} | date {M/DD/YYYY}. Date {mm/D/YY} | date {D/mm/yyyy}. Date {M.D.yy} | Date {M.D.yyyy} | date {mm. DD. YY} | date {MM DD. YYYY} | Date {M.DD. YY} | Date {M.DD. YYYY} | date {Messrs. D.yy} | date {mm. D.yyyy} | Date {M-D-YY} | date {M-D-YYYY} | da te{MM-DD-YY}|date{MM-DD-YYYY}|date{M-DD-YY}|date{M-DD-YYYY}|date{MM-D-YY}|date{MM-D-YYYY}| Date {MMDDYY} | date {MMDDYYYY}

    With the reasons that I have above, the user should be allowed to enter data in one of these formats, correct?  I am at a loss for which is why it does not work the way it is supposed to.

    Thank you.

    Hello

    It is also possible with a script to the output of the date field event.

    He uses a regular expression to check the value entered for a specific model.

    Allows are the dates of these way: [9: 99] [.|] /| -] [9| 99] [.| /| -] [99| 9999].

    if (! this.formattedValue.match(/^\d{1,2}[\.\/\-]\d{1,2}[\.\/\-](\d{4}|\d{2})$/g)) {
              xfa.host.messageBox("Enter a correct date!", "Invalid Date", 0, 0);
              xfa.host.setFocus(this.somExpression);
    }
    
  • Possible bug found in hyperlinkctrl.c when you use the "VAL_POINTING_FINGER_CURSOR" mouse cursor in your own user interface.

    Hi people, I think I found a bug in the hyperlinkctrl.c custom control, after the update/upgrade an old project CVI.

    I found when I started using the "VAL_POINTING_FINGER_CURSOR" mouse in my UI, when adding a new hyperlink control.

    The error is recoverable error: ' from the mouse cursor is not valid.

    This error breaks in RunUserInterface (never seen anything like this before and I use CVI since version 3.1).

    This happens whenever I mouse - hovering anywhere on the Panel that contains the new hyperlink control.

    I also had a hack temporary to solve the problem, for now, I'll pass it along to this announcement...

    The hyperlink control's source code is located in \toolslib\custctrl\hyperlinkctrl.c

    The bug/problem lies in the service of reminder (of HyperLinkPanelCallback), specifically in lines 460 to 465.

    This hyperlink control wants to use the VAL_POINTING_FINGER_CURSOR as its default cursor when you hover over the custom hyperlink.

    However, if you already use 'VAL_POINTING_FINGER_CURSOR' in your user interface, the branch which verifies that you use what he thinks is 'his own' thread-safe mouse cursor ID, so that can reset it by using his "token concatenation" - created macro "GetTsvCursor", is not an 'else' branch to protect the picture when you actually use the cursor pointing finger... where the error that the mouse cursor is not valid. Here is the snippet of these lines.

    The mouse is not over a hyperlink
    If (cursor is VAL_POINTING_FINGER_CURSOR)
    {
    Reset the cursor to the previous cached cursor
    cursor = GetTsvCursor();
    errChk (SetMouseCursor (cursor));

    ... etc...

    }

    So my hack was to change the type of cursor to "VAL_CHECK_CURSOR" in place and place the cursor of "VAL_POINTING_FINGER_CURSOR" in three locations in this function, then rebuilt files x 86 and x 64.

    Hey Luis, finally win a free T-shirt of LabWindows/CVI with not only have reported this bug, but also to give the precise location of the source, as well as a work around?

    :^)

    JB

    In the meantime, I have submitted a bug with ID #545203 report to track down this problem.

    -Johannes

  • How are derived from the random bits for new AESKey()?

    I was not able to find any documentation on how the random key is generated. There has been discussions on various security forums recently on the use of random number generators nickname (PRNG).

    I would like confirmation that the random bits for new AESKey() come from cryptographically safe pounds (like net.rim.device.api.crypto.RandomSource?).

    Random data used in the constructor of AESKey() comes from net.rim.device.api.crypto.RandomSource.

  • The title of the TOC for the random question slides

    I want to create a quiz that randomly pulls a pool of questions.  I think I know how to do that (rightly), but when I do, the table of contents is only show (title "Slide") the name/title of the question slide to chance itself, which is not really give any useful information.  I wonder if there is a way to show rather the title of the question which is selected (and present) of the random question slide.  This, in my opinion, would be much more useful to users taking the quiz.  Is there a known way to get there?  Thank you!

    Capture.PNG

    Project files cannot be attached to these messages in the forum.

    Lilybiri has already answered your question.  The table of contents only shows the name of the random Question slide and can't give you the name of the slide of the random quiz question slide that is picked up from the Question pool when running dynamically.

    Essentially the Random Question slide is just a placeholder.

    However, I think that your idea of being able to have the selected slide display its name in the table of contents if you wish has some merit.  Then I suggest that you connect to an enhancement with Adobe for this request.  You never know...

  • Layer option in the Random fill script Photoshop CS6

    When you use the random fill Photoshop CS6 script, you can use varies depending on the models and colors.

    To randomize the photo, you generate the image when you use random fill.

    I've used the script to randomize patterns and colors, if you use random fill.

    I want to know is can you add a layer option in the Random fill script, which allows you to manipulate the model and color of the layers that would be generated.

    But in saying that, you would be talking about perhaps hundreds of layers at least.

    Is it possible to add this option to the random fill script type in Photoshop CS6Layer option in the Random fill script Photoshop CS6

    N ° when you run the script to random fill, you can only have one setting at a time, one model at a time and one layer at a time. I created a user interface for the script when CS6 is released which allows to break down the filling in different layers, so that you can change the template, but my script does not change the settings. You can see my script here:

    Script Fill UI - Photoshop CS6

  • PL/SQL: ORA-00904 invalid identifier, PLS-00225: reference of the subprogram or cursor is out of reach

    Hi gurus,

    Your help is greatly appreciated.

    Will I have a fucntion where we have the object it contains.

    The changes that I have doen are: 2 new cusrosrs, but its failure with the error below.

    Highlighted are the changes I made. his length very well before your help is greatly appreciated.

    1) PL/SQL: ORA-00904: "GET_ACQ_ID.". ' ACQ_ID ': invalid identifier.

    (2) PLS-00225: subprogram or cursor reference 'GET_ACQ_ID' is out of range

    Here is the code:

    _________________________________________________________________________

    FUNCTION GET_IP_COMM_INFO return PROD. TERMINAL_IP_COMM_INFO_TAB IS

    vTer TER.ter_id%TYPE;
    vAPPL_ID TAC.appl_id%TYPE;
    vValue TSF.vALUE%TYPE;

    IP_COMM_INFO_LIST PROD. TERMINAL_IP_COMM_INFO_TAB: = PROD. TERMINAL_IP_COMM_INFO_TAB();

    CURSOR GET_ACQ_ID IS
    SELECT ACQ_ID
    TER TAHA, MERC M, PROF
    WHERE T.MER_ID = M.MER_ID
    AND M.PROFID = P.PROF_ID
    AND T.TER_ID = vTer_id;


    CURSOR GET_INFO_CURSOR IS
    SELECT H.DESCRIPTION AS HOST_DESCRIPTION
    PROD. HOST H, PROD. APP_IP_COMM_ACCESS_INFO AICAI
    WHERE (AICAI. HOST_ID = H.HOST_ID) and
    (AICAI. APPL_ID = vAPPL_ID);

    CURSOR GET_ACQ_CURSOR IS
    SELECT H.DESCRIPTION AS HOST_DESCRIPTION
    PROD. HOST H, PROD. APP_IP_COMM_ACCESS_INFO AICAI, PROD. ACQUIRER_IP_COMM_ACCESS_INFO ACICAI
    WHERE (AICAI. HOST_ID = H.HOST_ID) and
    (AICAI. APPL_ID = vAPPL_ID) AND
    (ACQUIRER_ID = GET_ACQ_ID. ACQ_ID);
    BEGIN

    vTer_id: = GLOBAL_VARIABLES.gv_ref_Ter_id;

    BEGIN
    SELECT the VALUE IN vvalue OF Tsf
    WHERE TER_id = vTEr_ID AND APPL_ID is vAPPL_ID and FEATURE_ID = 861;.

    Vvalue = '04' IF THEN
    For GET_ACQ_REC IN GET_ACQ_CURSOR
    LOOP
    IP_COMM_INFO_LIST. EXTEND;
    IP_COMM_INFO_LIST (IP_COMM_INFO_LIST. (COUNTY): = PROD. TERMINAL_IP_COMM_INFO_OBJ (GET_ACQ_REC. HOST_DESCRIPTION);
    END LOOP;
    ON THE OTHER
    FOR GET_INFO_REC IN GET_INFO_CURSOR
    LOOP
    IP_COMM_INFO_LIST. EXTEND;
    IP_COMM_INFO_LIST (IP_COMM_INFO_LIST. (COUNTY): = PROD. TERMINAL_IP_COMM_INFO_OBJ (GET_INFO_REC. HOST_DESCRIPTION);
    END LOOP;
    END IF;

    RETURN IP_COMM_INFO_LIST;
    EXCEPTION WHEN OTHERS THEN
    LIFT;
    END GET_IP_COMM_INFO;

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

    You try to access another variable of slider within the slider...

    CURSOR GET_ACQ_CURSOR IS

    SELECT H.DESCRIPTION AS HOST_DESCRIPTION

    PROD. HOST H, PROD. APP_IP_COMM_ACCESS_INFO AICAI, PROD. ACQUIRER_IP_COMM_ACCESS_INFO ACICAI

    WHERE (AICAI. HOST_ID = H.HOST_ID) and

    (AICAI. APPL_ID = vAPPL_ID) AND

    (ACQUIRER_ID = GET_ACQ_ID. ACQ_ID );

    But you have not opened this slider, or anything like that.

    You will probably need to pass as a parameter, just like a function:

    (not sure of the type of data, so I assumed that the NUMBER)

    CURSOR GET_ACQ_CURSOR (NUMBER in_acq_id) IS

    SELECT H.DESCRIPTION AS HOST_DESCRIPTION

    PROD. HOST H, PROD. APP_IP_COMM_ACCESS_INFO AICAI, PROD. ACQUIRER_IP_COMM_ACCESS_INFO ACICAI

    WHERE (AICAI. HOST_ID = H.HOST_ID) and

    (AICAI. APPL_ID = vAPPL_ID) AND

    (ACQUIRER_ID = in_acq_id );

    When you call this type, you must pass a value... So, it seems that you first call the other cursor.

    Change this code:

    IF Vvalue = ' 04 "THEN

    FOR GET_ACQ_REC IN GET_ACQ_CURSOR

    LOOP

    IP_COMM_INFO_LIST. EXTEND;

    IP_COMM_INFO_LIST (IP_COMM_INFO_LIST. (COUNTY): = PROD. TERMINAL_IP_COMM_INFO_OBJ (GET_ACQ_REC. HOST_DESCRIPTION);

    END LOOP;

    ON THE OTHER

    To do this:

    IF Vvalue = ' 04 "THEN

    FOR GET_ACQ_ID_REC IN GET_ACQ_ID IS

    LOOP

    FOR GET_ACQ_REC IN GET_ACQ_CURSOR (get_acq_id_rec.acq_id)

    LOOP

    IP_COMM_INFO_LIST. EXTEND;

    IP_COMM_INFO_LIST (IP_COMM_INFO_LIST. (COUNTY): = PROD. TERMINAL_IP_COMM_INFO_OBJ (GET_ACQ_REC. HOST_DESCRIPTION);

    END LOOP;

    END LOOP;

    ON THE OTHER

    (Or something like that)

    I wasn't sure if your GET_ACQ_ID cursor returns only 1 row or not? If it returns more than 1 row, how to cope, you do not specify.

    If it's just 1 row, then you can probably simplify it a little more:

    IF Vvalue = ' 04 "THEN

    SELECT ACQ_ID

    in l_acq_id

    TER TAHA, MERC M, PROF

    WHERE T.MER_ID = M.MER_ID

    AND M.PROFID = P.PROF_ID

    AND T.TER_ID = vTer_id;

    FOR GET_ACQ_REC IN GET_ACQ_CURSOR (l_acq_id)

    LOOP

    IP_COMM_INFO_LIST. EXTEND;

    IP_COMM_INFO_LIST (IP_COMM_INFO_LIST. (COUNTY): = PROD. TERMINAL_IP_COMM_INFO_OBJ (GET_ACQ_REC. HOST_DESCRIPTION);

    END LOOP;

    ON THE OTHER

    Hope that helps.

  • Where the Panel haze cursor effects?

    I have Lightroom CC and it is completely up-to-date (2015.1 and ACR 9.1). However, I have not an effect controls panel and the mist of cursor. Why? How can I get? I tried to stop cloud and then record in vain.

    The develop module go to:

    Window > panels > effects

    Or press ctrl + 7

  • How can I update the random lines?

    Hi all

    Table of responses I got, there are two columns that belong to this table. This table contains 1 million rows. The response column can be numeric or text.
    create table answers(
    answer_id number primary key,
    answer varchar2(50)
    );
    My question is

    I want to update the random lines 50 to 100 which is equal to "0" (zero).

    The code below works, but I just wonder does it work properly? I mean, I want to choose these lines at random. However, it is very difficult to update randomly. Is this the best way? Do you have any suggestions?
    update answers set answer = '100' where answer_id in( 
    with
    get_ids as (select answer_id from answers where answer = '0' and rownum <= 50 order by dbms_random.value)
    select answer_id from get_ids);
    In addition, when I read the relevant discussions to the update at random, someone recommends you to use the rowid, do you think I should use rowid instead of answer_id? (answer_id is also a unique value in my table) If I use rowid will be faster?

    Thanks for your help.

    Hello

    970992 wrote:
    Hi all

    Table of responses I got, there are two columns that belong to this table. This table contains 1 million rows. The response column can be numeric or text.

    create table answers(
    answer_id number primary key,
    answer varchar2(50)
    );
    

    My question is

    I want to update the random lines 50 to 100 which is equal to "0" (zero).

    The code below works, but I just wonder does it work properly? I mean, I want to choose these lines at random. However, it is very difficult to update randomly. Is this the best way?

    Almost. You want to take the 50 lines after the ORDER BY has been applied, like this:

    update  answers
    set      answer = '100'
    where     answer_id in
    (
    with
    get_ids as (
                select    answer_id
                from      answers
                where         answer = '0'
    --            and      rownum <= 50          -- DON'T use ROWNUM here
                order by  dbms_random.value
            )
            select  answer_id
            from    get_ids
            where   rownum <= 50          -- Use ROWNUM here
    );
    

    Do you have any suggestions?

    update answers set answer = '100' where answer_id in(
    with
    get_ids as (select answer_id from answers where answer = '0' and rownum <= 50 order by dbms_random.value)
    select answer_id from get_ids);
    

    The ORDER BY clause is the last part of a query to be run, after the WHERE clause is complete. As originally posted, you were pick up 50 lines with a response = '0' and then sort them in a random order. You want to select all the lines that have answer = '0', then sort them in a random order and, finally, to choose the 50 frist in the list.

    In addition, when I read the relevant discussions to the update at random, someone recommends you to use the rowid, do you think I should use rowid instead of answer_id? (answer_id is also a unique value in my table) If I use rowid will be faster?

    Yes, using ROWID will be faster.

  • How to generate the random password policy password knowing resources

    Hello

    Any body tell me how to generate the random password policy password knowing the purpose of resource in OIM11g

    Kind regards
    Mireille Nayan

    Hi Pascal,.

    You can try the below code snippet:

    UserRepository your = new DBUserRepository();
    UserInfo user = your.getUserInfo (take);
                   
    ResourceRepository rrepo = new ResourceDBRepository();
    Resource = rrepo.findResource (resourceName);
              
    By PasswordPolicyAssignmentsRepository = new PasswordPolicyAssignmentsDBRepository();
    PasswordPolicyRepository ppr = new DBPasswordPolicyRepository();
    The list of passwordPolicyAssignments = par.getPasswordPolicyAssigments (resource);
    PasswordPolicy passwordPolicy;
                   
    PasswordPolicyAssignment passwordPolicyAssignment = passwordPolicyAssignments.get (0) (PasswordPolicyAssignment);
    If (isApplicable (passwordPolicyAssignment, {getMappedAttributes (userInfo.getAttributes ())})})
    passwordPolicy = ppr.find (passwordPolicyAssignment.getPasswordPolicyID ());
    }
    RPG RandomPasswordGeneratorImpl = new RandomPasswordGeneratorImpl();
    password = rpg.generatePassword (userInfo, passwordPolicy);

    Kind regards
    GYAN

  • Expression of remapping the colors at the moment of the random frame

    I work with a lot of hand-drawn loops and I am curious about the expressions that can make random display of a view of image sequences using the time remap property.

    For example, in hand-drawn traditional animation when you want to hold a pose without looking at static animation, you create what is called a trace, which means that you would trace physically at least 8 frames of the same design and then shoot over and repeatedly at random for as long, you need to ask.  In this way, you don't get the exact model of executives bike again and again as you would if you just loop it.

    Of course, you can manually rearrange frames in After Effects, but it takes a long time and I wonder if an expression can be written which could be easily changed for different sequences in different lengths and different.  For example, I found this expression by Filip Vandueren on the site Web of Creative Cow http://forums.creativecow.net/thread/227/12413 , she was destined to randomize a sequence of 5 images, however, the sequence and the model must be at the same frame rate in order to make it work.  Therefore, I have to work to a sequence of 12 IPS in a 12 fps model, if I want the animation to look like he was shot the 2s.  Usually a sequence of 12 fps without time remapping of expressions will play on 2 s if it is in a model of 24 frames per second and I can tell using time stretch or posterize time does not work.  Stretch time does nothing and posterize time crashes after effects when I add it to the when of image with the expression applied to the time remap property.  This probably has something to do with a conflict of expressions that happens once the time remapping effect is applied to the image sequence.  In any case, I ask if there is a way to change this expression so that I could put my pictures in a model at a different rate and use the expression itself to tell him to play 8 VPS, 12 FPS or any other cadence.

    This is expression of Filip Vandueren

    seedRandom(1,true);

    var t = timeToFrames ();

    var r1 = - 3;

    var r2 = - 2;

    var A3 = - 1;

    for (var i = 0; t > = i; i ++) {}

    var A3 = Math.floor (random (5));

    If (r1 = r3: r2 = r3) {}

    t ++ ;

    continue;

    }

    R1 = r2;

    R2 = r3;

    }

    framesToTime (r3);


    It is an expression based on Vandueren I tried to change to a sequence of images of 8 frame.  Any way, it worked, but it didn't really achieve what I was looking for.

    timeRemap

    seedRandom(2,true);

    var t = timeToFrames ();

    var r1 = - 6;

    var r2 = - 5;

    var A3 = - 4;

    var r4 = - 3;

    var A5 = - 2;

    var A6 = - 1;

    for (var i = 0; t > = i; i ++) {}

    var A3 = Math.floor (random (8));

    If (r1 = r3: r2 = r3) {}

    t ++ ;

    continue;

    }

    R1 = r2;

    R2 = r3;

    }

    framesToTime (r3);

    The image sequence played all 8 frames randomly without overlapping, but I could not yet understand how playing the fps 8 or 12 fps without consistent with rate of comp at the rate of the image sequence.  Ideally, I would like the expression to determine the frame rate so that I can have in a model with other frame rates and are not afraid to disturb the expression.

    Reorganization of the random images is a common thing for 2D animators to do this, I will also file a feature request After Effects to add this feature to an existing plug-in or create a standalone plugin.

    This should work:

    FR = 12; frame rate;

    numFrames = 8;

    seedRandom (index, true);

    SEG = Math.floor(time*fr);

    f = Math.floor (random (numFrames));

    for (i = 0; i< seg;="">

    f = (f + Math.floor (random(1,numFrames))) % numFrames;

    framesToTime (f);

    Dan

  • Make the length of a sound equal to the random duration of action

    I want my duration of an audio clip to have the same length as the random duration of an event in the script.

    Example: if my wheel spins for a random time, let's say 5 seconds, I want my audio clip length to 5 seconds longer. Thank for help.

    What you can do, is have a looping sound stop when the animation ends.

  • Realistic of the random movements of multiple MovieClips

    Hi here is my code:

    30 images/s

    var human = 30;

    hSpeed var = 4;

    for (i=0; i<humans; i++) {
         //attach movieclip with name "human"
         //give it a random x y position (there are now 30 scattered human MCs)
         _root["human"+i].onEnterFrame = function() {
              this._x += random(hSpeed); //Here is the 'random' movement of the Movieclips
              this._x -= random(hSpeed);
              this._y += random(hSpeed);
              this._y -= random(hSpeed);
                   //some more code
         }
    }
    

    Makes the jitter movieclips on, humans don't do that, I can't find a way to make their random movement still smooth, moving in a random direction for a few seconds (preferably a random amout of seconds), then to change direction - I found a way to do it but it does not work on individuals It works on all 30 movieclips, which means that all move in the same direction.

    Don't forget that the movement must be random for each individual movieclip, not all move in the same direction.

    Does anyone know how? Thank you

    If you want to maintain the movement in a random direction for some time, then you're probably better using code interpolation.  Generate interpolations for each object that moves them from their current position to some random in some random delays.  And have a listener that determines when the Tween is complete so that a new Tween is engaged with the new direction and speed (time).

  • I use the random function and he know instructions 'case' must end with a ':' but it is!

    I use the random function and he know instructions 'case' must end with a ':' but it is! I put

    case 10000 timer += 2; popupName._visible = true; :

    then I put

    case of 10000 {timer += 2; popupName._visible = true ;}:}

    but he still know it.

    What I am doing wrong?

    First of all, whenever you have more than three similar lines, you should probably refactor something.  Especially when you have 10,000 lines. This should have sounded the alarm, but I guess you are new to this.

    Second, when you have such a long code, paste everything here. Please, I beg you. It's a pain to navigate the thread.

    And here's what I * think * you really want:

    If (random (10001) == 10000) {}

    timer += 2;

    popupName._visible = true;

    }

    It simply means: "take a random number between 0 and 10001 (exclusive). If this number is 10,000, do something. If not, ignore this code block. »

  • Statement of the type of cursor in package/sp

    Hello
    I use the package with sp than using slider as below:

    --#1============================ PACKAGE
    {THE PACKAGE AS ORA_PK_TR2
    Type CURS_01 IS REF CURSOR;  -return RYBB. T_COLLECT % rowtype;
    Procedure ORA_SP_CUST (present in date_exp,
    END

    --#2============================  BODY
    create or replace
    PACKAGE ORA_PK_TR2 BODY as
    Procedure ORA_SP_CUST (present in date_exp,
    open_CURS_01 OUT CURS_01) IS
    BEGIN
    SQL_string = "(select * de RYBB.)" T_COLLECT where col =' | DATE_EXP)"

    Open_CURS_01 OPEN FOR SQL_STRING;

    END;

    -3 # = RUN_PORTION

    DECLARE
    DATE_EXP DATE;
    OPEN_CURS_01 RYBB. ORA_PK_TR2. CURS_01;
    TYPE_IN RYBB. T_COLLECT % ROWTYPE;       -/ * < = go to the package
    BEGIN
    Date_exp: = 10-seven.-10';
    RYBB. ORA_PK_TR2. () ORA_SP_CUST
    Date_exp = > date_exp.
    OPEN_CURS_01 = > OPEN_CURS_01
    );
    LOOP
    Look FOR open_CURS_01 IN TYPE_IN;
    EXIT WHEN open_CURS_01% NOTFOUND;
    DBMS_OUTPUT. PUT_LINE (TYPE_IN. COL1 | » '|| TYPE_IN. COL2);    -/ sample
    END LOOP;
    END ;}

    I need to put TYPE_IN declation of cursor inside the packaging, so the user who will run this pack/sp deals with this structure. How I can do this,
    I tried to use < return RYBB. T_COLLECT % rowtype; > in the package but then I get:
    Error (122,6): PLS-00455: cursor 'open_CURS_01' cannot be used in a dynamic OPEN SQL statement.
    Not sure I can somehow in the BODY and make it available to the user?

    Help you enjoy.

    Best
    Trent

    Published by: trento on 13 Sep, 2010 14:36

    Hello

    Slider strong Ref (with a return type) cannot be used with dynamic SQL
    because the compiler cannot check dynamic SQL return type during compilation.
    String ref cursor can be used only with static SQL.
    Dynamic SQL can be used only with the low (untyped) cursor variables.

    You can use static SQL in your procedure, look at this example:

    create or replace
    PACKAGE TEST AS
      TYPE CURS_01 IS REF CURSOR RETURN SCOTT.EMP%ROWTYPE;
      Procedure ORA_SP_CUST (EXP_DATE IN date, open_CURS_01 IN OUT CURS_01 );
    END TEST;
    /
    
    CREATE OR REPLACE
    PACKAGE BODY TEST AS
    
      PROCEDURE ORA_SP_CUST (EXP_DATE IN DATE, OPEN_CURS_01 IN OUT CURS_01 ) AS
      BEGIN
        OPEN OPEN_CURS_01 FOR
            SELECT * FROM SCOTT.EMP WHERE SCOTT.EMP.HIREDATE = EXP_DATE;
      END ORA_SP_CUST;
    
    END TEST;
    /
    
    VARIABLE CR REFCURSOR;
    
    BEGIN
       test.ORA_SP_CUST (TO_DATE('1981/12/03', 'yyyy/mm/dd'),
                         :cr );
    END;
    /
    
    print :cr
    
    CR
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------
    EMPNO                  ENAME      JOB       MGR                    HIREDATE                  SAL                    COMM                   DEPTNO
    ---------------------- ---------- --------- ---------------------- ------------------------- ---------------------- ---------------------- ----------------------
    7900                   JAMES      CLERK     7698                   1981/12/03                950                                           30
    7902                   FORD       ANALYST   7566                   1981/12/03                3000                                          20                     
    

Maybe you are looking for