Need help to diagnose why my iMac seems to reboot so frequently.

Over the past month, my iMac has been rebootign about 2-3 times a week.  Here is the latest crash log.  Any help would be appreciated.
Interval Since Last Panic Report:  777385 sec
Panics Since Last Report:          6
Anonymous UUID: 4ABE35A7-AFC5-0476-19AC-81D123AFCC59
Sun Jun  2 17:31:24 2013
panic(cpu 3 caller 0xffffff800265123a): "!pageList phys_addr"@/SourceCache/xnu/xnu-2050.22.13/iokit/Kernel/IOMemoryDescriptor.cpp: 1484
Backtrace (CPU 3), Frame : Return Address
0xffffff80f569b840 : 0xffffff800221d626
0xffffff80f569b8b0 : 0xffffff800265123a
0xffffff80f569b940 : 0xffffff80026515e9
0xffffff80f569ba40 : 0xffffff800265089a
0xffffff80f569ba80 : 0xffffff7f8318bde2
0xffffff80f569bad0 : 0xffffff7f8318a3fc
0xffffff80f569bb20 : 0xffffff8002666453
0xffffff80f569bb80 : 0xffffff800264729a
0xffffff80f569bbe0 : 0xffffff7f8318ad52
0xffffff80f569bc20 : 0xffffff800266408f
0xffffff80f569bd70 : 0xffffff80022984a1
0xffffff80f569be80 : 0xffffff8002220aed
0xffffff80f569beb0 : 0xffffff8002210448
0xffffff80f569bf00 : 0xffffff800221961b
0xffffff80f569bf70 : 0xffffff80022a5dd6
0xffffff80f569bfb0 : 0xffffff80022cdd43
      Kernel Extensions in backtrace:
com.apple.iokit.IOHIDFamily(1.8.1)[FD2B6401-9BFA-32D5-ABEB-E523C061548D]@0xffff ff7f83189000->0xffffff7f831f5fff
dependency: com.apple.driver.AppleKeyStore(28.21)[A07AF045-127B-3CD5-90C9-7ED8AE353525]@0xf fffff7f8317b000
BSD process name corresponding to current thread: ppupsd
Mac OS version:
12D78
Kernel version:
Darwin Kernel Version 12.3.0: Sun Jan  6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
Kernel UUID: 3EB7D8A7-C2D3-32EC-80F4-AB37D61492C6
Kernel slide: 0x0000000002000000
Kernel text base: 0xffffff8002200000
System model name: iMac13,2 (Mac-FC02E91DDD3FA6A4)
System uptime in nanoseconds: 6803568702028
last loaded kext at 6803492572543: com.apple.driver.AppleUSBCDC   4.1.23 (addr 0xffffff7f84667000, size 16384)
last unloaded kext at 3872250092603: com.apple.driver.AppleUSBCDC          4.1.23 (addr 0xffffff7f84662000, size 12288)
loaded kexts:
com.apple.driver.AppleUSBCDC      4.1.23
com.apple.filesystems.smbfs            1.8
com.apple.driver.AppleBluetoothMultitouch         75.19
com.apple.filesystems.ntfs    3.10
com.apple.driver.AudioAUUC          1.60
com.apple.driver.AppleHWSensor  1.9.5d0
com.apple.iokit.IOBluetoothSerialManager            4.1.3f3
com.apple.filesystems.autofs           3.0
com.apple.driver.AppleMikeyHIDDriver    122
com.apple.driver.AGPM        100.12.87
com.apple.driver.ApplePlatformEnabler    2.0.6d1
com.apple.driver.X86PlatformShim            1.0.0
com.apple.driver.AppleHDA            2.3.7fc4
com.apple.iokit.IOUserEthernet       1.0.0d1
com.apple.Dont_Steal_Mac_OS_X     7.0.0
com.apple.driver.ApplePolicyControl         3.3.0
com.apple.GeForce   8.1.0
com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport          4.1.3f3
com.apple.driver.AppleUpstreamUserClient          3.5.10
com.apple.driver.AppleSMCLMU     2.0.3d0
com.apple.driver.AppleMikeyDriver           2.3.7fc4
com.apple.driver.AppleBacklight     170.2.5
com.apple.driver.AppleMCCSControl          1.1.11
com.apple.driver.AppleLPC  1.6.0
com.apple.driver.AppleIntelHD4000Graphics       8.1.0
com.apple.driver.AppleIntelFramebufferCapri     8.1.0
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless    1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib            1.0.0d1
com.apple.BootCache           34
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage          2.3.1
com.apple.driver.AirPort.Brcm4331           614.20.16
com.apple.driver.AppleSDXC           1.4.0
com.apple.iokit.AppleBCM5701Ethernet    3.6.0b1
com.apple.driver.AppleUSBHub      5.5.5
com.apple.driver.AppleAHCIPort    2.5.1
com.apple.driver.AppleUSBEHCI     5.5.0
com.apple.driver.AppleUSBXHCI     5.5.5
com.apple.driver.AppleEFINVRAM 1.7
com.apple.driver.AppleACPIButtons           1.7
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET           1.8
com.apple.driver.AppleSMBIOS       1.9
com.apple.driver.AppleACPIEC        1.7
com.apple.driver.AppleAPIC            1.6
com.apple.driver.AppleIntelCPUPowerManagementClient          196.0.0
com.apple.nke.applicationfirewall   4.0.39
com.apple.security.quarantine        2
com.apple.driver.AppleIntelCPUPowerManagement        196.0.0
com.apple.driver.AppleBluetoothHIDKeyboard    170.2
com.apple.driver.AppleHIDKeyboard         170.2
com.apple.driver.IOBluetoothHIDDriver    4.1.3f3
com.apple.driver.AppleMultitouchDriver   235.29
com.apple.iokit.IOSerialFamily         10.0.6
com.apple.kext.triggers        1.0
com.apple.iokit.IOSCSIArchitectureModelFamily   3.5.5
com.apple.driver.DspFuncLib          2.3.7fc4
com.apple.iokit.IOAudioFamily        1.8.9fc11
com.apple.kext.OSvKernDSPLib      1.6
com.apple.iokit.IOSurface     86.0.4
com.apple.iokit.IOBluetoothFamily 4.1.3f3
com.apple.iokit.AppleBluetoothHCIControllerUSBTransport      4.1.3f3
com.apple.driver.X86PlatformPlugin          1.0.0
com.apple.nvidia.gk100hal   8.1.0
com.apple.NVDAResman      8.1.0
com.apple.driver.AppleSMC 3.1.4d2
com.apple.driver.AppleGraphicsControl    3.3.0
com.apple.driver.AppleBacklightExpert     1.0.4
com.apple.driver.AppleSMBusController   1.0.11d0
com.apple.driver.IOPlatformPluginFamily 5.3.0d51
com.apple.driver.AppleThunderboltEDMSink       1.1.8
com.apple.driver.AppleThunderboltEDMSource  1.1.8
com.apple.driver.AppleSMBusPCI   1.0.11d0
com.apple.driver.AppleHDAController       2.3.7fc4
com.apple.iokit.IOHDAFamily          2.3.7fc4
com.apple.iokit.IOAcceleratorFamily          30.14
com.apple.iokit.IONDRVSupport     2.3.7
com.apple.iokit.IOGraphicsFamily   2.3.7
com.apple.iokit.IOUSBHIDDriver     5.2.5
com.apple.driver.AppleThunderboltDPOutAdapter         1.8.9
com.apple.driver.AppleThunderboltDPInAdapter            1.8.9
com.apple.driver.AppleThunderboltDPAdapterFamily    1.8.9
com.apple.driver.AppleThunderboltPCIDownAdapter    1.2.6
com.apple.driver.AppleUSBMergeNub       5.5.5
com.apple.driver.AppleUSBComposite       5.2.5
com.apple.driver.AppleThunderboltNHI    1.6.3
com.apple.iokit.IOThunderboltFamily        2.2.6
com.apple.iokit.IO80211Family       522.4
com.apple.iokit.IOEthernetAVBController  1.0.2b1
com.apple.iokit.IONetworkingFamily          3.0
com.apple.iokit.IOUSBUserClient     5.5.5
com.apple.iokit.IOAHCIFamily          2.3.1
com.apple.iokit.IOUSBFamily           5.5.5
com.apple.driver.AppleEFIRuntime            1.7
com.apple.iokit.IOHIDFamily            1.8.1
com.apple.iokit.IOSMBusFamily       1.1
com.apple.security.sandbox 220.2
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet     7
com.apple.driver.DiskImages           345
com.apple.iokit.IOStorageFamily     1.8
com.apple.driver.AppleKeyStore     28.21
com.apple.driver.AppleACPIPlatform         1.7
com.apple.iokit.IOPCIFamily 2.7.3
com.apple.iokit.IOACPIFamily          1.4
com.apple.kec.corecrypto    1.0
Model: iMac13,2, BootROM IM131.010A.B04, 4 processors, Intel Core i5, 2.9 GHz, 8 GB, SMC 2.11f14
Graphics: NVIDIA GeForce GTX 660M, NVIDIA GeForce GTX 660M, PCIe, 512 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, 0x45424A3431554638424455352D474E2D4620
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, 0x45424A3431554638424455352D474E2D4620
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xF4), Broadcom BCM43xx 1.0 (5.106.98.100.16)
Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: APPLE HDD ST1000DM003, 1 TB
USB Device: UPS CP1000AVRLCD, 0x0764  (Cyber Power Systems, Inc.), 0x0501, 0x14400000 / 1
USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1a100000 / 2
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8511, 0x1a110000 / 3
USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1d100000 / 2
USB Device: hub_device, 0x0424  (SMSC), 0x2412, 0x1d180000 / 3
USB Device: BRCM20702 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x1d181000 / 4
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x828b, 0x1d181300 / 5

