Recover part of the database

Guys,
How do I recover a part of the database. basically somebody deleted data for dec actuals data from the database, how do I get it back, I do have a backup of the level0 export for the whole database.
Your guidance is appreciated.
Thanks.

First off I would seek to address the problem of how this data got cleared in the first place -- do you need to modify someone's access, etc., etc.
Is the level zero export in column format? You could use a load rule to import only December, Actuals, Year?, into the database and then perform a focused calculation / aggregation
Some would say to clear, reload, and calculate the whole cube out of an abundance of caution but it depends on multiple factors such as when was the zero-level export (backup) taken, has other data possibly been modified (changes that you actually want to keep) since the backup was taken, how long does it take to calculate the entire database and what are database availability expectations, etc., etc.
Thank you,
Todd Rebner

Similar Messages

  • Can the database be recoverable without redologs?

    Hello DBA's
    I need some advice if the database can be recovered in the below scenario? Using Oracle 11G R2 on a Windows box.
    This is a test db and can be dropped and rebuild but wondered if its possible to recover it?
    The database in archive log mode. Backed the entire database except redo logs (I know not a good idea)
    SQL> select open_mode from v$database;
    OPEN_MODE
    MOUNTED
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: 'E:\ORADATA\ORCL\SYSTEM01.DBF'
    SQL> recover database using backup controlfile;
    ORA-00279: change 2064228 generated at 05/29/2011 20:05:18 needed for thread 1
    ORA-00289: suggestion : E:\ORADATA\BACKUP\ARC0000000006_0752442994.0001
    ORA-00280: change 2064228 for thread 1 is in sequence #6
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    Now there is no archive for sequence 6 for this so assume it's still in redo, which is not there. How do I recover it?
    Note- I've got consistent archives from seq 1 to 5. but I assume its not needed.
    Your advice is much appreciated.
    Regards,
    Edited by: nickn on May 30, 2011 4:55 AM

    No not RMAN... in 11g I used "SQL> Alter database begin backup" and backed all the physical files.
    Let me just expand on what I did:
    I did also backup the redo logs along with all others as well but not sure what happen cause when I tried to restore using that redo, which had the seq6: I got the error?
    SQL> recover database using backup controlfile;
    ORA-00279: change 2064228 generated at 05/29/2011 20:05:18 needed for thread 1
    ORA-00289: suggestion : E:\ORADATA\BACKUP\ARC0000000006_0752442994.0001
    ORA-00280: change 2064228 for thread 1 is in sequence #6
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    E:\oradata\orcl\REDO03.LOG
    ORA-00339archived log does not contain any redo
    I am not sure what happened but i may have not done a good copy of redo as there must have been an older copy of redos, which I didnt replace in the backup folder.

  • Cleaning up the database

    Hello,
    We have been creating and changing metadata and fields and groups and i would love to know how we can delete the old data that had been written to the asset.
    Like we had for a while a custom field "Alpha" then we decided a better field would be "Beta". Although we removed and replaced "Alpha", it seem its still there and is "clogging up the works" kinda!
    thx
    joe

    we have assets that when you change from one tab to the next, ask if you want to save...without changing anything! Also,the parameters that we don't use anymore or we deleted that specific field, still remain as a part of the database. there is also the alarm sounds when we open the get info on certain assets.
    thx
    joe

  • In GB, I need to insert an audio track. When I try, it obliterates part of the adjacent bridge (track). How can I insert an audio track in an audio timeline without stepping all over clean material? Is it possible to recover the "clean" track bridge?

    Am doing an audio timeline in GB. Need to insert a corrected section of track. When I try the insert, it knocks out the top part of the adjacent track bridge/element. How can I insert cleanly in a timeline? Is it possible to "recover" the good track that was "stepped on?"

    Undo what?
    Insert in a new track?
    I don't think so. I've started an audio book and I'm doing chapter long segments (assuming I can make simple corrections, such as ones made in iMovie and numerous other video editing programs. Routine edits in GB are simple and intuitive. I cannot wrap my mind around the fact that I'm prevented from doing a simple drag and drop, import or paste a two-sentence audio clip. Nor can I find any reference to straightforward audio elements.
    Any suggestions you might have would be appreciated.

  • How to recover the database when some of the archive log file get deleted.

    I am facing a problem with Oracle database, which is related to archivelogs.
    Our development database is running in archivelog mode, but we don't have backups scheduled and have no recovery catalog.
    When the database was in running condition, disk got full, so some archivelogs were deleted manually.
    After this they restarted the DB, and now DB is not coming up. Errors are as follows:
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1444383504 bytes
    Fixed Size 731920 bytes
    Variable Size 486539264 bytes
    Database Buffers 956301312 bytes
    Redo Buffers 811008 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    SQL> recover datafile '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    SQL> recover database using backup controlfile;
    ORA-00279: change 215548705 generated at 09/02/2008 17:06:10 needed for thread
    1
    ORA-00289: suggestion :
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00280: change 215548705 for thread 1 is in sequence #1107
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00308: cannot open archived log
    '/export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL>
    1. How to recover the database and bring it online
    Any help will be highly appreciated.
    With Regards
    Hemant Joshi
    Edited by: hem_Kec on Sep 7, 2008 9:07 AM

    Hi,
    Archive log files are the copies of redolog files.As redo log files are circularly overwritten,oracle generates archive log file of the corresponding redo logfiles being overwritten.So if you have a backup that dates back to 10 am in the morning and if your database creashed at 3 pm,you cannot use the redo log files alone as they have incomplete information.To completely recover the database upto 3 pm,you need archive log files generated between 10 am to 3 pm. In your case since you are missing one archive log file,you cannot perform complete recovery and hence would suffer data loss.

  • Redo log files are deleted, how to recover the database

    Hi All,
    I removed the redo01.log, redo02.log and redo03.log files of our Oracle database. And it caused the db to fail. Is there any way I can recover the database and startup database in normal mode? I do not need it to have all the latest data restored, I will be happy to just start the db and get going.
    database is in arcive log mode.
    Thanks

    Hello,
    You may try this if the database is mounted:
    recover database until cancel;
    cancel
    alter database open resetlogs;Hope it can help.
    Best regards,
    Jean-Valentin

  • What should be done to recover the database?

    Hi all,
    While backing up the database, the computer running Oracle loses power. After restarting the
    computer what should be done to recover the database?
    Please help me..
    Thank you all for your cooperate.

    Thanks mr. Eduardo Rezende.
    I'm an Arab  student and now I study database administrator course. This question asked by my teacher. So, if anyone can answer this question and some other questions please help me.

  • Problem in recovering the database!!!

    Hi All,
    I created a new database and wanted to restore the backup of another database into it, I created the required tablespaces and started restore of backup from RMAN using
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=orcl,OB2BARLIST=DAILY_HISDBS01_ORACLE-DB_ONLINE_5W,OB2BARHOSTNAME=hisdbs01.kfmc.med)';
    restore controlfile from 'c-1179279249-20090511-02';
    alter database mount;
    release channel 'dev_0';
    The controlfile got restored successfully, then I tried to restore & recover the database
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=central,OB2BARLIST=DAILY_HISDBS01_ORACLE-DB_ONLINE_5W,OB2BARHOSTNAME=hisdbs01.kfmc.med)';
    restore database;
    recover database;
    release channel 'dev_0';
    The restore was successful, but when I tried to open the database with resetlogs option
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '+DATADG/orcl/datafile/system.295.686609187'
    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 1136286903 generated at 05/11/2009 02:08:22 needed for thread1
    ORA-00289: suggestion : */arch/archivelog/1_8493_651861624.dbf*
    ORA-00280: change 1136286903 for thread 1 is in sequence #8493
    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: '+DATADG/orcl/datafile/system.295.686609187'
    ORA-01112: media recovery not started
    The recovery process is looking for */arch/archivelog/1_8493_651861624.dbf* this archivelog, but this archivelog file is not present at that location, the restore process should have restored all the archivelogs as well, actually no archivelogs got restored, how can I recover the database without archivelog logs? it is not possible at all.
    PLEASE tell me how can I make the database work?

    Thanks Hemant !!!
    I restored the archivelogs using the script below
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=central,OB2BARLIST=DAILY_HISDBS01_ORACLE-DB_ONLINE_5W,OB2BARHOSTNAME=hisdbs01.kfmc.med)';
    restore ARCHIVELOG FROM TIME 'SYSDATE-5' UNTIL TIME 'SYSDATE';
    release channel 'dev_0';
    then recoverd the database and applied the requested archivelog file and opened the database with resetlogs, it is now successfully recovered upto the point I wanted it to be.

  • Can I recover the database to the current time using a backup control file?

    Can I recover the database to the current time using a backup control file? How far can I recover this database?
    I have an Oracle 10g(10.2.3) database on RHEL4.3 system.
    I have lost all the current control files and all the online redo logs, archived redo logs and all other files are OK.
    Now I have to recovery this database using a backup control file.
    Can I recover the database without any data lost?

    If
    a) it was a Shutdown Abort or an Instance Crash (i.e. backgrounds died on detecting loss of redo logs),
    b) redo logs are lost
    c) data files are intact
    You'd have to
    a) Restore datafiles
    b) Do an Incomplete Recovery to the last available ArchiveLog
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • EnvironmentFailureException thrown while recovering the database!

    While recovering the database, an EnvironmentFailureException with LOG_FILE_NOT_FOUND was thrown. The exception was thrown after some data was recovered, and the left data can not be recovered because of the EnvironmentFailureException.
    I upgraded the je to 4.1.7, but the data still can not be recovered!
    Caused by: com.sleepycat.je.EnvironmentFailureException: Environment invalid because of previous exception: (JE 4.0.92) /home/admin/shopcenter/cdncleaner fetchTarget of 0x64/0x3b8f73 parent IN=8811763 IN class=com.sleepycat.je.tree.IN lastFullVersion=0xffffffff/0xffffffff parent.getDirty()=true state=0 LOG_FILE_NOT_FOUND: Log file missing, log is likely invalid. Environment is invalid and must be closed.
         at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1241)
         at com.sleepycat.je.tree.Tree.searchSubTreeInternal(Tree.java:1858)
         at com.sleepycat.je.tree.Tree.searchSubTree(Tree.java:1682)
         at com.sleepycat.je.tree.Tree.search(Tree.java:1548)
         at com.sleepycat.je.dbi.CursorImpl.searchAndPosition(CursorImpl.java:2054)
         at com.sleepycat.je.Cursor.searchInternal(Cursor.java:2088)
         at com.sleepycat.je.Cursor.searchAllowPhantoms(Cursor.java:2058)
         at com.sleepycat.je.Cursor.search(Cursor.java:1926)
         at com.sleepycat.je.Cursor.getSearchKey(Cursor.java:1351)
         at com.sleepycat.util.keyrange.RangeCursor.doGetSearchKey(RangeCursor.java:966)
         at com.sleepycat.util.keyrange.RangeCursor.getSearchKey(RangeCursor.java:593)
         at com.sleepycat.collections.DataCursor.doGetSearchKey(DataCursor.java:571)
         at com.sleepycat.collections.DataCursor.initForPut(DataCursor.java:812)
         at com.sleepycat.collections.DataCursor.put(DataCursor.java:752)
         at com.sleepycat.collections.StoredContainer.putKeyValue(StoredContainer.java:322)
         at com.sleepycat.collections.StoredMap.put(StoredMap.java:280)
         at com.taobao.shopservice.picture.core.util.BdbStoredQueueImpl.offer(BdbStoredQueueImpl.java:118)
         at com.taobao.shopservice.picture.core.service.CdnClearServiceImpl.clearCdnCache(CdnClearServiceImpl.java:45)
         at sun.reflect.GeneratedMethodAccessor484.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.taobao.shopservice.common.monitor.ProfileInterceptor.invoke(ProfileInterceptor.java:26)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy74.clearCdnCache(Unknown Source)
         at com.taobao.shopservice.picture.core.service.PictureWriteServiceImpl.movePicturesToRecycleBin(PictureWriteServiceImpl.java:302)
         at com.taobao.shopservice.picture.core.service.PictureWriteServiceImpl.deletePictures(PictureWriteServiceImpl.java:207)
         at sun.reflect.GeneratedMethodAccessor483.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.taobao.shopservice.common.monitor.ProfileInterceptor.invoke(ProfileInterceptor.java:26)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy77.deletePictures(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor482.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.taobao.hsf.rpc.tbremoting.provider.ProviderProcessor.handleRequest0(ProviderProcessor.java:222)
         at com.taobao.hsf.rpc.tbremoting.provider.ProviderProcessor.handleRequest(ProviderProcessor.java:174)
         at com.taobao.hsf.rpc.tbremoting.provider.ProviderProcessor.handleRequest(ProviderProcessor.java:41)
         at com.taobao.remoting.impl.DefaultMsgListener$1ProcessorExecuteTask.run(DefaultMsgListener.java:131)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.FileNotFoundException: /home/admin/shopcenter/cdncleaner/00000064.jdb (No such file or directory)
         at java.io.RandomAccessFile.open(Native Method)
         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
         at com.sleepycat.je.log.FileManager$1.<init>(FileManager.java:993)
         at com.sleepycat.je.log.FileManager.openFileHandle(FileManager.java:992)
         at com.sleepycat.je.log.FileManager.getFileHandle(FileManager.java:888)
         at com.sleepycat.je.log.LogManager.getLogSource(LogManager.java:1073)
         at com.sleepycat.je.log.LogManager.getLogEntry(LogManager.java:779)
         at com.sleepycat.je.log.LogManager.getLogEntryAllowInvisibleAtRecovery(LogManager.java:743)
         at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1225)
         ... 49 more
    2011-03-24 00:00:27,967 INFO [org.quartz.core.JobRunShell] Job DEFAULT.cdnCleanerJobDetail threw a JobExecutionException:
    org.quartz.JobExecutionException: Invocation of method 'clearCdn' on target class [class com.taobao.shopservice.picture.core.job.clearcdn.CdnCleaner] failed [See nested exception: com.sleepycat.je.EnvironmentFailureException: (JE 4.0.92) Environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: Environment invalid because of previous exception: (JE 4.0.92) /home/admin/shopcenter/cdncleaner fetchTarget of 0x64/0x3b8f73 parent IN=8811763 IN class=com.sleepycat.je.tree.IN lastFullVersion=0xffffffff/0xffffffff parent.getDirty()=true state=0 LOG_FILE_NOT_FOUND: Log file missing, log is likely invalid. Environment is invalid and must be closed.]
         at sun.reflect.GeneratedConstructorAccessor102.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
         at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:283)
         at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    * Nested Exception (Underlying Cause) ---------------
    com.sleepycat.je.EnvironmentFailureException: (JE 4.0.92) Environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: Environment invalid because of previous exception: (JE 4.0.92) /home/admin/shopcenter/cdncleaner fetchTarget of 0x64/0x3b8f73 parent IN=8811763 IN class=com.sleepycat.je.tree.IN lastFullVersion=0xffffffff/0xffffffff parent.getDirty()=true state=0 LOG_FILE_NOT_FOUND: Log file missing, log is likely invalid. Environment is invalid and must be closed.
         at com.sleepycat.je.EnvironmentFailureException.wrapSelf(EnvironmentFailureException.java:197)
         at com.sleepycat.je.dbi.EnvironmentImpl.checkIfInvalid(EnvironmentImpl.java:1403)
         at com.sleepycat.je.Database.checkEnv(Database.java:1772)
         at com.sleepycat.je.Database.openCursor(Database.java:619)
         at com.sleepycat.collections.CurrentTransaction.openCursor(CurrentTransaction.java:416)
         at com.sleepycat.collections.MyRangeCursor.openCursor(MyRangeCursor.java:54)
         at com.sleepycat.collections.MyRangeCursor.<init>(MyRangeCursor.java:30)
         at com.sleepycat.collections.DataCursor.init(DataCursor.java:171)
         at com.sleepycat.collections.DataCursor.<init>(DataCursor.java:59)
         at com.sleepycat.collections.StoredContainer.getValue(StoredContainer.java:301)
         at com.sleepycat.collections.StoredMap.get(StoredMap.java:241)
         at com.taobao.shopservice.picture.core.util.BdbStoredQueueImpl.peek(BdbStoredQueueImpl.java:131)
         at com.taobao.shopservice.picture.core.util.BdbStoredQueueImpl.poll(BdbStoredQueueImpl.java:169)
         at com.taobao.shopservice.picture.core.job.clearcdn.CdnCleaner.clearCdn(CdnCleaner.java:194)
         at sun.reflect.GeneratedMethodAccessor641.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:283)
         at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:272)
         at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: com.sleepycat.je.EnvironmentFailureException: Environment invalid because of previous exception: (JE 4.0.92) /home/admin/shopcenter/cdncleaner fetchTarget of 0x64/0x3b8f73 parent IN=8811763 IN class=com.sleepycat.je.tree.IN lastFullVersion=0xffffffff/0xffffffff parent.getDirty()=true state=0 LOG_FILE_NOT_FOUND: Log file missing, log is likely invalid. Environment is invalid and must be closed.
         at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1241)
         at com.sleepycat.je.tree.Tree.searchSubTreeInternal(Tree.java:1858)
         at com.sleepycat.je.tree.Tree.searchSubTree(Tree.java:1682)
         at com.sleepycat.je.tree.Tree.search(Tree.java:1548)
         at com.sleepycat.je.dbi.CursorImpl.searchAndPosition(CursorImpl.java:2054)
         at com.sleepycat.je.Cursor.searchInternal(Cursor.java:2088)
         at com.sleepycat.je.Cursor.searchAllowPhantoms(Cursor.java:2058)
         at com.sleepycat.je.Cursor.search(Cursor.java:1926)
         at com.sleepycat.je.Cursor.getSearchKey(Cursor.java:1351)
         at com.sleepycat.util.keyrange.RangeCursor.doGetSearchKey(RangeCursor.java:966)
         at com.sleepycat.util.keyrange.RangeCursor.getSearchKey(RangeCursor.java:593)
         at com.sleepycat.collections.DataCursor.doGetSearchKey(DataCursor.java:571)
         at com.sleepycat.collections.DataCursor.initForPut(DataCursor.java:812)
         at com.sleepycat.collections.DataCursor.put(DataCursor.java:752)
         at com.sleepycat.collections.StoredContainer.putKeyValue(StoredContainer.java:322)
         at com.sleepycat.collections.StoredMap.put(StoredMap.java:280)
         at com.taobao.shopservice.picture.core.util.BdbStoredQueueImpl.offer(BdbStoredQueueImpl.java:118)
         at com.taobao.shopservice.picture.core.service.CdnClearServiceImpl.clearCdnCache(CdnClearServiceImpl.java:45)
         at sun.reflect.GeneratedMethodAccessor484.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.taobao.shopservice.common.monitor.ProfileInterceptor.invoke(ProfileInterceptor.java:26)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy74.clearCdnCache(Unknown Source)
         at com.taobao.shopservice.picture.core.service.PictureWriteServiceImpl.movePicturesToRecycleBin(PictureWriteServiceImpl.java:302)
         at com.taobao.shopservice.picture.core.service.PictureWriteServiceImpl.deletePictures(PictureWriteServiceImpl.java:207)
         at sun.reflect.GeneratedMethodAccessor483.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.taobao.shopservice.common.monitor.ProfileInterceptor.invoke(ProfileInterceptor.java:26)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy77.deletePictures(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor482.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.taobao.hsf.rpc.tbremoting.provider.ProviderProcessor.handleRequest0(ProviderProcessor.java:222)
         at com.taobao.hsf.rpc.tbremoting.provider.ProviderProcessor.handleRequest(ProviderProcessor.java:174)
         at com.taobao.hsf.rpc.tbremoting.provider.ProviderProcessor.handleRequest(ProviderProcessor.java:41)
         at com.taobao.remoting.impl.DefaultMsgListener$1ProcessorExecuteTask.run(DefaultMsgListener.java:131)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.FileNotFoundException: /home/admin/shopcenter/cdncleaner/00000064.jdb (No such file or directory)
         at java.io.RandomAccessFile.open(Native Method)
         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
         at com.sleepycat.je.log.FileManager$1.<init>(FileManager.java:993)
         at com.sleepycat.je.log.FileManager.openFileHandle(FileManager.java:992)
         at com.sleepycat.je.log.FileManager.getFileHandle(FileManager.java:888)
         at com.sleepycat.je.log.LogManager.getLogSource(LogManager.java:1073)
         at com.sleepycat.je.log.LogManager.getLogEntry(LogManager.java:779)
         at com.sleepycat.je.log.LogManager.getLogEntryAllowInvisibleAtRecovery(LogManager.java:743)
         at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1225)
         ... 49 more

    I mean that i can open the database and read some data from it, which was stored before the database was closed, and than the exception was thrown.
    here is exception stack with JE 4.1.7:
    com.sleepycat.je.EnvironmentFailureException: (JE 4.1.7) F:\job fetchTarget of 0x64/0x4735f7 parent IN=7847269 IN class=com.sleepycat.je.tree.IN lastFullVersion=0x66/0x927f09 parent.getDirty()=false state=0 LOG_FILE_NOT_FOUND: Log file missing, log is likely invalid. Environment is invalid and must be closed.
         at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1337)
         at com.sleepycat.je.tree.IN.fetchTargetWithExclusiveLatch(IN.java:1278)
         at com.sleepycat.je.tree.Tree.getNextBinInternal(Tree.java:1358)
         at com.sleepycat.je.tree.Tree.getPrevBin(Tree.java:1240)
         at com.sleepycat.je.dbi.CursorImpl.getNextWithKeyChangeStatus(CursorImpl.java:1754)
         at com.sleepycat.je.dbi.CursorImpl.getNext(CursorImpl.java:1617)
         at com.sleepycat.je.Cursor.retrieveNextAllowPhantoms(Cursor.java:2488)
         at com.sleepycat.je.Cursor.retrieveNext(Cursor.java:2304)
         at com.sleepycat.je.Cursor.getPrev(Cursor.java:1190)
         at com.ppsoft.bdb.test.Main.main(Main.java:52)
    Caused by: java.io.FileNotFoundException: F:\job\00000064.jdb (No such file or directory)
         at java.io.RandomAccessFile.open(Native Method)
         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
         at com.sleepycat.je.log.FileManager$1.<init>(FileManager.java:995)
         at com.sleepycat.je.log.FileManager.openFileHandle(FileManager.java:994)
         at com.sleepycat.je.log.FileManager.getFileHandle(FileManager.java:890)
         at com.sleepycat.je.log.LogManager.getLogSource(LogManager.java:1074)
         at com.sleepycat.je.log.LogManager.getLogEntry(LogManager.java:778)
         at com.sleepycat.je.log.LogManager.getLogEntryAllowInvisibleAtRecovery(LogManager.java:742)
         at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1320)
         ... 9 more

  • Library recovery: how can I recover a library after I get this message: There was an error opening the database for the library "/Users/Jim/Pictures/Libraries/K2 Library.aplibrary"???

    Library recovery: how can I recover a library after I get this message: "There was an error opening the database for the library “/Users/Jim/Pictures/Libraries/K2 Library.aplibrary”???

    Thanks a lot, Frank. The lsregister did the trick! I am testing this on 10.8.2.
    http://support.apple.com/kb/TA24770 : I deleted the "com.apple.LaunchServices.plist", and restarted the Finder, even logged off and on again; did not change anything. The file has not been recreated, so it may not be used anymore.
    http://itpixie.com/2011/05/fix-duplicate-old-items-open-with-list/#.ULZqa6XAoqY
    The direct "copy and paste" from the post did not work: I had to retype it :
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    but then it worked like a charm!
    Cheers
    Léonie
    And btw: I turned on the "-v" option for the lsregister to see, what was going on, and saw plenty of error messages (error -10811); so I repeated the command with "sudo". After that I still saw five iPhotos. Repeating as regular user finally got rid of the redundant iPhoto entries. It looks like registering as super user may be causing this trouble.

  • Recover the database to a point

    hi experts,
    In my database one important table has been uppdated with wrong data. I need to recover the old data.
    How can I do this. ????
    Pls can somebody explain ???

    Hi,
    Just a comment ....
    One option, but in your case the worse option will perform an incomplete recovery based on time.
    Example:
    It is 12:00 AM and the EMP table was wrong updated at 11:45 AM
    Then you can:
    1) shutdown the database and make a backup
    2) restore all datafiles from most recent backup
    3) mount the database
    4) recover the database like below:
    SQL> recover database until time '2007-02-13:11:44:00'
    5) synchronize the datafile with control files and redo log files like below:
    SQL> alter database open resetlogs
    6) Make a backup of your database
    Disadvantage of this method
    After the recovery process, all information after 11:44 AM will must be informed again ...
    Cheers

  • To Recover The Database Using a New Version of Datafile

    Please give me the solution immediately
    My one of the datafile is new and it is very important. It contains many data. I have a backup. I copy all the old files exept the new one. How i attatch the new datafile to the old database files. Now it sees the new file does not match with the old datafile and controlfile. It shows the message
    THE CONTROLFILE VERSION IS OLDER THAN THE NEW DATAFILE VERSION.
    our database version is 8.0
    How i recover

    Hi;
    Please Give a Solution for the following problem.
    First I shutdown the databae.
    Copy all the redolog,control file and Datafile except one.
    One datafile i miss at the time of copy.
    Then I start the database and do some transactions.
    At that time my system tablespace has been corrupted.
    So i copy the old backup and overwrite with the actul file.
    So one file backup is not there, that i forgot to take.
    At the time of opening the database it shows that datafile version is higher than the controlfile.
    Now what i did is came to mount stage and type the following command.
    ALTER DATABASE DATAFILE <FILENAME> OFFLINE DROP;
    After that i open the database.
    Now the problem is that missing file contain very important data.
    Is it possible to recover the data?
    Please give me an immediate solution.

  • SSIS - creating part of the file name from an id in the database

    I am trying to figure out how to pull an "id" from my data source to include in the file name. Right now the file name created looks like customer_002_timestamp.txt. I need to add the id to the file name and I need to grab it at the time I get
    the data, so then the file name becomes customer_002_id_timestamp.txt.
    My data source is Oracle and I am using Attunity, so I do not have the capability of using the resultset found in the SQL Task because I have to use the data task.
    Has anyone ever extracted an id from a query against Oracle using the Attunity connector to add as part of the file name? If so, how would I add that to my control flow task?
    Thanks in advance for any assistance.

    Is it a static id value you want
    Then you can just use a SSIS variable to hold value from resultset in execute sql task
    Then inside your data flow you can use an expression for setting value of another variable which can be used for setting filename in your destination task. The expression will include logic to concatenate id variable also which we populated in the previous
    step.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Which Is Better:Create The Database Manually Or As a Part Of  Your Code?

    hi everybody
    i just want to know people when you creating a JDBC Application
    and introduce the program to the user to deal with
    do you create the database through the database client like phpmyadmin for mysql
    or by using query in your program?if so when you use the query in your flow of code?
    or you restore an empty database backup file enclosed in the setup directory?
    i just want to know what is the best design way when creating the database on the end user machine?

    First_knight wrote:
    and how do you deal with user installing new operating system,or formatting the hard disk?
    you tell him to take backup of the database then restore it again,right?yes. How else is he going to preserve his data?
    sheesh...
    In real applications the database is just about always maintained separately from the application and contains a lot of logic and structures that you can't create using Hibernate, JPA, or whatever.
    It's also almost always a database that's been in existence for a long time, well before you ever were asked to write that Java application to talk to it.
    Autogeneration of tables is nice for rapid prototyping or for demo purposes where it allows you to install the application more easily, but that's about it.

Maybe you are looking for

  • Smartform-printing problem

    hi gurus, The smartform is a letter fromat. The  selection  screen contains vbak-lifsk(Delevery block) its mandatory field and  vbak-vbeln . My requirement is to print all sales order no.'s and that sold to party details  and remaining is hardcoded.

  • How to remove apps in "waiting" ?

    Hi, I purchased a used iphone 4 from a friend. It had two apps which were in "waiting" state. Now i have no way to remove them. I have sync-ed them with my own apple ID in itunes. Still they wont go away. Even after giving it a hard reset, the "Apple

  • Ramp up speed?

    can you rampup speed in fce, i know you can in pro. anyone?

  • Formatted Search query

    Hi all, We have the following formatted search defined in OITM under Item Desc (foreign language): SELECT T1.DocNum AS 'Doc No', T1.CardCode AS 'BP Code', T1.CardName, T2.ItemCode, T2.OpenQty AS 'Open Qty', T2.WhsCode FROM [dbo].[ORDR]  T1 INNER JOIN

  • Why would one want to create a whole AM data model manually?

    Is there ANY reasonable scenario in the world where a programmer might want to re-create a whole data model inside an AM programmatically?