Please help to interpret this DumpPoolStatistics output ...

Hi All,
I am tuning the application module pool parameters in our production ADF 10g application. The reason is sometimes on peak load the respon is very slow then user assume it is hung and restart the opmn to start over again.
(Not DB issue & JVM is also being tuned)
I already run steve's DumpPoolStatistics.jsp to see the statistics of AM pools when the apps is running on real load, below is the output, could you please help .. does it indicates anything that could be made better ?
(currently the setting of Referenced Pool Size is 85)
Output of DumpPoolStatistics.jsp :
Pool Statistics for Pool 'itt.sales.model.service.SalesAMLocal'
Back to Pool List
head:Application module lifetime statistics
Number of application module creations,170
Number of application module removals,85
head:State management statistics
Number of transactional state activations,312
Number of transactional state passivations,557
head:Application pool use statistics
Number of application pool check outs,22665
Number of application pool check ins,22661
Number of referenced application modules that were reused,21853
Number of referenced application modules that were recycled,473
Number of unreferenced application modules that were recycled,169
Number of application pool check out failures,0
head:Application module statistics
Total number of application modules in the pool,85
Maximum number of application modules in the pool,85
Average number of application modules in the pool,83
Total number of available application modules in the pool,81
Average number of available application modules in the pool,80
Average number of unavailable application modules in the pool,3
Total number of referenced application modules in the pool,85
head:Application module age statistics
Number of referenced instances unused for >10 min,0
Number of referenced instances unused for >5 min,0
Number of referenced instances unused for >1 min,37
Number of referenced instances used during last 1 min,48
Number of instances unused for >10 min,0
Number of instances unused for >5 min,0
Number of instances unused for >1 min,0
Number of instances used during last 1 min,0
head:Session statistics
Number of sessions registered with the pool,181
Average number of sessions referencing transactional state,202
head:Session age statistics
Number of sessions inactive for >10 min,70
Number of sessions inactive for >5 min,18
Number of sessions inactive for >1 min,45
Number of sessions active during last 1 min,48
Thank you for your help,
xtanto

Ishan's solution is good. I would avoid updating rows which already have the right value - it's a waste of time.
You should have a UNIQUE or PRIMARY KEY constraint on t_acctnumberTab.account_id
merge rbabu.t_t_bil_bil_cycle_change a
using
      ( select distinct account_number, account_id
  from  rbabu.t_acctnumberTab
      ) t
