I am building an interface between two Oracle databases (A and B) on separate pieces of hardware. I am soliciting advice on the following options (or looking for other ideas) for referencing columns from database B in code on database A (I am using the %ROWTYPE feature in Oracle for all of my variables)
*Do it the hard way SCHEMA.TABLE.COLUMN@LINK%ROWTYPE
Pros
Documents the code very well
Cons
Ugly
TOAD debugger has issues with database links.
Use a view in database A of the object in database B VIEW.COLUMN%ROWTYPE
Pros
Clean looking
It’s the way we have always done it
Con
Building on top of View can get overly complicated
It’s the way we have always done it
Create a synonym in database A of the location of the object in B SYNONYM%ROWTYPE
Pro
It’s different
Con
It’s different