473,378 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Control Characters in column

Greetings all.
Problem: Have control characters mostly ^B which are loaded into a
table in our database forming part or a narative field. In TOAD these
appear as a thick bar - kind of like a pipe character '|' but thicker.
We need to get rid of these as they are causing problems with our
information exchange software. Does anybody have any idea how to do a
search and replace for such characters in an oracle 9i database? The
table has over 60M record so I dont facy checking it manually as I
recon Ill be 84 years old by the time im finished!
Thanks.
Jul 19 '05 #1
2 7944

"andy" <an*********@yahoo.co.uk> wrote in message
news:47**************************@posting.google.c om...
| Greetings all.
| Problem: Have control characters mostly ^B which are loaded into a
| table in our database forming part or a narative field. In TOAD these
| appear as a thick bar - kind of like a pipe character '|' but thicker.
| We need to get rid of these as they are causing problems with our
| information exchange software. Does anybody have any idea how to do a
| search and replace for such characters in an oracle 9i database? The
| table has over 60M record so I dont facy checking it manually as I
| recon Ill be 84 years old by the time im finished!
| Thanks.

use the replace and the chr functions -- if i got the chr code right, this
should work, as long as you've got a sufficiently large rollback segment:

update the60mtable
set thebadcolumn = replace(thebadcolumn,chr(2),null)
where thebadcolumn like '%'||chr(2)||'%'

;-{ mcs
Jul 19 '05 #2
"Mark C. Stock" <mcstockX@Xenquery .com> wrote in message news:<Nu********************@comcast.com>...
"andy" <an*********@yahoo.co.uk> wrote in message
news:47**************************@posting.google.c om...
| Greetings all.
| Problem: Have control characters mostly ^B which are loaded into a
| table in our database forming part or a narative field. In TOAD these
| appear as a thick bar - kind of like a pipe character '|' but thicker.
| We need to get rid of these as they are causing problems with our
| information exchange software. Does anybody have any idea how to do a
| search and replace for such characters in an oracle 9i database? The
| table has over 60M record so I dont facy checking it manually as I
| recon Ill be 84 years old by the time im finished!
| Thanks.

use the replace and the chr functions -- if i got the chr code right, this
should work, as long as you've got a sufficiently large rollback segment:

update the60mtable
set thebadcolumn = replace(thebadcolumn,chr(2),null)
where thebadcolumn like '%'||chr(2)||'%'

;-{ mcs


Thanks Mark,
Never thought to cat the %'s to the chr function...Ill away and upset the DBAs now!
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alex | last post by:
Interested in more .NET stuff visit www.dedicatedsolutions.co.uk The DataList is not as powerful as the DataGrid. It requires more work from you since it has no default data presentation format....
3
by: Frank Niessink | last post by:
Hi list, First of all, I wish you all a happy 2006. I have a small question that googling didn't turn up an answer for. So hopefully you'll be kind enough to send me in the right direction. ...
4
by: GregG | last post by:
Greetings, I have been working with the new GridView control, and while figuring out most of it's idiosyncrasies on my own, have stumbled upon a problem I cannot seem to resolve. We have...
11
by: Ron L | last post by:
I have a barcode scanner which uses a "keyboard wedge" program so that the data it scans comes through as if it was typed on a keyboard. I am trying to have the data in the barcode be displayed in...
9
by: Nathan Sokalski | last post by:
I have several TextBoxes with TextMode="MultiLine" in which I want to limit the number of characters that can be entered using a RegularExpressionValidator. I have come up with the following...
3
by: TB | last post by:
On a user control (ascx) I have a datagrid with a hyperlink column containing the following code: <asp:HyperLinkcolumn headerstyle-width="80px" ItemStyle-Width="80px" DataNavigateUrlField="ID"...
3
by: Eric | last post by:
I have created a fairly basic composite control consisting of a Label and a TextBox. In the overridden Render function, I'm creating a table with two rows and each row contains a cell (td). The...
2
daJunkCollector
by: daJunkCollector | last post by:
I am trying to display a column from a database table in the column of a datagrid. I am using a template column to display it. There are two things that are important to me: 1. If...
2
by: andy | last post by:
Greetings all. Problem: Have control characters mostly ^B which are loaded into a table in our database forming part or a narative field. In TOAD these appear as a thick bar - kind of like a pipe...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.