Question

ORACLE 7.3 Recovery problem: Inexperienced ORACLE "DBA" here, PLEASE help

Asked by: Mustangz

First off, I know very very little about Oracle, so please be detailed in your explanations and consider the versions of tools I am using.

This is all on an Oracle 7.3.2.3.1 Database that is running on an NT4 server.

I have access to the following tools:

Oracle Enterprise Manager 1.3.6
SQL*Plus 3.3.4.0.0


I created several new datafiles (all set at 2gb in size) because I have to upload a bunch of new data to this DB, but one was created in the wrong location. So I 'tried' to take that datafile 'offline' but it stated STATUS as RECOVER.
So in Storage Manager I highlighted the Tablespace, that contains this datafile, on the left pane. This showed me the list of all datafiles within this tablespace, so I highlighted the datafile in question (FIL11ORCL.ORA) and chose the 'Offline' option above, and this inadvertantly took the whole tablespace offline. So now ALL of the datafiles status show as RECOVER.

I try to bring the tablespace back online and get the following errors:
ORA-01113: file 7 needs media recovery
ORA-01110: data file 7: 'D:\DOC_DATA\FIL1ORCL.ORA'  <--- notice not the same file


I've searched here on EE, and have found several things that I thought might work and some of the commands just don't work with my SQL Plus, or because my DB is 7.3?
For instance the RECOVER command returns 'unknown command'.

I'm completely lost, and in big trouble if I can't get this thing back up and running by Monday morning. They tossed this ancient DB in my lap because I have 'some' db experience, and now my 'experience' has gotten me into a pickle.

Any and ALL help will be greatly appreciated.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-08-13 at 09:15:44ID21526190
Tags

recover

,

recovery

,

7.3

Topic

Oracle Database

Participating Experts
2
Points
500
Comments
9

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Oracle DBA
    How to proceed with Oracle DBA ..
  2. Oracle DBA Responsibilities
    Hi, can anyone give me a list of responsibilities of Oracle DBA(Maintenance)? Can I also get any checklist sort of list that a DBA should monitor/Query about the database on a daily basis or in particular intervels to ensure that the database is running well or some interve...
  3. Oracle DBA - undo tablespace in RAID5
    Hi, Is it ok to keep UNDO Tablespace in RAID 5 or need to keep on internal disk? oracle 9i/sun solaires. what is difference between undo tablespace and redo logs?
  4. Tablespaces
    Hi Folks, We are running Oracle 9i with several different users and probably all of the tables are using the default system tablespace. Recently in one of our created users we have not been able to insert new records as we encountered the tablespace full error. What wou...
  5. Tablespace and Database in Oracle
    What is the relationship between Tablespace and database in Oracle. Extract from ebook material : CREATE DATABASE TEST CONTROLFILE REUSE LOGFILE GROUP 1 ....... DATAFILE 'C:\ORADATA\TEST\SYSTEM01.DBF" SIZE 500M CREATE TABLESPACE HIST2004 DATAFILE '/O...
  6. Oracle DBA: Swapping Tablespaces - New Drives
    We are using Oracle 9i on a server with TOAD 8.6 (registered with DBA module) We have two tablespaces on a drive (logical drive G:). One is a use and one is a Master that we all use. Oracle and other tablespaces are running from another physical drive (logical D:). We are r...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: angelIIIPosted on 2005-08-13 at 09:34:12ID: 14667762

in Oracle 7.3, the database/instance operations where not to be performed using sqlplus, but svrmgrl.
to try to perform the RECOVER DATABASE using that command line tool.
to start svrmgrl, ensure the oracle variables are all set (ORACLE_SID, ORACLE_HOME and PATH including the $ORACLE_HOME/bin).
to connect, use the command CONNECT INTERNAL;
Hope this helps already to take the first steps.

 

by: MustangzPosted on 2005-08-13 at 10:19:32ID: 14667848

OK, well thanks for the reply.. but I have no idea how to perform the CONNECT INTERNAL command, since you said SQL Plus is something I should NOT be using. I can find a 'svrmgrl' anywhere, what is this?

 

by: MustangzPosted on 2005-08-13 at 10:38:49ID: 14667882

I coudn't find the 'svrmgrl' anywhere, but did just find a 'svrmgr23' in the ORANT\BIN directory..

OK, so now I'm connected to the DB with svrmgr23, and am not sure how to attempt recovery... since the syntax that HELP gave me for the CONNECT  command was NOT how I actually got connected after many tries, I'm scared to attempt the recovery command with the syntax it gives me, I don't want to hurt the DB any more than I all ready have.

Can you give me the EXACT syntax I need to type to recover 'F:\ORANT\NightlyBackups\FIL1ORCL.ORA'  <----- that's the backup file of the original:  'D:\DOC_DATA\FIL1ORCL.ORA'

again, TIA.

 

by: markgeerPosted on 2005-08-13 at 13:04:21ID: 14668078

