To_Date Func not working in Reports6i

Hi,
I'm using Reports6i.
I've a query like below
Select ctry,sum(wt),decode(bltype, 'I', to_char(voy_eta,'MONYYYY'),
                                       'E' ,to_char(voy_etd,'MONYYYY') ) voy_dt  from
Select bdl.bdl_type bltype,lm.loc_ctry ctry ,vm.voy_etd,vm.voy_eta, bc.bct_total_weight wt
from Bl_Details bdl ,Carrier_Master cm ,Voyage_Master vm,Location_Master lm, Bl_Consignment Bc
Where bdl_company = :P_Company
     and (bdl.BDL_TYPE=:P_bl_type or :P_bl_type is null)
     and bdl.BDL_STATUS <> 'C'
...................        --some more conditions come here
and ( bdl.bdl_company = bc.bct_company and bdl.bdl_reference = bc.bct_reference)
GROUP BY ctry, decode(bltype, 'I', to_char(voy_eta,'MONYYYY'),
                                       'E' ,to_char(voy_etd,'MONYYYY') )
ORDER BY to_date( voy_dt , 'MONYYYY' );When i'm running it in sqlDeveloper, the result set gers ordered based on the voy_dt
like Apr2008,Dec2008,Aug2009, etc...
But when i'm running it through Reports, it is getting alphabetically ordered.
like April2008, Aug2009,Dec2008....
Whats wrong??
Thanks

LANGUAGE settings .. doesn't it? :-)

