Data processing method, device, computer equipment and storage medium

By obtaining the environment configuration parameters of the target server, generating and executing data memory creation scripts, and automatically establishing data memory, the problem of cumbersome establishment process in the existing technology is solved and efficiency is improved.

CN115202671BActive Publication Date: 2025-07-04INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210823521.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-14
Publication Date
2025-07-04
Estimated Expiration
2042-07-14

AI Technical Summary

Technical Problem

In the prior art, the establishment process of data storage is cumbersome and takes a lot of time, so it cannot be efficiently established.

Method used

By obtaining the target environment configuration parameters of the target server, a data memory creation script is generated, and when the interaction information returned by the data memory creation program matches the preset interaction information, an information simulation input operation is performed to automatically establish the target data memory.

Benefits of technology

It realizes automatic establishment of target data memory on the target server, avoids manual input of parameters step by step on the interactive interface, and improves the efficiency of data memory establishment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115202671B_ABST
    Figure CN115202671B_ABST
Patent Text Reader

Abstract

The present application relates to a data processing method, apparatus, computer device, storage medium, and computer program product, and relates to the field of computer technology. It can be used in the field of financial technology or other related fields. The method includes: obtaining target environment configuration parameters corresponding to a target server; generating a data storage establishment script according to the target environment configuration parameters; executing the data storage establishment script to start a data storage establishment program, and performing an information simulation input operation when the interaction information returned by the data storage establishment program matches preset interaction information; wherein, the information simulation input operation is an operation of simulating a user to input parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish a target data storage corresponding to the target server. Using this method can improve the establishment efficiency of the data storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a data processing method, apparatus, computer device, storage medium, and computer program product. Background Art

[0002] The Cdc (Change Data Capture) tool is an incremental data synchronization tool based on database logs, mainly used for data synchronization between two databases. Its architecture includes a control end on one server and instance ends on two databases. When in use, it is necessary to establish a data storage on the instance end and make a reservation on the control end.

[0003] To ensure the consistency between performance testing and the real production environment, it is necessary to regularly restore production data to the test environment, which means that the database instance needs to be rebuilt. However, rebuilding the database instance will cause the data storage of cdc to be abnormal, and it is necessary to delete the data storage and re - establish it. In the prior art, each time the data storage is established, the steps are cumbersome and it takes a lot of time, making it impossible to efficiently establish the data storage.

[0004] Therefore, in the traditional technology, there is a problem of low efficiency in establishing the data storage. Summary of the Invention

[0005] Based on this, it is necessary to provide a data processing method, apparatus, computer device, computer - readable storage medium, and computer program product that can improve the efficiency of establishing a data storage for the above - mentioned technical problems.

[0006] In a first aspect, this application provides a data processing method. The method includes:

[0007] In response to a trigger condition for establishing a data storage being met, obtain the target environment configuration parameters corresponding to the target server;

[0008] Generate a data storage establishment script according to the target environment configuration parameters;

[0009] Execute the data storage establishment script; the data storage establishment script is used to start the data storage establishment program and perform an information simulation input operation when the interaction information returned by the data storage establishment program matches the preset interaction information;

[0010] Wherein, the information simulation input operation is an operation of simulating a user to input the parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish the target data storage corresponding to the target server.

[0011] In one embodiment, a database instance is deployed on the target server; before the step of obtaining the target environment configuration parameters corresponding to the target server in response to the trigger condition for establishing the data storage, the method further includes:

[0012] Execute a data storage query script; the data storage query script is used to start the instance process corresponding to the database instance, and perform a first instruction simulation input operation when the instance interaction information returned by the instance process matches the corresponding preset instance interaction information; the first instruction simulation input operation is to simulate the operation of the user inputting a data storage query instruction into the instance process;

[0013] Wherein, the data storage query instruction is used to instruct the instance process to query for residual data storages in the target server whose corresponding storage description information is the same as the target storage description information; the target storage description information is the description information corresponding to the target data storage;

[0014] If there is such a residual data storage, perform a second instruction simulation input operation; the second instruction simulation input operation is to simulate the operation of the user inputting a storage deletion instruction into the instance process; the storage deletion instruction is used to instruct the instance process to delete the residual data storage.

[0015] In one embodiment, the step of if there is such a residual data storage, perform a second instruction simulation input operation includes:

[0016] If there is such a residual data storage, perform a third instruction simulation input operation; the third instruction simulation input operation is to simulate the operation of the user inputting a return instruction into the instance process; the return instruction is used to instruct the instance process to return from the data storage query page to the data storage deletion page; the data storage query page is used to display the storage description information corresponding to the residual data storage;

[0017] Perform the second instruction simulation input operation; the second instruction simulation input operation is to simulate the operation of the user inputting the storage deletion instruction into the instance process on the data storage deletion page.

[0018] In one embodiment, before the step of executing the data storage query script, the method further includes:

[0019] In response to the trigger condition for the query process being satisfied, query all processes on the target server;

[0020] In response to satisfying the trigger condition for screening the target process, screen out the remaining variable data capture processes from all the processes, and determine the target process identifier corresponding to the variable data capture process;

[0021] In response to satisfying the trigger condition for deleting the target process, delete the variable data capture process according to the target process identifier.

[0022] In one embodiment, the method further includes:

[0023] If there is no such remaining variable data process in all the processes, determine that the target server satisfies the trigger condition for querying the data storage;

[0024] In response to satisfying the trigger condition for querying the data storage, return to the step of executing the data storage query script.

[0025] In one embodiment, the obtaining of the target environment configuration parameters corresponding to the target server includes:

[0026] In response to satisfying the trigger condition for querying the configuration, query the target server configuration parameters and memory parameters corresponding to the target server;

[0027] Use the memory parameter as the data storage memory information corresponding to the target data storage;

[0028] According to the target server configuration parameters, the data storage memory information, and the preset port identifier corresponding to the target data storage, obtain the target environment configuration parameters.

[0029] In one embodiment, the process of establishing the data storage includes multiple steps; each of the steps has a corresponding sub-interaction information in the interaction information; each of the steps has a corresponding preset sub-interaction information in the preset interaction information; each of the steps has a corresponding parameter sub-call information in the parameter call information; the information simulation input operation includes multiple information simulation input sub-operations; the execution of the information simulation input operation in the case where the interaction information returned by the data storage establishment program matches the preset interaction information includes:

[0030] Obtain the sub-interaction information returned by the data storage establishment program in the current step;

[0031] In the case where the sub-interaction information matches the preset sub-interaction information corresponding to the current step, execute the information simulation input sub-operation corresponding to the current step; the information simulation input sub-operation is an operation of simulating the user inputting the parameter sub-call information corresponding to the current step into the data storage establishment program;

[0032] Take the next step of the current step as the current step, and return the step of obtaining the sub-interaction information returned by the data storage establishment program at the current step until the next step of the current step is the last step among the multiple steps.

[0033] In a second aspect, the present application also provides a data processing device. The device includes:

[0034] An acquisition module, configured to acquire target environment configuration parameters corresponding to a target server in response to a trigger condition for establishing a data storage being satisfied;

[0035] A generation module, configured to generate a data storage establishment script according to the target environment configuration parameters;

[0036] An execution module, configured to execute the data storage establishment script; the data storage establishment script is used to start a data storage establishment program, and perform an information simulation input operation when the interaction information returned by the data storage establishment program matches preset interaction information;

[0037] Wherein, the information simulation input operation is an operation of simulating a user to input parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish a target data storage corresponding to the target server.

[0038] In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0039] In response to a trigger condition for establishing a data storage being satisfied, acquire target environment configuration parameters corresponding to a target server;

[0040] Generate a data storage establishment script according to the target environment configuration parameters;

[0041] Execute the data storage establishment script; the data storage establishment script is used to start a data storage establishment program, and perform an information simulation input operation when the interaction information returned by the data storage establishment program matches preset interaction information;

[0042] Wherein, the information simulation input operation is an operation of simulating a user to input parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish a target data storage corresponding to the target server.

[0043] In a fourth aspect, the present application also provides a computer-readable storage medium. On the computer-readable storage medium, there is stored a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0044] In response to satisfying a trigger condition for establishing a data storage, obtain target environment configuration parameters corresponding to a target server;

[0045] Generate a data storage establishment script according to the target environment configuration parameters;

[0046] Execute the data storage establishment script; the data storage establishment script is used to start a data storage establishment program, and perform an information simulation input operation when the interaction information returned by the data storage establishment program matches preset interaction information;

[0047] Wherein, the information simulation input operation is an operation of simulating a user to input parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish a target data storage corresponding to the target server.

[0048] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0049] In response to satisfying a trigger condition for establishing a data storage, obtain target environment configuration parameters corresponding to a target server;

[0050] Generate a data storage establishment script according to the target environment configuration parameters;

[0051] Execute the data storage establishment script; the data storage establishment script is used to start a data storage establishment program, and perform an information simulation input operation when the interaction information returned by the data storage establishment program matches preset interaction information;

[0052] Wherein, the information simulation input operation is an operation of simulating a user to input parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish a target data storage corresponding to the target server.

[0053] The above data processing method, device, computer device, storage medium, and computer program product obtain the target environment configuration parameters corresponding to the target server by responding to the trigger condition for establishing a data storage; generate a data storage establishment script according to the target environment configuration parameters; execute the data storage establishment script; wherein, the data storage establishment script is used to start the data storage establishment program and perform an information simulation input operation when the interaction information returned by the data storage establishment program matches the preset interaction information; wherein, the information simulation input operation is an operation of simulating a user to input the parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish the target data storage corresponding to the target server; thus, the process of automatically obtaining the target environment configuration parameters corresponding to the target server to generate a data storage establishment script and automatically transmitting the parameter call information when the interaction information returned by the data storage establishment program started according to the data storage establishment script matches the preset interaction information to establish the target data storage corresponding to the target server is realized, that is, the automatic establishment of the target data storage on the target server is realized, without the need for manual input of data storage establishment parameters step by step on the interaction interface to establish the data storage, solving the problem of cumbersome steps and the need for a large amount of time and repetitive labor in establishing a data storage in the related art, and effectively improving the establishment efficiency of the data storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a schematic flowchart of a data processing method in an embodiment;

[0055] Figure 2 It is a schematic flowchart of another data processing method in an embodiment;

[0056] Figure 3 It is a schematic structural diagram of a data storage automatic building device in an embodiment;

[0057] Figure 4 It is a schematic structural diagram of a process processing unit in an embodiment;

[0058] Figure 5 It is a schematic structural diagram of a data storage operation unit in an embodiment;

[0059] Figure 6 It is a schematic flowchart of a device for automatic building of a data storage in an embodiment;

[0060] Figure 7 It is a structural block diagram of a data processing device in an embodiment;

[0061] Figure 8Internal structure diagram of a computer device in an embodiment. Detailed implementation

[0062] In order to make the purpose, technical solution and advantages of this application clearer, the following further details this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.

[0063] It should be noted that the terms "first", "second", etc. in the specification and claims of this disclosure and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of this disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0064] The data processing method provided by the embodiments of this application can be applied to a server, and the server can be implemented by an independent server or a server cluster composed of multiple servers.

[0065] In one embodiment, as Figure 1 shown, a data processing method is provided. Taking the application of this method to a target server as an example, the method includes the following steps:

[0066] Step S110, in response to satisfying the trigger condition for establishing a data storage, obtain the target environment configuration parameters corresponding to the target server.

[0067] Among them, the target server is the server at the database instance end in the cdc tool.

[0068] Among them, the trigger condition for establishing a data storage can be that there is no residual variable data capture process and no residual data storage in the target server.

