Skip to content

Commit 1ce4971

Browse files
authored
Merge pull request #127810 from DavidCBerry13/dcb_oracle_quickstart
Fixes to Oracle QuickStart article for dbca command
2 parents 51e6e63 + 56bc90e commit 1ce4971

File tree

1 file changed

+52
-17
lines changed

1 file changed

+52
-17
lines changed

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

Lines changed: 52 additions & 17 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,28 +138,58 @@ 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:
142148

143-
Before you connect, you need to set two environment variables: *ORACLE_HOME* and *ORACLE_SID*.
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+
```
144178

145-
```bash
146-
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1; export ORACLE_HOME
147-
ORACLE_SID=cdb1; export ORACLE_SID
148-
```
179+
4. Set Oracle variables
149180

150-
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.
181+
Before you connect, you need to set two environment variables: *ORACLE_HOME* and *ORACLE_SID*.
151182

152-
```bash
153-
# Add ORACLE_HOME.
154-
export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
155-
# Add ORACLE_SID.
156-
export ORACLE_SID=cdb1
157-
```
183+
```bash
184+
ORACLE_SID=cdb1; export ORACLE_SID
185+
```
186+
187+
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.
188+
189+
```bash
190+
# Add ORACLE_SID.
191+
export ORACLE_SID=cdb1
192+
```
158193

159194
## Oracle EM Express connectivity
160195

0 commit comments

Comments
 (0)