You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data-platform/autonomous-database/autonomous-json/MongoDBReplay/README.md
+45-44Lines changed: 45 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,53 +42,53 @@ See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/
42
42
43
43
- The following configuration file $MR_CONFIG_DIR/MDBExtractConfig.json needs to be existing with the following parameters
44
44
45
-
OUTPUT_DIR : optional; points to directory where output files will be created;
46
-
if this parameter is not set, then MDBExtractor will print out results into standard output
45
+
-OUTPUT_DIR : optional; points to directory where output files will be created;
46
+
if this parameter is not set, then MDBExtractor will print out results into standard output
47
47
48
-
INPUT_FILE : optional; points to an input log file generated by a MongoDB Instance with profiling enabled
49
-
if this parameter is not set, then MDBExtractor will read data from standard input
48
+
-INPUT_FILE : optional; points to an input log file generated by a MongoDB Instance with profiling enabled
49
+
if this parameter is not set, then MDBExtractor will read data from standard input
50
50
51
-
INPUT_FILE_FORMAT : optional; provides information about from which file the data will be read. It accepts two values
51
+
-INPUT_FILE_FORMAT : optional; provides information about from which file the data will be read. It accepts two values
52
52
MONGO_LOG : in that case Extractor will be reading data from traditional Mongod log file. Profiling needs to be set to (0,-1)
53
53
MONGO_PROFILE : in that case Extractor will be reading data from dump of db.system.profile collection. Profiling needs to be set to (2)
54
54
55
-
INPUT_CONNECT_STRING : optional; if set then it points to a MongoDB instance, from which input data will be read directly. Profiling needs to be set to (2). When this parameter is set, then INPUT_FILE and INPUT_FILE_FORMAT cannot be set.
55
+
-INPUT_CONNECT_STRING : optional; if set then it points to a MongoDB instance, from which input data will be read directly. Profiling needs to be set to (2). When this parameter is set, then INPUT_FILE and INPUT_FILE_FORMAT cannot be set.
56
56
57
-
COMMANDS_LOGGING : optional; default value "true", if set to "true" then every command found by the extractor will be
58
-
additional logged with console.log(...). Useful, when output will be processed by mongosh tool, which
59
-
has limited capabilities related to error reporting. When set to "false" only commands will be reported.
57
+
-COMMANDS_LOGGING : optional; default value "true", if set to "true" then every command found by the extractor will be
58
+
additional logged with console.log(...). Useful, when output will be processed by mongosh tool, which
59
+
has limited capabilities related to error reporting. When set to "false" only commands will be reported.
60
60
61
-
INCLUDE_COMMANDS : optional; JSON array allowing for providing list of commands, which will be extracted;
62
-
all commands not listed here will not be printed out into output; this parameter CANNOT be used
63
-
simultanously with EXCLUDE_COMMANDS
61
+
-INCLUDE_COMMANDS : optional; JSON array allowing for providing list of commands, which will be extracted;
62
+
all commands not listed here will not be printed out into output; this parameter CANNOT be used
63
+
simultanously with EXCLUDE_COMMANDS
64
64
65
-
EXCLUDE_COMMANDS : optional; JSON array allowing for providing list of commands, which will be ignored during extraction process;
66
-
all commands listed here will not be printed out into output; this parameter CANNOT be used
67
-
simultanously with INCLUDE_COMMANDS
65
+
-EXCLUDE_COMMANDS : optional; JSON array allowing for providing list of commands, which will be ignored during extraction process;
66
+
all commands listed here will not be printed out into output; this parameter CANNOT be used
67
+
simultanously with INCLUDE_COMMANDS
68
68
if none of above parameters is set, then all commands will be traced
69
69
70
-
INCLUDE_DATABASES : optional; JSON array allowing for providing list of databases, which will be traced.
71
-
all databases not listed here will not be traced.
72
-
This parameter cannot be used simultaneously with EXCLUDE_DATABASES
70
+
-INCLUDE_DATABASES : optional; JSON array allowing for providing list of databases, which will be traced.
71
+
all databases not listed here will not be traced.
72
+
This parameter cannot be used simultaneously with EXCLUDE_DATABASES
73
73
74
-
EXCLUDE_DATABASES : optional; JSON array allowing for providing list of databases, which will not be traced.
75
-
all databases not listed here will be traced.
76
-
This parameter cannot be used simultaneously with INCLUDE_DATABASES
74
+
-EXCLUDE_DATABASES : optional; JSON array allowing for providing list of databases, which will not be traced.
75
+
all databases not listed here will be traced.
76
+
This parameter cannot be used simultaneously with INCLUDE_DATABASES
77
77
if none of above parameters is set, then all databases will be traced
78
78
79
-
EXECUTION_PLAN_TRACING : if set to a non-zero value, then output will contain explain() commands instead of runCommand;
80
-
useful, when there is need to check/compare execution plans between a source and a target system
79
+
-EXECUTION_PLAN_TRACING : if set to a non-zero value, then output will contain explain() commands instead of runCommand;
80
+
useful, when there is need to check/compare execution plans between a source and a target system
81
81
82
-
OUTPUT_MODE : can be set to JSON, which result in that the output data will be formated into sequence of JSON documents
83
-
or to SCRIPT, wich will result in that the output data will be formated into NodeJS script, which can be
84
-
consumed by mongosh
85
-
LOG_FILE : name of log file used by the tool; optional; if not set then all diangostic messages will be redirected to
86
-
standard diagnostic output
82
+
-OUTPUT_MODE : can be set to JSON, which result in that the output data will be formated into sequence of JSON documents
83
+
or to SCRIPT, wich will result in that the output data will be formated into NodeJS script, which can be
84
+
consumed by mongosh
85
+
-LOG_FILE : name of log file used by the tool; optional; if not set then all diangostic messages will be redirected to
86
+
standard diagnostic output
87
87
88
-
LOG_LEVEL : optional; can be set to 0,1 or 2. Default value : 0
89
-
0 means that only summary of initialization and processing will be logged
90
-
1 means that additionally to summaries also errors will be logged
91
-
2 means that additionally to summaries and errors all commands will be logged
88
+
-LOG_LEVEL : optional; can be set to 0,1 or 2. Default value : 0
89
+
0 means that only summary of initialization and processing will be logged
90
+
1 means that additionally to summaries also errors will be logged
91
+
2 means that additionally to summaries and errors all commands will be logged
92
92
93
93
Configuration File example:
94
94
```
@@ -115,19 +115,20 @@ See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/
115
115
116
116
### MDBApplier
117
117
requirements
118
-
- target MongoDB instance up and running
118
+
- target Oracle Database (19c or later) with [Oracle API for MongoDB](https://docs.oracle.com/en/database/oracle/mongodb-api/mgapi/overview-oracle-database-api-mongodb.html#GUID-1CF44843-6294-45F0-8065-B9E8034D6CB1) enabled
119
+
- subset of the data representing all collections which will be traced
119
120
- the following configuration file $MR_CONFIG_DIR/MDBApplierConfig.json needs to be existing with the following parameters
120
-
INPUT_FILE : optional; points to an input log file generated by MDBExtractor
121
-
if this parameter is not set, then MDBApplier will read data from standard input
122
-
DB_NAME : optional; allows for providing target database name
123
-
CONNECT_STRING : mandatoryl; connect string to a target MongoDB or Oracle API for MongoDB instance
124
-
LOG_FILE : name of log file used by the tool; optional; if not set then all diangostic messages will be redirected to
125
-
standard diagnostic output
126
-
127
-
LOG_LEVEL : optional; can be set to 0,1 or 2. Default value : 0
128
-
0 means that only summary of initialization and processing will be logged
129
-
1 means that additionally to summaries also errors will be logged
130
-
2 means that additionally to summaries and errors all commands will be logged
121
+
- INPUT_FILE : optional; points to an input log file generated by MDBExtractor
122
+
if this parameter is not set, then MDBApplier will read data from standard input
123
+
- DB_NAME : optional; allows for providing target database name
124
+
- CONNECT_STRING : mandatoryl; connect string to a target MongoDB or Oracle API for MongoDB instance
125
+
- LOG_FILE : name of log file used by the tool; optional; if not set then all diangostic messages will be redirected to
126
+
standard diagnostic output
127
+
128
+
- LOG_LEVEL : optional; can be set to 0,1 or 2. Default value : 0
129
+
0 means that only summary of initialization and processing will be logged
130
+
1 means that additionally to summaries also errors will be logged
131
+
2 means that additionally to summaries and errors all commands will be logged
0 commit comments