Skip to content

Commit 58200e7

Browse files
committed
Updates to Oracle Quickstart article for dbca GitHub Issues
1 parent d7352c0 commit 58200e7

File tree

1 file changed

+43
-8
lines changed

1 file changed

+43
-8
lines changed

articles/virtual-machines/workloads/oracle/oracle-database-quick-create.md

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ tags: azure-resource-manager
1111
ms.assetid:
1212
ms.service: virtual-machines-linux
1313

14-
ms.topic: article
14+
ms.topic: quickstart
1515
ms.tgt_pltfrm: vm-linux
1616
ms.workload: infrastructure
17-
ms.date: 08/02/2018
17+
ms.date: 08/28/2020
1818
ms.author: rogardle
1919
---
2020

@@ -79,7 +79,7 @@ ssh azureuser@<publicIpAddress>
7979

8080
The Oracle software is already installed on the Marketplace image. Create a sample database as follows.
8181

82-
1. Switch to the *oracle* superuser, then initialize the listener for logging:
82+
1. Switch to the *oracle* user, then start the Oracle listener:
8383

8484
```bash
8585
$ sudo -su oracle
@@ -113,8 +113,13 @@ The Oracle software is already installed on the Marketplace image. Create a samp
113113
The listener supports no services
114114
The command completed successfully
115115
```
116+
2. Create a data directory for the Oracle data files
116117

117-
2. Create the database:
118+
```bash
119+
mkdir /u01/app/oracle/oradata
120+
```
121+
122+
3. Create the database:
118123

119124
```bash
120125
dbca -silent \
@@ -133,25 +138,55 @@ The Oracle software is already installed on the Marketplace image. Create a samp
133138
-databaseType MULTIPURPOSE \
134139
-automaticMemoryManagement false \
135140
-storageType FS \
141+
-datafileDestination "/u01/app/oracle/oradata/"
136142
-ignorePreReqs
137143
```
138144

139145
It takes a few minutes to create the database.
140146

141-
3. Set Oracle variables
147+
You will see output that looks similar to the following:
148+
149+
```output
150+
Copying database files
151+
1% complete
152+
2% complete
153+
8% complete
154+
13% complete
155+
19% complete
156+
27% complete
157+
Creating and starting Oracle instance
158+
29% complete
159+
32% complete
160+
33% complete
161+
34% complete
162+
38% complete
163+
42% complete
164+
43% complete
165+
45% complete
166+
Completing Database Creation
167+
48% complete
168+
51% complete
169+
53% complete
170+
62% complete
171+
70% complete
172+
72% complete
173+
Creating Pluggable Databases
174+
78% complete
175+
100% complete
176+
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/cdb1/cdb1.log" for further details.
177+
```
178+
179+
4. Set Oracle variables
142180

143181
Before you connect, you need to set two environment variables: *ORACLE_HOME* and *ORACLE_SID*.
144182

145183
```bash
146-
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1; export ORACLE_HOME
147184
ORACLE_SID=cdb1; export ORACLE_SID
148185
```
149186

150187
You also can add ORACLE_HOME and ORACLE_SID variables to the .bashrc file. This would save the environment variables for future sign-ins. Confirm the following statements have been added to the `~/.bashrc` file using editor of your choice.
151188

152189
```bash
153-
# Add ORACLE_HOME.
154-
export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
155190
# Add ORACLE_SID.
156191
export ORACLE_SID=cdb1
157192
```

0 commit comments

Comments
 (0)