Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Vous pouvez modifier les informations suivantes sur un flux :
Informations générales, telles que le nom à afficher et les libellés du flux.
Informations de configuration pour la base de données source et la destination, telles que les tables et les schémas de la base de données source que Datastream transférera vers la destination ou ne pourra pas transférer vers la destination. Datastream utilise ces informations de configuration pour transférer les données appropriées de la base de données source vers la destination.
Modifier les informations générales
Accédez à la page Flux dans la console Google Cloud .
Sur la page Détails de la règle, cliquez sur MODIFIER.
Sélectionnez Modifier la configuration de la source dans le menu qui s'affiche.
Dans la section Sélectionner les objets à inclure, utilisez le menu déroulant Objets à inclure pour modifier les tables et les schémas de la base de données source que Datastream transférera vers la destination.
Si vous le souhaitez, développez le nœud Sélectionner des objets à exclure. Dans le champ Objets à exclure, modifiez les tables et les schémas de la base de données source que Datastream ne doit pas pouvoir transférer dans la destination. Si des tables sont ajoutées à cette liste, elles ne sont plus extraites vers la destination. Toutefois, ils ne sont pas supprimés de la destination.
Notez que pour les sources Oracle, vous ne pouvez pas modifier la méthode CDC. Toutefois, si vous avez sélectionné ce type d'accès aux fichiers journaux, vous pouvez modifier les informations sur les répertoires de base de données.
Si vous le souhaitez, développez le nœud Choisir un mode de remplissage pour les données d'historique pour modifier la façon dont Datastream remplit la destination avec les données actuelles et futures de la source, ou diffuse uniquement les modifications apportées à ces données.
Sélectionnez l'option Automatique pour diffuser toutes les données existantes, en plus des modifications apportées aux données, de la source vers la destination.
Si vous sélectionnez cette option, dans le champ Objets exclus du remplissage automatique, vous pouvez modifier les tables et les schémas de la base de données que Datastream ne doit pas pouvoir remplir dans la destination.
Sélectionnez l'option Manuel pour diffuser uniquement les modifications apportées aux données.
Une fois les modifications effectuées, cliquez sur ENREGISTRER.
Modifier les informations de configuration concernant la destination
Accédez à la page Flux dans la console Google Cloud .
Sur la page Détails de la règle, cliquez sur MODIFIER.
Sélectionnez Modifier la configuration de la destination dans le menu qui s'affiche.
En fonction de la destination que vous avez sélectionnée, ajustez les paramètres suivants si nécessaire :
Destinations BigQuery :
Sous Chiffrement, modifiez le type de chiffrement que vous souhaitez utiliser : Google-managed encryption key ou clé Cloud Key Management Service.
Sous Équilibrer l'obsolescence des données et les coûts BigQuery, modifiez l'option Limite d'obsolescence.
Destinations des tables BigLake Iceberg :
Sous Chiffrement, modifiez le type de chiffrement que vous souhaitez utiliser : Google-managed encryption key ou clé Cloud Key Management Service.
Destinations Cloud Storage :
Dans le champ Préfixe de chemin du flux, changez le dossier de la destination dans laquelle Datastream transférera les schémas, les tables et les données de la base de données source.
Dans le menu Format de sortie :
Choisissez le format des fichiers écrits dans Cloud Storage. Datastream accepte deux formats de sortie : Avro et JSON.
Si vous sélectionnez le format JSON, cochez ou décochez les cases Inclure un fichier de schéma de types unifiés dans le chemin d'accès au fichier et Activer la compression gzip.
Cliquez sur ENREGISTRER pour appliquer vos modifications et démarrer votre diffusion. Les modifications que vous apportez aux flux en cours d'exécution sont automatiquement mises à jour par Datastream.
Pour savoir comment afficher des informations sur votre flux, consultez Afficher un flux.
Pour savoir comment récupérer un flux ayant échoué, consultez Récupérer un flux.
Pour savoir comment supprimer un flux existant, consultez Supprimer un flux.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eYou can modify a stream's display name and labels to update its high-level information.\u003c/p\u003e\n"],["\u003cp\u003eThe configuration details for the source database can be changed, allowing modification of the schemas and tables that Datastream either transfers or restricts from transferring to the destination.\u003c/p\u003e\n"],["\u003cp\u003eThe folder destination path, used by Datastream for data transfer, and the output format of data, can also be modified as part of the configuration of the stream destination.\u003c/p\u003e\n"],["\u003cp\u003eThe source database type of an existing stream cannot be changed, requiring the creation of a new stream if the type needs to change.\u003c/p\u003e\n"],["\u003cp\u003eAny modifications made to a running stream will automatically be updated by Datastream.\u003c/p\u003e\n"]]],[],null,["# Modify a stream\n\nYou can modify the following information about a stream:\n\n- High-level information, such as the display name and labels for the stream.\n- Configuration information for the source database and the destination, such as the tables and schemas in the source database that Datastream will either transfer to the destination or will be restricted from transferring into the destination. Datastream uses this configuration information to transfer the correct data from the source database to the destination.\n\n | **Note:** You can't change the source database type for an already created stream. To change the database type, you need to create a new stream. For more information, see [Create a stream](/datastream/docs/create-a-stream).\n\nModify high-level information\n-----------------------------\n\n1. Go to the **Streams** page in the Google Cloud Console.\n\n [Go to the Streams page](https://console.cloud.google.com/datastream/streams)\n2. Click the stream that you want to modify.\n\n3. On the **Stream details** page, click **EDIT**.\n\n4. Select **Edit stream settings** from the menu that appears.\n\n5. Modify the display name or labels for the stream.\n\n | For more information about the stream's display name or labels, see [Define settings for the stream](/datastream/docs/create-a-stream#definestreamsettings).\n\n \u003cbr /\u003e\n\n6. After making your changes, click **SAVE**.\n\nModify configuration information about the source database\n----------------------------------------------------------\n\n1. Go to the **Streams** page in the Google Cloud Console.\n\n [Go to the Streams page](https://console.cloud.google.com/datastream/streams)\n2. Click the stream that you want to modify.\n\n3. On the **Stream details** page, click **EDIT**.\n\n4. Select **Edit source configuration** from the menu that appears.\n\n5. In the **Select objects to include** section, use the **Objects to include** drop-down menu to change the tables and schemas in the source database that Datastream will transfer to the destination.\n\n6. Optionally, expand the **Select objects to exclude** node. In the **Objects to exclude** field, modify the tables and schemas in the source database that you want to restrict Datastream from transferring into the destination. If tables are added to this list, then they're no longer pulled into the destination. However, they're not removed from the destination.\n\n | For more information about the **Objects to include** menu or the **Objects to exclude** field, see [Configure information about the source database for the stream](/datastream/docs/create-a-stream#configuresourcedbinfo).\n\n \u003cbr /\u003e\n\n7. Note that for Oracle sources, you can't modify the CDC method. However, you can change the database directories details, if you selected this log file access type.\n\n8. Optionally, expand the **Choose backfill mode for historical data** node to modify whether Datastream backfills the destination with current and future data from the source, or streams only changes to this data.\n\n - Select the **Automatic** option to stream all existing data, in addition to changes to the data, from the source into the destination.\n\n If you select this option, then in the **Objects excluded from automatic backfill** field, you can modify the tables and schemas in the source database that you want to restrict Datastream from backfilling into the destination.\n - Select the **Manual** option to stream only changes to the data.\n\n | For more information about the **Choose backfill mode for historical data** node, see [Configure information about the source database for the stream](/datastream/docs/create-a-stream#configuresourcedbinfo).\n9. After making your changes, click **SAVE**.\n\nModify configuration information about the destination\n------------------------------------------------------\n\n1. Go to the **Streams** page in the Google Cloud Console.\n\n [Go to the Streams page](https://console.cloud.google.com/datastream/streams)\n2. Click the stream that you want to modify.\n\n3. On the **Stream details** page, click **EDIT**.\n\n4. Select **Edit destination configuration** from the menu that appears.\n\n5. Depending on the destination that you selected, adjust the following settings as required:\n\n **BigQuery** destinations:\n - Under **Encryption**, change the type of encryption that you want to use: Google-managed encryption key or Cloud Key Management Service key.\n - Under **Balance data staleness and BigQuery costs** , change the **Staleness limit** option.\n\n **BigLake Iceberg tables** destinations:\n - Under **Encryption**, change the type of encryption that you want to use: Google-managed encryption key or Cloud Key Management Service key.\n\n **Cloud Storage** destinations:\n - In the **Stream path prefix** field, modify the folder of the destination into which Datastream will transfer schemas, tables, and data from the source database. If you change the folder, then all new files will be written to the new folder. Also, for more information about the **Stream path prefix** field, see [Configure information about the destination for the stream](/datastream/docs/create-a-stream#configuredestinfo).\n - From the **Output format** menu:\n - Choose the format of files written to Cloud Storage. Datastream supports two output formats: Avro and JSON.\n - If you select the JSON format, then select or clear the **Include a Unified Types schema file in the file path** and **Enable gzip compression** check boxes. For more information about these check boxes, see [Configure information about the destination for the stream](/datastream/docs/create-a-stream#configuredestinfo).\n6. Click **SAVE** to apply your changes and [start your stream](/datastream/docs/run-a-stream#startastream). Any modifications that you make to streams that are running are updated by Datastream automatically.\n\nWhat's next\n-----------\n\n- To learn more about streams, see [Stream lifecycle](/datastream/docs/stream-states-and-actions).\n- To learn how to monitor a stream, see [Monitor a stream](/datastream/docs/monitor-a-stream).\n- To learn how to view information about your stream, see [View a stream](/datastream/docs/view-a-stream).\n- To learn how to recover a failed stream, see [Recover a stream](/datastream/docs/recover-a-stream).\n- To learn how to delete an existing stream, see [Delete a stream](/datastream/docs/delete-a-stream)."]]