sp_nvbindcache <nv_cache_name>, <database_name>
<nv_cache_name>
是指定的 NV 高速缓存的名称。
<database_name>
是要绑定的数据库的名称。
此示例将名为 tdb1 的数据库绑定到名为 nvcache1 的 NV 高速缓存:
1> sp_nvbindcache nvcache1, tdb1
2> go
database: tdb1 found bound to NV cache: nvcache1
Binding/Unbind operations between databases and NV caches are critical operations, please be
careful before initiating the process
(return status = 0)
使用 sp_nvbindcache 创建 NV 高速缓存绑定时,您仅可指定一个数据库。如果您指定一个对象,而不是过程中的一个数据库,则 SAP ASE 显示错误。