Incarnation of the database
Hi Oracle CommunityI learn about database in time of recovery. I fell on the database of the Incarnation, and I studied on this subject. But there is still a confusion
Why we must make the Incarnation of the database after an incomplete recovery.
What happens when we use the RESTLOG option, I learned that SNA will be re set (i-e it will begin 1?). But when you want to use the previous database or passed up... The Oracle reads the log files of the past to save because they have different number of SNA.
All the links online for me to study will be more appreciated.
Thank you
Vivek.
You will have to look this way resetlogs.
You're traversing a ravine on a very small bridge. Just before you reach the other side of the bridge collapses under your feet and you manage to jump on the other side.
Is there a way back? NEVER.
RESETLOGS means
-Wipe the history, the number logsequence will be reset to 1 (NOT the SNA) and all the latest info on redolog files will be wiped out.
It's like your grandfather who no longer knows where he has been the second world war.
Oracle will not read the info on the last archived redologs because Oracle, like your grandfather, doesn't remember.
Here in RMAN.
If you run RMAN and use a catalog database, you can restore the database to a previous incarnation, read life.
Type you your grandfather on his head, and all of a sudden, recalls.
Now Oracle will find the latest redologs.
If you can reset the database without a catalog of database depends on version, and of course, you think that your version of the database is completely inconsequential.
In 9i, and until you can not reset to an older incarnation without a catalog database.
In 10g and more the SCN of the incarnation is the name of the archived redolog.
-------
Sybrand Bakker
Senior Oracle DBA
Tags: Database
Similar Questions
-
new incarnation of the database and rc_database
Hello!
Have I understood that after the registration of the new incarnation of the database in the recovery catalog
I see new line in rc_database?
Thank you and best regards,
PavelHello
After you save your database with the catalog database, you can get the information from the database recorded using the view 'rc_database '.
To interrogate the details of the incarnation of the newly registered database, you can use the view 'rc_database_incarnation '.
It could be useful! If you feel that your questions have been answered, then please consider fill your questions by marking them as answered. Please clean the forum!
-
Impossible to reset the database of previous incarnation
Hello
I want to perform a database recovery time for an incarnation of the ancestor. But get following error:
RMAN > shutdown
database closed
dismounted database
Instance Oracle to close
RMAN > startup nomount
connected to the database target (not started)
Oracle instance started
Total System Global Area 281018368 bytes
Bytes of size 1258440 fixed
88083512 variable size bytes
188743680 of database buffers bytes
Redo buffers 2932736 bytes
RMAN > reset in the incarnation 4 database;
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of the reset command on the default channel to 2011-03-24 12:53:07
ORA-01507: database not mounted
As I read, database of reset in the incarnation must appear in nomount State. So, why the error above? Pls correct me where I'm wrong.Hello
are your RMAN connected to the catalog? If this isn't the case, it must be done in a mounted State.
Read this for more info:
http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14194/rcmsynta050.htm
In this note, he know:
"" If RMAN is connected NOCATALOG, then you can specify of INCARNATION if the database is mounted and the control file contains a record of the previous incarnation. "." If you are running a DATABASE RESET, RMAN recovers the latest incarnation in the control file. »
Hope this helps,
Naer
-
When I try to restore datafile 1 with this script
RUN
{
SET up this THAT TIME = "to_date('2012-01-01:00:00:00','YYYY-MM-DD:HH24:MI:SS')";
RESTORE THE FILE DATA 1;
}
---------------------------
ORA-19870: error reading backup total /mnt/hgfs/2012_01_01/o1_mf_nnndf_TAG20120101T050005_7hzm1qc4_.bkp
ORA-19612: datafile 1 not restored because of missing or corrupted data
switch to the previous backup
--------------------------
RMAN > RESTORE DATAFILE 1 to this THAT TIME = "to_date('2012-01-01:00:00:00','YYYY-MM-DD:HH24:MI:SS')" Overview.
From restoration to January 10, 12
using channel ORA_DISK_1
using the ORA_DISK_2 channel
using the ORA_DISK_3 channel
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the restore command at the 13:11:19 10/01/2012
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06023: no backup or copy of datafile 1 found to restore
--------------------------------
RMAN > LIST BACKUP OF THE DATA 1 Summary file;
Backup list
===============
S LV TY Device Type delay #Pieces compressed #Copies Tag key
------- -- -- - ----------- --------------- ------- ------- ---------- ---
40969 A DISC 1 1 JANUARY 12 1 no TAG20120101T050005
----------------------------------
and when I write "backup list '; output is here where I can see datafile 1...
Time of accomplishment BS key Type LV size device Type elapsed time
------- ---- -- ---------- ----------- ------------ ---------------
40969 full 32,28 G DISC 02:07:15 1st January 12
BP key: situation 28432: AVAILABLE Tablet: NO Tag: TAG20120101T050005
Part name: /mnt/hgfs/2012_01_01/o1_mf_nnndf_TAG20120101T050005_7hzm1qc4_.bkp
List of defined backup data files 40969
Name of file LV Type cash SNA cash time
---- -- ---- ---------- --------- ----
25035430765 full 1 1 January 12 /oradata1/ISPRODDB11/datafile/o1_mf_system_331jc17w_.dbf
2 full 25035430765 /oradata1/ISPRODDB11/datafile/o1_mf_undotbs1_331jc19r_.dbf 1 January 12
4 integer 25035430765 /oradata1/ISPRODDB11/datafile/o1_mf_users_331jc1b2_.dbf 1 January 12
35 full 25035430765 /oradata1/ISPRODDB11/datafile/sap.dbf 1 January 12
56 full 25035430765 /oradata2/ISPRODDB11/datafile/TBS_UYS05.dbf 1 January 12
------------------------------
and the incarnation of the list;
RMAN > LIST INCARNATION;
List of Incarnations of the database
DB key Inc key STATE ID DB name DB reset reset time SNA
------- ------- -------- ---------------- --- ---------- ----------
1 1 ISPRODDB 4210711725 PARENT 1 19 DECEMBER 06
2 2 ISPRODDB 4210711725 RUNNING 564488 26 APRIL 07
I m able to restore all data files but datafile 1 (system) and 3 (sysaux)... I don't know what to do...828193 wrote:
When I put until 2012-01-01 12:00From back to January 10, 12
using channel ORA_DISK_1
using the ORA_DISK_2 channel
using the ORA_DISK_3 channel
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at the 15:28:53 10/01/2012
RMAN-06094: datafile 1 must be restored.so, if I want to restore a datafile to 2012-01-01 00:00 I need previous backupset? right?
Fix.
Has done restoration work when you set the until to 2012-01-01 12:00?Brgds
Johan -
my database is oracle 8.1.7. I noticed that when I run the command to list incarnation, it does not show the time, date. does anyone here know why?
RMAN > list incarnation;
RMAN-03022: compilation command: list
List of Incarnations of the database
DB key Inc. DB name DB ID HEART key reset reset time SNA
1234567 1234567 DENISE 1234567890 NOT 123456 22 JULY 10
1234567 1234567 DENISE 1234567890 YES 123456 22 JULY 10
Published by: oracleelcaro on July 22, 2010 17:00SQL> select dbinc_key,db_key,db_name from RMAN.dbinc where db_name='PROD'; DBINC_KEY DB_KEY DB_NAME ---------- ---------- -------- 875312 875311 PROD SQL> select DBID, NAME, DBINC_KEY, RESETLOGS_CHANGE#, RESETLOGS_TIME 2 from rc_database_incarnation where dbid=2706003900; DBID NAME DBINC_KEY RESETLOGS_CHANGE# RESETLOGS ---------- -------- ---------- ----------------- --------- 2706003900 PROD 875312 1 07-FEB-07 2706003900 PROD2 9179422 6.2038E+12 24-MAY-09 SQL> alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS' ; Session altered. SQL> select DBID, NAME, DBINC_KEY, RESETLOGS_CHANGE#, RESETLOGS_TIME 2 from rc_database_incarnation where dbid=2706003900; DBID NAME DBINC_KEY RESETLOGS_CHANGE# RESETLOGS_TIME ---------- -------- ---------- ----------------- -------------------- 2706003900 PROD 875312 1 07-FEB-2007 15:49:16 2706003900 PROD2 9179422 6.2038E+12 24-MAY-2009 22:25:13
-
Clean an orphan incarnation in the RMAN catalog
Hello community.
I have a data base of production with an incarnation of 2009 in the controlfile and catalogue and a colleague created a database backup, not sure of the exact procedure, which created an incarnation of the ORPHAN.
DB key Inc key STATE ID DB name DB reset reset time SNA
------- ------- -------- ---------------- --- ---------- ----------
1 2 PROD - 1 CURRENT-2009 to May 07 07:52:45
1 4284036 PROD - 2482748620700-2015 ORPHAN February 14 08:47:46
I searched MOS docs and community discussions on cleaning of the orphan. Anyone could do this notice to me? The controlfile prod lists only his own incarnation. I was also looking for something that explains the impact of an orphan incarnation. It seems that some of the discussions indicate that this would be ignored in the case of restoration.
Thank you
John
Hello
See if this note (Doc ID 412113.1) is useful.
Kind regards
Pradeep
-
ORA-16783: could not resolve the deficit for the database
I have two databases emadb and emadbdg, governed by Data Guard. emadb is currently principal. emadbdg is currently pending physical.
ORA16783 - cannot solve the gap for the database is one I think, is the origin of the problem. Anyone can help solve the problem below. Logs attached.
Output of data protection
DGMGRL > show detailed configuration
Configuration - DRSolution
Protection mode: MaxAvailability
Databases:
emadb - primary database
Error: ORA-16825: multiple errors or warnings, including failover quick start or warnings, errors detected for the database
emadbdg - (*) Physical standby database
WARNING: ORA-16817: configuration not synchronized rapid failover
(*) Fast failover target
Properties:
FastStartFailoverThreshold = "30"
OperationTimeout = "30"
FastStartFailoverLagLimit = "30"
CommunicationTimeout = "180"
FastStartFailoverAutoReinstate = 'TRUE '.
FastStartFailoverPmyShutdown = "FALSE".
BystandersFollowRoleChange = "ALL".
Fast-Start Failover: ENABLED
Threshold: 30 seconds
Target: emadbdg
Observer: emarn1
Offset limit: 30 seconds (do not use)
Primary closure: FALSE
Auto-Rétablir: TRUE
The configuration status:
ERROR
DGMGRL > see the detailed database emadb
Database - emadb
Role: PRIMARY
State of destination: TRANSPORT-WE
Occurrence (s):
emadb
Database error (s):
ORA-16783: could not resolve the deficit for the database emadbdg
Warning (s) of database:
ORA-16817: unsynchronized fast-start failover configuration
Properties:
DGConnectIdentifier = "emadb.
ObserverConnectIdentifier = "
LogXptMode = "SYNCHRONIZE".
DelayMins = '0'
Binding = "optional."
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = "300"
NetTimeout = "30"
RedoCompression = "DISABLE."
LogShipping = 'ON '.
PreferredApplyInstance = "
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO '.
StandbyFileManagement = 'AUTO '.
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = "4"
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = 'emadbdg, emadb '.
LogFileNameConvert = "/ opt/app/oracle/oradata/emadbdg, / opt/app/oracle/oradata/emadb '"
FastStartFailoverTarget = "emadbdg".
InconsistentProperties = "(monitor).
InconsistentLogXptProps = "(monitor).
SendQEntries = "(monitor).
LogXptStatus = "(monitor).
RecvQEntries = "(monitor).
Nom_sid = "emadb.
StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=emarn1) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = emadb_DGMGRL) (INSTANCE_NAME = emadb)(SERVER=DEDICATED)))'
StandbyArchiveLocation = "/ opt/app/oracle/oradata/emadb/archivelog1.
AlternateLocation = "
LogArchiveTrace = '0'
LogArchiveFormat = '% t_%s_%r.dbf '.
TopWaitEvents = "(monitor).
State of the database:
ERROR
DGMGRL > see the detailed database emadbdg
Database - emadbdg
Role: STANDBY PHYSICS
State of destination: apply
Transport delay: (unknown)
Apply the Lag: (unknown)
Real-time query: OFF
Occurrence (s):
emadbdg
Warning (s) of database:
ORA-16817: unsynchronized fast-start failover configuration
Properties:
DGConnectIdentifier = "emadbdg".
ObserverConnectIdentifier = "
LogXptMode = "SYNCHRONIZE".
DelayMins = '0'
Binding = "OPTIONAL."
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = "300"
NetTimeout = "30"
RedoCompression = "DISABLE."
LogShipping = 'ON '.
PreferredApplyInstance = "
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO '.
StandbyFileManagement = 'AUTO '.
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = "4"
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = 'emadb, emadbdg '.
LogFileNameConvert = "/ opt/app/oracle/oradata/emadb, / opt/app/oracle/oradata/emadbdg '"
FastStartFailoverTarget = "emadb.
InconsistentProperties = "(monitor).
InconsistentLogXptProps = "(monitor).
SendQEntries = "(monitor).
LogXptStatus = "(monitor).
RecvQEntries = "(monitor).
Nom_sid = "emadbdg".
StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=emarn2) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = emadbdg_DGMGRL) (INSTANCE_NAME = emadbdg)(SERVER=DEDICATED)))'
StandbyArchiveLocation = "/ opt/app/oracle/oradata/emadbdg/archivelog1.
AlternateLocation = "
LogArchiveTrace = '0'
LogArchiveFormat = '% t_%s_%r.dbf '.
TopWaitEvents = "(monitor).
State of the database:
WARNING
DGMGRL >
DGMGRL >
DGMGRL >
DGMGRL >
DGMGRL > outputAlex Antony Samantha wrote:
Head nodeSQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination /opt/app/oracle/oradata/emadb/archivelog1 Oldest online log sequence 65 Next log sequence to archive 67 Current log sequence 67 SQL> select thread#,max(sequence#) from v$archived_log group by thread#; THREAD# MAX(SEQUENCE#) ---------- -------------- 1 925
It is misleading to the column sequence, sequence of real number is 65 series, but it's beyond. Have you restored any old backup with the incarnation?
When you perform incremental backups, is the current_scn in the two primaries and Eve was balanced?And the sequence number * 29 * is transferred from the primary to the standby (or) he has been removed from the primary?
Perform the two methods.(1) SQL > alter system set log_archive_dest_state_2 = 'reporter ';
(2) conduct 3-4 log switches
(3) SQL > alter system set log_archive_dest_state_2 = 'enable '.and displays the alert log database and backup files.
And you mentioned the hostname in the entries of the listener, if this entry is added in/etc/hosts? otherwise you can use the IP address instead of the host name and then reload the listener.second method
(1) copy archives missing from primary sequence of 29
(2) place manually and then perform a recovery
or
(3) retrieve manuallyAnd update with your conclusions after all these lists.
Thank you. -
I want to know if my provider is the database
I'm just trying to find if my service provider is actually listed in the base of mozilla. All I get are answers telling me that Mozilla has a database, and Thunderbird will check for me, but I have what I want is to watch myself from the database and check if not my provider is listed. It sounds simple enough, and it should be doable.
Try to set up an account. If the wizard detects the correct settings, you have the answer.
-
The problem with SQL after the migration of the database to another machine
Having a SQL strange problem trying to extract a database being moved from one machine to the other. Both machines are running SQL 2008 32-bit and are both Windows 2008 servers. When I try to backup the database using the SQL tools and restore the. BAK file on the new SQL Server, I get the following error:
Restore failed for server 'servername' (Microsoft.SqlServer.Smo)
Additional information:
System.Data.SqlClient.SqlError: RESTORE detected an error on the page (44:2097184) in database 'RestoreDBName' read from the backup set.
Similarly, when I am trying to copy the. MDF and. LDF files to the new server and tie them, I get the following error:
Attach the database failed for the server 'servername '.
Additional information:
An exception occurred during the execution of a Transact-SQL statement or batch.
A system assertion failed. An assertion failure is usually caused by a corruption of data or software bug. To check the database, consider running DBCC CHECKDB. If you have agreed to send images to Microsoft during installation, a mini dump will be sent to Microsoft. An update can be an available from Microsoft in the latest Service Pack or a QFE from Technical Support.
Could not open new database 'NewDatabaseName' create a DATABASE is dropped.
"" Location: "logmgr.cpp": 3277
Expression: lfh-> lfh_startOffset is startOffset
SPID:55
PID: 292876 (Microsoft SQL Server, error: 3624)
Everything I've read, these errors usually indicate some sort of database corruption. However when I run DBCC CHECKDB on the database on the source server, it is up to perfectly don't own... None detected corruption. In fact, this server hosts 8 different databases. Departure from all the correct DB on the source server, none of them will restore however to a new server using one of the methods above. I'm having a hard time to believe that each of them could be corrupted when they show absolutely no indication of a problem.
Anyone have any ideas?Try to make the backup and restore via SQLCMD (or via a query in SQL Server MS window).
The backup will be the following (obviously, change "MaBase" and "D:\BACKUPS" to some database and the location you wish to save - just using for example):
BACKUP DATABASE MyDatabase
TO DISK = 'D:\BACKUPS\MyDatabase.bak. '
WITH NOFORMAT, NOINIT,.
NAME = 'Database MyDatabase - Full Backup',
NOREWIND, NOUNLOAD, STATS = 10, SKIP
Copy your backup to the other server and file make:
RESTORE the DATABASE to MyDatabase
FROM DISK = 'E:\Backups\MyDatabase.bak' WITH FILE = 1,
GO to "MyDatabase_Data" to "E:\SQLDATA\MyDatabase_Data.mdf,"
GO to "MyDatabase_Log" to "E:\SQLLOG\MyDatabase_Data.ldf,"
NOUNLOAD, STATS = 10 REPLACE
Again, change your names and locations in function.
If this does not work, try to restore a database by third-party tools. You can find them in Google. If you don't want to spend the time to research, you can try a tool SQL Server Recovery Toolbox. All the details about this program on the link. http://www.oemailrecovery.com/sql_repair.html
-
Access 2003 - repeated "You cannot make changes to the database" error
Hey all,.
Im having a very strange problem with Microsoft Access 2003, we work with the old databases and when we open them by Access 2003 we get the message "you cannot make changes to objects in database" error, which is expected. However, the laptop began to repeat this message repeatedly about 8 times after the first time that you click on it. Its very annoying to have to keep clicking to get rid of the error message. Its a very strange problem, any ideas on how to solve this problem, or even explain what could of happened will be appreciated.
Thanks in advance
PS Ce is not an option for updating the database, we work with a program that uses a database of 97 old and if you update the database the program will stop working.
Hello
First of all it doesn't seem that it is a Toshiba laptop failure.
This looks more like a problem of Microsoft.
I recommend to check the articles in the Microsoft Knowledge base or / and contact Microsoft technical support.I studied a bit and found these pages. Maybe you will find useful information.
http://www.smartcomputing.com/editorial/article.asp?article=articles/WebOnly/TechSupport/420w10/20w01.asp&GUID
http://support.Microsoft.com/kb/824260/
http://support.Microsoft.com/?scid=kb;en-us;824278&SPID=2509&SID=98Good luck
-
Tecra A10 - 11L are only & not on the database serial number
I bought a new Toshiba labtop (Tecra A10 - 11L).
This model is not listed on toshiba - Europe.com and serial number not on the database.
for:
drivers search 1
2 register the product
3 - upgrade to windows7What does this meen? What should I do?
Come one man. Open your mind
You will not find the Tecra A10 - 11L on the driver page, but you will find the * series Tecra A10 PTSB0E *!
Take a look at the bottom of the unit, you will find the model/serial number
On the European driver Toshiba page you will find all the details and the drivers for the Tecra A10 PTSB0E ;)
http://EU.computers.Toshiba-Europe.comEasy isn't it?
-
Withdrawal and the entry of the database
Hihi, looking for a solution for something like that.
My intention to build a leaf (Data Input) to enter all the necessary information. (Use database)
And after that, we turn to sheet 1-1, as it is the page I need to select the information that must appear in others.
Is there a method / formula to define, so that I can key in the name of the element (Cranberry) in the cell of the element, and (price, color, size, Photo Kgs) can be automatically filled as I previously entered it?
Much appreciated for your help =)
Hi Taelim,
The combination of the INDEX and MATCH will be repeated.
Formula in B2 from the roll of the order (and fill down and fill right)
= INDEX (Database::B,MATCH($A2,Database::$A,0))
My cheat for INDEX and MATCH worksheet:
= INDEX (column, I want a value returned by,)
MATCH (the value of my choice,
Column, I want to search against.
Enter ""0")).
-See more at: http://www.randomwok.com/excel/how-to-use-index-match/#sthash.L2WFkFjw.dpuf
To hide the triangles of red error (where there is no entry in a cell in column A of the table Order), enter this formula in A2 B2 (and fill down and fill right)
= IF (A2 = "", "", INDEX (database: B, MATCH($A2,Database::$A,0))))))
If a cell in column A is empty (NULL,"" "), then insert NULL" ", otherwise perform the formula INDEX & MATCH.
I don't know how to find a photo in the database and insert it into the order.
I hope I understood your screenshot. Command Shift 3 (fullscreen) is often difficult to read. Try the command shift 4 and drag the cross on the relevant part of your screen. How to display a screenshot, see this tip for user to Wayne.
https://discussions.Apple.com/docs/doc-6591
Kind regards
Ian.
Edit: enter this formula in A2 B2.
-
Cannot open the database: TrueSuite Access Manager
Whenever I try to record fingerprints in TrueSuite Access Manager, I get an error indicating that it was unable to open the database.
Hello
Have you tried to reinstall the TrueSuite software?
I think that the registry is confused upwards or a part of the software is damaged. Who knows.
But I think that a new installation of software could help to make it work again... -
Cannot connect - error loading the database...
Hello
Since last night find it me impossible to log in on my Skype.
He puts me "error loading the database. Skype." It is possible that another instance of Skype to use it.
I have reinstalled Skype, restart my pc, close all programs that could use it.
My husband get a leverage son skpe without pb so it comes well d a pb with my nickname... going to Word of the change back I. Despite all this, I still have the same message that appears! 1
did anyone have the same pb? and how he made it?
Please pour your help!
Rrbonjour
so I did well the manip: Task Manager, process shutdown Skype.
then relaunch the application, but it gives me the same result...
I made a new system more earlier but it's restore gives me the same result...
I asked a third person open my account on another pc and ca works... so it just my pc, not a hacking, (already it reassures me!)
My spouse does so well to open Skype with his nickname but I still nothing.
Application rattachee a Skype name can she used Lun?
-
Manually change the database of Photos?
Is it possible to manually edit the database of Photos?
I was diagnosing a problem that surfaced after initially migrating my library, iPhoto photo some time ago. It seems that a large number of photos in the iPhoto library had wrong file paths. The pictures themselves were there, but iPhoto had an error in the paths of files. (This happened probably years of updates, transfers to different machines, etc. It is a very old and very large library).
I used a third-party tool 3 to begin to correct the problem in the iPhoto library, and so far, that seems to be promising. This approach however, kill my library of Photos and re-import to iPhoto. Which seems a bit risky for me, maybe lose pictures added since the migration (which is not bad), since I'm not really sure how interaction with iCloud will manage this attempt.
But it presents to me unless I am able to inspect and change some of the data that the readers of the library of Photos directly, so maybe I can apply a fix directly without having to re - migrate. It seems that after the XML files for libraries, but there may be another approach, that I could use to directly modify the photo library? All I really need to do is change some paths that point to pictures.
Here's a post by user Pascal MaH describing how he managed to modify an iPhoto database. Maybe you can use the technique to alter a database of Photos. As usual, don't forget to have a backup current library before you try:
Re: iPhoto 11 referenced library problems
July 27, 2011 16:28 (in response to Terence Devlin)
YES!
I finally managed to get my iPhoto library!
But it has not been easy. I had to hack into the database file that you want to put in place good things.
After much trial and error, here is the procedure I came to, that finally worked for me (use at your own risk):
0 make sure you do enough safeguards so as to revert to the previous state if something goes wrong!
1 make a copy of your photo library in iPhoto [Show Package Contents]/Database/apdb/Library.apdb on your desktop.
This file contains most of the necessary data for the management of your data in iPhoto.
2. open this file using a SQLite database manager.
I've used Navicat 9.1, which has features nice import-export. For direct editing, basic 2.0 is may be easier.
3. open the RKMaster table.
This table contains all the records for the individual photos in your library.
4 fix the path of each of your photo files in the imagePath for their course filepath column.
It contains the path of your photo files at the time they were imported and is not updated by iPhoto, even if you have moved your files photo somewhere else.
If you have thousands of ways to correct, a good idea is to export this column in a text (including column modelId for SEO) file and to correct the paths using the substring function search & replace in your favorite text editor. Do not forget to re - import data properly corrected using column modelId as references.
5. If necessary, correct, in the same way, the content of the column fileVolumeUuid to the value of the drive that currently contains your picfiles.
If so, get this value given a PIC that was recently imported from this player.
6. If your drive name has changed, also to correct its name in the name column of the RKVolume table.
Identify the appropriate record taking into account its uuid obtained previously.
7. If you are satisfied with your work, leave the database, program management and restore Library.apdb to its original inside your iPhoto library location.
Keep the old somewhere in case something goes wrong.
8 run iPhoto to see if your work is successful!
At this point, you might consider the construction of the library (hold down alt - cmd at the launch of iPhoto) and choose repair the iPhoto library database (make sure to let him rebuild the AutoSave iPhoto library database disabled!). This could correct some possible unconsistencies resulting from your changes. Also, a good thing would be to rebuild all thumbnails. If iPhoto don't you do not bug to locate files during this process, you may have done your work right! If this is not the case, go back to step 1.
As said, it worked for me, without visible inconsistencies or side effects to be noticed in the behaviour of iPhoto (at least for now). But perhaps some knowledgable people could comment on and improve this process, and a database script guru can also help automate this. Please comment.
Lessons learned (how I understand things as far as I know):
A. Library.apdb stores the original drive and the path to the picture at the time files wherever they were imported. It is not changed because the files are moved.
B. some other data (BLOB Binary?) are used to track the files to their actual location. Therefore, it seems OK to move photo files once they have been imported.
C. Unfortunately, these other data are broken, if the file is re-created (even with the same content and location), for example with one based on files backup and restore (Time Machine).
(D) in this case, iPhoto is unable to repair the file if its drive and path does not match the one when the file is imported, stored in the database. Also, there is no mechanism in iPhoto to correct these data.
(E) therefore, it is very important to import photo files in iPhoto only when they are already in their final location! Otherwise, your iPhoto library won't survive a Time Machine backup and restore! (A disk block-based backup might work... I don't know).
F. ... And Apple should really, really solve this problem! (Correcting the filepath to the current location of the file and stored at least when the database is repaired, and by offering at least some basic file options reconnection).
I have not tried so I can't confirm or deny its effectiveness.
Maybe you are looking for
-
Cannot find screen timeout in iPhone OS 10.0.1 5s. Do not generally view the definition once I have updated.
-
HP2000: blue box appears saying to put a password.
I turn on my laptop and before it happens anywhere a blue box appears saying that it need a password. I click on enter 3 times and it gives me code is 65145419
-
Satellite 2410 won't see the new 250 GB hard drive
I am trying to upgrade the Toshiba 30 GB hard drive that came with the unit to a Western Digital Scorpio Blue 250 GB EIDE drive.I get out the swap the 30 GB to 250 GB put in a bootable XP SP3 CD version and nothing - no sign that power came to traini
-
World of different read and write scope
Basically, I am looking for a private accessor method Public Read write without the aid of a class. (Oversimplified) use cases Create a Boolean value which cannot be true if the value is written by a member on a specific lvlib. Think a vi in "Unit Te
-
Filter unwanted numbers when changing values
Hello I want to filter unwanted numbers that occur when switch between different values. I have 5 buttons that are all interconnected to disable the other when one of them is enabled (using the Set/Reset mechanism). The Boolean value of each key are