RMAN &; read-only data files
DB: 10.2.0.4 (just upgraded from 8i)Win 2008 64-bit operating system
This is the first backup of the 10g database after the upgrade & with RMAN.
I copied all the backup files to another server to test and try to create a new database.
The backup script was: -.
run
{
backup as compressed backupset database more archivelog delete all entries;
}
When I run the BACKUP from the LIST, I can see the data files read-only listed with the rest of the files.
On the second test server, I mounted the database & run a restore command.
run
{
allocate channel d1 type disk;
restore the database;
}
He restored all the files except those unalterable. So now, I get an error "alter database open resetlogs ' may fail because the RO data files are missing.
I tried to do the restore using RESTORE DATABASE CHECK READONLY, but now I get an error saying: -.
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the restore command at 2010-05-21 14:56:30
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of 7 found to restore
But the BACKUP from the LIST is displayed data readonly files in the list.
How to make this work?
If you have physical copies of the datafiles made after the Tablespace has been read-only restoring them (using the operating system utilities).
Hemant K Collette
Tags: Database
Similar Questions
-
How can I read only text files in a directory.
I wrote a program to play the files in a directory, but I want to let him read the text files from the directory.
import java. IO;
public class {data}
Public Shared Sub main (String [] args) throws IOException {}
String target_dir = "C:\\files";
File dir = new File (target_dir);
File files [] = dir.listFiles ();
for (file textfiles: files) {}
If (textfiles.isFile ()) {}
InputStream BufferedReader = null;
try {}
inputStream = new BufferedReader (new FileReader (textfiles));
String line;
While ((line = inputStream.readLine ())! = null) {}
System.out.println (Line);
}
} {Finally
If (inputStream! = null) {}
inputStream.close ();
}
}
}
}
}
}
You mentioned you want to only read text files.
If you are referring to a specific set of extensions, you can filter on this basis.
ex: you want to only read .txt files, you can add an if condition as below:
if(textfiles.getName().endsWith(".txt")) { // Add your code here }
See you soon
AJ
-
RMAN, any backup data file.
Dear...
I have a scenario.
Backup RMAN - yesterday.
DataFile added today, and he lost in the evening. How a datafile restore/restore with RMAN, as data file has been saved in the last backup RMAN.
Version: 10.2.0.1.0
Kind regards.YES, below.
name of the archived log file = C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_. Wire ARC = 1 sequence = 18
The creation data file file number = 7 name = C:\ORACLE\ORADATA\ORCL\USERS03. DBFRMAN> backup database; Starting backup at 21-FEB-12 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=133 device type=DISK channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00001 name=C:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF input datafile file number=00002 name=C:\ORACLE\ORADATA\ORCL\SYSAUX01.DBF input datafile file number=00003 name=C:\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF input datafile file number=00005 name=C:\ORACLE\ORADATA\ORCL\EXAMPLE01.DBF input datafile file number=00006 name=C:\ORACLE\ORADATA\ORCL\USERS02.DBF input datafile file number=00004 name=C:\ORACLE\ORADATA\ORCL\USERS01.DBF channel ORA_DISK_1: starting piece 1 at 21-FEB-12 channel ORA_DISK_1: finished piece 1 at 21-FEB-12 piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_21\O1_MF_NNNDF_TAG20120221T132643_7N6MKWPX_.BKP tag=TAG20120221T132643 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:55 Finished backup at 21-FEB-12 Starting Control File and SPFILE Autobackup at 21-FEB-12 piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834060_7N6MMO5Q_.BKP comment=NONE Finished Control File and SPFILE Autobackup at 21-FEB-12 RMAN> exit SQL> alter tablespace users add datafile 'C:\ORACLE\ORADATA\ORCL\USERS03.dbf' size 10m; Tablespace altered. SQL> SQL> alter system switch logfile; System altered. SQL> startup force mount exclusive restrict; ORACLE instance started. Total System Global Area 778387456 bytes Fixed Size 1374808 bytes Variable Size 310379944 bytes Database Buffers 461373440 bytes Redo Buffers 5259264 bytes Database mounted. SQL> drop database; Database dropped. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> exit C:\Users\bn2676>sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 21 13:51:27 2012 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to an idle instance. SQL> startup nomount ORACLE instance started. Total System Global Area 778387456 bytes Fixed Size 1374808 bytes Variable Size 310379944 bytes Database Buffers 461373440 bytes Redo Buffers 5259264 bytes SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options C:\Users\bn2676>rman target / Recovery Manager: Release 11.2.0.1.0 - Production on Tue Feb 21 13:51:52 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: ORCL (not mounted) RMAN> restore controlfile from 'C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834060_7N6MMO5Q_.BKP'; Starting restore at 21-FEB-12 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=63 device type=DISK channel ORA_DISK_1: restoring control file channel ORA_DISK_1: restore complete, elapsed time: 00:00:03 output file name=C:\ORACLE\ORADATA\ORCL\CONTROL01.CTL output file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL Finished restore at 21-FEB-12 RMAN> sql 'alter database mount'; sql statement: alter database mount released channel: ORA_DISK_1 RMAN> restore database; Starting restore at 21-FEB-12 Starting implicit crosscheck backup at 21-FEB-12 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=63 device type=DISK Crosschecked 8 objects Finished implicit crosscheck backup at 21-FEB-12 Starting implicit crosscheck copy at 21-FEB-12 using channel ORA_DISK_1 Finished implicit crosscheck copy at 21-FEB-12 searching for all files in the recovery area cataloging files... cataloging done List of Cataloged Files ======================= File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_19_7N6NXV4M_.ARC File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834060_7N6MMO5Q_.BKP File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834547_7N6N2WHN_.BKP using channel ORA_DISK_1 channel ORA_DISK_1: starting datafile backup set restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set channel ORA_DISK_1: restoring datafile 00001 to C:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF channel ORA_DISK_1: restoring datafile 00002 to C:\ORACLE\ORADATA\ORCL\SYSAUX01.DBF channel ORA_DISK_1: restoring datafile 00003 to C:\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF channel ORA_DISK_1: restoring datafile 00004 to C:\ORACLE\ORADATA\ORCL\USERS01.DBF channel ORA_DISK_1: restoring datafile 00005 to C:\ORACLE\ORADATA\ORCL\EXAMPLE01.DBF channel ORA_DISK_1: restoring datafile 00006 to C:\ORACLE\ORADATA\ORCL\USERS02.DBF channel ORA_DISK_1: reading from backup piece C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_21\O1_MF_NNNDF_TAG20120221T132643_7N6MKWPX_.BKP channel ORA_DISK_1: piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_21\O1_MF_NNNDF_TAG20120221T132643_7N6MKWPX_.BKP tag=TAG20120221T132643 channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:00:56 Finished restore at 21-FEB-12 R recover database; Starting recover at 21-FEB-12 using channel ORA_DISK_1 starting media recovery archived log for thread 1 with sequence 18 is already on disk as file C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC archived log for thread 1 with sequence 19 is already on disk as file C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_19_7N6NXV4M_.ARC archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC thread=1 sequence=18 creating datafile file number=7 name=C:\ORACLE\ORADATA\ORCL\USERS03.DBF archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC thread=1 sequence=18 archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_19_7N6NXV4M_.ARC thread=1 sequence=19 unable to find archived log archived log thread=1 sequence=20 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of recover command at 02/21/2012 13:54:04 RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 20 and starting SCN of 1226889 RMAN> sql 'alter database open resetlogs'; sql statement: alter database open resetlogs RMAN> exit Recovery Manager complete. C:\Users\bn2676>sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 21 13:54:42 2012 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> select file_name from dba_data_files where tablespace_name='USERS'; FILE_NAME -------------------------------------------------------------------------------- C:\ORACLE\ORADATA\ORCL\USERS01.DBF C:\ORACLE\ORADATA\ORCL\USERS02.DBF C:\ORACLE\ORADATA\ORCL\USERS03.DBF SQL>
-
Read-only - user files - can't change for write access
In the users (only one user) section all the folders are read-only. I'm moving to the music in my music file, but it won't let me. I get an error indicating that this action requires administrator rights, the diolgue box Monte 'do you want to get permission for this action', click Yes, and then he says denied action! What happens - I have not had this problem before.
I followed the cmd prompt 'attrib-r + s C:\Users\Mel and Steve\Music' and other combinates, but it wouldn't let me make changes.
Help, please!
Windows Vista
This sounds like a permission problem. When I came across a similar problem with Vista, I installed a registry patch that adds a' Take Ownership"option in the context menu to reset the permissions on the files." Simply right click on a folder you are the difficulties to access to the, (IE C:\Users\YourUserName) and then click "Take Ownership" allows you to access these folders and all subfolders beneath it read/write. This is what solved my problems:
-
Why does not define RMAN bkp merge data files and the archivelogs in a single bkp
version: 11.2.0.3
Why not RMAN backup data files (fusion) handset and the archivelogs in a single backupset?
Published by: Y.Ramlet on April 15, 2013 07:15
Changed the subject line to clarityWhat would be the advantage?
ArchiveLogs must be independent of the specific database backups. ArchiveLogs can be used for the review (RECOVER) a database to a point in time beyond the backup database. Can I get L0 data backups once a week and backups of databases L1 on a daily basis with the ArchiveLogs daily. The ArchiveLogs should not be bound to the L0, or L1 backups but be useful to RECOVER the database to any point in time.
Hemant K Collette
-
Read only data with replication SAN HP store? (CA)
Hello
Not sure it should be in the ESX or VC forum... We use EVA and replication on XP SAN with SAN CA (Continuous Access). We have virtual machines on a LUN (read, write) replicated to a destination LUN Dr. When you use HP CA it marks the destination LUN read-only source...
We want to import the LUN target in our cluster of DR esx, but when we add the disk it formats... We have tried to deceive esx by adding the data reading writing that works then set up this store again which marks while reading then however only store data disappears from the host to storage page...
Anyone know if this will work or how to make it work? Maybe a setting advanced on the part of the drive to ESX import read only LUNS which we will turn to read write if we talk about DR
Any ideas would be thank you very much
Packetboy.
On the second site ESXs, enter into the advanced settings and go to LVM > DissalowSnapshotLun and set it to 0. Perform a new analysis and data warehouses SHOULD appear available. You can go back to la to write.
Only, I did not understand why the added ESX your LUN as data stores format again. This behavior should not happen. Maybe something is not replicated.
Do not forget that, by adding a virtual computer, you will need to keep/change the uuid as the data store has changed unit logic (indeed) number.
Marcelo Soares
VMWare Certified Professional 310
Technical Support Engineer
Chief Executive Officer of the Linux server
-
Reading excel data file in Oracle form data blocks
Hi all
I want to read the data from the excel file in the data block of the module of the form. There are many resources available that explain how to put the data in oracle forms in the excel sheet, but I can't find a single resource to achieve this functionality. Can someone please help me get around this problem. Any help will be much appreciated.
Thanks in advance
BilalBilal,.
There is little documentation available through My Oracle Support, which shows how to read an Excel file in a form, but you need a support contract with Oracle to access the document (how to read data from an EXCEL worksheet in a form using WebUtil Client_OLE2 [813535.1 ID]).I've seen this issue come up in the forum from time to time, so I wrote a small form demo which illustrates playback in Excel in a form. Discover forms: how to read an Excel file in a form. This demonstration uses the WebUtil library, so you must make sure have WebUtil correctly configured in the Forms Designer, as well as on your application server.
Hope this helps,
Craig B-)If someone useful or appropriate, please mark accordingly.
-
What is the best way to ensure that the data in the cache is not changed once it is placed in the cache? Is there a way to specify that objects are 'read only '?
My cache clients must have the ability to read and write to and from the cache, but should not be able to change (or replace) the existing entries. They should just be able to read existing entries or add new unique entries.
Thank you!Hello
You should be able to extend WrapperNamedCacheto get the desired behavior.
A close example of what you want to do is ReadonlyNamedCache
Thank you
-DaveEdited by: dcarrano on December 1st, 2009 16:05
-
Hello
I have red the DBW do that beside Scripture, is that correct?
Thank youJin
DBWR writing data in data file... hope that the server process reads the data from the data file...
Kind regards
Deepak -
I have the file .dat that contains information such as
31200908191916000200000083950008
31200908191916000200000083950008
31200908180730000100000083950008
31200908180730000100000083950008
31200908180730000100000083950008
31200908191456000200000076290008
31200908191616000200000053700008
31200908191616000200000042820008
31200908191616000200000042820008
31200908191630000200000020760008
I want to read this .dat Forms 10 g and place this information in the table. can someone tell me the startup code to read dat file...
Any help will be appreciated...Hello!
Try something like that. Just one example.
You will need to change the filename and tablename that you need.declare l_file client_text_io.file_type; l_row varchar2(100); l_count pls_integer := 0; begin l_file := client_text_io.fopen ( 'data.dat', 'R' ); if NOT client_text_io.is_open ( l_file ) then message ( 'File data.dat could not be found. Please check filename and path.' ); return; end if; loop client_text_io.get_line ( l_file, l_row ); insert into your_table ( data ) values ( l_row ); l_count := l_count + 1; end loop; exception when no_data_found then client_text_io.fclose ( l_file ); forms_ddl ( 'commit' ); message ( l_count || ' record/s red and written to database.' ); message ( ' ' ); end;
Concerning
-
Hello
I have two or three items with dates selectors and do not want to implement
This code because it will be too many buttons on my form. I need to delete an element
at a time when the date picker is read-only, but in tabular form.
Then after that I created a button url and pass this function I can erase the datepicker. But, Ifunction f_clear_items() { {$x('P1_ITEMA').value = ''}; {$x('P1_ITEMB').value = ''}; }
has been wondering is there a cleaner way to do this.
I have other items on the page that are the same name but in different tables. I only want
to clear each item date picker at the same time. This code works very well for a regular shape.
-Item after item to erase text element
There is a named thread "how to delete a page only reading point...?" that shows how this code works, but does not worka href="javascript:setValue('P1_ITEMA','');">Clear Date</a
work for a table shape in a page master detail. There is a link on the side of the switch of dates to delete the item specified, but in a tabular form point, there is no tab of the item, any ideas on how to clear a date picker component readonly by using a tabular form
and not with a button for each item, thanks in advance. I use the Application Express 3.2.0.00.27.Charles,
I did a little more for you...
Kind regards
Danhttp://danielmcghan.us
http://sourceforge.NET/projects/tapigen
http://sourceforge.NET/projects/plrecurYou can reward this answer by marking as being useful or correct ;-)
-
Dear all,
I wonder if someone helps me.
I have a labview program which I am using right now. At this point, I need to read an input (dat or txt or excel) file in real time.
for example, here's my data entry (2 columns and 5 rows):
1.2 2.2
2.3 2.3
3.05 3.3
4.3 4.4
5.2 5.5
for example in evry second I want to read a jut line and do the math. in this way, in real time, I can read each line one by one.
How can I do?
Kind regards
Mehdi
For the text, simply use the reading of spreadsheet. Take exit 2D and wire of a loop for. put a wait of 1 second inside the loop and you are finished.
-
Hmm, my system is watered. In looking at CatLog suggests that neither system nor apps can write to / data. No idea how to solve this problem? I've updated to OTA 2.5 (WE). The system is rooted and I want to keep it this way. I don't have the recovery clockwork mod.
OK, reset factory & initialized in recovery, data wipe. Has not lost root :-)
Now, if I had only done my backups on the external SD card...
-
Dear OR community,
IM pretty new in LabVIEW, so I have a few broblems with reading the data.
I take a screenshot and mark a problem like part - A and part b below:
The description of the goal:
I do a mathematical simulation, using the old software whitch exporting results as shown in 1... DAT file, as it shown in the picture (Notepad).
First of all I need not read these data then I need to draw the graph XY.
Description of the problem:
I created a LabVIEW program and im using a funciont reading of spreadsheet per section B - but when im trying to read data im getting all zeros...
so I can't identify my problem... What is the problem?
I try different file to read its Case_test_working.txt and everything is good with this data but when im trying to read *. DAT file zeros is array...
I tried to use seperator different symbols, also try to imort data to exel then export to *.scv, *.txt formats, but the performance was the same as that indicated in part-A.
Whenever I get zeros, but not a results as in *. DAT or another file format exported with the same data.
Please be respectifull and understand that im still newbie in labview but I think its excellent software of filtering of the analysis of data and calculations, so I want to master this software for my future use.
Respectfully,.
Tomas E
-
How to read a combination of strings and data data file
Hello
I'm having the combination of strings and datas to read a data file. I'm reading the file name, the time constants and comments in four indicators separate string (lines for comments varies for different files). And read the data in a 2D array. How can I do this? Y at - it a function that can serch of special characters in the spreadsheet file, so I can locate exactly where I should start reading the specific data. Here's how the data file is displayed. Thank you very much.
Best,
Richard
filename.dat
14:59 12/31/2009
--------------------------------------------------
Sample = 2451
Frequency = 300, time of waiting = 2500
Temperature = 20
--------------------------------------------------
a few comments
a few comments
a few comments
a few comments
a few comments
--------------------------------------------------7.0000E + 2 1.5810E - 5
7.0050E + 2 1.5400E - 5
7.0100E + 2 1.5500E - 5
7.0150E + 2 1.5180E - 5....
Here's a (big) hint.
I would like to give you an excerpt, but I've not updated this machine yet. It's a pretty boring delimiter, if you know what's good for you, you start to use commas, tabs or simple spaces (my order of preference). It is far too easy start add or remove spaces and then you need to use more complex methods to obtain data from worksheet.
Maybe you are looking for
-
"Quit Firefox" dialogue disappear in FF 4.0 beta 10
Hello.I wonder if this only happens to me, the "Quit Firefox" dialog box do not show to provide options of "save and exit" / "quit" / "Cancel". I'm sure that enabled the warn me when closing multiple tabs and open more than 1 tab when I close Firefox
-
Using a counter with FiniteSamps and one with ContSamps
I am using 2 counters on the NI USB-6229 (or USB-6259), case where a counter is implemented for FiniteSamps and another for ContSamps. I have the following MeasurementStudio code: ErrChk DAQmxCreateCOPulseChanTicks(hCnt0, "Dev1/ctr0", "", "20MHzTimeb
-
Stop in the pc game: fate.
I installed the Fate pc game. During the game, my computer is going to close, and then restart. Have had the game for more than two months. This has just begun. What can I do to fix this?
-
Error 65 b cannot install KB2463332
Cannot install SQL Express Edition KB2463332. Have tried repeatedly - without success. Also tried some other solutions used... does not... Help, do I really need this update?
-
Problems scanner HP CM 1015 MFP
He can not get my scanner to work for HP CM 1015 MFP. I am running windows Vista 32 bit and have full use of my printer. When I try to scan options scan on the unity of its States "waiting for work. My HP Solution Center does not recognize my scanner