on 11-21-2014 7:12 PM
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
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 ";".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Try to execute this Oracle command at the schema level for the SYS owner:
exec dbms_stats.gather_schema_stats(ownname => ‘SYS’,cascade => TRUE);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.