Regexp_replace doesn't replace anymore

HI all,
I recently had to downgrade my database version from 10.2.0.3 TO 10.2.0.1 (see below for details).
Since this changement, a call to regexp_replace doesn't work anymore.
Here is a sample code :
DECLARE
ctx dbms_xmlgen.ctxHandle;
xml CLOB;
req varchar2(4000);
BEGIN
req := 'SELECT table_name FROM user_tables';
ctx:=dbms_xmlgen.newcontext(req);
dbms_xmlgen.setnullhandling(ctx, dbms_xmlgen.EMPTY_TAG);
xml := dbms_xmlgen.getxml(ctx);
IF dbms_xmlgen.GETNUMROWSPROCESSED (ctx) = 0 THEN
xml := '<?xml version="1.0" encoding="ISO-8859-1"?>';
xml := xml || '<ROWSET/>';
ELSE
xml := regexp_replace( xml, '^<\?xml(.+?)\?>', '<?xml\1 encoding="ISO-8859-1"?>');-- Call that does'nt work
END IF;
dbms_xmlgen.closeContext(ctx);
dbms_output.put_line('* AFTER *' || xml);
dbms_xmlgen.closeContext(ctx);
END;
/The output xml is blank ('* AFTER *' || xml) whereas in last version it was not.
I can't find any relation between regexp_replace and Oracle 10.2.0.3.
TIA
Stephan
LAST version
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
"CORE     10.2.0.3.0     Production"
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - ProductionNEW version
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
"CORE     10.2.0.1.0     Production"
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

Test 1
select regexp_replace( '<?xml version="1.0"?>' , '^<\?xml(.+?)\?>', '<?xml\1 encoding="ISO-8859-1"?>') from dual;OUTPUT
REGEXP_REPLACE('<?XMLVERSION="1.0"?>','^<\?XML(.+?)\?>','<?XML\1ENCODING="ISO-8859-1"?>')
<?xml version="1.0" encoding="ISO-8859-1"?>
1 rows selected-------------------------------------------------
Test 2
/* and do the same with the previous :xml variable */
var x clob;
exec :xml := '<?xml version="1.0"?>';
select regexp_replace( :xml , '^<\?xml(.+?)\?>', '<?xml\1 encoding="ISO-8859-1"?>') from dual;OUTPUT
anonymous block completed
REGEXP_REPLACE(:XML,'^<\?XML(.+?)\?>','<?XML\1ENCODING="ISO8859-1"?>')
(CLOB) (CLOB) <?xml version="1.0"?>
1 rows selectedStrange... isn't it ?
Test 3
set role NONE
(...) OUTPUT
set role réussi.
anonymous block completed
* in between *<?xml version="1.0"?>
<ROWSET>
<ROW>
<TABLE_NAME>N43005</TABLE_NAME>
</ROW>
<ROW>
<TABLE_NAME>N43010</TABLE_NAME>
</ROW>
<ROW>
<TABLE_NAME>N43011</TABLE_NAME>
</ROW>
<ROW>
<TABLE_NAME>N
* AFTER *
Nothing after "* AFTER *".

