# US 2021/0173621 A1 · Inferring intra package and module dependencies

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0173621 A1
- Document ID: US20210173621A1
- Status: Published application
- Kind: A1
- Application number: 16/703,499
- Filed: 2019-12-04
- Published: 2021-06-10
- Earliest claimed: 2019-12-04
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Pit Fender; Benjamin Schlegel; Matthias Brantner; Harshad Kasture; Hassan Chafi
- Web page: https://patentgrep.com/patent/US20210173621A1

## CPC

- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 16/25: Integrating or interfacing systems involving database management systems
- G06F 8/433: {Dependency analysis; Data or control flow analysis}
- G06F 16/21: Design, administration or maintenance of databases
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Herein are machine learning (ML) feature processing and analytic techniques to detect anomalies in parse trees of logic statements, database queries, logic scripts, compilation units of general-purpose programing language, extensible markup language (XML), JAVASCRIPT object notation (JSON), and document object models (DOM). In an embodiment, a computer identifies an operational trace that contains multiple parse trees. Values of explicit features are generated from a single respective parse tree of the multiple parse trees of the operational trace. Values of implicit features are generated from more than one respective parse tree of the multiple parse trees of the operational trace. The explicit and implicit features are stored into a same feature vector. With the feature vector as input, an ML model detects whether or not the operational trace is anomalous, based on the explicit features of each parse tree of the operational trace and the implicit features of multiple parse trees of the operational trace.

## Claims

### Claim 1

A method comprising:
invoking, in each guest module of one or more guest modules that are defined in one or more guest programing languages that are implemented in a database management system (DBMS), logic to obtain metadata that describes a plurality of dependencies of the guest module;
generating a report of dependencies that is based on the metadata that describes the plurality of dependencies;
identifying, based on the report of dependencies, a subset of the plurality of dependencies that a particular guest module of the one or more guest modules depends on.

### Claim 2 (depends on 1)

The method of claim 1 wherein the report of dependencies comprises, for each dependency of the plurality of dependencies, at least one selected from the group consisting of:
a release date of the dependency,
a name of at least one database schema in which the dependency is defined,
an integrity value,
a universal resource identifier (URI) that identifies an implementation of the dependency, and
a timestamp of when the implementation of the dependency was incorporated into the DBMS.

### Claim 3 (depends on 1)

The method of claim 1 wherein said report of dependencies comprises, for each dependency of the plurality of dependencies, a flag that indicates whether the dependency is for testing or for development tooling.

### Claim 4 (depends on 1)

The method of claim 1 wherein said generating the report of dependencies or said identifying the subset of the plurality of dependencies that the particular guest module depends on comprises using a database view that is based on the metadata that describes the plurality of dependencies.

### Claim 5 (depends on 1)

The method of claim 1 wherein said obtain the metadata that describes the plurality of dependencies comprises at least one selected from the group consisting of:
a) extracting, from the one or more guest modules, JAVASCRIPT object notation (JSON),
b) converting JSON or XML data into tabular data,
c) invoking a table function that aggregates JSON or XML data from separate documents,
d) invoking a table function that aggregates metadata from the one or more guest modules,
e) invoking the one or more guest programing languages, and
f) invoking an introspection function in each of the one or more guest modules.

### Claim 6 (depends on 1)

The method of claim 1 wherein said obtain the metadata that describes the plurality of dependencies comprises invoking a database call specification for each of the one or more guest modules.

### Claim 7 (depends on 1)

The method of claim 1 wherein
said extracting, from the one or more guest modules, the metadata that describes the plurality of dependencies comprises extracting, from each of the one or more guest modules, a nested data structure.

### Claim at position 8

8-10. (canceled)

### Claim 11

One or more non-transitory computer-readable media storing instructions that, when executed by one or more processors, cause:
invoking, in each guest module of one or more guest modules that are defined in one or more guest programing languages that are implemented in a database management system (DBMS), logic to obtain metadata that describes a plurality of dependencies of the guest module;
generating a report of dependencies that is based on the metadata that describes the plurality of dependencies;
identifying, based on the report of dependencies, a subset of the plurality of dependencies that a particular guest module of the one or more guest modules depends on.

### Claim 12 (depends on 11)

The one or more non-transitory computer-readable media of claim 11 wherein the report of dependencies comprises, for each dependency of the plurality of dependencies, at least one selected from the group consisting of:
a release date of the dependency,
a name of at least one database schema in which the dependency is defined,
an integrity value,
a universal resource identifier (URI) that identifies an implementation of the dependency, and
a timestamp of when the implementation of the dependency was incorporated into the DBMS.

### Claim 13 (depends on 11)

The one or more non-transitory computer-readable media of claim 11 wherein said report of dependencies comprises, for each dependency of the plurality of dependencies, a flag that indicates whether the dependency is for testing or for development tooling.

### Claim 14 (depends on 11)

The one or more non-transitory computer-readable media of claim 11 wherein said generating the report of dependencies or said identifying the subset of the plurality of dependencies that the particular guest module depends on comprises using a database view that is based on the metadata that describes the plurality of dependencies.

### Claim 15 (depends on 11)

The one or more non-transitory computer-readable media of claim 11 wherein said obtain the metadata that describes the plurality of dependencies comprises at least one selected from the group consisting of:
a) extracting, from the one or more guest modules, JAVASCRIPT object notation (JSON),
b) converting JSON or XML, data into tabular data,
c) invoking a table function that aggregates JSON or XML data from separate documents,
d) invoking a table function that aggregates metadata from the one or more guest modules,
e) invoking the one or more guest programing languages, and
f) invoking an introspection function in each of the one or more guest modules.

### Claim 16 (depends on 11)

The one or more non-transitory computer-readable media of claim 11 wherein
said obtain the metadata that describes the plurality of dependencies comprises invoking a database call specification for each of the one or more guest modules.

### Claim 17 (depends on 11)

The one or more non-transitory computer-readable media of claim 11 wherein
said extracting, from the one or more guest modules, the metadata that describes the plurality of dependencies comprises extracting, from each of the one or more guest modules, a nested data structure.

### Claim at position 16

18-20. (canceled)
