Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How to keep Synonyms and Table Objects in sync?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to keep Synonyms and Table Objects in sync?
 Login/Join
 
Gold member
posted
Was wondering if anyone had a procedure or practice on keeping Synonyms (metadata) in sync with underlying Table objects?

For example, user uploads file to the RDBMS (which creates a Synonym). Table "expires" or is deleted which now "orphans" the metadata.

Any ideas?

This message has been edited. Last edited by: globalwm,


8.0.02M, Oracle 11.2 (AIX), Windows 2008R2, HTML, PDF, Excel
 
Posts: 72 | Registered: November 12, 2012Report This Post
Master
posted Hide Post
Only way I know is to write a program. Here are the basic steps.

You'll need data from the Oracle system tables. We have a view that is call ALL_TABLES. Create a synonym for that view.

From ALL_TABLES extract the table/view names for the particular database/owner and save in a HOLD file.

Next get a DIR listing of the masters.

Compare the 2 lists and delete the .mas & .acx files where the table is not in the HOLD file


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Virtuoso
posted Hide Post
We have a system in place that periodically compares the output of SYSTABLE and SYSCOLUM with a table that gets generated on our AS/400 database server. The latter gets fed from a table of table names that we fill depending on what we use, so that we don't get too much changes listed that we're not interested in.

Of course, that's only one of the databases that we have that for, but it is the one where changes are most common because we have a team actively developing on it. Other databases tend to be for 3rd party products and change a lot less, so we haven't bothered with those yet.

The nice bit is that the changes get reported to us by e-mail and we can usually see from the message size that there were no changes.


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 :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Gold member
posted Hide Post
quote:
Originally posted by jgelona:
Next get a DIR listing of the masters.

Compare the 2 lists and delete the .mas & .acx files where the table is not in the HOLD file



Is there a way to query the WF Masters in the Repository or is this purely a "DIR listing" ?

If so, I could create a DBLINK to compare the Tables/Views in DBA_OBJECTS to the Repository instance.


8.0.02M, Oracle 11.2 (AIX), Windows 2008R2, HTML, PDF, Excel
 
Posts: 72 | Registered: November 12, 2012Report This Post
Virtuoso
posted Hide Post
There are several methods, such as:
TABLE FILE SYSTABLE
BY NAME
END


Alternatively, you can use APP LIST and APP QUERY to list the masters (and other file types) by app.


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 :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How to keep Synonyms and Table Objects in sync?

Copyright © 1996-2020 Information Builders