WO2019232828A1 - 脚本部署方法、装置、计算机设备及存储介质 - Google Patents

脚本部署方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2019232828A1
WO2019232828A1 PCT/CN2018/092591 CN2018092591W WO2019232828A1 WO 2019232828 A1 WO2019232828 A1 WO 2019232828A1 CN 2018092591 W CN2018092591 W CN 2018092591W WO 2019232828 A1 WO2019232828 A1 WO 2019232828A1
Authority
WO
WIPO (PCT)
Prior art keywords
script
database
database script
deployment
deployed
Prior art date
Application number
PCT/CN2018/092591
Other languages
English (en)
French (fr)
Inventor
黄锦伦
彭伟
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019232828A1 publication Critical patent/WO2019232828A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • the present application relates to the field of computer technology, and in particular, to a script deployment method, device, computer device, and storage medium.
  • developers usually create corresponding tables in various databases in the development environment, and after defining the tables or modifying the table structure, organize the corresponding table-building statements, then generate database scripts, and deploy to each It is used in various application environments, for example, the database script in the development environment is deployed to the test environment for testing.
  • a script deployment method including:
  • the verification result is a verification pass, using the database script to pre-deploy in the simulation environment;
  • the deployment result of the pre-deployment is a failure, obtaining the failure information, adjusting the content of the database script that fails to pre-deploy according to a preset modification manner corresponding to the failure information, and marking the adjusted database script as the Target script
  • a script deployment device includes:
  • An information receiving module configured to receive identification information of an object to be deployed and a target application environment in an initial application environment
  • a parameter configuration module configured to obtain configuration information of the target application environment according to the identification information, and use the configuration information to configure a simulation environment;
  • a database script creation module configured to, for each of the objects to be deployed, use a preset conversion script to create a database script corresponding to the object to be deployed;
  • a database script verification module configured to verify the validity of the database script and obtain a verification result
  • a pre-deployment module configured to pre-deploy in the simulation environment by using the database script if the verification result is a verification pass;
  • a first marking module configured to mark a database script that is successfully pre-deployed as a target script if the pre-deployment deployment result is successful
  • a second marking module is configured to obtain failure information if the deployment result of the pre-deployment fails, and adjust the content of the database script that fails to pre-deploy according to a preset modification manner corresponding to the failure information, and The database script is marked as the target script;
  • a target script deployment module is configured to deploy the target script to the target application environment.
  • a computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, and the processor implements the script deployment method when the processor executes the computer-readable instructions. step.
  • One or more non-volatile readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to execute to implement the script deployment Method steps.
  • FIG. 1 is a schematic diagram of an application environment of a script deployment method according to an embodiment of the present application
  • FIG. 2 is an implementation flowchart of a script deployment method according to an embodiment of the present application
  • FIG. 3 is a specific flowchart of step S3 in FIG. 2;
  • FIG. 4 is a specific flowchart of verifying a file name of a database script in a script deployment method provided in an embodiment of the present application
  • FIG. 5 is a specific flowchart of verifying the content of a database script in the script deployment method provided in the embodiment of the present application;
  • FIG. 6 is a specific flowchart of step S5 in FIG. 2;
  • FIG. 7 is a schematic diagram of a script deployment device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a computer device according to an embodiment of the present application.
  • the method for script deployment provided in this application can be applied to the application environment shown in FIG. 1, which includes a server and a client, where the server and the client are connected through a network, and the user inputs The identification information of the deployment object and the target application environment.
  • the client sends the identification information of the object to be deployed and the target application environment to the server.
  • the server processes the object to be deployed, and automatically generates a corresponding database script based on the object to be deployed.
  • the database script is checked and adjusted and deployed to the target application environment.
  • the client can be, but is not limited to, various personal computers, laptops, smart phones, tablets, and portable wearable devices.
  • the server can be implemented by using an independent server or a server cluster composed of multiple servers.
  • the script deployment method provided in the embodiment of the present application is applied to a server.
  • FIG. 2 shows a flowchart of the script deployment method in this embodiment, and the method is applied to the server in FIG. 1.
  • the script deployment method includes steps S1 to S8, which are detailed as follows:
  • S1 Receive identification information of an object to be deployed and a target application environment in an initial application environment.
  • the initial application environment is the application environment in which the object to be deployed resides
  • the initial application environment is the development environment, test environment, transition environment, or production environment
  • the target application environment is the application environment in which the object to be deployed is deployed.
  • the target application environment is a development environment, a test environment, a transition environment, or a production environment.
  • the identification information of the target application environment is identification information used to uniquely identify the application environment.
  • the object to be deployed is a database or table in the database that needs to be copied or backed up. Among them, the database includes, but is not limited to, an application library, a report library, and a production library.
  • the server first verifies the identity information of the user, the identity information includes the user name and password, and if the server matches the legal identity information in the legal identity information database that is consistent with the user's username and password, the verification is verified Pass and receive identification information of the object to be deployed and the target application environment input by the user through the client.
  • the object to be deployed entered by the user includes the database name and table name where the object to be deployed is located.
  • the user may select a database as a to-be-deployed object on the client, or select a table in the database as the to-be-deployed object on the client, which may be specifically selected according to actual application requirements.
  • the user needs to deploy database A in the development environment to the test environment for testing.
  • the development environment is the initial application environment
  • the database A is the object to be deployed
  • the test environment is the target application environment.
  • S2 Obtain the configuration information of the target application environment according to the identification information, and use the configuration information to configure the simulation environment.
  • the target application environment is determined according to the identification information of the target application environment, and the target application environment is accessed through a network connection to query the configuration information of the target environment.
  • the configuration information of the target application environment may specifically be the target application environment.
  • the configured environment variable parameters configure the simulation environment according to the configuration information obtained by the query, so that the configuration information of the simulation environment is the same as the configuration information of the target application environment.
  • simulation environment can be a single server or a server cluster, which is not limited here, and can be set according to the actual application requirements.
  • the server connects to the database through the user's information and database name to obtain the specific content of the object to be deployed, including the database or table to be deployed, and according to the specific content of the object to be deployed , Using a preset conversion script to generate a database script corresponding to the object to be deployed.
  • the content of the database script includes stored procedures, transactions, and functions, but is not limited to this.
  • the content of the database script can be created according to the specific content of the object to be deployed and deployed according to the preset conversion script.
  • the database script has the characteristics of occupying a small amount of memory and facilitating backup and migration.
  • the validity of the created database script is checked according to the preset project development requirements. If the database script meets the preset project development requirements, it means that the database script is valid, that is, the verification result is passed. Otherwise, if the database script does not meet the preset project development requirements, it means that the database script is illegal, that is, the verification result is that the verification fails.
  • the project development requirements are preset in order to unify the development process.
  • the project development requirements may be the same or different for different projects.
  • the specific project development requirements can be set according to the needs of the actual project.
  • the validity check includes a file name check and a business attribute check.
  • the preset project development requirements may specifically include a preset naming manner for the database script name and a preset business attribute for the developed data.
  • File name verification may specifically verify whether the naming of the created database script is legal according to a preset naming method
  • business attribute verification may specifically verify whether the content of the created database script is legal according to a preset business attribute. In order to determine whether the database script is valid.
  • the simulation environment is an application environment that is simulated based on the configuration information of the target application environment. If the verification result obtained according to step S4 is a verification pass, a database script that passes the verification is used to pre-deploy in the simulation environment. To test the running status of the database script, in order to verify whether the object structure consistent with the object to be deployed can be obtained after the database script is executed in the simulated environment, wherein the object structure includes the data of the table and the structure of the table.
  • the pre-deployment deployment result is determined to be successful. If the database script is executed in the simulation environment, the execution occurs In the case of failure, or if the obtained object structure is inconsistent with the object structure of the object to be deployed, it is determined that the pre-deployment deployment result is a failure.
  • the pre-deployment deployment result if the pre-deployment deployment result is successful, it means that the database script can also be successfully deployed with the target application environment, and the database script is marked as the target script for deployment. Into the target application environment.
  • the cause of the execution failure or the place inconsistent with the object structure of the object to be deployed is obtained according to the operation log information in the simulated environment, and the failure information is determined according to the
  • the error identification code contained in the failure information is adjusted according to the preset modification method corresponding to the error identification code, and the content of the pre-deployed database script is adjusted, and the adjusted database script is marked as the target script for deployment to the target application environment. in.
  • the preset modification method may specifically be a modification method set in the server in advance based on errors that are prone to occur when the database script is deployed in different application environments, and each error identification code corresponds to a modification method.
  • the corresponding modification mode is invoked to adjust the content of the database script that fails to pre-deploy.
  • the failure information of the database script pre-deployment failure in the simulated environment is output to the client, and a corresponding error prompt is given for confirmation by the user And adjust, and receive the adjusted database script from the user, and mark the adjusted database script as the target script.
  • the initial application environment is under the Linux environment, using the PL * SQL database management tool
  • the target application environment is also under the Linux environment, but using the SQL * Plus database management tool
  • the database script is deployed to the target application environment.
  • the database script is executed in the simulation environment. There is no error message, but the table field existing in the object to be deployed does not actually increase in the table field in the simulation environment. If the object structure of the deployment object is inconsistent, according to the error identification code returned in the failure information, it is detected that the failure is caused by the improper position of the comment in the database script.
  • the comment is added after the statement terminator in the database script.
  • the terminator of the statement includes a period, semicolon, comment symbol, etc., because the SQL * Plus database management tool cannot parse the content behind the terminator of the statement, which causes the SQL * Plus database management tool to fail to recognize the command type, and a deployment error occurs.
  • the error identification code call the corresponding repair In this way, the comment is adjusted in front of the statement terminator. By adjusting the position of the comment, the database script can be successfully executed in the target application environment to avoid the occurrence of error conditions.
  • the target script marked in step S6 or step S7 is acquired, the target script is sent to the target application environment, and the target application environment is driven to start a preset command line to execute the target script, thereby deploying the target script to the target application.
  • the object structure of the object to be deployed is restored and used in the target environment, wherein the preset command is a command to execute a script file.
  • the target script can be successfully deployed in the target application environment, which prevents the target script from failing to execute in the target application environment. There is no need to repeatedly test the target script in the target application environment, thereby improving the efficiency of development work.
  • a preset conversion script is used to create a database script corresponding to the object to be deployed, thereby improving the database.
  • the script creation efficiency reduces the repetitive labor of the developer.
  • the database script that passes the verification is used to pre-deploy in the simulation environment, and the successfully deployed database script is marked as the target script.
  • the database script is adjusted according to the configuration information of the target application environment, the adjusted database script is marked as the target script, and the target script is deployed to the target application environment, thereby improving the success rate of the database script deployment, Consistent object structure of the objects to be deployed, avoiding errors in deploying database scripts in the target application environment, saving human resources and improving development efficiency.
  • step S3 for each object to be deployed, a preset conversion script is used to create a database script corresponding to the object to be deployed, which specifically includes the following steps:
  • the user's information and database name are used to connect to the database where the to-be-deployed object is located, and obtain the object structure of the to-be-deployed object.
  • Table data and table structure are used to connect to the database where the to-be-deployed object is located, and obtain the object structure of the to-be-deployed object.
  • a preset conversion script is used to generate a SQL (Structured Query Language) statement corresponding to the object structure.
  • the SQL statement includes, but is not limited to, a table creation statement, Build index statements, build synonyms statements, table grant statements, and build table comments.
  • the table building statement generated by the conversion script using the preset table building statement is:
  • the table creation statement indicates the creation of a P table.
  • the P table includes four columns named Id, Name, Sex, and City.
  • the data type of the Id column is int, which indicates integer data.
  • the data type of the Sex column is char. , Indicates that the string is fixedly stored as a 20-byte string, and the data type of the Name column and the City column is varchar, which indicates a variable-length string with a maximum length of 255 characters.
  • the corresponding SQL statements are sequentially integrated into the database script corresponding to the object to be deployed according to the creation order of the object structure, where each database script corresponds to a specific to be deployed Object.
  • the object structure of each object is obtained by connecting to the database where the object to be deployed is located.
  • a preset conversion script is used to generate a SQL statement corresponding to the object structure.
  • the SQL statement corresponding to the object structure is integrated into the database script corresponding to the object to be deployed, which reduces the repetitive labor work of the developer, saves human resources, and improves the efficiency of creating database scripts.
  • step S4 when the validity check is a file name check, the database script is checked for legality as mentioned in step S4 to obtain a verification result, which specifically includes the following steps:
  • S411 Verify the file name of the database script according to a preset naming method.
  • the user names the created database script.
  • the database is traversed according to a preset naming method.
  • the file name of the script and verify the file name in order to verify whether the file name of the database script is legal.
  • the preset naming method can be specifically set according to the actual application needs, and there is no limitation here.
  • the target application environment needs to determine the database SID (System Identifier, System Identifier) according to the identification number of the file name during deployment.
  • SID System Identifier, System Identifier
  • the SID is a unique identifier for the database, and an initial ID given by the system when the database is established. If the file name does not meet the preset naming rules, a deployment error may occur.
  • the specific naming method can be set as: identification serial number_user name_type_operation_object name_creator.sql, and the server will verify the file name of the database script according to the naming method.
  • the file name of the database script is marked, and the file name is output.
  • the file name and error message of the database script where the error message is that the file name of the database script does not conform to the preset naming method, so that the user can modify the file name based on the error message to avoid the database script name Legitimate causes errors during deployment.
  • S413 Receive and verify the modified file name. If the modified file name meets the requirements of a preset naming method, the verification passes.
  • the server receives the modified file name input by the user on the client and verifies the modified file name. If the modified file name meets the requirements of a preset naming method, it means that The modified file name is valid, and the file name verification of the database script passes.
  • the file name of the database script is verified by using the preset naming method as a standard. If the file name of the database script does not meet the requirements of the preset naming method, the file name and Error message, so that the user can modify the file name according to the error message and receive the modified file name for verification until the modified file name meets the requirements of the preset naming method.
  • the name of the script is invalid, which causes errors during the deployment stage, and improves the accuracy of the database script.
  • step S4 when the validity check is a service attribute check, the database script is checked for legality as mentioned in step S4 to obtain a verification result, which specifically includes the following steps:
  • the business requirements for each project development are different, and each project has its corresponding business specification.
  • the preset business attributes can be specifically set according to the business specifications of the actual project.
  • the validity check is a service attribute check, according to the preset service attribute, the contents of the database script are traversed to check whether the content of the database script is valid.
  • the preset business attributes include the need to create an index on all foreign keys, the primary key field cannot be null, the need to create an index on all foreign keys, and no business attributes such as the nologging option.
  • Nologging is a non-logging mode.
  • the project includes the nologging option, which will affect the disaster recovery and recovery of the database. Data disaster recovery is the process of data copying from the hard disk or array of the application host to other storage media.
  • the content of the database script if the content of the database script does not conform to the business attributes, the content of the database script is updated according to the preset business attributes, and the content of the database script that does not conform to the business attributes is adjusted to the content that conforms to the business attributes.
  • the preset business attribute is that 16 threads are required to build the table index. If it is detected that the database build index in the database script does not use 16 threads, the content in the database script is adjusted and updated to generate the table index. 16 threads of SQL statements.
  • a database script is regenerated as the updated database script.
  • S423 Verify the updated database script. If the updated database script meets the preset business attributes, the verification passes.
  • the updated database script is obtained and the updated database script is verified. If the content of the updated database script meets the preset business attributes, it means that the content of the updated database script is legal. Yes, the contents of the database script passed the verification.
  • the content of the database script is verified by using a preset business attribute as a standard. If the content of the database script does not meet the preset business attribute, the content of the database script is checked according to the preset business attribute. Update, or output the content of the database script that does not meet the preset business attributes to the client, the user determines the cause of the error, and verifies the updated database script until the updated database script meets the preset.
  • the business attributes are verified to pass, improve the accuracy of the database script, reduce errors or development situations that do not meet business attributes.
  • the pre-deployment in the simulation environment using the database script mentioned in step S5 includes the following steps:
  • the database script is imported into a unified path in the simulation environment, and the file names of the database scripts are aggregated to generate a summary script and stored under the unified path.
  • the summary script is executed using a script execution command, for example, SQL> @ c.sql, to perform pre-deployment in a simulation environment and simulate the deployment process in the target application environment.
  • a script execution command for example, SQL> @ c.sql
  • Test the running status of the database script get the deployment object generated after the database script is executed, and compare it with the object to be deployed in the initial application environment. If the object structure of the deployed object is consistent with the object structure of the object to be deployed, determine The pre-deployment deployment result is successful. If the execution fails, or if the object structure of the deployed object is inconsistent with the object structure of the object to be deployed, then the pre-deployment deployment result is determined to be a failure.
  • the database scripts are imported into a unified path under the simulation environment, and the database scripts are pre-deployed in batches to improve the deployment efficiency.
  • the database scripts are run and tested in the simulation environment, and according to the execution status of the database scripts , To obtain the pre-deployment deployment results, fully simulate the deployment process of the target application environment, to avoid deployment failure due to defects and misses caused by the differences between the initial application environment and the target application environment, and cause project development work Unnecessary effects.
  • a script deployment device is provided, and the script deployment device corresponds to the script deployment method in the above-mentioned embodiment.
  • the script deployment device includes: an information receiving module 71, a parameter setting module 72, a database script creation module 73, a database script verification module 74, a pre-deployment module 75, a first marking module 76, and a second marking module 77 and Objective Script Deployment Module 78.
  • the detailed description of each function module is as follows:
  • An information receiving module 71 configured to receive identification information of an object to be deployed and a target application environment in an initial application environment;
  • a parameter configuration module 72 configured to obtain configuration information of a target application environment according to the identification information, and use the configuration information to configure a simulation environment;
  • a database script creation module 73 is configured to create a database script corresponding to the object to be deployed by using a preset conversion script for each object to be deployed;
  • the database script verification module 74 is configured to verify the validity of the database script and obtain a verification result
  • a pre-deployment module 75 is configured to perform pre-deployment in a simulation environment using a database script if the verification result is a verification pass, wherein the configuration information of the simulation environment is the same as the configuration information of the target application environment;
  • a first marking module 76 configured to mark the pre-deployed database script as a target script if the pre-deployment deployment result is successful
  • a second marking module 77 is configured to obtain failure information if the pre-deployment deployment result is unsuccessful, and adjust the content of the database script that fails to pre-deploy according to a preset modification manner corresponding to the failure information, and adjust the adjusted Database scripts are marked as target scripts;
  • the target script deployment module 78 is configured to deploy the target script to a target application environment.
  • the database script creation module 73 includes:
  • An object structure obtaining unit 731 configured to obtain an object structure of each object to be deployed
  • a script statement generating unit 732 configured to generate a SQL statement corresponding to the object structure by using a preset conversion script according to each object structure;
  • a database script creation unit 733 is configured to integrate a SQL statement corresponding to each object structure into a database script corresponding to an object to be deployed.
  • the validity check includes a file name check and a service attribute check.
  • the database script check module 74 includes:
  • the script name verification unit 7411 is configured to verify the file name of the database script according to a preset naming manner
  • the script name modification unit 7412 is configured to output the file name and error information of the database script if the file name of the database script does not meet the requirements of a preset naming method, so that the user can modify the file name according to the error information;
  • the script name receiving unit 7413 is configured to receive and verify the modified file name. If the modified file name meets the requirements of a preset naming method, the verification is passed.
  • the database script check module 74 includes:
  • a business attribute checking unit 7421 configured to detect whether a database script meets a preset business attribute
  • a content updating unit 7422 configured to update the content of the database script according to the preset business attribute if the content of the database script does not meet the preset business attributes;
  • the update script verification unit 7423 is configured to verify the updated database script. If the updated database script meets preset business attributes, the verification passes.
  • the pre-deployment module 75 includes:
  • the database script reference unit 751 is used to import a database script into the simulation environment
  • the running test unit 752 is configured to run a test on a database script in a simulation environment to obtain a pre-deployed deployment result.
  • Each module in the foregoing script deployment device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 8.
  • the computer device includes a processor, a memory, a network interface, and a database connected through a system bus.
  • 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-readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in a non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by a processor to implement a script deployment method.
  • a computer device including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor.
  • the processor implements the script deployment of the foregoing embodiment when the processor executes the computer-readable instructions.
  • the steps in the method are, for example, steps S1 to S8 shown in FIG. 2, or when the processor executes computer-readable instructions, the functions of each module / unit of the script deployment device in the foregoing embodiment are implemented, such as module 71 shown in FIG. 7 To function of block 78. To avoid repetition, we will not repeat them here.
  • a non-volatile readable storage medium on which computer-readable instructions are stored.
  • the steps in the script deployment method of the foregoing embodiment are implemented, for example, as shown in FIG. Steps S1 to S8 shown in FIG. 2 or, when the processor executes computer-readable instructions, the functions of each module / unit of the script deployment device in the foregoing embodiment are implemented, for example, the functions of modules 71 to 78 shown in FIG. 7. To avoid repetition, we will not repeat them here.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请公开了一种脚本部署方法、装置、计算机设备及存储介质,该脚本部署方法包括:接收初始应用环境下的待部署对象和目标应用环境的标识信息;针对每个待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本;对数据库脚本进行合法性校验;在校验通过后,使用数据库脚本在模拟环境中进行预部署;根据预部署的部署结果获取目标脚本;将目标脚本部署到目标应用环境中。本申请的技术方案能够有效提高创建数据库脚本的速率,节省人力资源,并通过对数据库脚本的校验调整,提高部署成功率,从而提高开发工作效率。

