Finding the right line when Oracle says an error happens at a line number.

Hi,
Were using Oracle 11.1.
I use TOAD 10 to develop.
When I run a procedure sometimes I'll get an error message saying "an Oracle error happened at ### line number"
When I go to that line number, that's usually not where the error is.
I'm not talking about an error where they say it occurs at line 1.
It'll say line 124 and in the TOAD editor that will occur in the middle of a cursor or something.
I'm pretty sure that's not where the error actually is.
Is there any way to find out where Oracle is talking about?
Thanks!

Hi,
In triggers, the first DECLARE or BEGIN statment is counted as line 1, even though there are often several lines before that.
In other procedures, the line numbers are relative to the beginning of the relevant CREATE statement, e.g. "CREATE OR REPLACE PACKAGE BODY ...".
Where these statements are in your files has nothing to do with the error messages. For example, if you have a package spec that goes on for 50 lines, then 10 lines of comments, and then a package body, all in the same file, then the line numbers that you see for the pacakage body will be 60 lower than the line numbers from your file. (You may want to use separate files, each starting with a CREATE command on the fitst line, for just this reason.)
Oracle often gives multiple error messages for the same error. For example, if a cursor definition begins on line 50, and you mis-spell a column name on line 55, you may get a message saying "statement ignored" referencing line 50, but you'll probably get another (more useful) error referenccing the particular problem on line 55.
Of course, some errors can't be detected right away. For example, if you forget a single-quote at the end of a string literal, the compiler will think that all your subsequent code is part of that string literal. Not unitl it encounters another single-quote, perhaps at the beginning of another string literal, dozens of lines later, will it know that any error occurred.
Those are the main pitfalls I know about.
If you have an example of something that confuses you, post it. Shorten the code as much as possible such that it's easier to post, but still gets the same error. Post the complete error message, too.

