Solved

Recover sysaux file

Posted on 2013-01-08
5
302 Views
Last Modified: 2013-01-08
How do I recover sysaux since I don't have backup for it?
0
Comment
Question by:lium1
  • 3
  • 2
5 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
You don't.  Without a backup to start from, you are sort of out-of-luck.

You can recreate the tablespace but you will need to rebuild any objects housed in the old one.

Here is the doc link that talks about it:
http://docs.oracle.com/cd/E11882_01/server.112/e25494/create004.htm#i1011308

You can then look at the list of normal occupants of it to see if you were using any of them.
0
 

Author Comment

by:lium1
Comment Utility
Any suggestions?
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
None that I didn't post already: rebuild it.

This is why backups are a good thing.

As noted in the docs, sysaux normally is for Oracle add-ons and utilities.  If you aren't using them then you should be OK.  Just offline/drop the tablespace.

If you think you might need it, export the important schemas in the database, then create a new database and import the data back in.

You will lose any data that was in sysaux but since you have no backups, I have to assume this was a test or dev database so it shoudn't matter.
0
 

Author Comment

by:lium1
Comment Utility
Can you explain a little bit more in details by meaning of export the important schemas in the database, then create a new database and import the data back in?

Syntax and procedure, please?
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
Comment Utility
I assume there are 'important' tables/procedures/etc... in the database?

Those are owned by some user.  This is a schema in Oracle (a database users that owns objects).

You can use classic exp or the new expdp to export those users/schemas you want to keep/migrate over to the new database.

The docs have everything you need to do this. Even examples.  There are also a TON of links out there on these utilities.

expdp:
http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#i1007466

classic exp:
http://docs.oracle.com/cd/E11882_01/server.112/e22490/original_export.htm#BABBHCIE

To create a new database, run dbca.  This should be the same steps you ran when you created the database you currently have.

Again, the online docs should have everything you need.

Creating a Database with DBCA
http://docs.oracle.com/cd/E11882_01/server.112/e25494/create002.htm#ADMIN12479

Creating and Managing a Database with DBCA
http://docs.oracle.com/cd/E11882_01/server.112/e10897/install.htm#ADMQS023
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

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…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

763 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now