Author Topic: Strings does not work for big files  (Read 1143 times)

0 Members and 1 Guest are viewing this topic.

Offline sintheaTopic starter

  • Irregular
  • Posts: 2
    • View Profile
Strings does not work for big files
« on: August 09, 2009, 02:27:01 AM »
I was trying to calculate DBID of oracle database according to the topic http://arjudba.blogspot.com/2008/05/how-to-discover-find-dbid.html and following number 2) mechanism specified there that is using of strings keyword.

My unfortunately my oracle database datafile is so big that I could not use strings keyword for searching.

I used,
strings datafilename_loc.

It failed with big file size. What I will do now?
How I can open file with strings?

Offline artacus

  • Devotee
  • Posts: 915
  • Gender: Male
  • World domination? Never heard of it.
    • View Profile
    • Flex and Specs()
Re: Strings does not work for big files
« Reply #1 on: August 12, 2009, 11:12:20 AM »
Try it from stdin instead. I don't have a datafile handy to try it on, but I'd guess the dbid would be near the start of the file.

head -n 100 | strings | grep DBID


artacus

-- Trust your leaders, depend on your government, don't question the media... and this won't hurt a bit. --