That panic was not caused by third-party software. If the problem is recurrent, the possibilities are:
A stale or corrupt kernel cache
A damaged OS X installation
A fault in a peripheral device, if any
Corrupt non-volatile memory (NVRAM)
An internal hardware fault (including incompatible memory)
An obscure bug in OS X
You may already have ruled out some of these.
Rule out #1 by booting in safe mode and then rebooting as usual. 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. Post for further instructions.
You can rule out #2 and #3 by reinstalling the OS and testing with non-essential peripherals disconnected and aftermarket expansion cards removed, if applicable. Sometimes a clean reinstallation (after erasing the startup volume) may solve a problem that isn't solved by reinstalling in place, without erasing.
Corrupt NVRAM, which rarely causes panics, can be ruled out by resetting it.
If your model has user-replaceable memory, and you've upgraded the memory modules, reinstall the original memory and see whether there's any improvement. Be careful not to touch the gold contacts. Clean them with a mild solvent such as rubbing alcohol. Aftermarket memory must exactly match the technical specifications for your model. Memory that is either slower or faster than specified may be incompatible.
The Apple Hardware Test, though generally unreliable, will sometimes detect a fault. A negative test can't be depended on. Run the extended version of the test.
In the category of obscure bugs, reports suggest that FileVault may trigger kernel traps under some unknown conditions. Most, though not all, of these reports seem to involve booting from an aftermarket SSD. If those conditions apply to you, try deactivating FileVault.
Connecting more than one display is another reported trigger for OS X bugs.
In rare cases, a malformed network packet from a defective router or other network device can cause panics. Such packets could also be sent deliberately by a skillful attacker. This possibility is something to consider if you run a public server that might be the target of such an attack.
If none of the above applies, make a "Genius" appointment at an Apple Store to have the machine tested. You may have to leave it there for several days. There isn't much point in doing this unless you can reproduce the panic, or if you can't, it happens often enough that it's likely to be repeated at the store. Otherwise you may be told that nothing is wrong.
Print the first page of the panic report and bring it with you.
Back up all data on the internal drive(s) before you hand over your computer to anyone. If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you know how to restore, and you have at least  two independent backups.) Don’t erase the recovery partition, if present.
Keeping your confidential data secure during hardware repair
*An SSD doesn't need to be zeroed.

