Select query hangs on Oracle 9i but works fine in Oracle 8i

Hi Guys,
For a recap of what happened:
Migrated from Oracle 8i to 9i for a customer, all queries and statements are working fine, except for this particular query. If i run the same query on 8i it works like a charm.
In 9i, if i remove even one field from the query, it works else it just hangs.
Any idea, any one???
**Added 2:09PM: When i removed some ltrim and rtrim that i believe not necessary, the query works fine, is there any field length limitation in Oracle 9i???
Below is the query:
set pagesize 100;
set linesize 1024;
set heading off;
set echo off;
spool scb_xfer_hdr_npsx;
select ltrim(rtrim(to_char(hdr_srl_no,'99'))) || ';' ||
'P' || ';' || rtrim(ltrim(payment_type))|| ';'|| ';' ||
ltrim(rtrim(our_ref_no))|| ';'|| 'MY;KUL;' ||
     rtrim(ltrim(debit_account_no))||';'||
rtrim(ltrim(to_char(scb_batch_date,'YYYY/MM/DD'))) || ';'|| ';' ||
rtrim(ltrim(payee_name_1))|| ';'|| ';' ||
rtrim(ltrim(address_1))|| ';'||
rtrim(ltrim(address_2))|| ';'||
rtrim(ltrim(address_3))|| ';'|| ';' ||
rtrim(ltrim(payee_name_11))|| ';' ||
rtrim(ltrim(address_11))|| ';'||
rtrim(ltrim(address_21))|| ';'||
rtrim(ltrim(address_31))|| ';'|| ';' ||
     rtrim(ltrim(payee_bank_code)) || ';' || ';' ||
     rtrim(ltrim(payee_account_no)) || ';' ||
     rtrim(ltrim(our_ref_no2)) || ';' || ';' ||
     rtrim(ltrim(our_ref_no2)) || ';' || ';' || ';' || ';' ||
rtrim(ltrim(payment_currency))|| ';'||
rtrim(ltrim(to_char(payment_amount,'9999999999.99')))|| ';'||
     'C;P;;' || rtrim(ltrim(payee_bank_name))|| ';' ||
     'KL;;' ||
     rtrim(ltrim(delivery_method)) || ';' ||
     rtrim(ltrim(delivery_by)) || ';' ||
     rtrim(ltrim(counter_pickup_location))
from scb_xfer_hdr_npsx
order by hdr_srl_no;
select distinct 'T;' || ltrim(rtrim(to_char(total_payments))) || ';' ||
     ltrim(rtrim(to_char(total_pay_amount,'9999999999.99')))
from scb_xfer_hdr_npsx;
spool off;
spool scb_xfer_dtl_npsx;
select ltrim(rtrim(to_char(srl_no,'99'))) || ';' || 'I' || ';' ||
     ltrim(rtrim(doc_no)) || ';' || ltrim(rtrim(to_char(doc_date,'yyyy/mm/dd'))) || ';' ||
     ltrim(rtrim(doc_description)) || ';' ||
     ltrim(rtrim(to_char(doc_amount,'9999999999.99')))
from scb_xfer_dtl_npsx
order by srl_no;
spool off;
set echo on;
exit;
Message was edited by:
Logesh

