tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* What is the best way to replace strings in binary files?
@ 2001-02-27  2:50 Sweatt, Wayne
  0 siblings, 0 replies; only message in thread
From: Sweatt, Wayne @ 2001-02-27  2:50 UTC (permalink / raw)
  To: tru64-unix-managers

Dear DUGurus,

 I haven't really tried to do this before, but would like to replace a
string in a binary file.
What is the best tool to use for this?  

Just for the curious, and Oracle DBA types:
I was going to do something unconventional and change the alpha string in an
Oracle export
file that denotes the tablespace name and change it from "SYSTEM" to
"USERS".
Looks like sed won't do it. 
I know of the traditional method of changing tablespaces by dropping the old
one, recreating
the table in the desired tablespace and then importing the table with
ignore=y...BUT, this
seems so much simpler to do, since I could actually perform this on multiple
tables at one whack.
I could do a user export, change all of the 'TABLESPACE "SYSTEM"' strings to
call out the
desired "USERS" tablespace and be done with it. Should work , right?

Thanks!

Wayne

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-27  2:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-27  2:50 What is the best way to replace strings in binary files? Sweatt, Wayne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox