Oracle MView refresh does not work: class org.jkiss.dbeaver.ext.oracle.model.OracleTable cannot be cast to class org.jkiss.dbeaver.ext.oracle.model.OracleMaterializedView
See original GitHub issueSystem information:
- Operating system (distribution) and version: Mac OS Catalina 10.15.7
- DBeaver version: 21.0.5.202105160657 (Runtime: 11.0.8+10)
- Additional extensions: None, pure installation
Connection specification:
- Database name and version: Oracle 12.1.0.2.0
- Driver name: ojdbc8:12.2.0.1 (I guess this version was bundled or downloaded from MVN central by default)
- Do you use tunnels or proxies (SSH, SOCKS, etc)? No
Describe the problem you’re observing:
The following error on attempt to refresh a view:
Steps to reproduce, if exist:
Right-click materialized view -> Tools -> Refresh Materialized view -> click ‘Start’
Include any warning/errors/backtraces from the logs
Pasting error details from the screenshot:
Execute tool 'Refresh materialized view'
Process [SCHEMA_NAME.MVIEW_NAME]
Process error
class org.jkiss.dbeaver.ext.oracle.model.OracleTable cannot be cast to class org.jkiss.dbeaver.ext.oracle.model.OracleMaterializedView (org.jkiss.dbeaver.ext.oracle.model.OracleTable and org.jkiss.dbeaver.ext.oracle.model.OracleMaterializedView are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @419ece7a)
Tool execution finished
I also found this problem in comments to other issues, but those issues are already resolved:
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
Tools: some tasks require refreshing after completion #9431
the opened view is refreshed. Actual result: Error appears "Task execution failed. Reason: class org.jkiss.dbeaver.ext.oracle.model.OracleTable ...
Read more >cannot access db tables - DBeaver Forum • View topic
I'm using MySQL and there is no change to the way MySQL was configured. The problem goes away if i downgrade back to...
Read more >DBeaver does not refresh table informations about constraints
In navigator, I press F4 on some table to see constraints of that table. I close the table window. Outside DBeaver I delete...
Read more >dbeaver/plugins/org.jkiss.dbeaver.ext.oracle/src/org ... - Program Talk
with this program; if not, write to the Free Software Foundation, Inc., ... import org.jkiss.dbeaver.model.meta.replacedociation;.
Read more >PostgreSQL Materialized View not refreshing
This was fixed by upgrading the AWS RDS instance and using PostgreSQL commands: REFRESH MATERIALIZED VIEW ana.bookings; REFRESH MATERIALIZED ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Successfully reproduced the issue on Oracle 12c EE.
@akilovich , I already reported above, that the problem was also reproducible on Linux. So far I only did not cover Windows 😃