Datafile information deleted from control file
Hi,
I created undo tablespace and associated a path with it.I dropped the tablespace,but did not drop the datafiles.
the dba_data_files view does not show those files.
In the OS,those files exist,but i am not able to drop datafile.
When I do,
SQL> alter database datafile '\usr\lib\oracle\xe\oradata\XE\undo.dbf' offline drop;
alter database datafile '\usr\lib\oracle\xe\oradata\XE\undo.dbf' offline drop
ERROR at line 1:
ORA-01516: nonexistent log file, datafile, or tempfile "\usr\lib\oracle\xe\oradata\XE\undo.dbf"
Please help...
The files are there physically.
01516, 00000, "nonexistent log file, datafile, or tempfile \"%s\""
// *Cause: An attempt was made to use ALTER DATABASE to rename
// a log file, datafile, or tempfile; or to change attributes
// of a datafile or tempfile (e.g., resize, autoextend,
// online/offline, etc.); or to re-create a datafile.
// The attempt failed because the specified file
// is not known to the database's control file
// or is not of a type supported by the request.
// *Action: Specify the name or number of an existing file
// of the correct type, as appropriate.
// Check the relevant V$ table for a list of possible files.
Similar Messages
-
Datafile information not in control file!!!
HI all,
I up database using 2day before control file. In which datafile information is not there which was added yesterday.
Datafile physically there. But control file haven’t that datafile information. how could I recover this datafile?
Help me for resolve this problem without bring down database.
AshI am not sure whether i understood your question.
You have a 2 days old controfile backup.
you have added datafiles to the database.
you want to recover with old controlfile ?
If this is the case you can have a look
http://download.oracle.com/docs/cd/B14117_01/server.101/b10734/recoscen.htm#1006135
Recovering Through an Added Datafile with a Backup Control File: Scenario section -
SQL Loader: refer datafile name in the control file
Hi All:
Database: 10GR2
I have a table as following:
test (
filename varchar2(100),
mydata varchar2(1000)
I am using sql loader to populate data for this table. I also need store the datafile name to column test.filename as part of dataload. How to refer datafile name in the control file?
Again, I am processing multiple files in a batch mode. I need store datafile name in filename column so that I can know which "mydata" come from which datafile.
Thanks in advance!
KevinAs Bravid says, you can't do that from within SQL*Loader, unless the control files are dynamically generated by a script and the filename included as the default value for that particular column as a hardcoded literal.
It's easier if you use external tables as the table definition contains the "location" which is the list of filenames it is accessing, and the value can be queried as well as being dynamically changed (though if you're dynamically changing it, then you'll programatically know the filename anyway. hint hint!)
;) -
Can I call sequence from Control file( Sql Loader)
Plz help.As an option to what Warren suggested, you can also specify an actual sequence name in the control file itself.
LOAD DATA
INFILE datafile.dat
APPEND
INTO TABLE <table_name>
FIELDS TERMINATED BY '|'
TRAILING NULLCOLS
(<column_name> CHAR,
<column_name> CHAR,
<column_name> "seq_name.nextval") -
hello,
i m new to XML.i want to delete the object with specified mobile number.how it can be deleted?please help me to do this.it's gr8 help for me.this is my xml file which i generate.
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.5.0_06" class="java.beans.XMLDecoder">
<object class="com.synerecis.client.Address">
<void property="city">
<string>A'bad</string>
</void>
<void property="companyName">
<string>synerecis</string>
</void>
<void property="groupName">
<string>MyGroup</string>
</void>
<void property="mobileNo">
<string>9924446472</string>
</void>
<void property="name">
<string>Shruti</string>
</void>
<void property="state">
<string>Gujarat</string>
</void>
</object>
</java>You can't delete from a file. you have to re-write it. Load it, skip what you don't want, and write the rest.
-
I can only backup the datafiles but not the control files and SPFiles
Hello, all,
I am using the Oracle 10g on a linux server which runs redhat 9. I want to backup the whole database to the disk, but not the flash recovery area. It is /rawdata. I will show how I configure the backup part in EM. Is there anything wrong?
1. the ARCHIVELOG is on
2. under Administration, in the All Initialization Parameters, I remove the string value of “log_archive_dest_1”. After that, I go to the SPFile and remove the string value of “log_archive_dest_1”
3. configure backup settings and policies. The Disk Backup Location field is set to /rawdata. Select Image Copy for Disk Backup type. Test Disk backup is successful.
4. go to Policy page. Select “Automatically backup the control file and server parameter file (SPFile) with every backup and database structural change.) input /rawdata into the filed: Autobackup Disk Location
Select “Optimize the whole database backup by skipping unchanged files such as read-only and offline datafiles that have been backed up”
Select “Retain backups that are necessary for a recovery to any time whin the specified number of days (point-in-time recovery)
Accept the default of 31days
5. go to Schedul Backup
6. select customized from the backup Strategy drop-down menu. Select the Whole Database
7. in the Options page, select “Full backup” in the Backup Type section. Select “Online Backup” in the Backup Mode section. Select “back up all archived logs on disk” in the Advanced section.
8. in the Setting page, select “Disk”
9. in the Schedule page, accept the default job name and description. Select Immediately to execute the job immediately.
10. just submit the job.
After several minutes, the job is failed while the Prebackup and Postbackup are succeeded. The log says:
Recovery Manager: Release 10.1.0.2.0 - Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
RMAN>
connected to target database: ORCL10G (DBID=770753237)
using target database controlfile instead of recovery catalog
RMAN>
Starting backup at 11-OCT-06
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=268 devtype=DISK
channel ORA_DISK_1: starting datafile copy
input datafile fno=00001 name=+DATADG/orcl10g/system01.dbf
output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSTEM_FNO-1_68hvin50 tag=BACKUP_ORCL10G_000_101106111844 recid=108 stamp=603544772
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:45
channel ORA_DISK_1: starting datafile copy
input datafile fno=00003 name=+DATADG/orcl10g/sysaux01.dbf
output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSAUX_FNO-3_69hvin6d tag=BACKUP_ORCL10G_000_101106111844 recid=109 stamp=603544813
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile copy
input datafile fno=00005 name=+DATADG/orcl10g/example01.dbf
output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-EXAMPLE_FNO-5_6ahvin7g tag=BACKUP_ORCL10G_000_101106111844 recid=110 stamp=603544829
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
input datafile fno=00002 name=+DATADG/orcl10g/undotbs01.dbf
output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-UNDOTBS1_FNO-2_6bhvin7v tag=BACKUP_ORCL10G_000_101106111844 recid=111 stamp=603544835
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:08
channel ORA_DISK_1: starting datafile copy
input datafile fno=00004 name=+DATADG/orcl10g/users01.dbf
output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-USERS_FNO-4_6chvin87 tag=BACKUP_ORCL10G_000_101106111844 recid=112 stamp=603544841
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
Finished backup at 11-OCT-06
Starting Control File and SPFILE Autobackup at 11-OCT-06
piece handle=/rawdata/c-770753237-20061011-05 comment=NONE
Finished Control File and SPFILE Autobackup at 11-OCT-06
RMAN>
Starting backup at 11-OCT-06
current log archived
using channel ORA_DISK_1
archived log /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_cqhvf270 not found or out of sync with catalog
trying alternate file for archivelog thread 1, sequence 1062
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 10/11/2006 11:20:54
RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
ORA-19625: error identifying file /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_puhkv41f
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
RMAN>
Recovery Manager complete.
It seems the system tries to find a file “arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_cqhvf270” in /rawdata. I just can not understand.
What should I do? Any advice is highly appreciated!
Qianthe string value in the field of 'log_archive_dest_1" under "All Initialization parameters" is "LOCATION=+DATADG/orcl10g/". The same value was in the field under SPFile.
I reset these values and tried to backup the whole database. The same error appeared. The log says:
Recovery Manager: Release 10.1.0.2.0 - Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
RMAN>
connected to target database: ORCL10G (DBID=770753237)
using target database controlfile instead of recovery catalog
RMAN>
Starting backup at 11-OCT-06
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=245 devtype=DISK
channel ORA_DISK_1: starting datafile copy
input datafile fno=00001 name=+DATADG/orcl10g/system01.dbf
output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSTEM_FNO-1_6ghvj9rd tag=BACKUP_ORCL10G_000_101106043753 recid=114 stamp=603563922
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:45
channel ORA_DISK_1: starting datafile copy
input datafile fno=00003 name=+DATADG/orcl10g/sysaux01.dbf
output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSAUX_FNO-3_6hhvj9sq tag=BACKUP_ORCL10G_000_101106043753 recid=115 stamp=603563963
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile copy
input datafile fno=00005 name=+DATADG/orcl10g/example01.dbf
output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-EXAMPLE_FNO-5_6ihvj9tu tag=BACKUP_ORCL10G_000_101106043753 recid=116 stamp=603563977
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
input datafile fno=00002 name=+DATADG/orcl10g/undotbs01.dbf
output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-UNDOTBS1_FNO-2_6jhvj9ud tag=BACKUP_ORCL10G_000_101106043753 recid=117 stamp=603563984
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
channel ORA_DISK_1: starting datafile copy
input datafile fno=00004 name=+DATADG/orcl10g/users01.dbf
output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-USERS_FNO-4_6khvj9uk tag=BACKUP_ORCL10G_000_101106043753 recid=118 stamp=603563990
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
Finished backup at 11-OCT-06
Starting Control File and SPFILE Autobackup at 11-OCT-06
piece handle=/rawdata/c-770753237-20061011-07 comment=NONE
Finished Control File and SPFILE Autobackup at 11-OCT-06
RMAN>
Starting backup at 11-OCT-06
current log archived
using channel ORA_DISK_1
archived log /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_cqhvf270 not found or out of sync with catalog
trying alternate file for archivelog thread 1, sequence 1062
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 10/11/2006 16:40:05
RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
ORA-19625: error identifying file /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_puhkv41f
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
RMAN>
Recovery Manager complete.
Why the system keeps trying to find files under /rawdata? It is the destination, not the source.
Any help is appreciated!
Qian
Message was edited by:
QianChen -
Only a cold datafile backup. No control files, redo files, archived redo
Hi everyone,
I made a stupid mistake and am in a bad condition with only a cold database backup without control files, redo files and archived redo files. My oracle database is oracle 9i. Is there any way to get my data back?
Thanks,
YanpingHi,
Have you a backup trace of a Control File ??
You can try perform this:
eg:
oracle@linux:/u01> cp -a /backup/*.dbf /u01/oradata/DB01
oracle@linux:~> sqlplus
SQL*Plus: Release 9.2.0.4.0 - Production on Mon Sep 18 21:35:04 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter user-name: / as sysdba
Connected to an idle instance.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 93394180 bytes
Fixed Size 451844 bytes
Variable Size 67108864 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
SQL>CREATE CONTROLFILE REUSE DATABASE "DB01" RESETLOGS ARCHIVELOG
MAXLOGFILES 3
MAXLOGMEMBERS 2
MAXDATAFILES 10
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 '/u01/oradata/DB01/redo01.log' SIZE 500K,
GROUP 2 '/u01/oradata/DB01/redo02.log' SIZE 500K,
GROUP 3 '/u01/oradata/DB01/redo03.log' SIZE 500K
DATAFILE
'/u01/oradata/DB01/system01.dbf',
'/u01/oradata/DB01/undotbs01.dbf',
'/u01/oradata/DB01/indx01.dbf',
'/u01/oradata/DB01/tools01.dbf',
'/u01/oradata/DB01/users01.dbf'
CHARACTER SET WE8ISO8859P1;
Control file created.
SQL> alter database open resetlogs;
Database altered.
SQL> ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/oradata/BDRPS/temp01.dbf' SIZE 5242880 REUSE AUTOEXTEND OFF;
Tablespace altered.
SQL> select * from v$controlfile;
STATUS NAME
/u01/oradata/DB01/control01.ctl
/u01/oradata/DB01/control02.ctl
/u01/oradata/DB01/control03.ctl
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER
3 ONLINE /u01/oradata/DB01/redo03.log
2 ONLINE /u01/oradata/DB01/redo02.log
1 ONLINE /u01/oradata/DB01/redo01.logCheers
Message was edited by:
Legatti -
VDBench failed to delete the control file
Seems like there were several file in the directory which did not belong to VDbench, but usually it fails when it tries to delete the directory it self, and not the control-file
Any ideas why this happened?
Thanks !
06:38:13.003 Starting RD=format_for_rd1
06:38:13.045 06:38:13.045 task_run_all(): 369 tasks
06:38:13.087 06:38:13.087 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--6/rickfs002 kuku
06:38:13.088 06:38:13.088 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--6/rickfs002 kuku
06:38:13.106 06:38:13.106 Message to master: anchor=/mnt/sys--2/clone001_snap001_rickfs003 deleted 12 directories; 631/sec
06:38:13.110 06:38:13.109 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--4/rickfs002 kuku
06:38:13.110 06:38:13.109 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--2/rickfs002 kuku
06:38:13.110 06:38:13.110 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--4/rickfs002 kuku
06:38:13.126 06:38:13.126 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--5/rickfs002 kuku
06:38:13.126 06:38:13.126
06:38:13.126 06:38:13.126 Unable to delete control file: /mnt/sys--4/clone001_snap001_rickfs004/vdb_control.file
06:38:13.127 06:38:13.126
06:38:13.127 java.lang.RuntimeException: Unable to delete control file: /mnt/sys--4/clone001_snap001_rickfs004/vdb_control.file
06:38:13.127 at Vdb.common.failure(common.java:308)
06:38:13.127 at Vdb.FileAnchor.deleteOldStuff(FileAnchor.java:805)
06:38:13.127 at Vdb.FileAnchor.cleanupOldFiles(FileAnchor.java:754)
06:38:13.128 at Vdb.FwgThread.run(FwgThread.java:137)A few thoughts:
- you have an other Vdbench test running against the same FSD anchor, though if I am not mistaken, Unix allows you to delete a busy file.
- you created the control file with different user/authorization.
Henk. -
File present after deleting from gallery file
This problem seems to have multiple symptoms:
I save an image over another image in the gallery, but the original image is displayed.
I delete an image file from the gallery file then save another file into the folder with the same name as the previously deleted then the deleted image is displayed when used.
I delete an image file from the gallery folder then start a new, blank, project and the image file that I deleted is available to use in the project...but the file isn't in the gallery!?
Can someone please help me figure out how to permanently remove these "ghost" files?Indeed it isn't clear.
So I'm not sure what you are reporting here. It sounds as if you have visited the Gallery in order to delete an unwanted image, no? And on deleting an unwanted image, you create a new project and somehow see it?
For one thing, a totally new project shouldn't be using anything from the Gallery. Now there may be other content that gets added if you elected to use a Theme. Is that perhaps what's happening here?
What exactly are you seeing that you wish to wave goodbye to? A screen shot might help. To add one, use the Camera icon in the web interface to the forums. Don't try to attach to email.
Cheers... Rick -
Solaris 9 Oracle 9i
If one has got 2 sets of the control file eg control01, control02. can one delete one set if one needs space desperately and have a backup copy somewhere?
Thanx.NPD wrote:
so this means it can be deleted if one wants toIf you could, it is highly not recommanded. You'd go to a not safely situation (imagine you lose the other one for some reason...). Furthermore, controflile are not Giga file size, I'm pretty sure you'll gain almost peanuts of space by removing a controlfile.
Nicolas. -
can i re-download a movie without being charged again
No, films are currently a one-time only download. Have you not got a backup of them on, for example, an external drive that you can copy back onto your computer ? And have you checked that the films have actually been deleted from your computer, it's not just that the pointer to them in iTunes has been removed ?
-
From control file to RMAN catalogue
Dear buddies,
Right now my RMAN backup runs using the control file. How could I change it to catalogue?
Please guide me.
Thanks in advance.If you already created the catalog then register the database in that catalog as
RMAN> register database ;
If you have not created the catalog then create the catalog and register your database below link help you
http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmcatdb.htm
--neeraj. -
File Information missing from NEF file
When loading a NEF file, I cannot get any information from Camera Data 1 or 2. Normally you would get ISO, apeture etc. I am using Elements V4.0 with Photoshop Camera Plug-in V3.6.0.147. When looking at other JPG files all this information is available.
Thank youOP simply refers to the "original poster". I was able to extract that NEF files from the DNG file and then run it through the DNG converter again. Without the NEF file embedded, the DNG file size was 8.66 MB. There is a change preferences button near the bottom of the DNG converter screen. You need to go into the preferences and make sure to deselect the indicated option.
-
Information stripped from music files; restore possible?
I recently bought a newer model iMac to replace my old 2008 model, and completed direct file transfer of all my stuff using Migration Assistant. However, I did notice a possible deficiency in my music files, of which I have many that are not already in my iTunes library. In all of these files, the information about track title, artist, running time and such have been deleted somehow, possibly as a side effect of the transfer. If that is what happened, is there anything I can do to restore the missing file info?
See this post.
tt2 -
Remove RMAN information from target database control file
Dear Gurus,
Can any one inform me that how I can remove RMAN related information from Target database control file without recreating the control file.
Regards,
asifI want to remove all RMAN related infromation from control file including the destination specification where backup sets were being created becuase that destination is no more available,
configuration information also need to be removed from control file without recreating the control file.
kindly help,
regards,
asif
Maybe you are looking for
-
Mail application will not open at all
My Mail app won't open at all. It bounces once and then nothing. I ran the Disk Utility and re-started. I tried opening it with the Shift key down, and tried moving the Mail folder and the preferences files (but it won't open at all, so I don't think
-
Copy and Paste Function Slow Down
Dear Expert, Our Company have upgraded to SAP B1 2007A in April 2009, since then our users face problem in copying text in all modules. We used to right click at a particular field, e.g. customer reference number, then right click to the paste into
-
Intel AMT and Intel Small Business Advantage
I am trying to enable Intel AMT. When I run the ACU Wizard, I receive the following message: How can I disable/uninstall SBA? If it is not possible to disable/uninstall SBA, how do I enable Intel AMT using SBA? Many thanks.
-
When I make a video playlist of favorite videos, the videos only play one at a time, and at the end of each, kicks me back to that playlist's window. Is there no way for the videos to play one right after the other non-stop, just like my music playli
-
Example of BAPI_CUSTOMER_CREATEFROMDATA1
anyone have an example of this bapi?