@@ -11,10 +11,10 @@ tags: azure-resource-manager
11
11
ms.assetid :
12
12
ms.service : virtual-machines-linux
13
13
14
- ms.topic : article
14
+ ms.topic : quickstart
15
15
ms.tgt_pltfrm : vm-linux
16
16
ms.workload : infrastructure
17
- ms.date : 08/02/2018
17
+ ms.date : 08/28/2020
18
18
ms.author : rogardle
19
19
---
20
20
@@ -79,7 +79,7 @@ ssh azureuser@<publicIpAddress>
79
79
80
80
The Oracle software is already installed on the Marketplace image. Create a sample database as follows.
81
81
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 :
83
83
84
84
``` bash
85
85
$ sudo -su oracle
@@ -113,8 +113,13 @@ The Oracle software is already installed on the Marketplace image. Create a samp
113
113
The listener supports no services
114
114
The command completed successfully
115
115
` ` `
116
+ 2. Create a data directory for the Oracle data files
116
117
117
- 2. Create the database:
118
+ ` ` ` bash
119
+ mkdir /u01/app/oracle/oradata
120
+ ` ` `
121
+
122
+ 3. Create the database:
118
123
119
124
` ` ` bash
120
125
dbca -silent \
@@ -133,25 +138,55 @@ The Oracle software is already installed on the Marketplace image. Create a samp
133
138
-databaseType MULTIPURPOSE \
134
139
-automaticMemoryManagement false \
135
140
-storageType FS \
141
+ -datafileDestination " /u01/app/oracle/oradata/"
136
142
-ignorePreReqs
137
143
` ` `
138
144
139
145
It takes a few minutes to create the database.
140
146
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
142
180
143
181
Before you connect, you need to set two environment variables: * ORACLE_HOME* and * ORACLE_SID* .
144
182
145
183
` ` ` bash
146
- ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1; export ORACLE_HOME
147
184
ORACLE_SID=cdb1; export ORACLE_SID
148
185
` ` `
149
186
150
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.
151
188
152
189
` ` ` bash
153
- # Add ORACLE_HOME.
154
- export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
155
190
# Add ORACLE_SID.
156
191
export ORACLE_SID=cdb1
157
192
` ` `
0 commit comments