[0069] In specific implementation, when there is no residual variable data capture process and no residual data storage in the target server, the target server satisfies the trigger condition for establishing a data storage. In response to satisfying the trigger condition for establishing a data storage, the target server can obtain the target environment configuration parameters corresponding to the target server.

[0070] Step S120, generate a data storage establishment script according to the target environment configuration parameters.

[0071] In a specific implementation, the target server can generate a script for establishing a CDC data storage according to a preset method, determine the parameters and options to be configured in sequence, and generate a script for establishing the data storage based on the configuration parameters of the target environment. Among them, the preset method for generating the script for establishing the CDC data storage can be determined according to the CDC official manual.

[0072] Step S130, execute the script for establishing the data storage; the script for establishing the data storage is used to start the program for establishing the data storage, and perform an information simulation input operation when the interaction information returned by the program for establishing the data storage matches the preset interaction information.

[0073] Among them, the information simulation input operation is an operation of simulating a user to input the parameter call information in the script for establishing the data storage into the program for establishing the data storage; the parameter call information is used to instruct the program for establishing the data storage to call the configuration parameters of the target environment to establish the target data storage corresponding to the target server.

[0074] Among them, the interaction information returned by the program for establishing the data storage can be a statement composed of strings.

[0075] In a specific implementation, the target server can execute the script for establishing the data storage. The script for establishing the data storage is used to start the program for establishing the data storage, and perform an information simulation input operation when the interaction information returned by the program for establishing the data storage matches the preset interaction information. Among them, the information simulation input operation is an operation of simulating a user to input the parameter call information in the script for establishing the data storage into the program for establishing the data storage; the parameter call information is used to instruct the program for establishing the data storage to call the configuration parameters of the target environment to establish the target data storage corresponding to the target server.

[0076] Among them, the script for establishing the data storage can call the spawn command (a programming tool language of Expect, Expect (a programming tool language for implementing communication with automatic and interactive tasks)), start the program for establishing the data storage in this script, use the expect command (a programming tool language of Expect) to obtain the statement composed of strings returned by the data storage establishment page opened by the program for establishing the data storage as the interaction information to match the preset interaction information in the script for establishing the data storage. If the match is consistent, use the send command (a programming tool language of Expect) to perform the information simulation input operation, that is, simulate the user to type the statement composed of strings as the parameter call information from the keyboard, that is, simulate the user to input the parameter call information in the script for establishing the data storage into the program for establishing the data storage in the data storage establishment page opened by the program for establishing the data storage, and end with the transfer character carriage return to inform the program for establishing the data storage that the input is completed.

[0077] In the above data processing method, in response to satisfying the trigger condition for establishing a data storage, the target environment configuration parameters corresponding to the target server are obtained; according to the target environment configuration parameters, a data storage establishment script is generated; the data storage establishment script is executed; wherein, the data storage establishment script is used to start the data storage establishment program, and perform an information simulation input operation when the interaction information returned by the data storage establishment program matches the preset interaction information; wherein, the information simulation input operation is an operation of simulating a user to input the parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish the target data storage corresponding to the target server; thus, the process of automatically obtaining the target environment configuration parameters corresponding to the target server to generate a data storage establishment script, and automatically transmitting the parameter call information when the interaction information returned by the data storage establishment program started according to the data storage establishment script matches the preset interaction information to establish the target data storage corresponding to the target server is realized, that is, the target data storage is automatically established on the target server, without the need for manual input of data storage establishment parameters step by step on the interaction interface to establish the data storage, solving the problem of cumbersome steps and the need for a large amount of time and repetitive labor in establishing a data storage in the related art, and effectively improving the establishment efficiency of the data storage.

[0078] In one embodiment, a database instance is deployed on the target server; before the step of obtaining the target environment configuration parameters corresponding to the target server in response to satisfying the trigger condition for establishing a data storage, the method further includes: executing a data storage query script; the data storage query script is used to start the instance process corresponding to the database instance, and perform a first instruction simulation input operation when the instance interaction information returned by the instance process matches the corresponding preset instance interaction information; the first instruction simulation input operation is an operation of simulating a user to input a data storage query instruction into the instance process;

[0079] wherein, the data storage query instruction is used to instruct the instance process to query for residual data storages in the target server whose corresponding storage description information is consistent with the target storage description information;

[0080] If there is a residual data storage, a second instruction simulation input operation is performed; the second instruction simulation input operation is an operation of simulating a user to input a storage deletion instruction into the instance process; the storage deletion instruction is used to instruct the instance process to delete the residual data storage.

[0081] Wherein, the target storage description information is the description information corresponding to the target data storage.

[0082] Among them, the memory description information includes the name, operating status, etc. corresponding to the data memory.

[0083] In a specific implementation, the target server deploys a database instance. Before the step of the target server obtaining the target environment configuration parameters corresponding to the target server in response to meeting the trigger condition for establishing a data memory, the target server also needs to execute a data memory query script. This data memory query script is a fixed script. In this script, the instance process corresponding to the database instance (i.e., the cdc instance process) is opened through the spawn command, and the expect command is used to obtain the statement composed of strings returned by the interactive page opened by the cdc instance process as the instance interaction information. The instance interaction information is matched with the preset instance interaction information in the data memory query script. If the match is consistent, the send command is used to execute the first instruction to simulate an input operation, that is, to simulate a user typing a string from the keyboard to form a data memory query instruction, that is, to simulate a user inputting the data memory query instruction into the cdc instance process in the interactive interface opened by the cdc instance process, and ending with the transfer character carriage return to inform the cdc instance process that the input is completed.

[0084] Among them, the data memory query instruction is used to instruct the cdc instance process to query the residual data memory in the target server whose corresponding memory description information is consistent with the target memory description information. The target memory description information is the description information corresponding to the target data memory. If there is a residual data memory, the send command is used to execute the second instruction to simulate an input operation, that is, to simulate a user typing a string from the keyboard to form a memory deletion instruction, that is, to simulate a user inputting the memory deletion instruction into the cdc instance process in the interactive interface opened by the cdc instance process, and ending with the transfer character carriage return to inform the cdc instance process that the input is completed. The memory deletion instruction is used to instruct the cdc instance process to delete the residual data memory.