Similar Messages

  • Tried to restore from backup but it's asking for my iCloud password for an email address that doesn't exist anymore. What do I do?

    I had my phone replaced today and have tried to restore from the backup I made this morning. It didn't restore properly so I wanted to try again but I can't as it asks for my iCloud password for a non-existant email account. I changed my iCloud email about 6 months ago but my phone still thinks that is the correct email and I can't change it, can't reset my phone, can't do anything. What do I do?

    The fact that the email address doesn't exist anymore doesn't matter. As far as the Apple ID is concerned, the email address is just a user name. As long as you know the password you used, it should be fine.
    If you don't remember the password, start here:
    https://iforgot.apple.com

  • Javascript doesn't exist anymore...

    Hi,
    I've just got a problem when I wanted to open my website in dreamweaver. I've got a problemreport that a Javascript doesn't exist anymore and when I open my website know the whole layout is messed up.
    I didn't changed anything in the html-code before I opened dreamweaver...
    The javascript that causes the problem is next:
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    Is there someone who can help?
    Thanks in advance!
    (excuse my bad English)

    Murray's link, although useful in case of other problems, does not contain the problem that you are experiencing.
    What DW is saying is that you have got a constructor for a non-existing widget (in this case a SpryMenuBar) in your document. The cause of the message can be
    You have removed the widget
    You have assigned an ID with a name that does not correspond with the constructor.
    If you cannot figure out the answer using the above info, please post your markup and I shall have a look at it.
    Gramps
    Looking at your previous posts it looks like you have replaced the original SpryMenuBar with Spry Menu Bar v2. If this is the case, it will be safe to delete the following lines of code
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    That will get rid of the error message when opening DW.
    Incidentally, you might like to change the first line of code in your document to <!DOCTYPE html>
    Groetjes!
    Message was edited by: altruistic gramps

  • My photoapparel of myIPod Touch doesn't work anymore. What's up ???

    The photoapparel of myIpodTouch doesn't work anymore. It doesn't appear when i open it...?????

    Hi!
    Nice to meet you here. Im very new to here and joining here yesterday, so please bear with me. So since you say that your iPhone 5 home button not working or broken so time to call Apple Support or make a appointment at your location nearby Apple Store by calling 1-800-MY-APPLE so they could get a replacement for your phone so you would not have any this kind of problem anymore!

  • My lock button of my iPhone 5 doesn't work anymore.. What now??

    Hy, my lock button doesn't work anymore..
    What can i do to fix this problem? Xs

    Hi!
    Nice to meet you here. Im very new to here and joining here yesterday, so please bear with me. So since you say that your iPhone 5 home button not working or broken so time to call Apple Support or make a appointment at your location nearby Apple Store by calling 1-800-MY-APPLE so they could get a replacement for your phone so you would not have any this kind of problem anymore!

  • The main button of my Iphone 5 doesn't work anymore. do you have a solution? thanks

    The main button of my Iphone 5 doesn't work anymore. do you have a solution? thanks

    Get a replacement phone. If it is still covered by warranty it will not cost anything. See: https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • Touch Pad of Satellite P50-A-M13 doesn't work anymore - Solution

    Hello *,
    before someone should have the same problem, I wanted to share my problem and my solution here:
    Information about my system:
    I have installed Windows 8.1 Professional and Scientific Linux 6.5 in Dual Boot on my Toshiba Satellite P50-A-M13.
    _*Problem:*_
    The Touch Pad suddenly doesn't work below Windows 8.1 Professional anymore, the mouse pointer vanishes after a reboot. You can't deactivate/activate the Touch Pad with the F5 key (without pressing the FN-button) anymore. The white LED of the Touch Pad doesn't work anymore. Another operating system (in my case: Scientific Linux) in Dual Boot doesn't recognize the Touch Pad anymore after a reboot, too. So it isn't working below the other operating system anymore, too. It looks like a hardware defect since it affects more than one operating system.
    _*Additional information:*_
    If you attach an external USB mouse to your Toshiba notebook, the Touch Pad will work again, you can activate/deactivate the Touch Pad via the F5 key (without pressing the FN-button) below Windows 8.1 again, but the white LED of the Touch Pad still doesn't work and doesn't turn off or on. Same below another operating system in Dual Boot. The BIOS doesn't offer a feature that you can activate or deactivate the Touch Pad there.
    Reason:
    I had the problem that the feature "automatic driver installation" below Windows 8.1 Professional was activated. The driver for the Synaptic Touch Pad got replaced by a Microsoft driver in the background automatically.
    _*Solution:*_
    _Keep the external USB mouse attached and start Windows 8.1 if it isn't started already. Then deactivate feature "automatic driver installation" below Windows 8.1. Then reinstall the Synaptic Touch Pad driver from the download page of Toshiba website again. Then reboot Windows. The Touch Pad should work then again. And never, never activate the feature "automatic driver installation" below Windows 8.1 again!_
    Many thanks, Jana

    Thanks Jana for this post!
    I also noticed that sometimes Windows updates could break the driver functionality...

  • Satellite M70: Battery doesn't work anymore

    The battery of my brand new satellite M70 doesn't work anymore. I didn't use the portable for about a week and when I tried to start it (from battery), it didn't do anything. The battery was still loaded (63%) I have to connect the AC adapter to the power supply to make it work.
    Meanwhile the battery LED is always orange. The battery doesn't load, battery power remains 63%. I tried to remove the battery for a while and put it back in, but this didn't change anything...
    How can I solve this problem?

    Hi
    Possibly the battery has a malfunction. It would be very interesting to know if this issue happens after battery replacing.
    According to your posting the warranty should be valid the battery replacement should be done for free.
    I recommend contacting the Toshiba service partner in your country and ask the guys for the help.

  • Satellite C55-A-1DC doesn't start anymore

    My computer doesn't start anymore!
    When I push the on button, everything is going like it supposed to go,until you see the screen with:
    Toshiba
    Leading Innovation >>>
    And then it just stays stuck at that for a while, and then it just goes black!!
    I don't know what to do anymore :(
    Please help me!!
    (sorry for my bad english:( )

    Are you able to access the BIOS?
    Check this by pressing the F2 button after powering on the unit.
    If this isnt possible, there must be some kind of hardware problem (motherboard, RAM).
    In case you could access the BIOS, check the first BIOS page. Usually the HDD should be listed there. HDD name, size information should be visible.
    In case this HDD isnt listed, I assume your HDD is faulty and should be replaced.
    Of course, you would need to reinstall the system once again.
    In case the HDD is listed in BIOS, I would recommend you to boot using the Recovery disk (or another Windows installation disk) in order to reinstall the system.

  • How to deauthorize a computer , that doesn't exist anymore?

    I unisnstalled windows , and for some reason when i inserted my ipod to the freshly installed windows+itunes , and logged on my account , iTunes said , that its a new computer and asked me to authorize it , and so i did.
    My question is: how can i deauthorize my old version of windows , that doesn't exist anymore?
    I also have another question in this topic : When i want to buy items from itunes from a new device , it asks for my bank card number , and takes 1-2 dollars from it. Is this ok?

    Take a look at this Apple support article; it may help:
    One computer using multiple iTunes Store authorizations
    When i want to buy items from itunes from a new device , it asks for my bank card number , and takes 1-2 dollars from it. Is this ok?
    I'm not sure what you mean by this. What "items"? If you are referring to music, videos or movies, you get only one download per purchase, so if you buy the items again, whether from another device or the same one, yes, you will be charged again. Only apps allow redownloading without additional charge.
    Regards.

  • My Iphone 5s doesn't ring anymore (sms, whatsapp, phone call, reminder in the calendar, etc)

    My Iphone 5s doesn't ring anymore (sms, whatsapp, phone call, reminder in the calendar, etc) I can't find why.
    I trieds to go on Youtube and for that I have sound so it is just for the rings.
    Can somebody help me please?
    Thank you so much!
    Mary

    Have you checked your mute switch (right above the volume buttons)? If you see orange, it is muted and will affect the rings, but not the audio on YouTube.
    Just toggle the switch so you don't see the orange and check again.

  • Last week, I had no problems streaming my MacBook Pro to my sony Bravia with a logix hdmi cable. I came back from holidays and now it doesn't work anymore.  What settings should my computer be on and what settings should my tv be on?

    Last week, I had no problems streaming my MacBook Pro to my sony Bravia with a logix hdmi cable. I came back from holidays and now it doesn't work anymore.  What settings should my computer be on and what settings should my tv be on?

    TarahCurrie Sep 10, 2014 3:48 PM
    Restore From Time Machine Backup
    Reinstall OS X
    Get Help Online
    Disk Utility
    MacBook Pro, Mac OS X (10.5.8)
    You are running 10.5.8
    Did you try booting off your Install disk holding the c key down.  From here you can get to the drop down menu just a few clicks in (you are not going to install) and run  the Disk Utility>Repair Disk.  See if it will let you do this.

  • If i selected to "Create a new backup" and then cancelled that option but want to go back and select "Inherit backup history"; how do i go back and do that since now when i plug in my HD, that option doesn't appear anymore?? Any Help?

    If i selected to "Create a new backup" and then canceled that option but want to go back and select "Inherit backup history"; how do I go back and do that since now when I plug in my external hard drive, that option doesn't appear anymore?? Any Help? I bought a MacBook Air, but decided to return it for the newest model, and I wanted to back it up so that I can then back it up on my new MacBook Air. I didn't understand the option to Inherit or start a new back up, and therefore selected the option to create a new backup. I believe I should have selected to Inherit backup history so that when i back it up on the new MackBook Air, it appears the same as the one I'm returning.... Is there anyway that i can re-select the option to Inherit backup history for time machine?

    Thanks for sharing this link.
    I've posted a question here https://discussions.apple.com/message/22049103#22049103 describing my situation. Are you able to suggest me the right option?

  • Efi Express doesn't work anymore so I can't print

    I Use Efi Express as RIP and colormanagement software to print to my Epson Pro 4900 printer. Now I need prints and this doesn't work anymore.
    I installed Maverick so that is most likely to be the problem, because just before I did this the pritner and software worked fine. I installed Efi Express again but I keep getting a message aboutr a system extension that isn't properly installed.
    I looked in the system folder for this .kext file, but it doesn't exist at all.
    Please help.

    We use the Fiery Express driver with our Canon copiers that use the optional EFI print controller and have no issue with this driver on 10.9. In fact, at this point in time, it is the only EFI driver we have for 10.9.
    The Express driver plugins should be located in /Library/Printers/efi and the PPD will be in /Library/Printers/PPDs/Contents/Resources/en.lproj and is called Fiery Express. So trash these files and check the EFI web site for the latest version of the driver.

  • I can't seem to get my iMac (late 2009 model) into automatic sleep mode.  If I manually put it into sleep I don't have any issues.  I used to solve the issue by running "PleaseSleep" application but that doesn't work anymore since Lion.

    I can't seem to get my iMac (late 2009 model) into automatic sleep mode.  If I manually put it into sleep I don't have any issues.
    I used to solve the issue by running "PleaseSleep" application but that doesn't work anymore since Lion. I now want to fix the underlying problem.
    I'm not running any weird background processes and in my energy saver settings I've tagged "put the hard disk to sleep when possible:, "allow power button to put computer to sleep" and "automatically reduce brigthness". All pretty standard.
    Is there anyone who can give me some pointers ?

    Today I solved the same problem for my iMac running Snow Leopard. See https://discussions.apple.com/thread/3008791#15947706. The method may help you, too.
    For me it was the DynDNS Updater preventing my iMac from automatically entering sleep mode.
    To my knowledge the cause of this sleep problem can only be a peripheral device or a process. So I suggest to first unplug all peripherals and test whether that's the cause. If not, I suggest to terminate one process after another and to test automatic entering of sleep mode after each. Start with user processes; continue with system process if necessary.
    At least that's the way I found the offending process. Fortunately, I was able to change the configuration of that process to allow again automatic entering of sleep mode.
    Good luck!

Maybe you are looking for

  • Convert report from SAP to Excel

    Hi All, How to convert report from SAP to Excel.Here now taking default text(.txt) format.But we want defualt taking (.xls) format only. Regards Usha

  • Webdynpro ABAP ALV in SAP ECC6 - EHP4: To disable Column Selection

    Hi All, We are using SAP ECC6 EHP4 and  for Webdynpro ABAP application, after each column a vertical white line is appearing, and I need to hide this.. SAP suggested us to disable COLUMN SELECTION I have tried the below code but still I am not able t

  • F110 - output using Form and Driver program

    Hi All, I need to prepare Sap Script Form for F110 tcode. standard scriptname to be use is F110_IN_AVIS standard driver program to be use is RFFOAVIS_FPAYM. but i dont know, where to assign these to F110 and check the output weather Form is displayin

  • Using iplanet with bea

    I just got started with this projectwhere we need iplanet to play therole of web-server that uses a weblogicapp server as middle tier.And a portion of the site needs securesessions with the browser.Now, my question is, should i install thecertificate

  • I lost access to sound Cloud! help plz

    I lost access to sound Cloud! help plz