cancel
Showing results for 
Search instead for 
Did you mean: 

DW SQL Painter Executing Bad Oracle SQL

Former Member
0 Kudos

PB 12.5.1 Build 4015

When going into the DW SQL Painter PB will execute the following Constraint Select:

     SELECT SYS.ALL_CONS_COLUMNS.COLUMN_NAME, SYS.ALL_CONSTRAINTS.CONSTRAINT_NAME FROM SYS.ALL_CONSTRAINTS, SYS.ALL_CONS_COLUMNS WHERE ....

These selects will cause my DW to not return for minutes.  Is it possible to tell PB NOT to execute the Constraint Select when going into the DW SQL Painter or is there a way to have it use a different table instead of the SYS ones?  I might understand why it needs it for Graphics mode but I am in Syntax mode.

Hopefully someone has a workaround for this because I am getting really tired of waiting minutes every time I go into the SQL.

Thanks,

Chris Craft

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Have you looked at the PBODB125.ini file?

In the [Rdb_SYNTAX] section there exists a PBFKeyListSyntax item. It's contents are only place in the entire file with the word "CONSTRAINTS" (plural) in it.

Try commenting out the line completely, or making a copy of the line to try changes to it to see what you can make happen. Just make sure you comment out the original. A comment is a semi-colon at the beginning of the line ";".

Former Member
0 Kudos

We use the ORA driver not ODBC but I tried it anyway - no effect.

I forgot to mention the Oracle version, as Krzysztof kindly reminded me.  We are currently on Oracle 12.1.0.2.0 but I believe this started happening when we went to Oracle 11.  There are multiple posts out there stating the Constraint Views do not perform after upgrading.  If there is some way to change what schema/tables to use (like that ODB ini setting) then we would be golden!

Chris

CobyKako
Advisor
Advisor
0 Kudos

Try to execute this Oracle command at the schema level for the SYS owner:

exec dbms_stats.gather_schema_stats(ownname => ‘SYS’,cascade => TRUE);

Former Member
0 Kudos

Hi Jacob,

This does not help.  Our DBA has put in place some Views to try and speed this up but it is not a very good solution.  I am gathering their is not a hidden PB.INI setting that allows us to turn this off then?

Chris

Former Member
0 Kudos

I haven't PB 12.5 installed but in PB 11.5 :

- open any DW

- go to menu Design..Option

- General Tab

- Check OFF the Retrieve on Preview option

Former Member
0 Kudos

Chris,

You did not mention Oracle version nor way you connect to it.

Did you try to run this sql from sqlplus? Might be you need some stats being refreshed.Have you checked explain plan for this sql?

I must admit sometimes I just modify sql in Edit source, if there's not many changes it might work.