Similar Messages

  • Suddendly (no external shock) Thunderbird stopped finding the address book, but it finds the right addresses when sending a mail with a name existing in the Boo

    The phrase is all what happens. If ask for the address of, say, Joe (existing in the book), it gives nothing. If I write an e-mail message to Joe, Thunderbird inserts the correct address to Joe, and if I send it, it goes correctly. The Address book looks "strange" its content (nearly empty) does not correspond to what it was. I am working in Linux Mint 17.1 with great satisfaction fo the rest.
    Thanks for helping. Giancarlo.

    Thanks for answering,
    however I miss what to send you: The address book is missing most of my contacts (they were there, before), but if I send a mail to one of those missing contacts Thunderbird attach the correct address without my intervention: funny. Mau be a virus did that, bu how can I recover the missing address book (hidden somewhere, certainly). I cannot show in a screen copy the facts I describe here. Anyway I enclose the screenshot of the opening of the actual address book. Please ask me any useful question on the above.
    Again thank and greetings,
    giancarlo.

  • Finding the right map to load

    Would just like to note that it is very hard to find the right map when all you want is a city. For example, I am hoping that Lyon is in the France map:Center
    I would really like a way to locate the ma that is going to give me a city I am going to travel to.
    Regards,
    Michael

    It should be in Rhône-Alps as aspergerguy has mentioned..
    Check it out here..
    http://maps.ovi.com/#|45.7594|4.82897|3815|0|0
    Type ' Lyon, France' in the 'Type any address, business or place name box'.. and hit GO.. 
    --------------------------------------------------​--------------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • SapScript, How do I read the current line number?

    I have sections of text - each in it's own element with an 'include' of the standard text.
    These sections are variable in size.
    All elements are in the MAIN window.
    I do not want a paragraph to split over two pages.
    How do I read the current line number within the sapscript before the section prints so I can issue a new-page command at the beginning of the paragraph?
    Thanks!

    Yes, that does work for paragraphs.
    If I have multiple elements to print from within a loop where "at first, at each and at last" each call the Sapscript funtcion write_form - how can I keep the whole section together.  protect/endprotect will keep each element together but not the group of elements.
    There must be a way to find the current line number.

  • Why does premiere elements 8 say I need the right 'codec' when trying to open hdd video?

    Why does premiere elements 8 say I need the right 'codec' when trying to open hdd video?  where can I find this codec?

    hey, I'm not sure if I've set it up for hard drive video.  When I
    try to import it says it's the wrong codec.  I had a similar problem with windows moviemaker.
    except the error message there (moviemaker) said 'too many methods firing from events'
      hmmm.  I don't know what it all means.  I have an hdd sony digital handycam.
    dcr-sr45 is the model.  any suggestions?

  • HT2712 Network ip address keeps changing and for some reason I can't find the right settings. The diagnostics says to check with my network  administrator,  but idk whom that is being at a motel and all. I have made. New locations, & changed the ipv4 addr

    Network ip address keeps changing and for some reason I can't find the right settings. The diagnostics says to check with my network  administrator,  but idk whom that is being at a motel and all. I have made. New locations, & changed the ipv4 address. Help plz

    Hmmm, is Network set to using DHCP?
    Go to System Preferences
    Click Network
    Highlight AirPort and click Configure...
    Choose “By default, join: Preferred networks”
    Select your access point and Remove your access point with the minus button.
    Launch your keychain access in Utilities and delete your access point keychain entry.
    Reboot
    Go back to the “By default, join:” page and click the plus this time to add your access point. Enter the correct password, save, reboot.
    Instead of joining your network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed

  • Where to find the top line on a page on the Internet at IMac? I lost it when was trying to set my ITV on my computer. Can't go to any pages, because there is no line on top of the page. Thank you.

    Hello, where to find the top line on a page on the Internet at IMac? I was trying to made some settings to my computer and now I lost the line on top of my computer , when I open a page. Thank you.

    I'm not sure which line you are refering to as the top line.
    What web page? 
    What web browsr?
    What do you expect to see on the missing line?
    How about a picture?
    How to show us a screen image.  Avoid personal identification.
    command + shift + 3   Will take entire screen.  You hear a click.
    command + shift + 4 Lets you decide what to take.  Mouse pointer changes. Move mouse to upper left corner of desire image.  Hold down left mouse key where to start image.  Drag mouse to lower left of where you want to stop image.  Release mouse.
    You will get a picture n.png file on the desktop.
    one the forum input panel you will see the camera icon.
    click on camera icon.
    another window will appear.
    Make sure you have selected the from your computer tab.
    click on Browse button
    An open file panel appears.  Select the file.
    After selection a file, I have this screen showing.
    You will have to click on Insert Image.  You may have to scroll down to see Insert Image button.

  • Itunes says it cannont import since it cannot find the right folders?!?

    itunes says it cannont import since it cannot find the right folders?!?
    i plugged in my ipod, and that's what it says!! i cant import anything into the ipod
    does anyone know how to fix this??

    I am having the exact same problems as you are. Same messages. Mine will actually sync some of my music then the message comes on. I'll plug my ipod back in and it will load a few more. Eventually it all freezes up and deletes everything on my pod.

  • I can't find the Demo Sample for Oracle AIA FP 2.5

    Hi,
    Can someone please help me find the Demo Sample for Oracle AIA FP 2.5? What I found is the Demo Sample for Oracle FP 11g, are there any ways to deploy it given that the version I'm using is AIA 2.5?
    Thanks,
    Eric
    Edited by: 865059 on Jun 10, 2011 3:30 AM

    I've checked out the logs, I found out that I was not able to build the DeployDemo.xml successfully though it says "BUILD SUCCESSFUL".
    The deployment failed when the script is trying to deploy the CustomerService.ear
    /FS/oracle/product/aia/samples/AIADemo/scripts/DeployDemo.xml:70: The following error occurred while executing this line:
    /FS/oracle/product/aia/samples/AIADemo/scripts/AIADemoCoreDeploy.xml:82: The following error occurred while executing this line:
    /FS/oracle/product/aia/samples/AIADemo/scripts/DeployWebServices.xml:18: Deploy error: Operation failed with error:
    jdbc/soademoDS not found

  • I have a Serial Number, but i cannot find the right program

    Hello,
    I bought 3 years ago the Creative Suite 5.5 Design Premium for Students (Mac). I am located in Turkey when it is importend.
    2 days ago i formatted my Mac. Now i am trying to reinstall my Creative Suite. I downloaded the program from the adobe website, because i couldn't found DVD. But program doesn't accept my Serial Number, it doesn't match.
    I am also not sure about the Creative Suite 5.5 Design Premium, but it is written on my registered Adobe account, so also the Serial Number
    How can i find the right download for my Serial Number?
    BR
    Ugur

    Adobe might be able to say, but most people here are not Adobe employees.  Try contacting Adobe thru chat.  You will likely need to share your account information with them in order to determine which program you might own.
    Chat support - For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • How to find the right primary key for DSO from Business Content

    According to best practice design, it is reccomended to make a  DSO where all fields from Business COntent Datasources are transferred.
    But, how to find the right primary indeks ?
    Any good suggestions ?
    For many of the Business Content dataflows there are not DSOs present, so ther e is no tip to get from the dokumentations as gfar as I have found.
    best Regards
    Ingrid

    Hi Ingrid,
    Your question will be perfect in case if you are going for a Custom cube.
    You will not have any problem when you create a Datasource in R/3 level even if it is been built on a single table or on view.
    Only point that you want to know how to design my Key fields in ODS.
    This will be purely depends at what level that you want to bring the data.
    Egg:-
    If you run the data source in RSA3 and check for Each GL if you have 10 liine items and you want all the 10 line items to be transfered to BW.
    In this case you need to check what is the unique combination of fields that is making this lineitems to exists as 10.then include all those fields into Your ODS Key Fields.
    This way you can have 10 records for that perticular GL in both sides, by which u will make sure that the data is been completely transfered.
    If in case if you clude your own Key fields then you will get the correct Total in report for each GL but you can't see all those 10 line items.
    For any case you need to figureout how many records that you want to take into BW based on that check the fields that makes it unique and then add them to ODS Keyfields that will solve your requirement.
    I think this will clear your doubt.
    Best Regards,
    VNK.

  • Finding the right computer

    I'm not that knowledgable on laptops and I'm looking to purchase one where do I start?

    Credit goes to an Author by the name of Paul Tansey on BestBuy.com  for creating this buying guide:
     Laptop Computer Buying Guide
    By Paul Tansey  
    There's no way around it: you need a computer at home. Computers make it so easy to stay in touch, stay organized, entertained and informed, it's a wonder we ever did without them.
    With laptop technology advancing in leaps and bounds, there's no reason you can't take this power and convenience with you wherever you go, considering you can stay connected wirelessly just about anywhere these days. And most laptops can do anything a desktop can do, without the bulky tower and without forcing you to stay indoors. So just because you're working doesn't mean you can't work in the park!
    There are about as many different kinds of laptops out there as there are ways to use them, so let's look at some key points that will help you decide which one is right for you.
    If you want the basics...
    Choose a model that has the features you need to everyday computing. Not for making crazy rocket science calculations or memory eating applications, but to do the things that make life easier, like e-mail, Web browsing and word processing.
    Most models come with wireless capability, so you can grab a seat in any wireless Internet hotspot and surf to your heart's content.
    If you travel a lot...
    Many newer laptops are thinner and lighter than ever but still deliver heavyweight performance, packing all of the processing power, hard drive space and versatility you want into a thin frame that weighs less than 4.5 pounds. You'll pay a little more for the thin and light, but if you have to carry your laptop around with you wherever you go, you'll very quickly appreciate leaving the extra bulk behind.
    If you're big on home entertainment, photos and music...
    These top-end models feature big widescreen displays enhanced for crystal-clear, smooth video playback. The video cards, processors and operating systems are also enhanced for high-performance video and audio, with Media Center models featuring personal video recorder (PVR) capability, a built-in TV tuner, surround sound and multiple digital and analog video inputs.
    PVRs will change how you watch TV. Pause and replay live TV, then skip back to the live feed when you're ready. You can also program your laptop to automatically record your favorite shows.
    For your always-growing collection of images and music files, there are models that feature faster processors, more RAM and larger hard drives. They are also enhanced for displaying photos, and you have more options for getting your media into the computer, including additional USB slots and built-in memory card readers to swap images straight from your digital camera or other device.
    If you're all business...
    Professional Series laptops meet the demands your business requires whether you're working from home, in the office or on the road.
    Since your laptop is your business, look for enhanced security features like a fingerprint reader, which allows only authenticated users to access it, and an encrypting file system to allow for file and folder encryption at the user level. Some include motion-sensing hard drive protection that safeguard the laptop's hard drive against damage from a sudden movement or drop - important to consider when going from meeting to meeting.
    If size matters...
    Laptops come in all shapes, sizes and weights. Many are now an inch thick or less, with absolutely every millimeter of internal space used efficiently. These thin laptops don't lose a step compared to their beefier competition, with just as much processing power and a screen size and keyboard that won't leave you feeling shortchanged.
    As laptops get a little larger, the size of the screen also climbs. You can find high-performance Thin Film Transistor (TFT) LCD screen sizes ranging from 4.5" to 17" or more, most set up as widescreens.
    If you prefer wireless freedom...
    Nearly all laptops are capable of working wirelessly, with wireless cards and processors enhanced to perform when you're connected at a hotspot. Many laptops now include Bluetooth wireless for easy, safe, secure linking with a wide range of other devices, from handhelds to cell phones to wireless headphones.
    Instead of confining yourself to your office or den, or inflicting a tangle of wires and computer components on your décor, you can set your family up with a network of wireless laptops. Everyone gets the access they need, when and where they want it. Plus, if you need your computer for work, you can take everything with you and not worry about leaving a file behind or denying anyone their computer time.
    Multiple users can go online at once, and all of the same access protection can be installed to keep your kids away from online dangers. You can all use one central wireless printer and scanner for total convenience.
    If performance is key...
    Processing power can separate the handy from the incredible, so if performance is key, look for more processing power. Most processors will fall within the range of 1.0GHz to 3.0GHz, but different types of processors excel in different ways.
    The Intel lineup starts with the Celeron® M, while the Pentium® Dual Core is peppier and more powerful. The top-of-the-line Centrino® chipsets feature Core™, Core™ Duo and Core™2 Duo processors with built-in wireless capabilities, improved power-saving capabilities and enhanced performance.
    AMD also has a good range of processors. The AMD Turion™ 64 X2 and Turion™ 64 mobile technology is similar to Centrino® and adds wireless performance to their high-end processors with some supporting Bluetooth technology.
    RAM is also an important performance factor and serves as the real-time memory that makes your applications run faster and makes it possible to work with huge files. RAM starts at about 512MB, but most models can be upgraded with extra memory. You can find some that can be upgraded all the way to 4.0GB, which comes in handy for demanding multimedia applications.
    Many of the higher-end models will also include a generous amount of RAM built into the video card for smooth performance, especially for today's advanced 3D games.
    Drives
    Hard drive sizes vary considerably, from about 60GB (more than enough for basic computing needs) all the way up to 240GB, ideal for multimedia, home entertainment and games. Faster hard drives (measured in RPM) are better for quick access to data and for smooth video and game operation.
    Optical drives - The DVD/CD drive is at least capable of reading DVD-ROMs and burning CDs, but more and more can now work with rewritable DVD±R/RW and even double-sided or double-layered DVDs. If you need better performance, look for write speeds in the range of 24x for CD and 8x for DVD.
    Increasing the cool factor, optical drives on some HP computers are outfitted with a technology called LightScribe, which can burn a professional-looking label right onto your disc.
    The softer side
    The operating systems you can choose from will also impact performance, and will often include software to work with photos, multimedia or even TV.
    Windows Vista features Windows Media Center, a multimedia powerhouse that lets you watch your favorite shows, enjoy prized photos and manage your music. In addition, Windows Vista has numerous enhanced security features, new interface elements and increased mobility for working with other users or devices.
    The Apple® Mac OS X 10.4 Tiger also delivers great multimedia and networking performance and comes bundled with photo, music and moviemaking software.
    Staying power
    Battery life is also a consideration. Many manufacturers have been working to improve the efficiency of their systems to extend the amount of work you can accomplish per charge. This will come in handy on long trips or when you have to finish a project but can't find anywhere to plug in, like when you're on a park bench or a coffee house patio.
    Accessories for protection and convenience
    First and foremost, a laptop case will not only make it easier to carry around your computer and its related accessories, but it will also protect your investment. Laptop cases range in size, with some designed for style and others for capacity, and many for both.
    A small laptop mouse will give you a welcome break from your current pointing device, making it easier to navigate your screen. They come in either wired or wireless versions. An extra power adapter - one in the bag and one for the office - and back-up battery are also a good idea, so you never get caught without power.
    A flash drive that plugs directly into a USB port is an inexpensive and efficient way to transfer files. Pop one into your laptop case.
    With a better understanding of what separates a good laptop from a great one, it's easy to find the right one for you.
    Shop our current selection of laptops or check out our Laptop Finder. 
    *******DISCLAIMER********
    I am not an employee of BBY in any shape or form. All information presented in my replies or postings is my own opinion. It is up to you , the end user to determine the ultimate validity of any information presented on these forums.

  • Finding The Right App

    im having trouble finding the right app for my ipad. i will spend money and everything, but there are just no good apps out there. the type of app i want is a creation app, sort of like google sketchup, or even better, something like cinema 4d. ive never seen any app come even close to anything like that. i just like making and designing things. i play the game "Soundrop" alot because you just simply create lines into creative little structures and paths for the balls to bounce. if they ever came out for a line rider for the ipad i would probably pay $50+ just for that one app which already exists on the iphone but sadly not on the ipad...does someone have any suggestions for any apps that you think i would like?

    if they ever came out for a line rider for the ipad i would probably pay $50+ just for that one app which already exists on the iphone but sadly not on the ipad
    Sure it is. $2.99
    -> Line Rider HD

  • "system cannot find the file specified" when launching a java app

    Hi,
    we are receiving an error message saying "The system cannot find the file specified" when launching a java app on a server. Exactly the same configuration on another server does not give the same problem.
    The dialog box with the error message only presents one button - OK - and after pressing the button the app continues to run normally. This however is a big problem for us as we are trying to convert the apps into system services using the wrapper (http://wrapper.tanukisoftware.org).
    Note: the problem exibits itself with and without the use of the wrapper.
    I am not very comfortable about reinstalling the JRE on a production server. Is there any way to see what file it is missing? Debug options or something similar?
    The JRE in question is 1.4.2_06. Many thanks in advance for your answers.

    if not setting Post-Processing option results in a cryptic error why doesn't Adobe do one of at least three things?
    1. Don't let user click Export on Export dialog if nothing's selected for Post-Processing.
    2. Default Post-Processing to Do Nothing
    3. Give the user a hint as to what the problem is when the error occurs instead of issuing cryptic error message.
    Allowing this error to persist for so long is ridiculous.

  • How to find the right kstat info & interpret it ?

    Having found out how to read the kstat structures I am
    still struggling with finding the right information which
    makes sense!
    I am interested in the following statistics:
    0. Swap Space - similar to that reported by swap
    1. Scan rate similar to that reported by vmstat
    2. Handspread page (see Adrian Cockcrofts' performance monitoring articles)
    3. Disk Space Usage - similar to df -k
    4. Process memory usage -- ps
    5. System Error Messages -- this may not be possible to read at all
    from kstat. Probably here I will have to make do with reading /var/adm/messages
    6. Disk Errors -- similar to iostat -E (Solaris 2.6 onwards)
    7. Ethernet stats -- like netstat -I le0
    I found the following article on SunSolve Online: FAQ 1230 'Three Virtual Memory Performance Monitors' which directs me to some of the kstat cell
    types.
    I started with swap space. The above article plus a few other pointers seemed to indicate the the
    correct kstat struct and field to use here was vminfo.swap_avail
    When I compared the figures dumped from this structure with those reported by vmstat & swap they
    did not compare! eg.
    kstat: vminfo.swap_avail 321393372929
    kstat: vminfo.swap_free 33339822544
    vmstat unix tool:
    swap avail (KB) 19932
    Furthermore sysinfo.h indicates that vminfo.swap_avail is expressed in pages.
    1 page = 4.096 KB, so the kstat figures should be multiplied by 4 which makes
    the comparison even worse. Whilst I don't expect the figures to be
    an exact match -- I was hoping they would be in the same ball-park,
    Next I tried page in/page out rate
    Here I compared:
    kstat: cpu_vminfo.pgpgin 473224
    kstat: cpu_vminfo.pgpgout 14554
    vmstat unix tool:
    pi (page in) 4
    po (page out) 0
    These figures sort of match up, if you take the most sig digit in
    vminfo.
    I was wondering if anyone has a definitive list on what are the best
    kstat fields to use -- and if any wierd and wonderful calculations must
    be performed on any of them to get figures close to that supplied by
    the familiar unix tools.

    Hi!
    I wrote a quick program to read the vminfo stats and like you saw completely crazy figures. I looked further into this and found that every second, the system clock routine adds the freemem, swap and so on to a cumulative total.
    To put it another way, the figure you see for free memory is the sum total of the value of freemem sampled every second since your system booted.
    Thus, to get the average freemem in pages since boot, you need to read the value of freemem and divide by the number of seconds since boot.
    You can derive the number of seconds in two ways from the kstats:
    (1) read lbolt (incremented every 100th sec) and divide by 100 (hz)
    or (2) read sysinfo.updates (which is incremented every time the kstats are updated).
    I have attached a sample program that demonstrates both of these and reports average freemem since boot in K (like vmstat).
    Similarly, to get a 5 second average, take two readings of freemem and sysinfo.updates five seconds apart , then calculate
    (freemem2-freemem1)/(updates2-updates1)
    It seems most, if not all, of the system counters are cumulative in this fashion.
    Hope that helps.
    Ralph
    SUN Developer Technical Support
    <pre>
    #include <stdio.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <kstat.h>
    #include <sys/types.h>
    #include <sys/time.h>
    #include <sys/sysinfo.h>
    #include <stdio.h>
    main()
    kstat_ctl_t *kc;
    kstat_t *vminfo_ksp;
    kstat_t *system_misc_ksp;
    kstat_t *sysinfo_ksp;
    kstat_named_t *lbolt_knp;
    vminfo_t vminfo;
    sysinfo_t sysinfo;
    int hz;
    int ltime;
    ulong_t updates;
    if ((kc = kstat_open()) == NULL)
    perror("kstat_open failed"); exit(1);
    /* get lbolt and divide by hz to get secs since boot */
    system_misc_ksp = kstat_lookup(kc, "unix", 0, "system_misc");
    kstat_read(kc, system_misc_ksp, NULL);
    lbolt_knp = kstat_data_lookup(system_misc_ksp, "lbolt");
    hz = sysconf(_SC_CLK_TCK);
    ltime = lbolt_knp->value.l/hz;
    /* get number of statistic updates so far (=secs since boot) */
    sysinfo_ksp = kstat_lookup(kc, "unix", 0, "sysinfo");
    kstat_read(kc, sysinfo_ksp, &sysinfo);
    updates=sysinfo.updates;
    printf("lbolt time %d\n",ltime);
    printf("updates %d\n",updates);
    /* get vminfo */
    vminfo_ksp = kstat_lookup(kc, "unix", -1, "vminfo");
    kstat_read(kc, vminfo_ksp, &vminfo);
    printf("freemem %lld\n",(vminfo.freemem*4)/updates);
    printf("freemem %lld\n",(vminfo.freemem*4)/ltime);
    </pre>

Maybe you are looking for

  • Display PDF files in Browser

    How can I display PDF files in my browser. SARS reqire it for e-filing?

  • Media Center III f**** up my CD/DVD

    Hi, I downloaded the Mediacenter III that is a huge step ahead compared to the previous version. It even works with my Hercules TV card with no problems at all. It plays DVDs and CDs, I can access the menus with remote from the sofa etc. BUT... Windo

  • Regarding process mapping related to media

    Dear all My client is in media business, his requirements are to have episode wise Cost & revenue. I am mentioning below the process I have mapped currently Company code - ABC Business Area u2013 Channel (as their have more than one channel) Program

  • Keynote won't recognize the update

    I downloaded the latest version, and I can't open my existing files saying that I don't have the latest version. I've restarted and still no luck. What am I missing

  • Why is the speech for polish so broken?

    cześć is spoken completely wrong, so is dziékujé. that is very sad