Sensitive cursors

Moved this post from the SQL PL/SQL forum. Apologies if you had to read this twice..
All,
I have a rather general question about oracle support for sensitive cursors, I need to establish a scrollable result set and "see" changes to the selected data, updated by a different process. There is some mention of oracle support for scrollable cursors that are sensitive, implemented in the JDBC driver.
Is there something similar that I could use to enhance my OPEN cursor implementation in OCI.
thanks in advance,
badri

A scrollable cursor provides support for forward and backward access into the result set from a given position, using either absolute or relative row number offsets into the result set.
You can use scrollable cursor to see updated data if client side Caching is not used.
Oracle does not support DML operations on scrollable cursors. A cursor cannot be made scrollable if the LONG datatype is part of the select list.
Moreover, fetches from a scrollable statement handle are based on the snapshot at execution time. OCI client prefetching works with OCI scrollable cursors. The size of the client prefetch cache can be controlled by the existing OCI attributes OCI_ATTR_PREFETCH_ROWS and OCI_ATTR_PREFETCH_MEMORY.
Example of Access on a Scrollable Cursor
Assume that a result set is returned by the SQL query:
SELECT empno, ename FROM emp
and that the table EMP has 14 rows. One use of scrollable cursors is:
/* execute the scrollable cursor in the scrollable mode */
OCIStmtExecute(svchp, stmthp, errhp, (ub4)0, (ub4)0, (CONST OCISnapshot *)NULL,
(OCISnapshot *) NULL, OCI_STMT_SCROLLABLE_READONLY );
/* Fetches rows with absolute row numbers 6, 7, 8. After this call,
OCI_ATTR_CURRENT_POSITION = 8, OCI_ATTR_ROW_COUNT = 8 */
checkprint(errhp, OCIStmtFetch2(stmthp, errhp, (ub4) 3,
OCI_FETCH_ABSOLUTE, (sb4) 6, OCI_DEFAULT);
/* Fetches rows with absolute row numbers 6, 7, 8. After this call,
OCI_ATTR_CURRENT_POSITION = 8, OCI_ATTR_ROW_COUNT = 8 */
checkprint(errhp, OCIStmtFetch2(stmthp, errhp, (ub4) 3,
OCI_FETCH_RELATIVE, (sb4) -2, OCI_DEFAULT);
/* Fetches rows with absolute row numbers 14. After this call,
OCI_ATTR_CURRENT_POSITION = 14, OCI_ATTR_ROW_COUNT = 14 */
checkprint(errhp, OCIStmtFetch2(stmthp, errhp, (ub4) 1,
OCI_FETCH_LAST, (sb4) 0, OCI_DEFAULT);
/* Fetches rows with absolute row number 1. After this call,
OCI_ATTR_CURRENT_POSITION = 1, OCI_ATTR_ROW_COUNT = 14 */
checkprint(errhp, OCIStmtFetch2(stmthp, errhp, (ub4) 1,
OCI_FETCH_FIRST, (sb4) 0, OCI_DEFAULT);
/* Fetches rows with absolute row numbers 2, 3, 4. After this call,
OCI_ATTR_CURRENT_POSITION = 4, OCI_ATTR_ROW_COUNT = 14 */
checkprint(errhp, OCIStmtFetch2(stmthp, errhp, (ub4) 3,
OCI_FETCH_NEXT, (sb4) 0, OCI_DEFAULT);
/* Fetches rows with absolute row numbers 3,4,5,6,7. After this call,
OCI_ATTR_CURRENT_POSITION = 7, OCI_ATTR_ROW_COUNT = 14. It is assumed
the user's define memory is allocated. */
checkprint(errhp, OCIStmtFetch2(stmthp, errhp, (ub4) 5,
OCI_FETCH_PRIOR, (sb4) 0, OCI_DEFAULT);
checkprint (errhp, status)
ub4 rows_fetched;
/* This checks for any OCI errors before printing the results of the fetch call
in the define buffers */
checkerr (errhp, status);
checkerr(errhp, OCIAttrGet((CONST void *) stmthp, OCI_HTYPE_STMT,
(void *) &rows_fetched, (uint *) 0, OCI_ATTR_ROWS_FETCHED, errhp));
...

Similar Messages

  • How to refresh data contained in CachedRowSet

    Hi all,
    I need to refresh data contained in CachedRowSet. I hope I don't have to call populate or execute again since I'm afraid this will need a big overhead. All I want is to be updated when other user add or delete any records.
    Any advice would be greatly appreciated.
    Setya

    essentially you want a live and sensitive cursor. perhaps you are missing the point of a cache. you can't have your cake and eat it too.
    in summary you need to refresh the whole thing.

  • Cursor hotspot very sensitive when PS running in background

    I have noticed some odd behaviour when I've got PhotoShop running and an image that I am working on opened. When I switch to any other app, even the desktop, my cursor hotspot becomes very sensitive. I.e. when I try to drag the bottom corner of a window to make it bigger, its very difficult to find the corner the cursor keeps flickering between the 2 states. Before you ask I'm on a Mac loads of memory, latest OS and latest version of PS etc etc.

    I am using OS 10.10.2
    Photoshop CC 2014 2.2
    no I do not minimise photoshop just work on other applications over the top.
    Ah I have just tried minimising and that seems to solve the problem - looks like i'll have to change my working method.
    Application frame turned on
    thanks

  • Why is my cursor so sensitive when trying to hilite or underline test, and sometimes it completely disapears? - Sam

    My cursor sometimes disappears completely, but normally it appears to be too sensitive when trying to highlight test in color or underline a word or phrase. Also, when underlining a word the line usually goes one character too far. - Sam

    Here, it's '''Start|Control Panel|Mouse→Pointer Options'''.
    That's a global setting and will affect all programs. If you don't have this trouble in other programs, this adjustment may not be very helpful.
    I do find that Mozilla's programs have a subtly different look'n'feel (gecko?) and cursor positioning is slightly different than in Microsoft's programs. You tend to have to click precisely on black text, not just somewhere nearby. This needs better aiming, which sounds a bit like it may be your issue.
    Slowing the mouse/pointer down may help, so long as it doesn't make everything else intolerably sluggish.

  • Making Cursor less Sensitive

    Is there a way to make the cursor less sensitive? For example, if the cursor rest on the application task bar for a few minutes, then one moves the cursor, the entire window moves. Or sometimes one is viewing a web page in tab and the cursor rest on the tab bar for a few minutes, then one moves the cursor, the page opens in a new window.
    It can be annoying.

    Thank you Dave and the Ghost for responding. I am using a laptop and based on you guys suggestion I think I have seen the problem. I have drag lock and tap selected.
    However, these are features that I deemed to be necessary. I have been using laptops for quite a while, especially the tap feature, from my first laptop the 3400. In fact, that's all I can do on my 3400 since the selector is broken. (I still have it, the screen is great, even got it using wireless to surf the web. It's such a great design icon.)
    So I will mark this as resolved and just have to watch how much pressure I apply to the trackpad when I go to move the cursor. I would never have though of this...smile. Now the annoyance is gone. I am sure Apple will add tailoring in the future.

  • Has anyone else developed the problem of an over-sensitive MacBook AIr cursor?  In the last few days mine has developed a mind of its own, and when you move it to the desired spot it can jump quite randomly.  In mail, I try reply but it's jumped to "fwd"!

    Has anyone else developed the problem of an over-sensitive MacBook AIr cursor?  In the last few days mine has developed a mind of its own, and when you move it to the desired spot it can jump quite randomly.  In mail, I try reply but it's jumped to "fwd" instead!  Irritating.

    Jumpy Trackpad
    http://support.apple.com/kb/TS1449

  • Macbook mousepad/cursor is too sensitive

    My cursor/mousepad is wonky.  When I scroll the thing just flies all over the place and if I stop the cursor on something it opens/deletes or scrolls seemingly on its own. Very irritating.  Seems to have been this way since the last update.

    Trackpad or Magic Trackpad is jumpy or erratic - Apple Support
    Read everything and reply with your results.

  • How do I stop the cursor from having a mind of its own?

    I just received this computer T400.  A mac user wswitching over to pc - not famliar with the land.  I am using a notebook and the cursor clicks on its own when I let it rest and then transports me to whatever information/page that it happens to rest upon.  needles to say this is very tiring.  I have tried to go to the help section and there is not informaiton about how to stop this from happening.  There is informaiton for mouse control.  The information I found on the cursor only spoke to the rate of blinking.
    also, I would like to incluse word in my start up programs and can't figure out how to do that.
    the cursor information would be most useful to me at the moment.  Thank you.

    onlinebabe, welcome to the forum,
    you probably need to turn off or adjust the sensitivity of tapping in the UltraNav Touchpad properties. Go to Control Panel > Mouse and select the UltraNav tab and adjust the settings.
    Do you mean that you want word to start automatically when windows starts? Right click in an empty area of the task bar and choose properties > Start Menu > Customise and add Word to your Autostarts folder.
    Hope this helps
    Message Edited by andyP on 10-11-2008 08:38 PM
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • The cursor moves at will while I am typing and screws up the work I have done. Can I trash the comp

    Is there any way to reduce the sensitivity of the mouse pad? 
    I have a laptop that is still under warentee.  It has been in the repair shop and I have contacted HP support twice.  I cannot type a complete sentence without the cursor jumping to another location and screwing up what I have already typed.  I know there is a double click on the mouse pad to turn it off,  but that is un-acceptable because I have to keep turning it on to move the cursor to another spot to operate a function then turn it off again.  Can I either:  return it to HP for a real computer, or, let the neighbors dog chew on it for a few days then throw it in the trash?  I have an HP printer that works very well for me, but for the money spent on this computer,  I don't think that any other HP products are in my future if this problem is not resolved soon.
    At this point, there has not been anyone who seems to understand how to fix it.  The telephone assistant really tried to find a solution, but it likely was not something that was covered in his flip chart. 
    I have had other computers and not one of them has been like this....  Perhaps I bought a top of the line laptop for not!
    It is a Pavilion dv6-6149nr. 
    It runs out of warentee on July first of this year.  I am discusted with it and the lack of help for the problem.  I have put up with this problem for long enough.
    Harry Payne
    912 West 1630 North
    Orem, Utah 84057
    801-226-2723
    This question was solved.
    View Solution.

    Hi,
    Check if this Post helps: Click Here
    Note:
    If you have HP Support Assistant installed on the computer(The Blue Question Mark) then open it ==> Complete all pending Updates & Tuneups==> Restart and Check. It may solve your problem
    Although I am an HP employee, I am speaking for myself and not for HP.
    **Click on “Kudos” Star if you think this reply helped** Or Mark it as "Solved" if issue got fixed.

  • Lenovo Yoga 13 - Tochpad Problems / Cursor Jumps

    Hey everybody,
    Problem: If I rest one fingertip on my touchpad and do NOT move it, the cursor will jump in vertical direction up and down.
    My System:
    I have a Lenovo Yoga 13, i5, 8GB Ram, 128 GB SSD
    OS:
    Windows 8.1 x64 fresh install (not original Lenovo version)
    Linux Ubuntu 14.04 x64 LTS dual boot
    BIOS: latest version Rev 55
    Detailed Description:
    This problem occurs in both operating systems, but not always. Cleaning the Touchpad does not have an influence. If I rest my fingertip on the touchpad and do not move it, the cursor will keeping jumping up and down with mainly small but rarely high altitudes. This behavior is illustrated in this Youtube Video which I recorded in Ubuntu. If the cursor disappears from the recorded area, a huge leap was performed and I have to move the cursor into scope again.
    Already tried without success:
    reinstall OS (both)
    BIOS upgrade
    Driver-update (even though problem seems to be OS independent)
    BIOS factory reset
    This problem really drives me nuts Working becomes a really frustrating job, cause you will hit wrong buttons very often...
    Looking forward to your help!

    it only happens when you touch the touchpad? I understood it happened when you did not....
    If it happens only when you touch the touch pad, decrease the sensitivity of the trackpad and check "increase pointer accuracy".

  • Brush line jumps away from cursor?

    Every time I use the brush, pencil or eraser tool, it jumps a couple of cm away from the cursor. The line then continues, and although the cursor shows up in the right place and the line itself is fine in terms of responsiveness and pressure sensitivity, it appears away from the cursor.
    The other tools are fine- even the lasso tool draws a line in the right place. I assumed my monoprice tablet was just incompatible with flash, but the same thing happened when I tried my wacom tablet (bamboo pen and touch). Both tablets still work perfectly in photoshop.
    I have tried uninstalling and reinstalling the drivers for both tablets in turn, and even uninstalling and installing flash again, but theres no change. I also tried messing with the tablet settings, and removing all wacom preferences, but nothing worked.
    Any ideas?
    (I am using an up to date version of flash pro cc, with windows 8.1 on a laptop with an intel i7 processor, 16gb ram and dedicated graphics)

    Hi Julian,
    Can you please confirm the following .
    what is your machine resolution is it  HIDPI machine ?
    and if your text resolution is set to more than 100% , can you please change it to 100% and try again.
    Thanks!
    Latha

  • How do I stop my cursor from activating when I hover?

    I recently changed out my old trackball to the Apple Bluetooth trackpad (OS X 10.10.1 on a late 2013 Macbook Pro).  Ever since, the cursor will activate a button/link if I hover briefly (less than a second), so I'm constantly being taken to pages I don't want to see, even though I haven't clicked on the button/link. How can I prevent this (or at least add to the delay before it activates)?
    Many thanks,

    Check your settings.   Are they set too sensitively?

  • XY Graph Cursor Problem in Labview 7.1.1?

    Hallo,
    I am  using Labview 7.1.1 and I am facing one problem with XY graph cursor. If I am moving cursor in one graph, I am expecting same movement in another Graph. But when I move cursor in Graph1, cursor in second graph moves but not to exact X value of Graph1.
    Property of Cursor in both graphs must be "Lock to Plot"
    If any body knows about this please let me know ASAP. I am attaching example VI for your reference.
    Thanks,
    Sashi
    Attachments:
    XY Graph Cursor Problem.vi ‏101 KB

    It's a curious effect. Probably the floating point coordinate is sensitive to the exact pixel alignment (I mean that this would not happen if we had for example 1 pixel per point in the X direction).
    Anyway, if you use Cursor Index instead (which is an integer) the behaviour is as expected.
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • Clicking on touchpad too sensitive, how to change..

    I recently bought a Dell XPS 15 9530. I want to change the touchpad sensibility to clicking, as it is too sensitive, but I can't find this option in control panel --> mouse --> "dell touchpad". 
    I'm NOT looking for a way to change the sensitivity to moving the cursor, that one I can find, but clicking to select etc on the touchpad. What happens all the time is when I want to just move the cursor the touchpad believes I'm clicking and I accidentally select files/moves them etcetc..
    Sorry for not being able to explain this better, english is not my first language.

    Hi,
    If the machine is on windows 8,
    under the Windows 8 settings app (-> PC and devices -> Mouse and touchpad). This is apparently configurable only in the settings app, and not anywhere under the Control Panel.
    Regards

  • [solved] damn fast cursor (and sometimes small fonts) in gdm and GNOME

    Hey there!
    Since yesterday's pacman -Syu (unfortunately I can't remember the packages beeing updated ), my cursor moves damn fast, i.e. the cursor is very (very! ) sensitive to mouse movements! I have a Logitech MX Laser, but it's the same with an old mechanical mouse.
    My second problem (that came up a long time ago) is that gdm sometimes has a smaller fontsize (i.e. text entered in the login textfield is smaller than usual); and I have to restart X to reset the fontsize, otherwise it will be the same in GNOME. That often occurs after an update on X.
    Any hints for me (mainly for the first one, I can live with the second...)? Thank you!
    Last edited by kwurzel (2008-03-26 12:44:35)

    Try appending this resolution line to the mouse section of your /etc/X11/xorg.conf
    I think setting a lower value will reduce the sensitivity.
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "Auto" # Auto detect
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    Option "Resolution" "128"
    Last edited by dyscoria (2008-03-26 11:48:39)

Maybe you are looking for

  • Create inventions with MAKE_CALENDAR_NODE from CL_DOCUMENT_BCS

    Hi experts, is it possible to create inventions with MAKE_CALENDAR_NODE ? I search, but I don't find any information. Is there someone who knows anything about this ? Thanks for answers. Angelika

  • Dev Days Tutorials : Can't log into Apex and Can't connect to Ora server

    Hello All, I downloaded the pre-built Oracle VM from Developer Days. The setup works fine. I am now trying to follow hands on labs. There are a couple of things I am stuck at (at the very beginning). 1. The link to http://localhost:8080/apex does not

  • System Spell Checker 'stuck' on American English

    Hi, Running OS X 10.8.3. I have my language settings set to Australian English. How ever, when typing in system applications such as Mail, or Notes, the OS X System Spell checker is spell checking based on American English. For example; when typing a

  • File History Bug - Retains Only Last Version of Each File

    I've just discovered what I believe to be a serious bug in File History on Windows 8.1.  Here's what's happening: My files are backed up using File History on a 1TB external USB hard drive with 17.5GB free.  Currently 9GB of selected documents, etc.,

  • QoS: Is it something that practically can be applied?

    Hi All; We have a network and containing IP Telephony, and they place VoIP calls via the Internet, but actually as the network users have a lot of browsing, uploading and downloading data traffic, so the voice is cutting. Can the QoS help to resolve