[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108763419A - A kind of method, apparatus and computer storage media of migration process - Google Patents

A kind of method, apparatus and computer storage media of migration process Download PDF

Info

Publication number
CN108763419A
CN108763419A CN201810505922.6A CN201810505922A CN108763419A CN 108763419 A CN108763419 A CN 108763419A CN 201810505922 A CN201810505922 A CN 201810505922A CN 108763419 A CN108763419 A CN 108763419A
Authority
CN
China
Prior art keywords
information
application
environment
migration
database
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201810505922.6A
Other languages
Chinese (zh)
Inventor
阮航
李勋堂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810505922.6A priority Critical patent/CN108763419A/en
Publication of CN108763419A publication Critical patent/CN108763419A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

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

Abstract

A kind of method, apparatus and computer storage media of migration process, including:Obtain the second application environment information of current the first application environment information and move target ground of application to be migrated;The the first application environment information and the second application environment information obtained is compared, one or one or more environmental difference information are obtained;According to pre-stored adjustment reference information and the environmental difference information of acquisition, the reference information carried out using migration is obtained;Wherein, the first application environment information includes:Using the first parameter information of the first running environment information and the first database for being set to the first operating system of the first operating system before migration;The second application environment information includes:Using the second parameter information of the second database in the second operating system of the second running environment information and setting for the second operating system for needing to move to.The embodiment of the present invention realizes the environmental information analysis using migration, reduces the complexity using migration.

Description

Migration processing method and device and computer storage medium
Technical Field
This document relates to, but is not limited to, application processing technologies, and more particularly, to a method, apparatus, and computer storage medium for migration processing.
Background
At present, business systems in many industries need to adjust Information Technology (IT) architecture due to application and business, including adjusting the original business system; when the database designed to the service system is adjusted, if the same type of database is adopted before and after adjustment, the database migration work is less in the adjustment process; however, if different types of databases are used before and after adjustment, more database migration work is performed during adjustment. Due to the different types and operating systems of databases, the migration process of databases becomes increasingly complex and cumbersome.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
Embodiments of the present invention provide a migration processing method and apparatus, and a computer storage medium, which can reduce complexity of application migration.
The embodiment of the invention provides a migration processing method, which comprises the following steps:
acquiring current first application environment information of an application to be migrated and second application environment information of a migration destination;
comparing the obtained first application environment information with the second application environment information to obtain one or more pieces of environment difference information;
acquiring reference information for application migration according to prestored adjustment reference information and acquired environment difference information;
wherein the first application environment information includes: the method comprises the steps that first running environment information of a first operating system before application migration and first parameter information of a first database arranged in the first operating system are set; the second application environment information includes: and the application needs to migrate to the second running environment information of the second operating system and set second parameter information of a second database on the second operating system.
Optionally, the acquiring the first application environment information related to the application migration includes:
establishing communication connection with the first operating system and the first database in a preset mode;
and acquiring the first operating environment information and the first parameter information through the established communication connection.
Optionally, the establishing, in a preset manner, a communication connection with the first operating system and the first database includes:
establishing communication connection with the first operating system through a remote terminal protocol Telnet and/or a secure shell protocol SSH;
and establishing communication connection with the first database by connecting JDBC through the Java database and/or connecting ODBC through the open database.
Optionally, the obtaining of the second application environment information related to the application migration includes:
and receiving the second operating environment information and the second parameter information through a preset interactive interface.
Optionally, the first operating environment information includes part or all of the following information: version information of the first operating system, library information of an editing language used by a database, and version information of a shell script;
the first parameter information includes part or all of the following information: initialization information and operation parameter information of the first database;
the second operating environment information includes part or all of the following information: version information of the second operating system, library information of an editing language used by a database, and version information of a shell script;
the second parameter information includes part or all of the following information: initialization information and operating parameter information of the second database.
Optionally, the adjusting the reference information includes: processing information corresponding to one or more pieces of environment difference information; the obtaining of the reference information for application migration includes:
processing information corresponding to each piece of the obtained environment difference information is respectively determined from the adjustment reference information;
and taking all the determined processing information as the reference information for carrying out application migration.
Optionally, the method further includes:
for one or more pieces of acquired environment difference information, feeding back migration analysis information when corresponding processing information is not determined from the adjustment reference information;
the migration analysis information includes: in the obtained environment difference information, environment difference information corresponding to the processing information is not determined from the adjustment reference information; and/or a prompt message that application migration cannot be performed.
Optionally, the method is implemented based on browser/server (B/S) architecture, and JAVA (JAVA) editing.
On the other hand, an embodiment of the present invention further provides a migration processing apparatus, including: the device comprises an acquisition unit, a comparison unit and a reference unit; wherein,
the acquisition unit is used for: acquiring current first application environment information of an application to be migrated and second application environment information of a migration destination;
the comparison unit is used for: comparing the obtained first application environment information with the second application environment information to obtain one or more pieces of environment difference information;
the reference unit is used for: acquiring reference information for application migration according to prestored adjustment reference information and acquired environment difference information;
wherein the first application environment information includes: the method comprises the steps that first running environment information of a first operating system before application migration and first parameter information of a first database arranged in the first operating system are set; the second application environment information includes: and the application needs to migrate to the second running environment information of the second operating system and set second parameter information of a second database on the second operating system.
Optionally, the obtaining unit includes a first obtaining module and a second obtaining module; wherein,
the first obtaining module is configured to: establishing communication connection with the first operating system and the first database in a preset mode; acquiring the first operating environment information and the first parameter information through the established communication connection;
the second obtaining module is configured to: and receiving the second operating environment information and the second parameter information through a preset interactive interface.
Optionally, the first obtaining module is specifically configured to:
establishing communication connection with the first operating system through a remote terminal protocol Telnet and/or a secure shell protocol SSH; establishing communication connection with the first database by connecting a Java database with JDBC and/or connecting an open database with ODBC;
and acquiring the first operating environment information and the first parameter information through the established communication connection.
Optionally, the first operating environment information includes part or all of the following information: version information of the first operating system, library information of an editing language used by a database, and version information of a shell script;
the first parameter information includes part or all of the following information: initialization information and operation parameter information of the first database;
the second operating environment information includes part or all of the following information: version information of the second operating system, library information of an editing language used by a database, and version information of a shell script;
the second parameter information includes part or all of the following information: initialization information and operating parameter information of the second database.
Optionally, the reference unit is specifically configured to:
processing information corresponding to each piece of the obtained environment difference information is respectively determined from the adjustment reference information;
taking all the determined processing information as the reference information for carrying out application migration;
wherein the adjusting reference information includes: processing information corresponding to one or more pieces of environment difference information.
Optionally, the apparatus further includes a feedback unit, configured to:
for one or more pieces of acquired environment difference information, feeding back migration analysis information when corresponding processing information is not determined from the adjustment reference information;
the migration analysis information includes: in the obtained environment difference information, environment difference information corresponding to the processing information is not determined from the adjustment reference information; and/or a prompt message that application migration cannot be performed.
In still another aspect, an embodiment of the present invention further provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are used to execute the method for migration processing described above.
Compared with the related art, the technical scheme of the application comprises the following steps: acquiring current first application environment information of an application to be migrated and second application environment information of a migration destination; comparing the obtained first application environment information with the second application environment information to obtain one or more pieces of environment difference information; acquiring reference information for application migration according to prestored adjustment reference information and acquired environment difference information; wherein the first application environment information includes: the method comprises the steps that first running environment information of a first operating system before application migration and first parameter information of a first database arranged in the first operating system are set; the second application environment information includes: and the application needs to migrate to the second running environment information of the second operating system and set second parameter information of a second database on the second operating system. The embodiment of the invention realizes the analysis of the environmental information of the application migration and reduces the complexity of the application migration.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flow chart of a method of migration processing according to an embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus for migration processing according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the software architecture of an apparatus for applying an exemplary migration process in accordance with the present invention;
FIG. 4 is a diagram illustrating an exemplary database migration in accordance with the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
For the sake of clarity and completeness of the embodiments of the present invention, the following description relates to the related art:
java DataBase Connectivity (JDBC), a Java Application Programming Interface (API) for executing Structured Query Language (SQL) statements, provides uniform access to multiple relational databases, and consists of a set of classes and interfaces written in Java language. JDBC provides a benchmark by which more advanced tools and interfaces can be built to enable database developers to write database applications.
Open Database Connectivity (ODBC) is generated to solve data sharing between heterogeneous databases, and has become a main part of The Windows Open System Architecture (WOSA) and a Database access interface standard based on The Windows environment; ODBC provides a uniform interface for accessing heterogeneous databases, and allows an application program to access data managed by different database management systems (DBMS) by taking SQL as a data access standard; an application is enabled to directly manipulate data in a Database (DB), exempting from changes that follow the change of the DB. ODBC may be used to access DB files on a variety of computers, and even non-database objects such as Excel tables and American Standard Code for Information Interchange (ASCII) data files.
Browser/server (B/S) architecture, a network architecture model after the world wide WEB (WEB) is emerging, and WEB browsers are the most important application software of clients. The mode unifies the client, centralizes the core part of the system function realization to the server, and simplifies the development, maintenance and use of the system. The client only needs to install a browser (Browse), such as a Netscape Navigator (Netscape Navigator) or an Internet browser (Internet Explorer), and the Server installs databases such as SQL Server (Server), Oracle (a relational database management system of Oracle corporation), MYSQL (relational database management system developed by MYSQL AB in sweden), and the like. And the browser performs data interaction with the database through the Web Server.
The remote terminal protocol (Telnet) is a member of the transmission control protocol/Internet protocol (TCP/IP) suite of protocols, and is the standard protocol and primary means of Internet Telnet services. It provides the user with the ability to do remote host work on the local computer. The telnet program is used on the end user's computer and is used to connect to the server. The end user can enter commands in the telnet program that will run on the server as if entered directly on the server's console. The server can be controlled locally. To start a telnet session, a username and password must be entered to log in to the server. Telnet is a commonly used method of remotely controlling a Web server.
The Secure Shell protocol (SSH) is a security protocol built on an application layer basis. SSH is a protocol specific to providing security for telnet sessions and other web services. Information leakage in the remote management process can be effectively prevented by utilizing the SSH protocol. The SSH client is suitable for various platforms, and the SSH can make up for vulnerabilities in the network when being used correctly.
Fig. 1 is a flowchart of a migration processing method according to an embodiment of the present invention, as shown in fig. 1, including:
step 101, acquiring current first application environment information of an application to be migrated and second application environment information of a migration destination;
wherein the first application environment information includes: the method comprises the steps that first running environment information of a first operating system before application migration and first parameter information of a first database arranged in the first operating system are set; the second application environment information includes: and the application needs to migrate to the second running environment information of the second operating system and set second parameter information of a second database on the second operating system.
Optionally, the acquiring the first application environment information related to the application migration according to the embodiment of the present invention includes:
establishing communication connection with the first operating system and the first database in a preset mode;
and acquiring the first operating environment information and the first parameter information through the established communication connection.
Optionally, the establishing, in an embodiment of the present invention, a communication connection with the first operating system and the first database in a preset manner includes:
establishing a communication connection with the first operating system through a remote terminal protocol (Telnet) and/or a secure Shell protocol (SSH);
establishing a communication connection with the first database via a Java database connection (JDBC) and/or an open database connection (ODBC).
Optionally, the acquiring of the second application environment information related to the application migration in the embodiment of the present invention includes:
and receiving the second operating environment information and the second parameter information through a preset interactive interface.
Optionally, the first operating environment information includes part or all of the following information: version information of the first operating system, library information of an editing language used by a database, and version information of a shell (shell) script;
the first parameter information includes part or all of the following information: initialization information and operation parameter information of the first database; the initialization information may include: page size, library name, index space size, data page size, data list, database table structure and other information; the operation parameter information can comprise information such as database account information passwords, user authority and the like;
the second operating environment information includes part or all of the following information: version information of the second operating system, library information of an editing language used by a database, and version information of a shell script;
the second parameter information includes part or all of the following information: initialization information and operation parameter information of the second database; here, the second parameter information may be determined after analysis adjustment is performed based on the first parameter information.
102, comparing the acquired first application environment information with the acquired second application environment information to acquire one or more pieces of environment difference information;
the environment difference information refers to that after the first application environment information and the second application environment information are compared through the same attribute information, if the first application environment information and the second application environment information are different, the set of different attribute information is used as one piece of environment difference information; for example, if the version information of the first operating system and the version information of the second operating system are different, the information including the version information of the first operating system and the version information of the second operating system may be used as one piece of environment difference information, and similarly, library information of an editing language used by the database, version information of a shell (shell) script, and the like may be compared respectively to determine the environment difference information.
103, acquiring reference information for application migration according to prestored adjustment reference information and acquired environment difference information;
optionally, the adjusting the reference information in the embodiment of the present invention includes: processing information corresponding to one or more pieces of environment difference information; the obtaining of the reference information for application migration includes:
processing information corresponding to each piece of the obtained environment difference information is respectively determined from the adjustment reference information;
and taking all the determined processing information as the reference information for carrying out application migration.
It should be noted that, in the embodiment of the present invention, adjusting the reference information is processing information that is analyzed and sorted by a person skilled in the art in combination with a previous processing procedure of application migration and is used for sorting different environment difference information respectively. The adjustment reference information may be added, deleted, modified, and the like according to the processing procedure of the application migration.
Optionally, the method in the embodiment of the present invention further includes:
for one or more pieces of acquired environment difference information, feeding back migration analysis information when corresponding processing information is not determined from the adjustment reference information;
the migration analysis information includes: in the obtained environment difference information, environment difference information corresponding to the processing information is not determined from the adjustment reference information; and/or a prompt message that application migration cannot be performed.
The following exemplifies the adjustment reference information, the reference information, and the migration analysis information; assume that adjusting the reference information includes: environment difference information 1 and process information 1 corresponding to the environment difference information 1, environment difference information 2 and process information 2 corresponding to the environment difference information 2, environment difference information, 3 and process information 3 corresponding to the environment difference information 3, environment difference information 4 and process information 4 corresponding to the environment difference information 4, and environment difference information 5 and process information 5 corresponding to the environment difference information 5; if the first application environment information and the second application environment information are compared to obtain the environment difference information 1, the environment difference information 2, and the environment difference information 5, the reference information for performing application migration may be obtained by adjusting the reference information, and the reference information includes: process information 1, process information 2, and process information 5; if the first application environment information is compared with the second application environment information to obtain the environment difference information 1, the environment difference information 2 and the environment difference information 6, the environment difference information 6 cannot obtain corresponding processing information from the adjustment reference information, the fed back migration analysis information may include the environment difference information 6, and the user may determine the corresponding processing information after analyzing the environment difference information 6; based on this, the embodiment of the present invention may update and adjust the reference information according to the processing information determined in the later stage, and further obtain the corresponding reference information.
Optionally, the method according to the embodiment of the present invention is implemented based on a browser/server (B/S) framework and JAVA (JAVA) editing.
Compared with the related art, the technical scheme of the application comprises the following steps: acquiring current first application environment information of an application to be migrated and second application environment information of a migration destination; comparing the obtained first application environment information with the second application environment information to obtain one or more pieces of environment difference information; acquiring reference information for application migration according to prestored adjustment reference information and acquired environment difference information; wherein the first application environment information includes: the method comprises the steps that first running environment information of a first operating system before application migration and first parameter information of a first database arranged in the first operating system are set; the second application environment information includes: and the application needs to migrate to the second running environment information of the second operating system and set second parameter information of a second database on the second operating system. The embodiment of the invention realizes the analysis of the environmental information of the application migration and reduces the complexity of the application migration; specifically, the embodiment of the invention reduces the complexity of database migration by analyzing the environmental parameters including the database, thereby simplifying the difficulty of application migration.
Fig. 2 is a block diagram of a migration processing apparatus according to an embodiment of the present invention, and as shown in fig. 2, the migration processing apparatus includes: the device comprises an acquisition unit, a comparison unit and a reference unit; wherein,
the acquisition unit is used for: acquiring current first application environment information of an application to be migrated and second application environment information of a migration destination;
wherein the first application environment information includes: the method comprises the steps that first running environment information of a first operating system before application migration and first parameter information of a first database arranged in the first operating system are set; the second application environment information includes: and the application needs to migrate to the second running environment information of the second operating system and set second parameter information of a second database on the second operating system.
Optionally, the obtaining unit in the embodiment of the present invention includes a first obtaining module and a second obtaining module; wherein,
the first obtaining module is configured to: establishing communication connection with the first operating system and the first database in a preset mode; acquiring the first operating environment information and the first parameter information through the established communication connection;
the second obtaining module is configured to: and receiving the second operating environment information and the second parameter information through a preset interactive interface.
Optionally, the first obtaining module in the embodiment of the present invention is specifically configured to:
establishing a communication connection with the first operating system through a remote terminal protocol (Telnet) and/or a secure Shell protocol (SSH); establishing a communication connection with the first database via a java database connection (JDBC) and/or an open database connection (ODBC);
and acquiring the first operating environment information and the first parameter information through the established communication connection.
Optionally, the first operating environment information in the embodiment of the present invention includes part or all of the following information: version information of the first operating system, library information of an editing language used by a database, and version information of a shell script;
the first parameter information includes part or all of the following information: initialization information and operation parameter information of the first database;
the second operating environment information includes part or all of the following information: version information of the second operating system, library information of an editing language used by a database, and version information of a shell script;
the second parameter information includes part or all of the following information: initialization information and operating parameter information of the second database.
The comparison unit is used for: comparing the obtained first application environment information with the second application environment information to obtain one or more pieces of environment difference information;
the reference unit is used for: acquiring reference information for application migration according to prestored adjustment reference information and acquired environment difference information;
optionally, the reference unit in the embodiment of the present invention is specifically configured to:
processing information corresponding to each piece of the obtained environment difference information is respectively determined from the adjustment reference information;
taking all the determined processing information as the reference information for carrying out application migration;
wherein the adjusting reference information includes: processing information corresponding to one or more pieces of environment difference information.
Optionally, the apparatus further includes a feedback unit, configured to:
for one or more pieces of acquired environment difference information, feeding back migration analysis information when corresponding processing information is not determined from the adjustment reference information;
the migration analysis information includes: in the obtained environment difference information, environment difference information corresponding to the processing information is not determined from the adjustment reference information; and/or a prompt message that application migration cannot be performed.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used for executing the migration processing method.
The method of the embodiment of the present invention is described in detail below by using application examples, which are only used for illustrating the present invention and are not used for limiting the protection scope of the present invention.
Application example
The application example of the invention provides a tool for application migration, and a JAVA development tool is adopted to realize database connection in various application environments in combination with database connection tools JDBC and ODBC; basic information (including operating systems, hardware information and the like) of a target application environment can be collected through bottom layer connection commands of different operating systems by using connection modes including but not limited to Telnet and SSH, and difference comparison before and after application migration is generated by using prestored comparison information (which can be adjustment reference information) of a migration system, so that migration analysis of the application is realized, and resource investment and cost of application migration are reduced; migration analysis is performed before application migration, so that a basis for what migration tool is used for migration is provided for a user executing application migration, and the efficiency of application migration is improved.
The application example of the invention can be realized based on the B/S architecture, the application software developed based on the B/S structure, the client does not need to install the application software, and the maintainability is strong. According to the application example of the invention, JAVA is used as a development tool, a system interface is combined with JAVA technology and technology of a fifth version (Html5) of an application hypertext markup language, a user can access locally through a browser, the tool can also be placed on a server to access through remote calling, and very convenient application experience can be brought from the application perspective through browser access.
The application tool is developed by using JAVA, and the tool can run on a plurality of platforms by using the cross-platform property of JAVA, so that the tool can be smoothly run particularly on the application migration of a cross-operating system. The JDBC and ODBC database connection interface can be adapted to most common databases, the Telnet and SSH can be used for connecting most operating systems, and specific connection modes can be specifically selected according to specific operating systems.
Fig. 3 is a schematic diagram of a software topology of an apparatus to which an exemplary migration process is applied, as shown in fig. 3, including:
user interface layer: the user interface layer supports a browser mode, and all operations of data migration can be completed through the browser;
interface presentation and control layer: the unified management and the interactive processing, the data verification, the page flow control, the data filtering, the authority control and the like of the user terminal are in butt joint with the service logic layer and the application layer for packaging, so that the reusability of the service logic is improved
The business logic layer is mainly used for carrying out logic analysis on the relation structures of various data and formulating the optimal migration strategy;
the basic service layer encapsulates the data object and provides basic method call for business logic;
the middleware server adopts a lightweight web embedded server, consumes less resources and can run locally;
the file access interface is mainly used for report generation, and reports such as Excel and the like can be generated according to client customization;
JDBC is used as data access drive and is directly connected with the database;
the processing of the above application examples of the present invention supports remote deployment as well as local deployment.
It should be noted that fig. 3 also includes other component structures of the migration processing, which is a component that can be analyzed and determined by a person skilled in the art according to the migration processing process, and details are not described here.
FIG. 4 is a schematic diagram of database migration according to an exemplary application of the present invention, as shown in FIG. 4, wherein Oracle and the like shown in FIG. 4 are only exemplary applications of the present invention, and the exemplary application of the present invention can be applied to migration processing of other kinds of databases;
the device for migration processing of the application example of the present invention can be applied to the case that a source operating system (which may be the first operating system) can provide shutdown migration, and the migration is based on platform level migration, and the database table object of the related application is based on isomorphic migration, that is, the database table structure is not changed, and the change made by application migration is based on the change caused by the difference between the operating system and the database software. Connecting a source system based on a tool development software interface, collecting target system number operating systems and data information to realize the purpose, evaluating whether the existing migration tool supports the requirement of meeting the migration work, and evaluating whether a conversion function is realized if the existing migration tool has special requirements.
The implementation of the application example of the invention is embodied in that tools are independent on a source operating system and a target operating system, remote connection operation is supported, and a user can be connected through tools like a notebook computer and the like. The actual tool is capable of cross-gateway connection under the permission of multi-network card network connection because the actual tool is independent of the source operating system and the target operating system.
The application example of the invention adopts JAVA development to ensure cross-platform use, evaluates the collected information to assist the migration process, can effectively shorten the migration implementation period, has good applicability and can ensure that the information of the source operating system is collected and analyzed under most conditions.
In summary, the application example of the present invention provides a migration processing tool, which is developed based on JAVA, connects a target system database using JDBC and ODBC, connects a target operating system using Telnet and SS, and collects related software and hardware information and database information of the target system to form an evaluation report of migration processing. Therefore, tools can be operated in a cross-platform mode, and meanwhile, advanced information analysis can be performed on a complex target system environment, so that target system investigation and migration analysis in the early stage of migration are assisted; specifically, the method comprises the following steps:
the JAVA development can be used for cross-platform operation, so that the application program can operate under different environments conveniently;
secondly, the JDBC and the ODBC are used for connecting the databases, database connection is carried out under a standard interface, and the connection can be successful as long as the target database meets the standard;
third, use Telnet and SS and connect the goal operating system, it is the way of the standard connection operating system of the industry, support the operating system order of the remote operation goal environment, facilitate the operation of carrying out the collected information;
collecting relevant software and hardware information and database information of a target operating system to form a migration evaluation report, which mainly comprises the following steps:
collecting related software and hardware information and database information of a target operating system, and performing appointed collection on the software and hardware information and the database information of the target operating system through a background prefabricated operating command or program;
secondly, forming a migration evaluation report: through feedback made by a background in advance aiming at the relevant fixed options of the information of the operating system and the database, if the information can not be compared, the information in the target system is displayed to be incapable of being analyzed in the tool for migration processing of the application example of the invention.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by a program instructing associated hardware (e.g., a processor) to perform the steps, and the program may be stored in a computer readable storage medium, such as a read only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in hardware, for example, by an integrated circuit to implement its corresponding function, or in software, for example, by a processor executing a program/instruction stored in a memory to implement its corresponding function. The present invention is not limited to any specific form of combination of hardware and software.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (15)

1. A method of migration processing, comprising:
acquiring current first application environment information of an application to be migrated and second application environment information of a migration destination;
comparing the obtained first application environment information with the second application environment information to obtain one or more pieces of environment difference information;
acquiring reference information for application migration according to prestored adjustment reference information and acquired environment difference information;
wherein the first application environment information includes: the method comprises the steps that first running environment information of a first operating system before application migration and first parameter information of a first database arranged in the first operating system are set; the second application environment information includes: and the application needs to migrate to the second running environment information of the second operating system and set second parameter information of a second database on the second operating system.
2. The method of claim 1, wherein obtaining first application environment information related to application migration comprises:
establishing communication connection with the first operating system and the first database in a preset mode;
and acquiring the first operating environment information and the first parameter information through the established communication connection.
3. The method of claim 2, wherein the establishing a communication connection with the first operating system and the first database in a predetermined manner comprises:
establishing communication connection with the first operating system through a remote terminal protocol Telnet and/or a secure shell protocol SSH;
and establishing communication connection with the first database by connecting JDBC through the Java database and/or connecting ODBC through the open database.
4. The method of claim 1, wherein obtaining second application environment information related to application migration comprises:
and receiving the second operating environment information and the second parameter information through a preset interactive interface.
5. The method according to any one of claims 1 to 4,
the first operating environment information includes part or all of the following information: version information of the first operating system, library information of an editing language used by a database, and version information of a shell script;
the first parameter information includes part or all of the following information: initialization information and operation parameter information of the first database;
the second operating environment information includes part or all of the following information: version information of the second operating system, library information of an editing language used by a database, and version information of a shell script;
the second parameter information includes part or all of the following information: initialization information and operating parameter information of the second database.
6. The method of claim 5, wherein the adjusting the reference information comprises: processing information corresponding to one or more pieces of environment difference information; the obtaining of the reference information for application migration includes:
processing information corresponding to each piece of the obtained environment difference information is respectively determined from the adjustment reference information;
and taking all the determined processing information as the reference information for carrying out application migration.
7. The method of claim 6, further comprising:
for one or more pieces of acquired environment difference information, feeding back migration analysis information when corresponding processing information is not determined from the adjustment reference information;
the migration analysis information includes: in the obtained environment difference information, environment difference information corresponding to the processing information is not determined from the adjustment reference information; and/or a prompt message that application migration cannot be performed.
8. The migration method according to any one of claims 1 to 4, wherein the method is implemented based on browser/server B/S architecture and Java JAVA editing.
9. An apparatus for migration processing, comprising: the device comprises an acquisition unit, a comparison unit and a reference unit; wherein,
the acquisition unit is used for: acquiring current first application environment information of an application to be migrated and second application environment information of a migration destination;
the comparison unit is used for: comparing the obtained first application environment information with the second application environment information to obtain one or more pieces of environment difference information;
the reference unit is used for: acquiring reference information for application migration according to prestored adjustment reference information and acquired environment difference information;
wherein the first application environment information includes: the method comprises the steps that first running environment information of a first operating system before application migration and first parameter information of a first database arranged in the first operating system are set; the second application environment information includes: and the application needs to migrate to the second running environment information of the second operating system and set second parameter information of a second database on the second operating system.
10. The apparatus of claim 9, wherein the obtaining unit comprises a first obtaining module and a second obtaining module; wherein,
the first obtaining module is configured to: establishing communication connection with the first operating system and the first database in a preset mode; acquiring the first operating environment information and the first parameter information through the established communication connection;
the second obtaining module is configured to: and receiving the second operating environment information and the second parameter information through a preset interactive interface.
11. The apparatus of claim 10, wherein the first obtaining module is specifically configured to:
establishing communication connection with the first operating system through a remote terminal protocol Telnet and/or a secure shell protocol SSH; establishing communication connection with the first database by connecting a Java database with JDBC and/or connecting an open database with ODBC;
and acquiring the first operating environment information and the first parameter information through the established communication connection.
12. The apparatus according to any one of claims 9 to 11,
the first operating environment information includes part or all of the following information: version information of the first operating system, library information of an editing language used by a database, and version information of a shell script;
the first parameter information includes part or all of the following information: initialization information and operation parameter information of the first database;
the second operating environment information includes part or all of the following information: version information of the second operating system, library information of an editing language used by a database, and version information of a shell script;
the second parameter information includes part or all of the following information: initialization information and operating parameter information of the second database.
13. The apparatus according to claim 12, wherein the reference unit is specifically configured to:
processing information corresponding to each piece of the obtained environment difference information is respectively determined from the adjustment reference information;
taking all the determined processing information as the reference information for carrying out application migration;
wherein the adjusting reference information includes: processing information corresponding to one or more pieces of environment difference information.
14. The apparatus of claim 13, further comprising a feedback unit configured to:
for one or more pieces of acquired environment difference information, feeding back migration analysis information when corresponding processing information is not determined from the adjustment reference information;
the migration analysis information includes: in the obtained environment difference information, environment difference information corresponding to the processing information is not determined from the adjustment reference information; and/or a prompt message that application migration cannot be performed.
15. A computer storage medium having stored therein computer-executable instructions for performing the method of migration processing of any of claims 1-8.
CN201810505922.6A 2018-05-24 2018-05-24 A kind of method, apparatus and computer storage media of migration process Pending CN108763419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810505922.6A CN108763419A (en) 2018-05-24 2018-05-24 A kind of method, apparatus and computer storage media of migration process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810505922.6A CN108763419A (en) 2018-05-24 2018-05-24 A kind of method, apparatus and computer storage media of migration process

Publications (1)

Publication Number Publication Date
CN108763419A true CN108763419A (en) 2018-11-06

Family

ID=64005172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810505922.6A Pending CN108763419A (en) 2018-05-24 2018-05-24 A kind of method, apparatus and computer storage media of migration process

Country Status (1)

Country Link
CN (1) CN108763419A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502303A (en) * 2019-08-20 2019-11-26 银康(中山)科技有限公司 Method, apparatus, electronic device and storage medium for evaluating ability of elderly person
CN111435919A (en) * 2019-01-15 2020-07-21 菜鸟智能物流控股有限公司 Method, device and system for managing configuration parameters
CN112463417A (en) * 2020-12-17 2021-03-09 中通服建设有限公司 Migration adaptation method, device and equipment based on domestic trusted software and hardware platform
CN112463344B (en) * 2020-12-17 2023-12-08 中国农业银行股份有限公司 Data analysis method and device
CN118170431A (en) * 2024-05-13 2024-06-11 中移(苏州)软件技术有限公司 Cross-operating system service migration method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7246111B1 (en) * 2000-06-30 2007-07-17 Ncr Corporation Capturing database system information
CN103729169A (en) * 2012-10-10 2014-04-16 国际商业机器公司 Method and device for determining scope of file to be migrated
CN104573122A (en) * 2015-02-09 2015-04-29 浪潮电子信息产业股份有限公司 Oracle database migration tool for migrating from AIX platform to K-UX platform
US9069607B1 (en) * 2012-01-31 2015-06-30 Vmware, Inc. Selective migration of virtualized applications and configuration settings thereof
CN104899333A (en) * 2015-06-24 2015-09-09 浪潮(北京)电子信息产业有限公司 Cross-platform migrating method and system for Oracle database
CN106325951A (en) * 2016-08-30 2017-01-11 广西电网有限责任公司 Automatic deployment method for application system supporting multiple databases and multiple middleware types

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7246111B1 (en) * 2000-06-30 2007-07-17 Ncr Corporation Capturing database system information
US9069607B1 (en) * 2012-01-31 2015-06-30 Vmware, Inc. Selective migration of virtualized applications and configuration settings thereof
CN103729169A (en) * 2012-10-10 2014-04-16 国际商业机器公司 Method and device for determining scope of file to be migrated
CN104573122A (en) * 2015-02-09 2015-04-29 浪潮电子信息产业股份有限公司 Oracle database migration tool for migrating from AIX platform to K-UX platform
CN104899333A (en) * 2015-06-24 2015-09-09 浪潮(北京)电子信息产业有限公司 Cross-platform migrating method and system for Oracle database
CN106325951A (en) * 2016-08-30 2017-01-11 广西电网有限责任公司 Automatic deployment method for application system supporting multiple databases and multiple middleware types

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111435919A (en) * 2019-01-15 2020-07-21 菜鸟智能物流控股有限公司 Method, device and system for managing configuration parameters
CN110502303A (en) * 2019-08-20 2019-11-26 银康(中山)科技有限公司 Method, apparatus, electronic device and storage medium for evaluating ability of elderly person
CN110502303B (en) * 2019-08-20 2023-07-11 银康(中山)科技有限公司 Method, device, electronic equipment and storage medium for evaluating ability of old people
CN112463417A (en) * 2020-12-17 2021-03-09 中通服建设有限公司 Migration adaptation method, device and equipment based on domestic trusted software and hardware platform
CN112463344B (en) * 2020-12-17 2023-12-08 中国农业银行股份有限公司 Data analysis method and device
CN118170431A (en) * 2024-05-13 2024-06-11 中移(苏州)软件技术有限公司 Cross-operating system service migration method and device and electronic equipment
CN118170431B (en) * 2024-05-13 2024-09-13 中移(苏州)软件技术有限公司 Cross-operating system service migration method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN108763419A (en) A kind of method, apparatus and computer storage media of migration process
US20220253298A1 (en) Systems and methods for transformation of reporting schema
US10324690B2 (en) Automated enterprise software development
US9841752B2 (en) Apparatus and method for web-based tool management
US7617459B2 (en) Apparatus, system, and method for automatically generating a web interface for an MFS-based IMS application
US8510720B2 (en) System landscape trace
US7665064B2 (en) Systems and methods for web service function, definition, implementation, and/or execution
US8028049B1 (en) Apparatus and method for web-based tool management
US20070168971A1 (en) Multi-tiered model-based application testing
CN104639653A (en) Self-adaptive method and system based on cloud architecture
CN104219080B (en) A kind of website faulty page log recording method
CN108418704A (en) A kind of network element device method of network entry based on automation template configuration
CN105808701B (en) Realize the method and system communicated between list automatic Verification and multisystem
US11461288B2 (en) Systems and methods for database management system (DBMS) discovery
US7131080B2 (en) Simulation management system
CN112416805A (en) Test management cloud platform and method
JP2002073585A (en) Debugging support device, debugging support method, and recording medium
US11888937B2 (en) Domain specific provider contracts for core data services
US20220329490A1 (en) Managing configurations of mobile devices across mobility configuration environments
Mukti et al. Implementation of Website-Based Network Administration Automation within the Ministry of Social Affairs
Stehling Pro ASP. NET for SQL Server: High Performance Data Access for Web Developers
CN118714053A (en) Spacer layer equipment information interaction test system and method based on optional configuration strategy
CN116644132A (en) Cross-platform data synchronization method, system and equipment based on browser data acquisition technology
CN117742867A (en) Method for managing independent controllable research and development basic platform based on multi-cloud resources
CN117667886A (en) One-key database opening method, device, equipment and medium of cloud platform database

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106