?
Solved

Newbie: Want to get an export(or equivalant) or copy done on a broken oracle datafile

Posted on 2011-09-26
6
Medium Priority
?
224 Views
Last Modified: 2013-01-13
Hi:

I have a problem with a datafile in my oracle database which runs on top of Linux.  The problem is that when I try to copy or cat the 'sys01XXXX.dbf' file i get this error:
"cp: reading `/home2/sys01XXXX.dbf': Input/output error"
and
"cat: /home2/sys01XXXX.dbf: Input/output error"

Note:
The other 5 datfiles are ok; the system has been functioning ok for over a year with this underlying problem;  I can do a full system export of the database. If possible, I don't want to have to drop everything and Import everything in again.

What I would like to achieve:
(i) Do some operation that would produce a good copy of the '/sys01XXXX.dbf' or a file that can be imported back into the database.
(ii) Transfer the other datafiles; log files; control files to a new system.
(iii) Import or copy the fixed 'sys01XXXX.dbf' into the database on the new system.
(iv) Start the database on the  new system.

Any solutions that fit close to the above would be appreciated?

Rem: I am a newbie.
0
Comment
Question by:Hope4U
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 36599867
I don't think any of your options are possible.

sys01XXXX.dbf is likely your system tablespace.  This is what hold the data dictionary.

Without this, you cannot open your database so any form of export is out of the question.

Without a proper backup of the database and configuration, you are likely out of luck.

Please confirm that your database doesn't open.
0
 
LVL 35

Expert Comment

by:johnsone
ID: 36600651
It is possible that you got extremely lucky and that whatever is corrupted is in free space.

I would run dbv on the file to see if Oracle picks up the corruption (it should because it is an I/O error).  The documentation for that utility is here:

http://download.oracle.com/docs/cd/E11882_01/server.112/e22490/dbverify.htm#i1006970

From there, you should be able to determine where the corruption is.

In all likelihood, no matter where the corruption is, you are going to have to recreate the database.
0
 
LVL 48

Expert Comment

by:schwertner
ID: 36601291
The owner of this file is the Oracle user. Possibly you run intoprivileges problem.
Also you have to stop the instance before you try to archive these files.
This will the so called "cold backup". The alternative is complex.

If you can bounce (startup the instance) the alternative of the physical backup/restore approach will be the logical export/import.

Be aware that Linux is very unstable system with a very bad file system. So try to use export (if possible).
0
 

Accepted Solution

by:
Hope4U earned 0 total points
ID: 37286507
I went with the solution outlined in Question: 'DB file transfer onto another machine and Data Guard sequence number issue' or '09/22/11 04:51 PM, ID: 27323066'
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question