ODBC Bug with LONG VARCHAR??

Hi,
I'm running Oracle 8i Personal Edition 8.1.5 on WinNT SP5 and I'm am having some problems using ODBC 8.1.5.4. Running the program below, which tries to insert a string of length 4000 into a LONG VARCHAR is ok. Trying to insert a string of length 5000 fails. If I modify the prepared statement so the key value is hardcoded the call succeeds, no matter what the string length!.
Any ideas??
rgds
Jeppe
Code sample:
#include <windows.h>
#include <sql.h>
#include <sqlext.h>
#include <iostream>
// Type the following in sqlplus:
// create table testtable (stringval long varchar, key integer);
// insert into testtable values('',42);
const int colsize = 4000; // Change this to e.g. 5000 and the update fails!
const char dsn[] = "becora8";
const char user[] = "becdb";
const char passwd[] = "becdb";
int main(int argc, char* argv[])
SQLHANDLE env,con,stmt;
SQLRETURN res;
char str[8000];
res = SQLAllocHandle(SQL_HANDLE_ENV, 0, &env);
res = SQLSetEnvAttr(env, SQL_ATTR_ODBC_VERSION,(SQLPOINTER)SQL_OV_ODBC3,SQL_IS_INTEGER);
res = SQLAllocHandle(SQL_HANDLE_DBC, env, &con);
res = SQLConnect(con, (SQLCHAR*)dsn, SQL_NTS, (SQLCHAR*)user, SQL_NTS, (SQLCHAR*)passwd, SQL_NTS);
res = SQLAllocHandle(SQL_HANDLE_STMT, con, &stmt);
// Replace the WHERE parameter with key=42 and the update suceeds no matter what size is used
res = SQLPrepare(stmt, (SQLCHAR*)"UPDATE testtable SET stringval=? WHERE key=?", SQL_NTS);
memset(str, 0, sizeof(str));
memset(str, 'A', colsize);
long l = 42;
res = SQLBindParameter(stmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, colsize, 0, (PTR)str, colsize, 0);
res = SQLBindParameter(stmt, 2, SQL_PARAM_INPUT, SQL_C_LONG, SQL_INTEGER, sizeof(long), 0, (PTR)&l, sizeof(long), 0);
res = SQLExecute(stmt);
std::cout << "Updating " << colsize << " bytes, result: " << (res >= 0 ? "ok" : "failed") << "\n";
return 0;
null

I just tried it on my setup and it worked fine. Sorry no help here.

