配置內容提供者
在 ThingWorx 中將內容配置為持續時,內容寫入值會儲存在模型持續性提供者資料庫 (例如,PostgreSQL) 中。您可以指定應儲存內容寫入值的持續性提供者,來變更預設行為。
變更 PostgreSQL 的預設內容提供者
預設內容持續性提供者是 ThingworxPersistenceProvider。若要變更此設定,請遵循下列步驟:
1. 建立新的持續性提供者實例。請參閱配置持續性提供者實體
2. 配置並執行 thingworxPostgresSchemaSetup.sh (非 Windows) 或 thingworxPostgresSchemaSetup.bat (Windows),並將 -o 選項設為 property,即可在資料庫中建立內容提供者結構描述。提供資料庫主機 (-h)、連接埠 (-p) 及結構描述名稱 (-d)。
例如,。/thingworxPostgresSchemaSetup.sh -h localhost -p 5432 -d MyPropertyProviderDatabase -o property
* 
ThingworxPostgresSchemaSetup.shthingworxPostgresSchemaSetup.bat 檔案位於軟體下載封裝內,可從 PTC 軟體下載取得。
* 
如需有關 thingworxPostgresSchemaSetup 檔案選項的詳細資訊,請參閱安裝 ThingWorx 的 PostgreSQL 部份。
3. 在「平台子系統」組態的「內容持續性提供者」欄位中,按一下 ThingWorxPersistenceProvider 旁的 X,然後使用神奇選擇器來選取您所建立的持續性提供者。
4. 按一下「儲存」
這是否有幫助?