Description

脚本部署方法、装置、计算机设备及存储介质
本申请以2018年06月06日提交的申请号为201810573712.0,名称为“脚本部署方法、装置、计算机设备及存储介质”的中国发明专利申请为基础,并要求其优先权。
技术领域
本申请涉及计算机技术领域,尤其涉及一种脚本部署方法、装置、计算机设备及存储介质。
背景技术
开发人员在项目开发过程中,通常会在开发环境下的各个数据库中创建相应的表,并且在对表进行定义或者修改表结构后,整理对应的建表语句,再生成数据库脚本,部署到各种应用环境中使用,例如,将开发环境中的数据库脚本部署到测试环境中进行测试工作。
但是,目前开发人员在部署数据库脚本时,需要依靠人工对数据表进行整理,并生成数据库脚本,这种整理数据库脚本的方式耗时长,并且容易出现错误,同时在将数据库脚本发布到目标应用环境之后,存在该数据库脚本能够在开发环境正常执行,而在目标应用环境中执行报错的情况,此时需要进行人工查找出错原因,并对数据库脚本进行修改后重新移交部署,从而造成开发的工作效率降低。
发明内容
基于此,有必要针对上述技术问题,提供一种可以自动生成数据库脚本,并对数据库脚本进行校验调整,提高开发效率的脚本部署方法、装置、计算机设备及存储介质。
一种脚本部署方法,包括:
接收初始应用环境下的待部署对象和目标应用环境的标识信息;
根据所述标识信息获取所述目标应用环境的配置信息,并使用该配置信息对模拟环境进行配置;针对每个所述待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本;
对所述数据库脚本进行合法性校验,得到校验结果;
若所述校验结果为校验通过,则使用所述数据库脚本在所述模拟环境中进行预部署;
若所述预部署的部署结果为成功,则将预部署成功的数据库脚本标记为目标脚本;
若所述预部署的部署结果为失败,则获取失败信息,按照该失败信息对应的预设修改方式,对预部署失败的数据库脚本的内容进行调整,并将调整后的数据库脚本标记为所述目标脚本;
将所述目标脚本部署到所述目标应用环境中。
一种脚本部署装置,包括:
信息接收模块,用于接收初始应用环境下的待部署对象和目标应用环境的标识信息;
参数配置模块,用于根据所述标识信息获取所述目标应用环境的配置信息,并使用该配置信息对模拟环境进行配置;
数据库脚本创建模块,用于针对每个所述待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本;
数据库脚本校验模块,用于对所述数据库脚本进行合法性校验,得到校验结果;
预部署模块,用于若所述校验结果为校验通过,则使用所述数据库脚本在所述模拟环境中进行预部署;
第一标记模块,用于若所述预部署的部署结果为成功,则将预部署成功的数据库脚本标记为目标脚本;
第二标记模块,用于若所述预部署的部署结果为失败,则获取失败信息,按照该失败信息对应的预设修改方式,对预部署失败的数据库脚本的内容进行调整,并将调整后的数据库脚本标记为所述目标脚本;
目标脚本部署模块,用于将所述目标脚本部署到所述目标应用环境中。
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现上述脚本部署方法的步骤。
一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行实现上述脚本部署方法的步骤。
本申请的一个或多个实施例的细节在下面的附图和描述中提出,本申请的其他特征和优点将从说明书、附图以及权利要求变得明显。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一实施例中脚本部署方法的一应用环境示意图;
图2是本申请一实施例中脚本部署方法的一实现流程图;
图3是图2中步骤S3的一具体流程图;
图4是本申请实施例中提供的脚本部署方法中对数据库脚本的文件名进行校验的一具体流程图;
图5是本申请实施例中提供的脚本部署方法中对数据库脚本的内容校验的一具体流程图;
图6是图2中步骤S5的一具体流程图;
图7是本申请一实施例中脚本部署装置的一示意图;
图8是本申请一实施例中计算机设备的一示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请提供的脚本部署的方法,可应用在如图1的应用环境中,该应用环境包括服务端和客户端,其中,服务端和客户端之间通过网络进行连接,用户通过客户端输入待部署对象和目标应用环境的标识信息,客户端将待部署对象和目标应用环境的标识信息发送到服务端,服务端对待部署对象进行处理,根据该待部署对象自动生成对应的数据库脚本,并对数据库脚本进行校验调整,部署到目标应用环境中。客户端具体可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务端具体可以用独立的服务器或者多个服务器组成的服务器集群实现。本申请实施例提供的脚本部署方法应用于服务端。
在一实施例中,图2示出本实施例中脚本部署方法的一流程图,该方法应用在图1中 的服务端。如图2所示,该脚本部署方法包括步骤S1至步骤S8,详述如下:
S1:接收初始应用环境下的待部署对象和目标应用环境的标识信息。
在本实施例中,初始应用环境为待部署对象所在的应用环境,初始应用环境为开发环境、测试环境、过渡环境或者生产环境等,目标应用环境为需要将待部署对象进行部署的应用环境,目标应用环境为开发环境、测试环境、过渡环境或者生产环境等,目标应用环境的标识信息是用于唯一标识应用环境的标识信息,待部署对象为数据库中需要进行复制或者备份的数据库或表,其中,数据库包括但不限于应用库、报表库和生产库等。
具体地,服务端首先对用户的身份信息进行验证,该身份信息包括用户名和密码,若服务端在合法身份信息库中匹配到与该用户的用户名和密码一致的合法身份信息,则确认校验通过,并接收用户通过客户端输入的待部署对象和目标应用环境的标识信息,用户输入的待部署对象包括该待部署对象所在数据库名称和表名称。
需要说明的是,用户可以在客户端选择数据库作为待部署对象,也可以在客户端选择数据库中的表作为待部署对象,具体可以根据实际应用的需要进行选择。
例如,在项目开发过程,用户需要将开发环境下的数据库A部署到测试环境下进行测试,则开发环境为初始应用环境,数据库A为待部署对象,测试环境为目标应用环境。
S2:根据标识信息获取目标应用环境的配置信息,并使用该配置信息对模拟环境进行配置。
在本实施例中,根据目标应用环境的标识信息确定目标应用环境,并通过网络连接访问该目标应用环境,查询该目标环境的配置信息,该目标应用环境的配置信息具体可以为目标应用环境中配置的环境变量参数,根据查询得到的配置信息对模拟环境进行配置,使得模拟环境的配置信息与目标应用环境的配置信息相同。
需要说明的是,模拟环境可以为单独的一台服务器,也可以为服务器集群,此处不做限制,具体可以根据实际应用的需要进行设置。
S3:针对每个待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本。
具体地,根据用户输入的待部署对象,服务端通过用户的信息以及数据库名称,连接到该数据库,获取待部署对象的具体内容,包括待部署的数据库或表,并根据待部署对象的具体内容,使用预设的转换脚本生成与该待部署对象对应的数据库脚本。
其中,数据库脚本的内容包括存储过程、事务和函数等,但并不限于此,数据库脚本的内容可以根据具体的需要部署的待部署对象的具体内容进行创建,按照预设的转换脚本 创建得到的数据库脚本具有占用内存小,方便备份和移植的特点。
S4:对数据库脚本进行合法性校验,得到校验结果。
具体地,根据预设的项目开发要求,对创建的数据库脚本进行合法性校验,若数据库脚本符合预设的项目开发要求,则表示数据库脚本是合法的,即校验结果为校验通过,否则,若数据库脚本不符合预设的项目开发要求,则表示数据库脚本是不合法的,即校验结果为校验不通过。
需要说明的是,该项目开发要求是为了统一规范开发过程而预先设定的,不同的项目其项目开发要求可能相同也可能不相同,具体的项目开发要求可以根据实际项目的需要进行设定。
进一步地,合法性校验包括文件名校验和业务属性校验,预设的项目开发要求具体可以是对数据库脚本名称进行预设命名方式,以及对开发的数据进行预设业务属性。文件名校验具体可以是根据预设的命名方式,校验创建的数据库脚本的命名是否合法,业务属性校验具体可以是根据预设的业务属性,校验创建的数据库脚本的内容是否合法,以便确定数据库脚本是否合法。
S5:若校验结果为校验通过,则使用数据库脚本在模拟环境中进行预部署。
具体地,模拟环境是根据目标应用环境的配置信息进行模拟得到的应用环境,若根据步骤S4得到的校验结果为校验通过,则使用校验通过的数据库脚本,在模拟环境中进行预部署,测试数据库脚本的运行状况,以便于验证在模拟环境下执行数据库脚本后,是否能够得到与待部署对象一致的对象结构,其中,对象结构包括表的数据和表的结构。
需要说明的是,若在模拟环境下执行数据库脚本之后,得到的对象结构与待部署对象的对象结构一致,则确定预部署的部署结果为成功,若在模拟环境下执行数据库脚本之后,出现执行失败的情况,或者得到的对象结构与待部署对象的对象结构不一致,则确定预部署的部署结果为失败。
S6:若预部署的部署结果为成功,则将预部署成功的数据库脚本标记为目标脚本。
在本实施例中,根据步骤S5得到的预部署结果,若预部署的部署结果为成功,则表示该数据库脚本也能够成功部署与目标应用环境,将该数据库脚本标记为目标脚本,用于部署到目标应用环境中。
S7:若预部署的部署结果为失败,则获取失败信息,按照该失败信息对应的预设修改方式,对预部署失败的数据库脚本的内容进行调整,并将调整后的数据库脚本标记为目标脚本。
在本实施例中,若预部署的部署结果为失败,则根据模拟环境下的运行日志信息,获取执行失败的原因,或者与待部署对象的对象结构不一致的地方,确定失败信息,并根据该失败信息包含的错误标识码,按照该错误标识码对应的预设修改方式,对预部署失败的数据库脚本的内容进行调整,将调整后的数据库脚本标记为目标脚本,用于部署到目标应用环境中。
需要说明的是,预设的修改方式具体可以是根据数据库脚本在不同应用环境下部署时容易出现的错误在服务端中预先进行设置的修改方式,每个错误标识码对应一种修改方式,若检测到错误标识码,则调用对应的修改方式对预部署失败的数据库脚本的内容进行调整。
进一步地,若失败信息中没有携带错误标识码,即为未知项错误,则将数据库脚本在模拟环境下预部署失败的失败信息输出到客户端,并给出相应的错误提示,由用户进行确认和调整,并接收用户调整后的数据库脚本,将调整后的数据库脚本标记为目标脚本。
例如,初始应用环境在Linux环境下,使用的是PL*SQL数据库管理工具,目标应用环境也是在Linux环境下,但是使用的是SQL*Plus数据库管理工具,在将数据库脚本部署到与目标应用环境的配置信息相同的模拟环境后,数据库脚本在模拟环境中执行完成,没有出现报错的信息,但是待部署对象中存在的表字段,实际上在模拟环境中该表字段却没有增加,出现与待部署对象的对象结构不一致的情况,根据失败信息中返回的错误标识码,检测出该失败原因是由于数据库脚本中注释位置不当而造成,数据库脚本中存在语句结束符后增加了注释的现象,该语句结束符包括句号、分号和注释符号等,因为SQL*Plus数据库管理工具无法解析语句结束符后面的内容,导致SQL*Plus数据库管理工具无法识别该命令类型,从而出现部署错误的情况,根据该错误标识码,调用相应的修改方式,将该注释调整到语句结束符前面,通过调整注释的位置,使得数据库脚本能够在目标应用环境中成功执行,避免错误情况的发生。
S8:将目标脚本部署到目标应用环境中。
在本实施例中,获取步骤S6或步骤S7标记的目标脚本,将目标脚本发送到目标应用环境,并驱动目标应用环境启动预设的命令行执行该目标脚本,从而将目标脚本部署到目标应用环境中,还原出待部署对象的对象结构,在目标环境下进行使用,其中,预设的命令为执行脚本文件的命令。
由于模拟环境的配置信息与目标应用环境的配置信息相同,并且经过预部署的校验调整,能够保证目标脚本在目标应用环境中成功部署,避免目标脚本在目标应用环境执行失 败的情况,同时也不需要在目标应用环境对目标脚本进行重复测试,从而提高了开发工作的效率。
在本实施例中,通过接收初始应用环境下的待部署对象和目标应用环境的标识信息,针对每个待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本,提高数据库脚本的创建效率,减少开发人员的重复性劳动,使用校验通过的数据库脚本在模拟环境中进行预部署,并将部署成功的数据库脚本标记为目标脚本,同时,若数据库脚本执行部署出错,则根据目标应用环境的配置信息对该数据库脚本进行调整,将调整后的数据库脚本标记为目标脚本,将目标脚本部署到目标应用环境,从而提高数据库脚本部署的成功率,得到与初始应用环境下的待部署对象一致的对象结构,避免在目标应用环境中部署数据库脚本出现报错的情况,节省人力资源,提高开发工作效率。
在一实施例中,如图3所示,步骤S3中,即针对每个待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本,具体包括如下步骤:
S31:获取每个待部署对象的对象结构。
在本实施例中,根据用户在客户端输入的待部署对象,通过用户的信息以及数据库名称,连接到待部署对象所在的数据库,并获取该待部署对象的对象结构,该对象结构包括数据库中表的数据和表的结构。
S32:根据每个对象结构,使用预设的转换脚本生成该对象结构对应的SQL语句。
在本实施例中,根据每个对象结构,使用预设的转换脚本生成与该对象结构对应的SQL(Structured Query Language,结构化查询语言)语句,其中,SQL语句包括但不限于建表语句、建索引语句、建同义词语句、表授权语句和建表注释。
例如,根据待部署对象中的P表,使用预设的建表语句的转换脚本生成的建表语句为:
CREATE TABLE P(Id int,Name varchar(255),Sex char(20),City varchar(255));
该建表语句表示创建一个P表,其中,P表包括列名为Id、Name、Sex和City的四个列,Id列的数据类型是int,表示整型数据,Sex列的数据类型是char,表示固定存储为20个字节的字符串,Name列和City列的数据类型是varchar,表示可变长度的字符串,最大长度为255个字符。
S33:将每个对象结构对应的SQL语句整合成待部署对象对应的数据库脚本。
在本实施例中,根据步骤S32生成的SQL语句,按照对象结构的创建顺序,将相应的SQL语句按照顺序整合成待部署对象对应的数据库脚本,其中,每个数据库脚本对应一具体的待部署对象。
在本实施例中,通过连接到待部署对象所在的数据库中,获取每个对象的对象结构,根据每个对象结构,使用预设的转换脚本生成该对象结构对应的SQL语句,再将每个对象结构对应的SQL语句整合成待部署对象对应的数据库脚本,减少了开发人员的重复性劳动工作,节省人力资源,从而提高了数据库脚本的创建效率。
在一实施例中,如图4所示,当合法性校验为文件名校验时,步骤S4中所提及的对数据库脚本进行合法性校验,得到校验结果,具体包括如下步骤:
S411:根据预设的命名方式,对数据库脚本的文件名进行校验。
在本实施例中,用户根据创建的数据库脚本对其进行命名,在对数据库脚本进行合法性校验过程中,当合法性校验为文件名校验时,根据预设的命名方式,遍历数据库脚本的文件名,并对文件名进行校验,以便校验数据库脚本的文件名是否合法,该预设的命名方式具体可以根据实际应用的需要进行设置,此处不做限制。
需要说明的是,部署时目标应用环境需要根据文件名的标识序号确定数据库SID(System Identifier,系统标识符),SID是一个数据库的唯一标识符,在建立数据库时系统赋予的一个初始ID,若文件名不符合预设的命名规则,则会出现部署报错的情况。
例如,具体的命名方式可以设置为:标识序号_用户名_类型_操作_对象名称_创建人.sql,服务端将按照该命名方式对数据库脚本的文件名进行校验。
S412:若数据库脚本的文件名不符合预设的命名方式的要求,则输出该数据库脚本的文件名和错误信息,以使用户根据错误信息对该文件名进行修改。
在本实施例中,在对数据库脚本的文件名进行校验过程中,若检测到建表脚本的文件名不符合预设的命名方式,则对该数据库脚本的文件名进行标记,并输出该数据库脚本的文件名和错误信息,其中,错误信息为该数据库脚本的文件名不符合预设的命名方式的信息,以使用户根据错误信息对该文件名进行修改,避免由于对数据库脚本的命名不合法而造成部署阶段出现错误。
S413:接收并校验修改后的文件名,若该修改后的文件名符合预设的命名方式的要求,则校验通过。
在本实施例中,服务端接收用户在客户端输入修改后的文件名,并对该修改后的文件名进行校验,若该修改后的文件名符合预设的命名方式的要求,则表示修改后的文件名是合法的,数据库脚本的文件名校验通过。
在本实施例中,通过以预设的命名方式为标准,对数据库脚本的文件名进行校验,若数据库脚本的文件名不符合预设的命名方式的要求,则输出该数据库脚本的文件名和错误 信息,以使用户根据错误信息对该文件名进行修改,并接收修改后的文件名进行校验,直至修改后的文件名符合预设的命名方式的要求为校验通过,避免由于对数据库脚本的命名不合法而造成部署阶段出现错误,提高数据库脚本的正确率。
在一实施例中,如图5所示,当合法性校验为业务属性校验时,步骤S4中所提及的对数据库脚本进行合法性校验,得到校验结果,具体包括如下步骤:
S421:检测数据库脚本是否符合预设的业务属性。
具体地,每个项目开发的业务需求不一样,各个项目有其对应的业务规范,预设的业务属性具体可以根据实际项目的业务规范进行设置,在对数据库脚本进行合法性校验过程中,当合法性校验为业务属性校验时,根据该预设的业务属性,遍历校验数据库脚本的内容是否合法。
例如,预设的业务属性包括所有外键上需要创建索引、主键字段不能为空值、所有外键上需要创建索引,以及不能包含nologging选项等业务属性,其中,nologging为非日志模式,若开发项目中包含nologging选项,将影响数据库的灾备和恢复,数据灾备为数据从应用主机的硬盘或阵列中复制到其他存储介质的过程。
S422:若数据库脚本的内容不符合预设的业务属性,则按照预设的业务属性对数据库脚本的内容进行更新。
在本实施例中,若数据库脚本的内容不符合业务属性,则按照预设的业务属性对数据库脚本的内容进行更新,将数据库脚本中不符合业务属性的内容调整为符合业务属性的内容。
例如,预设的业务属性为建表索引需要使用16条线程,若检测到数据库脚本中的建表索引没有使用16条线程,则对该数据库脚本中的内容进行调整,更新成建表索引生成16条线程的SQL语句。
进一步地,若创建的数据库脚本不符合业务属性,但为未知项错误,则将数据库脚本中不符合业务属性的内容输出到客户端,并给出相应的错误提示,由用户进行确认和修改,在接收到用户重新输入的更新后的待部署对象后,按照与本申请实施例步骤S3相同的处理过程,重新生成数据库脚本作为更新后的数据库脚本。
S423:对更新后的数据库脚本进行校验,若更新后的数据库脚本符合预设的业务属性,则校验通过。
在本实施例中,获取更新后的数据库脚本,并对更新后的数据库脚本进行校验,若更新后的数据库脚本的内容符合预设的业务属性,则表示更新后的数据库脚本的内容是合法 的,数据库脚本的内容校验通过。
在本实施例中,通过以预设的业务属性为标准,对数据库脚本的内容进行校验,若数据库脚本的内容不符合预设的业务属性,则按照预设的业务属性对数据库脚本的内容进行更新,或者将数据库脚本中不符合预设的业务属性的内容输出到客户端,由用户进行确定错误的原因,并对更新后的数据库脚本进行校验,直至更新后的数据库脚本符合预设的业务属性为校验通过,提高数据库脚本的正确率,减少出错或者不符合业务属性的开发情况。
在一实施例中,如图6所示,步骤S5中提及的使用数据库脚本在模拟环境中进行预部署,具体包括如下步骤:
S51:将数据库脚本导入模拟环境。
在本实施例中,将数据库脚本导入模拟环境中的统一路径下,并将数据库脚本的文件名汇总生成汇总脚本存储于该统一路径下。
例如,将数据库脚本a.sql和b.sql复制到统一路径下,并根据数据库脚本a.sql和b.sql,将数据库脚本的文件名汇总生成汇总脚本c.sql存储于该路径下,其中,c.sql的内容为@@a.sql;@@b.sql。
S52:在模拟环境中对数据库脚本进行运行测试,得到预部署的部署结果。
在本实施例中,根据步骤S51得到的汇总脚本,使用脚本执行命令执行该汇总脚本,例如,SQL>@c.sql,在模拟环境中进行预部署,模拟了在目标应用环境下的部署过程,测试数据库脚本的运行状况,得到数据库脚本执行之后生成的部署对象,用于与初始应用环境下的待部署对象进行对比,若得到部署对象的对象结构与待部署对象的对象结构一致,则确定预部署的部署结果为成功,若出现执行失败的情况,或者得到部署对象的对象结构与待部署对象的对象结构不一致,则确定预部署的部署结果为失败。
在本实施例中,通过将数据库脚本导入模拟环境下的统一路径中,将数据库脚本批量进行预部署,提高了部署的效率,在模拟环境中对数据库脚本进行运行测试,根据数据库脚本的执行状况,得到预部署的部署结果,充分对目标应用环境的部署过程进行了模拟操作,避免因为初始应用环境和目标应用环境的差异性等带来的缺陷漏测而造成部署失败,对项目开发工作造成不必要的影响。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
在一实施例中,提供一种脚本部署装置,该脚本部署装置与上述实施例中脚本部署方法一一对应。如图7所示,该脚本部署装置包括:信息接收模块71、参数设置模块72、 数据库脚本创建模块73、数据库脚本校验模块74、预部署模块75、第一标记模块76、第二标记模块77和目标脚本部署模块78。各功能模块详细说明如下:
信息接收模块71,用于接收初始应用环境下的待部署对象和目标应用环境的标识信息;
参数配置模块72,用于根据标识信息获取目标应用环境的配置信息,并使用该配置信息对模拟环境进行配置;
数据库脚本创建模块73,用于针对每个待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本;
数据库脚本校验模块74,用于对数据库脚本进行合法性校验,得到校验结果;
预部署模块75,用于若校验结果为校验通过,则使用数据库脚本在模拟环境中进行预部署,其中,模拟环境的配置信息与目标应用环境的配置信息相同;
第一标记模块76,用于若预部署的部署结果为成功,则将预部署成功的数据库脚本标记为目标脚本;
第二标记模块77,用于若预部署的部署结果为失败,则获取失败信息,按照该失败信息对应的预设修改方式,对预部署失败的数据库脚本的内容进行调整,并将调整后的数据库脚本标记为目标脚本;
目标脚本部署模块78,用于将目标脚本部署到目标应用环境中。
进一步地,数据库脚本创建模块73包括:
对象结构获取单元731,用于获取每个待部署对象的对象结构;
脚本语句生成单元732,用于根据每个对象结构,使用预设的转换脚本生成该对象结构对应的SQL语句;
数据库脚本创建单元733,用于将每个对象结构对应的SQL语句整合成待部署对象对应的数据库脚本。
进一步地,合法性校验包括文件名校验和业务属性校验。
进一步地,当合法性校验为文件名校验时,数据库脚本校验模块74包括:
脚本名称校验单元7411,用于根据预设的命名方式,对数据库脚本的文件名进行校验;
脚本名称修改单元7412,用于若数据库脚本的文件名不符合预设的命名方式的要求,则输出该数据库脚本的文件名和错误信息,以使用户根据错误信息对该文件名进行修改;
脚本名称接收单元7413,用于接收并校验修改后的文件名,若该修改后的文件名符合预设的命名方式的要求,则校验通过。
进一步地,当合法性校验为业务属性校验时,数据库脚本校验模块74包括:
业务属性校验单元7421,用于检测数据库脚本是否符合预设的业务属性;
内容更新单元7422,用于若数据库脚本的内容不符合预设的业务属性,则按照预设的业务属性对数据库脚本的内容进行更新;
更新脚本校验单元7423,用于对更新后的数据库脚本进行校验,若更新后的数据库脚本符合预设的业务属性,则校验通过。
进一步地,预部署模块75包括:
数据库脚本引用单元751,用于将数据库脚本导入模拟环境;
运行测试单元752,用于在模拟环境中对数据库脚本进行运行测试,得到预部署的部署结果。
关于脚本部署装置的具体限定可以参见上文中对于脚本部署方法的限定,在此不再赘述。上述脚本部署装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种脚本部署方法。
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现上述实施例脚本部署方法中的步骤,例如图2所示的步骤S1至步骤S8,或者,处理器执行计算机可读指令时实现上述实施例中脚本部署装置的各模块/单元的功能,例如图7所示模块71至模块78的功能。为避免重复,这里不再赘述。
在一个实施例中,提供了一种非易失性可读存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现上述实施例脚本部署方法中的步骤,例如图2所示的步骤S1至步骤S8,或者,处理器执行计算机可读指令时实现上述实施例中脚本部署装置的各模块/单元的功能,例如图7所示模块71至模块78的功能。为避免重复,这里不再赘 述。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种脚本部署方法,其特征在于,所述脚本部署方法包括:
    接收初始应用环境下的待部署对象和目标应用环境的标识信息;
    根据所述标识信息获取所述目标应用环境的配置信息,并使用该配置信息对模拟环境进行配置;
    针对每个所述待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本;
    对所述数据库脚本进行合法性校验,得到校验结果;
    若所述校验结果为校验通过,则使用所述数据库脚本在所述模拟环境中进行预部署;
    若所述预部署的部署结果为成功,则将预部署成功的数据库脚本标记为目标脚本;
    若所述预部署的部署结果为失败,则获取失败信息,按照该失败信息对应的预设修改方式,对预部署失败的数据库脚本的内容进行调整,并将调整后的数据库脚本标记为所述目标脚本;
    将所述目标脚本部署到所述目标应用环境中。
  2. 如权利要求1所述的脚本部署方法,其特征在于,所述针对每个所述待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本包括:
    获取每个所述待部署对象的对象结构;
    根据每个所述对象结构,使用预设的转换脚本生成该对象结构对应的SQL语句;
    将每个所述对象结构对应的SQL语句整合成所述待部署对象对应的数据库脚本。
  3. 如权利要求1所述的脚本部署方法,其特征在于,所述合法性校验包括文件名校验和业务属性校验。
  4. 如权利要求3所述的脚本部署方法,其特征在于,当所述合法性校验为所述文件名校验时,所述对所述数据库脚本进行合法性校验,得到校验结果包括:
    根据预设的命名方式,对所述数据库脚本的文件名进行校验;
    若所述数据库脚本的文件名不符合所述预设的命名方式的要求,则输出该数据库脚本的文件名和错误信息,以使用户根据所述错误信息对该文件名进行修改;
    接收并校验修改后的文件名,若该修改后的文件名符合所述预设的命名方式的要求,则校验通过。
  5. 如权利要求3所述的脚本部署方法,其特征在于,当所述合法性校验为所述业务属 性校验时,所述对所述数据库脚本进行合法性校验,得到校验结果包括:
    检测所述数据库脚本是否符合预设的业务属性;
    若所述数据库脚本的内容不符合所述预设的业务属性,则按照所述预设的业务属性对所述数据库脚本的内容进行更新;
    对更新后的数据库脚本进行校验,若所述更新后的数据库脚本符合所述预设的业务属性,则校验通过。
  6. 如权利要求1至5任一项所述的脚本部署方法,其特征在于,所述使用所述数据库脚本在模拟环境中进行预部署包括:
    将所述数据库脚本导入模拟环境;
    在所述模拟环境中对所述数据库脚本进行运行测试,得到所述预部署的部署结果。
  7. 一种脚本部署装置,其特征在于,所述脚本部署装置包括:
    信息接收模块,用于接收初始应用环境下的待部署对象和目标应用环境的标识信息;
    参数配置模块,用于根据所述标识信息获取所述目标应用环境的配置信息,并使用该配置信息对模拟环境进行配置;数据库脚本创建模块,用于针对每个所述待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本;
    数据库脚本校验模块,用于对所述数据库脚本进行合法性校验,得到校验结果;
    预部署模块,用于若所述校验结果为校验通过,则使用所述数据库脚本在所述模拟环境中进行预部署;
    第一标记模块,用于若所述预部署的部署结果为成功,则将预部署成功的数据库脚本标记为目标脚本;
    第二标记模块,用于若所述预部署的部署结果为失败,则获取失败信息,按照该失败信息对应的预设修改方式,对预部署失败的数据库脚本的内容进行调整,并将调整后的数据库脚本标记为所述目标脚本;
    目标脚本部署模块,用于将所述目标脚本部署到所述目标应用环境中。
  8. 如权利要求7所述的脚本部署装置,其特征在于,所述数据库脚本创建模块包括:
    对象结构获取单元,用于获取每个所述待部署对象的对象结构;
    脚本语句生成单元,用于根据每个所述对象结构,使用预设的转换脚本生成该对象结构对应的SQL语句;
    数据库脚本创建单元,用于将每个所述对象结构对应的SQL语句整合成所述待部署对象对应的数据库脚本。
  9. 如权利要求7所述的脚本部署装置,其特征在于,所述合法性校验包括文件名校验和业务属性校验。
  10. 如权利要求9所述的脚本部署装置,其特征在于,当所述合法性校验为所述文件名校验时,所述数据库脚本校验模块包括:
    脚本名称校验单元,用于根据预设的命名方式,对所述数据库脚本的文件名进行校验;
    脚本名称修改单元,用于若所述数据库脚本的文件名不符合所述预设的命名方式的要求,则输出该数据库脚本的文件名和错误信息,以使用户根据所述错误信息对该文件名进行修改;
    脚本名称接收单元,用于接收并校验修改后的文件名,若该修改后的文件名符合所述预设的命名方式的要求,则校验通过。
  11. 如权利要求9所述的脚本部署装置,其特征在于,当所述合法性校验为所述业务属性校验时,所述数据库脚本校验模块包括:
    业务属性校验单元,用于检测所述数据库脚本是否符合预设的业务属性;
    内容更新单元,用于若所述数据库脚本的内容不符合所述预设的业务属性,则按照所述预设的业务属性对所述数据库脚本的内容进行更新;
    更新脚本校验单元,用于对更新后的数据库脚本进行校验,若所述更新后的数据库脚本符合所述预设的业务属性,则校验通过。
  12. 如权利要求7至11任一项所述的脚本部署装置,其特征在于,所述预部署模块包括:
    数据库脚本引用单元,用于将所述数据库脚本导入模拟环境;
    运行测试单元,用于在所述模拟环境中对所述数据库脚本进行运行测试,得到所述预部署的部署结果。
  13. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:
    接收初始应用环境下的待部署对象和目标应用环境的标识信息;
    根据所述标识信息获取所述目标应用环境的配置信息,并使用该配置信息对模拟环境进行配置;
    针对每个所述待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本;
    对所述数据库脚本进行合法性校验,得到校验结果;
    若所述校验结果为校验通过,则使用所述数据库脚本在所述模拟环境中进行预部署;
    若所述预部署的部署结果为成功,则将预部署成功的数据库脚本标记为目标脚本;
    若所述预部署的部署结果为失败,则获取失败信息,按照该失败信息对应的预设修改方式,对预部署失败的数据库脚本的内容进行调整,并将调整后的数据库脚本标记为所述目标脚本;
    将所述目标脚本部署到所述目标应用环境中。
  14. 如权利要求13所述的计算机设备,其特征在于,所述针对每个所述待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本包括:
    获取每个所述待部署对象的对象结构;
    根据每个所述对象结构,使用预设的转换脚本生成该对象结构对应的SQL语句;
    将每个所述对象结构对应的SQL语句整合成所述待部署对象对应的数据库脚本。
  15. 如权利要求13所述的计算机设备,其特征在于,所述合法性校验包括文件名校验和业务属性校验。
  16. 如权利要求15所述的计算机设备,其特征在于,当所述合法性校验为所述文件名校验时,所述对所述数据库脚本进行合法性校验,得到校验结果包括:
    根据预设的命名方式,对所述数据库脚本的文件名进行校验;
    若所述数据库脚本的文件名不符合所述预设的命名方式的要求,则输出该数据库脚本的文件名和错误信息,以使用户根据所述错误信息对该文件名进行修改;
    接收并校验修改后的文件名,若该修改后的文件名符合所述预设的命名方式的要求,则校验通过。
  17. 如权利要求15所述的计算机设备,其特征在于,当所述合法性校验为所述业务属性校验时,所述对所述数据库脚本进行合法性校验,得到校验结果包括:
    检测所述数据库脚本是否符合预设的业务属性;
    若所述数据库脚本的内容不符合所述预设的业务属性,则按照所述预设的业务属性对所述数据库脚本的内容进行更新;
    对更新后的数据库脚本进行校验,若所述更新后的数据库脚本符合所述预设的业务属性,则校验通过。
  18. 如权利要求13至17任一项所述的计算机设备,其特征在于,所述使用所述数据库脚本在模拟环境中进行预部署包括:
    将所述数据库脚本导入模拟环境;
    在所述模拟环境中对所述数据库脚本进行运行测试,得到所述预部署的部署结果。
  19. 一个或多个存储有计算机可读指令的非易失性可读存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:
    接收初始应用环境下的待部署对象和目标应用环境的标识信息;
    根据所述标识信息获取所述目标应用环境的配置信息,并使用该配置信息对模拟环境进行配置;
    针对每个所述待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本;
    对所述数据库脚本进行合法性校验,得到校验结果;
    若所述校验结果为校验通过,则使用所述数据库脚本在所述模拟环境中进行预部署;
    若所述预部署的部署结果为成功,则将预部署成功的数据库脚本标记为目标脚本;
    若所述预部署的部署结果为失败,则获取失败信息,按照该失败信息对应的预设修改方式,对预部署失败的数据库脚本的内容进行调整,并将调整后的数据库脚本标记为所述目标脚本;
    将所述目标脚本部署到所述目标应用环境中。
  20. 如权利要求19所述的非易失性可读存储介质,其特征在于,所述针对每个所述待部署对象,使用预设的转换脚本创建与该待部署对象对应的数据库脚本包括:
    获取每个所述待部署对象的对象结构;
    根据每个所述对象结构,使用预设的转换脚本生成该对象结构对应的SQL语句;
    将每个所述对象结构对应的SQL语句整合成所述待部署对象对应的数据库脚本。