Similar Messages

  • Function module PTRA_WEB_EXPENSE_REPORT_GET_2 not working when used in loop

    Hi All,
    I have used a function module PTRA_WEB_EXPENSE_REPORT_GET_2  in a custom fumction module which i am developing fetch the travel expense data . The function module PTRA_WEB_EXPENSE_REPORT_GET_2  returns the travel expense data based on the employee and the trip number. I want to fetch the travel expense data for a given set of employees and trip number and hence i have used this function module inside a loop statement.
    The function module returns the travel expense data for the employee and trip in the first loop pass. From the second loop passs it doesn't return the value. I have also checked this in se37 and the same thing happens. Value is returned for the fist employee but for the next employee we have to go to initial screen of se37 and execute the Func. module again.
    I debugged this function module and found that the value of the employee and the trip number is stored in the global variable. The value passed for the employee and trip is compared with the correspomding value in the global variable and if they are not same an error message is returned. Since we are using in a loop , each time a different value is passed for the employee and trip and the check fails .
    Is there any way to clear the value in the global parameters or is there any other function module which can be used to clear the values of the global variables?
    Thanks!
    Regards
    Manipal Parkala

    Hello Archana,
    May be we can try several ways...
    1) can you try calling function module BUFFER_REFRESH_ALL ??
       after each call...
    2) May be u can call Function module "PTRA_WEB_EXPENSE_REPORT_GET_2 " in background task or seperate task , it will load the function group everytime when u call it in loop.
    ***DO let us know if it does not work.
    thanks
    ~Raj

  • Y Generate to File not working?

    Hai,
    V are facing some probelms with reports6i.
    1.we are calling the report using the command line method not
    run_product.for these reports 'Generate to File' menu is not working.It shows
    an error like Umimplemented Error (rep-0999).How to solve this problem.
    2.In one report we are using CLOB field.but when we take the print output of
    this field some of the characters are missing in print out.the problem what
    we think is that, there is no entre key padding when a word wrap is
    occuring.We have to give it manually which is not applicable in all
    cases.Please give some methods to solve these probelms.
    Please treat this as an urgent matter.
    thanking you,
    dilip

    hai,
    regarding the 1st point there is one default printer attached to my m/c.but still the same error is coming. is it bcoz v r using command line arguments.but there should not be any link how u r calling the reopt.do v need to to pass any argument for doing this operations.my generate to file menu is enabled any way.pls help me to solve this problem.
    regards,
    dilip

  • [SOLVED] Direct Rendering is not working with Catalyst 8.6-1.

    I own an ATI Radeon X1300, and everything was working flawlessly with Catalyst 8.5-1, and when I updated the drivers, DRI stopped working. It has happened with me in the past, and the only solution I had found then was to downgrade the drivers. I appreciate your help.
    Here is my /etc/X11/Xorg.conf:
    Section "ServerLayout"
    Identifier "Xorg Configured"
    Screen 0 "aticonfig-Screen[0]" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "PS/2 Mouse" "CorePointer"
    EndSection
    Section "Files"
    RgbPath "/usr/share/X11/rgb"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc:unscaled"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/PEX"
    FontPath "/usr/share/fonts/cyrillic"
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/ttf/western"
    FontPath "/usr/share/fonts/ttf/decoratives"
    FontPath "/usr/share/fonts/truetype"
    FontPath "/usr/share/fonts/truetype/openoffice"
    FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath "/usr/share/fonts/latex-ttf-fonts"
    FontPath "/usr/share/fonts/defoma/CID"
    FontPath "/usr/share/fonts/defoma/TrueType"
    EndSection
    Section "Module"
    Load "ddc" # ddc probing of monitor
    Load "dbe"
    Load "dri"
    Load "extmod"
    Load "glx"
    Load "bitmap" # bitmap-fonts
    Load "type1"
    Load "freetype"
    Load "record"
    EndSection
    Section "ServerFlags"
    Option "AllowMouseOpenFail" "true"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "keyboard"
    Option "CoreKeyboard"
    Option "XkbModel" "abnt2"
    Option "XkbLayout" "br"
    EndSection
    Section "InputDevice"
    Identifier "Serial Mouse"
    Driver "mouse"
    Option "Protocol" "Microsoft"
    Option "Device" "/dev/ttyS0"
    Option "Emulate3Buttons" "true"
    Option "Emulate3Timeout" "70"
    Option "SendCoreEvents" "true"
    EndSection
    Section "InputDevice"
    Identifier "PS/2 Mouse"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "ZAxisMapping" "4 5"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "true"
    Option "Emulate3Timeout" "70"
    Option "SendCoreEvents" "true"
    EndSection
    Section "InputDevice"
    Identifier "USB Mouse"
    Driver "mouse"
    Option "Device" "/dev/input/mice"
    Option "SendCoreEvents" "true"
    Option "Protocol" "IMPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Buttons" "5"
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    DisplaySize 338 270 # 1280x1024 96dpi
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]"
    Driver "fglrx"
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]"
    Device "aticonfig-Device[0]"
    Monitor "aticonfig-Monitor[0]"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    Section "DRI"
    Mode 0666
    EndSection
    Here is my /var/log/Xorg.0.log:
    X.Org X Server 1.4.2
    Release Date: 11 June 2008
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.25-ARCH i686
    Current Operating System: Linux localhost 2.6.25-ARCH #1 SMP PREEMPT Sat Jun 14 18:07:19 CEST 2008 i686
    Build Date: 21 June 2008 05:47:59PM
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    Module Loader present
    Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jun 23 13:57:45 2008
    (==) Using config file: "/etc/X11/xorg.conf"
    (==) ServerLayout "Xorg Configured"
    (**) |-->Screen "aticonfig-Screen[0]" (0)
    (**) | |-->Monitor "aticonfig-Monitor[0]"
    (**) | |-->Device "aticonfig-Device[0]"
    (**) |-->Input Device "Keyboard0"
    (**) |-->Input Device "PS/2 Mouse"
    (**) Option "AllowMouseOpenFail" "true"
    (==) Automatically adding devices
    (==) Automatically enabling devices
    (WW) The directory "/usr/share/fonts/PEX" does not exist.
    Entry deleted from font path.
    (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/cyrillic".
    Entry deleted from font path.
    (Run 'mkfontdir' on "/usr/share/fonts/cyrillic").
    (WW) The directory "/usr/share/fonts/ttf/western" does not exist.
    Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/ttf/decoratives" does not exist.
    Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/truetype" does not exist.
    Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/truetype/openoffice" does not exist.
    Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/truetype/ttf-bitstream-vera" does not exist.
    Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/latex-ttf-fonts" does not exist.
    Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/defoma/CID" does not exist.
    Entry deleted from font path.
    (WW) The directory "/usr/share/fonts/defoma/TrueType" does not exist.
    Entry deleted from font path.
    (==) Including the default font path /usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/TTF,/usr/share/fonts/Type1.
    (**) FontPath set to:
    /usr/share/fonts/misc:unscaled,
    /usr/share/fonts/misc,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/75dpi,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/100dpi,
    /usr/share/fonts/Type1,
    /usr/share/fonts/misc,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/TTF,
    /usr/share/fonts/Type1
    (**) RgbPath set to "/usr/share/X11/rgb"
    (**) ModulePath set to "/usr/lib/xorg/modules"
    (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    (II) No APM support in BIOS or kernel
    (II) Loader magic: 0x81e0a60
    (II) Module ABI versions:
    X.Org ANSI C Emulation: 0.3
    X.Org Video Driver: 2.0
    X.Org XInput driver : 2.0
    X.Org Server Extension : 0.3
    X.Org Font Renderer : 0.5
    (II) Loader running on linux
    (II) LoadModule: "pcidata"
    (II) Loading /usr/lib/xorg/modules//libpcidata.so
    (II) Module pcidata: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.0.0
    ABI class: X.Org Video Driver, version 2.0
    (++) using VT number 7
    (II) PCI: PCI scan (all values are in hex)
    (II) PCI: 00:00:0: chip 10de,005e card 1043,815a rev a3 class 05,80,00 hdr 00
    (II) PCI: 00:01:0: chip 10de,0050 card 1043,815a rev f3 class 06,01,00 hdr 80
    (II) PCI: 00:01:1: chip 10de,0052 card 1043,815a rev a2 class 0c,05,00 hdr 80
    (II) PCI: 00:02:0: chip 10de,005a card 1043,815a rev a2 class 0c,03,10 hdr 80
    (II) PCI: 00:02:1: chip 10de,005b card 1043,815a rev a3 class 0c,03,20 hdr 80
    (II) PCI: 00:06:0: chip 10de,0053 card f043,815a rev f2 class 01,01,8a hdr 00
    (II) PCI: 00:07:0: chip 10de,0054 card 1043,815a rev f3 class 01,01,85 hdr 00
    (II) PCI: 00:08:0: chip 10de,0055 card 1043,815a rev f3 class 01,01,85 hdr 00
    (II) PCI: 00:09:0: chip 10de,005c card 0000,0000 rev f2 class 06,04,01 hdr 01
    (II) PCI: 00:0a:0: chip 10de,0057 card 1043,812a rev f3 class 06,80,00 hdr 00
    (II) PCI: 00:0b:0: chip 10de,005d card 0000,0000 rev f3 class 06,04,00 hdr 01
    (II) PCI: 00:0c:0: chip 10de,005d card 0000,0000 rev f3 class 06,04,00 hdr 01
    (II) PCI: 00:0d:0: chip 10de,005d card 0000,0000 rev f3 class 06,04,00 hdr 01
    (II) PCI: 00:0e:0: chip 10de,005d card 0000,0000 rev a3 class 06,04,00 hdr 01
    (II) PCI: 00:18:0: chip 1022,1100 card 0000,0000 rev 00 class 06,00,00 hdr 80
    (II) PCI: 00:18:1: chip 1022,1101 card 0000,0000 rev 00 class 06,00,00 hdr 80
    (II) PCI: 00:18:2: chip 1022,1102 card 0000,0000 rev 00 class 06,00,00 hdr 80
    (II) PCI: 00:18:3: chip 1022,1103 card 0000,0000 rev 00 class 06,00,00 hdr 80
    (II) PCI: 01:01:0: chip 1106,3044 card 1043,81fe rev c0 class 0c,00,10 hdr 00
    (II) PCI: 05:00:0: chip 1002,7187 card 17ee,7187 rev 00 class 03,00,00 hdr 80
    (II) PCI: 05:00:1: chip 1002,71a7 card 17ee,7186 rev 00 class 03,80,00 hdr 00
    (II) PCI: End of PCI scan
    (II) PCI-to-ISA bridge:
    (II) Bus -1: bridge is at (0:1:0), (0,-1,-1), BCTRL: 0x0008 (VGA_EN is set)
    (II) Subtractive PCI-to-PCI bridge:
    (II) Bus 1: bridge is at (0:9:0), (0,1,1), BCTRL: 0x0204 (VGA_EN is cleared)
    (II) Bus 1 I/O range:
    [0] -1 0 0x0000a000 - 0x0000a0ff (0x100) IX[b]
    [1] -1 0 0x0000a400 - 0x0000a4ff (0x100) IX[b]
    [2] -1 0 0x0000a800 - 0x0000a8ff (0x100) IX[b]
    [3] -1 0 0x0000ac00 - 0x0000acff (0x100) IX[b]
    (II) Bus 1 non-prefetchable memory range:
    [0] -1 0 0xfdf00000 - 0xfdffffff (0x100000) MX[b]
    (II) PCI-to-PCI bridge:
    (II) Bus 2: bridge is at (0:11:0), (0,2,2), BCTRL: 0x0004 (VGA_EN is cleared)
    (II) PCI-to-PCI bridge:
    (II) Bus 3: bridge is at (0:12:0), (0,3,3), BCTRL: 0x0004 (VGA_EN is cleared)
    (II) PCI-to-PCI bridge:
    (II) Bus 4: bridge is at (0:13:0), (0,4,4), BCTRL: 0x0004 (VGA_EN is cleared)
    (II) PCI-to-PCI bridge:
    (II) Bus 5: bridge is at (0:14:0), (0,5,5), BCTRL: 0x000c (VGA_EN is set)
    (II) Bus 5 I/O range:
    [0] -1 0 0x00009000 - 0x000090ff (0x100) IX[b]
    [1] -1 0 0x00009400 - 0x000094ff (0x100) IX[b]
    [2] -1 0 0x00009800 - 0x000098ff (0x100) IX[b]
    [3] -1 0 0x00009c00 - 0x00009cff (0x100) IX[b]
    (II) Bus 5 non-prefetchable memory range:
    [0] -1 0 0xfde00000 - 0xfdefffff (0x100000) MX[b]
    (II) Bus 5 prefetchable memory range:
    [0] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[b]
    (II) Host-to-PCI bridge:
    (II) Bus 0: bridge is at (0:24:0), (0,0,5), BCTRL: 0x0008 (VGA_EN is set)
    (II) Bus 0 I/O range:
    [0] -1 0 0x00000000 - 0x0000ffff (0x10000) IX[b]
    (II) Bus 0 non-prefetchable memory range:
    [0] -1 0 0x00000000 - 0xffffffff (0x0) MX[b]
    (II) Bus 0 prefetchable memory range:
    [0] -1 0 0x00000000 - 0xffffffff (0x0) MX[b]
    (--) PCI:*(5:0:0) ATI Technologies Inc RV516 [Radeon X1300/X1550 Series] rev 0, Mem @ 0xd0000000/28, 0xfdef0000/16, I/O @ 0x9c00/8, BIOS @ 0xfdec0000/17
    (--) PCI: (5:0:1) ATI Technologies Inc RV516 [Radeon X1300/X1550 Series] (Secondary) rev 0, Mem @ 0xfdee0000/16
    (II) Addressable bus resource ranges are
    [0] -1 0 0x00000000 - 0xffffffff (0x0) MX[b]
    [1] -1 0 0x00000000 - 0x0000ffff (0x10000) IX[b]
    (II) OS-reported resource ranges:
    [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
    [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1 0 0x00000000 - 0x000000ff (0x100) IX[b]
    (II) Active PCI resource ranges:
    [0] -1 0 0xfdfff000 - 0xfdfff7ff (0x800) MX[b]
    [1] -1 0 0xfe02a000 - 0xfe02afff (0x1000) MX[b]
    [2] -1 0 0xfe02b000 - 0xfe02bfff (0x1000) MX[b]
    [3] -1 0 0xfe02c000 - 0xfe02cfff (0x1000) MX[b]
    [4] -1 0 0xfeb00000 - 0xfeb000ff (0x100) MX[b]
    [5] -1 0 0xfe02f000 - 0xfe02ffff (0x1000) MX[b]
    [6] -1 0 0xfdec0000 - 0xfdedffff (0x20000) MX[b](B)
    [7] -1 0 0xfdef0000 - 0xfdefffff (0x10000) MX[b](B)
    [8] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[b](B)
    [9] -1 0 0x0000ac00 - 0x0000ac7f (0x80) IX[b]
    [10] -1 0 0x0000bc00 - 0x0000bc07 (0x8) IX[b]
    [11] -1 0 0x0000c000 - 0x0000c00f (0x10) IX[b]
    [12] -1 0 0x00000b60 - 0x00000b63 (0x4) IX[b]
    [13] -1 0 0x00000960 - 0x00000967 (0x8) IX[b]
    [14] -1 0 0x00000be0 - 0x00000be3 (0x4) IX[b]
    [15] -1 0 0x000009e0 - 0x000009e7 (0x8) IX[b]
    [16] -1 0 0x0000d400 - 0x0000d40f (0x10) IX[b]
    [17] -1 0 0x00000b70 - 0x00000b73 (0x4) IX[b]
    [18] -1 0 0x00000970 - 0x00000977 (0x8) IX[b]
    [19] -1 0 0x00000bf0 - 0x00000bf3 (0x4) IX[b]
    [20] -1 0 0x000009f0 - 0x000009f7 (0x8) IX[b]
    [21] -1 0 0x0000e800 - 0x0000e80f (0x10) IX[b]
    [22] -1 0 0x00004c40 - 0x00004c7f (0x40) IX[b]
    [23] -1 0 0x00004c00 - 0x00004c3f (0x40) IX[b]
    [24] -1 0 0x0000fc00 - 0x0000fc1f (0x20) IX[b]
    [25] -1 0 0x00009c00 - 0x00009cff (0x100) IX[b](B)
    (II) Inactive PCI resource ranges:
    [0] -1 0 0xfdee0000 - 0xfdeeffff (0x10000) MX[b](B)
    (II) Active PCI resource ranges after removing overlaps:
    [0] -1 0 0xfdfff000 - 0xfdfff7ff (0x800) MX[b]
    [1] -1 0 0xfe02a000 - 0xfe02afff (0x1000) MX[b]
    [2] -1 0 0xfe02b000 - 0xfe02bfff (0x1000) MX[b]
    [3] -1 0 0xfe02c000 - 0xfe02cfff (0x1000) MX[b]
    [4] -1 0 0xfeb00000 - 0xfeb000ff (0x100) MX[b]
    [5] -1 0 0xfe02f000 - 0xfe02ffff (0x1000) MX[b]
    [6] -1 0 0xfdec0000 - 0xfdedffff (0x20000) MX[b](B)
    [7] -1 0 0xfdef0000 - 0xfdefffff (0x10000) MX[b](B)
    [8] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[b](B)
    [9] -1 0 0x0000ac00 - 0x0000ac7f (0x80) IX[b]
    [10] -1 0 0x0000bc00 - 0x0000bc07 (0x8) IX[b]
    [11] -1 0 0x0000c000 - 0x0000c00f (0x10) IX[b]
    [12] -1 0 0x00000b60 - 0x00000b63 (0x4) IX[b]
    [13] -1 0 0x00000960 - 0x00000967 (0x8) IX[b]
    [14] -1 0 0x00000be0 - 0x00000be3 (0x4) IX[b]
    [15] -1 0 0x000009e0 - 0x000009e7 (0x8) IX[b]
    [16] -1 0 0x0000d400 - 0x0000d40f (0x10) IX[b]
    [17] -1 0 0x00000b70 - 0x00000b73 (0x4) IX[b]
    [18] -1 0 0x00000970 - 0x00000977 (0x8) IX[b]
    [19] -1 0 0x00000bf0 - 0x00000bf3 (0x4) IX[b]
    [20] -1 0 0x000009f0 - 0x000009f7 (0x8) IX[b]
    [21] -1 0 0x0000e800 - 0x0000e80f (0x10) IX[b]
    [22] -1 0 0x00004c40 - 0x00004c7f (0x40) IX[b]
    [23] -1 0 0x00004c00 - 0x00004c3f (0x40) IX[b]
    [24] -1 0 0x0000fc00 - 0x0000fc1f (0x20) IX[b]
    [25] -1 0 0x00009c00 - 0x00009cff (0x100) IX[b](B)
    (II) Inactive PCI resource ranges after removing overlaps:
    [0] -1 0 0xfdee0000 - 0xfdeeffff (0x10000) MX[b](B)
    (II) OS-reported resource ranges after removing overlaps with PCI:
    [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
    [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1 0 0x00000000 - 0x000000ff (0x100) IX[b]
    (II) All system resource ranges:
    [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
    [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1 0 0xfdfff000 - 0xfdfff7ff (0x800) MX[b]
    [5] -1 0 0xfe02a000 - 0xfe02afff (0x1000) MX[b]
    [6] -1 0 0xfe02b000 - 0xfe02bfff (0x1000) MX[b]
    [7] -1 0 0xfe02c000 - 0xfe02cfff (0x1000) MX[b]
    [8] -1 0 0xfeb00000 - 0xfeb000ff (0x100) MX[b]
    [9] -1 0 0xfe02f000 - 0xfe02ffff (0x1000) MX[b]
    [10] -1 0 0xfdec0000 - 0xfdedffff (0x20000) MX[b](B)
    [11] -1 0 0xfdef0000 - 0xfdefffff (0x10000) MX[b](B)
    [12] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[b](B)
    [13] -1 0 0xfdee0000 - 0xfdeeffff (0x10000) MX[b](B)
    [14] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [15] -1 0 0x00000000 - 0x000000ff (0x100) IX[b]
    [16] -1 0 0x0000ac00 - 0x0000ac7f (0x80) IX[b]
    [17] -1 0 0x0000bc00 - 0x0000bc07 (0x8) IX[b]
    [18] -1 0 0x0000c000 - 0x0000c00f (0x10) IX[b]
    [19] -1 0 0x00000b60 - 0x00000b63 (0x4) IX[b]
    [20] -1 0 0x00000960 - 0x00000967 (0x8) IX[b]
    [21] -1 0 0x00000be0 - 0x00000be3 (0x4) IX[b]
    [22] -1 0 0x000009e0 - 0x000009e7 (0x8) IX[b]
    [23] -1 0 0x0000d400 - 0x0000d40f (0x10) IX[b]
    [24] -1 0 0x00000b70 - 0x00000b73 (0x4) IX[b]
    [25] -1 0 0x00000970 - 0x00000977 (0x8) IX[b]
    [26] -1 0 0x00000bf0 - 0x00000bf3 (0x4) IX[b]
    [27] -1 0 0x000009f0 - 0x000009f7 (0x8) IX[b]
    [28] -1 0 0x0000e800 - 0x0000e80f (0x10) IX[b]
    [29] -1 0 0x00004c40 - 0x00004c7f (0x40) IX[b]
    [30] -1 0 0x00004c00 - 0x00004c3f (0x40) IX[b]
    [31] -1 0 0x0000fc00 - 0x0000fc1f (0x20) IX[b]
    [32] -1 0 0x00009c00 - 0x00009cff (0x100) IX[b](B)
    (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
    (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
    (II) "freetype" will be loaded. This was enabled by default and also specified in the config file.
    (II) "record" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dri" will be loaded. This was enabled by default and also specified in the config file.
    (II) LoadModule: "ddc"(II) Module "ddc" already built-in
    (II) LoadModule: "dbe"
    (II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
    (II) Module dbe: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 0.3
    (II) Loading extension DOUBLE-BUFFER
    (II) LoadModule: "dri"
    (II) Loading /usr/lib/xorg/modules/extensions//libdri.so
    (II) Module dri: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.0.0
    ABI class: X.Org Server Extension, version 0.3
    (II) Loading extension XFree86-DRI
    (II) LoadModule: "extmod"
    (II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
    (II) Module extmod: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.0.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 0.3
    (II) Loading extension SHAPE
    (II) Loading extension MIT-SUNDRY-NONSTANDARD
    (II) Loading extension BIG-REQUESTS
    (II) Loading extension SYNC
    (II) Loading extension MIT-SCREEN-SAVER
    (II) Loading extension XC-MISC
    (II) Loading extension XFree86-VidModeExtension
    (II) Loading extension XFree86-Misc
    (II) Loading extension XFree86-DGA
    (II) Loading extension DPMS
    (II) Loading extension TOG-CUP
    (II) Loading extension Extended-Visual-Information
    (II) Loading extension XVideo
    (II) Loading extension XVideo-MotionCompensation
    (II) Loading extension X-Resource
    (II) LoadModule: "glx"
    (II) Loading /usr/lib/xorg/modules/extensions//libglx.so
    (II) Module glx: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.0.0
    ABI class: X.Org Server Extension, version 0.3
    (==) AIGLX enabled
    (II) Loading extension GLX
    (II) LoadModule: "type1"
    (WW) Warning, couldn't open module type1
    (II) UnloadModule: "type1"
    (EE) Failed to load module "type1" (module does not exist, 0)
    (II) LoadModule: "freetype"
    (II) Loading /usr/lib/xorg/modules/fonts//libfreetype.so
    (II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
    compiled for 1.4.2, module version = 2.1.0
    Module class: X.Org Font Renderer
    ABI class: X.Org Font Renderer, version 0.5
    (II) Loading font FreeType
    (II) LoadModule: "record"
    (II) Loading /usr/lib/xorg/modules/extensions//librecord.so
    (II) Module record: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.13.0
    Module class: X.Org Server Extension
    ABI class: X.Org Server Extension, version 0.3
    (II) Loading extension RECORD
    (II) LoadModule: "fglrx"
    (II) Loading /usr/lib/xorg/modules/drivers//fglrx_drv.so
    (II) Module fglrx: vendor="FireGL - ATI Technologies Inc."
    compiled for 7.1.0, module version = 8.50.3
    Module class: X.Org Video Driver
    (II) LoadModule: "kbd"
    (II) Loading /usr/lib/xorg/modules/input//kbd_drv.so
    (II) Module kbd: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.3.1
    Module class: X.Org XInput Driver
    ABI class: X.Org XInput driver, version 2.0
    (II) LoadModule: "mouse"
    (II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
    (II) Module mouse: vendor="X.Org Foundation"
    compiled for 1.4.0, module version = 1.2.3
    Module class: X.Org XInput Driver
    ABI class: X.Org XInput driver, version 2.0
    (II) Primary Device is: PCI 05:00:0
    (II) ATI Proprietary Linux Driver Version Identifier:8.50.3
    (II) ATI Proprietary Linux Driver Release Identifier: UNSUPPORTED-8.501
    (II) ATI Proprietary Linux Driver Build Date: Jun 2 2008 22:46:56
    (--) Assigning device section with no busID to primary device
    (WW) fglrx: No matching Device section for instance (BusID PCI:5:0:1) found
    (--) Chipset Supported AMD Graphics Processor (0x7187) found
    (WW) fglrx: No matching Device section for instance (BusID PCI:5:0:1) found
    (II) AMD Video driver is running on a device belonging to a group targeted for this release
    (II) AMD Video driver is signed
    (II) resource ranges after xf86ClaimFixedResources() call:
    [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
    [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1 0 0xfdfff000 - 0xfdfff7ff (0x800) MX[b]
    [5] -1 0 0xfe02a000 - 0xfe02afff (0x1000) MX[b]
    [6] -1 0 0xfe02b000 - 0xfe02bfff (0x1000) MX[b]
    [7] -1 0 0xfe02c000 - 0xfe02cfff (0x1000) MX[b]
    [8] -1 0 0xfeb00000 - 0xfeb000ff (0x100) MX[b]
    [9] -1 0 0xfe02f000 - 0xfe02ffff (0x1000) MX[b]
    [10] -1 0 0xfdec0000 - 0xfdedffff (0x20000) MX[b](B)
    [11] -1 0 0xfdef0000 - 0xfdefffff (0x10000) MX[b](B)
    [12] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[b](B)
    [13] -1 0 0xfdee0000 - 0xfdeeffff (0x10000) MX[b](B)
    [14] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [15] -1 0 0x00000000 - 0x000000ff (0x100) IX[b]
    [16] -1 0 0x0000ac00 - 0x0000ac7f (0x80) IX[b]
    [17] -1 0 0x0000bc00 - 0x0000bc07 (0x8) IX[b]
    [18] -1 0 0x0000c000 - 0x0000c00f (0x10) IX[b]
    [19] -1 0 0x00000b60 - 0x00000b63 (0x4) IX[b]
    [20] -1 0 0x00000960 - 0x00000967 (0x8) IX[b]
    [21] -1 0 0x00000be0 - 0x00000be3 (0x4) IX[b]
    [22] -1 0 0x000009e0 - 0x000009e7 (0x8) IX[b]
    [23] -1 0 0x0000d400 - 0x0000d40f (0x10) IX[b]
    [24] -1 0 0x00000b70 - 0x00000b73 (0x4) IX[b]
    [25] -1 0 0x00000970 - 0x00000977 (0x8) IX[b]
    [26] -1 0 0x00000bf0 - 0x00000bf3 (0x4) IX[b]
    [27] -1 0 0x000009f0 - 0x000009f7 (0x8) IX[b]
    [28] -1 0 0x0000e800 - 0x0000e80f (0x10) IX[b]
    [29] -1 0 0x00004c40 - 0x00004c7f (0x40) IX[b]
    [30] -1 0 0x00004c00 - 0x00004c3f (0x40) IX[b]
    [31] -1 0 0x0000fc00 - 0x0000fc1f (0x20) IX[b]
    [32] -1 0 0x00009c00 - 0x00009cff (0x100) IX[b](B)
    (II) fglrx(0): pEnt->device->identifier=0x9fa1880
    (II) resource ranges after probing:
    [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
    [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1 0 0xfdfff000 - 0xfdfff7ff (0x800) MX[b]
    [5] -1 0 0xfe02a000 - 0xfe02afff (0x1000) MX[b]
    [6] -1 0 0xfe02b000 - 0xfe02bfff (0x1000) MX[b]
    [7] -1 0 0xfe02c000 - 0xfe02cfff (0x1000) MX[b]
    [8] -1 0 0xfeb00000 - 0xfeb000ff (0x100) MX[b]
    [9] -1 0 0xfe02f000 - 0xfe02ffff (0x1000) MX[b]
    [10] -1 0 0xfdec0000 - 0xfdedffff (0x20000) MX[b](B)
    [11] -1 0 0xfdef0000 - 0xfdefffff (0x10000) MX[b](B)
    [12] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[b](B)
    [13] -1 0 0xfdee0000 - 0xfdeeffff (0x10000) MX[b](B)
    [14] 0 0 0x000a0000 - 0x000affff (0x10000) MS[b]
    [15] 0 0 0x000b0000 - 0x000b7fff (0x8000) MS[b]
    [16] 0 0 0x000b8000 - 0x000bffff (0x8000) MS[b]
    [17] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [18] -1 0 0x00000000 - 0x000000ff (0x100) IX[b]
    [19] -1 0 0x0000ac00 - 0x0000ac7f (0x80) IX[b]
    [20] -1 0 0x0000bc00 - 0x0000bc07 (0x8) IX[b]
    [21] -1 0 0x0000c000 - 0x0000c00f (0x10) IX[b]
    [22] -1 0 0x00000b60 - 0x00000b63 (0x4) IX[b]
    [23] -1 0 0x00000960 - 0x00000967 (0x8) IX[b]
    [24] -1 0 0x00000be0 - 0x00000be3 (0x4) IX[b]
    [25] -1 0 0x000009e0 - 0x000009e7 (0x8) IX[b]
    [26] -1 0 0x0000d400 - 0x0000d40f (0x10) IX[b]
    [27] -1 0 0x00000b70 - 0x00000b73 (0x4) IX[b]
    [28] -1 0 0x00000970 - 0x00000977 (0x8) IX[b]
    [29] -1 0 0x00000bf0 - 0x00000bf3 (0x4) IX[b]
    [30] -1 0 0x000009f0 - 0x000009f7 (0x8) IX[b]
    [31] -1 0 0x0000e800 - 0x0000e80f (0x10) IX[b]
    [32] -1 0 0x00004c40 - 0x00004c7f (0x40) IX[b]
    [33] -1 0 0x00004c00 - 0x00004c3f (0x40) IX[b]
    [34] -1 0 0x0000fc00 - 0x0000fc1f (0x20) IX[b]
    [35] -1 0 0x00009c00 - 0x00009cff (0x100) IX[b](B)
    [36] 0 0 0x000003b0 - 0x000003bb (0xc) IS[b]
    [37] 0 0 0x000003c0 - 0x000003df (0x20) IS[b]
    (II) Setting vga for screen 0.
    (II) fglrx(0): === [atiddxPreInit] === begin
    (II) Loading sub module "vgahw"
    (II) LoadModule: "vgahw"
    (II) Loading /usr/lib/xorg/modules//libvgahw.so
    (II) Module vgahw: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 0.1.0
    ABI class: X.Org Video Driver, version 2.0
    (II) fglrx(0): PCI bus 5 card 0 func 0
    (**) fglrx(0): Depth 24, (--) framebuffer bpp 32
    (II) fglrx(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
    (==) fglrx(0): Default visual is TrueColor
    (**) fglrx(0): Option "DPMS" "true"
    (II) fglrx(0): Loading PCS database from /etc/ati/amdpcsdb
    (==) fglrx(0): RGB weight 888
    (II) fglrx(0): Using 8 bits per RGB (8 bit DAC)
    (==) fglrx(0): Gamma Correction for I is 0x06419064
    (==) fglrx(0): Gamma Correction for II is 0x06419064
    (==) fglrx(0): Buffer Tiling is ON
    (--) fglrx(0): Chipset: "Radeon X1300/X1550 Series" (Chipset = 0x7187)
    (--) fglrx(0): (PciSubVendor = 0x17ee, PciSubDevice = 0x7187)
    (--) fglrx(0): board vendor info: third party graphics adapter - NOT original ATI
    (--) fglrx(0): Linear framebuffer (phys) at 0xd0000000
    (--) fglrx(0): MMIO registers at 0xfdef0000
    (==) fglrx(0): ROM-BIOS at 0x000c0000
    (II) fglrx(0): Primary V_BIOS segment is: 0xc000
    (II) Loading sub module "vbe"
    (II) LoadModule: "vbe"
    (II) Loading /usr/lib/xorg/modules//libvbe.so
    (II) Module vbe: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.1.0
    ABI class: X.Org Video Driver, version 2.0
    (II) fglrx(0): VESA BIOS detected
    (II) fglrx(0): VESA VBE Version 3.0
    (II) fglrx(0): VESA VBE Total Mem: 16384 kB
    (II) fglrx(0): VESA VBE OEM: ATI ATOMBIOS
    (II) fglrx(0): VESA VBE OEM Software Rev: 9.12
    (II) fglrx(0): VESA VBE OEM Vendor: (C) 1988-2005, ATI Technologies Inc.
    (II) fglrx(0): VESA VBE OEM Product: RV515
    (II) fglrx(0): VESA VBE OEM Product Rev: 01.00
    (II) fglrx(0): ATI Video BIOS revision 9 or later detected
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 7, (OK)
    drmOpenByBusid: Searching for BusID PCI:5:0:0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 7, (OK)
    drmOpenByBusid: drmOpenMinor returns 7
    drmOpenByBusid: drmGetBusid reports PCI:5:0:0
    (II) Loading sub module "fglrxdrm"
    (II) LoadModule: "fglrxdrm"
    (II) Loading /usr/lib/xorg/modules/linux//libfglrxdrm.so
    (II) Module fglrxdrm: vendor="FireGL - ATI Technologies Inc."
    compiled for 7.1.0, module version = 8.50.3
    ABI class: X.Org Server Extension, version 0.3
    (II) fglrx(0): Using adapter: 5:0.0.
    (II) fglrx(0): [FB] Find the MC FB aperturs range(MCFBBase = 0xc0000000, MCFBSize = 0x10000000)
    (--) fglrx(0): VideoRAM: 262144 kByte, Type: DDR1
    (II) fglrx(0): PCIE card detected
    (WW) fglrx(0): board is an unknown third party board, chipset is supported
    (II) Loading sub module "ddc"
    (II) LoadModule: "ddc"(II) Module "ddc" already built-in
    (II) fglrx(0): Connected Display1: CRT on secondary DAC [crt2]
    (II) fglrx(0): Display1 EDID data ---------------------------
    (II) fglrx(0): Manufacturer: PHL Model: 13 Serial#: 1850
    (II) fglrx(0): Year: 2005 Week: 9
    (II) fglrx(0): EDID Version: 1.3
    (II) fglrx(0): Analog Display Input, Input Voltage Level: 0.700/0.700 V
    (II) fglrx(0): Sync: Separate
    (II) fglrx(0): Max H-Image Size [cm]: horiz.: 32 vert.: 24
    (II) fglrx(0): Gamma: 2.20
    (II) fglrx(0): DPMS capabilities: Off; RGB/Color Display
    (II) fglrx(0): First detailed timing is preferred mode
    (II) fglrx(0): redX: 0.626 redY: 0.340 greenX: 0.288 greenY: 0.608
    (II) fglrx(0): blueX: 0.148 blueY: 0.064 whiteX: 0.283 whiteY: 0.298
    (II) fglrx(0): Supported VESA Video Modes:
    (II) fglrx(0): 720x400@70Hz
    (II) fglrx(0): 640x480@60Hz
    (II) fglrx(0): 640x480@75Hz
    (II) fglrx(0): 800x600@75Hz
    (II) fglrx(0): 1024x768@75Hz
    (II) fglrx(0): Manufacturer's mask: 0
    (II) fglrx(0): Supported Future Video Modes:
    (II) fglrx(0): #0: hsize: 640 vsize 480 refresh: 85 vid: 22833
    (II) fglrx(0): #1: hsize: 800 vsize 600 refresh: 85 vid: 22853
    (II) fglrx(0): #2: hsize: 1024 vsize 768 refresh: 85 vid: 22881
    (II) fglrx(0): #3: hsize: 1280 vsize 1024 refresh: 60 vid: 32897
    (II) fglrx(0): Supported additional Video Mode:
    (II) fglrx(0): clock: 94.5 MHz Image Size: 310 x 230 mm
    (II) fglrx(0): h_active: 1024 h_sync: 1072 h_sync_end 1168 h_blank_end 1376 h_border: 0
    (II) fglrx(0): v_active: 768 v_sync: 769 v_sync_end 772 v_blanking: 808 v_border: 0
    (II) fglrx(0): Serial No: 09301850
    (II) fglrx(0): Monitor name: Philips 107Et
    (II) fglrx(0): Ranges: V min: 50 V max: 160 Hz, H min: 30 H max: 72 kHz, PixClock max 110 MHz
    (II) fglrx(0): EDID (in hex):
    (II) fglrx(0): 00ffffffffffff00410c13003a070000
    (II) fglrx(0): 090f0103682018782a4f29a057499b26
    (II) fglrx(0): 10484ca4420031594559615981800101
    (II) fglrx(0): 010101010101ea240060410028303060
    (II) fglrx(0): 130036e61000001e000000ff00303933
    (II) fglrx(0): 30313835300a20202020000000fc0050
    (II) fglrx(0): 68696c697073203130374574000000fd
    (II) fglrx(0): 0032a01e480b000a20202020202000b2
    (II) fglrx(0): End of Display1 EDID data --------------------
    (WW) fglrx(0): Only one display is connnected,so single mode is enabled
    (II) fglrx(0): Primary Controller - CRT on secondary DAC
    (II) fglrx(0): Internal Desktop Setting: 0x00000001
    (II) fglrx(0): POWERplay not supported on this hardware
    (==) fglrx(0): Qbs is not supported in this release. Disabled.
    (==) fglrx(0): FAST_SWAP disabled
    (==) fglrx(0): PseudoColor visuals disabled
    (==) fglrx(0): Using gamma correction (1.0, 1.0, 1.0)
    (==) fglrx(0): Center Mode is disabled
    (==) fglrx(0): TMDS coherent mode is enabled
    (II) fglrx(0): Total of 40 modes found for primary display.
    (--) fglrx(0): Virtual size is 1280x1024 (pitch 0)
    (**) fglrx(0): *Mode "1280x1024": 108.0 MHz (scaled from 0.0 MHz), 64.0 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 (64.0 kHz)
    (**) fglrx(0): Default mode "1280x1024": 85.5 MHz (scaled from 0.0 MHz), 50.9 kHz, 47.0 Hz (I)
    (II) fglrx(0): Modeline "1280x1024"x47.0 85.51 1280 1344 1480 1680 1024 1025 1028 1083 interlace +hsync (50.9 kHz)
    (**) fglrx(0): Default mode "1280x1024": 77.8 MHz (scaled from 0.0 MHz), 46.3 kHz, 43.0 Hz (I)
    (II) fglrx(0): Modeline "1280x1024"x43.0 77.80 1280 1344 1480 1680 1024 1025 1028 1077 interlace +hsync (46.3 kHz)
    (**) fglrx(0): *Mode "1280x960": 108.0 MHz (scaled from 0.0 MHz), 60.0 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1280x960"x60.0 108.00 1280 1376 1488 1800 960 961 964 1000 (60.0 kHz)
    (**) fglrx(0): *Mode "1280x768": 79.5 MHz (scaled from 0.0 MHz), 47.8 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1280x768"x60.0 79.50 1280 1344 1472 1664 768 771 778 798 +hsync (47.8 kHz)
    (**) fglrx(0): *Mode "1280x720": 74.5 MHz (scaled from 0.0 MHz), 44.8 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1280x720"x60.0 74.48 1280 1336 1472 1664 720 721 724 746 +hsync (44.8 kHz)
    (**) fglrx(0): *Mode "1152x864": 81.6 MHz (scaled from 0.0 MHz), 53.7 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1152x864"x60.0 81.62 1152 1216 1336 1520 864 865 868 895 +hsync (53.7 kHz)
    (**) fglrx(0): Default mode "1152x864": 58.3 MHz (scaled from 0.0 MHz), 39.2 kHz, 43.0 Hz (I)
    (II) fglrx(0): Modeline "1152x864"x43.0 58.28 1152 1200 1320 1488 864 865 868 911 interlace +hsync (39.2 kHz)
    (**) fglrx(0): *Mode "1024x768": 94.5 MHz (scaled from 0.0 MHz), 68.7 kHz, 85.0 Hz
    (II) fglrx(0): Modeline "1024x768"x85.0 94.50 1024 1072 1168 1376 768 769 772 808 (68.7 kHz)
    (**) fglrx(0): Default mode "1024x768": 78.8 MHz (scaled from 0.0 MHz), 60.0 kHz, 75.0 Hz
    (II) fglrx(0): Modeline "1024x768"x75.0 78.75 1024 1040 1136 1312 768 769 772 800 (60.0 kHz)
    (**) fglrx(0): Default mode "1024x768": 78.4 MHz (scaled from 0.0 MHz), 57.7 kHz, 72.0 Hz
    (II) fglrx(0): Modeline "1024x768"x72.0 78.43 1024 1080 1192 1360 768 769 772 801 +hsync (57.7 kHz)
    (**) fglrx(0): Default mode "1024x768": 75.0 MHz (scaled from 0.0 MHz), 56.5 kHz, 70.0 Hz
    (II) fglrx(0): Modeline "1024x768"x70.0 75.00 1024 1048 1184 1328 768 771 777 806 +hsync +vsync (56.5 kHz)
    (**) fglrx(0): Default mode "1024x768": 65.0 MHz (scaled from 0.0 MHz), 48.4 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 +hsync +vsync (48.4 kHz)
    (**) fglrx(0): Default mode "1024x768": 44.9 MHz (scaled from 0.0 MHz), 35.5 kHz, 43.0 Hz (I)
    (II) fglrx(0): Modeline "1024x768"x43.0 44.90 1024 1032 1208 1264 768 768 772 817 interlace (35.5 kHz)
    (**) fglrx(0): *Mode "800x600": 56.2 MHz (scaled from 0.0 MHz), 53.7 kHz, 85.0 Hz
    (II) fglrx(0): Modeline "800x600"x85.0 56.25 800 832 896 1048 600 601 604 631 (53.7 kHz)
    (**) fglrx(0): Default mode "800x600": 49.5 MHz (scaled from 0.0 MHz), 46.9 kHz, 75.0 Hz
    (II) fglrx(0): Modeline "800x600"x75.0 49.50 800 816 896 1056 600 601 604 625 (46.9 kHz)
    (**) fglrx(0): Default mode "800x600": 50.0 MHz (scaled from 0.0 MHz), 48.1 kHz, 72.0 Hz
    (II) fglrx(0): Modeline "800x600"x72.0 50.00 800 856 976 1040 600 637 643 666 (48.1 kHz)
    (**) fglrx(0): Default mode "800x600": 45.5 MHz (scaled from 0.0 MHz), 43.8 kHz, 70.0 Hz
    (II) fglrx(0): Modeline "800x600"x70.0 45.50 800 840 920 1040 600 601 604 625 +hsync (43.8 kHz)
    (**) fglrx(0): Default mode "800x600": 40.0 MHz (scaled from 0.0 MHz), 37.9 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "800x600"x60.0 40.00 800 840 968 1056 600 601 605 628 (37.9 kHz)
    (**) fglrx(0): Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.0 Hz
    (II) fglrx(0): Modeline "800x600"x56.0 36.00 800 824 896 1024 600 601 603 625 (35.2 kHz)
    (**) fglrx(0): Default mode "800x600": 68.2 MHz (scaled from 0.0 MHz), 63.6 kHz, 100.0 Hz
    (II) fglrx(0): Modeline "800x600"x100.0 68.17 800 848 936 1072 600 601 604 636 +hsync (63.6 kHz)
    (**) fglrx(0): Default mode "800x600": 60.1 MHz (scaled from 0.0 MHz), 56.9 kHz, 90.0 Hz
    (II) fglrx(0): Modeline "800x600"x90.0 60.06 800 840 928 1056 600 601 604 632 +hsync (56.9 kHz)
    (**) fglrx(0): *Mode "720x480": 26.7 MHz (scaled from 0.0 MHz), 29.8 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "720x480"x60.0 26.71 720 736 808 896 480 481 484 497 +hsync (29.8 kHz)
    (**) fglrx(0): *Mode "640x480": 36.0 MHz (scaled from 0.0 MHz), 43.3 kHz, 85.0 Hz
    (II) fglrx(0): Modeline "640x480"x85.0 36.00 640 696 752 832 480 481 484 509 +hsync +vsync (43.3 kHz)
    (**) fglrx(0): Default mode "640x480": 31.5 MHz (scaled from 0.0 MHz), 37.5 kHz, 75.0 Hz
    (II) fglrx(0): Modeline "640x480"x75.0 31.50 640 656 720 840 480 481 484 500 +hsync +vsync (37.5 kHz)
    (**) fglrx(0): Default mode "640x480": 31.5 MHz (scaled from 0.0 MHz), 37.9 kHz, 72.0 Hz
    (II) fglrx(0): Modeline "640x480"x72.0 31.50 640 664 704 832 480 489 492 520 +hsync +vsync (37.9 kHz)
    (**) fglrx(0): Default mode "640x480": 25.2 MHz (scaled from 0.0 MHz), 31.5 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "640x480"x60.0 25.18 640 656 752 800 480 490 492 525 +hsync +vsync (31.5 kHz)
    (**) fglrx(0): Default mode "640x480": 52.4 MHz (scaled from 0.0 MHz), 61.8 kHz, 120.0 Hz
    (II) fglrx(0): Modeline "640x480"x120.0 52.40 640 680 744 848 480 481 484 515 +hsync (61.8 kHz)
    (**) fglrx(0): Default mode "640x480": 43.2 MHz (scaled from 0.0 MHz), 50.9 kHz, 100.0 Hz
    (II) fglrx(0): Modeline "640x480"x100.0 43.16 640 680 744 848 480 481 484 509 +hsync (50.9 kHz)
    (**) fglrx(0): Default mode "640x480": 37.9 MHz (scaled from 0.0 MHz), 45.5 kHz, 90.0 Hz
    (II) fglrx(0): Modeline "640x480"x90.0 37.89 640 672 736 832 480 481 484 506 +hsync (45.5 kHz)
    (**) fglrx(0): Default mode "640x400": 28.1 MHz (scaled from 0.0 MHz), 33.7 kHz, 75.0 Hz
    (II) fglrx(0): Modeline "640x400"x75.0 28.07 640 696 736 832 400 413 415 449 (33.7 kHz)
    (**) fglrx(0): Default mode "640x400": 24.9 MHz (scaled from 0.0 MHz), 31.5 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "640x400"x60.0 24.92 640 664 760 792 400 460 462 525 (31.5 kHz)
    (**) fglrx(0): Default mode "512x384": 19.7 MHz (scaled from 0.0 MHz), 31.1 kHz, 75.0 Hz
    (II) fglrx(0): Modeline "512x384"x75.0 19.68 512 528 576 632 384 384 385 416 (31.1 kHz)
    (**) fglrx(0): Default mode "512x384": 19.8 MHz (scaled from 0.0 MHz), 29.8 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "512x384"x60.0 19.81 512 544 624 664 384 451 453 497 (29.8 kHz)
    (**) fglrx(0): Default mode "400x300": 24.8 MHz (scaled from 0.0 MHz), 46.9 kHz, 75.0 Hz (D)
    (II) fglrx(0): Modeline "400x300"x75.0 24.75 400 408 448 528 300 601 602 625 doublescan (46.9 kHz)
    (**) fglrx(0): Default mode "400x300": 22.3 MHz (scaled from 0.0 MHz), 45.0 kHz, 60.0 Hz (D)
    (II) fglrx(0): Modeline "400x300"x60.0 22.33 400 416 480 496 300 601 605 742 doublescan (45.0 kHz)
    (**) fglrx(0): Default mode "320x240": 15.8 MHz (scaled from 0.0 MHz), 37.9 kHz, 75.0 Hz (D)
    (II) fglrx(0): Modeline "320x240"x75.0 15.75 320 328 360 416 240 481 482 501 doublescan (37.9 kHz)
    (**) fglrx(0): Default mode "320x240": 12.6 MHz (scaled from 0.0 MHz), 31.5 kHz, 60.0 Hz (D)
    (II) fglrx(0): Modeline "320x240"x60.0 12.59 320 328 376 400 240 491 493 525 doublescan (31.5 kHz)
    (**) fglrx(0): Default mode "320x200": 13.1 MHz (scaled from 0.0 MHz), 31.5 kHz, 75.0 Hz (D)
    (II) fglrx(0): Modeline "320x200"x75.0 13.10 320 352 368 416 200 406 407 417 doublescan (31.5 kHz)
    (**) fglrx(0): Default mode "320x200": 12.6 MHz (scaled from 0.0 MHz), 31.5 kHz, 60.0 Hz (D)
    (II) fglrx(0): Modeline "320x200"x60.0 12.59 320 336 384 400 200 457 459 524 doublescan (31.5 kHz)
    (**) fglrx(0): Display dimensions: (338, 270) mm
    (WW) fglrx(0): Probed monitor is 320x240 mm, using Displaysize 338x270 mm
    (**) fglrx(0): DPI set to (96, 96)
    (--) fglrx(0): Virtual size is 1280x1024 (pitch 1280)
    (**) fglrx(0): *Mode "1280x1024": 108.0 MHz (scaled from 0.0 MHz), 64.0 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 (64.0 kHz)
    (**) fglrx(0): Default mode "1280x1024": 85.5 MHz (scaled from 0.0 MHz), 50.9 kHz, 47.0 Hz (I)
    (II) fglrx(0): Modeline "1280x1024"x47.0 85.51 1280 1344 1480 1680 1024 1025 1028 1083 interlace +hsync (50.9 kHz)
    (**) fglrx(0): Default mode "1280x1024": 77.8 MHz (scaled from 0.0 MHz), 46.3 kHz, 43.0 Hz (I)
    (II) fglrx(0): Modeline "1280x1024"x43.0 77.80 1280 1344 1480 1680 1024 1025 1028 1077 interlace +hsync (46.3 kHz)
    (**) fglrx(0): *Mode "1280x960": 108.0 MHz (scaled from 0.0 MHz), 60.0 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1280x960"x60.0 108.00 1280 1376 1488 1800 960 961 964 1000 (60.0 kHz)
    (**) fglrx(0): *Mode "1280x768": 79.5 MHz (scaled from 0.0 MHz), 47.8 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1280x768"x60.0 79.50 1280 1344 1472 1664 768 771 778 798 +hsync (47.8 kHz)
    (**) fglrx(0): *Mode "1280x720": 74.5 MHz (scaled from 0.0 MHz), 44.8 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1280x720"x60.0 74.48 1280 1336 1472 1664 720 721 724 746 +hsync (44.8 kHz)
    (**) fglrx(0): *Mode "1152x864": 81.6 MHz (scaled from 0.0 MHz), 53.7 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1152x864"x60.0 81.62 1152 1216 1336 1520 864 865 868 895 +hsync (53.7 kHz)
    (**) fglrx(0): Default mode "1152x864": 58.3 MHz (scaled from 0.0 MHz), 39.2 kHz, 43.0 Hz (I)
    (II) fglrx(0): Modeline "1152x864"x43.0 58.28 1152 1200 1320 1488 864 865 868 911 interlace +hsync (39.2 kHz)
    (**) fglrx(0): *Mode "1024x768": 94.5 MHz (scaled from 0.0 MHz), 68.7 kHz, 85.0 Hz
    (II) fglrx(0): Modeline "1024x768"x85.0 94.50 1024 1072 1168 1376 768 769 772 808 (68.7 kHz)
    (**) fglrx(0): Default mode "1024x768": 78.8 MHz (scaled from 0.0 MHz), 60.0 kHz, 75.0 Hz
    (II) fglrx(0): Modeline "1024x768"x75.0 78.75 1024 1040 1136 1312 768 769 772 800 (60.0 kHz)
    (**) fglrx(0): Default mode "1024x768": 78.4 MHz (scaled from 0.0 MHz), 57.7 kHz, 72.0 Hz
    (II) fglrx(0): Modeline "1024x768"x72.0 78.43 1024 1080 1192 1360 768 769 772 801 +hsync (57.7 kHz)
    (**) fglrx(0): Default mode "1024x768": 75.0 MHz (scaled from 0.0 MHz), 56.5 kHz, 70.0 Hz
    (II) fglrx(0): Modeline "1024x768"x70.0 75.00 1024 1048 1184 1328 768 771 777 806 +hsync +vsync (56.5 kHz)
    (**) fglrx(0): Default mode "1024x768": 65.0 MHz (scaled from 0.0 MHz), 48.4 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 +hsync +vsync (48.4 kHz)
    (**) fglrx(0): Default mode "1024x768": 44.9 MHz (scaled from 0.0 MHz), 35.5 kHz, 43.0 Hz (I)
    (II) fglrx(0): Modeline "1024x768"x43.0 44.90 1024 1032 1208 1264 768 768 772 817 interlace (35.5 kHz)
    (**) fglrx(0): *Mode "800x600": 56.2 MHz (scaled from 0.0 MHz), 53.7 kHz, 85.0 Hz
    (II) fglrx(0): Modeline "800x600"x85.0 56.25 800 832 896 1048 600 601 604 631 (53.7 kHz)
    (**) fglrx(0): Default mode "800x600": 49.5 MHz (scaled from 0.0 MHz), 46.9 kHz, 75.0 Hz
    (II) fglrx(0): Modeline "800x600"x75.0 49.50 800 816 896 1056 600 601 604 625 (46.9 kHz)
    (**) fglrx(0): Default mode "800x600": 50.0 MHz (scaled from 0.0 MHz), 48.1 kHz, 72.0 Hz
    (II) fglrx(0): Modeline "800x600"x72.0 50.00 800 856 976 1040 600 637 643 666 (48.1 kHz)
    (**) fglrx(0): Default mode "800x600": 45.5 MHz (scaled from 0.0 MHz), 43.8 kHz, 70.0 Hz
    (II) fglrx(0): Modeline "800x600"x70.0 45.50 800 840 920 1040 600 601 604 625 +hsync (43.8 kHz)
    (**) fglrx(0): Default mode "800x600": 40.0 MHz (scaled from 0.0 MHz), 37.9 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "800x600"x60.0 40.00 800 840 968 1056 600 601 605 628 (37.9 kHz)
    (**) fglrx(0): Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.0 Hz
    (II) fglrx(0): Modeline "800x600"x56.0 36.00 800 824 896 1024 600 601 603 625 (35.2 kHz)
    (**) fglrx(0): Default mode "800x600": 68.2 MHz (scaled from 0.0 MHz), 63.6 kHz, 100.0 Hz
    (II) fglrx(0): Modeline "800x600"x100.0 68.17 800 848 936 1072 600 601 604 636 +hsync (63.6 kHz)
    (**) fglrx(0): Default mode "800x600": 60.1 MHz (scaled from 0.0 MHz), 56.9 kHz, 90.0 Hz
    (II) fglrx(0): Modeline "800x600"x90.0 60.06 800 840 928 1056 600 601 604 632 +hsync (56.9 kHz)
    (**) fglrx(0): *Mode "720x480": 26.7 MHz (scaled from 0.0 MHz), 29.8 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "720x480"x60.0 26.71 720 736 808 896 480 481 484 497 +hsync (29.8 kHz)
    (**) fglrx(0): *Mode "640x480": 36.0 MHz (scaled from 0.0 MHz), 43.3 kHz, 85.0 Hz
    (II) fglrx(0): Modeline "640x480"x85.0 36.00 640 696 752 832 480 481 484 509 +hsync +vsync (43.3 kHz)
    (**) fglrx(0): Default mode "640x480": 31.5 MHz (scaled from 0.0 MHz), 37.5 kHz, 75.0 Hz
    (II) fglrx(0): Modeline "640x480"x75.0 31.50 640 656 720 840 480 481 484 500 +hsync +vsync (37.5 kHz)
    (**) fglrx(0): Default mode "640x480": 31.5 MHz (scaled from 0.0 MHz), 37.9 kHz, 72.0 Hz
    (II) fglrx(0): Modeline "640x480"x72.0 31.50 640 664 704 832 480 489 492 520 +hsync +vsync (37.9 kHz)
    (**) fglrx(0): Default mode "640x480": 25.2 MHz (scaled from 0.0 MHz), 31.5 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "640x480"x60.0 25.18 640 656 752 800 480 490 492 525 +hsync +vsync (31.5 kHz)
    (**) fglrx(0): Default mode "640x480": 52.4 MHz (scaled from 0.0 MHz), 61.8 kHz, 120.0 Hz
    (II) fglrx(0): Modeline "640x480"x120.0 52.40 640 680 744 848 480 481 484 515 +hsync (61.8 kHz)
    (**) fglrx(0): Default mode "640x480": 43.2 MHz (scaled from 0.0 MHz), 50.9 kHz, 100.0 Hz
    (II) fglrx(0): Modeline "640x480"x100.0 43.16 640 680 744 848 480 481 484 509 +hsync (50.9 kHz)
    (**) fglrx(0): Default mode "640x480": 37.9 MHz (scaled from 0.0 MHz), 45.5 kHz, 90.0 Hz
    (II) fglrx(0): Modeline "640x480"x90.0 37.89 640 672 736 832 480 481 484 506 +hsync (45.5 kHz)
    (**) fglrx(0): Default mode "640x400": 28.1 MHz (scaled from 0.0 MHz), 33.7 kHz, 75.0 Hz
    (II) fglrx(0): Modeline "640x400"x75.0 28.07 640 696 736 832 400 413 415 449 (33.7 kHz)
    (**) fglrx(0): Default mode "640x400": 24.9 MHz (scaled from 0.0 MHz), 31.5 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "640x400"x60.0 24.92 640 664 760 792 400 460 462 525 (31.5 kHz)
    (**) fglrx(0): Default mode "512x384": 19.7 MHz (scaled from 0.0 MHz), 31.1 kHz, 75.0 Hz
    (II) fglrx(0): Modeline "512x384"x75.0 19.68 512 528 576 632 384 384 385 416 (31.1 kHz)
    (**) fglrx(0): Default mode "512x384": 19.8 MHz (scaled from 0.0 MHz), 29.8 kHz, 60.0 Hz
    (II) fglrx(0): Modeline "512x384"x60.0 19.81 512 544 624 664 384 451 453 497 (29.8 kHz)
    (**) fglrx(0): Default mode "400x300": 24.8 MHz (scaled from 0.0 MHz), 46.9 kHz, 75.0 Hz (D)
    (II) fglrx(0): Modeline "400x300"x75.0 24.75 400 408 448 528 300 601 602 625 doublescan (46.9 kHz)
    (**) fglrx(0): Default mode "400x300": 22.3 MHz (scaled from 0.0 MHz), 45.0 kHz, 60.0 Hz (D)
    (II) fglrx(0): Modeline "400x300"x60.0 22.33 400 416 480 496 300 601 605 742 doublescan (45.0 kHz)
    (**) fglrx(0): Default mode "320x240": 15.8 MHz (scaled from 0.0 MHz), 37.9 kHz, 75.0 Hz (D)
    (II) fglrx(0): Modeline "320x240"x75.0 15.75 320 328 360 416 240 481 482 501 doublescan (37.9 kHz)
    (**) fglrx(0): Default mode "320x240": 12.6 MHz (scaled from 0.0 MHz), 31.5 kHz, 60.0 Hz (D)
    (II) fglrx(0): Modeline "320x240"x60.0 12.59 320 328 376 400 240 491 493 525 doublescan (31.5 kHz)
    (**) fglrx(0): Default mode "320x200": 13.1 MHz (scaled from 0.0 MHz), 31.5 kHz, 75.0 Hz (D)
    (II) fglrx(0): Modeline "320x200"x75.0 13.10 320 352 368 416 200 406 407 417 doublescan (31.5 kHz)
    (**) fglrx(0): Default mode "320x200": 12.6 MHz (scaled from 0.0 MHz), 31.5 kHz, 60.0 Hz (D)
    (II) fglrx(0): Modeline "320x200"x60.0 12.59 320 336 384 400 200 457 459 524 doublescan (31.5 kHz)
    (II) Loading sub module "fb"
    (II) LoadModule: "fb"
    (II) Loading /usr/lib/xorg/modules//libfb.so
    (II) Module fb: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.0.0
    ABI class: X.Org ANSI C Emulation, version 0.3
    (II) Loading sub module "ramdac"
    (II) LoadModule: "ramdac"(II) Module "ramdac" already built-in
    (==) fglrx(0): NoAccel = NO
    (II) Loading sub module "xaa"
    (II) LoadModule: "xaa"
    (II) Loading /usr/lib/xorg/modules//libxaa.so
    (II) Module xaa: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.2.0
    ABI class: X.Org Video Driver, version 2.0
    (==) fglrx(0): NoDRI = NO
    (II) Loading sub module "fglrxdrm"
    (II) LoadModule: "fglrxdrm"
    (II) Reloading /usr/lib/xorg/modules/linux//libfglrxdrm.so
    (==) fglrx(0): Capabilities: 0x00000000
    (==) fglrx(0): CapabilitiesEx: 0x00000000
    (==) fglrx(0): cpuFlags: 0x4000001f
    (==) fglrx(0): OpenGL ClientDriverName: "fglrx_dri.so"
    (**) fglrx(0): ATI GART size: 255 MB
    (II) fglrx(0): [pcie] 261120 kB allocated
    (II) fglrx(0): [drm] DRM buffer queue setup: nbufs = 100 bufsize = 65536
    (==) fglrx(0): UseFastTLS=0
    (==) fglrx(0): BlockSignalsOnLock=1
    (--) Depth 24 pixmap format is 32 bpp
    (II) do I need RAC? No, I don't.
    (II) resource ranges after preInit:
    [0] 0 0 0xfdef0000 - 0xfdefffff (0x10000) MX[b]
    [1] 0 0 0xd0000000 - 0xdfffffff (0x10000000) MX[b]
    [2] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
    [3] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [4] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [5] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [6] -1 0 0xfdfff000 - 0xfdfff7ff (0x800) MX[b]
    [7] -1 0 0xfe02a000 - 0xfe02afff (0x1000) MX[b]
    [8] -1 0 0xfe02b000 - 0xfe02bfff (0x1000) MX[b]
    [9] -1 0 0xfe02c000 - 0xfe02cfff (0x1000) MX[b]
    [10] -1 0 0xfeb00000 - 0xfeb000ff (0x100) MX[b]
    [11] -1 0 0xfe02f000 - 0xfe02ffff (0x1000) MX[b]
    [12] -1 0 0xfdec0000 - 0xfdedffff (0x20000) MX[b](B)
    [13] -1 0 0xfdef0000 - 0xfdefffff (0x10000) MX[b](B)
    [14] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[b](B)
    [15] -1 0 0xfdee0000 - 0xfdeeffff (0x10000) MX[b](B)
    [16] 0 0 0x000a0000 - 0x000affff (0x10000) MS[b](OprU)
    [17] 0 0 0x000b0000 - 0x000b7fff (0x8000) MS[b](OprU)
    [18] 0 0 0x000b8000 - 0x000bffff (0x8000) MS[b](OprU)
    [19] 0 0 0x00009c00 - 0x00009cff (0x100) IX[b]
    [20] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [21] -1 0 0x00000000 - 0x000000ff (0x100) IX[b]
    [22] -1 0 0x0000ac00 - 0x0000ac7f (0x80) IX[b]
    [23] -1 0 0x0000bc00 - 0x0000bc07 (0x8) IX[b]
    [24] -1 0 0x0000c000 - 0x0000c00f (0x10) IX[b]
    [25] -1 0 0x00000b60 - 0x00000b63 (0x4) IX[b]
    [26] -1 0 0x00000960 - 0x00000967 (0x8) IX[b]
    [27] -1 0 0x00000be0 - 0x00000be3 (0x4) IX[b]
    [28] -1 0 0x000009e0 - 0x000009e7 (0x8) IX[b]
    [29] -1 0 0x0000d400 - 0x0000d40f (0x10) IX[b]
    [30] -1 0 0x00000b70 - 0x00000b73 (0x4) IX[b]
    [31] -1 0 0x00000970 - 0x00000977 (0x8) IX[b]
    [32] -1 0 0x00000bf0 - 0x00000bf3 (0x4) IX[b]
    [33] -1 0 0x000009f0 - 0x000009f7 (0x8) IX[b]
    [34] -1 0 0x0000e800 - 0x0000e80f (0x10) IX[b]
    [35] -1 0 0x00004c40 - 0x00004c7f (0x40) IX[b]
    [36] -1 0 0x00004c00 - 0x00004c3f (0x40) IX[b]
    [37] -1 0 0x0000fc00 - 0x0000fc1f (0x20) IX[b]
    [38] -1 0 0x00009c00 - 0x00009cff (0x100) IX[b](B)
    [39] 0 0 0x000003b0 - 0x000003bb (0xc) IS[b](OprU)
    [40] 0 0 0x000003c0 - 0x000003df (0x20) IS[b](OprU)
    (II) fglrx(0): driver needs X.org 7.1.x.y with x.y >= 0.0
    (II) fglrx(0): detected X.org 7.1.2.0
    (II) Loading extension ATIFGLRXDRI
    (II) fglrx(0): doing DRIScreenInit
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 7, (OK)
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 7, (OK)
    drmOpenByBusid: Searching for BusID PCI:5:0:0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 7, (OK)
    drmOpenByBusid: drmOpenMinor returns 7
    drmOpenByBusid: drmGetBusid reports PCI:5:0:0
    (II) [drm] DRM interface version 1.0
    (II) [drm] DRM open master succeeded.
    (II) fglrx(0): [drm] Using the DRM lock SAREA also for drawables.
    (II) fglrx(0): [drm] framebuffer handle = 0xac000
    (II) fglrx(0): [drm] added 1 reserved context for kernel
    (II) fglrx(0): X context handle = 0x1
    (II) fglrx(0): DRIScreenInit done
    (II) fglrx(0): Kernel Module Version Information:
    (II) fglrx(0): Name: fglrx
    (II) fglrx(0): Version: 8.49.7
    (II) fglrx(0): Date: May 12 2008
    (II) fglrx(0): Desc: ATI FireGL DRM kernel module
    (WW) fglrx(0): Kernel Module version does *not* match driver.
    (EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work
    (II) fglrx(0): [drm] removed 1 reserved context for kernel
    (II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xab000 at 0xb7653000
    (II) fglrx(0): [drm] Closed DRM master.
    (WW) fglrx(0): ***********************************************
    (WW) fglrx(0): * DRI initialization failed! *
    (WW) fglrx(0): * (maybe driver kernel module missing or bad) *
    (WW) fglrx(0): * 2D acceleraton available (MMIO) *
    (WW) fglrx(0): * no 3D acceleration available *
    (WW) fglrx(0): ********************************************* *
    (II) fglrx(0): FBADPhys: 0xc0000000 FBMappedSize: 0x10000000
    (==) fglrx(0): Write-combining range (0xd0000000,0x10000000)
    (II) fglrx(0): FBMM initialized for area (0,0)-(1280,8191)
    (II) fglrx(0): FBMM auto alloc for area (0,0)-(1280,1024) (front color buffer - assumption)
    (II) fglrx(0): Largest offscreen area available: 1280 x 7167
    (==) fglrx(0): Backing store disabled
    (II) Loading extension FGLRXEXTENSION
    (II) Loading extension ATITVOUT
    (**) fglrx(0): DPMS enabled
    (WW) fglrx(0): Textured Video not supported without DRI enabled.
    (II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
    Screen to screen bit blits
    Solid filled rectangles
    Solid Horizontal and Vertical Lines
    Setting up tile and stipple cache:
    32 128x128 slots
    32 256x256 slots
    16 512x512 slots
    (II) fglrx(0): Acceleration enabled
    (II) LoadModule: "amdxmm"
    (II) Loading /usr/lib/xorg/modules//amdxmm.so
    (II) Module amdxmm: vendor="X.Org Foundation"
    compiled for 7.1.0, module version = 1.0.0
    ABI class: X.Org Server Extension, version 0.3
    (EE) fglrx(0): XMM failed to open CMMQS connection.
    (II) fglrx(0): XMM failed to initialize!
    (WW) fglrx(0): Option "VendorName" is not used
    (WW) fglrx(0): Option "ModelName" is not used
    (II) fglrx(0): Direct rendering disabled
    (==) fglrx(0): Silken mouse enabled
    (==) fglrx(0): Using hardware cursor
    (==) RandR enabled
    (II) Initializing built-in extension MIT-SHM
    (II) Initializing built-in extension XInputExtension
    (II) Initializing built-in extension XTEST
    (II) Initializing built-in extension XKEYBOARD
    (II) Initializing built-in extension XC-APPGROUP
    (II) Initializing built-in extension XAccessControlExtension
    (II) Initializing built-in extension SECURITY
    (II) Initializing built-in extension XINERAMA
    (II) Initializing built-in extension XFIXES
    (II) Initializing built-in extension XFree86-Bigfont
    (II) Initializing built-in extension RENDER
    (II) Initializing built-in extension RANDR
    (II) Initializing built-in extension COMPOSITE
    (II) Initializing built-in extension DAMAGE
    (II) Initializing built-in extension XEVIE
    (II) AIGLX: Screen 0 is not DRI capable
    (II) Loading sub module "GLcore"
    (II) LoadModule: "GLcore"
    (II) Loading /usr/lib/xorg/modules/extensions//libGLcore.so
    (II) Module GLcore: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.0.0
    ABI class: X.Org Server Extension, version 0.3
    (II) GLX: Initialized MESA-PROXY GL provider for screen 0
    (**) Option "CoreKeyboard"
    (**) Keyboard0: always reports core events
    (**) Option "Protocol" "standard"
    (**) Keyboard0: Protocol: standard
    (**) Option "AutoRepeat" "500 30"
    (**) Option "XkbRules" "xorg"
    (**) Keyboard0: XkbRules: "xorg"
    (**) Option "XkbModel" "abnt2"
    (**) Keyboard0: XkbModel: "abnt2"
    (**) Option "XkbLayout" "br"
    (**) Keyboard0: XkbLayout: "br"
    (**) Option "CustomKeycodes" "off"
    (**) Keyboard0: CustomKeycodes disabled
    (**) Option "Protocol" "auto"
    (**) PS/2 Mouse: Device: "/dev/psaux"
    (**) PS/2 Mouse: Protocol: "auto"
    (**) Option "SendCoreEvents" "true"
    (**) Option "CorePointer"
    (**) PS/2 Mouse: always reports core events
    (**) Option "Device" "/dev/psaux"
    (**) Option "Emulate3Buttons" "true"
    (**) Option "Emulate3Timeout" "70"
    (**) PS/2 Mouse: Emulate3Buttons, Emulate3Timeout: 70
    (**) Option "ZAxisMapping" "4 5"
    (**) PS/2 Mouse: ZAxisMapping: buttons 4 and 5
    (**) PS/2 Mouse: Buttons: 9
    (**) PS/2 Mouse: Sensitivity: 1
    (II) evaluating device (PS/2 Mouse)
    (II) XINPUT: Adding extended input device "PS/2 Mouse" (type: MOUSE)
    (II) evaluating device (Keyboard0)
    (II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
    (--) PS/2 Mouse: PnP-detected protocol: "ExplorerPS/2"
    (II) PS/2 Mouse: ps2EnableDataReporting: succeeded
    Last edited by DarkForte (2008-06-23 22:40:05)

    From your Xorg.0.log:
    (II) fglrx(0): DRIScreenInit done
    (II) fglrx(0): Kernel Module Version Information:
    (II) fglrx(0): Name: fglrx
    (II) fglrx(0): Version: 8.49.7
    (II) fglrx(0): Date: May 12 2008
    (II) fglrx(0): Desc: ATI FireGL DRM kernel module
    (WW) fglrx(0): Kernel Module version does *not* match driver.
    (EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work
    You have to quit X, then rmmod and modprobe the kernel module - you're still using the old one.  (a reboot would technically fix it too)
    # rmmod fglrx
    # modprobe fglrx
    # dmesg | tail
    The dmesg output should say you've successfully loaded the 8.501 driver.

  • Date type parameters do not work package procedure

    a cordial greeting to the whole community, in advance thank you very much for your precious time
    a general way I have the following, a package in which I have a main procedure which I recible three parameters: a start date, a final, and a number of client
    to use the dates I enter as parameter to query yields no records, but if I assign the date internally in the procedure, if it sheds records, the strange thing is that both the data and the parameters that are identical internally assigned even in its length and I checked, the truth and I stay out of ideas thank you very much for your time attaching the code
    for now I'm just using the second query forget the first
    ------call to procedure-----
    DECLARE
    errcode VARCHAR2(200);
    errbuf VARCHAR2(200);
    BEGIN
    xxxxx.pkg.xxxinitial_end(errcode  ,errbuf
                                                        ,'2013/08/19 00:00:00'
                                                        ,'2013/08/23 00:00:00','456456456546');
    END;
    -----------------------------------------------------------------procedure---------------------------------------------------------------------
    PROCEDURExxxinitial_end (ERRCODE OUT VARCHAR2
      , ERRBUFF OUT VARCHAR2
      , p_initial_date IN VARCHAR2
      , p_end_date IN VARCHAR2
      , customer IN VARCHAR2)IS
    l_encoding_line VARCHAR2(240);
    cur_without_customer SYS_REFCURSOR;
    cur_with_customer SYS_REFCURSOR;
      initial_date DATE;
      end_date DATE;
      initial_date2 DATE;
      end_date2 DATE;
    BEGIN
    l_encoding_line := '<?xml version="1.0" encoding=' || '"iso-8859-1"' ||
                       ' ?>' || chr(10) || '<XXOCS_TOTAL_VENTAS_SINEXP>';
      initial_date := to_date(p_initial_date, 'YYYY/MM/DD HH24:MI:SS');-----------------input parameters  NOT WORKING
      end_date := to_date(p_end_date, 'YYYY/MM/DD HH24:MI:SS');-------------------input parameters
      initial_date2:=to_date('2013/08/19 00:00:00', 'YYYY/MM/DD HH24:MI:SS');---------------------default values
      end_date2:=to_date('2013/08/23 00:00:00', 'YYYY/MM/DD HH24:MI:SS');---------------------default values        WORKING FINE
      IF customer IS NULL THEN
       -- OPEN cur_without_customer;
        DBMS_OUTPUT.PUT_LINE('se ejecuto el primero');
        -------------------------cursor  -----------------------------------
        OPEN cur_without_customer FOR
            SELECT rct.customer_trx_id
                  ,rctl.customer_trx_line_id
                  ,hp.party_name ---cliente
                  ,hca.account_number ----N° Cliente
                  ,rctl.line_number -----item
                  ,rctt.name---descripcion transaccion
                  ,rct.trx_number -----numero
                  ,rctt.type ------tipo de transaccion
                  ,hp.party_id--control solamente
                  ,rct.trx_date------Fecha de emisión Comprobante de Venta
                  ,rct.attribute1   ---No. de autorización del Comprobante de Venta
                  ,mp.attribute9||rct.trx_number N_Comprobante---No. de Comprobante de Venta
                  ,rct.attribute4-----Unidad Estratégica de Negocio
                  ,mp.attribute9----  N° de establecimiento
                  ,rctl.description-----Descripción (Tipo de Combustible)
                  ,rctl.quantity_invoiced---Cantidad Vendida en galones
                  ,rctl.unit_selling_price---Precio de venta unitario
                  --,rctl.taxable_amount-------Valor Base Imponible --restriccion
                  --,rctl.extended_amount---valor iva 12%
                 -- ,NVL(importe_12(rctl.customer_trx_line_id,rct.customer_trx_id),'N/A')
              FROM ra_customer_trx_all         rct,
                   ra_customer_trx_lines_all   rctl,
                   hz_cust_accounts            hca,
                   hz_parties                  hp,
                   ra_cust_trx_types_all       rctt,
                   mtl_parameters              mp
                  -- mtl_system_items_b          msi,
                 --  zx_lines                    zl
                   --ra_batch_sources_all  rbs
             WHERE
               --rct.trx_date BETWEEN initial_date  AND end_date --parametros de fecha
               rct.trx_date BETWEEN to_date('2013/08/19 00:00:00', 'YYYY/MM/DD HH24:MI:SS')/*initial_date*/ AND to_date('2013/08/23 00:00:00', 'YYYY/MM/DD HH24:MI:SS')/*end_date*/
               AND rct.sold_to_customer_id = hca.cust_account_id
               AND hca.party_id = hp.party_id
               AND rct.customer_trx_id=rctl.customer_trx_id
               --AND rctl.inventory_item_id=msi.inventory_item_id
               AND mp.organization_id=rctl.warehouse_id
               AND rct.cust_trx_type_id = rctt.cust_trx_type_id;
         print_output(fnd_file.output, l_encoding_line);
        get_xml(cur_without_customer, 'G_REGISTER', 'CABECERA', ERRCODE);                         
      IF ERRCODE = 1 THEN
        ERRBUFF := 'El reporte no arrojo datos para los parametros ingresados';
        ERRCODE := 2;
        RETURN;
      ELSIF ERRCODE = 2 THEN
        ERRBUFF := SQLERRM;
        RETURN;
      END IF;
      print_output(fnd_file.output, '</XXOCS_TOTAL_VENTAS_SINEXP>');
         ELSE
         --  OPEN cur_with_customer;
           DBMS_OUTPUT.PUT_LINE('se ejecuto el segundo');
           -----------------------cursor 2---------------------------
           DBMS_OUTPUT.PUT_LINE('customer ' || customer);
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS              '||length(p_initial_date));
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS              '||length(p_end_date));
           DBMS_OUTPUT.PUT_LINE('customer ' || customer);
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS   quemados   '|| length(initial_date2));
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS   quemados   '|| length(end_date2));
           DBMS_OUTPUT.PUT_LINE('customer ' || customer);
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS convertidso  '|| length(initial_date));
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS convertidos  '|| length(end_date));
           OPEN  cur_with_customer FOR
          SELECT     rct.customer_trx_id
                    ,rctl.customer_trx_line_id
                    ,hp.party_name ---cliente
                    ,hca.account_number ----N° Cliente
                    ,rctl.line_number-----item
                    ,rctt.name---descripcion transaccion
                    ,rct.trx_number -----numero
                    ,rctt.type ------tipo de transaccion
                    ,hp.party_id---control solamente
                    ,rct.trx_date------Fecha de emisión Comprobante de Venta
                    ,rct.attribute1   ---No. de autorización del Comprobante de Venta
                    ,mp.attribute9||rct.trx_number N_Comprobante--No. de Comprobante de Venta
                    ,rct.attribute4------ Unidad Estratégica de Negocio
                    ,mp.attribute9---------N° de establecimiento
                    ,rctl.description---------Descripción (Tipo de Combustible)
                    ,rctl.quantity_invoiced----Cantidad Vendida en galones
                    ,rctl.unit_selling_price ---Precio de venta unitario
                   -- ,rctl.taxable_amount-------Valor Base Imponible --restriccion
                   -- ,rctl.extended_amount---valor iva 12%
              -- ,NVL(importe_12(rctl.customer_trx_line_id,rct.customer_trx_id),'N/A')
                FROM ra_customer_trx_all           rct,
                     ra_customer_trx_lines_all     rctl,
                     hz_cust_accounts              hca,
                     hz_parties                    hp,
                     ra_cust_trx_types_all         rctt,
                     mtl_parameters                mp
                    -- mtl_system_items_b            msi,
                     --zx_lines                      zl
                 WHERE hca.account_number=customer
                  AND  hca.party_id=hp.party_id
                  AND  hca.cust_account_id=rct.sold_to_customer_id
                  AND  rct.customer_trx_id=rctl.customer_trx_id
                 -- AND  rctl.inventory_item_id=msi.inventory_item_id
                  AND  mp.organization_id=rctl.warehouse_id
                  AND  rct.cust_trx_type_id = rctt.cust_trx_type_id
                  AND rownum = 1
            AND rct.trx_date BETWEEN initial_date AND end_date;<------------when I assign these parameters( initial_date AND end_date  )--are the insert by parameter  initial_date2 AND end_date2 defualt
           DBMS_OUTPUT.PUT_LINE('customer ' || customer);
           DBMS_OUTPUT.PUT_LINE('fe inicial ' || initial_date);
           DBMS_OUTPUT.PUT_LINE('fe final ' ||end_date);
           print_output(fnd_file.output, l_encoding_line);
           get_xml(cur_with_customer, 'G_REGISTER', 'CABECERA', ERRCODE);                         
      IF ERRCODE = 1 THEN
        ERRBUFF := 'El reporte no arrojo datos para los parametros ingresados';
        ERRCODE := 2;
        RETURN;
      ELSIF ERRCODE = 2 THEN
        ERRBUFF := SQLERRM;
        RETURN;
      END IF;
      print_output(fnd_file.output, '</XXOCS_TOTAL_VENTAS_SINEXP>');
        END IF;
        EXCEPTION
      WHEN OTHERS THEN
        print_output(fnd_file.log, 'Error Ventas sin Exportaciones:' || SQLERRM);
        ERRCODE := 2;
        ERRBUFF := SQLERRM;
      -- Initialization
    END  xxxinitial_end;

    Welcome.  As a note, this question has nothing to do with PL/SQL XML programming and everything to do with SQL and PL/SQL
    That said, the simple test case I setup, because I don't have all your tables, works just fine.
    declare
       l_errcode  VARCHAR2(300);
       l_errbuff  VARCHAR2(300);
       PROCEDURE xxxinitial_end (ERRCODE OUT VARCHAR2
         , ERRBUFF OUT VARCHAR2
         , p_initial_date IN VARCHAR2  -- why not a date?
         , p_end_date IN VARCHAR2      -- why not a date?
         , customer IN VARCHAR2)
       IS
         initial_date DATE;
         end_date DATE;
         l_value  VARCHAR2(10);
       BEGIN
         initial_date := to_date(p_initial_date, 'YYYY/MM/DD HH24:MI:SS');
         end_date := to_date(p_end_date, 'YYYY/MM/DD HH24:MI:SS');
         -- Not trapping the No Data Found on purpose
         SELECT 'hit'
           INTO l_value
           FROM dual
          WHERE SYSDATE BETWEEN initial_date AND end_date;
       END  xxxinitial_end;
    begin
      -- Test statements here
      xxxinitial_end(l_errcode, l_errbuff
                     ,'2013/08/19 00:00:00'
                     ,'2013/10/19 00:00:00'
                     ,null);
    end;
    As a comment above says, if you are dealing with dates, why not use a DATE parameter in the procedure and avoid the conversion in your code.
    Also, you can simplify your code a bit by using a third sys_refcursor and setting one of the opened cursors to it.  This allows you to pull out the common logic following the OPEN and only have one copy of it.
    PROCEDURE xxxinitial_end (ERRCODE OUT VARCHAR2
      , ERRBUFF OUT VARCHAR2
      , p_initial_date IN VARCHAR2  -- why not a date?
      , p_end_date IN VARCHAR2      -- why not a date?
      , customer IN VARCHAR2)
    IS
      l_encoding_line VARCHAR2(240);
      cur_without_customer SYS_REFCURSOR;
      cur_with_customer SYS_REFCURSOR;
      cur_comm          SYS_REFCURSOR;
      initial_date DATE;
      end_date DATE;
    BEGIN
      l_encoding_line := '<?xml version="1.0" encoding=' || '"iso-8859-1"' ||
                         ' ?>' || chr(10) || '<XXOCS_TOTAL_VENTAS_SINEXP>';
      initial_date := to_date(p_initial_date, 'YYYY/MM/DD HH24:MI:SS');-----------------input parameters  NOT WORKING
      end_date := to_date(p_end_date, 'YYYY/MM/DD HH24:MI:SS');-------------------input parameters
      IF customer IS NULL THEN
        -------------------------cursor  -----------------------------------
        OPEN cur_without_customer FOR
            SELECT rct.customer_trx_id
                  ,rctl.customer_trx_line_id
                  ,hp.party_name ---cliente
                  ,hca.account_number ----N° Cliente
                  ,rctl.line_number -----item
                  ,rctt.name---descripcion transaccion
                  ,rct.trx_number -----numero
                  ,rctt.type ------tipo de transaccion
                  ,hp.party_id--control solamente
                  ,rct.trx_date------Fecha de emisión Comprobante de Venta
                  ,rct.attribute1   ---No. de autorización del Comprobante de Venta
                  ,mp.attribute9||rct.trx_number N_Comprobante---No. de Comprobante de Venta
                  ,rct.attribute4-----Unidad Estratégica de Negocio
                  ,mp.attribute9----  N° de establecimiento
                  ,rctl.description-----Descripción (Tipo de Combustible)
                  ,rctl.quantity_invoiced---Cantidad Vendida en galones
                  ,rctl.unit_selling_price---Precio de venta unitario
                  --,rctl.taxable_amount-------Valor Base Imponible --restriccion
                  --,rctl.extended_amount---valor iva 12%
                 -- ,NVL(importe_12(rctl.customer_trx_line_id,rct.customer_trx_id),'N/A')
              FROM ra_customer_trx_all         rct,
                   ra_customer_trx_lines_all   rctl,
                   hz_cust_accounts            hca,
                   hz_parties                  hp,
                   ra_cust_trx_types_all       rctt,
                   mtl_parameters              mp
                  -- mtl_system_items_b          msi,
                 --  zx_lines                    zl
                   --ra_batch_sources_all  rbs
             WHERE
               --rct.trx_date BETWEEN initial_date  AND end_date --parametros de fecha
               rct.trx_date BETWEEN to_date('2013/08/19 00:00:00', 'YYYY/MM/DD HH24:MI:SS')/*initial_date*/ AND to_date('2013/08/23 00:00:00', 'YYYY/MM/DD HH24:MI:SS')/*end_date*/
               AND rct.sold_to_customer_id = hca.cust_account_id
               AND hca.party_id = hp.party_id
               AND rct.customer_trx_id=rctl.customer_trx_id
               --AND rctl.inventory_item_id=msi.inventory_item_id
               AND mp.organization_id=rctl.warehouse_id
               AND rct.cust_trx_type_id = rctt.cust_trx_type_id;
           cur_comm := cur_without_customer;
         ELSE
           -----------------------cursor 2---------------------------
           OPEN  cur_with_customer FOR
          SELECT     rct.customer_trx_id
                    ,rctl.customer_trx_line_id
                    ,hp.party_name ---cliente
                    ,hca.account_number ----N° Cliente
                    ,rctl.line_number-----item
                    ,rctt.name---descripcion transaccion
                    ,rct.trx_number -----numero
                    ,rctt.type ------tipo de transaccion
                    ,hp.party_id---control solamente
                    ,rct.trx_date------Fecha de emisión Comprobante de Venta
                    ,rct.attribute1   ---No. de autorización del Comprobante de Venta
                    ,mp.attribute9||rct.trx_number N_Comprobante--No. de Comprobante de Venta
                    ,rct.attribute4------ Unidad Estratégica de Negocio
                    ,mp.attribute9---------N° de establecimiento
                    ,rctl.description---------Descripción (Tipo de Combustible)
                    ,rctl.quantity_invoiced----Cantidad Vendida en galones
                    ,rctl.unit_selling_price ---Precio de venta unitario
                   -- ,rctl.taxable_amount-------Valor Base Imponible --restriccion
                   -- ,rctl.extended_amount---valor iva 12%
              -- ,NVL(importe_12(rctl.customer_trx_line_id,rct.customer_trx_id),'N/A')
                FROM ra_customer_trx_all           rct,
                     ra_customer_trx_lines_all     rctl,
                     hz_cust_accounts              hca,
                     hz_parties                    hp,
                     ra_cust_trx_types_all         rctt,
                     mtl_parameters                mp
                    -- mtl_system_items_b            msi,
                     --zx_lines                      zl
                 WHERE hca.account_number=customer
                  AND  hca.party_id=hp.party_id
                  AND  hca.cust_account_id=rct.sold_to_customer_id
                  AND  rct.customer_trx_id=rctl.customer_trx_id
                 -- AND  rctl.inventory_item_id=msi.inventory_item_id
                  AND  mp.organization_id=rctl.warehouse_id
                  AND  rct.cust_trx_type_id = rctt.cust_trx_type_id
                  AND rownum = 1
            AND rct.trx_date BETWEEN initial_date AND end_date;<------------when I assign these parameters( initial_date AND end_date  )--are the insert by parameter  initial_date2 AND end_date2 defualt
         cur_comm := cur_with_customer;
      END IF;
      print_output(fnd_file.output, l_encoding_line);
      get_xml(cur_comm, 'G_REGISTER', 'CABECERA', ERRCODE);
      CLOSE cur_comm;
      IF ERRCODE = 1 THEN
        ERRBUFF := 'El reporte no arrojo datos para los parametros ingresados';
        ERRCODE := 2;
        RETURN;
      ELSIF ERRCODE = 2 THEN
        ERRBUFF := SQLERRM;
        RETURN;
      END IF;
    EXCEPTION
      WHEN OTHERS THEN
        print_output(fnd_file.log, 'Error Ventas sin Exportaciones:' || SQLERRM);
        ERRCODE := 2;
        ERRBUFF := SQLERRM;
      -- Initialization
    END  xxxinitial_end;

  • Logical Standby Does not work

    Hi,
    I'm not sure if anyone is using the logical standby database because it appears to me to be complete rubbish. The apply of redo data just does not appear to work. for example I have this table:
    create table test29(
    BP_ID NUMBER(10) NOT NULL,
    BP_K_ID NUMBER(10) NOT NULL,
    BP_TYP CHAR(2) NOT NULL,
    BP_U_ID NUMBER(10),
    BP_ACTIVE DATE NOT NULL,
    BP_USED NUMBER(6) NOT NULL,
    BP_STATUS CHAR(1) NOT NULL,
    BP_LASTUPDATE DATE NOT NULL
    and insert this data:
    insert into test29
    select 10643,291904,'O ',1,TO_DATE('01/05/2003 00:44:18', 'MM/DD/YYYY HH24:MI:SS'),0,'A',TO_DATE('01/06/2004 20:13:08', 'MM/DD/YYYY HH24:MI:SS') from dual     
    When this information is transfered to the logical standby and it attempts to read it i get a ORA-26689: column datatype mismatch in LCR. But wait! If I change the name of column 6 (BP_PUNKTE) to say (BP_AAAAA) and try again it works!!! The logical standby fails on many tables just because of the name (updates, inserts anything)...did anyone at oracle test this? Is anyone using the logical standby have any ideas how and if I could ever get this working.
    Using Oracle 9.2.0.4. on Redhat 2.1.
    Thanks!
    Steve.     

    unfortunately not. the oracle licence was purchased before i arrived and when I attempted to get a support contact they want the money since we purchased the licence 3 years ago. 3 years of cash for free! why should I pay for their bugs anyway, when we buy this expensive software it should work. when I buy a new car from ford and radio does not work I don't have to pay ford to fix it. rip-off!

  • HTML not working in PL/SQL block..Help me ASAP

    declare
    l_col VARCHAR2(30) :=to_number(to_char(to_date('01-feb-2011','dd-mon-yyyy'),'dd'));
    CURSOR name_cur IS
      select name
          from   od_shift_schedule
          where   year=2011
          and    (month)=('Feb')
           and    decode(l_col,1,"01",2,"02",3,"03",4,"04",5,"05",6,"06",7,
                         "07",8,"08",9,"09",10,"10",11,"11",12,"12",13,"13",14,"14",15,"15",16,"16",17,"17",18,"18",19,"19",20,"20",
                         21,"21",22,"22",23,"23",24,"24",25,"25",26,"26",
                       27,"27",28,"28",29,"29",30,"30",31,"31")='W';
    BEGIN
      DELETE FROM nam;
      commit;
      FOR i IN name_cur
      LOOP
      dbms_output.put_line(i.name);
      htp.p('<b>Employee '||i.name||'  has been ticked.
       </b><br/>');
      EXECUTE IMMEDIATE 'insert into nam(name) values('''||i.name||''')';
      commit;
    END LOOP;
    end;Kindly help me with this
    If i'm wrong here kindly help me that how can i place a display message

    Re: HTML not working in PL/SQL block..Help me ASAP
    Using the community discussion forums for urgent issues is rude and a violation of the terms and conditions.
    http://www.oracle.com/html/terms.html
    >
    4. Use of Community Services
    Community Services are provided as a convenience to users and Oracle is not obligated to provide any technical support for, or participate in, Community Services. While Community Services may include information regarding Oracle products and services, including information from Oracle employees, they are not an official customer support channel for Oracle.
    You may use Community Services subject to the following: (a) Community Services may be used solely for your personal, informational, noncommercial purposes; (b) Content provided on or through Community Services may not be redistributed; and (c) personal data about other users may not be stored or collected except where expressly authorized by Oracle
    >
    Also please read the FAQ on how to ask questions.
    SQL and PL/SQL FAQ
    >
    2) Thread Subject line
    Give your thread a meaningful subject, not just "help please", "Query help" or "SQL". This is the SQL and PL/SQL forum. We know your question is going to be about those things, make it meaningful to the type of question so that people with the right sort of knowledge can pick it up and those without can ignore it. Never, EVER, mark your subject as "URGENT" or "ASAP"; this forum is manned by volunteers giving their own time to help and your question is never urgent or more important than their own work or than other people's questions. It may be urgent to you, but that's not forum members issue.

  • After update insert trigger is not working correctly

    Hello experts!
    I created an after insert/update trigger and what strikes me is that it is not working as expected.
    The trigger launches a procedure that does an insert in a second table if values in the triggered table ("my_table") are altered.
    The problem is that the values in my second table, which are correlated to "my_table", are not changed with the correct values right away. The trigger and insert trails behind!
    I have to update twice for the values to appear in my second table. Only then, the data of the first update will be inserted into the second table wheras the parent table ("my_table") will hold the latest values.
    Do you have an idea what could be wrong?
    create or replace
    trigger myscheme.after_update_insert_set_tw
    after update or insert
      on myscheme.my_table
      for each row
    declare
    begin
    pr_my_table_tw_sync_sk(:new.lng_falle, :new.int_fallennummer, :new.lng_schaedling, :new.objectid);
    end;Brgds,
    Seb

    Okay I'll give my best to explain what my procedure is supposed to do and what the table structure is like. I hope it'll help you to help me :-)
    My parent table is called fangzahlen and is created as follows:
    CREATE TABLE "BORKI"."FANGZAHLEN"
       (     "OBJECTID" NUMBER(10,0) NOT NULL ENABLE,
         "LNG_FALLE" NUMBER(10,0) NOT NULL ENABLE,
         "LNG_BEARBEITER" NUMBER(10,0),
         "DATE_DATUM" DATE DEFAULT SYSDATE NOT NULL ENABLE,
         "INT_FALLENNUMMER" NUMBER(4,0) NOT NULL ENABLE,
         "LNG_SCHAEDLING" NUMBER(2,0) NOT NULL ENABLE,
         "INT_VOLUMEN" NUMBER(10,0),
         "INT_ANZAHL" NUMBER(10,0),
         "INT_ANTEIL_JUNGKAEFER" NUMBER(3,0),
         "BOOL_KOEDERWECHSEL" NUMBER(1,0),
          CONSTRAINT "PK_FANGZAHLEN" PRIMARY KEY ("OBJECTID")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
          CONSTRAINT "CHECK_DATE_DATUM" CHECK ("DATE_DATUM" >= '1.apr.2006') ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS" ;It holds values such as:
    OBJECTID,"LNG_FALLE","LNG_BEARBEITER","DATE_DATUM","INT_FALLENNUMMER","LNG_SCHAEDLING","INT_VOLUMEN","INT_ANZAHL","INT_ANTEIL_JUNGKAEFER","BOOL_KOEDERWECHSEL"
    97548,"39","1081","08.04.10","1","2","","220","","0"
    97534,"39","1081","06.04.10","1","2","","100","","-1"My subtable is called tbl_test and created with:
    CREATE TABLE "BORKI"."TBL_TEST"
       (     "OBJECTID" NUMBER(12,0) NOT NULL ENABLE,
         "LNG_FALLE" NUMBER(10,0),
         "DATE_DATUM" DATE,
         "INT_FALLENNUMMER" NUMBER(4,0),
         "LNG_SCHAEDLING" NUMBER(2,0),
         "INT_VOLUMEN" NUMBER(10,0),
         "INT_ANZAHL" NUMBER(10,0),
         "LNG_FANGZAHLEN" NUMBER(12,0)
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS" ;Okay, this were the prerequisites!
    Let's concentrate on the trigger and procedure:
    The purpose of the procedure is to insert data into tbl_test once a record in "fangzahlen" has been updated or inserted.
    Tbl_test holds the mean average values (int_anzahl) for a number of collected items (lng_schaedling).
    I need to insert date values for the combination of each lng_fangzahlen, lng_schaedling, lng_falle and int_fallennr into tbl_test.
    If I had the following data in table fangzahlen:
    97548,"39","1081","08.04.10","1","2","","220","","0"
    97534,"39","1081","06.04.10","1","2","","100","","-1"the query in the insert section of my procedure returns the following data when run manually:
    97534     31.03.10     16,667     (null)     1     39     2
    97548     06.04.10     110     (null)     1     39     2Now, I need to generate the dates between the first and the second objectid (column 1 in the data above).
    Hence,
    97534     31.03.10     16,667     (null)     1     39     2
    97534     01.04.10     16,667     (null)     1     39     2
    97534     02.04.10     16,667     (null)     1     39     2
    97534     03.04.10     16,667     (null)     1     39     2
    97534     04.04.10     16,667     (null)     1     39     2
    97534     05.04.10     16,667     (null)     1     39     2
    97534     06.04.10     16,667     (null)     1     39     2
    97548     07.04.10     110     (null)     1     39     2
    97548     08.04.10     110     (null)     1     39     2
    My problem is thatthe values above will only appear after I do another update to table fangzahlen or insert a new record into it. Theoretically the result above should be inserted right away?
    Below is my procedure, which might give you a better idea of what I am trying to do! Please excuse this rather awkward explanation. If you need more info please don't hesitate to ask for it!
    create or replace
    Procedure "PR_FANGZAHLEN_TW_SYNC_SK"
        Pr_falle        Number,
        Pr_fallennummer Number,
        Pr_schaedling   Number,
        Pr_objectid     Number)
    Is
      Y                Number (10);
      pragma autonomous_transaction;
    Begin
    -- first all records should be deleted from the subtable i.e. tbl_test
        delete from borki.tbl_test where lng_falle = pr_falle
            and int_fallennummer = pr_fallennummer
            and lng_schaedling   = pr_schaedling
           and date_datum       > '31.03.2010';
          commit;
          For Rec In
          (select objectid lng_fangzahlen,
            date_datum,
            prev_date,
            (date_datum - prev_date) difference_in_days,
            round((
            case
              when nvl(int_volumen,0) > 0
              and lng_schaedling      = 1
              then int_volumen * 40
              when nvl(int_volumen,0) > 0
              and lng_schaedling      = 2
              then int_volumen * 550
              when nvl(int_anzahl,0) > 0
              then int_anzahl
            end ) / (date_datum - prev_date),3) counted_bugs,
            int_fallennummer,
            lng_falle,
            lng_schaedling
          from
            (select objectid,
              date_datum,
              case
                when lag(date_datum) over(order by date_datum) is null
                then to_date('31.03.2010')
                else lag(date_datum) over(order by date_datum)
              end as prev_date,
              int_volumen,
              int_anzahl,
              int_fallennummer,
              lng_falle,
              lng_schaedling
            from borki.fangzahlen
            where lng_falle      = pr_falle
            and int_fallennummer = pr_fallennummer
            and lng_schaedling   = pr_schaedling
            and date_datum       > '31.03.2010'
           -- and objectid         = pr_objectid
            order by date_datum desc
          order by date_datum asc
          Loop
            Y := 1;
            While Y < rec.difference_in_days + 1
            Loop
              Insert
              Into tbl_test
                  lng_fangzahlen,
                  date_datum,
                  int_anzahl,
                  int_volumen,
                  int_fallennummer,
                  lng_falle,
                 lng_schaedling
              select objectid lng_fangzahlen,
            prev_date +Y,
            round((
            case
              when nvl(int_volumen,0) > 0
              and lng_schaedling      = 1
              then int_volumen * 40
              when nvl(int_volumen,0) > 0
              and lng_schaedling      = 2
              then int_volumen * 550
              when nvl(int_anzahl,0) > 0
              then int_anzahl
            end ) / (date_datum - prev_date),3) counted_bugs,
            int_volumen,
            int_fallennummer,
            lng_falle,
            lng_schaedling
          from
            (select objectid,
              date_datum,
              case
                when lag(date_datum) over(order by date_datum) is null
                then to_date('31.03.2010')
                else lag(date_datum) over(order by date_datum)
              end as prev_date,
              int_volumen,
              int_anzahl,
              int_fallennummer,
              lng_falle,
              lng_schaedling
            from borki.fangzahlen
            where lng_falle      = pr_falle
            and int_fallennummer = pr_fallennummer
            and lng_schaedling   = pr_schaedling
            and date_datum       > '31.03.2010'
            order by date_datum desc
          order by date_datum asc
              commit;
              Y := Y + 1;
            End Loop;
          End Loop; -- end of cursor
      Exception
      When No_data_found Then
        Null;
      When Others Then
        -- Consider logging the error and then re-raise
        Raise;
      End "PR_FANGZAHLEN_TW_SYNC_SK";

  • Case statement and Decode function both are not working in Select cursor.

    I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. On the other hand both the things work in just select statement.
    See the first column in select (PAR_FLAG), I need to have this evaluated along with other fields. Can you please suggest some thing to make this work. And also I would like to
    know the reason why decode is not working, I heard some where Case statement do not work with 8i.
    Author : Amit Juneja
    Date : 06/20/2011
    Description:
    Updates the Diamond MEMBER_MASTER table with the values from
    INC.MEM_NJ_HN_MEMBER_XREF table.
    declare
    rec_cnt number(12) := 0;
    commit_cnt number(4) := 0;
    cursor select_cur is
    Select DECODE(1,
    (Select 1
    from hsd_prov_contract R
    where R.seq_prov_id = PM.seq_prov_id
    and R.line_of_business = H.line_of_business
    and R.PCP_FLAG = 'Y'
    and R.participation_flag = 'P'
    and SYSDATE between R.EFFECTIVE_DATE AND
    NVL(R.TERM_DATE,
    TO_DATE('31-DEC-9999', 'DD-MON-YYYY'))),
    'Y',
    'N') PAR_FLAG,
    H.SEQ_ELIG_HIST,
    H.SEQ_MEMB_ID,
    H.SEQ_SUBS_ID,
    H.SUBSCRIBER_ID,
    H.PERSON_NUMBER,
    H.EFFECTIVE_DATE,
    H.TERM_DATE,
    H.TERM_REASON,
    H.RELATIONSHIP_CODE,
    H.SEQ_GROUP_ID,
    H.PLAN_CODE,
    H.LINE_OF_BUSINESS,
    H.RIDER_CODE_1,
    H.RIDER_CODE_2,
    H.RIDER_CODE_3,
    H.RIDER_CODE_4,
    H.RIDER_CODE_5,
    H.RIDER_CODE_6,
    H.RIDER_CODE_7,
    H.RIDER_CODE_8,
    H.MEDICARE_STATUS_FLG,
    H.OTHER_STATUS_FLAG,
    H.HIRE_DATE,
    H.ELIG_STATUS,
    H.PREM_OVERRIDE_STEP,
    H.PREM_OVERRIDE_AMT,
    H.PREM_OVERRIDE_CODE,
    H.SEQ_PROV_ID,
    H.IPA_ID,
    H.PANEL_ID,
    H.SEQ_PROV_2_ID,
    H.SECURITY_CODE,
    H.INSERT_DATETIME,
    H.INSERT_USER,
    H.INSERT_PROCESS,
    H.UPDATE_DATETIME,
    H.UPDATE_USER,
    H.UPDATE_PROCESS,
    H.USER_DEFINED_1,
    H.SALARY,
    H.PEC_END_DATE,
    H.REASON_CODE,
    H.PEC_WAIVED,
    H.BILL_EFFECTIVE_FROM_DATE,
    H.BILLED_THRU_DATE,
    H.PAID_THRU_DATE,
    H.SUBSC_DEPT,
    H.SUBSC_LOCATION,
    H.USE_EFT_FLG,
    H.BENEFIT_START_DATE,
    H.SEQ_ENROLLMENT_RULE,
    H.MCARE_RISK_ACCRETION_DATE,
    H.MCARE_RISK_DELETION_DATE,
    H.MCARE_RISK_REFUSED_DATE,
    H.COMMENTS,
    H.USER_DEFINED_2,
    H.USER_DEFINED_3,
    H.RATE_TYPE,
    H.PCPAA_OCCURRED,
    H.PRIVACY_ON,
    H.PCP_CHANGE_REASON,
    H.SITE_CODE,
    H.SEQ_SITE_ADDRESS_ID,
    PM.seq_prov_id rendered_prov
    from hsd_member_elig_history H,
    INC.PCP_REASSIGN_RPRT_DATA P,
    hsd_prov_master PM
    where P.subscriber_id = H.subscriber_id
    and P.rendered_pcp = PM.provider_ID
    and H.elig_status = 'Y'
    and (H.term_date is NULL or H.term_date >= last_day(sysdate))
    order by H.Seq_memb_id;
    begin
    for C in select_cur loop
    rec_cnt := rec_cnt + 1;
    update hsd_member_elig_history
    set term_date = TRUNC(SYSDATE - 1),
    term_reason = 'PCPTR',
    update_datetime = SYSDATE,
    update_user = USER,
    update_process = 'TD33615'
    where seq_elig_hist = C.seq_elig_hist
    and seq_memb_id = C.seq_memb_id;
    INSERT INTO HSD_MEMBER_ELIG_HISTORY
    (SEQ_ELIG_HIST,
    SEQ_MEMB_ID,
    SEQ_SUBS_ID,
    SUBSCRIBER_ID,
    PERSON_NUMBER,
    EFFECTIVE_DATE,
    TERM_DATE,
    TERM_REASON,
    RELATIONSHIP_CODE,
    SEQ_GROUP_ID,
    PLAN_CODE,
    LINE_OF_BUSINESS,
    RIDER_CODE_1,
    RIDER_CODE_2,
    RIDER_CODE_3,
    RIDER_CODE_4,
    RIDER_CODE_5,
    RIDER_CODE_6,
    RIDER_CODE_7,
    RIDER_CODE_8,
    MEDICARE_STATUS_FLG,
    OTHER_STATUS_FLAG,
    HIRE_DATE,
    ELIG_STATUS,
    PREM_OVERRIDE_STEP,
    PREM_OVERRIDE_AMT,
    PREM_OVERRIDE_CODE,
    SEQ_PROV_ID,
    IPA_ID,
    PANEL_ID,
    SEQ_PROV_2_ID,
    SECURITY_CODE,
    INSERT_DATETIME,
    INSERT_USER,
    INSERT_PROCESS,
    UPDATE_DATETIME,
    UPDATE_USER,
    UPDATE_PROCESS,
    USER_DEFINED_1,
    SALARY,
    PEC_END_DATE,
    REASON_CODE,
    PEC_WAIVED,
    BILL_EFFECTIVE_FROM_DATE,
    BILLED_THRU_DATE,
    PAID_THRU_DATE,
    SUBSC_DEPT,
    SUBSC_LOCATION,
    USE_EFT_FLG,
    BENEFIT_START_DATE,
    SEQ_ENROLLMENT_RULE,
    MCARE_RISK_ACCRETION_DATE,
    MCARE_RISK_DELETION_DATE,
    MCARE_RISK_REFUSED_DATE,
    COMMENTS,
    USER_DEFINED_2,
    USER_DEFINED_3,
    RATE_TYPE,
    PCPAA_OCCURRED,
    PRIVACY_ON,
    PCP_CHANGE_REASON,
    SITE_CODE,
    SEQ_SITE_ADDRESS_ID)
    values
    (hsd_seq_elig_hist.nextval,
    C.SEQ_MEMB_ID,
    C.SEQ_SUBS_ID,
    C.SUBSCRIBER_ID,
    C.PERSON_NUMBER,
    trunc(SYSDATE),
    C.TERM_DATE,
    C.TERM_REASON,
    C.RELATIONSHIP_CODE,
    C.SEQ_GROUP_ID,
    C.PLAN_CODE,
    C.LINE_OF_BUSINESS,
    C.RIDER_CODE_1,
    C.RIDER_CODE_2,
    C.RIDER_CODE_3,
    C.RIDER_CODE_4,
    C.RIDER_CODE_5,
    C.RIDER_CODE_6,
    C.RIDER_CODE_7,
    C.RIDER_CODE_8,
    C.MEDICARE_STATUS_FLG,
    C.OTHER_STATUS_FLAG,
    C.HIRE_DATE,
    C.ELIG_STATUS,
    C.PREM_OVERRIDE_STEP,
    C.PREM_OVERRIDE_AMT,
    C.PREM_OVERRIDE_CODE,
    C.SEQ_PROV_ID,
    C.IPA_ID,
    C.PANEL_ID,
    C.SEQ_PROV_2_ID,
    C.SECURITY_CODE,
    SYSDATE,
    USER,
    'TD33615',
    SYSDATE,
    USER,
    'TD33615',
    C.USER_DEFINED_1,
    C.SALARY,
    C.PEC_END_DATE,
    C.REASON_CODE,
    C.PEC_WAIVED,
    C.BILL_EFFECTIVE_FROM_DATE,
    C.BILLED_THRU_DATE,
    C.PAID_THRU_DATE,
    C.SUBSC_DEPT,
    C.SUBSC_LOCATION,
    C.USE_EFT_FLG,
    C.BENEFIT_START_DATE,
    C.SEQ_ENROLLMENT_RULE,
    C.MCARE_RISK_ACCRETION_DATE,
    C.MCARE_RISK_DELETION_DATE,
    C.MCARE_RISK_REFUSED_DATE,
    C.COMMENTS,
    C.USER_DEFINED_2,
    C.USER_DEFINED_3,
    C.RATE_TYPE,
    C.PCPAA_OCCURRED,
    C.PRIVACY_ON,
    C.PCP_CHANGE_REASON,
    C.SITE_CODE,
    C.SEQ_SITE_ADDRESS_ID);
    commit_cnt := commit_cnt + 1;
    if (commit_cnt = 1000) then
    dbms_output.put_line('Committed updates for 1000 records.');
    commit;
    commit_cnt := 0;
    end if;
    end loop;
    commit;
    dbms_output.put_line('Total number of MEMBER_ELIG_HISTROY records inserted : ' ||
    rec_cnt);
    exception
    when others then
    raise_application_error(-20001,
    'An error was encountered - ' || sqlcode ||
    ' -error- ' || sqlerrm);
    end;

    user10305724 wrote:
    I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. Please define what you mean by not working even if your computer screen is near the internet we can't see it.
    You should also look at the FAQ about how to ask a question
    SQL and PL/SQL FAQ
    Particularly *9) Formatting with {noformat}{noformat} Tags* and posting your version.
    know the reason why decode is not working, I heard some where Case statement do not work with 8i.
    Does this mean you are using 8i? Then scalar sub queries - selects within the select list, are not supported, along with CASE in PL/SQL.
    Select DECODE(1,
    * (Select 1
    from hsd_prov_contract R
    where R.seq_prov_id = PM.seq_prov_id
    and R.line_of_business = H.line_of_business
    and R.PCP_FLAG = 'Y'
    and R.participation_flag = 'P'
    and SYSDATE between R.EFFECTIVE_DATE AND
    NVL(R.TERM_DATE,
    TO_DATE('31-DEC-9999', 'DD-MON-YYYY')))*,
    'Y',
    'N') PAR_FLAG,
    >
    exception
    when others then
    raise_application_error(-20001,
    'An error was encountered - ' || sqlcode ||
    ' -error- ' || sqlerrm);
    http://tkyte.blogspot.com/2008/01/why-do-people-do-this.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • LIKE operator is not working in SQL Query in XML file

    Hi Gurus,
    LIKE operator is not working in SQL query in XML template.
    I am creating a PDF report in ADF using Jdeveloper10g. The XML template is as follows
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="catalogDataTemplate" description="Magazine
    Catalog" defaultPackage="" Version="1.0">
    <parameters>
    <parameter name="id" dataType="number" />
    <parameter name="ename" dataType="character" />
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
       SELECT ename, empno, job, mgr from EMP where deptno=:id and ename LIKE :ename || '%']]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="EmployeeInfo" source="Q1">
    <element name="EmployeeName" value="ename" />
    <element name="EMPNO" value="empno" />
    <element name="JOB" value="job"/>
    <element name="MANAGER" value="mgr" />
    </group>
    </dataStructure>
    </dataTemplate>
    if i pass the parameter value of :ename from UI, it doesn't filter. But if I give ename = :ename it retrieves the data. Can anyone help me why LIKE operator doesn't work here?
    Appreciate your help,
    Shyamal
    email: [email protected]

    Hi
    Well for a start, you are doing some very strange conversions there. For example...
    and to_char(a.msd, 'MM/DD/YYYY') != '11/11/2030'
    and to_char(a.msd, 'MM/DD/YYYY') != '10/10/2030'If a.msd is a date then you should e converting on the other side ie.
    and a.msd != TO_DATE('11/11/2030', 'MM/DD/YYYY')
    and a.msd != TO_DATE('10/10/2030', 'MM/DD/YYYY')Also, you may want to take into consideration nothing being input in :P2_ITEM_NUMBER like this...
    AND INSTR(a.item_number,NVL(:P2_ITEM_NUMBER,a.item_number)) > 0Is item number actually a number or char field? If it's a number, you want to explicitly convert it to a string for using INSTR like this...
    AND INSTR(TO_CHAR(a.item_number),NVL(TO_CHAR(:P2_ITEM_NUMBER),TO_CHAR(a.item_number))) > 0?
    Cheers
    Ben

  • NVL in where clause not working with UNIX parameters

    Apparently this in a where clause does not work in UNIX scripts...
    .... and trans_date between to_date('&1','YYYY/MM/DD HH24:MI:SS')
    and to_date(NVL('&2','31-DEC-4712'),'YYYY/MM/DD HH24:MI:SS')
    and to_date(NVL('','31-DEC-4712'),'YYYY/MM/DD HH24:MI:SS')
    ERROR at line 14:
    ORA-01858: a non-numeric character was found where a numeric was expected
    How do I get around a null in UNIX? This works fine if both parameters are populated. Thanks.

    Jason ORCL wrote:
    Apparently this in a where clause does not work in UNIX scripts...
    .... and trans_date between to_date('&1','YYYY/MM/DD HH24:MI:SS')
    and to_date(NVL('&2','31-DEC-4712'),'YYYY/MM/DD HH24:MI:SS')
    and to_date(NVL('','31-DEC-4712'),'YYYY/MM/DD HH24:MI:SS')
    ERROR at line 14:
    ORA-01858: a non-numeric character was found where a numeric was expected
    How do I get around a null in UNIX? This works fine if both parameters are populated. Thanks.it's nothing to do with unix at all - your date value doesn't match the format mask that you've entered:
    '31-DEC-4712' doesn't map to 'YYYY/MM/DD HH24:MI:SS' in any universe unfortunately.

  • Back button is not working-urgent

    hi ,
    i created my own pf status by using following function modue. it is showing pf status correct. in my pf status i keep back and exit buttons only. when i execute the following report it is showing back and exit buttons only. when i click back button action is not performing . any body can tell why the action is not working . i activated my pf status also.  if possible send me the sample code.
    iam sending my code below....
    selection-screen: begin of block b1.
    parameters : p_appln type mara-matnr.
    parameters : p_user type marc-werks.
    selection-screen: end of block b1.
    data: begin of exclude occurs 0,
            func(10) type c,
          end of exclude.
    At selection-screen output.
       set pf-status 'SELK'.      <-- Comment this line
    if sy-dynnr eq '1000'.
    call function 'RS_SET_SELSCREEN_STATUS'
    exporting
    p_status = 'SELK'
    tables
    p_exclude = exclude
    exceptions
    others = 1.
    endif.
    thanks,
    maheedhar.t

    Please assign the function codes to the back button and use the function code in your program for a particulat action.
    Check this piece of code might help you.
    call the ABAP list viewer                                            *
    FORM list_display TABLES a_output.
      pgm = disvariant-report = sy-repid.
      disvariant-variant = variant.
    call list viewer
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = pgm
          i_callback_pf_status_set = 'SET_PF_STATUS'
          it_fieldcat              = fieldcat
          is_layout                = layout
          is_print                 = print
          i_save                   = 'A'
          it_events                = eventcat
          it_sort                  = sortcat
          i_callback_user_command  = '<b>USER_COMMAND'</b>
        TABLES
          t_outtab                 = a_output
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    ENDFORM.                    "LIST_DISPLAY
    FORM SET_PF_STATUS *
    FORM set_pf_status USING extab TYPE slis_t_extab.
      SET PF-STATUS 'STATUS1'.
    ENDFORM.                    "set_pf_status
    FORM USER_COMMAND *
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
      DATA t_difference TYPE i.
      CASE ucomm.
        WHEN 'ENT1'.   <--The function code.
    Shreekant

  • RFC Function module is not working in program while Background

    Hi All,
    we have a one program in BI  system which is calling RFC function module. it is executing the program in foreground very well. Same program we have executed in background , it is not working at all. Thiis RFC function module exists in R/3 4.6c system.

    Hello Raju,
    Transactional call of a remote-capable function module specified in func using the RFC interface. You can use the addition DESTINATION to specify an individual destination in dest. If the destination has not been specified, the destination NONE is used implicitly. Character-type data objects are expected for func and dest.
    When the transactional call is made, the name of the called function, together with the destination and the actual parameters given in parameter list, are registered for the current SAP LUW in the database tables ARFCSSTATE and ARFCSDATA of the current SAP system under a unique transaction ID (abbreviated as TID, stored in a structure of type ARFCTID from the ABAP Dictionary, view using transaction SM58). Following this registration, the program making the call is continued by way of the statement CALL FUNCTION.
    When executing the COMMIT WORK statement, the function modules registered for the current SAP LUW are started in the sequence in which they were registered. The statement ROLLBACK WORKdeletes all previous registrations of the current SAP LUW.
    If the specified destination is not available for COMMIT WORK, an executable called RSARFCSE is started in the background. This attempts to start the functional modules registered for an SAP LUW in their destination, every 15 minutes up to a total of 30 times. You can make changes to these parameters using transaction SM59. If the destination does not become available within the given time, this is noted in the database table ARFCSDATA as a CPICERR entry. By default, this entry in database table ARFCSSTATE is deleted after 8 days.
    Thanks and Regards,
    SAP Shori

  • Dynamic query not working

    hi
    im using a dynamic query to put in an internal table but its not working
    Can you see whats wrong in that?
    gv_query = ' au~uname AS OTCTUSERNM,'.
    CONCATENATE gv_query  'a1object' '.' 'a1field'  ' AS  0TCTAUTH'  INTO gv_query.
    CONCATENATE gv_query  'au~to_dat AS OTCTADTO, OTCTOBJNM, ' INTO gv_query.
    SELECT DISTINCT (gv_query)
      INTO CORRESPONDING FIELDS OF TABLE gi_ds1
      FROM agr_users AS au INNER JOIN
      agr_1251 AS a1
      ON auagr_name = a1agr_name.

    Hello,
    Following are the observations:
    1. gv_query = ' au~uname AS OTCTUSERNM,'.
    >> In above string i think you want to use uname column as OTCTUSERNM and it is correct
    2. CONCATENATE gv_query 'a1object' '.' 'a1field' ' AS 0TCTAUTH' INTO
        gv_query.
    >> In statement 2 above I am not able to understand whey 'a1object' '.' 'a1field'  this is incorrect.
         Also '.' (dot) in not required in query it will be either '~' or 'AS' as valid chars.
    3. CONCATENATE gv_query 'au~to_dat AS OTCTADTO, OTCTOBJNM, ' INTO gv_query.
    >> In statement 3 above whey OTCTOBJNM is used there is no such column exit in AGR_USERS.
    4. SELECT DISTINCT (gv_query)
        INTO CORRESPONDING FIELDS OF TABLE gi_ds1
        FROM agr_users AS au INNER JOIN
        agr_1251 AS a1
        ON auagr_name = a1agr_name.
    >> In above statement a1 is used as alias for AGR_USERS then why it it not there in statement 3 where instead au is used.
    Normarlly query is like this
    '<alias1><col_name1> as <col_desc1>, <alias2><col_name2> as <col_desc2>......up to n cols
    In this case it is possible that alias1 and alias2 are used for different table in case of joins and for same table in case of self joins.
    Finally, You can only define colums in dynamic query those are available in the table from which we have to select the data.
    Hope this helps.
    Thanks,
    Augustin.

  • Period overlaps code not working in apex page

    Hi there,
    Employees have a schedule with a begin and end date. Schedule periodes may not overlap each other for the same employee.
    I have a function returning error text validation as follow:
    declare
    l_dummy number;
    begin
    select  count(*)
    into    l_dummy
    from    fus_medewerker_roosters
    where   mdr_code = :p61_mdr_code
    and     id <> :p61_id
    and     to_date(:p61_begin_periode,'DD-MON-YY') <= eind_periode
    and     to_date(:p61_eind_periode,'DD-MOn-YY')>= begin_periode
    +;+
    if l_dummy > 0
    then
    return 'This employee already has a schedule in this periode.';
    else
    return null;
    end if;
    end;
    But the code is not working. It does save data for an employee even if the periodes overlaps.
    But the code works fine in workshop:
    declare
    l_dummy number;
    begin
    select  count(*)
    into    l_dummy
    from    fus_medewerker_roosters
    where   mdr_code = :p61_mdr_code
    and     id <> :p61_id
    and     to_date(:p61_begin_periode,'DD-MON-YY') <= eind_periode
    and     to_date(:p61_eind_periode,'DD-MOn-YY')>= begin_periode
    +;+
    if l_dummy > 0
    then
    DBMS_OUTPUT.PUT_LINE ('This employee already has a schedule in this periode.');end if;
    end;
    What is going wrong. Why is it working fine in workshop but not in my page?
    Regards,
    Diana
    Edited by: dianap on Sep 4, 2009 8:31 AM

    Hi Andy,
    I left out the id is not :p11_id
    and the code is working fine now.
    I have another problem now.
    The user can make a choice between a department or an employee.
    The validation works fine when a schedule is given to a employee (choossing a department from the department list and a employee from the employee list)
    But if the user wants to give a schedule to a department(one or more employee depending on the employees of that department) then he chooses the department from the department select list, leaving the employee select list empty. When i want to save these changes, i get a invalid number error. I tried making the validation conditional for when the employee item is null.
    But still i get invalid number.
    Any suggestions how i could solve this problem?
    Thanks,
    Diana

Maybe you are looking for