CREATE USER USER_NAME WITH ENCRYPTED PASSWORD 'USER_PASSWORD';
更改下列內容:
USER_NAME:要建立的 Datastream 使用者名稱。
USER_PASSWORD:您要建立的 Datastream 使用者密碼。
將下列權限授予您建立的使用者:
GRANT RDS_REPLICATION TO USER_NAME;
GRANT SELECT ON ALL TABLES IN SCHEMA SCHEMA_NAME TO USER_NAME;
GRANT USAGE ON SCHEMA SCHEMA_NAME TO USER_NAME;
ALTER DEFAULT PRIVILEGES IN SCHEMA SCHEMA_NAME
GRANT SELECT ON TABLES TO USER_NAME;
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-12 (世界標準時間)。"],[[["\u003cp\u003eBefore setting up logical replication, ensure you have an existing Aurora cluster and are connected to the Writer endpoint of the master database server.\u003c/p\u003e\n"],["\u003cp\u003eConfigure a database cluster parameter group by creating one, setting the \u003ccode\u003erds.logical_replication\u003c/code\u003e parameter to 1, and then assigning it to the database instance.\u003c/p\u003e\n"],["\u003cp\u003eCreate a publication for the tables you want to replicate, using commands that specify either individual tables, all tables, or all tables within specified schemas.\u003c/p\u003e\n"],["\u003cp\u003eCreate a replication slot with a specific name by using the \u003ccode\u003ePG_CREATE_LOGICAL_REPLICATION_SLOT\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eCreate a specific Datastream user with the \u003ccode\u003eCREATE USER\u003c/code\u003e command and grant it necessary privileges like \u003ccode\u003eRDS_REPLICATION\u003c/code\u003e, \u003ccode\u003eSELECT\u003c/code\u003e, and \u003ccode\u003eUSAGE\u003c/code\u003e on the relevant schemas and tables.\u003c/p\u003e\n"]]],[],null,[]]