Quando você criou um stream, o criou e o iniciou imediatamente, ou criou o stream sem iniciá-lo.
Se você criou o fluxo, mas não o iniciou, faça isso agora. Ao iniciar o stream, ele pode transferir dados, esquemas e tabelas do banco de dados de origem para o destino.
Marque a caixa de seleção à esquerda do stream que você quer iniciar.
Clique em INICIAR.
Na caixa de diálogo, clique em INICIAR. O status do stream muda de Not started para Starting e Running.
Depois de iniciar um stream, você pode monitorá-lo para verificar se o Datastream transferiu dados do banco de dados de origem para o destino.
Pausar o stream
Depois de iniciar uma transmissão, você pode pausá-la. Quando um stream é pausado, o Datastream não extrai nenhum dado novo do banco de dados de origem para o destino. No entanto, alguns dados podem continuar sendo gravados no destino porque os dados "em trânsito" continuam sendo transmitidos.
Em alguns casos, se você pausar um stream, ele precisará reter os dados até que você retome o stream. O período de armazenamento do banco de dados de origem pode ser limitado. Se o stream estiver pausado por mais tempo do que o período de armazenamento de origem e depois for retomado, talvez ele falhe. Se isso acontecer, exclua o
stream, crie um
novo e inicie-o para que o
Datastream possa transferir dados, esquemas e tabelas do banco de dados de origem
para o destino.
Marque a caixa de seleção à esquerda do stream que você quer pausar.
Clique em PAUSAR.
Na caixa de diálogo, clique em PAUSAR. O status do stream muda de Running para Draining. Drenar um stream é o processo de esvaziar o stream para que ele não contenha dados.
Depois que o fluxo for drenado para todos os dados, o status do fluxo mudará de Draining para Paused.
Depois de pausar um stream, é possível retomá-lo para que o Datastream possa transferir novos dados do banco de dados de origem para o destino.
Retomar o stream
É possível retomar uma transmissão pausada. Ao retomar o stream, o Datastream pode transferir novos dados do banco de dados de origem para o destino.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-12 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)."]]