You can create a subscription for a function replication definition in one of two ways:
Use the create subscription command and the no-materialization method.
Use this method if primary data is already loaded at the replicate, and updates are not in progress.
Use the define subscription, activate subscription, and validate subscription commands and the bulk materialization method.
Use this method if you are coordinating loading data with updates.
Examples of both methods follow.