getattproperties: 70th attribute tuple from City_fact (relid=27835515) relation of DWA(dbid=296643) database not found - netezza

I am using Netezza system where nps version is 7.2.0.6. I am trying to run a query on a view which is created on base table City_fact.
But getting above error.
Can someone please let me know in which scenario we get above error. I tried to find but was not successful.

I faced the same issue in Netezza after migrating from TWINFIN to MAKO version. Drop and recreating the view worked in my case. Not sure this will help . but a suggestion if any faced similar issue.
Regards,
Bharani Raj

This error was encounter when any base object id got changed (by alter table) which is used in any view, and that is not reflected in the view. in such case you need to refresh the view (Create or replace view)

Related

Entity Not Updated in Database

I was trying to update entries in the package using EntityManager but its entity is not getting updated for some reason.
I was using entityManager.merge(entity) to update.
Any suggestions on how to fix or debug?
Would have been nice to put the code here, did You try using #Transactional on the method?
also check this link which is similar to your question.

Future data is not yet available for table error when running Create or replace table CLONE

Recently, in the last few days, we're having lot's of errors about "Future data is not yet available for table " when running a
CREATE OR REPLACE TABLE <tbl name> CLONE <db>.<schema>.tmp_<tbl name> COPY GRANTS
query. This was happening out-of-the-blue and there's no any indication about this specific error in the documentation or in the knowledge base.
What's the error in here? To what is it referring to and how can we avoid it?
Thanks!
The tables you want to clone seem to be marked as dropped. Probably undropping your table is helping: https://docs.snowflake.com/en/sql-reference/sql/undrop-table.html
It seems you hit a transient issue which affected some clone operations. The issue is fixed already. You should not see this error anymore.
If you still see it, please contact he Snowflake Support.

SymmetricDS synch from view

I'm looking at the features of SymmetricDS (last version symmetric-server-3.7.24) and in their forum I read it is actually possibile to synch from a view.
So I tried to synch from a view but when I run the program I got an error because symmetricDs cannot create a trigger on the view.
I also read that if a use a materialized view, then the trigger should be created.
The view is on a sqlserver 2008. I dropped the view and create a new one with schemabinding and add a cluster index on it. I also check that all the options are set as required in the MSDN guide to create indexed table.
I run symmetricDS again but still fail to create the trigger on the view.
Can anyone help me?
If what I ask is actually not possibile, then it is possibile to craete an extension that does not use trigger to synchronized the tables? I don't care that the two db are synched realtime, I can use a scheduled job, it will be just fine.
Thank you for you help and suggestion.
BTW: I can also change tool you you know a better one :)
I don't think that's a supported use case. However, you can try setting the sync_on_insert/update/delete fields to 0 on the sym_trigger. Then you would be able to sync the view with an initial load or by scheduling reloads (see "symadmin reload-table" command).

intellij idea data sources doesn't see existing table in the database

intellij idea data sources doesn't see existing table in my mysql database, while Netbeans see it.
i've created a table in the database. When i create connection in intellij idea data sources, it sees my scheme, i do select it in "schemas and tables" but then i don't see it in the list.
every schema, but mine's. When i try to connect to it with netbeans or mysql workbench, it's just ok. same story with several databases, with root access, too. any table, but mine's.
what could be wrong?
i see question like mine's here, related to visual studio, no answer.
please, give a good clue
I had the same problem in IntelliJ IDEA 15.
I fixed it by right clicking the data source -> Properties -> Schemas -> Use legacy introspector.
I found the reason of problem for HSQLDB: There is IDEA bug (i have 11.0 version).
Create db with relative path (relative of MODULE), like this:
jdbc:hsqldb:file:db_file/testDBInMemory;shutdown=true;hsqldb.write_delay=‌​false;
f:\TestModule\db_file\
When added it to Data Sources, IDEA recognizes this path as relative of $IDEA_HOME$/bin folder.
f:\Program Files\JetBrains\IntelliJ IDEA 11.0\bin\db_file\
So you have two different data bases. And when JPA updated first, Data Source doesn't see update in other.
WORKAROUND:
use absolute path in file db url.
For the latecomers still experiencing this, Intellij IDEA also has the following features which might help you as they have me:
'Force Refresh' (ctrl + shift + F5): "The Force Refresh action clears the data source information from cache and loads it again from scratch."
'Forget Cached Schema' which clears the schema cache. Does require you to set which schema you want shown again.
Right click your datasource -> Diagnostics -> 'Force Refresh' or 'Forget Cached Schema'
Source: https://www.jetbrains.com/help/idea/cannot-find-a-database-object-in-the-database-tree-view.html
The answer for me was buried in a comment, so I'm posting it here. The symptom for me was seeing an error like this:
Unable to resolve table 'thetablename'
And the table name was highlighted in red.
The following fixes are all ways to trigger IntelliJ to refresh data sources:
CTRL+ALT+Y to refresh the db stuff, or
CTRL+F5, or
Click the database vertical tab on the right, expand, right-click on each DB connection and select 'Refresh'
Kudos to #ice for answering this earlier in a comment. I'm basically just elaborating and making sure this shows up as an answer.

CakePHP 1.3 and table not found after renaming a table and regenerating the model

I renamed a table recently, and tried to regenerate the model. For some reason it keeps saying "Error: Missing database table" for the old table name. I can't seem to get rid of it, I cleared the cache, etc.
Any ideas? Thanks!
most likely you forgot to remove a relationship to that old model.

Resources