Cursor and Triggers.Please guide

This is a cross post.no offence please
I have written a trigger with a cursor
and been advised to close the cursor
in code called by triggers
Can anyone tell me why this is useful?

As Tom Kyte points out
http://asktom.oracle.com/pls/ask/f?p=4950:8:11220850869708805739::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:1089433252941
and we can check:
SQL> select n.name, s.value from
  2  v$mystat s, v$statname n
  3  where s.statistic# = n.statistic#
  4  and n.name like '%cursor%';
&nbsp
NAME                                          VALUE
opened cursors cumulative                       665
opened cursors current                           26
session cursor cache hits                         0
session cursor cache count                        0
cursor authentications                           46
&nbsp
SQL> declare
  2   cursor s is select * from emp;
  3  begin
  4   open s;
  5  end;
  6  /
&nbsp
PL/SQL procedure successfully completed.
&nbsp
SQL> select n.name, s.value from
  2  v$mystat s, v$statname n
  3  where s.statistic# = n.statistic#
  4  and n.name like '%cursor%';
&nbsp
NAME                                          VALUE
opened cursors cumulative                       670
opened cursors current                           26
session cursor cache hits                         0
session cursor cache count                        0
cursor authentications                           47local cursor is closed whan it is gone out of scope.
Scope here is an anonimous block.
Whan the scope is "global", cursor keeps it's state
between calls.
Rgds.

