gpt4 book ai didi

oracle - 为什么 Oracle 会在导入后锁定我的架构的统计信息?

转载 作者:行者123 更新时间:2023-12-04 15:21:32 25 4
gpt4 key购买 nike

我的问题是我有一个模式,其中所有表的统计信息都被锁定。

我在网上发现可以用DBMS_STATS.UNLOCK_TABLE_STATS (SCHEMA_NAME)解锁程序。

我需要知道的是 Oracle 如何确定何时锁定统计信息,何时不锁定,以避免出现此类情况。

最佳答案

来自 original import command 的文档:

If ROWS=n, then statistics for all imported tables will be locked after the import operation is finished.



而对于 data pump import :

Be aware that if you specify CONTENT=METADATA_ONLY, then any index or table statistics imported from the dump file are locked after the import operation is complete.



如果您不想要数据,那么作为解锁所有导入对象的统计信息的替代方法,您可以离开 CONTENTALL ,并将查询过滤器应用于导出以排除所有行,例如 QUERY=("WHERE 0=1") .

关于oracle - 为什么 Oracle 会在导入后锁定我的架构的统计信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30080520/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com