Hi,
are you still on a 32bit kernel on AIX?
How are the Form4.5 connected, are they on the same box, or are they using the forms GUI?
What about the statistics, how do you collect them? Is the database set to the COST based optimizer?
Do you use dbms_utility.analyze_schema, or this:
exec dbms_stats.gather_schema_stats( -
ownname => '$OWNER', -
estimate_percent => 10, -
granularity => 'ALL', -
method_opt => 'FOR ALL COLUMNS SIZE 75', -
degree => NULL , -
options => 'GATHER $GATH', -
cascade => TRUE -
What does it mean the SQL hangs? Can you cancel the query? Do you have to kill the session? Do you use any diagnostic tools like TOAD to trace the session, see what it is doing? Usually if this is a performance/tuning issue, you will see the session is not dead, but you will see advancing reads.
Regards,
Richard.

Similar Messages

  • Fail to select subtitles on final build dvd, but works fine on DVDSP4 simul

    I have a complex project, for commercial proposes.
    It's include menu in portuguese and english, audio Dolby 5.1 and 2.0 and subtitles in english, espanish and portuguese.
    The problem:
    When I simulate it on DVD studio Pro 4, everything works fine, It looks pretty goog, but after build or format a DVD on my hard drive, I test it on Apple DVD Player, selec menu in english or portuguese and play one interview with the artist, on extras menu. Ok, but if I press menu, then go to the setup menu, and select the spanish or portuguese subtitles, when I go back to the extras menu, and play the interview again, the subtitle is english only.
    Somebody help-me, I cheked all the scripts and it's ok, as much that on the simulator, all works fine.
    thx,
    Marcus Maia

    On language menu I have two buttons that call:
    Script PT (sets the menu language to português)
    1 - mov GPRM 1,1
    2 - Jump Aviso PT (warning screen)
    Script PT (sets the menu language to english)
    1 - mov GPRM 1,2
    2 - Jump Aviso EN (warning screen)
    On the setup menu, I have five buttons that call:
    Script AUDIO_5.1 (sets audio to dolby 5.1)
    1 - Set System Stream Au(Audio Stream 1)
    2 - Jump menuconfigpt::button LEG_EN if (GPRM 1 = 1)
    3 - Jump menuconfigen::button LEG_EN if (GPRM 1 = 2)
    Script AUDIO_2.0 (sets audio to dolby 2.0)
    1 - Set System Stream Au(Audio Stream 1)
    2 - Jump menuconfigpt::button LEG_EN if (GPRM 1 = 1)
    3 - Jump menuconfigen::button LEG_EN if (GPRM 1 = 2)
    Script LEG_EN (sets subtitle to english)
    1 - Set System Stream St(Subtitle Stream 1) (on)
    2 - Jump menuconfig_pt::butvoltar if (GPRM 1 = 1)
    3 - Jump menuconfig_en::butvoltar if (GPRM 1 = 2)
    Script LEG_ES (sets subtitle to spanish)
    1 - Set System Stream St(Subtitle Stream 2) (on)
    2 - Jump menuconfig_pt::butvoltar if (GPRM 1 = 1)
    3 - Jump menuconfig_en::butvoltar if (GPRM 1 = 2)
    Script LEG_PT (sets subtitle to spanish)
    1 - Set System Stream St(Subtitle Stream 3) (on)
    2 - Jump menuconfig_pt::butvoltar if (GPRM 1 = 1)
    3 - Jump menuconfig_en::butvoltar if (GPRM 1 = 2)
    The others scripts make each video to come back to correct language menu, like these:
    Script SHOW
    1 - Jump menuroot_pt::butextras if (GPRM 1 = 1)
    2 - Jump menuroot_en::butextras if (GPRM 1 = 2)
    Script ENTREVISTA (the interview with the artist)
    1 - Jump menuextras_pt::butmkof if (GPRM 1 = 1)
    2 - Jump menuextras_en::butmkof if (GPRM 1 = 2)
    There is all...
    If you can, send your e-mail address to me and I send the project file to you.
    Thx
    Marcus Maia

  • Safari Hangs after deleting :Awesome" but works for few when restrating

    Safari Hangs after deleting"Awesome" but works for few minutes once shutdown and restart

    I tried to look at other similar problems and tried to play around with it.
    What I noticed was that I deleted the application but did not uninstall the extension.
    Now I have now uninstalled the extension and Safari is back to normal.
    Thanks Andy for your response

  • HT2284 Recurring "connection failed" when selecting TimeCapsule in the sidebar (internet connection works fine).  Clicking "Connect As" starts the cyle over again but ends in "There was a problem connection to the server" message.  Only fix is resetting T

    Recurring "connection failed" when selecting TimeCapsule in the sidebar (internet connection works fine).  Clicking "Connect As" starts the cyle over again but ends in "There was a problem connection to the server" message.  Only fix is resetting TC.
    The TC is the wifi base station, also have AirportExpress on the network, both of which work fine.  The TC has an external disc connected as well, which is also visible in the sidebar but also cannot be connected to.  Several MB computers use the network, all of which either can or cannot connect to the TC disc depending on when it is acting up.
    Any ideas other than clicking "connect as" or powering down the network every time? 

    Read up how to install 5.6 utility into ML.. it is pretty easy.
    I downloaded 5.6
    http://support.apple.com/kb/DL1482
    Download unpkg
    http://www.timdoug.com/unpkg/
    Open the dmg to get the pkg.. drag it onto unpkg.. and it will create a directory under desktop with all the files.. drag the application to the utility directory.. or just run it direct.
    Google if you want more explicit instructions.
    Much easier with a real tool instead of a toy.
    Hold the option key when you select firmware update.. all the old ones will appear.
    But this will not work on newer Gen4.. only on every other model and early Gen4. .I do not know when they turned the corner and started this only 7.6 nonsense.

  • People picker is not working for ie11 but working fine for other lower version

    i am using sharepoint 2010 and windows authentication
    recently i have updated my ie to ie11 and problem goes here.
    when i try to select from people picker, there are an unexpected error happened 
    however when i use other ie version, people picker work fine, what goes wrong?
    i have already added my system as trusted site
    if there any others thing i miss out?

    Hi,
    According to your post, my understanding is that People picker is not working for ie11 but working fine for other lower version.
    IE 11 is known to have compatibility issues on SharePoint 2010, please make sure to:
    first of all, try installing latest update for IE 11 (several compatibility issues were fixed since the first release)
    add the site to compatibility view (in IE> Tools> Compatibility view settings> type site name> add)
    add the site to trusted sites and set the zone security level to low (in IE> Internet Options> Security> trusted sites> sites>add your site there> ok> custom level> select low> reset> ok)
    You can use developer tools (f12) and set browser mode to the version that is most compatible with your environment.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • BPEL process fails in SOA (in UNIX), but works fine in SOA (in Windows) env

    Hello,
    BPEL process fails in SOA (in UNIX), but works fine in SOA (in Windows) environment
    Step 1: Build a asynchronous BPEL process which has no extra node. Make and deploy it in 'local windows desktop SOA' server
    The BPEL process has three nodes:
    a. client - on the left side of the swim lane
    b. receiveInput - first node in swim lane (client calls 'receiveInput')
    c. callbackClient - second and last node in the swim lane ('callbackClient' calls client)
    Step 2: Go to BPEL console and 'Initiate' the BPEL process -> 'Post XML Message'
    Step 3: Now, I can see the successfully completed BPEL instance in the BPEL console.
    Now,
    Step 4: Deploy the same BPEL process (dummy asynchronous) in the SOA server (hosted in unix box)
    Step 5: Go to BPEL console and 'Initiate' the BPEL process -> 'Post XML Message'
    Step 6: I find that the BPEL instance appears to have ended in error (on the second node i.e. callbackClient )
    With the following error message
    +<invalidVariables xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>9710</code>+
    +</part><part name="summary"><summary>Invalid xml document.+
    According to the xml schemas, the xml document is invalid. The reason is: Error::cvc-complex-type.2.4.b: The content of element 'DummyBPELProcessProcessResponse' is not complete. One of '{"http://xmlns.oracle.com/DummyBPELProcess":result}' is expected.
    Please make sure that the xml document is valid against your schemas.
    +</summary>+
    +</part></invalidVariables>+
    Has anyone faced similar issue as above ?
    i.e. process works find in windows environment (local SOA), but fails in SOA server in UNIX environment
    Appreciate your help in understanding this issue.
    Thanks,
    Santhosh

    Hello,
    The fix to this issue appears to have been as follows:
    +<schema attributeFormDefault="unqualified"+
    +     elementFormDefault="qualified"+
    +     targetNamespace="http://xmlns.oracle.com/DummyBPELProcess"+
    +     xmlns="http://www.w3.org/2001/XMLSchema">+
    +     <element name="DummyBPELProcessProcessRequest">+
    +          <complexType>+
    +               <sequence>+
    +                    <element name="input" type="string"/>+
    +               </sequence>+
    +          </complexType>+
    +     </element>+
    +     <element name="DummyBPELProcessProcessResponse">+
    +          <complexType>+
    +               <sequence>+
    +                    <element name="*:result*" type="string"/>+
    +               </sequence>+
    +          </complexType>+
    +     </element>+
    +</schema>+
    In DummyBPELProcess.xsd,
    modifiying "result" to ":result" appears to have resolved the issue in SOA under unix environment.
    If anyone can explain why "result" works in SOA under windows and ":result" works in SOA under unix environment, I would really appreciate your help.
    Thanks,
    Santhosh

  • I have a Mac running 10.9.2. My wireless mouse with not scroll in mail but works fine in other applications? Any suggestions?

    I have a Mac running 10.9.2. My apple wireless mouse will not scroll in Mail but works fine in other applications.
    Any suggestions?

    First, see this discussion. If the solution suggested there doesn't work for you, continue.
    If you've installed a Mail plugin called "Mail Unread Menu" and you know how to remove it, please do that, then quit and relaunch Mail. Test. Otherwise, see below.
    Back up all data.
    1. Triple-click anywhere in the line below on this page to select it:  
    ~/Library/Mail/Bundles
    Right-click or control-click the highlighted line and select 
    Services ▹ Open
    from the contextual menu.* A folder may open, or you may get an error message that the item can't be found. Either result is normal. If the folder does open and has contents, move the contents to the Desktop. Relaunch Mail and test. If there's no change, put the contents of the folder back and quit Mail again.
    2. Repeat with this line:
    /Library/Mail/Bundles
    This time you may be prompted for your login password when you remove the items. Make sure they're removed from the folder and not just copied to the Desktop. If necessary, copy them first and then move the originals to the Trash.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • TS1966 I cannot play video on safari but works fine on google chrome?  What do i need to do to fix it?

    I cannot play video on safari but works fine on google chrome?  What do i need to do to fix it?

    If you have the ClickToFlash extension installed, that can prevent Flash based video from streaming. Safari > Preferences > Extensions
    It can also be installed as a plugin in /Library/Internet-Plug-Ins.
    Try uninstalling the currently installled Flash plugin (required for most YouTube content) then reinstall new >  Troubleshoot Flash Player | Mac OS
    From your Safari menu bar top of your screen click Safari > Preferences then select the Advanced tab.
    Select:  Show Develop menu in menu bar
    Now from the menu bar click Develop > Empty Caches

  • HT1414 touch screen does not work on my ipod when playing music on itunes, but works fine on every other thing on ipod

    touch screen does not work on my ipod when playing music on itunes, but works fine on every other thing on ipod, can anyone help or what is the cause

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • My iphone5 wont charge with usb port but works fine with wall plug... Infact computer. Doesn't recognizes the iphone

    Battery not charging with usb port but works fine with wall plug.. So the prob is computer is not detecting the iphone5 . This problem started after upgrading to 6.1.3 version

    Try to see what happens on another computer. If it works on another computer, the issue is not at the iPhone.

  • Superdrive no longer recognizes CD, but works fine with DVD

    my Superdrive seems to have a problem recognizing any type of CD media, but works fine with DVD media.
    I reinstalled Leopard and still the same problem. I also zapped the NVRAM (this is an Intel 2.0 Ghz Mac Mini w/ 2 GB Ram.
    Is there anything else I can do or do I just need to replace the drive?

    Typically when this sort of symptom appears, it relates to a hardware failure, either due to a faulty lens, or dirt. You might try a lens cleaner to ensure it is not the latter.
    Since this is a 2.0GHz mini, it ought to be still under warranty - if that is the case it would be wise to have Apple, or an approved service provider, check it and undertake any necessary repairs.

  • I just installed CC Lr 5.5 and it will not open on my laptop but works fine on my desktop.

    I just installed CC Lr 5.5 and it will not open on my laptop, but works fine on my desktop.

    Try this:
    https://helpx.adobe.com/lightroom/kb/unable-launch-lightroom-55.html

  • TS2972 First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first

    First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first night.

    The speed may have been ok at that time and is too inconsistent/too slow overall. interference may have proven to be more of an issue since as well. If using public DNS that will provide Intermittant results
    I'm sure using a hotspot would be fine but it depends on your viewing habits. An HD movie is around 4-5GB. It would also be subject to speed. requirements so best to test to see how it compares.
    You would have to check with your Carrier if hotspot it's enabled then just to into your settings and toggle it ON

  • Newest version of flash player not playing in newest version of google chrome but works fine in IE

    newest version of flash player not playing in newest version of google chrome but works fine in IE

    jennifer.jones214 wrote:
    In your  opinion, should I uninstall Firefox if I am installing Waterfox?
    Waterfox can coexist peacefully with Waterfox.  I have both installed, but never use Firefox any more.
    Not only can Waterfox run in 64-bit address space, it also is better optimized during compile time than Firefox.  (For obvious reasons; Firefox is compatible with many old systems, Waterfox only needs to be compatible with new 64-bit systems.)
    P.S. regarding Chris' advice above; Firefox and Waterfox use the same profile, so if that is actually the problem, then it will occur in both browsers.

  • After updating to iOS 6.0.1 "Yahoo! Server Unavailable" but works fine on iPhone.  Help please!

    after updating to iOS 6.0.1 "Yahoo! Server Unavailable" but works fine on iPhone.  Help please!

    GIve it time. Yahoo has been have persistently random issues in past weeks. If you don't want to wait, you can try deleting and readding your account info.
    The issue is on yahoo's end and all their updates/upgrades.

Maybe you are looking for

  • Mac OS 10.4 somehow reverted back to 10.3.9???

    I recently had issues with my G5. I brought it to apple and it turned out it was a board issue and they were able to fix it. Anyhow, here's my issue. The computer was originally bought by a friend and the discs that came with it are for 10.3.5 It was

  • F110 - Payment document Text field SGTXT ?

    Hi Experts, The requirement is that Payment Document needs to have the same Text (field SGTXT) as the invoice document. If someone knows how to do this I will also appreciate your answer. Anil Edited by: Anil Kumar on Oct 14, 2011 8:45 AM

  • When to use BPM Studio & BPM Composer

    Hi, I'm aware of BPM Studio and BPM Composer components and have used them using Sales Quote example. I need to know the key differences between studio and composer that differentiate each other interms of usage. When to go with studio and composer?

  • Imessage not working and doesn't go into message form

    is anyone else experiencing problems with imessage?

  • JOptionPane chopping off longest line

    I am using JOptionPane and am seeing a strange behavior on Solaris platform ... the longest line is always chopped off at the end. For instance, if the last word is "help", then it will show "h...". I have tried adding "\n" to shorten the line, but t