[0085] Among them, if there is no residual data memory, the cdc instance process is exited.

[0086] In the technical solution of this embodiment, a database instance is deployed on the target server. By executing a data storage query script, the data storage query script is used to start the instance process corresponding to the database instance, and execute a first instruction simulation input operation when the instance interaction information returned by the instance process matches the corresponding preset instance interaction information. The first instruction simulation input operation is to simulate the operation of a user inputting a data storage query instruction into the instance process. Among them, the data storage query instruction is used to instruct the instance process to query the residual data storage in the target server whose corresponding storage description information is the same as the target storage description information. The target storage description information is the description information corresponding to the target data storage. If there is a residual data storage, a second instruction simulation input operation is executed. The second instruction simulation input operation is to simulate the operation of a user inputting a storage deletion instruction into the instance process. The storage deletion instruction is used to instruct the instance process to delete the residual data storage. In this way, before establishing the target data storage based on the current target server, the residual data storage on the target server is cleared first. This clearing step is the basis for ensuring that the establishment process of the target data storage can be repeatedly executed on one server, and it will not create an additional data storage every time it is executed once, resulting in abnormal operation of the cdc tool, effectively improving the reliability when establishing the target data storage.

[0087] In one embodiment, if there is a residual data storage, executing the second instruction simulation input operation includes: if there is a residual data storage, executing a third instruction simulation input operation. The third instruction simulation input operation is to simulate the operation of a user inputting a return instruction into the instance process. The return instruction is used to instruct the instance process to return from the data storage query page to the data storage deletion page. Execute the second instruction simulation input operation. The second instruction simulation input operation is to simulate the operation of a user inputting a storage deletion instruction into the instance process on the data storage deletion page.

[0088] Among them, the data storage query page is used to display the storage description information corresponding to the residual data storage.

[0089] In specific implementation, if there is a residual data storage, the cdc instance process will display the storage description information corresponding to the residual data storage on the data storage query page. The target server uses the send command to execute the third instruction simulation input operation, that is, to simulate the user typing a string from the keyboard to form a return instruction, that is, to simulate the user inputting the return instruction into the cdc instance process on the data storage query page opened by the cdc instance process, and ending with the transfer character carriage return to inform the cdc instance process that the input is complete. The return instruction is used to instruct the cdc instance process to return from the data storage query page to the data storage deletion page.

[0090] Then, the target server uses the send command to execute the second instruction to simulate an input operation, that is, to simulate a user typing a string from the keyboard to form a memory deletion instruction. That is, in the data memory deletion page opened by the cdc instance process, the memory deletion instruction is input into the cdc instance process and ended with a transfer character carriage return to inform the cdc instance process that the input is complete.

[0091] In the technical solution of this embodiment, if there is a residual data memory, the third instruction is executed to simulate an input operation; the third instruction simulation input operation is to simulate a user inputting a return instruction into the instance process; the return instruction is used to instruct the instance process to return from the data memory query page to the data memory deletion page; the data memory query page is used to display the memory description information corresponding to the residual data memory; the second instruction is executed to simulate an input operation; the second instruction simulation input operation is to simulate a user inputting a memory deletion instruction into the instance process on the data memory deletion page. In this way, the memory description information corresponding to the residual data memory can be displayed on the data memory query page, and a user is simulated to input a return instruction to control the instance process to return from the data memory query page to the data memory deletion page, and a user is simulated to input a memory deletion instruction on the data memory deletion page to delete the residual data memory, realizing an automatic interaction of simulating human-computer interaction operations and effectively improving the intelligence in the process of establishing the target data memory.

[0092] In one embodiment, before the step of executing the data memory query script, the method further includes: in response to satisfying the trigger condition of the query process, querying all processes on the target server; in response to satisfying the trigger condition of screening the target process, screening out the remaining variable data capture processes from all processes and determining the target process identifier corresponding to the variable data capture process; in response to satisfying the trigger condition of deleting the target process, deleting the variable data capture process according to the target process identifier.

[0093] In a specific implementation, before the step of the target server executing the first instruction to simulate an input operation, when the target server responds to satisfying the trigger condition of the query process, the target server will query all processes on the target server. Specifically, the server commands can be listed through the ps - ef command (a process viewing command). When the target server receives the ps - ef command, the target server satisfies the trigger condition of the query process, and the target server responds to this trigger condition to query all processes on the target server.

[0094] Then, when the target server responds to the trigger condition for screening the target process, it screens out the remaining variable data capture processes from all processes and determines the target process identifier corresponding to the variable data capture process. Specifically, after querying all processes through the "ps -ef" command, the output is passed to the subsequent command using the "|" pipe symbol. The subsequent command uses the regular matching "grep" command to screen out the remaining variable data capture processes (i.e., cdc processes); that is, when the target server receives the "grep" command, the target server meets the trigger condition for screening the target process. The target server responds to this trigger condition, screens out the remaining variable data capture processes from all processes, and outputs a preset deletion instruction (such as "1") and the target process identifier corresponding to the variable data capture process to the subsequent command, determining that the trigger condition for deleting the target process is met.

[0095] Finally, when the target server responds to the trigger condition for deleting the target process, it deletes the variable data capture process according to the target process identifier. Specifically, if the preset deletion instruction is output, the target server meets the trigger condition for deleting the target process. The target server responds to this trigger condition and can call the "kill" command to delete the variable data capture process according to the target process identifier.

[0096] Among them, if the above-mentioned remaining variable data capture processes are not screened out through the "grep" command, a preset skip instruction (such as "0") is output, indicating that there is no need to call the "kill" command to delete the variable data capture process.

