Quando hai creato uno stream, lo hai avviato immediatamente o lo hai creato senza avviarlo.
Se hai creato lo stream, ma non l'hai avviato, puoi farlo ora. Avviando lo stream, Datastream può trasferire dati, schemi e tabelle dal database di origine alla destinazione.
Vai alla pagina Stream nella console Google Cloud .
Seleziona la casella di controllo a sinistra dello stream che vuoi avviare.
Fai clic su AVVIA.
Nella finestra di dialogo, fai clic su INIZIA. Lo stato dello stream cambia da Not started a Starting e poi a Running.
Dopo aver avviato uno stream, puoi monitorarlo
per verificare che Datastream abbia trasferito i dati dal database di origine alla destinazione.
Mettere in pausa lo stream
Dopo aver avviato uno stream, puoi metterlo in pausa. Quando un flusso viene
sospeso, Datastream non estrae nuovi dati dal database di origine
nella destinazione. Tuttavia, alcuni dati potrebbero continuare a essere scritti nella
destinazione man mano che i dati "in transito" continuano a fluire.
In alcuni casi, se metti in pausa un flusso, il database di origine deve conservare i dati finché non riprendi il flusso. Il periodo di conservazione per il database di origine potrebbe essere limitato. Se lo stream viene messo in pausa per un periodo di tempo superiore al periodo di conservazione dell'origine e poi viene ripreso, può causare un errore. In questo caso, elimina lo
stream, creane uno
nuovo e avvialo in modo che
Datastream possa trasferire dati, schemi e tabelle dal database di origine
alla destinazione.
Vai alla pagina Stream nella console Google Cloud .
Seleziona la casella di controllo a sinistra dello stream che vuoi mettere in pausa.
Fai clic su METTI IN PAUSA.
Nella finestra di dialogo, fai clic su METTI IN PAUSA. Lo stato dello stream cambia da Running a Draining. Lo svuotamento di un flusso è il processo di svuotamento del flusso in modo che non contenga dati.
Una volta svuotato il flusso di tutti i dati, lo stato del flusso cambia da Draining a Paused.
Dopo aver messo in pausa uno stream, puoi riprenderlo in modo che
Datastream possa trasferire nuovi dati dal database di origine alla
destinazione.
Riprendere lo stream
Puoi riprendere uno stream che hai messo in pausa. Se riprendi lo
stream, Datastream può trasferire nuovi dati dal database di origine alla
destinazione.
Vai alla pagina Stream nella console Google Cloud .
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eStreams can be started to enable Datastream to transfer data, schemas, and tables from the source database to the destination.\u003c/p\u003e\n"],["\u003cp\u003ePausing a stream stops Datastream from pulling new data, although some in-flight data may still reach the destination, and source databases may have retention time limits.\u003c/p\u003e\n"],["\u003cp\u003eResuming a paused stream allows Datastream to continue transferring new data from the source database to the destination.\u003c/p\u003e\n"],["\u003cp\u003eThe process of starting, pausing and resuming a stream changes its status which can be monitored.\u003c/p\u003e\n"]]],[],null,["# Run a stream\n\nThis page describes the actions that you can take when you run a stream. The actions include:\n\n- [Starting a stream](#startastream)\n- [Pausing a stream](#pauseastream)\n- [Resuming a stream](#resumeastream)\n\nStart the stream\n----------------\n\nWhen you [created a stream](/datastream/docs/create-a-stream#createthestream), you either created the stream and started it immediately, or created the stream without starting it.\n\nIf you created the stream, but you didn't start it, then you can do so now. By starting the stream, Datastream can transfer data, schemas, and tables from the source database to the destination.\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. Select the checkbox to the left of the stream that you want to start.\n\n3. Click **START**.\n\n4. In the dialog, click **START** . The status of the stream changes from `Not started` to `Starting` to `Running`.\n\n | It takes about 30 seconds for the stream to start running. Background resources need to start so that the stream can start.\n |\n | For more information about the states and transitions of a stream, see [Stream lifecycle](/datastream/docs/stream-states-and-actions).\n\nAfter starting a stream, you can [monitor it](/datastream/docs/monitor-a-stream)\nto verify that Datastream transferred data from the source database to\nthe destination.\n\nPause the stream\n----------------\n\nAfter [starting a stream](#startastream), you can pause it. When a stream is\npaused, Datastream doesn't pull any new data from the source database\ninto the destination. However, some data may continue to be written to the\ndestination as data \"in flight\" continues to flow.\n\nIn some cases, if you pause a stream, then the source database must retain the\ndata until you [resume the stream](#resumeastream). The retention period for the\nsource database may be limited. If the stream is paused for longer than the\nsource retention period, and then the stream is resumed, this can cause the\nstream to fail. If this occurs, [delete the\nstream](/datastream/docs/delete-a-stream), [create a new\none](/datastream/docs/create-a-stream), and then start it so that\nDatastream can transfer data, schemas, and tables from the source\ndatabase to the destination.\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. Select the checkbox to the left of the stream that you want to pause.\n\n3. Click **PAUSE**.\n\n4. In the dialog, click **PAUSE** . The status of the stream changes from `Running` to `Draining`. Draining a stream is the process of emptying the stream so that it doesn't contain any data.\n\n After the stream is drained of all data, then the status of the stream changes from `Draining` to `Paused`.\n | For more information about the states and transitions of a stream, see [Stream lifecycle](/datastream/docs/stream-states-and-actions).\n\nAfter pausing a stream, you can [resume it](#resumeastream) so that\nDatastream can transfer new data from the source database to the\ndestination.\n\nResume the stream\n-----------------\n\nYou can resume a stream that you [paused](#pauseastream). By resuming the\nstream, Datastream can transfer new data from the source database to\nthe destination.\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. Select the checkbox to the left of the stream that you want to resume.\n\n3. Click **RESUME** . The status of the stream changes from `Paused` to `Running`.\n\n | For more information about the states and transitions of a stream, see [Stream lifecycle](/datastream/docs/stream-states-and-actions).\n\nAfter resuming a stream, you can [monitor it](/datastream/docs/monitor-a-stream)\nto verify that Datastream transferred new data from the source database\nto the destination.\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 modify your streams, see [Modify a stream](/datastream/docs/modify-a-stream).\n- To learn how to recover a 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)."]]