Yes, the tool you need for Oracle 7.3 is svrmgr23.  The "connect" syntax is very simple: "connect internal".  That will most likely succeed without prompting you for a password.  If it does prompt you for a password, you will need the password for the SYS account.  What I would suggest before you do anything else is "shutdown immediate", then exit Server Manager and take a cold backup.  To do that, stop the service: OracleService[SID] then simply copy all of the datafiles, the on-line redo log files and the control file(s) to alternate disks.  This will allow you to at least get back to the current point, if you have a problem.

After that, start the service, then restart Server Manager (svrmgr23) and type "connect internal".  I recommend that you then do: "startup mount".  (If it says something like "instance or database already started or running", then do "shutdown immediate", then "startup mount").  This will put the database in a special "maintenance" mode where it is not open for normal use, but will allow you to move a datafile.  To move a datafile, just use a DOS or Windows copy command to put it where you want it, then from Server Manager do:
alter database rename file '[old_path\file_name]' to '[new_path\file_name]';
With the database in that state, you should also be able to recover any files that need it.  With newer versions of Oracle (I'm not sure if this works with Oracle7.3 or not - it's been eight years since I've seen that version) you can simply do: "recover database" or "alter database recover" and Oracle will automatically recover any/all datafiles that need media recovery.

You may need syntax like: "alter database recover datafile '[path_and_name_of_datafile]';"

If that succeeds, you simply then do:
alter database open;

If that succeeds, I would recommend that you then do:
shutdown immediate;
and take another backup, then do a normal startup.

 

by: MustangzPosted on 2005-08-13 at 13:25:43ID: 14668184

markgeer,
I appreciate the detailed response.. I have been playing with the DB for a few hours now, so I have made 'some' progress.

I somehow managed to get the tablespace back up and running, and all datafiles 'recovered' and were ONLINE. I tested the application that uses this DB/Tablespace, and everything seems(ed) good. So I then attempted a few more things to try and move that datafile that I created in the wrong location, and am now back to where I was just before I shutdown the tablespace by accident this morning.

Right now the tablespace is running, and all datafiles EXCEPT the one I want to move are ONLINE. The one I want to move, I tried to turn OFFLINE within Storage Manager. This resulted in it showing STATUS of RECOVER.

So, I was going to try the methods you described above, and I apparently have insufficient privileges to SHUTDOWN IMMEDIATE (I imagine this shuts down the entire DB and not just any specific tablespace since there was no tablespace specified in the command?)

My login does seem to have 'most' rights over the Tablespace I need to move the datafile for, so is there another method other than doing the SHUTDOWN IMMEDIATE to gain this ability to REANME FILE ?

Again thanks so much for the help, I feel I'm almost there.

 

by: markgeerPosted on 2005-08-13 at 15:28:16ID: 14668603

Having the database running again is a good thing!  If there is nothing (or at least nothing important) in that tablespace yet, it  may be may be simpler to drop it and recreate it where you want.  But I just remembered that may be complex in Oracle7.3.  In Oracle8.0 and higher, you can do "drop tablespace [tablespace_name] including contents;" but Oracle7.3 does not support that syntax if I remember correctly, and it may not let you drop a tablespace that is not empty.

Yes, a "shutdown immediate;" does a complete database shutdown.  If you used svrmgr23, and did "connect internal", that would give you maximum privileges, including the ability to shutdown and/or startup the database as well as rename (move) a datafile - if the database and/or datafile/tablespace are at a status that allows that.

Usually when I move a datafile, I have the database shutdown, and then do a "startup mount" but I think it is possible to take a particular tablespace offline, then move it (with two steps: an O/S file copy, then in Oracle "alter database rename datafile '[old_location\name]' to '[new_location\name]';)

 

by: MustangzPosted on 2005-08-13 at 16:49:05ID: 14668757

So it sounds like there is no other way to rename/move the datafile without being local on the Oracle server? As I'm assuming that's the only way the 'connect INTERNAL' will work, since it doesn't work for me remotely. I have to log in with a user account via the CONNECT command. And again, it said I didn't have sufficient privileges to perform the shutdown.

Well, for the most part it does seem to be working, and this tablespace DOES contain A LOT of data, so there is no way I'm attempting to 'drop' any tables.. Perhaps I'll have to wait until Monday to get better access to the server and just hope nothing pukes completely in the interum due to that one datafile in 'RECOVER' mode..

Any other suggestions?

 

by: markgeerPosted on 2005-08-13 at 17:14:03ID: 14668823

Right, you will have to be local to the server, or use remote control software like pcAnywhere or Sunbelt Remote Administrator (I use that for an NT4 / Oracle8.1 server I still manage).

Yes, the database should be fine with one datafile in 'RECOVER" status, and as long as no one or no process tries to use the contents of that file, no one will notice.

 

by: MustangzPosted on 2005-08-13 at 17:31:56ID: 14668859

I appreciate all of the help. I actually have VNC to get into this server, but the host keeps crashing on me, so once I have that addressed on Monday, I should be able to perform the tasks you noted above, and hopefully that will all work out for me.
I'll leave this open until then, and if all goes well, you'll have a bucket of points comin your way.

thanks again.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...