I would like a unique document id to be generated and displayed for every document added. The id for a particular document must not change on backup/restore (and must be consistent across standby servers). Ideally, each version of a document would have a unique id.
Is there any (newbie level) documentation that will help me do this?
Each and every object has a GUID which is obviously unique. If you preserve ids during export/import then these will remain consistent.
The property is called "sys:node-uuid".
There is also an id that is allocated by the database called "sys:node-dbid", however, i'm not sure this will be preserved across backups (export/import).