[0097] The technical solution of this embodiment queries all processes on the target server by responding to the trigger condition for querying processes; screens out the remaining variable data capture processes from all processes and determines the target process identifier corresponding to the variable data capture process by responding to the trigger condition for screening the target process; deletes the variable data capture process according to the target process identifier by responding to the trigger condition for deleting the target process. In this way, before clearing the remaining data storage on the target server, the remaining variable data capture processes on the target server are cleared first, which can ensure that the establishment process of the target data storage can be repeatedly executed on one server, and there will not be an additional data storage established each time it is executed once, resulting in abnormal operation of the cdc tool, effectively improving the reliability when establishing the target data storage.

[0098] In one embodiment, the method further includes: if there are no remaining variable data processes among all processes, it is determined that the target server meets the trigger condition for querying the data storage; in response to meeting the trigger condition for querying the data storage, the step of executing the data storage query script is returned.

[0099] In a specific implementation, when the target server responds to the trigger condition for screening the target process and screens the residual variable data capture process according to the grep command, if no residual variable data process is screened among all processes, a preset skip instruction (such as "0") is output to determine that the trigger condition for querying the data storage is satisfied; then, in response to the trigger condition for querying the data storage being satisfied, the step of deleting the variable data capture process is skipped, and the step of executing the data storage query script is entered.

[0100] In the technical solution of this embodiment, if there is no residual variable data process among all processes, it is determined that the target server satisfies the trigger condition for querying the data storage; in response to the trigger condition for querying the data storage being satisfied, the step of returning to execute the data storage query script is performed; in this way, even if there is no residual variable data capture process in the target server, it is still necessary to query whether there is a residual data storage in the target server to ensure that there is no residual variable data capture process and residual data storage in the target server before establishing the target data storage corresponding to the target server, so that the establishment process of the target data storage can be repeatedly executed on one server, effectively improving the reliability when establishing the target data storage.

[0101] In one embodiment, obtaining the target environment configuration parameters corresponding to the target server includes: in response to the trigger condition for querying the configuration being satisfied, querying the target server configuration parameters and memory parameters corresponding to the target server; using the memory parameters as the data storage memory information corresponding to the target data storage; and obtaining the target environment configuration parameters according to the target server configuration parameters, the data storage memory information, and the preset port identifier corresponding to the target data storage.

[0102] In a specific implementation, the target server can, in response to the trigger condition for querying the configuration being satisfied, query the target server configuration parameters and memory parameters corresponding to the target server; specifically, when the target server receives the cat command (a command for displaying or concatenating multiple text files) and the sqlplus command (a login command), the target server satisfies the trigger condition for querying the configuration. In response to this trigger condition, the target server reads the configuration items of the database on the target server according to the cat command (for example, the configuration items in the profile file under the oracle (a database) user) as the target server configuration parameters corresponding to the target server, and logs in to the database according to the sqlplus command to read some configuration items of the database and the memory size of the target server, and obtains the memory parameters corresponding to the target server according to this memory size.

[0103] Then, the target server uses the memory parameter as the data memory information corresponding to the target data memory; according to the target server configuration parameter, the data memory information, and the preset port identifier corresponding to the target data memory, the target environment configuration parameter corresponding to the target server is obtained.

[0104] In the technical solution of this embodiment, by responding to the trigger condition that meets the query configuration, the target server configuration parameter and the memory parameter corresponding to the target server are queried; the memory parameter is used as the data memory information corresponding to the target data memory; according to the target server configuration parameter, the data memory information, and the preset port identifier corresponding to the target data memory, the target environment configuration parameter is obtained; in this way, the automatic query of the target environment configuration parameter corresponding to the target server is realized, without wasting a large amount of time to manually query the target environment configuration parameter, effectively improving the efficiency of obtaining the target environment configuration parameter, and thus improving the establishment efficiency of the target data memory.

[0105] In one embodiment, the process of establishing a data memory includes multiple steps; each step has a corresponding sub-interaction information in the interaction information; each step has a corresponding preset sub-interaction information in the preset interaction information; each step has a corresponding parameter sub-call information in the parameter call information; the information simulation input operation includes multiple information simulation input sub-operations; when the interaction information returned by the data memory establishment program matches the preset interaction information, the information simulation input operation is executed, including:

[0106] Obtain the sub-interaction information returned by the data memory establishment program in the current step; when the sub-interaction information matches the preset sub-interaction information corresponding to the current step, execute the information simulation input sub-operation corresponding to the current step; the information simulation input sub-operation is an operation of simulating a user to input the parameter sub-call information corresponding to the current step into the data memory establishment program; take the next step of the current step as the current step, and return to the step of obtaining the sub-interaction information returned by the data memory establishment program in the current step until the next step of the current step is the last step in the multiple steps.

[0107] Among them, the preset sub-interaction information can be the fixed content in the data memory establishment script, or can be determined according to the queried target environment configuration parameter.

[0108] In a specific implementation, during the process of performing information simulation input operations when the interaction information returned by the data storage establishment program matches the preset interaction information, the data storage establishment script can use the expect command (an Expect programming tool language) to obtain the sub-interaction information corresponding to the current step returned by the data storage establishment page opened by the data storage establishment program, and match it with the preset sub-interaction information corresponding to the current step in the data storage establishment script. If the match is consistent, the send command is used to execute the information simulation input sub-operation corresponding to the current step, that is, to simulate the user typing a string from the keyboard to form parameter sub-call information, that is, to simulate the user inputting the parameter sub-call information corresponding to the current step in the data storage establishment script into the data storage establishment program in the data storage establishment page opened by the data storage establishment program, and ending with the transfer character carriage return, informing the data storage establishment program that the input corresponding to the current step is completed.

[0109] Then, the data storage establishment script takes the next step of the current step as the current step and returns to the step of obtaining the sub-interaction information returned by the data storage establishment program in the current step until the next step of the current step is the last step among multiple steps; in this way, the sub-interaction information returned by each step is matched step by step to complete the establishment of the target data storage.