Similar Messages

  • Please help me to find my iPad and iPhone 5C. I lost all of them last night. I set up icloud for my devices but i can't find them because they were not connect to the Internet. Please guide me other ways to find my "best friends".

    Dear Apple,
    Please help me to find my iPad Air 2 64 GB and iPhone 5C 8GB. They're in IOS 8.0 maybe...I lost all of them last night. I set up icloud for my devices but i can't find them because they were not connect to the Internet. Please guide me other ways to find my "best friends". They're very important to me. Many important files for my job in here and it has sentimental value to me. My boyfriend gave it for me so i don't want to lose them. And because i just lost my iPad Air last 3 month, and now i just bought iPad Air 2 two months ago. I'm so sad and lost. I want to catch the thief to the police so bad because they keep my bag and many other important things. I can not do anything without them. Please help me and contact me via my email or my phone. Thank you very much. Hope to receive your answer soon.

    Hey there thaovy309,
    Welcome to Apple Support Communities.
    The linked article below provides a lot of great information and suggestions that should address your concerns about your data and finding your lost or stolen iPhone 5c and iPad Air 2.
    If your iPhone, iPad, or iPod touch is lost or stolen - Apple Support
    Take care,
    -Jason

  • HT3777 I have a Window 7 HP laptop. I want to install Snow Leopard on an external hard drive as the memory space on my laptop is very less. I have the original snow leopard disc and I think it's a retail version . Please guide me through the installation.

    I have a Window 7 HP laptop. I want to install Snow Leopard on an external hard drive as the memory space on my laptop is very less. I have the original snow leopard disc and I think it's a retail version . Please guide me through the installation in details. Can you also please let me know about this boot camp.

    You cannot. From a legal standpoint, the license agreement for OS X mandates that you run OS X only on Apple hardware. HP is not (yet) owned by Apple.
    From a technical standpoint, your HP laptop doesn't use EFI, but rather an early predecessor called a BIOS. Apple is the only vendor of consumer computer hardware that uses EFI; other vendors reserve EFI for use in servers.
    Secondly, Apple's operating systems support a rather limited number of configurations of video hardware and mainboard chipsets directly since they need only support those systems that they manufacture. You cannot use Windows software or drivers on OS X, so prior to installation, you would need to write your own hardware drivers for your laptop, create an OS X drive image on a Mac, and then modify that image with your drivers before putting it in the HP.
    It will be simpler (and legal), to simply purchase a used Mac. Apple's online store has refurbished MacBook Airs starting at $850 and Mac Minis for $700. If you go to e-bay or craigslist, you'll find used Macs for considerably less.

  • HT2305 I have forget my 4 digit passcode for my ipad 3 and exhausted all the attempts, Now the screen shows "ipad is disabled connect to itunes" How can I unlock my ipad now. Also I have not put "Find my iphone" in icloud as well. Please guide me to unloc

    I have forget my 4 digit passcode for my ipad 3 and exhausted all the attempts, Now the screen shows "ipad is disabled connect to itunes" How can I unlock my ipad now. Also I have not put "Find my iphone" in icloud as well. Please guide me to unlock it.

    Also when I am trying to connect ipad to my windows PC, it shows, your software is up to date and later starts restoring while updating again. Then automatically it stops to update halfway and I have to repeat the process again and again, still in vain.

  • I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.

    I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.

    OS X can natively read NTFS of Windows, but not write to it.
    Windows can't read or write to HFS+ of OSX, and that's a good thing from a security standpoint.
    Ideally if you share files between operating systems you should have a FAT/MSDOS formated USB key or hard drive. (exFAT external drive if any of your files are over 4GB in size) both these formats are universal for OS X or Windows.
    If you install software into Windows and OS X to read each others formats, then you have to pay to update/upgrade it deal with headaches.
    If you swtich between Windows and OS X a lot, don't need full hardware performance for Windows, you may consider installing virtual machine software like VMFusion or Parallels which can take a copy of your Windows in Bootcamp and place it into OS X as a file then run that copy of Windows in a window in OS X like so.
    Advantage here is you run most of your light weight Windows programs like this at the same time as OS X.
    Benefit is you can run just about any Windows or Linux version and OSX server editions (not client versions)
    Bootcamp only allows Windows 7, that's it now.
    You'll also be interested in two fre pieces of software, Carbon Copy Cloner and Winclone on macupdate.com.
    CCC clones OS X partition and Winclone clones the Bootcamp partition. Valuable for you.
    Good Luck

  • On an iMac I can't enter any text in safari or Firefox header bar. In all my program's I just have the arrow cursor and can't change to any tools in the tool bars - please help!

    I cant type any text in safari or and in all programs i have the arrow cursor and can't change to any tools in the tool bars - please help!

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Experts please guide me in Sap Abap Hr and in Sap Hr. I have 1 year exp but didn't get job wht to do  ?

    Dear SAP Experts ,
    I Have 1 year exp as an Associate SAP ABAP HR Consultant and i have done MCA but still didn't get any job i am free from 3 months didn't get any call please guide me what to do my abap is not much strong but hr is good . i am so upset tht planing to move in other job profile like SEO or work as HR executive for getting domain knowledge.so plz guide me wht to do and please also tell in ABAP HR which main topics i have to make strong ?
    Thanks
    Regards,
    Vikrant
    <<Moderator Message: How many times are you going to ask the same question?>>
    Message was edited by: kishan P

    Hi Vikrant,
    Since you are more interested towards HR than ABAP, in long term you can think of moving into SAP HCM functional career. And to be able to work as a functional consultant, you need to have good amount of business process knowledge. Considering this you can start working in core HR and gain domain experience and move your career later towards functional area.
    And more over you have ABAP HR experience,this will be very handy when you are a functional consultant.
    Regards,
    Ravi

  • Hi I bought an iPhone from my friend who forgot the username and password, and now my iPhone Aktyvyshn code and that it wants to register Forgot your password to her email, please guide me

    Hi I bought an iPhone from my friend who forgot the username and password, and now my iPhone Aktyvyshn code and that it wants to register Forgot your password to her email, please guide me

    You can NOT do so. Only the owner of the account used to lock the phone can remove it. Instructions for how to do so can be found within or linked from within the document I already linked to.
    Activation lock is an anti-theft feature designed to make the device useless to anyone other than the rightful owner.
    If your friend refuses to give your money back and can not or will not remove the activation lock, there is a fair possibility that the phone was not theirs to sell in the first place.

  • My mini i pad 2 retina display screen is not work correctly after two days of buying appear some gray line on screen un furtunately i live in iran and i havnot access to any i pad store please guide me

    My mini i pad 2 retina display screen is not work correctly after two days of buying appear some gray line on screen un furtunately i live in iran and i havnot access to any i pad store please guide me

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
     Cheers, Tom

  • Please guide me in Finding a sign appeared on the screen as iTunes and USB cable and connect your computer to a conclusion did not even thank

    Please guide me in Finding a sign appeared on the screen as iTunes and USB cable and connect your computer to a conclusion did not even thank

    Do as the image suggests, connect the device to a computer running iTunes.
    If it is still not working, try posting in your native language.

  • HT4972 Hi! I have tried to update OS from 4.3.5 to latest on Ipod touch but every time after 70% completing an error is prompted and say update cannot be completed. Please check the setting. Please guide in this respect to be updated.

    Hi!
    I have tried to update OS from 4.3.5 to latest on Ipod touch but every time after 70% completing an error is prompted and say update cannot be completed. Please check the setting. Please guide in this respect to be updated.

    Disable the computer's firewall and antivirus during the download and update.

  • Dear Friends...... I have an ipad 2 32gb with wifi and 3g enabled sim..... i bought it second hand .... and now if am going to download any games it is showing me an email id and asking for its password... please guide me how can i change this setting

    Dear Friends...... I have an ipad 2 32gb with wifi and 3g enabled sim..... i bought it second hand .... and now if am going to download any games it is showing me an email id and asking for its password... please guide me how can i change this setting to my email id and password

    Tap on the id in Settings > Store and log out of it and then login with your id. Any content already on the iPad will be tied to the previous owner's id and it can't be copied or transferred to your id - so it's probably best to do restore the iPad back to factory defaults and start as from new with it : Settings > General > Reset > Erase All Contents And Settings

  • I can not connect to iswifter, some times it is connected and some time it shows " UNABLE TO CONNECT TO SERVER PLEASE CHECK THE INTERNET" but my internet connection is good and other wbe site i can open without any problem. Please guide  me..

    I can not connect to iswifter, some times it is connected and some time it is not connected and getting message " UNABLE TO CONNECT TO SERVER , CHECK YOUR INTERNET" but my internet connection is ok and I can open other web site with out any problem.  Please guide me how to solve this issue.

    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
     Cheers, Tom

  • Please guide the path in Service Market Place to find CR2008 latest Service Pack and CR2013 latest Service pack with Visual Studio integration

    Please guide the path in Service Market Place to find CR2008 latest Service Pack and CR2013 latest Service pack with Visual Studio integration for CR2013; I have S userID  and log in; but could not locate the place to download

    Hi,
    I believe you are right!, The support portal is Showing Crystal Report for VS not the other one; 
    Our S User ID is out dated might be; It was created when CR 2008 was purchased. But we bought CR2011 license recently  as mentioned below.
    Below is the product purchased by our organization
    CR 2011 INTL UPGR WIN NUL LICENSE - 1 to 2 Licenses, mix and match.
    Does this version have maintenance rights?
    I tried registering at Service MarketPlace hoping to get new S-User ID; Am i right path to get the new S- USerID ?
    During registering it asked for "Customer or Installation Number (1) *" ; Where can i get this info or number; Kindly suggest

  • HT4623 my current ios is 4.3.3 and i need to upgrade to latest iOS Please guide me?

    my current ios is 4.3.3 and i need to upgrade to latest iOS Please guide me?

    If your iDevice is using a version of iOS lower than 5, you will need to use iTunes on your syncing computer to perform the upgrade. Use the Apple link below as a guide for the upgrade.
    http://support.apple.com/kb/HT4972

Maybe you are looking for