As the current one hangs when run

Trying to obtain orderline data for the Credit Memo project that produces examples where the quantity results in a fraction, using the following formula:
     (Draft Revenue Amount - Invoiced Amount)/ Selling Price
As the current one hangs when run
select distinct order_number,l.LINE_NUMBER
,l.DRAFT_REVENUE_AMOUNT, l.INVOICED_AMOUNT,l.SELLING_PRICE,ol.ATTRIBUTE2 end_date
,l.DRAFT_REVENUE_AMOUNT- l.INVOICED_AMOUNT diff,
(nvl(l.DRAFT_REVENUE_AMOUNT- l.INVOICED_AMOUNT,0)/nvl(decode(l.SELLING_PRICE,0,1,l.SELLING_PRICE),1)) quantity
from xxrr_so_headers_all h, xxrr_so_schedules_all s
,xxrr_so_lines_all l,apps.oe_order_lines_all ol
where h.HEADER_ID=l.HEADER_ID
and l.LINE_ID=s.LINE_ID
and l.ORDERED_QUANTITY-l.CANCELLED_QUANTITY<>0
and nvl(l.DRAFT_REVENUE_AMOUNT,0)- nvl(l.INVOICED_AMOUNT,0) <>0
and to_date(ol.ATTRIBUTE2)between '01-JAN-2007'and sysdate
Thanks

select distinct order_number,l.LINE_NUMBER,
       l.DRAFT_REVENUE_AMOUNT,
       l.INVOICED_AMOUNT,
       l.SELLING_PRICE,
       ol.ATTRIBUTE2 end_date ,
       l.DRAFT_REVENUE_AMOUNT- l.INVOICED_AMOUNT diff,
       (nvl(l.DRAFT_REVENUE_AMOUNT- l.INVOICED_AMOUNT,0)/nvl(decode(l.SELLING_PRICE,0,1,l.SELLING_PRICE),1)) quantity
  from xxrr_so_headers_all h,
       xxrr_so_schedules_all s ,
       xxrr_so_lines_all l,
       apps.oe_order_lines_all ol
where h.HEADER_ID = l.HEADER_ID
   and l.LINE_ID   = s.LINE_ID
   and (l.ORDERED_QUANTITY-l.CANCELLED_QUANTITY) <> 0
   and (nvl(l.DRAFT_REVENUE_AMOUNT,0)- nvl(l.INVOICED_AMOUNT,0)) <> 0
   and to_date(ol.ATTRIBUTE2) between '01-JAN-2007' and sysdateit's not hanging but trying to return all the rows from your apps.oe_order_lines_all table. since your query does not have any conditions on the WHERE clause that would relate it to your so_headers_all table.
try to add something like:
     and h.header_id = ol.header_id

