Recovering data when log files corrupt
I am interested to understand if you can easily salvage the data files if the log files corrupt for some reason. Thus far I cannot see how this can be easilly achieved as db_backup requires a working environment, and since the log files may have vanished, the LSN of the data files will be greater than of the last log - and therefore refuse to create the environment.
Ideally I guess, I am looking for a tool that can reset the LSN in place. It would be better to have access to your 100's of GB of data and accept a small amount of inconsistency or data loss than have nothing.
Thanks
Hi,
Resetting LSNs can be done using db_load -r lsn or using the lsn_reset() method, and it is done in place.
If your log files are corrupted, you would need to verify the database files (you can use the db_verify BDB utility or the verify() method). The actions you will further take depend on the result of verifying the database files:
- if they verify correctly then you just need to reset the LSNs and the file IDs in the databases and start with a fresh environment,
- if they do not verify correctly, you could restore the data from the most recent backup, or you can perform a salvage dump of the data in the database files using db_dump -r or db_dump -R and than reload the data using db_load; see the Dumping and Reloading Databases doc section in the Berkeley DB Programmer's Reference Guide.
Regards,
Andrei
Similar Messages
-
Recover from currnet log file corruption in archive mode
Hi,
I am using oracle 10.2.0 on windows xp. my database is in archivelog mode. I am learning recovery. I take backup of database using
RMAN> backup database;
Starting backup at 03-SEP-09
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00004 name=D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
input datafile fno=00001 name=D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
input datafile fno=00003 name=D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
input datafile fno=00002 name=D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
channel ORA_DISK_1: starting piece 1 at 03-SEP-09which completed.
my current logfile and current sequence no is
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
FIRST_CHANGE# FIRST_TIM
1 1 88 52428800 1 NO CURRENT
4475270 01-SEP-09
2 1 86 52428800 1 YES INACTIVE
4426127 31-AUG-09
3 1 87 52428800 1 YES INACTIVEThen i delete my only one redolog file in my current group. my instance crashes i want to recover now first i try
SQL> startup
ORACLE instance started.
Total System Global Area 289406976 bytes
Fixed Size 1248576 bytes
Variable Size 92275392 bytes
Database Buffers 188743680 bytes
Redo Buffers 7139328 bytes
Database mounted.
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1:
'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
SQL> select open_mode from v$database;
OPEN_MODE
MOUNTED
SQL> recover database until cancel;
ORA-00279: change 4500421 generated at 09/03/2009 10:49:48 needed for thread 1
ORA-00289: suggestion : D:\1\ARC00088_0693601900.001
ORA-00280: change 4500421 for thread 1 is in sequence #88
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF'
ORA-01112: media recovery not startedit doesn't work then i do
RMAN> restore database
2> ;
Starting restore at 03-SEP-09
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
restoring datafile 00002 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
restoring datafile 00003 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
restoring datafile 00004 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
channel ORA_DISK_1: reading from backup piece D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_09_03
KP
channel ORA_DISK_1: restored backup piece 1
piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_09_03\O1_MF_NNNDF_TAG20090903T104947_5
channel ORA_DISK_1: restore complete, elapsed time: 00:02:16
Finished restore at 03-SEP-09
RMAN>
RMAN> recover database until sequence 87;
Starting recover at 03-SEP-09
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 09/03/2009 11:06:06
RMAN-06556: datafile 1 must be restored from backup older than scn 4444743It means i need an older backup but i have new backup how to restore or get my database up.
Thanks
umeshThanks for reply
i have this in my hand
RMAN> list backupset;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1 Full 1.38G DISK 00:02:21 03-SEP-09
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20090903T104947
Piece Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_09_03\O1_MF_NNNDF_TAG20090903T104947_59YNHNSK_.BKP
List of Datafiles in backup set 1
File LV Type Ckp SCN Ckp Time Name
1 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
2 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
3 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
4 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
BS Key Type LV Size Device Type Elapsed Time Completion Time
2 Full 6.80M DISK 00:00:03 03-SEP-09
BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20090903T104947
Piece Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_09_03\O1_MF_NCSNF_TAG20090903T104947_59YNN8J9_.BKP
Control File Included: Ckp SCN: 4500486 Ckp time: 03-SEP-09
SPFILE Included: Modification time: 03-SEP-09
RMAN> restore database preview;
Starting restore at 03-SEP-09
using channel ORA_DISK_1
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1 Full 1.38G DISK 00:02:21 03-SEP-09
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20090903T104947
Piece Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_09_03\O1_MF_NNNDF_TAG20090903T104947_59YNHNSK_.BKP
List of Datafiles in backup set 1
File LV Type Ckp SCN Ckp Time Name
1 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
2 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
3 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
4 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
archive logs generated after SCN 4500421 not found in repository
Media recovery start SCN is 4500421
Recovery must be done beyond SCN 4500421 to clear data files fuzziness
Finished restore at 03-SEP-09
RMAN> backup archivelog all ;
Starting backup at 03-SEP-09
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=60 recid=3 stamp=694522772
input archive log thread=1 sequence=61 recid=4 stamp=694543115
input archive log thread=1 sequence=62 recid=5 stamp=694693173
input archive log thread=1 sequence=63 recid=6 stamp=694707783
input archive log thread=1 sequence=64 recid=7 stamp=694785054
input archive log thread=1 sequence=65 recid=8 stamp=694787797
input archive log thread=1 sequence=66 recid=9 stamp=694794198
input archive log thread=1 sequence=67 recid=10 stamp=694799765
input archive log thread=1 sequence=68 recid=11 stamp=694806827
input archive log thread=1 sequence=69 recid=12 stamp=694809124
input archive log thread=1 sequence=70 recid=13 stamp=694868744
input archive log thread=1 sequence=71 recid=14 stamp=695132728
input archive log thread=1 sequence=72 recid=15 stamp=695210729
input archive log thread=1 sequence=73 recid=16 stamp=695330401
input archive log thread=1 sequence=74 recid=17 stamp=695399695
input archive log thread=1 sequence=75 recid=18 stamp=695412690
input archive log thread=1 sequence=76 recid=19 stamp=695511043
input archive log thread=1 sequence=77 recid=20 stamp=695557945
input archive log thread=1 sequence=78 recid=21 stamp=695597432
input archive log thread=1 sequence=79 recid=22 stamp=695728451
input archive log thread=1 sequence=80 recid=23 stamp=695729334
input archive log thread=1 sequence=81 recid=24 stamp=695729976
input archive log thread=1 sequence=82 recid=25 stamp=695835471
input archive log thread=1 sequence=83 recid=26 stamp=695988878
input archive log thread=1 sequence=84 recid=27 stamp=696160938
input archive log thread=1 sequence=85 recid=28 stamp=696333853
input archive log thread=1 sequence=86 recid=29 stamp=696360658
input archive log thread=1 sequence=87 recid=30 stamp=696454218
channel ORA_DISK_1: starting piece 1 at 03-SEP-09
channel ORA_DISK_1: finished piece 1 at 03-SEP-09
piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_09_03\O1_MF_ANNNN_TAG20090903T115246_59YR5VRV_.BKP tag=TAG20090903T1
=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:08
Finished backup at 03-SEP-09
RMAN> restore database preview;
Starting restore at 03-SEP-09
using channel ORA_DISK_1
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1 Full 1.38G DISK 00:02:21 03-SEP-09
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20090903T104947
Piece Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_09_03\O1_MF_NNNDF_TAG20090903T104947_59YNHNSK_.BKP
List of Datafiles in backup set 1
File LV Type Ckp SCN Ckp Time Name
1 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
2 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
3 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
4 Full 4500421 03-SEP-09 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
archive logs generated after SCN 4500421 not found in repository
Media recovery start SCN is 4500421
Recovery must be done beyond SCN 4500421 to clear data files fuzziness
Finished restore at 03-SEP-09now i have two backup one is full database backup which will not work another is backup of all archivelog upto sequence 87 i think it should work.
but rman is choosing full database backup for restore.
so i need to force rman to choose archivelog backups for restore but don't know how to do it. please suggest.
Thanks
umesh -
Transaction log shipping restore with standby failed: log file corrupted
Restore transaction log failed and I get this error: for only 04 no of database in same SQL server, renaming are working fine.
Date
9/10/2014 6:09:27 AM
Log
Job History (LSRestore_DATA_TPSSYS)
Step ID
1
Server
DATADR
Job Name
LSRestore_DATA_TPSSYS
Step Name
Log shipping restore log job step.
Duration
00:00:03
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted
0
Message
2014-09-10 06:09:30.37 *** Error: Could not apply log backup file '\\10.227.32.27\LsSecondery\TPSSYS\TPSSYS_20140910003724.trn' to secondary database 'TPSSYS'.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37 *** Error: An error occurred while processing the log for database 'TPSSYS'.
If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.
An error occurred during recovery, preventing the database 'TPSSYS' (13:0) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.
RESTORE LOG is terminating abnormally.
Processed 0 pages for database 'TPSSYS', file 'TPSSYS' on file 1.
Processed 1 pages for database 'TPSSYS', file 'TPSSYS_log' on file 1.(.Net SqlClient Data Provider) ***
2014-09-10 06:09:30.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37 Skipping log backup file '\\10.227.32.27\LsSecondery\TPSSYS\TPSSYS_20140910003724.trn' for secondary database 'TPSSYS' because the file could not be verified.
2014-09-10 06:09:30.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37 *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37 *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37 *** Error: An error occurred restoring the database access mode.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37 *** Error: ExecuteScalar requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37 Deleting old log backup files. Primary Database: 'TPSSYS'
2014-09-10 06:09:30.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37 The restore operation completed with errors. Secondary ID: 'dd25135a-24dd-4642-83d2-424f29e9e04c'
2014-09-10 06:09:30.37 *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.37 *** Error: Could not cleanup history.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-10 06:09:30.37 *** Error: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.(System.Data) ***
2014-09-10 06:09:30.38 ----- END OF TRANSACTION LOG RESTORE
Exit Status: 1 (Error)I Have restore the database to new server and check with new log shipping but its give this same error again, If it is network issue i believe issue need to occur on every database in that server with log shipping configuration
error :
Message
2014-09-12 10:50:03.18 *** Error: Could not apply log backup file 'E:\LsSecondery\EAPDAT\EAPDAT_20140912051511.trn' to secondary database 'EAPDAT'.(Microsoft.SqlServer.Management.LogShipping) ***
2014-09-12 10:50:03.18 *** Error: An error occurred while processing the log for database 'EAPDAT'. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.
An error occurred during recovery, preventing the database 'EAPDAT' (8:0) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.
RESTORE LOG is terminating abnormally.
can this happened due to data base or log file corruption, if so how can i check on that to verify the issue
Its not necessary if the issue is with network it would happen every day IMO it basically happens when load on network is high and you transfer log file which is big in size.
As per message database engine was not able to restore log backup and said that you must rebuild log because it did not find out log to be consistent. From here it seems log corruption.
Is it the same log file you restored ? if that is the case since log file was corrupt it would ofcourse give error on wehatever server you restore.
Can you try creating logshipping on new server by taking fresh full and log backup and see if you get issue there as well. I would also say you to raise case with Microsoft and let them tell what is root cause to this problem
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 Articles -
Log file corrupt and can't open the database.
I use Replication Manager to manage my Replication; and there is only one site currently in my application.
I killed the App process with signal -9. (ie. $ kill -9 appID).
Then I try to restart the App, but the event_callback function got a PANIC event when to open the envirment.
The open flag is:
flags = DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL |
DB_INIT_REP | DB_INIT_TXN | DB_RECOVER | DB_THREAD;
ret = dbenv->open(dbenv, path, flags | DB_SYSTEM_MEM, 0);
What's the reason cause this problem?
How can recover it ?
The logs list as below:
[D 11/19 09:44] dbpf using shm key: 977431433
[E 11/19 09:44] [src/io/dbpf-mgmt.c, 400]
[E 11/19 09:44] yuga: DB_LOGC->get: LSN 1/9776: invalid log record header
[E 11/19 09:44] yuga: Log file corrupt at LSN: [1][9906]
[E 11/19 09:44] yuga: PANIC: Invalid argument
[E 11/19 09:44] [src/io/dbpf-mgmt.c] Rep EventGot a panic: Invalid argument (22)
Edited by: dbnicker on Nov 18, 2010 6:08 PMFirst, what version of Berkeley DB are you running and on what system?
The error indicates something amiss in the log. The LSN values are quite
small. Can you run 'db_printlog -N -h <env path>' and post the log
contents?
If you are using BDB 5.0 or later, can you also post the contents of
the __db.rep.diag00 file in the environment home directory? Thanks.
Sue LoVerso
Oracle -
Hello, everyone
I re-installed my windows XP due to virus with the maxdb data and log files left. After that I reinstalled maxdb 7.6 again. How can I recover the db with the existed data and log ? I did not backup the db. I can not figure out a way. Please help me.
ChuHi Chu,
creating a MaxDB instance from the data- and logvolumes is not difficult, but some requirements have to be fullfilled:
- you still have the parameter file left
- you still know the password of the database manager operator (DBM in OpenSource or CONTROL for SAP instances)
That given, all you've to do is to re-register the database, via the db_create command:
dbmcli -R "
So, let's go for an example.
I've a database called DB77, the dbm operator is called control, password is also control.
I'll drop the database but keep the files (just like you have it ... hopefully) and re-register the database afterwards:
>dbmcli db_enum
OK
DB77 C:sapdbdb77db 7.7.02.16 fast offline
DB77 C:sapdbdb77db 7.7.02.16 slow offline
>dir c:sapdbdataconfig
Datenträger in Laufwerk C: ist Boot
Volumeseriennummer: 08C7-EC59
Verzeichnis von c:sapdbdataconfig
24.03.2008 13:37 <DIR> .
24.03.2008 13:37 <DIR> ..
25.10.2007 14:11 12.739 .M770216
25.10.2007 14:11 97.900 .M770216.pah
25.10.2007 14:11 1.536 .M770216.upc
14.02.2008 02:21 20.579 .M770323
14.02.2008 02:21 201.850 .M770323.pah
14.02.2008 02:21 1.536 .M770323.upc
14.03.2008 02:23 20.795 .UMDB
14.02.2008 02:24 20.795 .UMDB.01
25.10.2007 14:24 20.795 .UMDB.02
14.03.2008 02:23 26 .UMDB.cfg
14.02.2008 02:24 207.625 .UMDB.pah
25.10.2007 14:24 2.048 .UMDB.upc
14.03.2008 09:23 13.405 DB77
13.03.2008 23:51 13.405 DB77.01
11.03.2008 20:10 13.405 DB77.02
14.02.2008 02:21 13.405 DB77.03
14.02.2008 02:17 13.405 DB77.04
24.01.2008 19:06 13.405 DB77.05
11.01.2008 18:57 13.405 DB77.06
31.12.2007 01:40 13.405 DB77.07
26.12.2007 14:40 13.404 DB77.08
26.12.2007 14:20 13.181 DB77.09
26.12.2007 14:01 13.181 DB77.10
14.03.2008 09:23 75 DB77.cfg
02.12.2007 18:24 648 DB77.mmm
11.03.2008 20:16 343.475 DB77.pah
24.03.2008 13:37 2.048 DB77.upc
14.02.2008 02:20 <DIR> install
27 Datei(en) 1.101.476 Bytes
3 Verzeichnis(se), 20.064.083.968 Bytes frei
Ok, the database is currently correctly registered and the parameter file is present. Now let's drop the database:
>dbmcli -d db77 -u control,control db_drop withoutfiles
OK
>dir c:sapdbdataconfig
Datenträger in Laufwerk C: ist Boot
Volumeseriennummer: 08C7-EC59
Verzeichnis von c:sapdbdataconfig
24.03.2008 13:37 <DIR> .
24.03.2008 13:37 <DIR> ..
25.10.2007 14:11 12.739 .M770216
25.10.2007 14:11 97.900 .M770216.pah
25.10.2007 14:11 1.536 .M770216.upc
14.02.2008 02:21 20.579 .M770323
14.02.2008 02:21 201.850 .M770323.pah
14.02.2008 02:21 1.536 .M770323.upc
14.03.2008 02:23 20.795 .UMDB
14.02.2008 02:24 20.795 .UMDB.01
25.10.2007 14:24 20.795 .UMDB.02
14.03.2008 02:23 26 .UMDB.cfg
14.02.2008 02:24 207.625 .UMDB.pah
25.10.2007 14:24 2.048 .UMDB.upc
14.03.2008 09:23 13.405 DB77
13.03.2008 23:51 13.405 DB77.01
11.03.2008 20:10 13.405 DB77.02
14.02.2008 02:21 13.405 DB77.03
14.02.2008 02:17 13.405 DB77.04
24.01.2008 19:06 13.405 DB77.05
11.01.2008 18:57 13.405 DB77.06
31.12.2007 01:40 13.405 DB77.07
26.12.2007 14:40 13.404 DB77.08
26.12.2007 14:20 13.181 DB77.09
26.12.2007 14:01 13.181 DB77.10
14.03.2008 09:23 75 DB77.cfg
02.12.2007 18:24 648 DB77.mmm
11.03.2008 20:16 343.475 DB77.pah
24.03.2008 13:37 2.048 DB77.upc
14.02.2008 02:20 <DIR> install
27 Datei(en) 1.101.476 Bytes
3 Verzeichnis(se), 20.064.083.968 Bytes frei
>dbmcli db_enum
OK
As we see, the database is gone - but due to the withoutfiles flag all files are left in place. Therefore we can reregister the database rightaway:
>dbmcli -R C:sapdbdb77db db_create DB77 control,control
OK
>dbmcli db_enum
OK
DB77 C:sapdbdb77db 7.7.02.16 fast offline
DB77 C:sapdbdb77db 7.7.02.16 slow offline
>dir c:sapdbdataconfig
Datenträger in Laufwerk C: ist Boot
Volumeseriennummer: 08C7-EC59
Verzeichnis von c:sapdbdataconfig
24.03.2008 13:42 <DIR> .
24.03.2008 13:42 <DIR> ..
25.10.2007 14:11 12.739 .M770216
25.10.2007 14:11 97.900 .M770216.pah
25.10.2007 14:11 1.536 .M770216.upc
14.02.2008 02:21 20.579 .M770323
14.02.2008 02:21 201.850 .M770323.pah
14.02.2008 02:21 1.536 .M770323.upc
14.03.2008 02:23 20.795 .UMDB
14.02.2008 02:24 20.795 .UMDB.01
25.10.2007 14:24 20.795 .UMDB.02
14.03.2008 02:23 26 .UMDB.cfg
14.02.2008 02:24 207.625 .UMDB.pah
25.10.2007 14:24 2.048 .UMDB.upc
14.03.2008 09:23 13.405 DB77
13.03.2008 23:51 13.405 DB77.01
11.03.2008 20:10 13.405 DB77.02
14.02.2008 02:21 13.405 DB77.03
14.02.2008 02:17 13.405 DB77.04
24.01.2008 19:06 13.405 DB77.05
11.01.2008 18:57 13.405 DB77.06
31.12.2007 01:40 13.405 DB77.07
26.12.2007 14:40 13.404 DB77.08
26.12.2007 14:20 13.181 DB77.09
26.12.2007 14:01 13.181 DB77.10
14.03.2008 09:23 75 DB77.cfg
02.12.2007 18:24 648 DB77.mmm
11.03.2008 20:16 343.475 DB77.pah
24.03.2008 13:42 2.048 DB77.upc
14.02.2008 02:20 <DIR> install
27 Datei(en) 1.101.476 Bytes
3 Verzeichnis(se), 20.064.083.968 Bytes frei
>dbmcli -d db77 -u control,control db_online
OK
Database reregistered, all files are OK, database online. We're done.
Anyhow, you should in any case perform a backup before you reinstall your machine the next time. I don't know if you've still got all the files I mentioned, but if not - it's not possible to get your database back easily - if at all.
Hope that helps,
Lars -
Steps to move Data and Log file for clustered SQL Server
Hi guys
we have Active'passive SQL 2008R2 cluster environment.
looking for steps to move Data and log files from user Database and System Database for SQL Server Clustered Instance.
Currently Data and log files resides on same drive for user and system Databases..
Thanks
Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.ShahTry the below link
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/468de435-3432-45c2-a50b-23519cd2686e/moving-the-system-databases-in-a-sql-cluster?forum=sqldisasterrecovery
-Prashanth -
Display data in log file using PL/SQL procedure
Just as srw.message is used in Oracle RDF Reports to display data in log file in Oracle Apps, similarly how it is possible to display data in log file using PL/SQL procedure?
Please also mention the syntax too.Pl post details of OS, database and EBS versions.
You will need to invoke the seeded FND_LOG procedure - see previous discussions on this topic
Enable debug for pl/sql
https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_LOG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
HTH
Srini -
Do we need to format data and log files with 64k cluster size for sql server 2012?
Do we need to format data and log files with 64k cluster size for sql server 2012?
Does this best practice still applies to sql server 2012 & 2014?Yes. The extent size of SQL Server data files, and the max log block size have not changed with the new versions, so the guidance should remain the same.
Microsoft SQL Server Storage Engine PM -
Change the Data and Log file locations in livecache
Hi
We have installed livecache in unix systems in the /sapdb mount directory where the installer have created sapdata and sapdblog directories. But the unix team has already created two mount direcotries as follows:
/sapdb/LC1/lvcdata and /sapdb/LC1/lvclog mount points.
While installing livecache we had selected this locations for creating the DATA and LOG volumes. Now they are asking to move the DATA and LOG volumes created in sapdata and saplog directories to these mount points. How to move the data and log file and make the database consistent. Is there any procedure to move the files to the mount point directories and change the pointers of livecahce to these locations.
regards
balaHi Lars
Thanks for the link. I will try it and let u know.
But this is livecache (even it uses MaxDB ) database which was created by
sapinst and morover is there any thing to be adjusted in SCM and as well as
any modification ot be done in db level.
regards
bala -
Need to remove unwanted data in log file
hai experts,
how to identify and remove the unwanted data from log file.plz help me.
regards,
pugazh.brarchive takes a backup of all offline redologs, then deleted them. this is done at OS level.
if you do not need them and you do not need archiving, a permanent solution is to disable archiving:
stop SAP first, then:
sqlplus / as sysdba
shutdown immediate;
startup mount
alter database noarchivelog;
alter database open;
exit
after this, you will never be able to do a recovery point-in-time, and won't be able to start online backups. -
Recovering MaxDB instance after file corruption
Hello,
How can I recover MaxDB database from backup when one of datafiles was corrupted? I could drop this broken database, create new one and recover it. But is there any way to recover db without dropping it?
And one more thing I would like to understand.
AFAIK database instance consists of two major "parts". datafiles/logfiles and small set of files placed in sapdb/wrk directory (in case of standard SAP installation). What kind of information are kept in these files? What about definition of database users and DBM operators?
If I drop SAP database, create new one with the same name and users/DBM operators and recover data form backup, will this database be the same as "original" one? What are possible differences between these two databases?
Thank you for any help with solving my problems.
regards,
KonradHi Markus,
Thanks for answer.
The problem is I cannot bring database in admin mode. I cannot even start problem service (server is Windows based):
Here's my knldiag:
2007-11-08 15:11:59 --- Starting GMT 2007-11-08 15:11:59 7.5.0 Build 032-123-111-699
2007-11-08 15:12:12 0xB60 ERR 18159 VOLUMEIO Could not open volume 'd:sapdbTH4dataDISKD0001', rc = 2
2007-11-08 15:12:12 0xA24 ERR 20014 IOMan Attach error on data volume 1: could not open volume
2007-11-08 15:12:12 0xA24 ERR 20017 Admin RestartFilesystem failed with 'I/O error'
2007-11-08 15:12:12 0xA24 ERR 20010 Admin ERROR 'disk_not_accessibl' CAUSED EMERGENCY SHUTDOWN
2007-11-08 15:12:13 ___ Stopping GMT 2007-11-08 15:12:13 7.5.0 Build 032-123-111-699 -
Visible login data in log file
Hi all,
when i use an import command via MaxL and log the process with "spool on" the SQL login data can be seen in the log file.
-->
MAXL> import database 'Sales'.'SalesDB' dimensions connect as 'essb_system' identified by 'SamplePW' using server rules_file 'BusinessUnit' on error write to 'Log\PrepareDim.err';
When i set a spool off before that statement and a spool on afterwards i miss any information of the import process.
Is there any way to hide or encrpt the login data?
Thank you for your help,
best regards
berndHave a read of - Encrypting passowrd in maxl
or http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/maxl_invoke_encrypt.html
Cheers
John
http://john-goodwin.blogspot.com/ -
Recovered data show normal file size but icon is different and wont open
We recently had an old lacie drive go bad. got dropped one too many times or whatever.. not our fault but its for an important client.. drive had 200 GB of files.. a lot of stuff.. we took it to recovery and returned 80GB.. not bad.. among the recovered files were the ones we wanted.. and more... more than half retained their full file name.. so we know... but usually the icon for audio file is two red and blue waves. when we saw the icons that we had tried to save on the main computer they were black and white. but they still portrayed
37.6 MB.. like a full normal file... on the recovered data we see the same file size, but the icon is a blank paper with the corner folded over.. we try to import it to pro tools but it wont import.. i think it was recorded in logic but i doubt that matters.. its just audio... im sure the proper info is in there but we have to get the applications to recognize it.. we tried opening it in different apps, but it simply wont.. is it an extension problem? will restore fix it? how should i do it? i appreciate any help!i tried changing the extension. i changed the icon but it still wont open. the files are sd2f. apple info will not allow a test sounding. sample and bit rate are not displayed. i gotta get these to open up. what should i do?
-
Recovering data from Temp file following transfer failure
Hey everyone,
I'm wondering if anyone knows anything about recovering Lightroom data from temp files.
Last month I made a serious, serious error while transferring my files in Lightroom. I was off-loading a month's worth of material off of one hard drive onto another (in a rush to catch a flight), and used Lightroom's "Move" tool to do so. Problem was, they were both portable harddrives and one of them periodically lost power during the transfer. The result was devastating: the vast majority of the images and previews were lost to the black abyss. I did not have a backup of the RAWs or videos. It was... very bad.
However, I noticed that I could still preview the images in Lightroom. Somewhere, some of the previews still existed in a temp folder or in RAM.
I found two files called Photoshop Temp in my Windows Temp folder and backed them up to my drive. Together they're over 6 gigabytes and do not respond to opening in Photoshop, nor Lightroom.
Is there any way to recover some of the data from these caches?
Thanks so much!Hi,
Is your cube contains 0customer field?? If there is no use of it then remove from the cube so that it gets eliminated from update rules too. If the data type of that object is Char, then remove the alpha routine property in the infoobject level.
Check the file type in the infopackage also,whether it is checked as CSV or not.
Hope it helps,
Regards,
Neha. -
How to store data into log file(.doc) using CVI
The purpose is to store the capture data(from my cvi program) and store into the log file (.doc). so at the end of the program run I can retrieve the doc file where the data store to do my analysing .
Why do this: I wanted to create my program into .exe file that why I need this method or do u have other method to intro?
Any ideal or note or example to share? Pls helpIf you are explicitly trying to create a Microsoft Word document, then CVI comes with Word Report instrument that can be used to generate such files. The instrument is located in toolslib\activex\word\wordreport.fp, while a sample program can be found in samples\activex\word\wordrpt.cws.
I suggest you take a look at the example program that illustrates the fundamentals of this instrument, next you can start designing your own application using that instrument.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?
Maybe you are looking for
-
I have some my violin recorded audio files and want them to be converted to printable notation throw "audio to score"from Factory. But do not have a normal result. Could someone help me, please. .
-
I'm trying to find out if its possible to use a wildcard certificate on the Lync Edge server's External Interface. OR maybe a better question would be if i use the wildcard what will break? Like I've read the auto configuration will not work, etc.
-
In my Jsp program, i have 3 schemes, one for 1 month, second for 3 month, and third for 12 month. Now an user can create his account and select any of the 3 schemes, what i want is that in my database table there are two columns one is tha startdate
-
Any known issues with SQL DB Link Synonyms joining on encrypted columns
Are there any known issues with accessing encrypted columns via a database link that is masked by a synonym? We are experiencing unexpected results when the encrypted column is anti-joined through a not exists, to a local encrypted column of the same
-
Equivalent of 9KE0, for budget
Hello, I need to adjust budget on a profit center What is the equivalent of transaction 9KE0, which is PCA journal entry, for budget? Thanks in advance KR - Loï