Focal Point
[SOLVED] Metadata generation using the CREATE SYNONYM command

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/956107535

July 14, 2015, 04:32 AM
Wep5622
[SOLVED] Metadata generation using the CREATE SYNONYM command
No, we don't perform that second table within -REMOTE BEGIN/END, because the point of the exercise is to be able to query that table on our local machine.

If we do query that table on the remote machine, we get the correct results, but then we would need to create remote hold-files for almost every table we query, which rather defeats the point of having a database.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
July 14, 2015, 05:35 AM
Wep5622
Ok, I just found a fairly significant bit of documentation about creating masters for multi-schema databases; apparently there is no way to create the correct access file using the create synonym tools!:

quote:
After any needed metadata has been created, edit the Access Files that needs to change
(using the Web Console editor or another editor) to have a TABLENAME= valuethat is
prefixed with the appropriate ALIAS reference.
To complete this step from the Web Console, locate the synonym whose Access File you
need to edit, click it, and select Edit Access File as Textfrom the menu.
For instance, in the Access File TABLENAME entry for the 2007 Sales table initially looks
like this:
TABLENAME='RDB$HANDLE.SALES',
The single quotation marks are required since the $ in RDB$HANDLE is regarded as a
special character.
The edited version would look as follows:
TABLENAME='CORPDATA2007.SALES',
In this instance, the single quotation marks are optional since CORPDATA2007 does not
contain a special character.


For the record, this is from page 2103 of the adapteradmin7706.pdf guide.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :