Datafiles UNKNOWN after dbms_backup_restore
Hi..
I am doing ASM to ASM database cloning on Linux.
I have restored the datafiles using the dbms_backup_restore procedure from the backupset, but the datafiles are named as "UNKNOWN" after the restore.
The datafiles are named as in below :
Type Redund Striped Time Sys Name
DATAFILE UNPROT COARSE SEP 21 10:00:00 Y UNKNOWN.298.794572463
DATAFILE UNPROT COARSE SEP 21 10:00:00 Y UNKNOWN.299.794572455
One important thing to inform you, the datafiles are restoring nicely with the datafiles names on the filesystem, but problem only on ASM.
Could you please help me out ?
Thanks
Arjun.
hi,
pls take a look at this doc
http://blog.ronnyegner-consulting.de/2010/11/03/how-to-restore-an-rman-backup-without-any-existing-control-files/
Restoring will create the datafile in either you default db-creation dest or in $ORACLE_HOME/dbs. The names unfortunately are lost thus all datafiles are name something like “unnamed<number>” (e.g. “unnamed001″ and so on).
After restoring all datafile you need to re-create the control file.
CREATE CONTROLFILE REUSE DATABASE ORA11P RESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 32
MAXINSTANCES 1
MAXLOGHISTORY 449
LOGFILE
GROUP 1 '/path/oracle/dbs/t_log1.f' SIZE 500K,
GROUP 2 '/path/oracle/dbs/t_log2.f' SIZE 500K
# STANDBY LOGFILE
DATAFILE
'/path/oracle/dbs/t_db1.f',
'/path/oracle/dbs/dbu19i.dbf',
'/path/oracle/dbs/tbs_11.f',
'/path/oracle/dbs/smundo.dbf',
'/path/oracle/dbs/demo.dbf'
CHARACTER SET WE8ISO8859P1
regards,
Edited by: dataseven on 24.Eyl.2012 04:54
Similar Messages
-
RMAN can't SET NEWNAME for datafiles added after Level 1
Version: 11.2.0.3
Platform : Solaris 10
I have the most recent Level 0 , Level 1 and post-L1 Archive logs of the source DB.
I am trying restore, recover in a different machine using plain RMAN (not RMAN DUPLICATE) into a new datafile location.
After the Level 1 backup was taken, 2 datafiles (namdata01.dbf, finaldata01.dbf) were added ( this got 'recorded' on the subsequent post-L1 archivelogs )
Before I ran restore and recover, I restored the latest control file from the most recent L1
RMAN> restore controlfile from '/u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0cnjqk54_1_1_20120829.rmbk' ;Understandably, this control file doesn't have info about the 2 datafiles added after L1 .Wish I could restore control file from archive log :)
So, I cataloged the archive logs as well using CATALOG command.
RMAN> catalog start with '/u01/CATALOGTST/rmanBkpPieces';
using target database control file instead of recovery catalog
searching for all files that match the pattern /u01/CATALOGTST/rmanBkpPieces
List of Files Unknown to the Database
=====================================
File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_08njqj8u_1_1_20120828.rmbk
File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0cnjqk54_1_1_20120829.rmbk
File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc
File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc
File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc
File Name: /u01/CATALOGTST/rmanBkpPieces/06njqj6h_1_1
File Name: /u01/CATALOGTST/rmanBkpPieces/09njqj90_1_1
File Name: /u01/CATALOGTST/rmanBkpPieces/0anjqk3b_1_1
File Name: /u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1
Do you really want to catalog the above files (enter YES or NO)? YES
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_08njqj8u_1_1_20120828.rmbk
File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0cnjqk54_1_1_20120829.rmbk
File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc -------------------> arch logs that contain info on the new datafiles
File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc -------------------> arch logs that contain info on the new datafiles
File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc -------------------> arch logs that contain info on the new datafiles
File Name: /u01/CATALOGTST/rmanBkpPieces/06njqj6h_1_1
File Name: /u01/CATALOGTST/rmanBkpPieces/09njqj90_1_1
File Name: /u01/CATALOGTST/rmanBkpPieces/0anjqk3b_1_1
File Name: /u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1
RMAN> EXITDuring Recovery , RMAN applied the archive logs and managed to create the datafiles successfully. But it can't restore the datafiles to the new location specified in the SET NEWNAME location. Luckily , I had created the original path and these 2 datafiles got restored there.
RMAN can't seem enforce SET NEWNAME for datafiles added after Level 1 backup despite cataloging.
Does SET NEWNAME .... thing work only for RESTORE ?
Log of restore and recover
$ cat restore-recover.txt
run
set newname for database to '/u01/app/CLONE1/oradata/sntcdev/%b' ;
set newname for tempfile '/u01/app/oradata/sntcdev/temp01.dbf' to '/u01/app/CLONE1/oradata/sntcdev/temp01.dbf' ;
restore database;
switch datafile all;
switch tempfile all;
recover database;
$
$ rman target / cmdfile=restore-recover.txt
Recovery Manager: Release 11.2.0.3.0 - Production on Sun Sep 16 21:27:49 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: SNTCDEV (DBID=2498462290, not open)
RMAN> run
2> {
3> set newname for database to '/u01/app/CLONE1/oradata/sntcdev/%b' ;
4> set newname for tempfile '/u01/app/oradata/sntcdev/temp01.dbf' to '/u01/app/CLONE1/oradata/sntcdev/temp01.dbf' ;
5> restore database;
6> switch datafile all;
7> switch tempfile all;
8> recover database;
9> }
10>
11>
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 16-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=18 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 00001 to /u01/app/CLONE1/oradata/sntcdev/system01.dbf
channel ORA_DISK_1: restoring datafile 00002 to /u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
channel ORA_DISK_1: restoring datafile 00003 to /u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
channel ORA_DISK_1: restoring datafile 00004 to /u01/app/CLONE1/oradata/sntcdev/users01.dbf
channel ORA_DISK_1: restoring datafile 00005 to /u01/app/CLONE1/oradata/sntcdev/example01.dbf
channel ORA_DISK_1: restoring datafile 00006 to /u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
channel ORA_DISK_1: reading from backup piece /u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
channel ORA_DISK_1: errors found reading piece handle=/u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
channel ORA_DISK_1: failover to piece handle=/u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk tag=TAG20120828T234834
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:35
Finished restore at 16-SEP-12
datafile 1 switched to datafile copy
input datafile copy RECID=8 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=9 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=10 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=11 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=12 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/example01.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=13 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
renamed tempfile 1 to /u01/app/CLONE1/oradata/sntcdev/temp01.dbf in control file
Starting recover at 16-SEP-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00001: /u01/app/CLONE1/oradata/sntcdev/system01.dbf
destination for restore of datafile 00002: /u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
destination for restore of datafile 00003: /u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
destination for restore of datafile 00004: /u01/app/CLONE1/oradata/sntcdev/users01.dbf
destination for restore of datafile 00005: /u01/app/CLONE1/oradata/sntcdev/example01.dbf
destination for restore of datafile 00006: /u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
channel ORA_DISK_1: reading from backup piece /u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
channel ORA_DISK_1: errors found reading piece handle=/u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
channel ORA_DISK_1: failover to piece handle=/u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk tag=TAG20120829T000356
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
starting media recovery
archived log for thread 1 with sequence 13 is already on disk as file /u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc
archived log for thread 1 with sequence 14 is already on disk as file /u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc
archived log for thread 1 with sequence 15 is already on disk as file /u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=12
channel ORA_DISK_1: reading from backup piece /u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1
channel ORA_DISK_1: piece handle=/u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1 tag=TAG20120829T000454
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/u01/archLogs/arch_1_12_790513173.arc thread=1 sequence=12
archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc thread=1 sequence=13
creating datafile file number=7 name=/u01/app/oradata/sntcdev/namdata01.dbf
archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc thread=1 sequence=13
archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc thread=1 sequence=14
archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc thread=1 sequence=15
creating datafile file number=8 name=/u01/app/oradata/sntcdev/finaldata01.dbf
archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc thread=1 sequence=15
unable to find archived log
archived log thread=1 sequence=16
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 09/16/2012 21:29:51
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 16 and starting SCN of 1004015
Recovery Manager complete.
$
$
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sun Sep 16 21:30:04 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name from v$datafile;
NAME
/u01/app/CLONE1/oradata/sntcdev/system01.dbf
/u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
/u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
/u01/app/CLONE1/oradata/sntcdev/users01.dbf
/u01/app/CLONE1/oradata/sntcdev/example01.dbf
/u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
/u01/app/oradata/sntcdev/namdata01.dbf ----------------------> restored to old location ignoring SET NEWNAME ....
/u01/app/oradata/sntcdev/finaldata01.dbf ----------------------> restored to old location ignoring SET NEWNAME ....
8 rows selected.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ cd /u01/app/oradata/sntcdev # -----------------------------> the old location
$
$ ls -alrt
total 243924
drwxr-xr-x 3 oracle oinstall 512 Aug 5 10:55 ..
drwxr-xr-x 2 oracle oinstall 512 Sep 16 20:59 .
-rw-r----- 1 oracle oinstall 104865792 Sep 16 21:29 namdata01.dbf
-rw-r----- 1 oracle oinstall 19931136 Sep 16 21:29 finaldata01.dbfRMAN> run
2> {
3> set newname for database to '/u01/app/CLONE1/oradata/sntcdev/%b' ;
4> set newname for tempfile '/u01/app/oradata/sntcdev/temp01.dbf' to '/u01/app/CLONE1/oradata/sntcdev/temp01.dbf' ;
5> restore database;
6> switch datafile all;
7> switch tempfile all;
8> recover database;
9> }RMAN executes the commands in the run block stepwise. In your case, starting from "set newname for database..." and lastly executing "recover database...".
Let me interpret it for you.
1. You restored the controlfile from the L1 backup which does not have any information about the 2 newly added datafiles. You cataloged the backuppieces and the archives to this controlfile, which means that the controlfile would now be aware that the required backups and archives are in this cataloged location.
2. You set newname for database to the desired location, thereby this command is executed restoring the database from the L0 and L1 backups. (These 2 backups do not have any information about the newly added datafiles and hence the 2 files would still not be restored).
3. You execute restore database which restores the files from L0 and L1 backup.
4. Switch datafile all, this renames all the files that were restored in the previous steps to the desired name/location that was mentioned in step 2.
5. Recover database: This is where the archivelogs come into picture. The data in the archives would be created & recovered. The newly added datafiles are now created & recovered but RMAN does not go back to STEP 2 and STEP 4 to re-execute the commands in STEP2 and STEP4 to restore it to the desired location (STEP 2) and Rename it (STEP 4). The files will have to renamed later by moving them manually to the location that you require.
So, RMAN does not execute the SET NEWNAME for datafiles which were added after the backup as the information about these files do not exist in the RMAN backuppieces. -
Using Enterage 12.3.5 getting 5.1.1 User Unknown after Send Recieve
When using Office 2008's Enterage, get a error message 5.1.1 User Unknown after hitting Send/Recive All opton. The product works fine in all other respects.
got the problem. i am running oraesb as sysdba which i should not do.
-
HT1267 my iphone say imei iccid unknown after i upgraded please help
my iphone says imei iccid unknown after i upgraded please help
That indicates a critical failure. It can not be fixed. The phone will need to be replaced.
Often, this is the result of attempting to update a jailbroken phone. -
Iphone 5s say "device unknown" after restoring it and trying to activate it again
Iphone 5s says"device unknown" after restoring it and trying to activate it again.
http://support.apple.com/kb/TS3424?viewlocale=en_US&locale=en_US
-
Signature Validation Reverts to "Unknown" after Signing
I am having an issue with validating the signature on a form I am working on. The form is used to track maintenance and repair on shop equipment, and I'm using the signature to close the form out once it's completely filled in. The problem is that, for some reason, when I run the PDF and digitally sign the form, the signature initially shows as being validated, but then the validation status reverts to "unknown." I've run a temporary script on several of the signature field's events and found that the reversion occurs after the signing sequence is completed. All changes to the form are completed in the signature's preSign event, and no changes are reported in the signature panel--the panel indicates that the signature was never validated, even though it was validated a few fractions of a second earlier, something my script confirmed. What could cause the validation status to change like this?
Thanks for any help!I've found the solution. I had several "page X of Y" fields in my form and had the signature block set to lock them after signature. Once I excluded those fields from being locked, the problem resolved itself.
-
My Voicemails show as unknown after upgrade to iOS 7
After speaking with Apple support today I am quite dismayed. I had a 1st Gen 4S and after upgrading to iOS 7 while my callers are clearly identified when calling, and clearly identified with Name (from contacts) and number in the recent caller list. All, but a few seldom mobile callers, who leave voicemails show in visual voicemail as Unknown. Apple tech says he hasn't ever heard of the problem before. However, most everyone I meet who has upgraded their phone to iOS 7 is complaining of the same problem. My wife, my neighbors. Please tell this is not some weird anomaly within 25 miles of my home. Surely someone else is having this problem! Anyone with a solution. I upgraded today to 5S today and the problem persists. My contacts are from an Exchange server account though I cannot see how it could be the problem.
OK, tried the reset and it seems to have cleared up some problems; however, the picture problem remains.
Maybe there is something further we could do in settings? My wife uses the iPad as her constant companion and likes to take screen shots (pictures) of recipes and such. She keeps them in albums. Before the update to iOS 7 they all displayed correctly regardless of physical machine orientation. Now, post update, when in landscape mode, which she uses 99.9% of the time, her pics do do fully display. By physically rotating the machine, they will appear correctly. We have noticed that there is a new "function" in edit pics for "aspect ratio."
Should we be using this? If so, she'll have to edit a very large number of pics. So I'm wondering if we're missing some new setting. BTW- this display problem also occurs with pics taken with the camera as well. -
Datafile size after index rebuld?
Hi experts,
I recently rebuild indexes on some tables having fragmentation >80% and page count >40000 by job setting database in bulk_logged mode during rebuild.
and most of them were over 90% fragmented.It was off line index rebuild, after rebuild I noticed that my datafile
used space decreased
from 38 GB to 29 GB instead of increase, see blow table for before and after status. Suggestions please.
Before rebuild
SIZE_MB
USED_MB
FREE_SPACE
%_FREE
AUTO_GROWTH
NAME
42305
38952
3353
8
10%
ABC
2200
18
2182
99
10%
ABC_LOG
After rebuild
SIZE_MB
USED_MB
FREE_SPACE
%_FREE
AUTO_GROWTH
NAME
42305
29861
12444
29
10%
ABC
2200
228
1972
89
10%
ABC_LOG
thanksHi,
If you are thinking de-fragmantation operation has deleted something , then rest assured this has not happened what you are seeing is normal behavior with offline index rebuild. Perhaps fill factor used during index rebuild was good one and this filler the
pages aptly requiring less pages(may be) so decrease in size.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
My Nano Format Unknown after update
I was in the process of updating my nano tonight with version 1.1. During the process, my computer crashed. Now I lost all my information and songs. It shows that I have version 1.1, but it lists the Format as "unknown" and the capacity at "0 Kb". iTunes and the Update cannot recognize the iPod and Windows just labels it as a USB Storage Drive. I've also tried putting it in Disk Mode. I assume the software is damaged and need to reinstall, but how?? Any ideas??
Restoring iPod to factory settings:
http://docs.info.apple.com/article.html?artnum=60983
Regards
Colin R. -
Phone Number Unknown after ios5 Update?!
I am also having facetime and imessage problems. I can only use facetime if using email. However, when I went into 'settings', then 'phone', my phone number is listed as 'unknown'. Before the ios5 update, my actual phone number was listed. I am unable to change this, and have already tried the system restore with no luck. Help?
I had already attempted to resolve the issue using those tips; however since it's a generic error message it could be for anything, and no, nothing i tried worked.
-
ISync shows Nokia phone as "unknown" after 10.4.9 upgrade
iSync hasn't worked with my Nokia 6111 (Series 40) phone since I upgraded to Mac OS X 10.4.9. Everything was working just fine before. My phone just comes up as "unknown" and sync attempts return a "No device activated" error.
Following related answers to this problem, I've tried the following steps:
- delete Bluetooth pairing from Bluetooth Preferences and my phone
- in iSync: File -> Remove Device
- verify that ~/Library/Phones/ is empty (it was)
- delete com.apple.Bluetooth.plist and com.apple.isync.plist from ~/Library/Preferences
- delete syncState.plist and sync.plist from ~/Application Support/iCal
- restart the Mac and the phone
- readd phone in Bluetooth Preferences, select "Set up iSync to transfer contacts and events"
When I do the above, the phone repeatedly comes up as "unknown" in iSync, and when trying to sync it again shows "No device activated..." as an error.
Even stranger, today I tried pairing my phone with my new iMac at work - on a clean install of 10.4.9 that had no previous iSync profiles or Bluetooth pairings. It worked perfectly.
Are there some other preference or support files that I should be deleting? Out of sheer optimism, I haven't yet tried (a) factory-resetting the phone and (b) clean-reinstalling my Mac OS.
Thanks...
D.
B+W G3 400MHz Mac OS X (10.4.9) D-Link Bluetooth adaptor, Nokia 6111I have the same problem (nokia 6021). Help.
-
ONS 15454 shows up as "unknown" after power outage
We had a power outage that took down a ONS 15454 in a remote facility. Upon restoring power and powering-up the unit, it shows up in CTC as grey with "Uknown2" as the name.
I had someone reseat the TCC card, but it still comes up as unknown.
Has anyone seen this? Any suggestions (the device is hours from me)Try and restart CTC session and clear CTC cache
Can you ping the node
Check to see if the node is in the OSPF routing table
Can you access via CTC locally
Is your CTC terminal directly connected or does it go via a firewall
Probably resolved now how did you resolve it? -
Reducing datafiles/tablespace after moving several tables out
I have moved several large tables from one tablespace to another. The original one now shows about 50% used, from 88%.
Of course, I would like to reclaim the 38% of the tablespace in terms of disc space.
We use 1025M datafiles within each tablespace but I appreciate Oracle spreads data across them, so it's unlikely any one datafile is even empty.
However, is there a way to "shrink" the tablespace so that we can resize it more appropriately (so it's nearer 80% used not 50%) ?
ThanksHi,
To fully reduce the size of the tablespace to 50%, you will need to move the rest of the tables also to some other tablespace and shrink the datafiles and then move back those tables to this tablespace. This is the only option.
Otherwise, you can try to shrink each of the datafile to the extent possible. May be, you will be able to claim back 1 to 38%.
HTH
Regards,
Badri. -
I updated my arch distribution and thought i could be lazy and handle the pacnew files automatically which was a bad idea.
Now i have the problem, that my user is not known to the system.
Whoami sasy: whoami: cannot find name for user ID 1000
/etc/passwd says:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
nobody:x:99:99:nobody:/:/bin/false
dbus:x:81:81:System message bus:/:/bin/false
elk0:x:1000:100::/home/elk0:/bin/zsh
avahi:x:84:84:avahi:/:/bin/false
usbmux:x:140:140:usbmux user:/:/sbin/nologin
rtkit:x:133:133:RealtimeKit:/proc:/sbin/nologin
gdm:x:120:120:Gnome Display Manager:/var/lib/gdm:/sbin/nologin
ntp:x:87:87:Network Time Protocol:/var/lib/ntp:/bin/false
git:x:999:998:git daemon user:/:/bin/bash
uuidd:x:998:997::/:/sbin/nologin
mysql:x:89:89::/var/lib/mysql:/bin/false
kdm:x:135:135::/var/lib/kdm:/bin/false
polkitd:x:102:102:Policy Kit Daemon:/:/bin/false
I googled a lot but nothing worked yet (i even tried to revert to the backuped files. Now i am at the end of my linux knowledge and need help urgently.I ran into the tex problem which is described here https://www.archlinux.org/news/texlive- … ervention/ and used pacdiff. Because i was lazy (yes shame on me, it will never happen again, hard lesson!), i just ran through the process which than has overwritten the passwd with passwd.pacnew, which has the following content:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
uuidd:x:68:68:uuidd:/:/sbin/nologin
dbus:x:81:81:dbus:/:/sbin/nologin
nobody:x:99:99:nobody:/:/bin/false
As it seems now, this has also been done to the following files (backups of the old exists)
/etc/shadow
/etc/gshadow
/etc/group
So googling around someone with an similar sounding problem has resolved that by replacing the new files with the backups. So i did, but it didn't work.
Edit: pacman -Qii filesystem is giving me following List of backuped files:
UNMODIFIED /etc/fstab
UNREADABLE /etc/crypttab
UNREADABLE /etc/group
MODIFIED /etc/hosts
UNMODIFIED /etc/ld.so.conf
UNREADABLE /etc/passwd
UNREADABLE /etc/shadow
UNREADABLE /etc/gshadow
MODIFIED /etc/resolv.conf
UNMODIFIED /etc/motd
UNMODIFIED /etc/nsswitch.conf
MODIFIED /etc/shells
UNMODIFIED /etc/host.conf
UNMODIFIED /etc/securetty
MODIFIED /etc/profile
UNMODIFIED /etc/issue
Last edited by elk0 (2013-08-06 10:24:23) -
After offline drop datafile, v$datafile.status='RECOVER'
OS version:
[oracle@base ~]$ uname -a
Linux base.no.sohu.com 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
DB version:
SQL> select version from v$instance;
VERSION
9.2.0.1.0Here is my steps,
SQL>alter database datafile '/usr/oradata/bill/soq05.dbf' offline;
Database altered.
SQL>alter database datafile '/usr/oradata/bill/soq05.dbf' offline drop;
Database altered.Cause there is nothing errors generated, I thought the commands executed sucessfully. But it's not.
SQL> SELECT NAME,STATUS FROM v$datafile WHERE NAME='/usr/oradata/bill/soq05.dbf';
NAME STATUS
/usr/oradata/bill/soq05.dbf RECOVER
SQL> SELECT FILE#, STATUS, ERROR, RECOVER, TABLESPACE_NAME, NAME
2 FROM V$DATAFILE_HEADER
3 WHERE RECOVER = 'YES' OR (RECOVER IS NULL AND ERROR IS NOT NULL);
FILE# STATUS ERROR RECOVER TABLESPACE_NAME NAME
18 OFFLINE YES SOQ /usr/oradata/bill/soq05.dbf
[oracle@base ~]$ ll /usr/oradata/bill/soq05.dbf
-rw-r----- 1 oracle oinstall 1073750016 Aug 28 17:39 /usr/oradata/bill/soq05.dbfThe datafile haven't been droped successfully and its status changed to 'RECOVER'. Also, I can't online it now.
What should I do to make this datafile droped or at least make it online/offline? What I am worry is the database will be failed to restart because of this 'RECOVER' datafile.
Thanks very much!
SatineHey Werner,
Thanks very much for your help.
The reason I tried to drop the datafile is after I add the datafile to tablespace, I found the datafile failed to be created on the standby side because the parameter "db_file_name_convert"'s value were incorrect. When I created the datafile on primary side, the value of "db_file_name_convert" was,
SQL> select name,value from v$parameter where name='db_file_name_convert';
NAME VALUE
db_file_name_convert /home/oracle/bill/oradata/bill, /U02/bill/oradata/billIt should be VALUE='/usr/oradata/bill','/U02/bill/oradata/bill'. For now the datafile's status on standby side is,
SQL> SELECT name,status FROM V$DATAFILE where file#=18;
NAME STATUS
/U02/bill/product/9.2.0.1/dbs/UNNAMED00018 RECOVERIf the datafile on primary side could been recovered successfully, is there a way to make the datafile on standby side also correct?
Thanks
Satine
Maybe you are looking for
-
Hi Help me in executing My Project
Hi all, I'm a BTECH student. I'm currently doing my project and had some problem during execution... My SYStem Configuration: OS: Windows 2000 server.. For Project Purpose I Installed in my System: JDK 1.5 Tomcat 5.0 and Oracle 9i.. I can't run the p
-
Good Afternoon, I have the following issue in the moment of update the data in the Employee Self-Service - >Personal Information----->Addresses, with a user at the moment of save the data the portal display the following message of dump A critical er
-
Middle tier: NT vs. Unix or Linux
Currently, we use WindowsNT on our forms servers. We develop on windows workstations as well. We are considering moving our middle tier onto unix or linux. Shouldn't be a big deal, right? Just recompile the .fmb's on the server. Are there any gotcha'
-
TDMS - time based reduction - receiver system deletion
Experts, I'm doing a time based reduction. I'm on the step "Start Deletion of Data in Receiver System". It's been running for over 18hours. But I don't see any jobs running in SM66 on the Central/Control or Sender or Reciever systems. When I click
-
Hi SAP Minds, How can we find out the last execution date of a report? Is there any F.M available to serve this, or any system tables are there? Please help me out. Thanks in advance.