PCT/CN2018/092591 2018-06-06 2018-06-25 脚本部署方法、装置、计算机设备及存储介质 WO2019232828A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810573712.0A CN109032611B (zh) 2018-06-06 2018-06-06 脚本部署方法、装置、计算机设备及存储介质
CN201810573712.0 2018-06-06

Publications (1)

Publication Number Publication Date
WO2019232828A1 true WO2019232828A1 (zh) 2019-12-12

Family

ID=64612351

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/092591 WO2019232828A1 (zh) 2018-06-06 2018-06-25 脚本部署方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN109032611B (zh)
WO (1) WO2019232828A1 (zh)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045695A (zh) * 2019-12-15 2020-04-21 北京浪潮数据技术有限公司 WebLogic中间件部署装置、方法及设备和介质
CN111258591A (zh) * 2020-01-14 2020-06-09 广州极晟网络技术有限公司 程序部署任务执行方法、装置、计算机设备和存储介质
CN111309343A (zh) * 2020-02-20 2020-06-19 中国建设银行股份有限公司 一种开发部署方法及装置
CN111352843A (zh) * 2020-02-29 2020-06-30 苏州浪潮智能科技有限公司 一种实现测试脚本验证的方法及系统
CN111459911A (zh) * 2020-03-30 2020-07-28 上海云励科技有限公司 业务数据的处理方法及设备
CN111506657A (zh) * 2020-04-17 2020-08-07 腾讯科技(深圳)有限公司 一种区块链节点设备部署的方法
CN112000349A (zh) * 2020-07-28 2020-11-27 山东浪潮易云在线科技有限公司 一种基于SaaS的数据升级方法、设备及介质
CN112015465A (zh) * 2020-09-03 2020-12-01 中国平安财产保险股份有限公司 项目工程配置发布方法、装置、计算机设备及存储介质
CN112052225A (zh) * 2020-08-27 2020-12-08 中信银行股份有限公司 一种db2数据库静态嵌入式sql绑定优雅部署方法
CN112597131A (zh) * 2020-12-25 2021-04-02 广州趣丸网络科技有限公司 一种分布式脚本控制方法及相关装置
CN112688804A (zh) * 2020-12-18 2021-04-20 中国平安财产保险股份有限公司 业务平台的部署方法、装置、设备及存储介质
CN113204566A (zh) * 2021-06-09 2021-08-03 中国银行股份有限公司 Sql脚本的执行方法及装置
CN113326248A (zh) * 2021-05-17 2021-08-31 上海中通吉网络技术有限公司 数据库快速搭建方法及装置
CN113535568A (zh) * 2021-07-22 2021-10-22 工银科技有限公司 应用部署版本的验证方法、装置、设备和介质
CN113568623A (zh) * 2021-07-23 2021-10-29 上海淇玥信息技术有限公司 一种部署应用的方法、装置和电子设备
CN113934146A (zh) * 2020-06-29 2022-01-14 阿里巴巴集团控股有限公司 对物联网设备进行控制的方法、装置及电子设备
CN114531477A (zh) * 2022-04-22 2022-05-24 深圳丰尚智慧农牧科技有限公司 功能组件的配置方法、装置、计算机设备和存储介质
CN115658978A (zh) * 2022-11-14 2023-01-31 杭州欧若数网科技有限公司 图数据库系统多源数据导入方法和装置
CN116893977A (zh) * 2023-09-08 2023-10-17 中国空气动力研究与发展中心计算空气动力研究所 分布式仿真测试环境自动部署方法、装置、设备及介质
CN117369866A (zh) * 2023-09-22 2024-01-09 中科驭数(北京)科技有限公司 参数校验方法、装置、设备及存储介质
CN112015465B (zh) * 2020-09-03 2024-05-24 中国平安财产保险股份有限公司 项目工程配置发布方法、装置、计算机设备及存储介质

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110047472A (zh) * 2019-03-15 2019-07-23 平安科技(深圳)有限公司 语音信息的批量转换方法、装置、计算机设备及存储介质
CN109977099A (zh) * 2019-03-16 2019-07-05 平安城市建设科技(深圳)有限公司 数据库部署方法、用户设备、存储介质及装置
CN110231935B (zh) * 2019-06-12 2023-06-30 上海达梦数据库有限公司 一种脚本执行和更新的方法、装置、设备和存储介质
CN110673859B (zh) * 2019-08-30 2022-06-17 北京浪潮数据技术有限公司 一种图形数据库部署方法、装置、设备及可读存储介质
CN110750444B (zh) * 2019-09-10 2024-05-10 中国平安财产保险股份有限公司 应用程序移交方法、装置、计算机设备及存储介质
CN110908978B (zh) * 2019-11-06 2022-09-13 中盈优创资讯科技有限公司 数据库数据结构验证方法及装置
CN111722853A (zh) * 2020-06-12 2020-09-29 苏州浪潮智能科技有限公司 一种安装脚本部署的方法和设备
CN112328379A (zh) * 2020-11-05 2021-02-05 浪潮电子信息产业股份有限公司 一种应用迁移方法、装置、设备及介质
CN112163131A (zh) * 2020-11-10 2021-01-01 平安普惠企业管理有限公司 业务数据查询平台的配置方法、装置、计算机设备及介质
CN112416361A (zh) * 2020-12-03 2021-02-26 平安普惠企业管理有限公司 结构化查询语言脚本审查方法及相关设备
CN113190240A (zh) * 2021-05-27 2021-07-30 深圳平安智汇企业信息管理有限公司 基于多环境部署的版本发布方法、装置及计算机设备
CN114371853B (zh) * 2022-01-10 2022-09-20 柏科数据技术(深圳)股份有限公司 一种分布式系统部署方法、装置、终端设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120265726A1 (en) * 2011-04-18 2012-10-18 Infosys Limited Automated data warehouse migration
CN105577475A (zh) * 2015-12-28 2016-05-11 上海瀚之友信息技术服务有限公司 自动化性能测试系统及方法
CN105868204A (zh) * 2015-01-21 2016-08-17 中国移动(深圳)有限公司 一种转换Oracle脚本语言SQL的方法及装置
CN107077361A (zh) * 2014-10-14 2017-08-18 微软技术许可有限责任公司 用于应用部署的配置转换

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117431A (zh) * 2015-08-07 2015-12-02 北京思特奇信息技术股份有限公司 一种动态配置外部导入数据的方法及系统
US9971595B1 (en) * 2016-01-15 2018-05-15 Jpmorgan Chase Bank, N.A. Techniques for automated database deployment
CN107092557A (zh) * 2017-03-24 2017-08-25 广东网金控股股份有限公司 一种数据库架构升级脚本验证方法和装置
CN107203400A (zh) * 2017-06-21 2017-09-26 郑州云海信息技术有限公司 一种远程部署组件的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120265726A1 (en) * 2011-04-18 2012-10-18 Infosys Limited Automated data warehouse migration
CN107077361A (zh) * 2014-10-14 2017-08-18 微软技术许可有限责任公司 用于应用部署的配置转换
CN105868204A (zh) * 2015-01-21 2016-08-17 中国移动(深圳)有限公司 一种转换Oracle脚本语言SQL的方法及装置
CN105577475A (zh) * 2015-12-28 2016-05-11 上海瀚之友信息技术服务有限公司 自动化性能测试系统及方法

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045695A (zh) * 2019-12-15 2020-04-21 北京浪潮数据技术有限公司 WebLogic中间件部署装置、方法及设备和介质
CN111258591A (zh) * 2020-01-14 2020-06-09 广州极晟网络技术有限公司 程序部署任务执行方法、装置、计算机设备和存储介质
CN111258591B (zh) * 2020-01-14 2023-07-25 广州极晟网络技术有限公司 程序部署任务执行方法、装置、计算机设备和存储介质
CN111309343A (zh) * 2020-02-20 2020-06-19 中国建设银行股份有限公司 一种开发部署方法及装置
CN111309343B (zh) * 2020-02-20 2023-02-21 中国建设银行股份有限公司 一种开发部署方法及装置
CN111352843A (zh) * 2020-02-29 2020-06-30 苏州浪潮智能科技有限公司 一种实现测试脚本验证的方法及系统
CN111352843B (zh) * 2020-02-29 2022-11-25 苏州浪潮智能科技有限公司 一种实现测试脚本验证的方法及系统
CN111459911A (zh) * 2020-03-30 2020-07-28 上海云励科技有限公司 业务数据的处理方法及设备
CN111459911B (zh) * 2020-03-30 2022-12-13 上海云砺信息科技有限公司 业务数据的处理方法及设备
CN111506657A (zh) * 2020-04-17 2020-08-07 腾讯科技(深圳)有限公司 一种区块链节点设备部署的方法
CN111506657B (zh) * 2020-04-17 2024-04-26 腾讯科技(深圳)有限公司 一种区块链节点设备部署的方法
CN113934146A (zh) * 2020-06-29 2022-01-14 阿里巴巴集团控股有限公司 对物联网设备进行控制的方法、装置及电子设备
CN112000349A (zh) * 2020-07-28 2020-11-27 山东浪潮易云在线科技有限公司 一种基于SaaS的数据升级方法、设备及介质
CN112000349B (zh) * 2020-07-28 2024-02-09 山东浪潮易云在线科技有限公司 一种基于SaaS的数据升级方法、设备及介质
CN112052225B (zh) * 2020-08-27 2024-05-17 中信银行股份有限公司 一种db2数据库静态嵌入式sql绑定优雅部署方法
CN112052225A (zh) * 2020-08-27 2020-12-08 中信银行股份有限公司 一种db2数据库静态嵌入式sql绑定优雅部署方法
CN112015465B (zh) * 2020-09-03 2024-05-24 中国平安财产保险股份有限公司 项目工程配置发布方法、装置、计算机设备及存储介质
CN112015465A (zh) * 2020-09-03 2020-12-01 中国平安财产保险股份有限公司 项目工程配置发布方法、装置、计算机设备及存储介质
CN112688804A (zh) * 2020-12-18 2021-04-20 中国平安财产保险股份有限公司 业务平台的部署方法、装置、设备及存储介质
CN112688804B (zh) * 2020-12-18 2023-09-19 中国平安财产保险股份有限公司 业务平台的部署方法、装置、设备及存储介质
CN112597131A (zh) * 2020-12-25 2021-04-02 广州趣丸网络科技有限公司 一种分布式脚本控制方法及相关装置
CN113326248A (zh) * 2021-05-17 2021-08-31 上海中通吉网络技术有限公司 数据库快速搭建方法及装置
CN113204566A (zh) * 2021-06-09 2021-08-03 中国银行股份有限公司 Sql脚本的执行方法及装置
CN113204566B (zh) * 2021-06-09 2024-01-26 中国银行股份有限公司 Sql脚本的执行方法及装置
CN113535568B (zh) * 2021-07-22 2023-09-05 工银科技有限公司 应用部署版本的验证方法、装置、设备和介质
CN113535568A (zh) * 2021-07-22 2021-10-22 工银科技有限公司 应用部署版本的验证方法、装置、设备和介质
CN113568623A (zh) * 2021-07-23 2021-10-29 上海淇玥信息技术有限公司 一种部署应用的方法、装置和电子设备
CN114531477B (zh) * 2022-04-22 2022-08-30 深圳丰尚智慧农牧科技有限公司 功能组件的配置方法、装置、计算机设备和存储介质
CN114531477A (zh) * 2022-04-22 2022-05-24 深圳丰尚智慧农牧科技有限公司 功能组件的配置方法、装置、计算机设备和存储介质
CN115658978B (zh) * 2022-11-14 2023-04-07 杭州欧若数网科技有限公司 图数据库系统多源数据导入方法和装置
CN115658978A (zh) * 2022-11-14 2023-01-31 杭州欧若数网科技有限公司 图数据库系统多源数据导入方法和装置
CN116893977A (zh) * 2023-09-08 2023-10-17 中国空气动力研究与发展中心计算空气动力研究所 分布式仿真测试环境自动部署方法、装置、设备及介质
CN116893977B (zh) * 2023-09-08 2024-01-16 中国空气动力研究与发展中心计算空气动力研究所 分布式仿真测试环境自动部署方法、装置、设备及介质
CN117369866A (zh) * 2023-09-22 2024-01-09 中科驭数(北京)科技有限公司 参数校验方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN109032611A (zh) 2018-12-18
CN109032611B (zh) 2022-01-28