Similar Messages

  • File Not Found bug with long audio file names?

    Hello -
    Crazy problem. I'll probably post way too much information, but I want to make sure I cover everything. Help!
    We run Logic Studio/Logic 8 on multiple 10.4.10/11 computers - G5 Power PC, new intel iMac, intel mini, G4 laptops. We are working on an audio post job using very messy OMFs that were prepared in Final Cut. We had problems opening them in Logic, so we opened the OMFs in Soundtrack Pro, exported to AAFs, and opened those in Logic.
    The sessions look fine in Logic now (all files relinked), and the session is consolidated - ie, all files are local/in the project folder's Audio Files folder. I see this in the Audio Bin and can confirm in the finder.
    Here's the problem. With the sessions closed:
    (A) I renamed the project folder by adding an asterix to the front of the folder name, and changed the color label of the folder in the finder in order to mark it as the original folder.
    (B) I made a copy of the whole folder (session files & audio files) in order to have something to work from and not mess up the original. When I opened up the session in the new folder, it immediately said audio file not found, do you want to search, locate, or skip. It couldn't find the file in a search, and obviously when you skip, then skip, then skip all, it opens the session with the data (regions are there but grayed) - so all the audio files are orphaned.
    So when I try to locate the file, here's what happens. . . The audio file names are really horrendously long (must be some artifact of working in Final Cut). We're talking: "1087-001A SERG AIRPORT WAITING * 1-1channel_00044D02AA9- 363A-4CC5-A86B-0741023DB062.aif" - one bazillion characters.
    So the audio file locate dialog box truncates the name of the file that's missing by using the first 20 characters or so, and then a "#" character, and then some random string of 3-6 characters that is not at all related to the file name. So who knows which of the 4-30 SERG AIRPORT files is supposed to go there!
    Obviously if this were a 2 minute session file of 10 files or something, we could figure it out and relink everything, but we're talking about a feature-length session with a bazillion files.
    (C) Okay, so I tried to open the original session, in the folder that I had renamed by prefacing the original name with an * and changing the color of the folder. But I started to get the file not found errors. OH GEEZ. So I didn't save. I re-renamed the folder by taking out the * and changing the color label back. Then I tried to open the session again, but I still kept getting the file not found problem.
    I have to stress that I didn't move any of the audio files, or change ANYTHING in the session.
    So I thought - is all of this because I tried to open a new instance of the session, in a new instance of the folder? Is it because I renamed the folders? Normally you can rename folders, even session names, no problems, and Logic corrects the paths to the audio files!
    (D) So, crap. I reopened the original AAF file in logic and saved it in a new place. I closed the file, reopened it, closed, reopened, just to make sure everything was working! I checked the location of the files in the audio bin, and everything was great.
    (E) So now I copied the folders to an external hard drive to be able to work on another computer. But when I tried to open the sessions on a new computer. . . You guessed it, nada.
    So. . . the questions are:
    (1) Those original sessions that now will not work - is there anything I can do to recover their functionality? We had work in there that I would prefer not to lose. . .
    (2) Is this a known bug having to do with the length of the Audio File names?
    (3) How do we get over this? My only idea so far is we could select all in a working logic session and say "Audio Tracks names to regions" or something and will that change the actual file names on teh computer? Then hopefully things would work on mulitple systems. . .
    Okay. HELP! Thanks!
    Polly

    OK I got it.
    It is necessary to use prefix "file:///" before file name.
    Thanx everyway.

  • CS4 6.0 pdf export bug with long tables and graphics

    I discovered this bug in the CS4 trial, can anyone confirm that:
    1. start a new document having at least two pages
    2. insert one table spanning over both pages, having at least one headline
    3. insert some graphic into the headline
    4. right click the graphics element / anchored object / options
    5. set position to user defined
    6. check that the object is in the printable area of all pages
    7. export this into a pdf
    8. notice the graphics object is present on the first page ONLY while in the indd file it is correctly repeated on ALL pages!
    I think that is a true bug, is it?

    I believe that it is indeed a bug. I've seen it reported here before, if memory serves.
    Dave

  • [svn] 4028: Bug: Draining of buffered messages doesn' t work correctly with long-polling.

    Revision: 4028
    Author: [email protected]
    Date: 2008-11-06 09:04:26 -0800 (Thu, 06 Nov 2008)
    Log Message:
    Bug: Draining of buffered messages doesn't work correctly with long-polling.
    QA: Yes - please make sure both nio and regular long-polling channels work with throttling.
    Doc: No
    Checkintests: Pass.
    Details: Made sure that buffered messages are drained properly with all polling channels (polling, long-polling, and nio-long-polling).
    Modified Paths:
    blazeds/trunk/modules/core/src/flex/messaging/client/FlexClient.java

    Sounds like you've probably already looked but the CUPS article in the wiki led me through setting up a printer without any problems.  http://wiki.archlinux.org/index.php/CUPS
    The first section describes how to troubleshoot CUPS and printing problems.
    I've also found a few other posts and links that may help.
    http://hplipopensource.com/hplip-web/mo … eries.html
    http://ubuntuforums.org/showthread.php?t=419163
    Hope this helps!

  • [BO XI 3.1] Error with char/varchar with MySQL

    We are using Business Objects with a MySQL database underneath. The ODBC driver installed on the Business Objects server is configured as shown below:
    [BIRDDBD1]
    Description = BIRDDBD1
    Driver      = MySQL
    SERVER      = xx.xx.xx.xx
    USER        = xxxxx
    PASSWORD    = xxxxx
    PORT        = 3306
    DATABASE    = IAS
    Option      = 3
    The users use InfoView to create Web Intelligence reports. As soon as at least one attribute of datatype char or varchar is contained in a report, we get the following error message:
    A database error occured. The database error text is: [MySQL][ODBC 3.51 Driver][mysqld-5.1.31sp1-enterprise-gpl-advanced-log]Restricted data type attribute violation. (WIS 10901)
    When a report solely contains number and date attributes, we get a proper report result and do not get any error message.
    Trying to get data (also char or varchar data!) within the Business Objects Designer does not cause any problems!
    Could you please advice?
    Martin

    Hi,
    this can be. There are some changes in the Permissions from Rel.2 to XI 3.x
    I know that under 3.0 there was a Bug with Sheduling Permissions. Do you have any FixPack applied for your 3.0 Installation ?
    BTW: I would recommend upgrading to 3.1 SP2 (latest version). There are a lot of Bugs in 3.0
    Regards
    -Seb.

  • I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    Unfortunately, Safari cannot be updated past 5.1.10 on a Mac running v10.6.8.
    So, the options are to upgrade to a newer OS X or use Firefox or  Chrome.
    Be aware, Apple no longer support Snow Leopard v10.6 >  www.ibtimes.com/apple-kills-snow-leopard-os-x-106-no-longer-receives-security-u pdates-1558393
    See if your Mac can run v10.9 Mavericks >  OS X Mavericks: System Requirements
    If so, you can download and install Mavericks for free from the App Store.
    Read prior to upgrading >   Upgrading to 10.7 and above, don't forget Rosetta! | Apple Support Communities

  • ICal bug with month view

    I primarily use week view on iCal, but sometimes i switch to month view for a larger perspective. Often, i use month view to check for any leftover events from the previous month in case i forgot to delete one or two.
    I just found a bug concerning this. If i click on "month" today, it'll take me to the month view for june 2011, and from there i can navigate forwards or backwards. However, may 2011 seems to have a bug. If i click on < from june, it does nothing; if i click again, it takes me to april 2011. Similarly, if i click on > from april it does nothing and if i click again it takes me to june.
    It doesn't end there. The june/may thing happens only when the selected day (the one shaded light grey on the month and week views and bright blue on the little month tab on the left) is after 04 june. If a day from the first week of june (i have my weeks start on sunday) is selected, the < button does take me to may, but several events which i deleted a long time ago are showing up.
    Now, i have an event set for today (04 june). Since the first four days of june are in the same week as the last three of may, the month view for may shows these four days, as any normal calendar app would.
    If i use the month tab to the left to navigate, i can access may 2011 by selecting any day on that month. However, iCal's behaviour depends on which day was selected previously. If the previous day was in april 2011 or earlier, iCal will show the month of may completely empty, which is great because i have no leftover appointments from may; however, the box for 04 june is also empty, which it shouldn't be. If the previous day was in june 2011, it'll show may with a repeating event on every sunday except the first, which is completely absurd, since i have deleted this event (and why isn't it showing on the first sunday in may?); the box for 04 june, however, will correctly show the event i have set for this day. If the previous day was in july 2011 or later, it'll show may with the repeating event on all sundays (including the first one) and it won't show anything on the box for 04 june.
    Obviously, there is a bug with may 2011.
    In case it helps, i do have a repeating event set to all sundays until the end of existence, but i have deleted all the entries from may and previously, since they have obviously already happened. Also, i had many other repeating events set to happen on different weekdays; these are to repeat themselves weekly until about halfway through june, and they started on april or may (can't remember right now). Like the sunday one, i have deleted all the entries from may because they have already taken place. Strangely (and thankfully), none of these appear when i visit may from june or later, as does the sunday event.
    Any help would be greatly appreciated. Or am i forever stuck with week view, which has so far proven to be bug-free?
    (I did a search on Google and another on the Apple forums for this issue but could find nothing, so i decided to ask the question myself. I apologise if somebody has already asked this question and i just couldn't find it.)

    Greetings,
    I have a vague recollection of someone else with this issue but haven't experienced it myself nor encountered it recently.
    Troubleshooting:
    1.) First make an iCal backup: http://support.apple.com/kb/HT2966.
    2.) Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical and / or "ical"
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    __NOTE: Removing these files will remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Once the computer is back up and running open iCal and test.
    Hope that helps!

  • [Fwd: Creating an ODBC Driver with Forte]

    Has anyone created an ODBC driver with Forte? The Microsoft ODBC
    Software Development Kit (SDK) assumes that ODBC drivers will be
    developed in C. I would like to write the driver in Forte TOOL. Even
    though C++ code can be generated from TOOL code, I am not certain that
    the generated C++ code will conform to the ODBC API, and be compatible
    with other ODBC components, such as the ODBC Driver Manager, ODBC
    Installer, and ODBC Test applications supplied by Microsoft with the
    ODBC SDK. Any advice would be appreciated. (The purpose of my ODBC
    driver is to enable data access by any ODBC client application, using
    calls to Forte service objects to retrieve and process the data before
    it is sent to the client application.)
    Chris Johnson
    Unified Information, Inc.
    425-814-4007
    MailTo:[email protected]

    The following is extracted from Oralce's Metalink: (sorry lost the link)
    "This is an NLS related issue. The ODBC driver uses the values derived from the NLS_LANG setting from the Oracle Home where the driver is installed.
    The application actually uses the number setting from the NT Regional Settings.
    When these two settings differ, then the decimal character will be cut off. This behaviour is also described in Bug:694323.
    Example:
    You have set your NLS_LANG in the ORACLE_HOME of your ODBC driver to GERMAN_GERMANY.WE8ISO8859P1. This will result in a value for the NLS_NUMERIC_CHARACTERS of ",." (the first part of the NLS_NUMERIC_CHARACTERS being the decimal character and the second part being the group separator).
    So the "." is used by the Application and the "," is used by the Oracle ODBC driver.
    As a result numeric values in your Oracle Database with an integer and a decimal part will thus be displayed by the application without the decimal character, i.e. a value of 10,734 will be displayed as 10734 a value of 0,123 will be displayed as 123.
    To fix this, you will either have to correct the character used for the Decimal Symbol of your NT Regional settings to match the value of your Oracle NLS_LANG setting or vice versa. To change the value for NLS_LANG, go to your registry and change the NLS_LANG parameter that is situated under HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/HOMEnnn/NLS_LANG where HOMEnnn is the home where your Oracle ODBC driver is installed."
    Hope this helps, resolved our issue with this problem.

  • Solaris 10 sshd + GSSAPI auth appears to fail with long usernames.

    Solaris 10 sshd using GSSAPI mode appears to fail with long usernames.
    We have recently jumbo-patched solaris 10 server and windows 2k3 kerberos kdc. We wish to provide the single sign on thing for our Windows users, as written up in http://220-245-28-18.static.tpgi.com.au/~irvinee/gssapi-sol10/gssapi-howto.html
    Everything is fine, until a user with a ten character username comes along. The ten character username does not get the single sign on experience
    However, he can kinit fine on Solaris 10 server and also on other unix clients.
    If I switch from the stock solaris 10 sshd to a self-compiled OpenSSH linked against MIT Kerberos, the 10 char username gets single-sign-on and all is well..
    I note I have no problem when the server is FreeBSD 6.2 and the client is stock solaris 10 ssh.
    It seems to be the Solaris 10 sshd only that is affected. Before I write up a bug report, has anyone else come across the same problem?

    I finally got it working. I think my problem was that I was coping and pasting the /etc/pam.conf from Gary's guide into the pam.conf file.
    There was unseen carriage returns mucking things up. So following a combination of the two docs worked. Starting with:
    http://web.singnet.com.sg/~garyttt/Configuring%20Solaris%20Native%20LDAP%20Client%20for%20Fedora%20Directory%20Server.htm
    Then following the steps at "Authentication Option #1: LDAP PAM configuration " from this doc:
    http://docs.lucidinteractive.ca/index.php/Solaris_LDAP_client_with_OpenLDAP_server
    for the pam.conf, got things working.
    Note: ensure that your user has the shadowAccount value set in the objectClass

  • Optimistic Locking - Possible bug with Weblogic

    After extensive testing of a j2ee application Im involved with, it would appear their exists a problem with using Weblogic's Optimistic Concurrency (OL) mechanism.
    The exact problem is as follows:
    The ejbCreate and ejbRemove methods of a particular entity bean are as follows:
    public abstract class ProductBean implements javax.ejb.EntityBean {
    ejbCreate(){
    FolderEntityHome folderEH = FolderComponent.getFolderEntityHome();
    folderEH.create(getId());
    ejbRemove(){
    FolderEntityHome folderEH = FolderComponent.getFolderEntityHome();
    try {
    FolderBean folderEH.findByProductId(getId());
    catch(InvalidAccessRightsException iare)
    throw new RemoveException();
    Previously before OL was added when a RemoveException was thrown, this would cause the ejbRemove exception to fail, thus both the product and folder would still exist.
    After adding OL, when an InvalidAccessRightsException occurs giving rise to a RemoveException being thrown, weblogic simply ignores the RemoveException and deletes the Product even though the Folder could not be deleted. This causes system errors when users try to access the folder which contains a link to a product which no longer exists!
    Is anyone aware of this particular problem? Is it indeed a bug with Weblogic? For clarity, I believe I am using version 8.1 and the way in which I have implemented OL is to use an additional version column in the underlying tables for all entity beans.

    In case anyone's interested, it appears from further testing that the problem I've been having in the way the RemoveException behaves is down to the difference in which version 6.0 treats this exception compared to version 8.1!
    In version 6.0, if you threw a RemoteException at any point in the ejbRemove(), the entity would not be removed!
    In version 8.1, something wierd happens. If a RemoteException() is thrown in the ejbRemove() and sometime during the same transaction at the point of commit, the entity on which the exception is thrown is attempted to be accessed (through a finder), then the entity continues to be deleted! If on the other hand, a RemoveException is thrown and no access/modification is attempted on that entity within the same transaction, then at the point of commit, the entity is not removed!
    Seems this is indeed a problem which needs to be addressed in future releases.
    Message was edited by:
    rotan_imretxe
    Message was edited by:
    rotan_imretxe

  • CP 7 Bug? Long delay between preloader and first slide

    I am using OSX Mavericks 10.9.2 and recenly created my first project since upgrading to CP 7. My project is 15 slides and contains only audio (mp3) and image files. My preloader is set to 25%. When I upload the published project to my web server and test, there is a fairly long delay after the preloader loads and before the course begins. It last several seconds and appears as if all the elements on the first slide are missing (the only thing that shows is the playbar - I have only the CC button turned on):
    Is this a bug with CP 7? I have never experienced anything like this in CP 5.5 and 6.

    jon8979 wrote:
    During the latter part of the sync, I can open the Music app and scroll down to find the first last Artist with more songs than albums, and that is the one the device is currently working on.
    That should have been the "last" Artist, not "first". I would've edited the message, but I guess I'm too late as the option isn't available.

  • Imovie '09 v8.0.5 bugs with speed change and titles

    OK so here is what I'm experiencing.
    I take a clip and change the speed. Then I add transition from the previous clip to this one and all of a sudden I cannot play the video again. I can't delete the slowed down clip even. I can play video that is in the events library, but not that in my project. When I do mouse over the beginning of my video and play I can hear the sound but it is like it is far off in the distance and the video is just solid gray. I have run into many other similar bugs when changing the speed of a clip but could always delete the clip, quit, relaunch, and try again. With this problem I added a transition and can't even delete the clip. Apple please address this issue. Thanks!

    I am having the exact same issue. Change the speed of a clip in the project, then the ongoing video screen no longer displays the project correctly (but does display when playing clips from the library). This happened recently as I've made several older projects on iMovie 09 using multiple speeds. Perhaps a bug with the 8.0.5 update.

  • [svn:fx-trunk] 9287: Fixes bug with shader-transition effects ( AnimateTransitionShader, Wipe, and CrossFade) when acting on targets that either have filters or are inside a hierarchy with filters .

    Revision: 9287
    Author:   [email protected]
    Date:     2009-08-13 15:53:43 -0700 (Thu, 13 Aug 2009)
    Log Message:
    Fixes bug with shader-transition effects (AnimateTransitionShader, Wipe, and CrossFade) when acting on targets that either have filters or are inside a hierarchy with filters. Fix was to capture the bitmap snapshot of the target without any of its own filters applied and to then use the ShaderFilter in conjunction with the target's filters during the animation.
    QE notes: Probably need more tests in this area, now that we handle it
    Doc notes: none
    Bugs: sdk-20250
    Reviewer: Jason
    Tests run: Checkintests, Mustella (spark/effects/[AnimateTransitionShader|Wipe|CrossFade])
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-20250
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransiti onShaderInstance.as

    Lots to be excited about. BUT...Just updated to 8.1 on one of my computers to test it out...
    Sadly, the following issue is NOT fixed for me. Is it with new projects only?  I haven't started a new project on 8.1 I've only opened an old project but the issue that I'm referring to which involves also a delay/freeze of anywhere from a few seconds to a MINUTE while the render bar goes from yellow to red and then back to yellow is still there. Boo.
    On the list above...
    Switching between sequences can turn the render bar red.
    This issue is incredibly easy to replicate. I really do hope it gets fixed. Here are the steps:
    1) Create two sequences with multiple short clips (the more clips the better)
    2) Make sure GPU acceleration is enabled.
    3) Add warp stabilizer to the clips in both sequences. Again, the more clips the longer the delay/freeze will be as the render bar goes from YELLOW to RED and then eventually back to YELLOW again.
    4) Hit SAVE.
    5) Now, toggle between sequences. You'll hit a short delay with a few clips stabilized and a LONG delay with lots stabilized. In my case this delay is around a full minute. The render bar will go from YELLOW to RED and then back to yellow...eventually.
    6) Toggle back to the original sequence and the delay occurs again.
    7) Once you've toggled between sequences and have gone through this delay, that's it, there is no longer a delay...UNTIL...(and here's the big kicker)...until the project is SAVED again. After that the issue returns when you toggle between sequences. Both saving manually and AUTOSAVING cause this issue. No way around it except not editing with GPU acceleration.
    Not sure what the issue is...caching issue when saving maybe? Either way, it stinks and it's still there in 8.1. Big bummer.
    Again, lots to be excited about with this release but I really was hopefully this specific issue was resolved.
    Sigh.

  • Possible bug with replace on clobs?

    I couldn't find this documented anywhere, and wanted to check if I had data corruption or if there indeed is a bug with replace on long clobs.
    Best I can figure, if you are replacing before the 32768 border and a previous replace in that clob moves the new location to be after 32768, then your clob gets clobbered in that area.
    I'd like to know if this is a verifiable bug so that I feel better about having written my own replace using instr/substr.
    Oracle 10g (10.2.0.1.0)
    Test procedure:
    ======================================
    declare
    vclob clob;
    tempc1 clob;
    tempc2 clob;
    pos number;
    ch char(1);
    begin
    vclob := rpad('*', 32749, '*') || '****12345./~\.12345*' || rpad('*', 10000, '*');
    for vi in 1..5 loop
    ch := to_char(vi);
    tempc1 := vclob;
    pos := instr(tempc1, ch);
    while (pos > 0) loop
    tempc1 := substr(tempc1, 1, pos-1) || 'BUGS' || substr(tempc1, pos+1);
    pos := instr(tempc1, ch, pos+1);
    end loop;
    tempc2 := vclob;
    pos := instr(tempc2, ch);
    while (pos > 0) loop
    tempc2 := substr(tempc2, 1, pos-1) || 'BUGGY' || substr(tempc2, pos+1);
    pos := instr(tempc2, ch, pos+1);
    end loop;
    dbms_output.put_line('Replace ' || ch || ' at ' ||
    instr(vclob, ch) || ' and ' ||
    instr(vclob, ch, instr(vclob, ch)+1));
    dbms_output.put_line(': 32750 32760 32770 32780');
    dbms_output.put_line(': 67890123456789012345678901234567890');
    dbms_output.put_line('Original: ' || substr(vclob, 32746, 50));
    dbms_output.put_line(ch || '->BUGS : ' ||
    substr(replace(vclob, ch, 'BUGS'), 32746, 50));
    dbms_output.put_line('Correct : ' || substr(tempc1, 32746, 50));
    dbms_output.put_line(ch || '->BUGGY: ' ||
    substr(replace(vclob, ch, 'BUGGY'), 32746, 50));
    dbms_output.put_line('Correct : ' || substr(tempc2, 32746, 50));
    end loop;
    end;
    /======================================
    Output: (changed slightly for formatting)
    ======================================
    Replace 1 at 32754 and 32764
    : _______ 32750 ___ 32760 ___ 32770 ___ 32780
    : _______ 67890123456789012345678901234567890
    Original: ********12345./~\.12345***************************
    1->BUGS : ********BUGS2345./~\.BUGS2345*********************
    Correct : ********BUGS2345./~\.BUGS2345*********************
    1->BUGGY: ********BUGGY2345./~\.BUGGY2345*******************
    Correct : ********BUGGY2345./~\.BUGGY2345*******************
    Replace 2 at 32755 and 32765
    : _______ 32750 ___ 32760 ___ 32770 ___ 32780
    : _______ 67890123456789012345678901234567890
    Original: ********12345./~\.12345***************************
    2->BUGS : ********1BUGS345./~\.1BUGS345*********************
    Correct : ********1BUGS345./~\.1BUGS345*********************
    2->BUGGY: ********1BUGGY345./~\.¿¿¿5************************
    Correct : ********1BUGGY345./~\.1BUGGY345*******************
    Replace 3 at 32756 and 32766
    : _______ 32750 ___ 32760 ___ 32770 ___ 32780
    : _______ 67890123456789012345678901234567890
    Original: ********12345./~\.12345***************************
    3->BUGS : ********12BUGS45./~\.1¿¿5*************************
    Correct : ********12BUGS45./~\.12BUGS45*********************
    3->BUGGY: ********12BUGGY45./~\.¿¿¿5************************
    Correct : ********12BUGGY45./~\.12BUGGY45*******************
    Replace 4 at 32757 and 32767
    : _______ 32750 ___ 32760 ___ 32770 ___ 32780
    : _______ 67890123456789012345678901234567890
    Original: ********12345./~\.12345***************************
    4->BUGS : ********123BUGS5./~\.1¿¿5*************************
    Correct : ********123BUGS5./~\.123BUGS5*********************
    4->BUGGY: ********123BUGGY5./~\.¿¿¿5************************
    Correct : ********123BUGGY5./~\.123BUGGY5*******************
    Replace 5 at 32758 and 32768
    : _______ 32750 ___ 32760 ___ 32770 ___ 32780
    : _______ 67890123456789012345678901234567890
    Original: ********12345./~\.12345***************************
    5->BUGS : ********1234BUGS./~\.1234BUGS*********************
    Correct : ********1234BUGS./~\.1234BUGS*********************
    5->BUGGY: ********1234BUGGY./~\.1234BUGGY*******************
    Correct : ********1234BUGGY./~\.1234BUGGY*******************======================================

    Correct me if I'm wrong. What this lines does (if there isn't a space between the two single-quotes) is removing the string represented by xmlnsVal from the string xmlDoc. I've been using this method in some situations.
    But I don't know why it won't work either. However, isn't it necessary to do conversion from CLOB to varchar2 before calling replace? Maybe the implicit conversion isn't so reliable. I've seen someone did the following:
    -- clobvar is CLOB
    -- stringvar is varchar2(4000)
    stringvar := cast(clobvar as varchar2(4000));      -- not testedAfter that you can use stringvar in your replace function.
    Or alternately, if exists in 9i, you can try the function regexp_replace() instead. Good luck.

  • IPhone 5 ios 6.1 siri bug with headphone

    Hello,
    I noticed today that after I updated to IOS 6.1 siri no longer works when I use a headphone and have the phone in my pocket.  If I initiate siri using the headphone button, it beeps for me to speak then immediately beeps to indicate siri is no longer active.  It works if the phone is out of my pocket.  Perhaps there is a bug with the proximitiy sensor that turns off siri?  Can anyone confirm this and if so, how can I submit this as a bug to apple?

    Same thing happens to me. It's happening because using the headset activates the siri button, then your leg touches the button immediately dismissing or quitting siri. The only solution I know of is to turn the screen of your phone away from your leg while the phone is in your pocket.