[0110] The technical solution of this embodiment is to obtain the sub-interaction information returned by the data storage establishment program in the current step; when the sub-interaction information matches the preset sub-interaction information corresponding to the current step, execute the information simulation input sub-operation corresponding to the current step; the information simulation input sub-operation is to simulate the user inputting the parameter sub-call information corresponding to the current step into the data storage establishment program; take the next step of the current step as the current step and return to the step of obtaining the sub-interaction information returned by the data storage establishment program in the current step until the next step of the current step is the last step among multiple steps; in this way, by matching the sub-interaction information returned by each step step by step, when the sub-interaction information matches the preset sub-interaction information corresponding to the current step, the parameter sub-call information corresponding to the current step is automatically transmitted to the data storage establishment program; it realizes the transmission of the corresponding parameter sub-call information for the sub-interaction information returned by each step to accurately instruct the data storage establishment program to call the target environment configuration parameters to establish the target data storage corresponding to the target server, improving the establishment efficiency of the data storage while enhancing the reliability during the data storage establishment process.

[0111] In another embodiment, as Figure 2 shown, a data processing method is provided. Taking the application of this method to a server as an example for illustration, it includes the following steps:

[0112] Step S202, in response to satisfying the trigger condition of the query process, query all processes on the target server.

[0113] Step S204, in response to satisfying the trigger condition for screening the target process, screen out the remaining variable data capture processes from all processes, and determine the target process identifier corresponding to the variable data capture process.

[0114] Step S206, in response to satisfying the trigger condition for deleting the target process, delete the variable data capture process according to the target process identifier.

[0115] Step S208, execute the data storage query script to instruct the instance process to query the remaining data storage in the target server whose corresponding storage description information is consistent with the target storage description information.

[0116] Step S210, if there is a remaining data storage, execute the second instruction to simulate an input operation to instruct the instance process to delete the remaining data storage.

[0117] Step S212, in response to satisfying the trigger condition for establishing the data storage, obtain the target environment configuration parameters corresponding to the target server.

[0118] Step S214, generate a data storage establishment script according to the target environment configuration parameters.

[0119] Step S216, execute the data storage establishment script to instruct the data storage establishment program to call the target environment configuration parameters to establish the target data storage corresponding to the target server.

[0120] It should be noted that the specific limitations of the above steps can be referred to the specific limitations of a data processing method above.

[0121] It should be understood that although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.

[0122] In an application embodiment, a structural diagram of an automatic setup device for the cdc data storage is provided. As Figure 3As shown in the figure, the device includes a process processing unit 310, a data memory operation unit 320, and a configuration query unit 330. Further, the process processing unit 310 is used to determine whether there is a residual variable data capture process on the target server. If so, the process is terminated. The data memory operation unit 320 mainly checks whether a residual data memory has been configured on the target server. If it has, it is deleted. Subsequently, a target data memory is re-established according to the target environment configuration parameters passed by the configuration query unit 330. The configuration query unit 330 mainly reads the target server configuration parameters and memory parameters corresponding to the target server to obtain the target environment configuration parameters for the data memory operation unit 320 to establish the target data memory.

[0123] Figure 4 It is the unit structure diagram of the process processing unit 310. As Figure 4 shown, this unit mainly includes a process judgment unit 3101 and a process termination unit 3102, where:

[0124] The process judgment unit 3101: is used to list the server commands using the ps - ef command and pass the output to the subsequent command with the "|" pipe symbol. The subsequent command uses the regular matching grep command to filter the residual variable data capture process. The name involved in the process is defined in the cdc official manual. If a residual variable data capture process is filtered, it outputs 1 and the corresponding target process identifier to the process termination unit 3102, otherwise it outputs 0.

[0125] The process termination unit 3102: is used to receive the value from the process judgment unit 3101. If it is 1, it calls the kill command to delete the variable data capture process according to the target process identifier. If it is 0, this unit is skipped.

[0126] Figure 5 It is the unit structure diagram of the data memory operation unit 320. As Figure 5 shown, this unit mainly includes a data memory judgment unit 3201, a script generation unit 3202, a capture information unit 3203, and an information sending unit 3204, where:

[0127] Data Memory Judgment Unit 3201: It is used to judge whether there is a residual data memory. This unit mainly calls the Capture Information Unit 3203 and the Information Sending Unit 3204. Since the memory description information corresponding to the residual data memory is in the fixed options of the interactive page at the cdc database instance side, this unit is actually a fixed data memory query script. Specifically, it calls the spawn command, starts the cdc instance process in this script, and then calls the Capture Information Unit 3203 to wait for the statement composed of strings returned by the interactive page opened by the cdc instance process. When it matches the preset instance interaction information in the script, it calls the Information Sending Unit 3204 to simulate typing different instructions (the first instruction, the second instruction, or the third instruction). The matching judgment of this unit is to simulate typing a data memory query instruction in the interactive page and check whether there is memory description information corresponding to the residual data memory in the data memory query page. If there is memory description information corresponding to the residual data memory, the residual data memory is deleted. If the memory description information corresponding to the residual data memory is not returned, the cdc instance process is exited and this unit is exited.

[0128] Script Generation Unit 3202: It obtains the target environment configuration parameters passed by the Configuration Query Unit 330, determines the parameters and options that need to be configured in sequence according to the preset method for generating a cdc data memory establishment script, so as to generate a data memory establishment script based on the target environment configuration parameters.

[0129] Capture Information Unit 3203: It mainly uses the expect command to obtain the statement composed of the current line of strings returned by the interactive page and compares it with the corresponding preset interaction information in the script to judge whether they are consistent.

[0130] Information Sending Unit 3204: When the Capture Information Unit 3203 matches, it enters the process of this unit and calls the send command. It simulates typing a statement composed of strings from the keyboard, that is, simulates different input operations (such as information simulation input operation, first instruction simulation input operation, second instruction simulation input operation, third instruction simulation input operation) and ends with a transfer character carriage return, and the input is completed.

[0131] Configuration query unit 330: It is mainly used to query the target environment configuration corresponding to the target server. It mainly uses the cat command to read the configuration items of the database on the target server. For example, it reads the configuration items in the profile file under the oracle user, and uses the sqlplus command to log in to the database to read some database configuration items and the memory size of the target server. According to the memory size, the memory parameters corresponding to the target server are obtained. The memory parameters are used as the data storage memory information corresponding to the target data storage; according to the target server configuration parameters, the data storage memory information, and the preset port identifier corresponding to the target data storage, the target environment configuration parameters corresponding to the target server are obtained, and the target environment configuration parameters are passed to the script generation unit 3202.

[0132] Figure 6 It is a flowchart of a device for automatically building a data storage of cdc. As shown in the figure, it includes the following steps:

[0133] Step S601: First, enter the process judgment unit 3101 to detect whether there is a residual variable data capture process on the target server. The judgment principle is as described above, and the output result is passed to the process termination unit 3102. According to the result value, enter the branch step S602 (output 1) or step S603 (output 0).

[0134] Step S602: The process termination unit 3102 receives 1, the result value is 1. Call the kill command to terminate the residual variable data capture process on the target server.

[0135] (The purpose of step S601 and step S602 is to clean up the residual variable data capture process on the target server)

[0136] Step S603: Call the data storage judgment unit 3201 to judge whether there is a residual data storage. If so, enter step S604, otherwise enter step S605.

[0137] Step S604: The data storage judgment unit 3201 deletes the existing residual data storage.

[0138] (The purpose of step S603 and step S604 is to clean up the residual data storage)

[0139] Step S605: The configuration query unit 330 reads the target environment configuration parameters corresponding to the target server and passes them to the script generation unit 3202. The script generation unit 3202 generates an executable script (data storage establishment script).

[0140] Step S606: Combine the data storage established in step S605 to create a script. The information capture unit 3203 waits for the sub-interaction information corresponding to the current step returned by the interactive page. After the sub-interaction information matches the preset sub-interaction information corresponding to the current step, the information sending unit 3204 inputs the parameter sub-call information corresponding to the current step in the data storage establishment script into the data storage establishment program in the data storage establishment page opened by the program in the data storage. In this way, match the sub-interaction information returned by each step step by step to complete the establishment of the target data storage.

[0141] Based on the same inventive concept, an embodiment of the present application further provides a data processing device for implementing the data processing method involved above. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the data processing device provided below can refer to the limitations on a data processing method in the above text and will not be repeated here.

[0142] In one embodiment, as Figure 7 shown, a data processing device is provided, including: an acquisition module 710, a generation module 720, and an execution module 730, where:

[0143] The acquisition module 710 is configured to obtain the target environment configuration parameters corresponding to the target server in response to a trigger condition for establishing a data storage.

[0144] The generation module 720 is configured to generate a data storage establishment script according to the target environment configuration parameters.

[0145] The execution module 730 is configured to execute the data storage establishment script; the data storage establishment script is used to start a data storage establishment program and perform an information simulation input operation when the interaction information returned by the data storage establishment program matches the preset interaction information;

[0146] wherein, the information simulation input operation is an operation of simulating a user to input the parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish the target data storage corresponding to the target server.

[0147] In one embodiment, a database instance is deployed on the target server; the apparatus further includes: a first execution sub-module, configured to execute a data storage query script; the data storage query script is used to start an instance process corresponding to the database instance, and perform a first instruction simulation input operation when the instance interaction information returned by the instance process matches the corresponding preset instance interaction information; the first instruction simulation input operation is to simulate an operation in which a user inputs a data storage query instruction into the instance process; wherein, the data storage query instruction is used to instruct the instance process to query a residual data storage in the target server whose corresponding storage description information is the same as the target storage description information; the target storage description information is the description information corresponding to the target data storage; a second execution sub-module, configured to perform a second instruction simulation input operation if there is the residual data storage; the second instruction simulation input operation is to simulate an operation in which a user inputs a storage deletion instruction into the instance process; the storage deletion instruction is used to instruct the instance process to delete the residual data storage.

[0148] In one embodiment, the second execution sub-module is specifically configured to perform a third instruction simulation input operation if there is the residual data storage; the third instruction simulation input operation is to simulate an operation in which a user inputs a return instruction into the instance process; the return instruction is used to instruct the instance process to return from a data storage query page to a data storage deletion page; the data storage query page is used to display the storage description information corresponding to the residual data storage; perform the second instruction simulation input operation; the second instruction simulation input operation is to simulate an operation in which a user inputs the storage deletion instruction into the instance process on the data storage deletion page.

[0149] In one embodiment, the apparatus further includes: a query module, configured to query all processes on the target server in response to a trigger condition for a query process being satisfied; a screening module, configured to screen out a residual variable data capture process from all the processes and determine a target process identifier corresponding to the variable data capture process in response to a trigger condition for screening a target process being satisfied; a deletion module, configured to delete the variable data capture process according to the target process identifier in response to a trigger condition for deleting the target process being satisfied.

[0150] In one embodiment, the apparatus further includes: a condition determination module, configured to determine that the target server satisfies a trigger condition for querying a data storage if there is no such residual variable data process in all the processes; a return module, configured to return to the step of executing the data storage query script in response to the trigger condition for querying the data storage being satisfied.

[0151] In one embodiment, the obtaining module 710 is specifically configured to, in response to a trigger condition for query configuration being met, query the target server configuration parameters and memory parameters corresponding to the target server; use the memory parameters as the data memory information corresponding to the target data memory; and obtain the target environment configuration parameters according to the target server configuration parameters, the data memory information, and the preset port identifier corresponding to the target data memory.