Similar Documents

Publication Publication Date Title
WO2019232828A1 (zh) 脚本部署方法、装置、计算机设备及存储介质
WO2019232832A1 (zh) 数据监控方法、装置、计算机设备及存储介质
US11640352B2 (en) Testing software and/or computing hardware design through test fragmentation into one or more discrete computing environments
CN112256558B (zh) 一种测试用例的生成方法、装置、计算机设备及存储介质
CN110941546A (zh) Web页面用例的自动化测试方法、装置、设备及存储介质
CN106095501B (zh) 一种应用部署方法及装置
US9047260B2 (en) Model-based testing of a graphical user interface
WO2018176812A1 (zh) 静态资源发布方法及装置
WO2020186808A1 (zh) 页面权限测试方法、装置、计算机设备及存储介质
US20200371902A1 (en) Systems and methods for software regression detection
CN110674118A (zh) 数据库管理方法、装置、服务器及计算机可读存储介质
US20190073292A1 (en) State machine software tester
CN112579461A (zh) 断言处理方法、系统和存储介质
US10102107B2 (en) Source code migration tool
WO2020211233A1 (zh) 批量数据编辑方法、装置、计算机设备及存储介质
CN110727575A (zh) 一种信息处理方法、系统、装置、以及存储介质
CN111914537A (zh) 一种数据校验方法、装置、设备及可读存储介质
CN112286786A (zh) 数据库的测试方法、装置和服务器
US11716319B2 (en) Software deployment certification
CN115964721A (zh) 一种程序验证方法及电子设备
US11443047B2 (en) Systems and methods for use in validating artifacts for deployment
WO2023045054A1 (zh) 结构化查询语句的生成方法、装置和计算机设备
US20190138427A1 (en) Pre-Deployment Validation System Using Intelligent Databases
CN112699023B (zh) 项目接口测试方法、装置、计算机设备及存储介质
CN111124429A (zh) 持续交付方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18922069

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.03.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18922069

Country of ref document: EP

Kind code of ref document: A1