Similar Messages

  • TS3798 I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    amarilysfl wrote:
    "Your disk could not be partitioned. An error occurred while partitioning the disk".
    https://www.apple.com/support/bootcamp/
    If you were using Apple's BootCamp and received this message, quit it and open Disk Uility in your Applicaitons/Utilities folder.
    Select the Macintosh HD partition on the left and select Erase and Erase Free Space > Zero option and let it complete (important) this will check the spare space for bad sectors that can cause issues formatting partitions.
    Once it's completed, try creating a partiton again in BootCamp.
    If that doesn't work, then hold command option r keys down while connected to a fast internet connection, Internet Recovery should load (spinning globe) and then in that Disk Utility, select your entire internal drive and click > First Aid > Repair Disk and Permissions.
    reboot and attempt Bootcamp again.
    If you still get a error, it might be that you have OS X data on the bottom area where BootCamp partition needs to go. This would occur if you had the drive or computer for a long time or wrote a large amount of files to the drive and nearly filling it up and then reduced some, but it left traces in the area BootCamp needs to go.
    To fix this
    BootCamp: "This disc can not be partitioned/impossible to move files."
    How to safely defrag a Mac's hard drive

  • Need help broadcasting A/V from iMac to TV

    Sup Apple! PC here, don't hold it against meh!
    My sister has an  iMac (27-inch, Mid 2010) w/ the i5. She wants to mirror her pc to her TV but there are considerations. I need help finding the best wireless solution.
    Here are the facts:
    No HDMI port on iMac
    Has HughesNet satellite as her ISP
    Wifi speeds vary with cloudcover
    The machine is 30 ft away not direct line of sight
    I've looked at Apple TV, and AirPlay only ccovers 2011 models and up.
    So assuming I run a mini displayport to HDMI converter from Mac to a Transmitter...I'll get pic only, how do you think the best way is to stream audio and video to the TV? I'm not familiar with FireWire 800, and I see the Optical Out, but for now I have her ordering something that will get Pic only, as she needs to showcase photography.
    There's gotta be a device I am unaware of that will handle both audio and video... with the HughesNet consideration, is it even worth it?
    This is what transmitter/receiver I'm looking at, http://www.nyrius.com/products/display.php?id=123&i=3
    Any better ideas? Am I missing anything elusively obvious here?
    Thanks in advance ,
    C

    I've read that Airparrot works well with Apple TV for macs that don't support mirroring. http://www.airsquirrels.com/airparrot/

  • Need help in understanding why so many gets and I/O

    Hi there,
    I have a sql file somewhat similar in structure to below:
    delete from table emp;-- changed to Truncate table emp;
    delete from table dept;--changed to Truncate table dept;
    insert into emp values() select a,b,c from temp_emp,temp_dept where temp_emp.id=temp_dept.emp_id
    update emp set emp_name=(select emp_name from dept where emp.id=dept.emp_id);
    commit --only at the end
    the above file takes about 9-10 hrs to complete its operation. and
    the values from v$sql for the statement
    update emp set emp_name=(select emp_name from dept where emp.id=dept.emp_id);
    are as below:
    SHARABLE_MEM     PERSISTENT_MEM     RUNTIME_MEM     SORTS     LOADED_VERSIONS     OPEN_VERSIONS     USERS_OPENING     FETCHES     EXECUTIONS     PX_SERVERS_EXECUTIONS     END_OF_FETCH_COUNT     USERS_EXECUTING     LOADS     FIRST_LOAD_TIME     INVALIDATIONS     PARSE_CALLS     DISK_READS     DIRECT_WRITES     BUFFER_GETS     APPLICATION_WAIT_TIME     CONCURRENCY_WAIT_TIME     CLUSTER_WAIT_TIME     USER_IO_WAIT_TIME     PLSQL_EXEC_TIME     JAVA_EXEC_TIME     ROWS_PROCESSED     COMMAND_TYPE     OPTIMIZER_MODE     OPTIMIZER_COST     OPTIMIZER_ENV     OPTIMIZER_ENV_HASH_VALUE     PARSING_USER_ID     PARSING_SCHEMA_ID     PARSING_SCHEMA_NAME     KEPT_VERSIONS     ADDRESS     TYPE_CHK_HEAP     HASH_VALUE     OLD_HASH_VALUE     PLAN_HASH_VALUE     CHILD_NUMBER     SERVICE     SERVICE_HASH     MODULE     MODULE_HASH     ACTION     ACTION_HASH     SERIALIZABLE_ABORTS     OUTLINE_CATEGORY     CPU_TIME     ELAPSED_TIME     OUTLINE_SID     CHILD_ADDRESS     SQLTYPE     REMOTE     OBJECT_STATUS     LITERAL_HASH_VALUE     LAST_LOAD_TIME     IS_OBSOLETE     CHILD_LATCH     SQL_PROFILE     PROGRAM_ID     PROGRAM_LINE#     EXACT_MATCHING_SIGNATURE     FORCE_MATCHING_SIGNATURE     LAST_ACTIVE_TIME     BIND_DATA     TYPECHECK_MEM
    18965     8760     7880     0     1     0     0     0     2     0     2     0     2     2011-05-10/21:16:44     1     2     163270378     0     164295929     0     509739     0     3215857850     0     0     20142     6     ALL_ROWS     656     E289FB89A4E49800CE001000AEF9E3E2CFFA331056414155519421105555551545555558591555449665851D5511058555155511152552455580588055A1454A8E0950402000002000000000010000100050000002002080007D000000000002C06566001010000080830F400000E032330000000001404A8E09504646262040262320030020003020A000A5A000     4279923421     50     50     APPS     0     00000003CBE5EF50     00     1866523305     816672812     1937724149     0     SYS$USERS     0     01@</my.sql     -2038272289          -265190056     0          9468268067     10420092918          00000003E8593000     6     N     VALID     0     2011-05-11/10:23:45     N     5          0     0     1.57848E+19     1.57848E+19     5/12/2011 4:39          0
    1) how do i re-write this legacy script? and what should be done to improve performance?
    2) Should i use PL/sql to re-write it?
    3) Also help in understanding why a simple update statement is doing so many buffer gets and reading , Is this Read consistency Trap as i'm not committing anywhere in between or it is actually doing so much of work.
    (assume dept table has cols emp_name and emp_id also)

    update emp set emp_name=(select emp_name from dept where emp.id=dept.emp_id);I guess that these are masked table names ? Nobody would have emp_name in a dept table.
    Can you re-format the output, using "code" tags ( [  or {  }
    Hemant K Chitale
    Edited by: Hemant K Chitale on May 12, 2011 12:44 PM

  • Need help on diagnosis of Graphics Issue

    Hello,
    I need help to determine if I am experiencing a graphics card issue and what my options are if there are any experts out there I would appreciate some feedback.
    *My system info:*
    Model Name: Mac Pro
    Model Identifier: MacPro2,1
    Processor Name: Quad-Core Intel Xeon
    Processor Speed: 3 GHz
    Number Of Processors: 2
    Total Number Of Cores: 8
    L2 Cache (per processor): 8 MB
    Memory: 4 GB
    Bus Speed: 1.33 GHz
    Chipset Model: NVIDIA GeForce 8800 GT
    Type: Display
    Bus: PCIe
    Slot: Slot-1
    PCIe Lane Width: x16
    VRAM (Total): 512 MB
    Vendor: NVIDIA (0x10de)
    Device ID: 0x0602
    Revision ID: 0x00a2
    ROM Revision: 3233
    *Description of Issue:* When playing 3D video games (i.e. Mass Effect 2 or Dragon Age) everything visually is fine for about 20 seconds and then I start to see pixelization (snow), texture anomalies and system freezes where mouse stops moving. It gives time slices occasionally so sometimes I can Alt + tab out of game and close it. Or the entire system just crashes. I think what is going on is some loop that is pegging either the CPU(s) or GPU.
    Everything was working fine up until last night. I had been playing the games without issue. I am playing these games on Windows XP and Vista using Boot Camp.
    This initially occurred on Windows XP playing Mass Effect 2.
    These are the steps I took which essentially tell me it is not a software issue:
    - Tested on another game Dragon Age (same result)
    - Updated to latest Nvidia drivers (same result)
    - Tested on separate Boot Camp Windows Vista with Dragon Age game (same result)
    These results lead me to believe I may have a broken graphics card? But I want to be certain before I go out and purchase a new one.
    *My Questions:*
    - Is there some software to verify if my graphics card is shotty?
    - Is re-seating the graphics card or memory worth trying?
    - Cleaning the dust out of my machine?
    - If I need a new graphics card, what are my options? Do I have to purchase it via Apple store? I would like to stick with an Nvidia card so am I stuck buying the same card I currently have or can I upgrade?
    If anyone can help me I would greatly appreciate it.
    Thank you,
    Leapstepman

    Is there some software to verify if my graphics card is shotty?
    Techtool Pro has some testing, the AHT tests VRAM, but game benchmarks and stressing will tell you the most.
    Is re-seating the graphics card or memory worth trying?
    Absolutely. Just don't reinstall the graphics card until you clean it thoroughly.
    Cleaning the dust out of my machine?
    YES. A dust filled graphics card heatsink will cause the GPU to cook, and cause problems thet you describe.
    If I need a new graphics card, what are my options? Do I have to purchase it via Apple store? I would like to stick with an Nvidia card so am I stuck buying the same card I currently have or can I upgrade?
    You don't have to buy from Apple, but using with OS X limits your choices to Mac compatible or flashable PC versions.
    There is an awful lot of user input into this topic here:
    http://blog.macsales.com/602-testing-those-new-graphics-cards
    Card reviews can also help:
    http://www.anandtech.com/video/showdoc.aspx?i=3140&p=9
    http://www.tomshardware.com/reviews/radeon-hd-4870,1964.html

  • Help required.....sun server rebooting very frequently

    Hi all,
    We have a solaris 9 server on X86 m/c...For the last 1 week, it is rebooting very frequently with kernel panic...I'm pasting the extract from "/var/log/messages" file for ur reference....Pls help me....
    Regards...
    cmreddy
    May 1 04:42:22 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 1 04:56:25 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d8c addr=10 occurred in module "genunix" due to a NULL pointer dereference
    May 1 05:47:53 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 1 05:57:04 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d90 addr=13 occurred in module "genunix" due to a NULL pointer dereference
    May 1 06:02:22 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 1 07:06:52 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d90 addr=13 occurred in module "genunix" due to a NULL pointer dereference
    May 1 07:26:54 ncc-w savecore: [ID 570001 auth.error] reboot after panic: mutex_exit: not owner, lp=fed08ef8 owner=0 thread=ef409e40
    May 1 08:40:41 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef481d90 addr=0 occurred in module "<unknown>" due to a NULL pointer dereference
    May 1 11:00:46 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 1 14:10:13 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d90 addr=13 occurred in module "genunix" due to a NULL pointer dereference
    May 1 15:57:24 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 1 16:11:26 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 1 16:17:09 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d90 addr=13 occurred in module "genunix" due to a NULL pointer dereference
    May 1 17:55:48 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 1 20:41:47 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d8c addr=10 occurred in module "genunix" due to a NULL pointer dereference
    May 1 21:27:28 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d90 addr=13 occurred in module "genunix" due to a NULL pointer dereference
    May 1 23:11:02 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=8 (Double Fault) rp=fec1f3bc addr=ef489dd0
    May 2 00:14:48 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d8c addr=10 occurred in module "genunix" due to a NULL pointer dereference
    May 2 00:41:39 ncc-w savecore: [ID 570001 auth.error] reboot after panic: mutex_exit: not owner, lp=fed08ef8 owner=0 thread=ef409e40
    May 2 02:46:50 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 2 07:27:42 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d6c addr=8004c occurred in module "unix" due to an illegal access to a user address
    May 2 09:33:52 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d8c addr=10 occurred in module "genunix" due to a NULL pointer dereference
    May 2 13:51:20 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d90 addr=13 occurred in module "genunix" due to a NULL pointer dereference
    May 2 14:04:17 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d8c addr=10 occurred in module "genunix" due to a NULL pointer dereference
    May 2 14:20:06 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d8c addr=10 occurred in module "genunix" due to a NULL pointer dereference
    May 2 15:07:38 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 2 15:53:05 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 2 17:01:42 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 2 17:34:33 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef6a5bd8 addr=12c occurred in module "genunix" due to a NULL pointer dereference
    May 2 17:41:45 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d8c addr=10 occurred in module "genunix" due to a NULL pointer dereference
    May 2 18:57:52 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference
    May 2 21:54:34 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef401d90 addr=13 occurred in module "genunix" due to a NULL pointer dereference
    May 2 22:41:26 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef481d90 addr=0 occurred in module "<unknown>" due to a NULL pointer dereference
    May 2 23:22:19 ncc-w savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (Page Fault) rp=ef409d90 addr=11 occurred in module "genunix" due to a NULL pointer dereference

    you might get more success if you supply the symbolic stack trace so folks can see what functions/modules were involved. But even then unless someone recognises the stack trace you will need to engage your formal support options to get the dumps analysed and hence get to root cause.
    are you getting vmcore.N and unix.N files created in /var/crash/'uname -n'/ if so run up mdb -k
    eg mdb -k unix.2 vmcore.2
    and see what you get from ::stack or ::msgbuf
    tim

  • Need help speeding up my old iMac from 2008 - defragment?

    I have an old 20 inch iMac from 2008. It is a 2.66 GHz Intel Core 2 Duo with 4 GB of Ram. Its still running Leopard 10.5.8, which is te last version of Leopard (I believe).
    I have several questions, but I will start with the biggest one.
    How can I speed it up? It runs very sluggishly and I've tried just about everything to try to get it to speed up. I've done all the recommended things, such as removing unnecessary startup programs, repairing disk permissions, freeing up hard drive space, monitoring the task manager for processes that take up a lot of CPU power and I've added more ram. The CPU can be at 90% idle and it will still act slow.
    I know its not the software because its as old as the OS, so the system should be able to handle it, for example, I am running Adobe CS3. A friend told me that maybe I need to defragment. I read that after a certain OSX version the system does not need to defrag because the OS prevents the hard drive from fragmenting in the first place. Plus, there is no utility to defrag in the OS. I also read somewhere that if you do happen to fill up your hard drive to the very brim the data will fragment regardless. I did fill the hard drive to the brim -- to about 500 MB of free space. Since then I have freed up about 100 GB, but its slow.
    Should I find a way to defragment? If so, is there any 3rd party software that is recomended for an old system like this?
    I have tons more questions, such as:
    - How to upgrade the OS to Snow Leopard, Lion or Mountain Lion.
    - Should I backup the system via Time Machine before upgrading the OS to Snow Leopard, Lion or Mountain Lion?
    - If I do upgrade my OS will my software be incompatible and do I need the original software discs to reinstall them?
    - Why does my Time Machine take so long to backup?
    I'd like to start with an answer about defragmenting.

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with a visit to: OS X Maintenance - MacAttorney.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion/Mountain Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Repair the Hard Drive - Lion/Mountain Lion
    Boot from your Lion Recovery HD. When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    Suggestions for OS X Maintenance
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Data Backup
      3. Deja Vu
      4. SuperDuper!
      5. SyncTwoFolders
      6. Synk Pro
      7. Synk Standard
      8. Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time, then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • I Desperately Need Help - Can't Boot my iMac

    Greetings Everyone. My apologies for making my debut on this board with a desperate plea for help but I think I just killed my iMac right in the middle of an important project. I'm accessing this board with my laptop PC (and you know I'm in a bad way when I have to revert to anything PC!)
    I was trying to move some photos from iPhoto onto a CD. One photo would not move - computer said it was 'busy.' I couldn't delete it or anything so I force quit to see if I could start over.
    The machine did reboot okay, so I thought perhaps I should try to restart in in OS9 (Im using 10.3.8 or 9 (can't remember and can't boot to confirm.) because I read somewhere that sometimes rebooting in OS9 will correct whatever has 'hung' in X - for lack of a better description.
    Well, that's when it crashed. When I try to boot it the entrance sound makes its bong and the the light blue screen comes on and just sits there and does nothing, no matter how long I wait.
    I tried to force boot it by holding in the start button until the list of instructions came on the screen. Tried typing mac-boot as instructed, and nothing happened. I tried three times. Then I tried shut-down and it did shut down.
    That's as far as I can get. I hold in the start button until it makes a beeping noise, then it bongs, then the blue screen comes on and just sits there.
    Have I fried my machine or is there any hope?
    Can you tell I'm just about frantic???
    Thanks for your patience. Any help would be greatly appreciated. I live in a fairly remote rural area with no Mac dealers within 200 kms - so I'm really stuck on this one.

    Tried a few more tricks and finally got it to boot.
    I held down the P R Apple & Option keys and waited for the second chimes. Nothing happened.
    I disconnected everything but the mouse and keyboard and tried rebooting again.
    Lo and Behold it worked.
    I think the HP printer cable might be faulty, but don't know for sure what is actually going on.
    This whole problem started because my printer suddenly died. I tried to remove then reload the software but kept getting the message that no device was attached, even though it was.
    So I decided to save all my hard drive info onto CD's then reload the system software. Everything came to a halt when I couldn't delete the 'busy' image.
    So for now, I'm back in business. Whew!
    If anyone has any idea what on earth is going on I'd sure like to know. Do printer cables just go bonkers for no reason? And why would an image from iPhoto be 'busy' when I tried to delete it. Is that image doing something naughty that I need to know about?
    I think I need a nice cold beer!

  • Customer Exit not working - need help in diagnosing

    Hi all,
    I need some help in identifying a Customer Exit issue in our QA system. 
    Currently, in Dev I have a customer exit defined and everything works perfectly.  However, the same code which was migrated to QA works fine when testing at the FM level but not when executing at the report level.  I tried inserting a breakpoint and executing the report, however the breakpoint never populates.  There seems to be a communication issue here.  When executing the report the variable does not call the customer exit FM/program. 
    How do you diagnose this problem?  Is this a BASIS issue?
    I tried testing the query in RSRT and I run into the same issue of nothing happening.  I tried deleting the variable and recreating with only the same results. 
    Is there a config or setting that is related to the customer exit functionality within BW?
    Also, when transporting the customer exit code I did not migrate the FM along with the Include.  Is there a proper way to migrate this?
    Thanks,
    DC

    Thanks for your response.
    I did double check the variable name to be exact.  I think the issue maybe related to the project not being activated.  I will update as I diagnose the problem.
    Thanks

  • Need help setting up Network on iMac so I can WiFi my iPod Touch

    Have 1st Gen iPod touch with Stanza app (book reader). Need to set up WiFi Network connection on my iMac (Leopard 10.5.5) so I can connect to internet with iPod touch and download books into Stanza. Need detailed info on how to do this, please. I've tried using the setup assistant in Network, but nothing I enter works. I use BellSouth DSL internet service, so don't have to log in each time I turn on DSL. It appears it's a DHCP configuration. Can anyone help me with this, please. Thanks very much.

    Thanks for your reply, Julian. Actually, I'd had my iMac set up properly since last Sept., but my brother has now moved in with me and he also has a new iMac and a new iPod touch and I was trying to remember how to set up the network on his Mac so he could use his Mac with his iPod touch to do his downloads using the network connection from his own computer. I do not have a router. We share our BellSouth DSL modem by simply moving it from one Mac to the other when we want to get on the internet. Both Macs have built in Airport, which is what I know I'd been using - I say BEEN using, because today I really screwed up my Mac when I was trying to remember how to set up the network and now I can no longer use my iPod touch-to-iMac WiFi function either.
    When I first set up my network, I got help from someone in a forum and thought I'd printed and kept the very simply instructions he gave me, but I can't find them. I seem to remember him telling me I'd have to get my Mac's IP address, which I have, but when I go thru the network setup assistant it doesn't ask me to enter it anywhere. Also, the setup assistant tells me that I can't connect automatically to the internet, which is not true. I don't have to log in when I plug in my modem - I'm automatically connected.
    I'm familiar with internet sharing, cause that's what I've been using when I downloaded apps updates, etc. But now, I can't even get Airport to turn on. The more I try, the more confused and frustrated I get. I'm usually pretty good with this kind of thing, but I'm completely baffled now.
    I do want, and think this is what I was doing before I screwed things up today, to share my Mac's wired internet connection to the iPod touch wirelessly, as you said, and which is what I'd been doing. Can you help me? It was so easy the last time I did this, but I just can't get it done now!
    Did I screw things up because I already had one network set up on my Mac and was trying to set up another one on my Mac (just to test it out before I tried to do it on my brother's Mac)? HELP!
    Thanks for your help.

  • Need Help to see why the performance is not good

    Hi,
    We have an application that all process are developed in PL/SQL on Oracle 9i Database :
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    PL/SQL Release 9.2.0.6.0 - Production
    Why I have created this package. the application is a production management on chemical industries. I need to sometimes trace the Manufacturing order execution to eventually answer some incoherent data. If I analyze directly the data in the Table is not always responding because the origin of problem can be provide of some execution that perform some calculation.
    In the procedure or function a use my package PAC_LOG_ERROR.PUT_LINE(xxxxxx) to save the information. This command save the information in the memory before. At the end of the procedure or function a perform the insert with the COMMIT calling PAC_LOG_ERROR.LOGS or PAC_LOG_ERROR.ERRORS on the catch exception.
    This package is always call. On each routines performed I execute it. In the trace log of the database we have see a problem we the procedure GET_PROC_NAME in the package. We have identify that is called more that 800x and increase the performance. Who increase is this select command :
        SELECT * INTO SOURCE_TEXT
        FROM (SELECT TEXT FROM all_source
            WHERE OWNER = SOURCE_OWNER AND
                  NAME=SOURCE_NAME AND
                  TYPE IN ('PROCEDURE','FUNCTION','PACKAGE BODY') AND
                  LINE <= SOURCE_LINE AND SUBSTR(TRIM(TEXT),1,9) IN ('PROCEDURE','FUNCTION ')
            ORDER BY LINE DESC)
        WHERE ROWNUM = 1;I use it to get the procedure or function name where my log proc is called. I now that I can pass in parameters, but I have think to use an automatic method, that can help to not have some problem with others developer team to make a copy/past and not update the parameters. Because the Log info is read by the Help Desk and if we have an error on the information, it not a good help.
    COULD YOU PLEASE HELP ME TO OPTIMIZE OR SAID THE BETTER METHOD TO DO IT ?
    Here my package :
    create or replace
    PACKAGE PAC_LOG_ERROR AS
    -- Name         : pac_log_error.sql
    -- Author       : Calà Salvatore - 02 July 2010
    -- Description  : Basic Error and Log management.
    -- Usage notes  : To active the Log management execute this statement
    --                UPDATE PARAM_TECHNIC SET PRM_VALUE = 'Y' WHERE PRM_TYPE = 'TRC_LOG';
    --                COMMIT;
    --                To set the period in day before to delete tracability
    --                UPDATE PARAM_TECHNIC SET PRM_VALUE = 60 WHERE PRM_TYPE = 'DEL_TRC_LOG';
    --                COMMIT;
    --                To set the number in day where the ERROR is save before deleted
    --                UPDATE PARAM_TECHNIC SET PRM_VALUE = 60 WHERE PRM_TYPE = 'DEL_TRC_LOG';
    --                COMMIT;
    -- Requirements : Packages PAC_PUBLIC and OWA_UTIL
    -- Revision History
    -- --------+---------------+-------------+--------------------------------------
    -- Version |    Author     |  Date       | Comment
    -- --------+---------------+-------------+--------------------------------------
    -- 1.0.0   | S. Calà       | 02-Jul-2010 | Initial Version
    -- --------+---------------+-------------+--------------------------------------
    --         |               |             |
    -- --------+---------------+-------------+--------------------------------------
      PROCEDURE INITIALIZE;
      PROCEDURE CLEAN;
      PROCEDURE RESETS(IN_SOURCE IN VARCHAR2 DEFAULT NULL);
      PROCEDURE PUT_LINE(TXT IN VARCHAR2);
      PROCEDURE ERRORS(REF_TYPE IN VARCHAR2 DEFAULT 'SITE', REF_VALUE IN VARCHAR2 DEFAULT '99', ERR_CODE IN NUMBER DEFAULT SQLCODE, ERR_MSG IN VARCHAR2 DEFAULT SQLERRM);
      PROCEDURE LOGS(REF_TYPE IN VARCHAR2 DEFAULT 'SITE', REF_VALUE IN VARCHAR2 DEFAULT '99');
    END PAC_LOG_ERROR;
    create or replace
    PACKAGE BODY PAC_LOG_ERROR
    AS
      /* Private Constant */
      CR    CONSTANT CHAR(1)  := CHR(13);  -- Retour chariot
      LF    CONSTANT CHAR(1)  := CHR(10);  -- Saut de ligne
      CR_LF CONSTANT CHAR(2)  := LF || CR; --Saut de ligne et retour chariot
      TAB   CONSTANT PLS_INTEGER := 50;
      sDelay   CONSTANT PLS_INTEGER := 30;
      /* Private Record */
      TYPE REC_LOG IS RECORD(
        ERR_DATE TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
        ERR_TXT  VARCHAR2(4000)
      /* Private Type Table */
      TYPE TAB_VALUE IS TABLE OF REC_LOG INDEX BY PLS_INTEGER;
      TYPE TAB_POINTER IS TABLE OF TAB_VALUE INDEX BY VARCHAR2(80);
      /* Private Variables Structures */
      LOG_TRC PARAM_TECHNIC.PRM_VALUE%TYPE;
      LIST_PARAM TAB_POINTER;
      /* Private Programs */
      FUNCTION GET_PROC_NAME( SOURCE_OWNER IN all_source.OWNER%TYPE
                             ,SOURCE_NAME  IN all_source.NAME%TYPE
                             ,SOURCE_LINE  IN all_source.LINE%TYPE) RETURN VARCHAR2
      AS
        SOURCE_TEXT  all_source.TEXT%TYPE;
        TYPE RECORD_TEXT IS TABLE OF all_source.TEXT%TYPE;
        RETURN_TEXT     RECORD_TEXT;
      BEGIN
        SELECT * INTO SOURCE_TEXT
        FROM (SELECT TEXT FROM all_source
            WHERE OWNER = SOURCE_OWNER AND
                  NAME=SOURCE_NAME AND
                  TYPE IN ('PROCEDURE','FUNCTION','PACKAGE BODY') AND
                  LINE <= SOURCE_LINE AND SUBSTR(TRIM(TEXT),1,9) IN ('PROCEDURE','FUNCTION ')
            ORDER BY LINE DESC)
        WHERE ROWNUM = 1;
        IF SOURCE_TEXT IS NOT NULL OR  SOURCE_TEXT != '' THEN
          SOURCE_TEXT := TRIM(SUBSTR(SOURCE_TEXT,1,INSTR(SOURCE_TEXT,'(')-1));     
          SOURCE_TEXT := LTRIM(LTRIM(TRIM(SOURCE_TEXT),'PROCEDURE'),'FUNCTION');
          SOURCE_TEXT := SOURCE_NAME||'.'|| TRIM(SOURCE_TEXT);
        ELSE
          SOURCE_TEXT := 'ANONYMOUS BLOCK';
        END IF;
        RETURN SOURCE_TEXT;
      END GET_PROC_NAME;
      PROCEDURE SELECT_MASTER(REF_TYPE IN VARCHAR2, PARAM_VALUE IN VARCHAR2, SITE OUT VARCHAR2, REF_MASTER OUT VARCHAR2)
      AS
      BEGIN
          REF_MASTER := '';
          SITE := '99';
          CASE UPPER(REF_TYPE)
            WHEN 'PO' THEN -- Process Order
              SELECT SITE_CODE INTO SITE FROM PO_PROCESS_ORDER WHERE PO_NUMBER = PARAM_VALUE;
            WHEN 'SO' THEN -- Shop Order
              SELECT P.SITE_CODE,P.PO_NUMBER INTO SITE,REF_MASTER FROM SO_SHOP_ORDER S
              INNER JOIN PO_PROCESS_ORDER P ON P.PO_NUMBER = S.PO_NUMBER
              WHERE S.NUMOF = PARAM_VALUE;
            WHEN 'SM' THEN -- Submixing
              SELECT SITE_CODE,NUMOF INTO SITE,REF_MASTER FROM SO_SUBMIXING WHERE IDSM = PARAM_VALUE;
            WHEN 'IDSM' THEN -- Submixing
              SELECT SITE_CODE,NUMOF INTO SITE,REF_MASTER FROM SO_SUBMIXING WHERE IDSM = PARAM_VALUE;
            WHEN 'PR' THEN -- Pourring
              SELECT B.SITE_CODE,P.NUMOF INTO SITE,REF_MASTER FROM SO_POURING P
              INNER JOIN SO_SUBMIXING B ON B.IDSM=P.IDSM
              WHERE P.IDSM = PARAM_VALUE;
            WHEN 'NUMSMP' THEN -- Pourring
              SELECT SITE_CODE,NUMOF INTO SITE,REF_MASTER FROM SAMPLE WHERE NUMSMP = TO_NUMBER(PARAM_VALUE);
    --        WHEN 'MSG' THEN -- Messages
    --          SELECT SITE_CODE,PO_NUMBER INTO SITE,REF_MASTER FROM CMS_INTERFACE.MAP_ITF_PO WHERE MSG_ID = PARAM_VALUE;
            ELSE
              SITE := sys_context('usr_context', 'site_attribute');
          END CASE;
      EXCEPTION
        WHEN OTHERS THEN
          REF_MASTER := '';
          SITE := sys_context('usr_context', 'site_attribute');
      END SELECT_MASTER;
      PROCEDURE ADD_LIST_PROC
      AS
      PRAGMA AUTONOMOUS_TRANSACTION;
      BEGIN
        MERGE INTO LOG_PARAM A
        USING (SELECT OWNER, TYPE
                     ,NAME PROC
                     , CASE NAME WHEN SUBNAME THEN NULL
                                 ELSE SUBNAME
                       END SUBPROC
               FROM (
                  SELECT owner,TYPE,UPPER(NAME) NAME,UPPER(trim(substr(substr(trim(text),1,instr(trim(text),'(')-1),instr(substr(trim(text),1,instr(trim(text),'(')-1),' ')))) SUBNAME
                         FROM ALL_SOURCE where owner in ('CMS_ADM','CMS_INTERFACE')
                                             and type in ('FUNCTION','PROCEDURE','PACKAGE BODY')
                                             and (instr(substr(trim(text),1,instr(trim(upper(text)),'(')-1),'FUNCTION') = 1 or instr(substr(trim(text),1,instr(trim(upper(text)),'(')-1),'PROCEDURE')=1)
               )-- ORDER BY OWNER,PROC,SUBPROC NULLS FIRST
        ) B
        ON (A.OWNER = B.OWNER AND A.TYPE = B.TYPE AND A.PROC=B.PROC AND NVL(A.SUBPROC,' ') = NVL(B.SUBPROC,' '))
        WHEN NOT MATCHED THEN
          INSERT (OWNER,TYPE,PROC,SUBPROC) VALUES (B.OWNER,B.TYPE,B.PROC,B.SUBPROC)
        WHEN MATCHED THEN
          UPDATE SET ACTIVE = ACTIVE;
        DELETE LOG_PARAM A
        WHERE NOT EXISTS (SELECT OWNER, TYPE
                     ,NAME PROC
                     , CASE NAME WHEN SUBNAME THEN NULL
                                 ELSE SUBNAME
                       END SUBPROC
               FROM (
                  SELECT owner,TYPE,NAME,upper(trim(substr(substr(trim(text),1,instr(trim(text),'(')-1),instr(substr(trim(text),1,instr(trim(text),'(')-1),' ')))) SUBNAME
                         FROM ALL_SOURCE where owner in ('CMS_ADM','CMS_INTERFACE')
                                             and type in ('FUNCTION','PROCEDURE','PACKAGE BODY')
                                             and (instr(substr(trim(text),1,instr(trim(text),'(')-1),'FUNCTION') = 1 or instr(substr(trim(text),1,instr(trim(text),'(')-1),'PROCEDURE')=1)
               ) WHERE A.OWNER = OWNER AND A.TYPE = TYPE AND A.PROC=PROC AND NVL(A.SUBPROC,' ') = NVL(SUBPROC,' '));
        COMMIT;
      EXCEPTION
        WHEN OTHERS THEN
          NULL;
      END ADD_LIST_PROC;
      PROCEDURE INITIALIZE
      AS
      BEGIN
        LIST_PARAM.DELETE;
        CLEAN;
    --    ADD_LIST_PROC;
      EXCEPTION
        WHEN OTHERS THEN
          NULL;
      END INITIALIZE;
      PROCEDURE CLEAN
      AS
        PRAGMA AUTONOMOUS_TRANSACTION;
        dtTrcLog DATE;
        dtTrcErr DATE;
      BEGIN
        BEGIN
          SELECT dbdate-NUMTODSINTERVAL(to_number(PRM_VALUE),'DAY') INTO dtTrcLog
          FROM PARAM_TECHNIC WHERE PRM_TYPE = 'DEL_TRC_LOG';
        EXCEPTION
          WHEN OTHERS THEN
            dtTrcLog := dbdate -NUMTODSINTERVAL(sDelay,'DAY');
        END;
        BEGIN
          SELECT dbdate-NUMTODSINTERVAL(to_number(PRM_VALUE),'DAY') INTO dtTrcErr
          FROM PARAM_TECHNIC WHERE PRM_TYPE = 'DEL_TRC_ERR';
        EXCEPTION
          WHEN OTHERS THEN
            dtTrcErr := dbdate -NUMTODSINTERVAL(sDelay,'DAY');
          END;
        DELETE FROM ERROR_LOG WHERE ERR_TYPE ='LOG' AND ERR_DATE < dtTrcLog;
        DELETE FROM ERROR_LOG WHERE ERR_TYPE ='ERROR' AND ERR_DATE < dtTrcErr;
        COMMIT;
      EXCEPTION
        WHEN OTHERS THEN
          NULL; -- Do nothing if error occurs and catch exception
      END CLEAN;
      PROCEDURE RESETS(IN_SOURCE IN VARCHAR2 DEFAULT NULL)
      AS
        SOURCE_OWNER all_source.OWNER%TYPE;
        SOURCE_NAME      all_source.NAME%TYPE;
        SOURCE_LINE      all_source.LINE%TYPE;
        SOURCE_TEXT  all_source.TEXT%TYPE;
        SOURCE_PROC  VARCHAR2(32727);
      BEGIN
        OWA_UTIL.WHO_CALLED_ME(owner    => SOURCE_OWNER,
                               name     => SOURCE_NAME,
                               lineno   => SOURCE_LINE,
                               caller_t => SOURCE_TEXT);
        IF SOURCE_PROC IS NULL THEN
          SOURCE_PROC := SUBSTR(GET_PROC_NAME(SOURCE_OWNER,SOURCE_NAME,SOURCE_LINE),1,125);
        ELSE
          SOURCE_PROC := IN_SOURCE;
        END IF;
        LIST_PARAM.DELETE(SOURCE_PROC);
      EXCEPTION
        WHEN OTHERS THEN
          NULL;
      END RESETS;
      PROCEDURE PUT_LINE(TXT IN VARCHAR2)
      AS
        PRAGMA AUTONOMOUS_TRANSACTION;
        SOURCE_OWNER     all_source.OWNER%TYPE;
        SOURCE_NAME     all_source.NAME%TYPE;
        SOURCE_LINE     all_source.LINE%TYPE;
        SOURCE_TEXT all_source.TEXT%TYPE;
        SOURCE_PROC VARCHAR2(128); 
      BEGIN
        IF TXT IS NULL OR TXT = '' THEN
          RETURN;
        END IF;
        OWA_UTIL.WHO_CALLED_ME(owner    => SOURCE_OWNER,
                               name     => SOURCE_NAME,
                               lineno   => SOURCE_LINE,
                               caller_t => SOURCE_TEXT);
        SOURCE_PROC := GET_PROC_NAME(SOURCE_OWNER,SOURCE_NAME,SOURCE_LINE);
        IF LIST_PARAM.EXISTS(SOURCE_PROC) THEN
          LIST_PARAM(SOURCE_PROC)(LIST_PARAM(SOURCE_PROC).COUNT+1).ERR_TXT := TXT;
        ELSE 
          LIST_PARAM(SOURCE_PROC)(1).ERR_TXT := TXT;
        END IF;
      EXCEPTION
        WHEN OTHERS THEN
          NULL;   
      END PUT_LINE;
      PROCEDURE LOGS(REF_TYPE IN VARCHAR2 DEFAULT 'SITE', REF_VALUE IN VARCHAR2 DEFAULT '99')
      AS
        PRAGMA AUTONOMOUS_TRANSACTION;
        MASTER_VALUE ERROR_LOG.ERR_MASTER%TYPE;
        SITE PARAMTAB.SITE_CODE%TYPE;
        SOURCE_OWNER     all_source.OWNER%TYPE;
        SOURCE_NAME     all_source.NAME%TYPE;
        SOURCE_LINE     all_source.LINE%TYPE;
        SOURCE_TEXT all_source.TEXT%TYPE;
        SOURCE_PROC VARCHAR2(128);
        ERR_KEY NUMBER;
      BEGIN
    --    NULL;
        OWA_UTIL.WHO_CALLED_ME(owner    => SOURCE_OWNER,
                               name     => SOURCE_NAME,
                               lineno   => SOURCE_LINE,
                               caller_t => SOURCE_TEXT);
        SOURCE_PROC := SUBSTR(GET_PROC_NAME(SOURCE_OWNER,SOURCE_NAME,SOURCE_LINE),1,128);
        LIST_PARAM.DELETE(SOURCE_PROC);
    --    SELECT NVL(MAX(ACTIVE),'N') INTO LOG_TRC FROM LOG_PARAM WHERE TRIM(UPPER((PROC||'.'||SUBPROC))) = TRIM(UPPER(SOURCE_PROC))
    --                                      AND OWNER =SOURCE_OWNER AND TYPE = SOURCE_TEXT ;
    --    IF LOG_TRC = 'N' THEN
    --      LIST_PARAM.DELETE(SOURCE_PROC);
    --      RETURN;
    --    END IF;   
    --    SELECT_MASTER(REF_TYPE => UPPER(REF_TYPE), PARAM_VALUE => REF_VALUE, SITE => SITE, REF_MASTER => MASTER_VALUE);
    --    ERR_KEY := TO_CHAR(LOCALTIMESTAMP,'YYYYMMDDHH24MISSFF6');
    --    FOR AIX IN 1..LIST_PARAM(SOURCE_PROC).COUNT LOOP
    --      INSERT INTO ERROR_LOG (ERR_KEY, ERR_SITE,ERR_SLAVE  ,ERR_MASTER  ,ERR_TYPE ,ERR_PROC,ERR_DATE,ERR_TXT)
    --      VALUES (ERR_KEY,SITE,REF_VALUE,MASTER_VALUE,'LOG',SOURCE_PROC,LIST_PARAM(SOURCE_PROC)(AIX).ERR_DATE ,LIST_PARAM(SOURCE_PROC)(AIX).ERR_TXT);
    --    END LOOP; 
    --    UPDATE SESSION_CONTEXT SET SCX_ERR_KEY = ERR_KEY WHERE SCX_ID = SYS_CONTEXT('USERENV','SESSIONID');
    --    LIST_PARAM.DELETE(SOURCE_PROC);
    --    COMMIT;
      EXCEPTION
        WHEN OTHERS THEN
          LIST_PARAM.DELETE(SOURCE_PROC);
      END LOGS;
      PROCEDURE ERRORS(REF_TYPE IN VARCHAR2 DEFAULT 'SITE', REF_VALUE IN VARCHAR2 DEFAULT '99', ERR_CODE IN NUMBER DEFAULT SQLCODE, ERR_MSG IN VARCHAR2 DEFAULT SQLERRM)
      AS
        PRAGMA AUTONOMOUS_TRANSACTION;
        MASTER_VALUE ERROR_LOG.ERR_MASTER%TYPE;
        SITE         PARAMTAB.SITE_CODE%TYPE;
        SOURCE_OWNER all_source.OWNER%TYPE;
        SOURCE_NAME      all_source.NAME%TYPE;
        SOURCE_LINE      all_source.LINE%TYPE;
        SOURCE_TEXT  all_source.TEXT%TYPE;
        SOURCE_PROC  VARCHAR2(4000);
        ERR_KEY NUMBER := TO_CHAR(LOCALTIMESTAMP,'YYYYMMDDHH24MISSFF6');
      BEGIN
        OWA_UTIL.WHO_CALLED_ME(owner    => SOURCE_OWNER,
                               name     => SOURCE_NAME,
                               lineno   => SOURCE_LINE,
                               caller_t => SOURCE_TEXT);
        SOURCE_PROC := SUBSTR(GET_PROC_NAME(SOURCE_OWNER,SOURCE_NAME,SOURCE_LINE),1,125);
        SELECT_MASTER(REF_TYPE => UPPER(REF_TYPE), PARAM_VALUE => REF_VALUE, SITE => SITE, REF_MASTER => MASTER_VALUE);
       IF LIST_PARAM.EXISTS(SOURCE_PROC) THEN
          FOR AIX IN 1..LIST_PARAM(SOURCE_PROC).COUNT LOOP
            INSERT INTO ERROR_LOG (ERR_KEY,ERR_SITE,ERR_SLAVE,ERR_MASTER,ERR_PROC,ERR_DATE,ERR_TXT,ERR_CODE,ERR_MSG)
            VALUES (ERR_KEY,SITE,REF_VALUE,MASTER_VALUE,SOURCE_PROC,LIST_PARAM(SOURCE_PROC)(AIX).ERR_DATE, LIST_PARAM(SOURCE_PROC)(AIX).ERR_TXT,ERR_CODE,ERR_MSG);
          END LOOP; 
         LIST_PARAM.DELETE(SOURCE_PROC);
        ELSE
          INSERT INTO ERROR_LOG (ERR_KEY,ERR_SITE,ERR_SLAVE,ERR_MASTER,ERR_PROC,ERR_DATE,ERR_TXT,ERR_CODE,ERR_MSG)
          VALUES (ERR_KEY,SITE,REF_VALUE,MASTER_VALUE,SOURCE_PROC,CURRENT_TIMESTAMP,'Error info',ERR_CODE,ERR_MSG);
        END IF;
        UPDATE SESSION_CONTEXT SET SCX_ERR_KEY = ERR_KEY WHERE SCX_ID = sys_context('usr_context', 'session_id');
        COMMIT;
      EXCEPTION
        WHEN OTHERS THEN
          LIST_PARAM.DELETE(SOURCE_PROC);
      END ERRORS;
    END PAC_LOG_ERROR;

    This package is always call. On each routines performed I execute it. In the trace log of the database we have see a problem we the procedure GET_PROC_NAME in the package. We have identify that is called more that 800x and increase the performance. Who increase is this select command :
        SELECT * INTO SOURCE_TEXT
        FROM (SELECT TEXT FROM all_source
            WHERE OWNER = SOURCE_OWNER AND
                  NAME=SOURCE_NAME AND
                  TYPE IN ('PROCEDURE','FUNCTION','PACKAGE BODY') AND
                  LINE <= SOURCE_LINE AND SUBSTR(TRIM(TEXT),1,9) IN ('PROCEDURE','FUNCTION ')
            ORDER BY LINE DESC)
        WHERE ROWNUM = 1;Complex SQL like inline views and views of views can overwhelm the cost-based optimizer resulting in bad execution plans. Start with getting an execution plan of your problem query to see if it is inefficient - look for full table scans in particular. You might bet better performance by eliminating the IN and merging the results of 3 queries with a UNION.

  • Need HELP with Windows on my iMac.  Thanks.

    I'm an experienced Windows user. I bought the iMac 20" Duo Core 2 (2.16ghz) because of the hardware and the design. I want to use Windows XP Pro (then Vista) almost exclusively.
    PROBLEM: Windows installed and worked PERFECTLY (without the Mac OS or Boot Camp. I also installed the Mac drivers for Windows. Everything went beautifully UNTIL I started installing the Windows drivers for my external firewire sound equipment. Then the computer wouldn't fully boot. Every manufacturer I spoke with concerning my external equipment said that they did NOT plan to update their drivers to use Windows on a Mac. They said that there are problems and issues with the new Duo Core 2 processor in a Mac running Windows. These are DRIVER issues that may never be addressed by individual equipment manufacturers.
    QUESTION: Do I need to reinstall the Mac OS and keep it updated in order to avoid conflicts with Windows' use of the Mac hardware? Or can I simply install Windows only, and try for workarounds?
    Thank you very much for your replies.

    Thank you, Eric, for your VERY helpful reply.
    I've reinstalled Windows XP Pro S2, and got the system up and running again.
    The problem I initially had was with the M-Audio Firewire Solo external soundcard. Once the driver was installed, the computer locked during booting. The M-Audio tech I spoke with was exceptionally knowledgeable, and he said they were working on updated drivers for both the Mac and the PC, but not for Windows on a Mac.
    The problem could be that the firewire port uses the same IRQ as the hard drive. Although there isn't technically a conflict, the firewire port could be interfering with the boot when it's connected to a phantom-powered unit. And this unit cannot be hot-wired. However, the computer locked simply upon installing the driver with no unit connected.
    I've decided to change over to a external soundcard that uses USB instead. I'm hoping this will solve the problem.
    I purchased this computer for digital audio recording in Windows. If there are more conflicts that I cannot workaround, I'm going to have to return it and get a PC-based Intel desktop system. I don't want to do that however. I really, REALLY like this machine. But I need it to work with my equipment.
    BTW, I've searched the other forums here on Apple.com. Several people have written in about the problems they've had with both the firewire and USB ports - using the MAC OS. So it's not just a conflict with Windows.
    I really appreciate your reply. Thanks again.

  • Need help installing Flash on an iMac

    I am a little confused. Yesterday morning, my computer was
    working fine. A relative of mine got on the machine -- and when I
    returned later, I received a message from a website that I was on
    that I did not have Flash. I am on an Intel iMac with OSX. I have
    tried downloading a new Flash installation pack -- it comes back,
    mid-installation with the comment:
    Macromedia Flash-Player has content of MIME type
    "application/x-shockwave-flash", but you don't have a plug-in
    installed for thsi MIME type. A plug in should be accessible on
    this page (with a link to a web page).
    I have visited as many web pages as I could find -- and read
    a variety of tech notes. One instructed that I may not have proper
    permissions, but I am the administrator on this system (it is a
    non-networked personal machine). As Flash is a free product, they
    cannot / will not help here, so I am thoroughly lost. Any and all
    help would be appreciated.
    Thank you

    hey!
    this thread is really interesting, coz i used to have the
    same problem with my imac g5 but somehow it solved itself, cant
    remeber what i did.. but now i have a new problem: i install flash
    player, all works fine, but as soon as i restart/shut down my
    computer, it magically uninstalls itself!!!!! i have no idea how it
    does it, or why, but i know that when i log back into my account
    the little flash player logo as a removable drive has ejected
    itself, and whenever i go to a webpage such as www.absolut.com i am
    confronted with a quicktime logo with a '?' over the top of it and
    have to re-download the installer and reinstall the plugin all over
    again. im not even sure why the computer thinks it has anything to
    do with quicktime when its clearly a Flash player problem, but
    anyway.. so if anyone has any explanation can they please tell me,
    coz its driving me INSANE!!! i was thinking of contacting Apple but
    i thought id try here first. good luck with all your problems, may
    your prayers be answered!

  • Need help in diagnosing 1 long beep 2 short beeps

    I know this usually means video card is bad. I need to know if disconnecting internal video cable on working system will give the same symptom to help isolate problem between display and video card
    Solved!
    Go to Solution.

    not exactly sure; the 1long + 2short beep diagnostic is somewhat generic, it could be almost anything (on the mainboard, including GPU).
    and Lenovo ThinkPad Beep Codes and ThinkWiki Beep Codes have conflicting information about the 1long/2short
    you haven't said what machine, but assuming it's a T6x series,  do you have it docked with an external video card?  the onboard GPU is not socketed (it's soldered to the mainboard), so the only way to disable it (that i'm aware of) is via the BIOS (assuming an external video adapter in a dock is also available for further troubleshooting).  i don't think that disconnecting the display panel (flat) cable is likely to help diagnose the problem, but while you're at it, you might want to make certain that it is seated/connected properly.  i know that where the display cable connects to the socket on the back of the lcd panel is a tight fit, and the connecter itself locks into place (when mated).  you've checked the lcd cable for damage and/or proper connectivity, i assume?  what about external monitor to the VGA port... have you tried that?  FN-F7 key presses may be necessary to toggle the video hardware b/w the internal/external displays.

  • E-Rows = NULL and A-Rows=42M? Need help in understanding why.

    Hi,
    Oracle Standard Edition 11.2.0.3.0 CPU Oct 2012 running on Windows 2008 R2 x64. I am using Oracle 10g syntax for WITH clause as the query will also run on Oracle 10gR2. I do not have a Oracle 10gR2 environment at hand to comment if this behaves the same.
    Following query is beyond me. It takes around 2 minutes to return the "computed" result set of 66 rows.
    SQL> WITH dat AS
      2          (SELECT 723677 vid,
      3                  243668 fid,
      4                  TO_DATE ('06.03.2013', 'dd.mm.yyyy') mindt,
      5                  TO_DATE ('06.03.2013', 'dd.mm.yyyy') maxdt
      6             FROM DUAL
      7           UNION ALL
      8           SELECT 721850,
      9                  243668,
    10                  TO_DATE ('06.02.2013', 'dd.mm.yyyy'),
    11                  TO_DATE (' 22.03.2013', 'dd.mm.yyyy')
    12             FROM DUAL
    13           UNION ALL
    14           SELECT 723738,
    15                  243668,
    16                  TO_DATE ('16.03.2013', 'dd.mm.yyyy'),
    17                  TO_DATE ('  04.04.2013', 'dd.mm.yyyy')
    18             FROM DUAL)
    19      SELECT /*+ GATHER_PLAN_STATISTICS */ DISTINCT vid, fid, mindt - 1 + LEVEL dtshow
    20        FROM dat
    21  CONNECT BY LEVEL <= maxdt - mindt + 1
    22  order by fid, vid, dtshow;
    66 rows selected.
    SQL>
    SQL> SELECT * FROM TABLE (DBMS_XPLAN.display_cursor (NULL, NULL, 'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID  9c4vma4mds6zk, child number 0
    WITH dat AS         (SELECT 723677 vid,                 243668 fid,
                TO_DATE ('06.03.2013', 'dd.mm.yyyy') mindt,
    TO_DATE ('06.03.2013', 'dd.mm.yyyy') maxdt            FROM DUAL
    UNION ALL          SELECT 721850,                 243668,
       TO_DATE ('06.02.2013', 'dd.mm.yyyy'),                 TO_DATE ('
    22.03.2013', 'dd.mm.yyyy')            FROM DUAL          UNION ALL
        SELECT 723738,                 243668,                 TO_DATE
    ('16.03.2013', 'dd.mm.yyyy'),                 TO_DATE ('  04.04.2013',
    'dd.mm.yyyy')            FROM DUAL)     SELECT /*+
    GATHER_PLAN_STATISTICS */ DISTINCT vid, fid, mindt - 1 + LEVEL dtshow
        FROM dat CONNECT BY LEVEL <= maxdt - mindt + 1 order by fid, vid,
    dtshow
    Plan hash value: 1865145249
    | Id  | Operation                              | Name | Starts | E-Rows | A-Rows |   A-Time   |  OMem |  1Mem | Used-Mem |
    |   0 | SELECT STATEMENT                       |      |      1 |        |     66 |00:01:54.64 |       |       |          |
    |   1 |  SORT UNIQUE                           |      |      1 |      3 |     66 |00:01:54.64 |  6144 |  6144 | 6144  (0)|
    |   2 |   CONNECT BY WITHOUT FILTERING (UNIQUE)|      |      1 |        |     42M|00:01:04.00 |       |       |          |
    |   3 |    VIEW                                |      |      1 |      3 |      3 |00:00:00.01 |       |       |          |
    |   4 |     UNION-ALL                          |      |      1 |        |      3 |00:00:00.01 |       |       |          |
    |   5 |      FAST DUAL                         |      |      1 |      1 |      1 |00:00:00.01 |       |       |          |
    |   6 |      FAST DUAL                         |      |      1 |      1 |      1 |00:00:00.01 |       |       |          |
    |   7 |      FAST DUAL                         |      |      1 |      1 |      1 |00:00:00.01 |       |       |          |
    --------------------------------------------------------------------------------------------------------------------------If I take out one of the UNION queries, the query returns in under 1 second.
    SQL> WITH dat AS
      2          (SELECT 723677 vid,
      3                  243668 fid,
      4                  TO_DATE ('06.03.2013', 'dd.mm.yyyy') mindt,
      5                  TO_DATE ('06.03.2013', 'dd.mm.yyyy') maxdt
      6             FROM DUAL
      7           UNION ALL
      8           SELECT 721850,
      9                  243668,
    10                  TO_DATE ('06.02.2013', 'dd.mm.yyyy'),
    11                  TO_DATE (' 22.03.2013', 'dd.mm.yyyy')
    12             FROM DUAL)
    13      SELECT /*+ GATHER_PLAN_STATISTICS */ DISTINCT vid, fid, mindt - 1 + LEVEL dtshow
    14        FROM dat
    15  CONNECT BY LEVEL <= maxdt - mindt + 1
    16  order by fid, vid, dtshow;
    46 rows selected.
    SQL>
    SQL> SELECT * FROM TABLE (DBMS_XPLAN.display_cursor (NULL, NULL, 'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID  1d2f62uy0521p, child number 0
    WITH dat AS         (SELECT 723677 vid,                 243668 fid,
                TO_DATE ('06.03.2013', 'dd.mm.yyyy') mindt,
    TO_DATE ('06.03.2013', 'dd.mm.yyyy') maxdt            FROM DUAL
    UNION ALL          SELECT 721850,                 243668,
       TO_DATE ('06.02.2013', 'dd.mm.yyyy'),                 TO_DATE ('
    22.03.2013', 'dd.mm.yyyy')            FROM DUAL)     SELECT /*+
    GATHER_PLAN_STATISTICS */ DISTINCT vid, fid, mindt - 1 + LEVEL dtshow
        FROM dat CONNECT BY LEVEL <= maxdt - mindt + 1 order by fid, vid,
    dtshow
    Plan hash value: 2232696677
    | Id  | Operation                              | Name | Starts | E-Rows | A-Rows |   A-Time   |  OMem |  1Mem | Used-Mem |
    |   0 | SELECT STATEMENT                       |      |      1 |        |     46 |00:00:00.01 |       |       |          |
    |   1 |  SORT UNIQUE                           |      |      1 |      2 |     46 |00:00:00.01 |  4096 |  4096 | 4096  (0)|
    |   2 |   CONNECT BY WITHOUT FILTERING (UNIQUE)|      |      1 |        |     90 |00:00:00.01 |       |       |          |
    |   3 |    VIEW                                |      |      1 |      2 |      2 |00:00:00.01 |       |       |          |
    |   4 |     UNION-ALL                          |      |      1 |        |      2 |00:00:00.01 |       |       |          |
    |   5 |      FAST DUAL                         |      |      1 |      1 |      1 |00:00:00.01 |       |       |          |
    |   6 |      FAST DUAL                         |      |      1 |      1 |      1 |00:00:00.01 |       |       |          |
    26 rows selected.What I cannot understand is why the E-Rows is NULL for "CONNECT BY WITHOUT FILTERING (UNIQUE)" step and A-Rows shoots up to 42M for first case. The behaviour is the same for any number of UNION queries above two.
    Can anyone please help me understand this and aid in tuning this accordingly? Also, I would be happy to know if there are better ways to generate the missing date range.
    Regards,
    Satish

    May be, this?
    WITH dat AS
                (SELECT 723677 vid,
                        243668 fid,
                        TO_DATE ('06.03.2013', 'dd.mm.yyyy') mindt,
                        TO_DATE ('06.03.2013', 'dd.mm.yyyy') maxdt
                   FROM DUAL
                 UNION ALL
                 SELECT 721850,
                        243668,
                       TO_DATE ('06.02.2013', 'dd.mm.yyyy'),
                       TO_DATE (' 22.03.2013', 'dd.mm.yyyy')
                  FROM DUAL
                UNION ALL
                SELECT 723738,
                       243668,
                       TO_DATE ('16.03.2013', 'dd.mm.yyyy'),
                       TO_DATE ('  04.04.2013', 'dd.mm.yyyy')
                  FROM DUAL)
           SELECT  vid, fid, mindt - 1 + LEVEL dtshow
             FROM dat
      CONNECT BY LEVEL <= maxdt - mindt + 1
          and prior vid = vid
          and prior fid = fid
          and prior sys_guid() is not null
      order by fid, vid, dtshow;
    66 rows selected.
    Elapsed: 00:00:00.03

Maybe you are looking for

  • Calling GUI_DOWNLOAD Function

    i would like to store my internal table into my local disk , there are two functions GUI_DOWNLOAD and WS_DOWNLOAD. how do i call these functions. if i want to specify the file name in my selection screen what should be the data type of the file name.

  • Pdf from WebHelp toolbar no longer opens

    I have a WebHelp file and I have created an additional toolbar button that, when clicked, opens a pdf version of the Help file (so users can easily print all the Help). This has been working fine with IE6 but when it was tested on a machine with IE7

  • Why are all my backups missing after an iTunes update?

    Hello. For reasons unbeknownst to me, my iPhone 4 locked up completely yesterday afternoon. It was lagging pretty hard, so I powered it off and on, or tried to, but it froze on the apple logo for approximately 25 minutes. I wasn't home, so I tried to

  • DML,Transactions and index updates

    Hi, Its known adding indexes slows down the DML on the table. i.e. every time table data changes, the index has to be recalculated. What i am trying to understand is whether the index is recalculated as soon as oracle sees the change? To elaborate, l

  • Userexits/BADI in ME31K for getting the contract number created.

    Dear Experts, Is there any userexits/BADI available in ME31K , for getting the contract number once it is created. Thanks&Regards, Anversha