简体   繁体   English

还原后如何解锁 Netezza 数据库?

[英]How to unlock a Netezza database after restore?

We are performing a production upgrade soon.我们即将进行生产升级。 I want to do a restore of the current backups onto the Disaster Recovery system, but leave the databases locked so that the incrementals can be applied quickly if needed.我想将当前备份还原到灾难恢复系统,但要锁定数据库,以便在需要时可以快速应用增量。

If no incremental is produced for a database, how do I take it out of the locked state?如果数据库没有产生增量,如何从锁定的state中取出? Executing nzrestore -dir <dir> -connector filesystem -db <db> -incremental REST -lockdb false fails because there's no incremental to apply.执行nzrestore -dir <dir> -connector filesystem -db <db> -incremental REST -lockdb false失败,因为没有要应用的增量。 Therefore the database doesn't unlock.因此数据库不会解锁。 Removing -incremental REST causes the command to try to perform a full restore again.删除-incremental REST会导致命令再次尝试执行完全还原。

We are running version 11.2.1.6-IF1.我们正在运行版本 11.2.1.6-IF1。

I found it.我找到了。

nzrestore -db <db> -unlockdb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM