Application source code scanning for database migration
AssigneeOracle International Corporation
InventorBarry McGillin
Life of this patent
Estimating the term…
Abstract
Systems, methods, and other embodiments associated with application source code scanning for database migration are described. In one embodiment, a method includes identifying a subset of application source code files that are likely to require modification to access a destination database. The subset of application source code files is scanned for artifact expressions that access a source database and should be changed to access the destination database.
Claims26
A non-transitory computer-readable medium storing computer-executable instructions that when executed by a computer cause the computer to perform a method, the method comprising:
- identifying a set of source code files for applications that access data in a first database, where the first database has been migrated to a second database;
- selecting a migration rule, where a migration rule includes a recognizer criterion and a replacement rule;
- applying the recognizer criteria in the selected migration rule to the set of source code files to identify a subset of source code files that meet the recognizer criterion;
- and
- applying the replacement rule in the selected migration rule to the subset of source code files.
A computing system, comprising:
- memory media configured to store a set of migration rules for revising a set of first applications that access data in a first database to a second set of applications that access a second database, where the first database has been migrated to the second database;
- and
- an application migration tool configured to:
- select a migration rule;
- input a set of source code files associated with the set of first applications;
- select a subset of the source code files that are likely to require modification to access the second database;
- and
- apply one or more replacement rules to the subset of source code files to produce the set of second applications.
A non-transitory computer-readable medium storing computer-executable instructions that when executed by a computer cause the computer to perform a method, the method comprising:
- providing an interface for receiving one or more recognizer criteria for identifying source code files for a set of first applications that access data in a first database that are likely to require modification to access a second database;
- associating the recognizer criteria with one or more replacement rules that map replacement expressions to artifact expressions in source code files, where replacing corresponding artifact expressions with corresponding replacement expressions revises the source code file to produce a set of second applications that access the second database;
- and
- storing the one or more recognizer criteria and replacement rules for future processing.
A computer-implemented method comprising:
- identifying a set of source code files for applications that access data in a first database, where the first database has been migrated to a second database;
- selecting a migration rule, where a migration rule includes a recognizer criterion and a replacement rule;
- with a processor, applying the recognizer criteria in the selected migration rule to the set of source code files to identify a subset of source code files that meet the recognizer criterion;
- and
- applying the replacement rule in the selected migration rule to the subset of source code files.
Dependencies are inferred from the claim text.