数据库刷新一直处在内省中,可以正常sql查询等功能,就是架构无法更新

0
Hi,

First, you need to ensure that the databases / schemas you have selected need to be introspected. The more objects and data you have, the more time it'd take to synchronize everything.

https://www.jetbrains.com/help/datagrip/cannot-find-a-database-object-in-the-database-tree-view.html#step-2-verify-that-the-necessary-schemas-are-selected 

To investigate this issue, please provide the database log from Help - Show SQL Log in Files and the following logs:

https://www.jetbrains.com/help/datagrip/reporting-loading-of-database-objects-takes-too-much-time.html

Please upload onto https://uploads.jetbrains.com/ and include the upload id in your reply
0

Upload id: 2024_12_12_rMcU7w7Ly76TdKYstxgcuK (file: database.0.log)
My other database links are normally synchronized, but this one isn't. The previous database link was able to synchronize normally, but it doesn't work anymore. I don't know what went wrong in between.

0
Thanks for the update.

The log you provided is showing that all sessions were finished within milli seconds (execution and fetching). I can't inidicate any issues judging by the records I have seen. 

Please turn on the diagnostic mode and click Refresh on the database in question to trigger the introspection. Upload the log once you are done. See here for more guidance

https://www.jetbrains.com/help/datagrip/reporting-loading-of-database-objects-takes-too-much-time.html
0

Upload ID: 2024_12_17_FBUcvKB31SnZffxVBpNJqX
New log has been uploaded

0

I see there's a query that's failing upon multiple attempts. Please see if you can manually execute this query over the problematic database    

with V01 as (select 0 from sys.obj$ where 1 is null),
                 V02 as (select 0 from sys.type$ where 1 is null),
                 V03 as (select 0 from sys.ind$ where 1 is null),
                 V04 as (select 0 from sys.ts$ where 1 is null),
                 V05 as (select 0 from sys.con$ where 1 is null),
                 V06 as (select 0 from sys.cdef$ where 1 is null),
                 V07 as (select 0 from sys.col$ where 1 is null),
                 V08 as (select 0 from sys.dependency$ where 1 is null),
                 V09 as (select 0 from sys.trigger$ where 1 is null),
                 V10 as (select 0 from sys.procedureinfo$ where 1 is null),
                 V11 as (select 0 from sys.syn$ where 1 is null)
            select 1
            from dual
            where not exists (select 1 from V01)
              and not exists (select 1 from V02)
              and not exists (select 1 from V03)
              and not exists (select 1 from V04)
              and not exists (select 1 from V05)
              and not exists (select 1 from V06)
              and not exists (select 1 from V07)
              and not exists (select 1 from V08)
              and not exists (select 1 from V09)
              and not exists (select 1 from V10)
              and not exists (select 1 from V11) 

As a workaround, I'd suggest adding a separate data source by including only that database and activating Interspect JDBC metadata. See if it works

0

I couldn't find this option

0

Select your data source and go to Advanced tab where you need to click on Expert Options located at the bottom-right corner

0

The execution is very slow and has taken quite a long time, and the fields in the table have not been fully loaded

0
Are you referring to the introspection with Introspect JDBC metadata option turned on? Have you tried to execute the query above manually and what is the execution time? Please provide more details
0

Yes I did it manually. I worked for a day but still couldn't complete the synchronization

0
When you execute it manually, did it finish running this query, and how long did it take to finish the execution?
0

请先登录再写评论。