[0152] In one embodiment, the process of establishing the data memory includes multiple steps; each of the steps has a corresponding sub-interaction information in the interaction information; each of the steps has a corresponding preset sub-interaction information in the preset interaction information; each of the steps has a corresponding parameter sub-call information in the parameter call information; the information simulation input operation includes multiple information simulation input sub-operations; the execution module 730 is specifically configured to obtain the sub-interaction information returned by the data memory establishment program in the current step; when the sub-interaction information matches the preset sub-interaction information corresponding to the current step, execute the information simulation input sub-operation corresponding to the current step; the information simulation input sub-operation is an operation of simulating the user inputting the parameter sub-call information corresponding to the current step into the data memory establishment program; use the next step of the current step as the current step, and return to the step of obtaining the sub-interaction information returned by the data memory establishment program in the current step, until the next step of the current step is the last step among the multiple steps.

[0153] Each module in the above data processing device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.

[0154] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 8As shown. The computer device includes a processor, a memory, and a network interface connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store data for establishing data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements a data processing method.

[0155] Those skilled in the art can understand that Figure 8 the structure shown in is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0156] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the steps in the above method embodiments are implemented.

[0157] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.

[0158] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.

[0159] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0160] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0161] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0162] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A data processing method, characterized in that, The method includes: In response to a trigger condition for establishing a data storage being satisfied, obtaining target environment configuration parameters corresponding to a target server; Generating a data storage establishment script according to the target environment configuration parameters; Executing the data storage establishment script; the data storage establishment script is used to start a data storage establishment program and perform an information simulation input operation when the interaction information returned by the data storage establishment program matches preset interaction information; Wherein, the information simulation input operation is an operation of simulating a user to input parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish a target data storage corresponding to the target server.

2. The method according to claim 1, characterized in that, The target server is deployed with a database instance; before the step of in response to a trigger condition for establishing a data storage being satisfied, obtaining target environment configuration parameters corresponding to a target server, the method further includes: Executing a data storage query script; the data storage query script is used to start an instance process corresponding to the database instance and perform a first instruction simulation input operation when the instance interaction information returned by the instance process matches corresponding preset instance interaction information; the first instruction simulation input operation is an operation of simulating the user to input a data storage query instruction into the instance process; Wherein, the data storage query instruction is used to instruct the instance process to query for a residual data storage in the target server whose corresponding memory description information is consistent with target memory description information; the target memory description information is the description information corresponding to the target data storage. If there is the residual data storage, performing a second instruction simulation input operation; the second instruction simulation input operation is an operation of simulating the user to input a memory deletion instruction into the instance process; the memory deletion instruction is used to instruct the instance process to delete the residual data storage.

3. The method according to claim 2, wherein The if there is the residual data storage, performing a second instruction simulation input operation includes: If there is the residual data storage, performing a third instruction simulation input operation; the third instruction simulation input operation is an operation of simulating the user to input a return instruction into the instance process; the return instruction is used to instruct the instance process to return from a data storage query page to a data storage deletion page; the data storage query page is used to display the memory description information corresponding to the residual data storage; Performing the second instruction simulation input operation; the second instruction simulation input operation is an operation of simulating the user to input the memory deletion instruction into the instance process on the data storage deletion page.

4. The method according to claim 2, characterized in that, Before the step of executing the data storage query script, the method further includes: In response to a trigger condition for querying a process being satisfied, querying all processes on the target server; In response to satisfying the trigger condition for screening the target process, the residual variable data capture process is screened out from all the processes, and the target process identifier corresponding to the variable data capture process is determined; In response to satisfying the trigger condition for deleting the target process, the variable data capture process is deleted according to the target process identifier.

5. The method according to claim 4, wherein The method further includes: If there is no such residual variable data process among all the processes, it is determined that the target server satisfies the trigger condition for querying the data memory; In response to the trigger condition for satisfying the query of the data memory, the step of executing the data memory query script is returned.

6. The method according to claim 1, wherein The obtaining of the target environment configuration parameters corresponding to the target server includes: In response to satisfying the trigger condition for querying the configuration, the target server configuration parameters and memory parameters corresponding to the target server are queried; The memory parameter is used as the data memory information corresponding to the target data memory; According to the target server configuration parameters, the data memory information, and the preset port identifier corresponding to the target data memory, the target environment configuration parameters are obtained.

7. The method according to claim 1, wherein The process of establishing the data memory includes multiple steps; each of the steps has a corresponding sub-interaction information in the interaction information; each of the steps has a corresponding preset sub-interaction information in the preset interaction information; Each of the steps has a corresponding parameter sub-call information in the parameter call information; The information simulation input operation includes multiple information simulation input sub-operations; The performing of the information simulation input operation when the interaction information returned by the data memory establishment program matches the preset interaction information includes: Obtaining the sub-interaction information returned by the data memory establishment program in the current step; When the sub-interaction information matches the preset sub-interaction information corresponding to the current step, performing the information simulation input sub-operation corresponding to the current step; the information simulation input sub-operation is an operation of simulating the user to input the parameter sub-call information corresponding to the current step into the data memory establishment program; Taking the next step of the current step as the current step, and returning to the step of obtaining the sub-interaction information returned by the data memory establishment program in the current step until the next step of the current step is the last step among the multiple steps.

8. A data processing device, characterized in that, The device includes: An obtaining module, configured to obtain the target environment configuration parameters corresponding to the target server in response to satisfying the trigger condition for establishing the data memory; A generating module, configured to generate a data memory establishment script according to the target environment configuration parameters; An executing module, configured to execute the data memory establishment script; the data memory establishment script is used to start the data memory establishment program and perform the information simulation input operation when the interaction information returned by the data memory establishment program matches the preset interaction information; Among them, the information simulation input operation is an operation of simulating a user to input parameter call information in the data storage establishment script into the data storage establishment program; the parameter call information is used to instruct the data storage establishment program to call the target environment configuration parameters to establish a target data storage corresponding to the target server.

9. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Data processing method, simulation server and timeliness application

    CN111870937A

  • Automatic deployment method and device for Hdp big data platform, equipment and medium

    CN113127016A