Skip to content

Commit 0f491a1

Browse files
committed
Update instructions
1 parent 9709bf7 commit 0f491a1

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

mongo-2-oracle/src/orclMongoMigration.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
# SOFTWARE.
5454

5555
# Global variables
56-
ORACLE_USER="matt"
57-
ORACLE_PASS="matt"
58-
ORACLE_SYS_PASS="Oradoc_db1"
59-
ORACLE_CONTAINER="MoMoMatt"
56+
ORACLE_USER="<--->"
57+
ORACLE_PASS="<--->"
58+
ORACLE_SYS_PASS="<--->"
59+
ORACLE_CONTAINER="<--->"
6060
ORACLE_PDB="FREEPDB1"
6161
NETWORK_NAME="demonet" #set network
6262
CONTAINER_PORT_MAP="-p 1521:1521 -p 3000:3000 -p 5902:5902 -p 5500:5500 -p 8000:8000 -p 8080:8080 -p 8443:8443 -p 27017:27017 -p 23456:23456"

mongo-2-oracle/step-by-step-guide.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,30 @@ Before you begin, ensure your system meets these requirements:
2626
```bash
2727
chmod +x orclMongoMigration.sh
2828
```
29-
### Step 2: Understanding the Script’s Interface
29+
### Step 2: Understanding the Script’s Interface and global variables
3030
There are two ways to interact with the script:
3131
1. **Interactive Menu**: Run the script without arguments
3232
2. **Command Line Arguments**: Run specific commands directly
3333

34-
For this runbook, we’ll primarily use the interactive menu for clarity, with command examples where helpful.
34+
>NOTE: For this runbook, we’ll primarily use the interactive menu for clarity, with command examples where helpful.
35+
36+
3. Before running the script, it is important to update the global variables to match your environment. Edit the following items:
37+
38+
```bash
39+
# Global variables
40+
ORACLE_USER="<your user in quotes>"
41+
ORACLE_PASS="<your password in quotes>"
42+
ORACLE_SYS_PASS="<oracle SYS password in quotes>"
43+
ORACLE_CONTAINER="<name for your container in quotes>"
44+
ORACLE_PDB="FREEPDB1"
45+
NETWORK_NAME="demonet" #set network
46+
// Do not change the settings below this line
47+
CONTAINER_PORT_MAP="-p 1521:1521 -p 3000:3000 -p 5902:5902 -p 5500:5500 -p 8000:8000 -p 8080:8080 -p 8443:8443 -p 27017:27017 -p 23456:23456"
48+
MAX_INVALID=3
49+
INVALID_COUNT=0
50+
```
51+
52+
4. Save the script and mvoe to the next step.
3553

3654
## Container Management
3755

0 commit comments

Comments
 (0)