on    ( a.account_id = b.account_id
       and decode(a.account_number, b.account_number, 0, 1) = 1
when matched then
  update set a.account_number = b.account_number

Similar Messages

  • I have updated my Macbook Pro from 10.7.5 to 10.9.1 and it keeps on restarting after upgrade. Please help me fix this issue.

    Hi All,
    I have updated the Macbook Pro from 10.7.5 to 10.9.1 today and once it is done I restarted the system and it keeps on crashing/restarting the system every 2 min.
    I have found the below backtrace. Please help me fix this issue.
    Anonymous UUID:  
    C72C8841-51A0-BB21-689C-2AB204820087
    Mon Dec 30 23:57:23 2013
    panic(cpu 0 caller 0xffffff801da5260f): "a freed zone element has been modified: expected 0xdeadbeefdeadbeef but found 0, bits changed 0xdeadbeefdeadbeef, at offset 8 of 128 in zone: kalloc.128"@/SourceCache/xnu/xnu-2422.1.72/osfmk/kern/zalloc.c:461
    Backtrace (CPU 0), Frame : Return Address
    0xffffff8096bf3690 : 0xffffff801da22f69
    0xffffff8096bf3710 : 0xffffff801da5260f
    0xffffff8096bf3770 : 0xffffff801da51d09
    0xffffff8096bf3870 : 0xffffff801da2aa2f
    0xffffff8096bf38a0 : 0xffffff801dde080d
    0xffffff8096bf38e0 : 0xffffff7f9fcada11
    0xffffff8096bf3930 : 0xffffff7f9fcae16e
    0xffffff8096bf39a0 : 0xffffff7f9fcae523
    0xffffff8096bf39d0 : 0xffffff801dc13438
    0xffffff8096bf3a00 : 0xffffff801dd83378
    0xffffff8096bf3a70 : 0xffffff801dbfd1ae
    0xffffff8096bf3ae0 : 0xffffff801dbf437a
    0xffffff8096bf3b80 : 0xffffff801dbe5f15
    0xffffff8096bf3c30 : 0xffffff801dbe67d2
    0xffffff8096bf3f50 : 0xffffff801de3de23
    0xffffff8096bf3fb0 : 0xffffff801daf3e06
    Kernel Extensions in backtrace:
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib(1.0d1)[E163B7AE-F6E5-328 6-B827-66DB3FE3DB7B]@0xffffff7f9fcac000->0xffffff7f9fcaffff
    BSD process name corresponding to current thread: applet
    Mac OS version:
    13B42
    Kernel version:
    Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
    Kernel UUID: 1D9369E3-D0A5-31B6-8D16-BFFBBB390393
    Kernel slide:
    0x000000001d800000
    Kernel text base: 0xffffff801da00000
    System model name: MacBookPro7,1 (Mac-F222BEC8)
    System uptime in nanoseconds: 172506613860
    last loaded kext at 107245362778: com.trendmicro.kext.KERedirect 1.0.0 (addr 0xffffff7f9ff33000, size 24576)
    loaded kexts:
    com.trendmicro.kext.KERedirect 1.0.0
    com.logmein.driver.LogMeInSoundDriver 1.0.0
    org.virtualbox.kext.VBoxUSB 3.2.6
    org.virtualbox.kext.VBoxDrv 3.2.6
    com.apple.driver.AppleHWSensor 1.9.5d0
    com.apple.driver.AppleHDAHardwareConfigDriver 2.5.3fc1
    com.apple.driver.AudioAUUC 1.60
    com.apple.driver.AGPM 100.14.11
    com.apple.driver.AppleTyMCEDriver 1.0.2d2
    com.apple.driver.AppleMikeyHIDDriver 124
    com.apple.driver.AppleHDA 2.5.3fc1
    com.apple.iokit.IOBluetoothSerialManager 4.2.0f6
    com.apple.filesystems.autofs 3.0
    com.apple.GeForceTesla 8.1.8
    com.apple.driver.AppleSMCLMU 2.0.4d1
    com.apple.iokit.IOUserEthernet 1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X 7.0.0
    com.apple.driver.AppleHWAccess 1
    com.apple.driver.AppleMikeyDriver 2.5.3fc1
    com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
    com.apple.driver.AppleMuxControl 3.4.12
    com.apple.driver.AppleBacklight 170.3.5
    com.apple.driver.AppleLPC 1.7.0
    com.apple.driver.AppleUpstreamUserClient 3.5.13
    com.apple.nvidia.NVDAStartup 8.1.8
    com.apple.driver.SMCMotionSensor 3.0.4d1
    com.apple.iokit.IOBluetoothUSBDFU 4.2.0f6
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.0f6
    com.apple.driver.AppleMCCSControl 1.1.12
    com.apple.driver.AppleUSBTCButtons 240.2
    com.apple.driver.AppleIRController 325.7
    com.apple.driver.AppleUSBTCKeyEventDriver 240.2
    com.apple.driver.AppleUSBTCKeyboard 240.2
    com.apple.driver.AppleUSBCardReader 3.3.5
    com.apple.driver.AppleFileSystemDriver 3.0.1
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.BootCache 35
    com.apple.iokit.SCSITaskUserClient 3.6.0
    com.apple.driver.XsanFilter 404
    com.apple.iokit.IOAHCIBlockStorage 2.4.0
    com.apple.iokit.AppleBCM5701Ethernet 3.6.9b9
    com.apple.driver.AirPort.Brcm4331 700.20.22
    com.apple.driver.AppleAHCIPort 2.9.5
    com.apple.driver.AppleFWOHCI 4.9.9
    com.apple.driver.AppleUSBHub 650.4.4
    com.apple.driver.AppleUSBEHCI 650.4.1
    com.apple.driver.AppleUSBOHCI 650.4.1
    com.apple.driver.AppleSmartBatteryManager 161.0.0
    com.apple.driver.AppleRTC 2.0
    com.apple.driver.AppleHPET 1.8
    com.apple.driver.AppleACPIButtons 2.0
    com.apple.driver.AppleSMBIOS 2.0
    com.apple.driver.AppleACPIEC 2.0
    com.apple.driver.AppleAPIC 1.7
    com.apple.driver.AppleIntelCPUPowerManagementClient 216.0.0
    com.apple.nke.applicationfirewall 153
    com.apple.security.quarantine 3
    com.apple.driver.AppleIntelCPUPowerManagement 216.0.0
    com.apple.AppleGraphicsDeviceControl 3.4.12
    com.apple.driver.DspFuncLib 2.5.3fc1
    com.apple.vecLib.kext 1.0.0
    com.apple.iokit.IOSerialFamily 10.0.7
    com.apple.kext.triggers 1.0
    com.apple.nvidia.classic.NVDANV50HalTesla 8.1.8
    com.apple.iokit.IOAudioFamily 1.9.4fc11
    com.apple.kext.OSvKernDSPLib 1.14
    com.apple.iokit.IOSurface 91
    com.apple.iokit.IOBluetoothFamily 4.2.0f6
    com.apple.driver.IOPlatformPluginLegacy 1.0.0
    com.apple.driver.AppleGraphicsControl 3.4.12
    com.apple.driver.AppleBacklightExpert 1.0.4
    com.apple.driver.IOPlatformPluginFamily 5.5.1d27
    com.apple.nvidia.classic.NVDAResmanTesla 8.1.8
    com.apple.iokit.IONDRVSupport 2.3.6
    com.apple.driver.AppleSMC 3.1.6d1
    com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.2.0f6
    com.apple.iokit.IOFireWireIP 2.2.5
    com.apple.driver.AppleHDAController 2.5.3fc1
    com.apple.iokit.IOHDAFamily 2.5.3fc1
    com.apple.driver.AppleSMBusPCI 1.0.12d1
    com.apple.driver.AppleSMBusController 1.0.11d1
    com.apple.iokit.IOGraphicsFamily 2.3.6
    com.apple.driver.AppleUSBMultitouch 240.6
    com.apple.iokit.IOUSBHIDDriver 650.4.4
    com.apple.iokit.IOSCSIBlockCommandsDevice 3.6.0
    com.apple.iokit.IOUSBMassStorageClass 3.6.0
    com.apple.driver.AppleUSBMergeNub 650.4.0
    com.apple.driver.AppleUSBComposite 650.4.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.6.0
    com.apple.iokit.IOBDStorageFamily 1.7
    com.apple.iokit.IODVDStorageFamily 1.7.1
    com.apple.iokit.IOCDStorageFamily 1.7.1
    com.apple.iokit.IOAHCISerialATAPI 2.6.0
    com.apple.iokit.IOSCSIArchitectureModelFamily 3.6.0
    com.apple.iokit.IOEthernetAVBController 1.0.3b3
    com.apple.driver.mDNSOffloadUserClient 1.0.1b4
    com.apple.iokit.IO80211Family 600.34
    com.apple.iokit.IONetworkingFamily 3.2
    com.apple.iokit.IOAHCIFamily 2.6.0
    com.apple.iokit.IOFireWireFamily 4.5.5
    com.apple.driver.AppleMCP89RootPortPM 1.11
    com.apple.iokit.IOUSBUserClient 650.4.4
    com.apple.driver.AppleEFINVRAM 2.0
    com.apple.driver.AppleEFIRuntime 2.0
    com.apple.iokit.IOUSBFamily 650.4.4
    com.apple.driver.NVSMU 2.2.9
    com.apple.iokit.IOHIDFamily 2.0.0
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.security.sandbox 278.10
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 7
    com.apple.driver.AppleKeyStore 2
    com.apple.driver.DiskImages 371.1
    com.apple.iokit.IOStorageFamily 1.9
    com.apple.iokit.IOReportFamily 21
    com.apple.driver.AppleFDEKeyStore 28.30
    com.apple.driver.AppleACPIPlatform 2.0
    com.apple.iokit.IOPCIFamily 2.8
    com.apple.iokit.IOACPIFamily 1.4
    com.apple.kec.corecrypto 1.0
    com.apple.kec.pthread 1
    Unable to gather system configuration information.Model: MacBookPro7,1, BootROM MBP71.0039.B0E, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f7
    Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353637334648302D4346382020
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353637334648302D4346382020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.100.22)
    Bluetooth: Version 4.2.0f6 12982, 3 services, 15 devices, 0 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: TOSHIBA MK2555GSXF, 250.06 GB
    Serial ATA Device: HL-DT-ST DVDRW  GS23N
    USB Device: Built-in iSight
    USB Device: Internal Memory Card Reader
    USB Device: BRCM2046 Hub
    USB Device: Bluetooth USB Host Controller
    USB Device: IR Receiver
    USB Device: Apple Internal Keyboard / Trackpad
    Thunderbolt Bus:
    Please help me fix this issue.
    Thank you,
    Nishanth

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

  • Query Issue in Creating a View....Please help me with this query..

    I would like to create a view on this table with four columns
    1. PN#_EXP_DATE
    2. PN#
    3. PN#_EFF_DATE
    4. PN#
    P_S_C     A_C     P     EXP_DT
    21698     13921     1     5/29/2009 3:15:41 PM     
    21698     13921     1     5/29/2009 3:54:57 PM     
    21698     1716656     4     5/29/2009 3:15:41 PM     
    21698     3217     3     5/29/2009 3:15:40 PM     
    21698     3217     3     5/29/2009 3:54:57 PM     
    21698     60559     2     5/29/2009 3:15:41 PM     
    21698     60559     2     5/29/2009 3:54:57 PM     
    I have a trigger on A, which inserts the DML records into B. (Table A and B structure is the almost the same,
                                       where table B will have one extra column exp_dt)
    NOw Table B can have records with same P_S_C and A_C columns and exp_dt will capture the history.
    for example: from the above sample data, let us take first two records..
    P_S_C     A_C     P     EXP_DT
    21698     13921     1     5/29/2009 3:15:41 PM     --- Record 1
    21698     13921     1     5/29/2009 3:54:57 PM     --- Record 2
    from this..
    Note: 1. Table A and Table C can be joined using A.P_S_C and C.R_C to get the start_date.
    2. PN# comes from table D. It contains numbers for the resp. weeks.
    3. PN#_EFF_DATE is the previous immediate previous date for that record in history table (Table B).
    I wanted the data like..
    ---- this is for the second record in the above..
    PN#_EXP_DATE PN# PN#_EFF_DATE PN#
    5/29/2009 3:54:57 PM     214 5/29/2009 3:15:41 PM     214
    ---- this is for the first record in the above..
    PN#_EXP_DATE PN# PN#_EFF_DATE PN#
    5/29/2009 3:54:41 PM     214 ( for this we should query the table C to get the
                        start_date, for this combinatation of P_S_C and A_C in table B
                             where B.P_S_C = C.A_C
                             and that value should be the EFF_DT for this record)
    Please help me with this....
    Thanks in advance..

    Hi All,
    select d.P# as "PN#_EXP_DATE", exp_date
    from daily_prd d, cbs1_assoc_hist b
    where to_char(d.day_date,'MM/DD/YYYY') = to_char(b.exp_date,'MM/DD/YYYY')
    and d.period_type = 'TIMEREPORT';
    This above query gives the output as follows:
    pn#_exp_date exp_date
    214     5/29/2009 3:15:40 PM
    214     5/29/2009 3:15:41 PM
    214          5/29/2009 3:15:41 PM
    214          5/29/2009 3:15:41 PM
    214          5/29/2009 3:54:57 PM
    214          5/29/2009 3:54:57 PM
    214          5/29/2009 3:54:57 PM
    This below is the data from history table (Table B).
    P_S_C     A_C PLACE EXP_DATE
    21698          3217          3     5/29/2009 3:15:40 PM     
    21698          13921          1     5/29/2009 3:15:41 PM     
    21698          1716656          4     5/29/2009 3:15:41 PM     
    21698          60559          2     5/29/2009 3:15:41 PM     
    21698          13921          1     5/29/2009 3:54:57 PM     
    21698          3217          3     5/29/2009 3:54:57 PM     
    21698          60559          2     5/29/2009 3:54:57 PM     
    I got the pn#_exp_date from the Table 'D', for the given exp_date from Table B.
    My question is again....
    CASE - 1
    from the given records above, I need to look for exp_date for the given same P_S_C and A_C.
    in this case we can take the example...
    P_S_C     A_C PLACE EXP_DATE
    21698          3217          3     5/29/2009 3:15:40 PM
    21698          3217          3     5/29/2009 3:54:57 PM
    In this case, the
    pn#_exp_date exp_date     pn#_eff_date eff_date
    214     5/29/2009 3:15:57 PM     < PN# corresponding to the     5/29/2009 3:15:40 PM
                        eff_date .>
                        <Basically the eff_date is
                        nothing but the exp_date only.
                        we should take the immediate before one.
    In this case, our eff_date is '5/29/2009 3:15:40 PM'.
    but how to get this.
    CASE - 2
    from the above sample data, consider this
    P_S_C     A_C PLACE EXP_DATE
    21698     1716656     4     5/29/2009 3:15:41 PM
    In this case, there is only one record for the P_S_C and A_C combination.
    The expected result :
    pn#_exp_date exp_date               pn#_eff_date eff_date
    214     5/29/2009 3:15:41 PM     < PN# corresponding to the     5/29/2009 3:15:40 PM
                        eff_date .>
                   <Basically the eff_date is
                   nothing but the exp_date only.
                        we should take the immediate before one.
    In this case to get the eff_date, we should query the Table 'C', to get the eff_date, which is START_DT column in this table.
    for this join B.P_S_C and C.R_C.
    Hope I am clear now..
    Thanks in advance.....

  • [Urgent] Please help me verify the debug output on E&M interface.

    Hello,
        I've got a problem when trying to make a call from the E&M interface on the router to PABX(Panasonic). I've got any dail-tone back. Please help me verify the logging output. It seemed to already send the digits.
    ###########################debug vpm signal####################
    .Sep 20 06:43:43.911: htsp_process_event: [0/0/0, EM_ONHOOK, E_DSP_SIG_1100]em_onhook_offhook htsp_setup_ind
    .Sep 20 06:43:43.911: [0/0/0] get_local_station_id calling num= calling name= calling time=09/20 13:43  orig called=
    .Sep 20 06:43:43.915: htsp_timer - 3000 msec
    .Sep 20 06:43:43.923: htsp_process_event: [0/0/0, EM_WAIT_SETUP_ACK, E_HTSP_SETUP_ACK]em_wait_setup_ack_get_ack
    .Sep 20 06:43:43.923: htsp_timer_stop interdigit timer cfgd to 3000
    .Sep 20 06:43:44.183: htsp_digit_ready: digit = 38
    .Sep 20 06:43:44.183: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
    .Sep 20 06:43:44.443: htsp_digit_ready: digit = 39
    .Sep 20 06:43:44.443: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
    .Sep 20 06:43:44.724: htsp_digit_ready: digit = 30
    .Sep 20 06:43:44.724: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
    .Sep 20 06:43:44.996: htsp_digit_ready: digit = 38
    .Sep 20 06:43:44.996: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
    .Sep 20 06:43:45.004: htsp_process_event: [0/0/0, EM_OFFHOOK, E_HTSP_PROCEEDING]
    .Sep 20 06:43:46.224: htsp_call_bridged invokedhtsp_progress_notify
    .Sep 20 06:43:46.228: htsp_process_event: [0/0/0, EM_OFFHOOK, E_HTSP_VOICE_CUT_THROUGH]em_offhook_voice_cut
    .Sep 20 06:43:51.184: htsp_process_event: [0/0/0, EM_OFFHOOK, E_DSP_SIG_0000]em_offhook_onhook, HF duration=480
    .Sep 20 06:43:51.184: mlpp_detection_enabled MLPP is not supported on this interface
    .Sep 20 06:43:51.184: em_start_timer: 480 ms
    .Sep 20 06:43:51.184: htsp_timer - 480 msec
    .Sep 20 06:43:51.664: htsp_process_event: [0/0/0, EM_OFFHOOK, E_HTSP_EVENT_TIMER]em_offhook_wait_release_req
    .Sep 20 06:43:51.664: htsp_timer_stop
    .Sep 20 06:43:51.664: htsp_timer_stop2
    .Sep 20 06:43:51.676: htsp_process_event: [0/0/0, EM_RLS_WAIT_RLS_REQ, E_HTSP_RELEASE_REQ]em_wait_rls_release em_onhook (0)
    .Sep 20 06:43:51.676: [0/0/0] set signal state = 0x0 timestamp = 0
    .Sep 20 06:43:51.676: em_start_timer: 400 ms
    .Sep 20 06:43:51.676: htsp_timer - 400 msec
    .Sep 20 06:43:52.076: htsp_process_event: [0/0/0, EM_WAIT_CLR_DONE, E_HTSP_EVENT_TIMER]em_clr_done
    .Sep 20 06:43:52.076: htsp_process_event: [0/0/0, EM_ONHOOK, E_DSP_SIG_0000]em_onhook_onhook
    ##########################debug vpip vtsp all####################
    .Sep 20 07:02:51.640: //44/D16BA46380FC/VTSP:(0/0/1):-1:-1:-1/vtsp_timer_stop:
       Timer Stop Time=23417277
    .Sep 20 07:02:51.640: //-1/D16BA46380FC/VTSP:(0/0/1):-1:-1:-1/vtsp_free_cdb:
       CDB=0x47575388
    .Sep 20 07:02:55.416: //-1/xxxxxxxxxxxx/VTSP:(0/0/1):-1:-1:-1/vtsp_allocate_cdb:
       CDB=0x47574E08
    .Sep 20 07:02:55.416: //-1/xxxxxxxxxxxx/VTSP:(0/0/1):-1:-1:-1/vtsp_insert_cdb:
    .Sep 20 07:02:55.416: //-1/xxxxxxxxxxxx/VTSP:(0/0/1):-1:-1:-1/vtsp_process_event:
       [state:INVALID STATE MACHINE, event:E_CC_SETUP_REQ]
    .Sep 20 07:02:55.416: htsp_timer_stop3
    .Sep 20 07:02:55.416: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_og_call_req:
       Echo Cancel=TRUE, Gain Control=0
       Auto Gain Control=FALSE, Dual Tone Detect Mask=0x0, Seq Tone Detect=FALSE
    .Sep 20 07:02:55.416: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_do_call_setup_req:
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_opened_cb:
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PEND, event:E_VTSP_DSM_OPEN_SUCCESS]
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_req_pend_succ:
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_request_call:
       Mode=0, Peer=2
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_create_call_active_on_setup_req:
       Target Carrier ID=
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_create_call_active_on_setup_req:
       Source Carrier ID=htsp_setup_req
    .Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_request_call:
       Progress Indication=3, Info Trans Capability=16
       Calling Number=, TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed
       Called Number=7744, TON=Unknown, NPI=ISDN
    .Sep 20 07:02:55.420: htsp_process_event: [0/0/1, EM_ONHOOK, E_HTSP_SETUP_REQ]em_onhook_setup
    .Sep 20 07:02:55.424: em_offhook (0)
    .Sep 20 07:02:55.424: [0/0/1] set signal state = 0x8 timestamp = 0
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQUEST, event:E_TSP_PROCEEDING]
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_proceeding:
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer:
       Timer Start Time=23417655, Timer Value=10000(ms)
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_proceeding:
       Peer=2, Progress Indication=0, Return Code=2
    .Sep 20 07:02:55.424: htsp_process_event: [0/0/1, EM_BRANCH, EM_EVENT_IMMEDIATE]em_branch_immediate
    .Sep 20 07:02:55.424: htsp_timer - 300 msec
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_opened_cb:
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_NULL, event:E_VTSP_DSM_OPEN_SUCCESS]
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_req_wait_pend_success:
       Event=72
    .Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer_stop:
       Timer Stop Time=23417655
    .Sep 20 07:02:55.724: htsp_process_event: [0/0/1, EM_WAIT_DIALOUT_DELAY, E_HTSP_EVENT_TIMER]em_imm_send_digits  em_send_digits  htsp_dial
    .Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PROC, event:E_TSP_DIAL]
    .Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_dial:
       Digits=7744, Tone Mode=0
    .Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dial:
    .Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_do_dial:
       Digits To Dial=7744
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_dial_done_cb:
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_DS_DIALING, event:E_VTSP_DSM_DIALING_COMPLETE]
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_dialing:
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_do_dial:
       Digits To Dial=
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_dial_comp:
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_do_dial:exit@556
    .Sep 20 07:02:56.568: htsp_process_event: [0/0/1, EM_WAIT_DIAL_DONE, E_DSP_DIALING_DONE]em_offhook_digit_done
    .Sep 20 07:02:56.568: htsp_timer_stop2 htsp_progress
    .Sep 20 07:02:56.568: htsp_timer2 - 850 msec
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PROC, event:E_TSP_PROGRESS]
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_progress:
       Progress Indication=8, Signal Indication=2, cdb->answer_supervision=0
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_ring_noan_timer_start:
       Timer Start Time=23417770, No Answer Timer Value=180000(ms)
    .Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_check_cb:
    .Sep 20 07:02:56.572: htsp_call_bridged invoked
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_check_cb:exit@1187
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_status_cb:
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_fax_config:
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_fax_config:
       Fax Relay=ENABLED
       Primary Fax Protocol=CISCO_FAX_RELAY, Fallback Fax Protocol=NONE_FAX_RELAY
       Fax Relay CM Suppression :=ENABLED, Fax Parameters Set By=Global Settings
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_set_fax_feat_param:
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_tty_config:
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_tty_config:
       Save TTY configuration
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_set_tty_feat_param:
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_set_tty_feat_param:
       Set TTY feat parameters
    .Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PROC, event:E_CC_DO_CAPS_IND]
    .Sep 20 07:02:56.576: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_peer_event_cb:
       Event=E_DSM_CC_CAPS_ACK
    .Sep 20 07:02:56.576: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PROC, event:E_CC_CAPS_IND]
    .Sep 20 07:02:56.576: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_peer_event_cb:
       Event=E_DSM_CC_CALL_MODIFY
    .Sep 20 07:02:56.580: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_feature_notify_cb:
       Feature ID=0, Feature Status=1
    .Sep 20 07:02:56.580: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_reactivate_ringback:
    .Sep 20 07:02:56.580: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_reactivate_ringback:exit@996
    .Sep 20 07:02:56.580: htsp_process_event: [0/0/1, EM_WAIT_FOR_ANSWER, E_HTSP_VOICE_CUT_THROUGH]
    .Sep 20 07:02:56.580: htsp_timer_stop2
    .Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_status_cb:
    .Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_SETUP_REQ_PROC, event:E_CC_DISCONNECT]
    .Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_disconnect:
       Cause Value=16
    .Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_ring_noan_timer_stop:
       Timer Stop Time=23419504
    .Sep 20 07:03:13.913: htsp_timer_stop3
    .Sep 20 07:03:13.925: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_WAIT_STATS, event:E_VTSP_DSM_STATS_COMPLETE]
    .Sep 20 07:03:13.925: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_dsm_dsp_stats_complete:
    .Sep 20 07:03:13.925: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer:
       Timer Start Time=23419505, Timer Value=60000(ms)
    .Sep 20 07:03:13.929: htsp_process_event: [0/0/1, EM_WAIT_FOR_ANSWER, E_HTSP_RELEASE_REQ]em_wait_answer_release
    .Sep 20 07:03:13.929: em_stop_timers
    .Sep 20 07:03:13.929: htsp_timer_stop
    .Sep 20 07:03:13.929: htsp_timer_stop2 em_onhook (0)
    .Sep 20 07:03:13.929: [0/0/1] set signal state = 0x0 timestamp = 0
    .Sep 20 07:03:13.929: em_start_timer: 400 ms
    .Sep 20 07:03:13.929: htsp_timer - 400 msec
    .Sep 20 07:03:14.329: htsp_process_event: [0/0/1, EM_GUARD_ALL, E_HTSP_EVENT_TIMER]em_guard_all_timer
    .Sep 20 07:03:14.329: em_stop_timers
    .Sep 20 07:03:14.329: htsp_timer_stop
    .Sep 20 07:03:14.329: em_start_timer: 3000 ms
    .Sep 20 07:03:14.329: htsp_timer - 3000 msec
    .Sep 20 07:03:14.329: htsp_process_event: [0/0/1, EM_PARK, E_DSP_SIG_0000]em_park_onhook
    .Sep 20 07:03:14.329: htsp_timer_stop
    .Sep 20 07:03:14.329: htsp_timer_stop2 htsp_report_onhook_sig
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_WAIT_RELEASE, event:E_TSP_CALL_FEATURE_IND]
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_call_feature_ind:
       Feature Type=6
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
       [state:S_WAIT_RELEASE, event:E_TSP_DISCONNECT_CONF]
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_wrelease_release:
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_play_busy_timer_stop:
       Timer Stop Time=23419546
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer_stop:
       Timer Stop Time=23419546
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_do_call_history:
    .Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_do_call_history:
       Coder Rate=16
    .Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_dsm_closed_cb:
    .Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_process_event:
       [state:S_CLOSE_DSPRM, event:E_VTSP_DSM_CLOSE_COMPLETE]
    .Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/act_terminate:
    .Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_timer_stop:
       Timer Stop Time=23419546
    .Sep 20 07:03:14.333: //-1/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_free_cdb:
       CDB=0x47574E08
    Thanks in advance.
    Toshi

    EDIT:
                I've not got any dial-tone back from PABX.
    Thanks in advance
    Toshi

  • After a few minutes on safari it freezes everything i can't even force quit i have to shut off by holding the power button down please help me with this. thanks

    everything freezes i can't even force quit i have to shut off by holding the power button down please help me with this. thanks

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

  • Please help me with this SQL query

    I am practicing SQL queries and have come across one involving fetching data from 3 different tables.
    The three tables are as below
    <pre>
    Country
    location_id          country
    loc1          Spain
    loc2          England
    loc3          Spain
    loc4          USA
    loc5          Italy
    loc6          USA
    loc7          USA
    </pre>
    <pre>
    User
    user_id location_id
    u1 loc1
    u2 loc1
    u3 loc2
    u4 loc2
    u5 loc1
    u6 loc3
    </pre>
    <pre>
    Post
    post_id user_id
    p1 u1
    p2 u1
    p3 u2
    p4 u3
    p5 u1
    p6 u2
    </pre>
    I am trying to write an SQL query - for each country of users, display the average number of posts
    I understand the logic behind this that we first need to group together all the locations and then the users belonging to one country and then find the average of their posts.
    But, i'm having a difficulty in putting this in SQL form. Could someone please help me with this query.
    Thanks.

    select
    country.country,
    count(*) Totalpostspercountry,
    count(distinct post.user_id) Totaldistincuserspercountry,
    count(*)/count(distinct post.user_id) Avgpostsperuserbycountry
    from
    country, muser, post
    where country.location_id = muser.location_id
    and muser.user_id = post.user_id
    group by country.country
    The output is like this for your sample data - hope this is what you were looking for :)
    COUNTRY,TOTALPOSTSPERCOUNTRY,TOTALDISTINCUSERSPERCOUNTRY,AVGPOSTSPERUSERBYCOUNTRY
    England,1,1,1,
    Spain,5,2,2.5,

  • Please help me with this statement

    Hi gurus, glad to be back!
    Please help me with this XML processing statement. The XMl I get is like this,
    <EnumerationValue description="Motor Carriers-Operate w/o Certificate or Permit"
    effectiveDate="1859-01-01">
              <Text>26</Text>
              <AssociatedValue type="SeverityLevelText" code="MSD">
                   <Text>Misdemeanor</Text>
              </AssociatedValue>
              <AssociatedValue type="SeverityLevelText" code="PMD">
                   <Text>Petty Misdemeanor</Text>
              </AssociatedValue>
              <AssociatedValue type="StatuteOrdinanceRuleCite">
                   <Text>221.291.4</Text>
              </AssociatedValue>
    I need to get the number value from <Text>26</Text>, the attribute description and the text value of <Text>221.291.4</Text> inside one of those AssociatedValue node. The following is what I have, though I get the 26, I do not get the description and I get the Misdemeanor, Petty Misdemeanor concatenated with the text value of <Text>221.291.4</Text>. The output I get is this,
    26
    MisdemeanorPetty Misdemeanor221.291.4MisdemeanorPe
    4
    MisdemeanorPetty Misdemeanor221.291.4MisdemeanorPe
    My Code:
    declare
         v_xml sys.xmltype;
         v_sid     number;
         v_SText     varchar2(50);
    begin
         v_xml := sys.xmltype('<SimpleTypeCompanion>
              <EnumerationValue description="Motor Carriers-Operate w/o Certificate or Permit" effectiveDate="1859-01-01">
              <Text>26</Text>
              <AssociatedValue type="SeverityLevelText" code="MSD">
                   <Text>Misdemeanor</Text>
              </AssociatedValue>
              <AssociatedValue type="SeverityLevelText" code="PMD">
                   <Text>Petty Misdemeanor</Text>
              </AssociatedValue>
              <AssociatedValue type="StatuteOrdinanceRuleCite">
                   <Text>221.291.4</Text>
              </AssociatedValue>
         </EnumerationValue>
         <EnumerationValue description="Police Communication Equipment-Possession, Use-First Offense-M" effectiveDate="1859-01-01">
         <Text>4</Text>
         <AssociatedValue type="SeverityLevelText" code="MSD">
              <Text>Misdemeanor</Text>
         </AssociatedValue>
         <AssociatedValue type="SeverityLevelText" code="PMD">
              <Text>Petty Misdemeanor</Text>
         </AssociatedValue>
         <AssociatedValue type="StatuteOrdinanceRuleCite">
              <Text>299C.37.1(b)</Text>
         </AssociatedValue>
         </EnumerationValue>
         </SimpleTypeCompanion>');
         ---dbms_output.put_line(v_xml.getStringVal());
         declare
              cursor c_statutes is
              select ms.* from
              xmltable('for $s in /SimpleTypeCompanion/EnumerationValue/Text
                   let $sa := /SimpleTypeCompanion/EnumerationValue/AssociatedValue
                   let $sd := /SimpleTypeCompanion/EnumerationValue/@description
                   where $sa/@type = "StatuteOrdinanceRuleCite"
                   return
                        <MyStatutes>
                             <TextID>{$s}</TextID>
                             <SDesc>{$sd/@description}</SDesc>
                             <StatuteNumber>{$sa/Text}</StatuteNumber>
                        </MyStatutes>'
                   passing v_xml
                   columns
                   myTextID     number path '/MyStatutes/TextID',
                   mySDesc          varchar2(150) path '/MyStatutes/SDesc',     
                   myStatute     varchar2(50)     path '/MyStatutes/StatuteNumber'
              ) ms;
         begin
              for v_s in c_statutes loop
                   dbms_output.put_line(v_s.myTextID);
                   dbms_output.put_line(v_s.MySDesc);
                   dbms_output.put_line(v_s.myStatute);
              end loop;
         end;
    end;
    Please show me the correct way to get the result I want.
    Thanks a lot!
    Ben

    SQL>  var xmltext varchar2(4000)
    SQL> --
    SQL> begin
      2    :xmltext :=
      3  '<SimpleTypeCompanion>
      4     <EnumerationValue description="Motor Carriers-Operate w/o Certificate or Permit" effectiveDate="1859-01-01">
      5             <Text>26</Text>
      6             <AssociatedValue type="SeverityLevelText" code="MSD">
      7                     <Text>Misdemeanor</Text>
      8             </AssociatedValue>
      9             <AssociatedValue type="SeverityLevelText" code="PMD">
    10                     <Text>Petty Misdemeanor</Text>
    11             </AssociatedValue>
    12             <AssociatedValue type="StatuteOrdinanceRuleCite">
    13                     <Text>221.291.4</Text>
    14             </AssociatedValue>
    15     </EnumerationValue>
    16     <EnumerationValue description="Police Communication Equipment-Possession, Use-First Offense-M" effectiveDate="1859-01-01">
    17             <Text>4</Text>
    18             <AssociatedValue type="SeverityLevelText" code="MSD">
    19                     <Text>Misdemeanor</Text>
    20             </AssociatedValue>
    21             <AssociatedValue type="SeverityLevelText" code="PMD">
    22                     <Text>Petty Misdemeanor</Text>
    23             </AssociatedValue>
    24             <AssociatedValue type="StatuteOrdinanceRuleCite">
    25                     <Text>299C.37.1(b)</Text>
    26             </AssociatedValue>
    27     </EnumerationValue>
    28  </SimpleTypeCompanion>';
    29  end;
    30  /
    PL/SQL procedure successfully completed.
    SQL> set lines 150
    SQL> --
    SQL> select ms.*
      2    from xmltable
      3         (
      4           '/SimpleTypeCompanion/EnumerationValue'
      5           passing xmltype(:xmltext)
      6           columns
      7           DESCRIPTION            varchar2(32) path '@description',
      8           STATUTE_ID             number(2) path 'Text/text()',
      9           STATUTE_RULE_CITE      varchar2(16) path 'AssociatedValue[@type="StatuteOrdinanceRuleCite"]/Text/text()',
    10           MSD_TEXT               varchar2(10) path 'AssociatedValue[@code="MSD"]/Text/text()',
    11           PMD_TEXT               varchar2(10) path 'AssociatedValue[@code="PMD"]/Text/text()'
    12        ) ms
    13  /
    DESCRIPTION                      STATUTE_ID STATUTE_RULE_CIT MSD_TEXT   PMD_TEXT
    Motor Carriers-Operate w/o Certi         26 221.291.4        Misdemeano Petty Misd
    Police Communication Equipment-P          4 299C.37.1(b)     Misdemeano Petty Misd
    SQL>
    SQL>

  • Please help me on this query

    Hi experts,
    I have data like this in a table with 5000 records.
    ID cid Name
    1 10 Ram
    1 20 Raj
    2 10 Kiran
    2 20 Kishor
    2 30 Krishna
    2 40 Karuna
    2 50 Kamesh
    2 50 Kumar
    2 50 Kamal
    2 60 Keerti
    3 10 Syam
    3 20 Suresh
    3 30 Suman
    3 40 Santosh
    3 40 Sarat
    3 50 Sirisha
    3 60 Sumanth
    4 10 Tarun
    4 20 Tanish
    4 30 Taman
    4 40 Tomas
    4 40 Teenu
    5 10 Prakash
    5 20 Pavan
    5 30 Prasad
    etc
    I want the output like
    ID CID NAME
    1 10,20 Ram,Raj
    2 10,20,30,40,50,50,50,60 Kiran,Kishor,Krishna,Karuna,Kamesh,Kamal,Keerti
    3 10,20,30,40,40,50,60 Syam,Suresh,Suman,Santosh, Sarat,Sirisha,Sumanth
    4 10,20,30,40,40 Tarun,Tanish,Taman,Tomas,Teenu
    5 10,20,30 Prakash,Pavan,Prasad
    Please help me to get the output like this
    Thanks in advance

    with t as (
               select 1 id,10 cid,'Ram' name from dual union all
               select 1,20,'Raj' from dual union all
               select 2,10,'Kiran' from dual union all
               select 2,20,'Kishor' from dual union all
               select 2,30,'Krishna' from dual union all
               select 2,40,'Karuna' from dual union all
               select 2,50,'Kamesh' from dual union all
               select 2,50,'Kumar' from dual union all
               select 2,50,'Kamal' from dual union all
               select 2,60,'Keerti' from dual union all
               select 3,10,'Syam' from dual union all
               select 3,20,'Suresh' from dual union all
               select 3,30,'Suman' from dual union all
               select 3,40,'Santosh' from dual union all
               select 3,40,'Sarat' from dual union all
               select 3,50,'Sirisha' from dual union all
               select 3,60,'Sumanth' from dual union all
               select 4,10,'Tarun' from dual union all
               select 4,20,'Tanish' from dual union all
               select 4,30,'Taman' from dual union all
               select 4,40,'Tomas' from dual union all
               select 4,40,'Teenu' from dual union all
               select 5,10,'Prakash' from dual union all
               select 5,20,'Pavan' from dual union all
               select 5,30,'Prasad' from dual
    -- end of on-the-fly data sample
    select  id,
            rtrim(xmlagg(xmlelement(e,cid,',').extract('//text()') order by cid),',') cid,
            rtrim(xmlagg(xmlelement(e,name,',').extract('//text()') order by cid),',') name
      from  t
      group by id
      order by id
            ID CID                       NAME
             1 10,20                     Ram,Raj
             2 10,20,30,40,50,50,50,60   Kiran,Kishor,Krishna,Karuna,Kamesh,Kamal,Kumar,Keerti
             3 10,20,30,40,40,50,60      Syam,Suresh,Suman,Santosh,Sarat,Sirisha,Sumanth
             4 10,20,30,40,40            Tarun,Tanish,Taman,Tomas,Teenu
             5 10,20,30                  Prakash,Pavan,Prasad
    SQL> SY.

  • Could you please help me make this query less complicated

    could you please help me make this query less complicated
    select t1.R_OBJECT_ID
    from dm_relation_sp a, ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID
    union all
    select t3.R_OBJECT_ID
    from ddt_resolution_sp t3
    where t3.R_OBJECT_ID in (select t2.child_id
    from dm_relation_sp t2
    where t2.parent_id in (select a.child_id
    from asud_fsk.dm_relation_sp a, asud_fsk.ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID))
    union all
    select t4.R_OBJECT_ID
    from ddt_resolution_sp t4
    where t4.R_OBJECT_ID in(
    select t3.child_id from dm_relation_sp t3
    where t3.parent_id in (
    select t2.child_id
    from asud_fsk.dm_relation_sp t2
    where t2.parent_id in (select a.child_id
    from asud_fsk.dm_relation_sp a, asud_fsk.ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID))
    and t3.relation_name = 'RESOLUTION_RELATION')
    union all
    select t5.R_OBJECT_ID
    from ddt_resolution_sp t5
    where t5.R_OBJECT_ID in
    (select t4.child_id
    from dm_relation_sp t4
    where t4.parent_id in(
    select t3.child_id from dm_relation_sp t3
    where t3.parent_id in (
    select t2.child_id
    from asud_fsk.dm_relation_sp t2
    where t2.parent_id in (select a.child_id
    from asud_fsk.dm_relation_sp a, asud_fsk.ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID))
    and t3.relation_name = 'RESOLUTION_RELATION')
    and t4.relation_name = 'RESOLUTION_RELATION')
    Edited by: user13025450 on 29.04.2010 16:23

    Hi,
    Welcome to the forum! You'll find that there are many qualified people (such as Tubby) willing to help you. Will you do what you can to help them? In order to simplify the query you posted,someone will first have to understand what it does, what the tables that it uses are like, and what tools you have to work with (that is, what version of Oracle, and any other software you are using). To actually test their ideas, people will need versions of your tables.
    Many people, if they spent enough time, might be able to figure out roughly what you are doing, make some tables themselves and test a solution. You can help with all of that. I assume you already know what the appliction is, and what this particular query is supposed to do: you don't have to figure out any of that, you just have to say it. You know what all your tables are, what the datatypes of all the columns are, and what kinds of data are in the tables: you don't have to guess at any of that.
    Describe what you're doing. Think about it: how do we know that
    SELECT  NULL
    FROM    dual;doesn't do what you want?
    Post CREATE TABLE and INSERT statements for a little sample data.
    Post the results that this query is supposed to produce from those results. (Is it producing the right output now? Then it should be easy to post the correct results.)
    Describe, as well as you can, how the present query is doing it.
    Format your existing code, so it's easy to see what the different branches of the UNION are, and what the main clauses are in each one.
    When posting formatted text (code or results) type these 6 characters
    \(all small letters, inside curly brackets) before and after each formatted section, to keep this site from compressing the spaces.
    Say what versions of Oracle (e.g. 10.2.0.3.0) and any other relevant software you are using.
    I know it's a lot of work, but it really helps. You can do it as well (probably better) than anyone else, and if you're unwilling to do it, why should anyone else be willing?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Seniors please help me in this Report

    Hi Seniors,
    PLEASE HELP ME WITH THIS REPORT.
    I KNOW THE FUNTIONALITY OF THE REPORT AND I AM NOT ABLE TO PUT
    IT IN TO THE ABAP PROGRAM..
    REPORT NAME : CUMULATIVE   BILL
    FUNCTIONAL AND TECHNICAL SPECIFICATIONS
    SELECTION-SCREEN  FIELDS
    WERKS      -
    TABLE: EKPO---  PLANT
    LGORT       -
    TABLE: EKPO--- STORAGE LOCATION
    EBELN       -
    TABLE: EKPO…..   PURCHASING DOCUMENT NUMBER
    NOTE : FOR THIS EBELN NUMBER SELECTED IN THIS FIELD THE NEXT FIELD SHOULD BE  REACTED. MEANS FOR THE PURCHASING DOCUMENT SELECTED HOW MANY INVOICE ARE MADE SHOULD ONLY DISPLAY FOR THE BELOW FIELD.THE NEXT FIELD IS GIVEN BELOW.
    BELNR       -
    TABLE: RBKP---  Document number of an invoice document
    THE ABOVE FIELD BELNR SHOULD DIPLAY ON THE BASIS OF  NUMBER SELECTED IN EBELN.
    FUNTIONAL EXPLINATION : FOR A PARTICULAR PURCHASE ORDER(EBELN) HOW MANY INVOICES(BELNR) ARE MADE SHOULD BE DISPLAYED.
    OUTPUT SCREEN FIELDS
    TOP BOX SHOULD DISPLAY IN THIS FORMAT.
    PLANT       -WERKS-EKPO….                                   BILL NO:-XBLNR--
    PROJECT   -POST1---TABLE -PROJ……               DATE     : BUDAT--
    VENDOR   -NAME1-TABLE -LFA1…….               WO NO  :BELNR--
    ADDRESS -
    STREET—TABLE-ADRC--
    OUTPUT FIELDS IN THE FUNTIONAL SPEC….
    1)SLNO--2) DESCRIPTION-3) QTY UP TO PREVBILL---4) AMOUNT UPTO PREVIOUS BILL -5)CURRENT QUANTITY6)CURRENT RATE-7) CURRENT
    AMOUNT -
    8)CUMILATIVE QUANTITY----9)CUMILATIVE AMOUNT.
    THESE ARE THE FIELDS THAT SHOULD BE DISPLAYED IN THE OUTPUT IN A ROW…..
    ELOBORATING FIELDS RELATED TO THE OUTPUT SCREEN.
    1) DESCRIPTION :  TXZ01 ---EKPO
    2) QTY UPTO PREVIOUS BILL.-----
    3) AMOUNT UPTO PREVIOUS BILL---
    4) CURRENT QUANTITY –FIELD NAME : MENGE----- NOTE: THIS FIELD SHOULD GET THE QTYS OF THE PARTICULAR  INVOICE SELECTED IN THE SELECTION SCREEN THAT
    IS BELNR.
    5) CURRENT RATE------NETPR ---FOR THAT QTY MENTIONED IN WORK ORDER
    TABLE EKPO
    6) CURRENT AMOUNT------ MULTIPLYING THE PREVIOUS 2 FIELDS THAT IS CURRENT QUANITY AND CURRENT RATE (GIVE THIS FIELD CURRENT AMOUNT
    7) CUMULATIVE QUANTITY----- SHOULD BE DONE BY ADDING THE FIELDS
    QTY UPTO PREVIOUS BILL AND CURRENT QUANTITY .
    8) CUMILATIVE AMOUNT-----WE GET IT BY MULTIPLYING CURRENT RATE WITH CUMILATIVE QUANTITY.
    EXPLANATION FOR THE 2ND AND 3RD FIELDS
    2) QTY UP TO PREVIOUS BILL : SHOULD GIVE THE QTY ACCORDING TO THE SELECTION-SCREEN FIELD ….BELNR …IF BELNR IN THE SELECTION SCREEN CONTAINS 10 INVOICE FOR A PARTICULAR WORKORDER…EBELN
    SELECTED..
    AND WE SELECT ONE INVOICE FOR EXAMPLE 6TH INVOICE…….
    IT CONTAINS SOME MATERIALS AND QTY FOR THAT METERIALS …
    BUT IN THE FIELD OF QTY UP TO  PREVIOUS BILL THE QTY OF THE PREVIOUS INVOICE OF THAT PARTICULAR WO SHOULD BE DISPLAYED..
    THE  IS QTY OF THE PREVIOUS INVOICES OF 12345 = QTY UP TO PREVIOUS BILL + CURRENT QTY GIVES CUMILATIVE QTY FIELD…..
    OR
    ADDING OF 12345+6 = CUMULATIVE QTY – OF CURRENT QTY GIVES
    QTY UP TO PREVIOUS BILL.
    EITHER WAY WE CAN GET THE OUTPUT…….
    PLEASE HELP WITH THE ENTIRE  PROGRAM OR LOGIC……….
    PLEASE SEND ME THE CODING TO MY MAIL [email protected]

    Nalini,
    Take the step by step directions try to build  your program... if you find any difficulty in the middle just pose the question at that time.... every one will be ready to answer your questions....
    eg:
    take the first line...
    REPORT NAME : CUMULATIVE BILL
    design a report program with the above given name in se38...
    then second line.....
    SELECTION-SCREEN FIELDS
    WERKS -
    TABLE: EKPO--- PLANT
    LGORT -
    TABLE: EKPO--- STORAGE LOCATION
    EBELN -
    TABLE: EKPO….. PURCHASING DOCUMENT NUMBER
    build select-options: with the above mentioned 3 fields
    3rd direction.....
    NOTE : FOR THIS EBELN NUMBER SELECTED IN THIS FIELD THE NEXT FIELD SHOULD BE REACTED. MEANS FOR THE PURCHASING DOCUMENT SELECTED HOW MANY INVOICE ARE MADE SHOULD ONLY DISPLAY FOR THE BELOW FIELD.THE NEXT FIELD IS GIVEN BELOW.
    work accordingly....
    If you devide the spec like this... it would be easy for you to build the program...
    try it once... you can do it nalini....don't fear with that spec...
    gud luck nalini...

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Hello, i restored and updated my iphone 4 to the latest version of 5.1.1 and after that when i connect my mobile to i tunes all i see is a big rectangle and a apple logo on left and a small lock on right side please help me fix this problem.

    hello,
    i restored and updated my iphone 4 to the latest version of 5.1.1 and after that when i connect my mobile to i tunes all i see is a big rectangle and a apple logo on left and a small lock on right side please help me fix this problem.

    I sloved this issue by resting my phone from settings>general>reset>reset all settings...the problem will be fixed

  • I bought a movie the movie Godzilla 2014 recently but it didn't show up in my library. I went check the itunes store and it wants me to buy it again. Please help me with this problem.

    I just bought this movie "Godzilla 2014" but it won't show in my Movie Library. I closed my Itunes and put it back on again but still won't show up. I checked my purchased list and it shows that I recently bought the movie but when I checked the itunes store it wants to buy the movie again. Please help me with this right away Apple.

    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • My icloud activation lock is ON my iphone, which requires an activation login to access the homescreen, but when i log in with the apple ID on the phone, it says the apple ID is not meant to unclock this iphone 5 ios 8.0.2. please help me solve this.

    My icloud activation lock is on my iphone, which requires an activation login to access the homescreen, but when i log in with the apple ID on the phone, it says the apple ID is not meant to unclock this iphone 5 ios 8.0.2. please help me solve this.

    Yes the phone belongs to me. It was purchased from United Kingdom Vodafone to West Africa, i had to factory unlock to use any sim in it. so it belongs to me. I did the activation myself, now after updating my iphone to the latest update, it required a user id and password to activate the phone, but anytime i enter the details, it tells me the user Id is not correct but the password is correct..

  • I have upgraded My leopard to Mountain lion 10.7 via snow leapeard. Now My itunes is not working properly nor I able to install google chrome successfully. Please help me in this occasion. I am facing following messages.

    Hello Team,
    I have upgraded My leopard to Mountain lion 10.7 via snow leapeard. Now My itunes is not working properly nor I able to install google chrome successfully. Please help me in this occasion.
    Also, I am not being able to upgrade Mac OS X 10.7 to 10.7.4 or letest for lion.
    I am facing following messages when I open itunes ( I down loaded and install new for 10.7)
    Process:         iTunes [463]
    Path:            /Applications/iTunes.app/Contents/MacOS/iTunes
    Identifier:      com.apple.iTunes
    Version:         10.7 (10.7)
    Build Info:      iTunes-10702101~1
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [273]
    Date/Time:       2012-10-22 23:33:07.226 +0200
    OS Version:      Mac OS X 10.7 (11A390)
    Report Version:  8
    Interval Since Last Report:          4918 sec
    Crashes Since Last Report:           2
    Per-App Crashes Since Last Report:   2
    Anonymous UUID:                      3DE933E2-7A48-4840-91F4-7DC466ED9C26
    Crashed Thread:  0
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Application Specific Information:
    dyld: launch, loading dependent libraries
    @executable_path/../Frameworks/iPodUpdater.framework/Versions/A/iPodUpdater
    Dyld Error Message:
      Library not loaded: @executable_path/../Frameworks/iPodUpdater.framework/Versions/A/iPodUpdater
      Referenced from: /Applications/iTunes.app/Contents/MacOS/iTunes
      Reason: unsafe use of @executable_path in /Applications/iTunes.app/Contents/MacOS/iTunes with restricted binary
    Binary Images:
           0x102a96000 -        0x103c36fff  com.apple.iTunes (10.7 - 10.7) <0CC47E12-134F-A9E1-7E4F-3EAC797C3050> /Applications/iTunes.app/Contents/MacOS/iTunes
        0x7fff62696000 -     0x7fff626cb1ff  dyld (195 - ???) <71093406-21CF-3DBE-A001-802259ED5300> /usr/lib/dyld
    Model: MacBook4,1, BootROM MB41.00C1.B00, 2 processors, Intel Core 2 Duo, 2.4 GHz, 2 GB, SMC 1.31f1
    Graphics: Intel GMA X3100, GMA X3100, Built-In, 144 MB
    Memory Module: BANK 0/DIMM0, 1 GB, DDR2 SDRAM, 667 MHz, 0xAD00000000000000, 0x48594D503131325336344350362D59352020
    Memory Module: BANK 1/DIMM1, 1 GB, DDR2 SDRAM, 667 MHz, 0xAD00000000000000, 0x48594D503131325336344350362D59352020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x88), Broadcom BCM43xx 1.0 (5.10.131.36.5)
    Bluetooth: Version 2.5.0b13, 2 service, 12 devices, 2 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: FUJITSU MHY2160BH, 160.04 GB
    Parallel ATA Device: MATSHITADVD-R   UJ-867
    USB Device: Built-in iSight, apple_vendor_id, 0x8501, 0xfd400000 / 2
    USB Device: USB Receiver, 0x046d  (Logitech Inc.), 0xc52f, 0x1d100000 / 2
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8205, 0x1a100000 / 2
    USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x022a, 0x5d200000 / 3
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x5d100000 / 2
    And Google chrome just keep loading the page for hours and nothing is appear on its browser. But safari and firefox working absolutly fine.
    In addition, I have reboot computer as well but it never worked. Please help me in this occasion.
    Eagerly waiting for your response on this issue.
    Best Regards,

    You need to upgrade your copy of MS Office. You're using a version that is 8 years old (at least). You can buy Office 2011, which will work. You could also get a copy of Pages from the App Store, which is cheaper and will open Word files (though not perfectly). Or you could get a free Office clone, like OpenOffice or LibreOffice.

Maybe you are looking for