Oracle Restore

Dear Gurus,
Issue: Unable to recover database from an online backup
We have a production Oracle 10 G database ; Solaris. An online backup is performed everyday (No offline backups as it a HA environment). We are trying to validate the online backup of the production database by restoring it onto another test oracle database.
Backup execution:
- Alter database begin backup is issued in the production database
- The oracle database disks are split and a copy is mounted to another server. This is the location from where the backup is taken
- Alter database endbackup is issued in the production database. (As a split copy is used for the database backup, the time frame between 'begin backup and 'end backup' is only about 3 mins.)
Backup validation:
- We wiped out the existing data from the test database. Basically, erased the datafiles from the filesystem.
- Restored the online backup of the production database to the test database
- Restored the control file
- Restored the archived logs that were generated from the time the online backup was started until the backup ended
- Take the database off from the backup mode (As the 'end backup' is issued only in the production database, the restored files are in the backup mode)
- Tried to recover the database using 'recover database until cancel' . The result is that we are continuously being asked to supply the redo logs and when we get an error that the database needs more recovery before it can be opened if we cancel the recovery process.
The SCN numbers from the V$datafile and V$datafile_header is higher than the SCN number in the V$database.
select checkpoint_change# from v$datafile;
CHECKPOINT_CHANGE#
49577611114
select checkpoint_change# from v$datafile_header;
CHECKPOINT_CHANGE#
49577611114
select checkpoint_change# from v$database;
CHECKPOINT_CHANGE#
49577193822
The system SCN is lower to those in the v$datafile and v$datafile_header. Any ideas on where the problem could be? Thanks for your time
Regards,

Hi Ajay,
Thanks for the reply. We tried the recover using the backup controlfile but failed to open the database. My suspicion is largely on the system SCN. The test database had data in it before we wiped it off. So, I believe the test database had an SCN number at that point in time. We then restored the online backup from our production database and restored to the test database server. Now, these datafiles' SCN would be different to the SCN of the test database and hence the trouble in bringing the DB up. Pls correct me if I am wrong.
The output of the script is quiet lengthy. pls bear with me. Thanks Ajay.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning and Data Mining options
CHECKPOINT_CHANGE#
     4.9578E+10
FILE_ID SCN               THREAD     SEQUENCE STATUS
     1 49577611114          1     278472     8196
     2 49577611114          1     278472     4
     3 49577611114          1     278472     4
     4 49577611114          1     278472     4
     5 49577611114          1     278472     4
     6 49577611114          1     278472     4
     7 49577611114          1     278472     4
     8 49577611114          1     278472     4
     9 49577611114          1     278472     4
     10 49577611114          1     278472     4
     11 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
     12 49577611114          1     278472     4
     13 49577611114          1     278472     4
     14 49577611114          1     278472     4
     15 49577611114          1     278472     4
     16 49577611114          1     278472     4
     17 49577611114          1     278472     4
     18 49577611114          1     278472     4
     19 49577611114          1     278472     4
     20 49577611114          1     278472     4
     21 49577611114          1     278472     4
     22 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
     23 49577611114          1     278472     4
     24 49577611114          1     278472     4
     25 49577611114          1     278472     4
     26 49577611114          1     278472     4
     27 49577611114          1     278472     4
     28 49577611114          1     278472     4
     29 49577611114          1     278472     4
     30 49577611114          1     278472     4
     31 49577611114          1     278472     4
     32 49577611114          1     278472     4
     33 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
     34 49577611114          1     278472     4
     35 49577611114          1     278472     4
     36 49577611114          1     278472     4
     37 49577611114          1     278472     4
     38 49577611114          1     278472     4
     39 49577611114          1     278472     4
     40 49577611114          1     278472     4
     41 49577611114          1     278472     4
     42 49577611114          1     278472     4
     43 49577611114          1     278472     4
     44 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
     45 49577611114          1     278472     4
     46 49577611114          1     278472     4
     47 49577611114          1     278472     4
     48 49577611114          1     278472     4
     49 49577611114          1     278472     4
     50 49577611114          1     278472     4
     51 49577611114          1     278472     4
     52 49577611114          1     278472     4
     53 49577611114          1     278472     4
     54 49577611114          1     278472     4
     55 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
     56 49577611114          1     278472     4
     57 49577611114          1     278472     4
     58 49577611114          1     278472     4
     59 49577611114          1     278472     4
     60 49577611114          1     278472     4
     61 49577611114          1     278472     4
     62 49577611114          1     278472     4
     63 49577611114          1     278472     4
     64 49577611114          1     278472     4
     65 49577611114          1     278472     4
     66 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
     67 49577611114          1     278472     4
     68 49577611114          1     278472     4
     69 49577611114          1     278472     4
     70 49577611114          1     278472     4
     71 49577611114          1     278472     4
     72 49577611114          1     278472     4
     73 49577611114          1     278472     4
     74 49577611114          1     278472     4
     75 49577611114          1     278472     4
     76 49577611114          1     278472     4
     77 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
     78 49577611114          1     278472     4
     79 49577611114          1     278472     4
     80 49577611114          1     278472     4
     81 49577611114          1     278472     4
     82 49577611114          1     278472     4
     83 49577611114          1     278472     4
     84 49577611114          1     278472     4
     85 49577611114          1     278472     4
     86 49577611114          1     278472     4
     87 49577611114          1     278472     4
     88 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
     89 49577611114          1     278472     4
     90 49577611114          1     278472     4
     91 49577611114          1     278472     4
     92 49577611114          1     278472     4
     93 49577611114          1     278472     4
     94 49577611114          1     278472     4
     95 49577611114          1     278472     4
     96 49577611114          1     278472     4
     97 49577611114          1     278472     4
     98 49577611114          1     278472     4
     99 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
100 49577611114          1     278472     4
101 49577611114          1     278472     4
102 49577611114          1     278472     4
103 49577611114          1     278472     4
104 49577611114          1     278472     4
105 49577611114          1     278472     4
106 49577611114          1     278472     4
107 49577611114          1     278472     4
108 49577611114          1     278472     4
109 49577611114          1     278472     4
110 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
111 49577611114          1     278472     4
112 49577611114          1     278472     4
113 49577611114          1     278472     4
114 49577611114          1     278472     4
115 49577611114          1     278472     4
116 49577611114          1     278472     4
117 49577611114          1     278472     4
118 49577611114          1     278472     4
119 49577611114          1     278472     4
120 49577611114          1     278472     4
121 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
122 49577611114          1     278472     4
123 49577611114          1     278472     4
124 49577611114          1     278472     4
125 49577611114          1     278472     4
126 49577611114          1     278472     4
127 49577611114          1     278472     4
128 49577611114          1     278472     4
129 49577611114          1     278472     4
130 49577611114          1     278472     4
131 49577611114          1     278472     4
132 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
133 49577611114          1     278472     4
134 49577611114          1     278472     4
135 49577611114          1     278472     4
136 49577611114          1     278472     4
137 49577611114          1     278472     4
138 49577611114          1     278472     4
139 49577611114          1     278472     4
140 49577611114          1     278472     4
141 49577611114          1     278472     4
142 49577611114          1     278472     4
143 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
144 49577611114          1     278472     4
145 49577611114          1     278472     4
146 49577611114          1     278472     4
147 49577611114          1     278472     4
148 49577611114          1     278472     4
149 49577611114          1     278472     4
150 49577611114          1     278472     4
151 49577611114          1     278472     4
152 49577611114          1     278472     4
153 49577611114          1     278472     4
154 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
155 49577611114          1     278472     4
156 49577611114          1     278472     4
157 49577611114          1     278472     4
158 49577611114          1     278472     4
159 49577611114          1     278472     4
160 49577611114          1     278472     4
161 49577611114          1     278472     4
162 49577611114          1     278472     4
163 49577611114          1     278472     4
164 49577611114          1     278472     4
165 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
166 49577611114          1     278472     4
167 49577611114          1     278472     4
168 49577611114          1     278472     4
169 49577611114          1     278472     4
170 49577611114          1     278472     4
171 49577611114          1     278472     4
172 49577611114          1     278472     4
173 49577611114          1     278472     4
174 49577611114          1     278472     4
175 49577611114          1     278472     4
176 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
177 49577611114          1     278472     4
178 49577611114          1     278472     4
179 49577611114          1     278472     4
180 49577611114          1     278472     4
181 49577611114          1     278472     4
182 49577611114          1     278472     4
183 49577611114          1     278472     4
184 49577611114          1     278472     4
185 49577611114          1     278472     4
186 49577611114          1     278472     4
187 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
188 49577611114          1     278472     4
189 49577611114          1     278472     4
190 49577611114          1     278472     4
191 49577611114          1     278472     4
192 49577611114          1     278472     4
193 49577611114          1     278472     4
194 49577611114          1     278472     4
195 49577611114          1     278472     4
196 49577611114          1     278472     4
197 49577611114          1     278472     4
198 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
199 49577611114          1     278472     4
200 49577611114          1     278472     4
201 49577611114          1     278472     4
202 49577611114          1     278472     4
203 49577611114          1     278472     4
204 49577611114          1     278472     4
205 49577611114          1     278472     4
206 49577611114          1     278472     4
207 49577611114          1     278472     4
208 49577611114          1     278472     4
209 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
210 49577611114          1     278472     4
211 49577611114          1     278472     4
212 49577611114          1     278472     4
213 49577611114          1     278472     4
214 49577611114          1     278472     4
215 49577611114          1     278472     4
216 49577611114          1     278472     4
217 49577611114          1     278472     4
218 49577611114          1     278472     4
219 49577611114          1     278472     4
220 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
221 49577611114          1     278472     4
222 49577611114          1     278472     4
223 49577611114          1     278472     4
224 49577611114          1     278472     4
225 49577611114          1     278472     4
226 49577611114          1     278472     4
227 49577611114          1     278472     4
228 49577611114          1     278472     4
229 49577611114          1     278472     4
230 49577611114          1     278472     4
231 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
232 49577611114          1     278472     4
233 49577611114          1     278472     4
234 49577611114          1     278472     4
235 49577611114          1     278472     4
236 49577611114          1     278472     4
237 49577611114          1     278472     4
238 49577611114          1     278472     4
239 49577611114          1     278472     4
240 49577611114          1     278472     4
241 49577611114          1     278472     4
242 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
243 49577611114          1     278472     4
244 49577611114          1     278472     4
245 49577611114          1     278472     4
246 49577611114          1     278472     4
247 49577611114          1     278472     4
248 49577611114          1     278472     4
249 49577611114          1     278472     4
250 49577611114          1     278472     4
251 49577611114          1     278472     4
252 49577611114          1     278472     4
253 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
254 49577611114          1     278472     4
255 49577611114          1     278472     4
256 49577611114          1     278472     4
257 49577611114          1     278472     4
258 49577611114          1     278472     4
259 49577611114          1     278472     4
260 49577611114          1     278472     4
261 49577611114          1     278472     4
262 49577611114          1     278472     4
263 49577611114          1     278472     4
264 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
265 49577611114          1     278472     4
266 49577611114          1     278472     4
267 49577611114          1     278472     4
268 49577611114          1     278472     4
269 49577611114          1     278472     4
270 49577611114          1     278472     4
271 49577611114          1     278472     4
272 49577611114          1     278472     4
273 49577611114          1     278472     4
274 49577611114          1     278472     4
275 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
276 49577611114          1     278472     4
277 49577611114          1     278472     4
278 49577611114          1     278472     4
279 49577611114          1     278472     4
280 49577611114          1     278472     4
281 49577611114          1     278472     4
282 49577611114          1     278472     4
283 49577611114          1     278472     4
284 49577611114          1     278472     4
285 49577611114          1     278472     4
286 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
287 49577611114          1     278472     4
288 49577611114          1     278472     4
289 49577611114          1     278472     4
290 49577611114          1     278472     4
291 49577611114          1     278472     4
292 49577611114          1     278472     4
293 49577611114          1     278472     4
294 49577611114          1     278472     4
295 49577611114          1     278472     4
296 49577611114          1     278472     4
297 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
298 49577611114          1     278472     4
299 49577611114          1     278472     4
300 49577611114          1     278472     4
301 49577611114          1     278472     4
302 49577611114          1     278472     4
303 49577611114          1     278472     4
304 49577611114          1     278472     4
305 49577611114          1     278472     4
306 49577611114          1     278472     4
307 49577611114          1     278472     4
308 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
309 49577611114          1     278472     4
310 49577611114          1     278472     4
311 49577611114          1     278472     4
312 49577611114          1     278472     4
313 49577611114          1     278472     4
314 49577611114          1     278472     4
315 49577611114          1     278472     4
316 49577611114          1     278472     4
317 49577611114          1     278472     4
318 49577611114          1     278472     4
319 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
320 49577611114          1     278472     4
321 49577611114          1     278472     4
322 49577611114          1     278472     4
323 49577611114          1     278472     4
324 49577611114          1     278472     4
325 49577611114          1     278472     4
326 49577611114          1     278472     4
327 49577611114          1     278472     4
328 49577611114          1     278472     4
329 49577611114          1     278472     4
330 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
331 49577611114          1     278472     4
332 49577611114          1     278472     4
333 49577611114          1     278472     4
334 49577611114          1     278472     4
335 49577611114          1     278472     4
336 49577611114          1     278472     4
337 49577611114          1     278472     4
338 49577611114          1     278472     4
339 49577611114          1     278472     4
340 49577611114          1     278472     4
341 49577611114          1     278472     4
FILE_ID SCN               THREAD     SEQUENCE STATUS
342 49577611114          1     278472     4
343 49577611114          1     278472     4
344 49577611114          1     278472     4
345 49577611114          1     278472     4
346 49577611114          1     278472     4
347 49577611114          1     278472     4
348 49577611114          1     278472     4
348 rows selected.
FHSCN
49577611114
Session altered.
STATUS     CHECKPOINT_CHANGE# FUZ CHECKPOINT_TIME     COUNT(*)
ONLINE          49577611114 YES 17-AUG-2012 00:06:05 348

Similar Messages

  • Oracle Restore and Recovery

    Hello.
    Guys I`m pretty new to Oracle and I been trying to restore our backup from Live Database to Our Test Database.
    This is what i did.
    After installing the Oracle 11g (11.2.0) on our Rhel6 environment, I try to create the folder structure to Test Server same as on Live Server.
    After that I "startup nomount pfile='directory'" then created the spfile.
    Then I copy the backupset and control file from Live Server to Test Server and restore the control file.
    I alter Database to mount mode then go to rman to restore Database.
    It all goes well but when I try to recover Database I receive an error.
    This is the Error = RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 8929 and starting SCN of 811164225283.
    I try to ignore this error and proceed to opening the database;
    Alter Database Open resetlogs.
    But then again I receive this error.
    ORA-01092: ORACLE instance terminated. Disconnection forced
    ORA-00704: bootstrap process failure
    ORA-39700: database must be opened with UPGRADE option
    Process ID: 8020
    Session ID: 3 Serial number: 4461
    Can some one please help me on how to do this?
    I`m really new to oracle and I dont know what to do.

    user9176069 wrote:
    Sir,
    Thanks for your assistant.
    I have successfully restore the Database.
    Now my problem is after recovery I cannot access the EM.
    Here is the error shown.
    "503 Service Unavailable
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details."
    Is this the cause of my recovery?
    Should I turn off EM first before I recover?Just to expand on what Hemant said, the dbcontrol has two parts. One is the repository, which is a bunch of tables in the database. The other is the configuration, which is a bunch of files buried under ORACLE_HOME. The two have to be in sync in ways I don't fully understand, but when you replicate a database from one host to another, especially if any kind of database rename is involved, you are getting the repository from the source system and laying it down with the configuration on the target system. Bottom line, exactly as Hemant said, drop and recreate at least the repository. I do both the repository and the config.

  • Oracle Restore from Online backup without any archive logs

    Hi,
    May be a dumb question. If I have a good online backup (say it took 2 hours to do that. And there is database activity while backup is going on), and lost all the archive logs happened after the online backup, is it possible at all to do the restore using that backup? complete or incomplete? and bring back the database to normal operation mode? Some details on this.
    Thanks.

    Let us see the reasoning behind this.
    Database:WORLDDB
    WORLDDB configuration:-
    TBSP_WDB
    ->TBSP_WDB_01.dbf
    ->TBSP_WDB_02.dbf
    SYSTEM
    ->SYSTEM.dbf
    USERS
    and so on for the tablespaces.
    CASE 1:-
    User managed backup.
    You issue
    ALTER TABLESPACE TBSP_WDB BEGIN BACKUP;
    DB keeps working all transactions are recorded in the redo stream, the scn information is not updated in the file header.
    Also note that the other tablespaces were been continuously worked on hence their scn numbers are a moving target.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96572/osbackups.htm#10012
    So if you begin tablespace TBSP_WDB backup at time t1 and by the time you are done with your backups you are at time t2, you will need all of the archive log's between time t1 and t2.
    CASE 2:-
    If we do with rman, rman takes care of the file header update information and goes on its merry way, those details are hidden from the end user. If one of the tablespace is fractured, updated while backups are going on , rman knows about it and will re-read the affected blocks in question.
    My thinking would be that you might need archive logs, unless it is a cold backup, with switch logfiles in between.
    If you do hot backups you need archivelogs is my thought. The number of archivelogs required will be decreased considerably through rman.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmconc1.htm#458821
    Summary:-
    Either way archivelogs are needed.

  • How to stop oracle restoration.

    I am using oracle 10g database in my company. my data is important for me and I want to secure that. Database backups are really important for me and for my company. I want that if any one (including administrators) restore database backup on his machine (same network) then oracle will notify me OR no one even administrators cant able to restore the database on the same machine or even any machine on the network.
    kindly help me.

    Hi User6787,
    I have did what you said? while doing that only I got that issue.
    What Saichand told worked well.
    Thanks,
    Satheesh

  • Oracle restore not working

    Hi Guys,
    I am unable to restore a online consistent backup of Oracle.
    The restore is happening fine.
    But when I try to recover the database or take the database in open state, it gives an error that one data file needs more recovery.
    How can a consistent backup need more recovery?
    Thanks & Regards
    Arko Provo Mukherjee

    Hi Arko,
    You have to recover it using the archive log generated at the time of backup.
    Read this link
    http://help.sap.com/saphelp_nw04s/helpdata/en/d7/839e9f72dd4049896dab7d153662c5/content.htm
    Regards
    Ashok
    Edited by: Ashok Dalai on Sep 27, 2008 6:50 AM

  • Control file for Oracle Restore

    Hello All,
    We are making use of only ABAP stack of SAP ECC 6.0 Sr3 version
    Database version is Oracle 10.2
    how can i generate control file for ABAP stack only for database restore?
    Please Guide
    Best Regards,
    Amol Dounde

    Hi Amol,
    We discussed the issue in my previous threads;
    http://scn.sap.com/thread/3223223
    Best regards,
    Orkun Gedik

  • Oracle restore with datafiles

         Hi
    We had a  Portal 7.01 system running on Oracle 10.2.0.5 on Solaris 10U10.
    Yesterday there was an accident at server location and after that we have lost all the archives and SAP logs
    We only have SAPdata files left with us
    Now we have to bring up Java system just with SAP datafiles only.
    Can you recommend a process on how this can be achived.
    Would installing a new SAP instance with same hostname and SID and then replacing the SAPdatafiles  with the one we have in backup work?
    Plz guide
    Regards
    Tushar

    Hi Tushar,
    You need archives to restore.
    Don't you have any backups on a storage medium. Try to use them to perform point in time recovery to the best possible. There will be some data loss depending on how old was your last backup.
    However as this is portal system, there must not be big data changes since it is not OLTP or OLAP system.
    Regards
    Imtiaz

  • Oracle Restore Procedure

    Dear SAP Friends
    i'm wonder there is any tutorial for me to do a restore on my oracle. i'm backup my oracle with brbackup and already successfull. for information my sap is Netweaver in Linux and oracle, i'm backup my oracle on disk with "full online backup database".
    Regards
    Hariyono S.Kom
    SAP Basis

    Hi,
    Follow the link which helps you to restore and recovery, see if it helps
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/97a4f439-0d01-0010-d488-d29b45e2f5ab
    Diff types of recovery techniques you can find in the below link
    http://help.sap.com/saphelp_nw04s/helpdata/en/39/45583eb05a4644e10000000a114084/frameset.htm
    Rakesh
    Edited by: Rakesh Kulkarni on May 20, 2008 8:39 AM

  • Oracle restore question involving cooked and asm filesystems

    We have a dataguard primary and standby environment. We converted the standby to asm and thats where take all our of backups. This past week we converted our primary to ASM. However, the developers need a restore of the database. The backup on the standby was done before the primary was converted to asm.
    Will I have an issue restoring the primary database now?

    Yes you can restore a filesystem backup into ASM.
    This part of the 10gR2 documentation is about copying from filesystem to ASM
    Use SET NEWNAME (for each of the datafiles) in your RESTORE script --- e.g. SET NEWNAME FOR DATAFILE 1 to '+DATA'
    if "DATA" is the name of the ASM Diskgroup.
    Then you have to SWITCH DATABASE after the Restore.
    Hemant K Chitale

  • Error While Restoring the Oracle Database using Cloud Backup

    Hello,
    I have been facing a serious error while oracle restoration. I have Backed up Complete Database. For Testing restoration, the DBA removed all the DBF, logs and Control File from there orignal Position.
    He restarted the Database in "Startup nomount" mode. No i am not able to connect to target database from my Backup Server remotely.
    Whenever i try to restore, it shows following error:-
    ***RMAN-04005: error from target database:***
    ***ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
    ***ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
    ***"ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
    I am using Oracle 11g R2 x64-bit database and on Windows Platform with Windows Server 2008 R2.
    Can Anyone help me by connecting, rman to the remote target database when it is in nomount mode.
    I am not able to connect the sqlplus remotely.\
    Thanks in Advance...
    Regards
    Pravesh Upadhyay

    Devika,
    You have to stop all your adapters, your repository, close all IStudio client and stop all sessions connected to this schema before running the oaiimport.
    If you don't do this the oaiimport will not work properly as the script will not be able to drop the user and will try to re-create existing objects.
    Tip : use the following select to list the session using oaihub902 user (and get rid off them)
    select username, count(*)
    from V$session
    where username in ('OAIHUB902')
    group by username
    order by count(*) desc, username
    JL

  • Why is Oracle RMAN restoring a datafile to a different diskgroup?

    Hello,
    When I was trying an RMAN restore of a datafile, I found it is restoring the datafile to a new location. Why is Oracle restoring a datafile to a different diskgroup instead of restoring to the original diskgroup where the datafile was originally present?
    1) I have a datafile '+DATA3/slob1/datafile/undotbs2.260.819992871' which is on +DATA3 diskgroup
    2) I am taking a backup on to +FRA diskgroup
    3) I then offline and delete the datafile 5 using asmcmd to simulate the loss of a datafile
    4) I perform restore and recover of datafile 5 from the backup set on +FRA
    5) Unfortunately the datafile got restored on to +FRA instead of +DATA3. I realize that the file name can change because it is going to be a new file on ASM but I would assume this will be on the same diskgroup atleast since the control file has it pointing to '+DATA3/slob1/datafile/undotbs2.260.819992871' before restoration.
    When I tested on file system, this gets restored on to file system correctly.
    Anyone has any idea why the datafile was restored on to +FRA instead of +DATA3?
    Below is the screen output of what I did.
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ rman target /
    Recovery Manager: Release 11.2.0.2.0 - Production on Thu Jul 11 17:09:21 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SLOB1 (DBID=4051414893)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    25       UNDOTBS2             ***     +DATA3/slob1/datafile/undotbs2.260.819992871
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> backup as backupset datafile 5 format '+FRA';
    Starting backup at 11-07-2013 17:10:03
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=687 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=00005 name=+DATA3/slob1/datafile/undotbs2.260.819992871
    channel ORA_DISK_1: starting piece 1 at 11-07-2013 17:10:04
    channel ORA_DISK_1: finished piece 1 at 11-07-2013 17:10:05
    piece handle=+FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205 tag=TAG20130711T171003 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 11-07-2013 17:10:05
    RMAN> SQL 'alter database datafile 5 offline';
    using target database control file instead of recovery catalog
    sql statement: alter database datafile 5 offline
    RMAN> quit
    Recovery Manager complete.
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ asmcmd rm +DATA3/slob1/datafile/undotbs2.260.819992871
    [oracle@ltc-rac02[+ASM2]:/home/oracle ]$ asmcmd ls -l  +DATA3/slob1/datafile/undotbs2.260.819992871
    ASMCMD-08002: entry 'undotbs2.260.819992871' does not exist in directory '+DATA3/slob1/datafile/'
    [oracle@ltc-rac02[+ASM2]:/home/oracle ]$ . oraenv
    ORACLE_SID = [+ASM2] ? SLOB11
    The Oracle base remains unchanged with value /u01/app/oracle
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ rman target /
    Recovery Manager: Release 11.2.0.2.0 - Production on Thu Jul 11 17:12:27 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SLOB1 (DBID=4051414893)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    0        UNDOTBS2             ***     +DATA3/slob1/datafile/undotbs2.260.819992871
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> restore datafile 5;
    Starting restore at 11-07-2013 17:12:43
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=687 device type=DISK
    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 00005 to +DATA3/slob1/datafile/undotbs2.260.819992871
    channel ORA_DISK_1: reading from backup piece +FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205
    channel ORA_DISK_1: piece handle=+FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205 tag=TAG20130711T171003
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    Finished restore at 11-07-2013 17:12:46
    RMAN> report schema;
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    25       UNDOTBS2             ***     +FRA/slob1/datafile/undotbs2.257.820516365
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> recover datafile 5;
    Starting recover at 11-07-2013 17:13:37
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 11-07-2013 17:13:39
    RMAN> SQL 'alter database datafile 5 online';
    sql statement: alter database datafile 5 online
    Thanks,
    Rijesh

    Hello,
    Can you check what is the value set for the parameter "db_create_file_dest" on the database ?
    Regards,
    Shivananda

  • Restore RMAN Backup

    Dear All,
    I am practicing Oracle Restore scenarios on my Oracle 9i database. Once I complete my tests in Oracle 9i I will move up to 10g and then finally to 11g.
    Following is my recovery scenario:
    1) I did NOT configure Recovery Catalog
    2) I would like to restore my databse from a 15 days old backup
    3) control_file_record_keep_time is set to 7 days.
    4) Backups are on tape.
    Can you guys please shed some light on how to I proceed?
    - P

    In oracle 9i , check , which situation you can perform complete recovery and in which situations you have to select incomplete recovery.
    check the notes by Alejandro Vargas, BACKUP AND RECOVERY SCENARIOS
    http://www.google.co.in/#hl=en&q=oracle+backup+and+recovery+scenarios&aq=0&aqi=g10&aql=&oq=oracle+backup+and+reco&gs_rfai=&fp=aa24f2b3591f5f42
    [PDF]
    Backup and Recovery Scenarios - Backup & Recovery Check List
    - 4:11am
    File Format: PDF/Adobe Acrobat - Quick View
    Oracle Support Israel. User Managed Recovery Scenarios And Configuration .... 4. recover automatic database using backup controlfile; ...
    static7.userland.com/oracle/gems/.../BackupAndRecoveryChecklist.pdf
    refer this, this will helps you.
    Can one restore RMAN backups without a CONTROLFILE and RECOVERY CATALOG?_
    http://www.orafaq.com/wiki/Oracle_database_Backup_and_Recovery_FAQ#Can_one_restore_RMAN_backups_without_a_CONTROLFILE_and_RECOVERY_CATALOG.3F
    Edited by: rajeysh on Jun 20, 2010 6:36 PM

  • Restore achive logs from tape

    Hi
    I need to restore archive logs from the tape. I am pretty new on this, do i have to go brtools and restore the archive logs or there is a t code in sap that I can recover from that? if it is using brtools, what is step and procedure? do I have to use sqlplus? while I am doing this type of recovery, do I need to shut the dabase down?
    please share
    thanks

    Wei,
    You can restore redo logs from below command.
    brrestore -a <start_log#>-<end_log#> -c -d util_file -r <Oracle_Home>\database\initSID.utl
    If you want to do a restore & recovey you can go for point intime recovery. Here You need to restore online backup & then additionally need to apply redologs which were generated after the online backup.
    Check below link for details.
    http://help.sap.com/saphelp_nw04/helpdata/en/93/4ffb72309fb04e80ebfefae1b7a96f/frameset.htm
    also check below SAP notes which will answers of your questions.
    602497 - BRRECOVER - New tool for Oracle Restore and Recovery
    Note 4161 - Complete Recovery
    Note 23070 - Backup and Recovery: Basic Concepts
    Note 4160 - Tape management for recovery
    Hope this helps
    Thanks
    Sushil

  • Oracle Online backup limitations

    Hi,
    We are using oracle 10g for SAP.
    1. In which situation oracle Online consistent backup is not useful.
    2. In a situation all online relog groups are corrupted. Is it possible recovery with online consistent backup ?
    3. In which recovery situation offline backup is good than online backup?
    Regards,
    Nani

    Hi,
    2. In a situation all online relog groups are corrupted.
    Is it possible recovery with online consistent backup ?
    Online Consistent backup only contains the offline redo log files created during a backup run. One can not get any online redo log group members from such online consistent backup. If all online redo logs are corrupted/loss then in such situation instance recovery is not possible and only incomplete partial /point-in-time recovery is possible. If the mirrored online redo log files is available then its possible to perform instance recovery.
    Please refer "Recovering from Current Online Redo Log Missing" && "Recovering from One Inactive Online Redo Log Missing" topic of this useful document [Oracle Restore and Recovery|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/97a4f439-0d01-0010-d488-d29b45e2f5ab?quicklink=index&overridelayout=true].
    I would refer this useful document  [Oracle Restore and Recovery|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/97a4f439-0d01-0010-d488-d29b45e2f5ab?quicklink=index&overridelayout=true] (specially its last part) to get more information about different scenario of Restore &recovery in Oracle.
    Regards,
    Bhavik G. Shroff

  • Installer/Packager for Oracle instance

    Hi! I need to create an installer that would create an Oracle instance on the customer’s Oracle server. For SQL Server I can use SQL Packager (http://www.red-gate.com/products/sql-development/sql-packager/)
    that can create an executable I can incorporate into an .msi file.
    Is there anything available for Oracle?
    As a background, few times a year the company I work for ships CD’s with the latest data. The db schemas change frequently, so we rather not run sql data population scripts cause dba's cannot run them properly. They tend to run data scripts before schema change scripts. My company gave up after spending over $50K on creating some of the best documentation I’ve seen. Instead, we are going to create an installer that would take the name of Oracle box and perform Oracle restore commands to restore an entire database from a dump.
    The SQL Packager product by Red Gate works pretty well for SQL Server.
    What are my options for Oracle?
    Many thanks in advance,
    --Michael Z....
    Edited by: mikezat on Mar 27, 2012 2:59 PM

    mikezat wrote:
    Hi! I need to create an installer that would create an Oracle instance on the customer’s Oracle server. For SQL Server I can use SQL Packager (http://www.red-gate.com/products/sql-development/sql-packager/)
    that can create an executable I can incorporate into an .msi file.
    Is there anything available for Oracle?
    As a background, few times a year the company I work for ships CD’s with the latest data. The db schemas change frequently, so we rather not run sql data population scripts cause dba's cannot run them properly. They tend to run data scripts before schema change scripts. My company gave up after spending over $50K on creating some of the best documentation I’ve seen. Instead, we are going to create an installer that would take the name of Oracle box and perform Oracle restore commands to restore an entire database from a dump.
    The SQL Packager product by Red Gate works pretty well for SQL Server.
    What are my options for Oracle?One possibility would be doing a RMAN restore;
    which is how OUI provides baseline database during software installation.

Maybe you are looking for