Skip to Content
author's profile photo Former Member
Former Member

Data Dictionary Query - Can We Turn It Off?

PB 12.5.1

Every time I go into the SQL of a DataWindow I am left twiddling my thumbs for x number of seconds waiting for the SQL to show. When I query the DB to find out what is it doing it returns a Select against the data dictionary. I realize that this is an Oracle issue (those have gotten very slow in 11g) but it there a way to tell PB not to do this query?

Query:

SELECT F.CONSTRAINT_NAME,F.OWNER,F.R_OWNER,P.TABLE_NAME,SYS.ALL_CONS_COLUMNS.COLUMN_NAME,F.DELETE_RULE

FROM SYS.ALL_CONSTRAINTS F, SYS.ALL_CONS_COLUMNS,SYS.ALL_CONSTRAINTS P

WHERE F.OWNER = 'COMPANY_23' AND F.TABLE_NAME = 'IC_PRODUCT_UOM' AND F.CONSTRAINT_TYPE ='R' AND SYS.ALL_CONS_COLUMNS.CONSTRAINT_NAME = F.CONSTRAINT_NAME AND SYS.ALL_CONS_COLUMNS.TABLE_NAME = 'IC_PRODUCT_UOM' AND SYS.ALL_CONS_COLUMNS.OWNER = 'COMPANY_23' AND P.OWNER = F.R_OWNER AND P.CONSTRAINT_NAME = F.R_CONSTRAINT_NAME ORDER BY F.CONSTRAINT_NAME, SYS.ALL_CONS_COLUMNS.POSITION

Thanks,

Chris Craft

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 14, 2012 at 05:44 PM

    Just a wild guess, but there are some parameters in the PB.INI under [Database] that might have an effect

    NoCatalog limits the queries to PowerBuilder's own catalog tables.

    You might see if changing the values of ShowIndexKeys and ShowReflnt might keep PB from querying the system catalog, or if it only controls the display of the results.

    Haven't tried it myself. Just a thought.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.