Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Need help renaming datafile with <cr> in name.
Unfortunately, in creating the tablespace for our Enterprise manager
repository we hit a return before entering the close quote and contined the
create command on the next line in SVRMGR. This created a datafile whose name
was, in effect,
oem_data.dbf^M
and this is reflected in file system listings, OEM listings of datafiles, etc.
A simple trick to rename the file in the system (AIX), however, we want to figure out how to do this within Oracle (7.3.2). Unfortunately, the create and rename function seem asymetric--you can create a datafile with the <cr> but can't rename one that has a <cr> in it. The listing at the bottom of this message shows our rename attempt, which is structured the same way as the create statement.
Any thoughts on how to solve this problem? Should we drop the tablespace, delete the file, and recreate the tablespace in a new file?
Thanks much for your thoughts on this!
=ksc
[Note the placement of the close quote from line 2 on line 3; this is the same placement that caused the oem_data.dbf file to be created with <cr> appended to the name.]
SVRMGR> ALTER TABLESPACE "OEM_DATA" OFFLINE NORMAL; Statement processed.
SVRMGR> ALTER DATABASE RENAME FILE 2> '/emc1/oradata/axis/oem_data.dbf 3> ' TO '/emc1/oradata/axis/oem_data.dbf';ALTER DATABASE RENAME FILE
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Wed May 05 1999 - 12:58:30 CDT