Similar Messages

  • Why does the server hang while starting up or the "csdb recover" hang when it is run?

    Sometimes after iPlanet Calendar Server crashes, the server hangs during
    startup or the csdb
    utility hangs when I execute the recover
    command.
    <P>
    One possible solution is to delete all of the .share
    files in the same directory as the
    Calendar Server database. In most cases, the server will successfully start up
    again.

    When you start up in Safe Mode various things aren't loaded at startup, Bob.
    Have a thinbk about which of the following may be involved in your own case:
    It forces a directory check of the startup volume.
    It loads only required kernel extensions (some of the items in /System/Library/Extensions).
    It runs only Apple-installed startup items (some of the items in /Library/StartupItems and /System/Library/StartupItems - and different than login items).
    Mac OS X 10.4 Tiger only: It disables all fonts other than those in /System/Library/Fonts .
    Mac OS X 10.4 Tiger only: It moves to the Trash all font caches normally stored in /Library/Caches/com.apple.ATS/(uid)/ , where (uid) is a user ID number such as 501.
    Mac OS X 10.4 Tiger only: It disables any Login Items.
    (from http://docs.info.apple.com/article.html?artnum=107392)
    Have a look at http://docs.info.apple.com/article.html?artnum=106464 for some more possibilities.
    You may find it worth while using System Prefernces/Accounts to creat a new admin user account and see if the problem persists with it. THis may help you narrow down the problem further.
    Cheers
    Rod

  • I downloaded Itunes to my computer today to update my ipod's ios (4.2.1 yes i know im way behind) but when i click check for updates it tells me my ios is the current one. How can i fix this? please help!

    I downloaded Itunes to my computer today to update my ipod's ios (4.2.1 yes i know im way behind) but when i click check for updates it tells me my ios is the current one. How can i fix this? please help!

    and at the same time....
    I guess you can be glad that you at least aren't "way behind"!
    Cheers,
    GB

  • How can I read the next e-mail when I delete or close the current one

    Is there a way to setup my preferences so that I can move to the next e-mail when I delete or close the current one?
    I could do this in Thunderbird and I really miss that feature.
    Thanks,
    Bob

    Mariah Byrne wrote:
    Hi all,
    I am so sorry to be dense on this (I just switched from PC to Mac last week), but here's my question:
    I like to read emails from the most recent to the least recent. In Outlook, you could set a preference for opening the preceding (older- going down directionally in Inbox) or following (newer- going up directionally in Inbox) email when you delete. It seems to only open "up" in Mail. Am I missing something?
    THANKS!
    -Mariah
    I'm right with you, Mariah. This is exactly my problem, too! Is there a way when viewing message (using the preview window) with the message list sorted in descending date order (most recent on top) and let's say you are view a message in the middle of the list, that when you delete that message the next oldest (further down on the list) message is what's previewed??
    Thanks!

  • Changing iTunes library and when I set it back to the current one the library is still the old one

    Last night I changed my iTunes library into one from a few years ago. When I went to choose the current one to set it back, the library's contents were the same as the old one and the current file became what was in the library now--the contents of the old one. I tried a few different ways and this was the most current library. I upgraded after to the new iTunes in case that was it, and it still isn't changing back into my current library. Help please.

    Try resetting the SMC.
    Instructions here

  • The blue bar hangs when I want to run software updates

    the blue bar hangs when i want to run software update

    If you want everything the same on both computers you need to be running the same OS X version. You can't because your iMac is a PPC machine, not Intel.
    But to see information about your hard drive is the same for both. Simply select the drive icon on the Desktop. Press COMMAND-I to open the Get Info window. Disk information is in the upper panel.

  • AI just purchased McAfee security for my laptop. One of there features rates the safety of sites when running

    i purchased McAfee protection for my laptop. one of the features is that it rates the safety of sites when running a search. McAfee says this feature only works with Firefox. Firefox says it is not compatible with McAfee. Is there another version that I can use? or....?

    The McAfee Site Advisor 3.3.1 extension was the number 2 cause of crashes in one of the Firefox 5.0 betas and Mozilla Blocklisted it. That extension is disabled in Firefox 5, Firefox 6.0beta, and Firefox 7.0alpha versions. McAfee is working on a new re-written version of the Site Advisor extension to fix their problems - ETA is mid to end of July. https://www.mozilla.com/en-US/blocklist/
    credit to the-edmeister

  • Hang when running program

    I am getting a hang when running my java program. Part of the stacktrace is below. I see an 'overflowEi' in the trace. Is that the problem? What does that mean. Thanks in advance!!
    3HPNATIVESTACK Native Stack of "Thread-19" PID 5753
    NULL -------------------------
    3HPSTACKLINE _hpiThreadHardSuspend at B73B51B0 in libhpi.so
    3HPSTACKLINE ?? at B73A85BB in libhpi.so
    3HPSTACKLINE ?? at B73A87C0 in libhpi.so
    3HPSTACKLINE ?? at BB4F80 in libpthread.so.0
    3HPSTACKLINE ZNSt12_basic_fileIcE6xsputnEPKci at 419F37 in libstdc++.so.5
    3HPSTACKLINE ZNSt13basicfilebufIcSt11char_traitsIcEE22_M_convert_to_externalEPciRiS4_ at 3D01CF in libstdc++.so.5
    3HPSTACKLINE ZNSt13basic_filebufIcSt11char_traitsIcEE18_M_really_overflowEi at 3CFF74 in libstdc++.so.53HPSTACKLINE ZNSt13basicfilebufIcSt11char_traitsIcEE8overflowEi at 3CFE8E in libstdc++.so.5
    3HPSTACKLINE ZNSt15basicstreambufIcSt11char_traitsIcEE6xsputnEPKci at 4091B4 in libstdc++.so.5
    3HPSTACKLINE ZNSt13basicfilebufIcSt11char_traitsIcEE6xsputnEPKci at 3D0708 in libstdc++.so.5
    3HPSTACKLINE _ZNSo5writeEPKci at 3FFBB1 in libstdc++.so.5
    3HPSTACKLINE ZStlsISt11chartraitsIcEERSt13basic_ostreamIcT_ES5_PKc at 4002C6 in libstdc++.so.5
    3HPSTACKLINE ZN6Cronus14mergeRepairsBiEv at B3F5B3CD in libExerciserServerjni56330.so
    3HPSTACKLINE ZN14BurninAbistDD23runEv at B3F1C39B in libExerciserServerjni56330.so
    3HPSTACKLINE ZN15ExerciserServer3runEv at B3EFBFCE in libExerciserServerjni56330.so
    3HPSTACKLINE Java_com_ibm_austin_tex_control_exerciserServer_ExerciserServer__1_1m11 at B3EF1270 in libExerciserServer_jni56330.so
    3HPSTACKLINE B31519AB
    3HPSTACKLINE L0_invokevirtual_quick_w__ at B7574127 in libjvm.so
    3HPSTACKLINE L0_invokevirtual_quick__ at B75736CC in libjvm.so

    No answers, but some more questions:
    Before diving into the JNI stack trace, what does "hang" mean? Are there other threads running in your program? Is this the main thread?
    Looking at the stack -- and Googling libhpi.so didn't turn up much for me, other than similar complaints -- it looks like it's an output routine. What are you writing to? A local disk, or one that's remote mounted?
    Edit: absolute speculation here, but I suspect that it's a routine that's called when an in-memory buffer's full, in order to physically write the data onto whatever medium you're writing too. So probably not worth looking for an actual "buffer overflow" that's damaging memory.

  • FYI: New version of Disk Warrior seems to hang when run with Snow Leopard

    FYI: It seems that the new version of Disk Warrior hangs when run in Snow Leopard

    I have been using DW 4.2 on 10.5.8 and the speed-up was the first thing I noted, too, so it isn't just SL.
    Now if it would only 'come up for air' and respond to input to move window (so I can put it where I can see it if needed) I'd like that.
    There is a 23 page review of Snow Leopard on Ars. On page 22:
    People sometimes ask what, exactly, is wrong with HFS+.
    Aside from its obvious lack of the features just listed, HFS+ is limited in many ways by its dated design, which is based on HFS, *a twenty-five year-old file system.*
    To give just one example, the centrally located Catalog File, which must be updated for each change to the file system's structure, is a frequent and inevitable source of contention. Modern file systems usually spread their metadata around, both for robustness (multiple copies are often kept in separate locations on the disk) and to allow for better concurrency.
    Practically speaking, think about those times when you run Disk Utility on an HFS+ volume and it finds (and hopefully repairs) a bunch of errors. *That's bad, okay?* +*That's something that should not happen*+ with a modern, thoroughly checksummed, always-consistent-on-disk file system unless there are hardware problems (and a ZFS storage pool can actually deal with that as well). And yet it happens all the time with HFS+ disks in Mac OS X when various bits of metadata to get corrupted or become out of date.
    Apple gets by year after year, tacking new features onto HFS+ with duct tape and a prayer, but at a certain point there simply has to be a successor—whether it's ZFS, a home-grown Apple file system, or something else entirely. My fingers are crossed for Mac OS X 10.7.
    If Disk Utility was reliable in mapping out weak sectors (it is not) and report/log errors. But it doesn't and I trust my data to other file systems when possible. We've come to expect and depend on 3rd party utilities and that Apple First Aid doesn't fix every possible error.
    Scanning one drive for errors can take a long time. Maybe it needs to be done, maybe in the background. With 2TB drives it gets worse. Spending hours to scan for errors??? I've set TechTool Pro to concurrently scan anywhere from one to a dozen volumes at once.
    An ounce of prevention, as they say, is worth a pound of cure.

  • In Firefox 4 how can I cause the date on downloaded files to be the current date? (Some are and some are not. In FF3 the dates were ALWAYS the current ones.)

    In Firefox 4 how can I cause the date on downloaded files to be the current date? (Some are and some are not. In FF3 the dates were ALWAYS the current ones.)
    == This happened ==
    Every time Firefox opened
    == I upgraded to Firefox 4 (beta)

    Firefox 3.6.* and earlier set the downloaded file's modification time to the current time. In Firefox 4.0 the behavior has been changed, if a server returns a timestamp telling when the file was last modified (Last-Modified header), it is used instead.
    You can revert to the previous behaviour by using the [https://addons.mozilla.org/en-US/firefox/addon/93121/ Download Timestamp] add-on.

  • Tab placed next to the current one...

    hey,
    in mozilla its by default- when you click "open in new tab" the new tab is just next to the current one, while in safari its on the end of ALL tabs that you have open.
    how to change that??
    b

    Unfortunately, that's the way Safari is set up. You may be able to use a third party app for this.
    Check out Glims
    To rearrange tabs, place the pointer over a tab and drag left or right in the tab bar.
    To open a tab in a different Safari window, place the pointer over the tab and drag it to another Safari window or to the desktop.
    Choose Window > “Move Tab to New Window.”

  • Can i Open a new page behind the current one in the browser?

    Using Safari, if I press a link to 'open in new page' is there a way to have the new page open behind the current one? I can choose it on my laptop browser(windows). It's really annoying when I choose 'open in new page' and the current one is whisked away, then I have to minimise it and go back to the original.

    There are other browsers available that have the tabs feature which is so much handier when navigating from page to page like you want to do.
    Look at iCab (my favorite), Mercury and Atomic. All three have many more features than Safari has.

  • How do I reset my security questions if I don't remember the answers to the current ones?

    I got an iTunes gift card for Christmas and I tried to buy a song and my phone told me since I had never bought anything on that device before I had to answer my security questions... Problem is, I don't remember the answers to the questions it gave me. I also have no idea how to reset my security questions without knowing the answers to the current ones. Please help!!

    Hello courtteff,
    Thanks for the question. If you do not recognize your security questions, or do not know the answers, see the following article for steps on how to reset them:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    What should I do if I don't remember the answers to my Apple ID security questions?
    Try answering them at least once to see if you can get them right, even if you are not sure you remember the answers to your security questions.
    If you are confident you can't remember them, try one of the following:
    If you have three security questions and a rescue email address
         - sign in to My Apple ID and select the Password and Security tab to send an email to your rescue email address to reset your security questions and answers.
    If you have one security question and you know your Apple ID password
         - sign in to My Apple ID and select the Password and Security tab to reset your security question.
    If you have one security question, but don't remember your Apple ID password
         - contact Apple Support for assistance. Learn more about creating a temporary support PIN to help Apple confirm your identity when you contact Apple Support.
    If you do not see the option for resetting your questions with a rescue email address, see this excerpt:
    Note: The option to send an email to reset your security questions and answers will not be available if a rescue email address is not provided. You will need to contact iTunes Store support in order to do so.
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Additional Information:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Thanks,
    Matt M.

  • Office 365 AAD Password Writeback not working; Event Viewer Error: 0x80230619 (A restriction prevents the password from being changed to the current one specified.)

    Hello all,
    I'm currently setting up a Proof Of Concept setup with directory synchronisation and password syncing to Office 365, leveraging AAD Premium for the password reset and password writeback to on premises
    AD functionality. Directory Sync + Password Sync is working flawlessly with the AADSync tool. However, upon requesting a password reset for a user, I'm hitting a password writeback error. The webpage states that the password does not meet the password
    complexity policy, while it does. I can set that particular password for that account at the on premises AD without any problem.
    In the event viewer at the AADSync server, I'm seeing this Error pop up whenever I try to reset the password:
    An unexpected error has occurred during a password set operation.  "BAIL: MMS(4032): ..\server.cpp(11003): 0x80230619 (A restriction prevents the password from being changed
    to the current one specified.) Azure AD Sync 1.0.0475.1202"
    My Setup:
    Windows Server 2012 AD with a single forest
    Seperate domain joined Windows Server 2012 for AADSync tool
    AADSync version 1.0.0475.1202 with options password sync, password writeback enabled
    Service account for AADSync tool with Replicating Directory Changes and Replicating Directory Changes All permissions
    on root AD forest structure with inheritance to all objects. This account also has the permissions to Change Password and Reset Password on all descendant
    User Objects.
    AAD Premium for my office 365 tenant
    AAD Premium licenses for the test users and the office 365 account used to sync to Office 365. This account is also Global Admin.
    Could anyone help me with this? Is there something I’m missing here? My guess is that the AAD is not trusted or the service account for AADSync tool does not have the proper permissions. I’ve tried
    many options, like setting the AADSync Service account to Enterprise Admin or granting the service account Full Control over that particular user.

    Concerning my issue:
    The Default Group Policy setting: Minimum Password Age is set at 1 day. As I was testing this feature with new users, their provisioned passwords were less than 24 hours old and the Minimum Password Age of 1 prevented the change of the password.
    After changing this to 0 days in the Default Group Policy, my password resets started working for newly created users. While this might not have affected existing users in production, it had me looking and searching for permission issues on my AD.
    So for those that might be experiencing ADSync Event ID 6329 and PasswordResetService Event ID 33008 Errors when trying to do a Password Reset using AAD Premium with Password Writeback, it might be helpful to check the applied password policy.
    The issue is solved.

  • I have the following Apple Computer: Dual 1.25 GHz PowerPC G4, 2 MB per processor. Can I put install new Intel Xeon processors in place of the current ones to bring my Mac up to the MacPro standards and so I can install the new Mac software?

    I have the following Apple Computer: Dual 1.25 GHz PowerPC G4, 2 MB per processor. Can I put install new Intel Xeon processors in place of the current ones to bring my Mac up to the MacPro standards and, if so, can I then install the new Mac software (Lion)?

    As has been clearly stated, no, no, and no.
    If such an upgrade were possible, it probably would be more money than it would be worth.
    If you're running a G4 (dual-processor even) you can pick up a used Mac mini (intel that is, and something from 2010 or newer would be the best bet) that will be screaming fast compared to a G4.
    Once upon a time, processor upgrades were not only possible, but a good deal, and a relatively inexpensive way to get more life out of your Mac. I upgraded a G3 tower to a G4 for  few hundred dollars, and I was glad I went that route at the time. Finally,  CPU upgrades, at least as far as I know, aren't available anymore.

Maybe you are looking for