RE: URGENT! Rename datafile

RE: URGENT! Rename datafile

 

  

Unless this is a system tablespace, you should not have to shut down the
database.

The datafile being offline should be good enough, I would normally put
the entire tablespace offline... but neither here nor there.

Rename the datafile first on the OS level. Then do step 3 below, then
bring it back online.

You should consider creating a new backup controlfile.

Joel Patterson
Database Administrator
joel.[Email address protected]
x72546
904 727-2546

-----Original Message-----
From: Zhang Andy
[mailto:oracledba-ezmlmshield-x74801223.[Email address protected]
Sent: Tuesday, October 30, 2007 8:33 PM
To: LazyDBA Discussion
Subject: RE: URGENT! Rename datafile

Try this:

1. shutdown immediate;
2. startup mount
3. alter database rename file 'old file nanme' to 'new file name';
4. alter database open;

Andy Z

-----Original Message-----
From: Luis Cardenas
[mailto:oracledba-ezmlmshield-x82539930.[Email address protected]
Sent: Tuesday, October 30, 2007 7:23 AM
To: LazyDBA Discussion
Subject: URGENT! Rename datafile

Gurus,



Please help me in renameing a datafile which I created with a "space" in

the name, the datafile is offline!!



Thanks







-----------------------------------------

This e-mail is sent on behalf of Trader Media Group Limited,
registered office: Unit 6, Thatcham Business Village, Colthrop
Lane, Thatcham, Berkshire RG19 4LW (Registered in England No.
4768840). This email and any files transmitted with it are
confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you have received this email
in error please notify the sender. This email message has been
swept for the presence of computer viruses. www.ciphertrust.com


---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html


---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html



Oracle LazyDBA home page