Maybe you are looking for

  • Getting NTVDM.EXE errors in itunes - keeps crashing

    Every time I start itunes I get a "16 bit MS-DOS Subsystem" error. Message reads... C:\WINDOWS\system32\ntvdm.exe Error while setting up environment for the application. Choose 'close' to terminate the application I then have the option to close or i

  • Enhanced Podcast question(s)

    I used SoundtrackPro to create an enhanced podcast. I shows up in iTunes as one long track (with chapters and graphics embedded) pretty much how I intended it show. However 1) I'm not sure how to access the url links that I embedded in it as well (I

  • Equivalent of ValueList function in SQL

    Hi, Is there an equivalent of valueList function in SQL? Here's what I am trying to do: Suppose I have the following table: Name -- Color John -- Green John -- Red Mike -- White I want to do a query such that the colors are aggregated as a list. So t

  • BAPI, IDOC, ALE, RFC

    Hi friends, I am new in BAPI IDOC ALE I want to learn these Topics but i dont have any clue or material about this. Kindly help me to learn this topics, please give me material and basic clue for this, Many Thanks Jahnavee Trivedi

  • How to check for black rectangle special character

    hi , i have a field that contains the black rectangle special character and when i copy it to the pl/sql's screen it's showing the square bracket. --> however when i saved the view it turns from to . and this has disrupted my check as follows field1