내맘대로긍정이 알려주는
Oracle 23ai 신기능
무료 세미나 발표자료
OS 환경 : Oracle Linux 8.4 (64bit)
DB 환경 : Oracle Database 23.3.0.23.09 Free(23c)
방법 : Oracle 23ai Free non-container 설치 테스트
기본적으로 Oracle 21c부터는 non-container 사용이 불가능함
무조건 container database를 사용해야함
11g 이전에 raw device를 사용했고 11g에서 지원을 중단한다고 했지만 우회해서 raw device 구성이 가능했었음
이 사례처럼 23c에서도 혹시나 non-container로 설치가 가능할까 싶어서 확인해봄
1. dbca gui
2. dbca silent
3. 수동 설치
1. dbca gui
container db 체크 해제가 불가능함
2. dbca silent
dbca rsp 파일 작성
요약
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$ cat dbca.rsp
gdbName=FREE
sid=FREE
databaseConfigType=SI
policyManaged=false
managementPolicy=AUTOMATIC
createServerPool=false
createAsContainerDatabase=false
templateName=/opt/oracle/product/23c/dbhomeFree/assistants/dbca/templates/FREE_Database.dbc
sysPassword=Welcome1
systemPassword=Welcome1
dvConfiguration=false
olsConfiguration=false
datafileJarLocation={ORACLE_HOME}/assistants/dbca/templates/
datafileDestination=/app/oracle/oradata/{DB_UNIQUE_NAME}/
recoveryAreaSize=54525952BYTES
dbOptions=OMS:true,ORACLE_TEXT:true,CWMLITE:true,SAMPLE_SCHEMA:false,JSERVER:true,SPATIAL:true,IMEDIA:false,DV:true
nationalCharacterSet=AL16UTF16
registerWithDirService=false
skipListenerRegistration=true
variables=ORACLE_BASE_HOME=/opt/oracle/product/23c/dbhomeFree,DB_UNIQUE_NAME=FREE,ORACLE_BASE=/opt/oracle,PDB_NAME=,DB_NAME=FREE,ORACLE_HOME=/opt/oracle/product/23c/dbhomeFree,SID=FREE
initParams=undo_tablespace=UNDOTBS1,enable_pluggable_database=false,sga_target=1536MB,db_block_size=8192BYTES,nls_language=AMERICAN,dispatchers=(PROTOCOL=TCP) (SERVICE=FREEXDB),diagnostic_dest={ORACLE_BASE},control_files=("/app/oracle/oradata/{DB_UNIQUE_NAME}/control01.ctl", "/app/oracle/oradata/{DB_UNIQUE_NAME}/control02.ctl"),remote_login_passwordfile=EXCLUSIVE,processes=320,pga_aggregate_target=512MB,nls_territory=AMERICA,local_listener=LISTENER_FREE,open_cursors=300,compatible=23.0.0,db_name=FREE
enableArchive=false
useOMF=false
memoryPercentage=0
databaseType=MULTIPURPOSE
automaticMemoryManagement=false
totalMemory=0
|
전체
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
|
$ cat dbca.rsp
##############################################################################
## ##
## DBCA response file ##
## ------------------ ##
## Copyright(c) Oracle Corporation 1998,2023. All rights reserved. ##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## can help to populate the variables with the appropriate ##
## values. ##
## ##
## IMPORTANT NOTE: This file contains plain text passwords and ##
## should be secured to have read permission only by oracle user ##
## or db administrator who owns this installation. ##
##############################################################################
#-------------------------------------------------------------------------------
# Do not change the following system generated value.
#-------------------------------------------------------------------------------
responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v23.0.0
#-----------------------------------------------------------------------------
# Name : gdbName
# Datatype : String
# Description : Global database name of the database
# Valid values : . - when database domain isn't NULL
# - when database domain is NULL
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
gdbName=FREE
#-----------------------------------------------------------------------------
# Name : sid
# Datatype : String
# Description : System identifier (SID) of the database
# Valid values : Check Oracle12c Administrator's Guide
# Default value : specified in GDBNAME
# Mandatory : No
#-----------------------------------------------------------------------------
sid=FREE
#-----------------------------------------------------------------------------
# Name : databaseConfigType
# Datatype : String
# Description : database conf type as Single Instance, Real Application Cluster, Real Application Cluster One Nodes database or Standard Edition High Availability
# Valid values : SI\RAC\RACONENODE\SEHA
# Default value : SI
# Mandatory : No
#-----------------------------------------------------------------------------
databaseConfigType=SI
#-----------------------------------------------------------------------------
# Name : RACOneNodeServiceName
# Datatype : String
# Description : Service is required by application to connect to RAC One
# Node Database
# Valid values : Service Name
# Default value : None
# Mandatory : No [required in case DATABASECONFTYPE is set to RACONENODE ]
#-----------------------------------------------------------------------------
RACOneNodeServiceName=
#-----------------------------------------------------------------------------
# Name : sehaServiceName
# Datatype : String
# Description : Service is required by application to connect to SEHA Database
# Valid values : SEHA Service Name
# Default value : None
# Mandatory : No [required in case DATABASECONFTYPE is set to SEHA ]
#-----------------------------------------------------------------------------
sehaServiceName=
#-----------------------------------------------------------------------------
# Name : policyManaged
# Datatype : Boolean
# Description : Set to true if Database is policy managed and
# set to false if Database is admin managed
# Valid values : TRUE\FALSE
# Default value : FALSE
# Mandatory : No
#-----------------------------------------------------------------------------
policyManaged=false
#-----------------------------------------------------------------------------
# Name : managementPolicy
# Datatype : String
# Description : Set to AUTOMATIC or RANK based on management policy.
# Valid values : AUTOMATIC\RANK
# Default value : AUTOMATIC
# Mandatory : No
#-----------------------------------------------------------------------------
managementPolicy=AUTOMATIC
#-----------------------------------------------------------------------------
# Name : createServerPool
# Datatype : Boolean
# Description : Set to true if new server pool need to be created for database
# if this option is specified then the newly created database
# will use this newly created serverpool.
# Multiple serverpoolname can not be specified for database
# Valid values : TRUE\FALSE
# Default value : FALSE
# Mandatory : No
#-----------------------------------------------------------------------------
createServerPool=false
#-----------------------------------------------------------------------------
# Name : serverPoolName
# Datatype : String
# Description : Only one serverpool name need to be specified
# if Create Server Pool option is specified.
# Comma-separated list of Serverpool names if db need to use
# multiple Server pool
# Valid values : ServerPool name
# Default value : None
# Mandatory : No [required in case of RAC service centric database]
#-----------------------------------------------------------------------------
serverPoolName=
#-----------------------------------------------------------------------------
# Name : cardinality
# Datatype : Number
# Description : Specify Cardinality for create server pool operation
# Valid values : any positive Integer value
# Default value : Number of qualified nodes on cluster
# Mandatory : No [Required when a new serverpool need to be created]
#-----------------------------------------------------------------------------
cardinality=
#-----------------------------------------------------------------------------
# Name : force
# Datatype : Boolean
# Description : Set to true if new server pool need to be created by force
# if this option is specified then the newly created serverpool
# will be assigned server even if no free servers are available.
# This may affect already running database.
# This flag can be specified for Admin managed as well as policy managed db.
# Valid values : TRUE\FALSE
# Default value : FALSE
# Mandatory : No
#-----------------------------------------------------------------------------
force=false
#-----------------------------------------------------------------------------
# Name : pqPoolName
# Datatype : String
# Description : Only one serverpool name needs to be specified
# if create server pool option is specified.
# Comma-separated list of serverpool names if use
# server pool. This is required to
# create Parallel Query (PQ) database. Applicable to Big Cluster
# Valid values : Parallel Query (PQ) pool name
# Default value : None
# Mandatory : No [required in case of RAC service centric database]
#-----------------------------------------------------------------------------
pqPoolName=
#-----------------------------------------------------------------------------
# Name : pqCardinality
# Datatype : Number
# Description : Specify Cardinality for create server pool operation.
# Applicable to Big Cluster
# Valid values : any positive Integer value
# Default value : Number of qualified nodes on cluster
# Mandatory : No [Required when a new serverpool need to be created]
#-----------------------------------------------------------------------------
pqCardinality=
#-----------------------------------------------------------------------------
# Name : createAsContainerDatabase
# Datatype : boolean
# Description : flag to create database as container database
# Valid values : Check Oracle12c Administrator's Guide
# Default value : false
# Mandatory : No
#-----------------------------------------------------------------------------
createAsContainerDatabase=false
#-----------------------------------------------------------------------------
# Name : numberOfPDBs
# Datatype : Number
# Description : Specify the number of pdb to be created
# Valid values : 0 to 252
# Default value : 0
# Mandatory : No
#-----------------------------------------------------------------------------
numberOfPDBs=
#-----------------------------------------------------------------------------
# Name : pdbName
# Datatype : String
# Description : Specify the pdbname/pdbanme prefix if one or more pdb need to be created
# Valid values : Check Oracle12c Administrator's Guide
# Default value : None
# Mandatory : No
#-----------------------------------------------------------------------------
pdbName=
#-----------------------------------------------------------------------------
# Name : useLocalUndoForPDBs
# Datatype : boolean
# Description : Flag to create local undo tablespace for all PDB's.
# Valid values : TRUE\FALSE
# Default value : TRUE
# Mandatory : No
#-----------------------------------------------------------------------------
useLocalUndoForPDBs=
#-----------------------------------------------------------------------------
# Name : pdbAdminPassword
# Datatype : String
# Description : PDB Administrator user password
# Valid values : Check Oracle12c Administrator's Guide
# Default value : None
# Mandatory : No
#-----------------------------------------------------------------------------
pdbAdminPassword=
#-----------------------------------------------------------------------------
# Name : nodelist
# Datatype : String
# Description : Comma-separated list of cluster nodes
# Valid values : Cluster node names
# Default value : None
# Mandatory : No (Yes for RAC database-centric database )
#-----------------------------------------------------------------------------
nodelist=
#-----------------------------------------------------------------------------
# Name : sehaNodeList
# Datatype : String
# Description : Comma-separated list of cluster nodes
# Valid values : Cluster node names
# Default value : None
# Mandatory : No (Yes for SEHA database)
#-----------------------------------------------------------------------------
sehaNodeList=
#-----------------------------------------------------------------------------
# Name : templateName
# Datatype : String
# Description : Name of the template
# Valid values : Template file name
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
templateName=/opt/oracle/product/23c/dbhomeFree/assistants/dbca/templates/FREE_Database.dbc
#-----------------------------------------------------------------------------
# Name : sysPassword
# Datatype : String
# Description : Password for SYS user
# Valid values : Check Oracle12c Administrator's Guide
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
sysPassword=Welcome1
#-----------------------------------------------------------------------------
# Name : systemPassword
# Datatype : String
# Description : Password for SYSTEM user
# Valid values : Check Oracle12c Administrator's Guide
# Default value : None
# Mandatory : Yes
#-----------------------------------------------------------------------------
systemPassword=Welcome1
#-----------------------------------------------------------------------------
# Name : serviceUserPassword
# Datatype : String
# Description : Password for Windows Service user
# Default value : None
# Mandatory : If Oracle home is installed with windows service user
#-----------------------------------------------------------------------------
serviceUserPassword=
#-----------------------------------------------------------------------------
# Name : emConfiguration
# Datatype : String
# Description : Enterprise Manager Configuration Type
# Valid values : CENTRAL|NONE
# Default value : NONE
# Mandatory : No
#-----------------------------------------------------------------------------
emConfiguration=
#-----------------------------------------------------------------------------
# Name : runCVUChecks
# Datatype : Boolean
# Description : Specify whether to run Cluster Verification Utility checks
# periodically in Cluster environment
# Valid values : TRUE\FALSE
# Default value : FALSE
# Mandatory : No
#-----------------------------------------------------------------------------
runCVUChecks=
#-----------------------------------------------------------------------------
# Name : dbsnmpPassword
# Datatype : String
# Description : Password for DBSNMP user
# Valid values : Check Oracle12c Administrator's Guide
# Default value : None
# Mandatory : Yes, if emConfiguration is specified or
# the value of runCVUChecks is TRUE
#-----------------------------------------------------------------------------
dbsnmpPassword=
#-----------------------------------------------------------------------------
# Name : omsHost
# Datatype : String
# Description : EM management server host name
# Default value : None
# Mandatory : Yes, if CENTRAL is specified for emConfiguration
#-----------------------------------------------------------------------------
omsHost=
#-----------------------------------------------------------------------------
# Name : omsPort
# Datatype : Number
# Description : EM management server port number
# Default value : None
# Mandatory : Yes, if CENTRAL is specified for emConfiguration
#-----------------------------------------------------------------------------
omsPort=0
#-----------------------------------------------------------------------------
# Name : emUser
# Datatype : String
# Description : EM Admin username to add or modify targets
# Default value : None
# Mandatory : Yes, if CENTRAL is specified for emConfiguration
#-----------------------------------------------------------------------------
emUser=
#-----------------------------------------------------------------------------
# Name : emPassword
# Datatype : String
# Description : EM Admin user password
# Default value : None
# Mandatory : Yes, if CENTRAL is specified for emConfiguration
#-----------------------------------------------------------------------------
emPassword=
#-----------------------------------------------------------------------------
# Name : dvConfiguration
# Datatype : Boolean
# Description : Specify "True" to configure and enable Oracle Database vault
# Valid values : True/False
# Default value : False
# Mandatory : No
#-----------------------------------------------------------------------------
dvConfiguration=false
#-----------------------------------------------------------------------------
# Name : dvUserName
# Datatype : String
# Description : DataVault Owner
# Valid values : Check Oracle12c Administrator's Guide
# Default value : None
# Mandatory : Yes, if DataVault option is chosen
#-----------------------------------------------------------------------------
dvUserName=
#-----------------------------------------------------------------------------
# Name : dvUserPassword
# Datatype : String
# Description : Password for DataVault Owner
# Valid values : Check Oracle12c Administrator's Guide
# Default value : None
# Mandatory : Yes, if DataVault option is chosen
#-----------------------------------------------------------------------------
dvUserPassword=
#-----------------------------------------------------------------------------
# Name : dvAccountManagerName
# Datatype : String
# Description : DataVault Account Manager
# Valid values : Check Oracle12c Administrator's Guide
# Default value : None
# Mandatory : No
#-----------------------------------------------------------------------------
dvAccountManagerName=
#-----------------------------------------------------------------------------
# Name : dvAccountManagerPassword
# Datatype : String
# Description : Password for DataVault Account Manager
# Valid values : Check Oracle12c Administrator's Guide
# Default value : None
# Mandatory : No
#-----------------------------------------------------------------------------
dvAccountManagerPassword=
#-----------------------------------------------------------------------------
# Name : olsConfiguration
# Datatype : Boolean
# Description : Specify "True" to configure and enable Oracle Label Security
# Valid values : True/False
# Default value : False
# Mandatory : No
#-----------------------------------------------------------------------------
olsConfiguration=false
#-----------------------------------------------------------------------------
# Name : datafileJarLocation
# Datatype : String
# Description : Location of the data file jar
# Valid values : Directory containing compressed datafile jar
# Default value : None
# Mandatory : No
#-----------------------------------------------------------------------------
datafileJarLocation={ORACLE_HOME}/assistants/dbca/templates/
#-----------------------------------------------------------------------------
# Name : datafileDestination
# Datatype : String
# Description : Location of the data file's
# Valid values : Directory for all the database files
# Default value : $ORACLE_BASE/oradata
# Mandatory : No
#-----------------------------------------------------------------------------
datafileDestination=/app/oracle/oradata/{DB_UNIQUE_NAME}/
#-----------------------------------------------------------------------------
# Name : recoveryAreaDestination
# Datatype : String
# Description : Location of the data file's
# Valid values : Recovery Area location
# Default value : $ORACLE_BASE/flash_recovery_area
# Mandatory : No
#-----------------------------------------------------------------------------
recoveryAreaDestination=
#-----------------------------------------------------------------------------
# Name : recoveryAreaSize
# Datatype : String
# Description : Recovery area size
# Mandatory : No
#-----------------------------------------------------------------------------
recoveryAreaSize=54525952BYTES
#-----------------------------------------------------------------------------
# Name : configureWithOID
# Datatype : Boolean
# Description : To configure with OID or not
# Valid values : TRUE / FALSE
# Default value : FALSE
# Mandatory : No
#-----------------------------------------------------------------------------
configureWithOID=
#-----------------------------------------------------------------------------
# Name : pdbOptionMap
# Datatype : String
# Description : Values for DB Options indicating whether they should be included in PDB
# Default value : None
# Mandatory : No
#-----------------------------------------------------------------------------
pdbOptions=
#-----------------------------------------------------------------------------
# Name : dbOptionMap
# Datatype : String
# Description : Values DB Options indicating whether they are enabled
# Default value : None
# Mandatory : No
#-----------------------------------------------------------------------------
dbOptions=OMS:true,ORACLE_TEXT:true,CWMLITE:true,SAMPLE_SCHEMA:false,JSERVER:true,SPATIAL:true,IMEDIA:false,DV:true
#-----------------------------------------------------------------------------
# Name : storageType
# Datatype : String
# Description : Specifies the storage on which the database is to be created
# Valid values : FS (CFS for RAC), ASM
# Default value : FS
# Mandatory : No
#-----------------------------------------------------------------------------
storageType=FS
#-----------------------------------------------------------------------------
# Name : diskGroupName
# Datatype : String
# Description : Specifies the disk group name for the storage
# Default value : DATA
# Mandatory : No
#-----------------------------------------------------------------------------
diskGroupName=
#-----------------------------------------------------------------------------
# Name : asmsnmpPassword
# Datatype : String
# Description : Password for ASM Monitoring
# Default value : None
# Mandatory : No
#-----------------------------------------------------------------------------
asmsnmpPassword=
#-----------------------------------------------------------------------------
# Name : recoveryGroupName
# Datatype : String
# Description : Specifies the disk group name for the recovery area
# Default value : RECOVERY
# Mandatory : No
#-----------------------------------------------------------------------------
recoveryGroupName=
#-----------------------------------------------------------------------------
# Name : characterSet
# Datatype : String
# Description : Character set of the database
# Valid values : Check Oracle12c National Language Support Guide
# Default value : "US7ASCII"
# Mandatory : NO
#-----------------------------------------------------------------------------
characterSet=KO16MSWIN949
#-----------------------------------------------------------------------------
# Name : nationalCharacterSet
# Datatype : String
# Description : National Character set of the database
# Valid values : "UTF8" or "AL16UTF16". For details, check Oracle12c National Language Support Guide
# Default value : "AL16UTF16"
# Mandatory : No
#-----------------------------------------------------------------------------
nationalCharacterSet=AL16UTF16
#-----------------------------------------------------------------------------
# Name : registerWithDirService
# Datatype : Boolean
# Description : Specifies whether to register with Directory Service.
# Valid values : TRUE \ FALSE
# Default value : FALSE
# Mandatory : No
#-----------------------------------------------------------------------------
registerWithDirService=false
#-----------------------------------------------------------------------------
# Name : dirServiceUserName
# Datatype : String
# Description : Specifies the name of the directory service user
# Mandatory : YES, if the value of registerWithDirService is TRUE
#-----------------------------------------------------------------------------
dirServiceUserName=
#-----------------------------------------------------------------------------
# Name : dirServicePassword
# Datatype : String
# Description : The password of the directory service user.
# You can also specify the password at the command prompt instead of here.
# Mandatory : YES, if the value of registerWithDirService is TRUE
#-----------------------------------------------------------------------------
dirServicePassword=
#-----------------------------------------------------------------------------
# Name : walletPassword
# Datatype : String
# Description : The password for wallet to created or modified.
# You can also specify the password at the command prompt instead of here.
# Mandatory : YES, if the value of registerWithDirService is TRUE
#-----------------------------------------------------------------------------
walletPassword=
#-----------------------------------------------------------------------------
# Name : listeners
# Datatype : String
# Description : Specifies list of listeners to register the database with.
# By default the database is configured for all the listeners specified in the
# $ORACLE_HOME/network/admin/listener.ora
# Valid values : The list should be comma separated like "listener1,listener2".
# Mandatory : NO
#-----------------------------------------------------------------------------
listeners=
#-----------------------------------------------------------------------------
# Name : skipListenerRegistration
# Datatype : Boolean
# Description : FALSE if no listener chosen for registration, else true.
# Valid values : TRUE/FALSE
# Mandatory : NO
#-----------------------------------------------------------------------------
skipListenerRegistration=true
#-----------------------------------------------------------------------------
# Name : variablesFile
# Datatype : String
# Description : Location of the file containing variable value pair
# Valid values : A valid file-system file. The variable value pair format in this file
# is =. Each pair should be in a new line.
# Default value : None
# Mandatory : NO
#-----------------------------------------------------------------------------
variablesFile=
#-----------------------------------------------------------------------------
# Name : variables
# Datatype : String
# Description : comma separated list of name=value pairs. Overrides variables defined in variablefile and templates
# Default value : None
# Mandatory : NO
#-----------------------------------------------------------------------------
variables=ORACLE_BASE_HOME=/opt/oracle/product/23c/dbhomeFree,DB_UNIQUE_NAME=FREE,ORACLE_BASE=/opt/oracle,PDB_NAME=,DB_NAME=FREE,ORACLE_HOME=/opt/oracle/product/23c/dbhomeFree,SID=FREE
#-----------------------------------------------------------------------------
# Name : initParams
# Datatype : String
# Description : comma separated list of name=value pairs. Overrides initialization parameters defined in templates
# Default value : None
# Mandatory : NO
#-----------------------------------------------------------------------------
initParams=undo_tablespace=UNDOTBS1,enable_pluggable_database=false,sga_target=1536MB,db_block_size=8192BYTES,nls_language=AMERICAN,dispatchers=(PROTOCOL=TCP) (SERVICE=FREEXDB),diagnostic_dest={ORACLE_BASE},control_files=("/app/oracle/oradata/{DB_UNIQUE_NAME}/control01.ctl", "/app/oracle/oradata/{DB_UNIQUE_NAME}/control02.ctl"),remote_login_passwordfile=EXCLUSIVE,processes=320,pga_aggregate_target=512MB,nls_territory=AMERICA,local_listener=LISTENER_FREE,open_cursors=300,compatible=23.0.0,db_name=FREE
#-----------------------------------------------------------------------------
# Name : enableArchive
# Datatype : Boolean
# Description : Specifies whether to enable archive log.
# Valid values : TRUE \ FALSE
# Default value : FALSE
# Mandatory : No
#-----------------------------------------------------------------------------
enableArchive=false
#-----------------------------------------------------------------------------
# Name : useOMF
# Datatype : Boolean
# Description : Specifies whether to use OMF or not.
# Valid values : TRUE \ FALSE
# Mandatory : No
#-----------------------------------------------------------------------------
useOMF=false
#-----------------------------------------------------------------------------
# Name : memoryPercentage
# Datatype : String
# Description : percentage of physical memory for Oracle
# Default value : None
# Mandatory : NO
#-----------------------------------------------------------------------------
memoryPercentage=0
#-----------------------------------------------------------------------------
# Name : databaseType
# Datatype : String
# Description : used for memory distribution when memoryPercentage specified
# Valid values : MULTIPURPOSE|DATA_WAREHOUSING|OLTP
# Default value : MULTIPURPOSE
# Mandatory : NO
#-----------------------------------------------------------------------------
databaseType=MULTIPURPOSE
#-----------------------------------------------------------------------------
# Name : automaticMemoryManagement
# Datatype : Boolean
# Description : flag to indicate Automatic Memory Management is used
# Valid values : TRUE/FALSE
# Default value : TRUE
# Mandatory : NO
#-----------------------------------------------------------------------------
automaticMemoryManagement=false
#-----------------------------------------------------------------------------
# Name : totalMemory
# Datatype : String
# Description : total memory in MB to allocate to Oracle
# Valid values :
# Default value :
# Mandatory : NO
#-----------------------------------------------------------------------------
totalMemory=0
|
dbca silent 모드 실행
1
2
3
4
5
6
7
8
|
$ export CREATE_AS_CDB=false
$ dbca -silent -createDatabase -responsefile /home/oracle/dbca.rsp -ignorePrereqFailure
[FATAL] [DBT-10330] Container database (CDB) creation option is not selected.
CAUSE: You have specified the database template (FREE Database) which represents container database (CDB) information. But, you have not selected to create container database (CDB). Only container database (CDB) can be created using this template.
ACTION: Select container database (CDB) creation option. Alternatively specify different database template
[FATAL] [DBT-10333] Container database (CDB) creation option is not selected.
CAUSE: Non-CDB creation is not supported.
ACTION: Make sure container database (CDB) option is selected.
|
Non Cdb는 구성이 안된다는 메세지 및 에러 발생함
3. 수동 설치
pfile 생성
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$ cat initFREE.ora
*.compatible='23.0.0'
*.control_files='/app/oracle/oradata/FREE/control01.ctl','/app/oracle/oradata/FREE/control02.ctl'
*.db_block_size=8192
*.db_name='FREE'
*.diagnostic_dest='/opt/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=FREEXDB)'
*.local_listener='LISTENER_FREE'
*.nls_language='AMERICAN'
*.nls_territory='AMERICA'
*.open_cursors=300
*.pga_aggregate_target=512m
*.processes=320
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=1536m
*.undo_tablespace='UNDOTBS1'
|
필요한 경로 생성
1
2
3
|
$ export CREATE_AS_CDB=false
$ mkdir -p /app/oracle/oradata/FREE/
$ mkdir -p /app/oracle/oradata/FREE/pdbseed/
|
db 생성 sql 실행
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
SQL>
CREATE DATABASE FREE
LOGFILE
GROUP 1 ('/app/oracle/oradata/FREE/redo01.log') SIZE 10M reuse,
GROUP 2 ('/app/oracle/oradata/FREE/redo02.log') SIZE 10M reuse,
GROUP 3 ('/app/oracle/oradata/FREE/redo03.log') SIZE 10M reuse
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
MAXINSTANCES 1
DATAFILE '/app/oracle/oradata/FREE/system01.dbf' SIZE 1024M reuse
AUTOEXTEND ON NEXT 10m MAXSIZE UNLIMITED
UNDO TABLESPACE
UNDOTBS1 DATAFILE '/app/oracle/oradata/FREE/undotbs01.dbf' SIZE 600M reuse
AUTOEXTEND ON NEXT 10m MAXSIZE 1000m
SYSAUX DATAFILE '/app/oracle/oradata/FREE/sysaux01.dbf' SIZE 600M reuse
AUTOEXTEND ON NEXT 10m MAXSIZE UNLIMITED
DEFAULT TABLESPACE
USERS DATAFILE '/app/oracle/oradata/FREE/users01.dbf' SIZE 500M reuse
AUTOEXTEND ON MAXSIZE UNLIMITED
DEFAULT TEMPORARY TABLESPACE
TEMP TEMPFILE '/app/oracle/oradata/FREE/temp01.dbf' SIZE 50M reuse
CHARACTER SET KO16MSWIN949;
CREATE DATABASE FREE
*
ERROR at line 1:
ORA-65008: missing or invalid SEED clause
Help: https://docs.oracle.com/error-help/db/ora-65008/
|
SEED 구문을 넣지 않아 에러 발생함
DISABLE PLUGGABLE DATABASE 구문 넣어서 실행
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$vi createdb.sql
CREATE DATABASE FREE
LOGFILE
GROUP 1 ('/app/oracle/oradata/FREE/redo01.log') SIZE 10M reuse,
GROUP 2 ('/app/oracle/oradata/FREE/redo02.log') SIZE 10M reuse,
GROUP 3 ('/app/oracle/oradata/FREE/redo03.log') SIZE 10M reuse
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
MAXINSTANCES 1
DATAFILE '/app/oracle/oradata/FREE/system01.dbf' SIZE 1024M reuse
AUTOEXTEND ON NEXT 10m MAXSIZE UNLIMITED
UNDO TABLESPACE
UNDOTBS1 DATAFILE '/app/oracle/oradata/FREE/undotbs01.dbf' SIZE 600M reuse
AUTOEXTEND ON NEXT 10m MAXSIZE 1000m
SYSAUX DATAFILE '/app/oracle/oradata/FREE/sysaux01.dbf' SIZE 600M reuse
AUTOEXTEND ON NEXT 10m MAXSIZE UNLIMITED
DEFAULT TABLESPACE
USERS DATAFILE '/app/oracle/oradata/FREE/users01.dbf' SIZE 500M reuse
AUTOEXTEND ON MAXSIZE UNLIMITED
DEFAULT TEMPORARY TABLESPACE
TEMP TEMPFILE '/app/oracle/oradata/FREE/temp01.dbf' SIZE 50M reuse
DISABLE PLUGGABLE DATABASE
CHARACTER SET KO16MSWIN949;
DISABLE PLUGGABLE DATABASE
*
ERROR at line 24:
ORA-02165: invalid option for CREATE DATABASE
Help: https://docs.oracle.com/error-help/db/ora-02165/
|
DISABLE PLUGGABLE 구문은 사용이 안되는지 에러 발생함
seed 구문 넣어서 실행
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$vi createdb.sql
CREATE DATABASE FREE
LOGFILE
GROUP 1 ('/app/oracle/oradata/FREE/redo01.log') SIZE 10M reuse,
GROUP 2 ('/app/oracle/oradata/FREE/redo02.log') SIZE 10M reuse,
GROUP 3 ('/app/oracle/oradata/FREE/redo03.log') SIZE 10M reuse
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
MAXINSTANCES 1
DATAFILE '/app/oracle/oradata/FREE/system01.dbf' SIZE 1024M reuse
AUTOEXTEND ON NEXT 10m MAXSIZE UNLIMITED
UNDO TABLESPACE
UNDOTBS1 DATAFILE '/app/oracle/oradata/FREE/undotbs01.dbf' SIZE 600M reuse
AUTOEXTEND ON NEXT 10m MAXSIZE 1000m
SYSAUX DATAFILE '/app/oracle/oradata/FREE/sysaux01.dbf' SIZE 600M reuse
AUTOEXTEND ON NEXT 10m MAXSIZE UNLIMITED
DEFAULT TABLESPACE
USERS DATAFILE '/app/oracle/oradata/FREE/users01.dbf' SIZE 500M reuse
AUTOEXTEND ON MAXSIZE UNLIMITED
DEFAULT TEMPORARY TABLESPACE
TEMP TEMPFILE '/app/oracle/oradata/FREE/temp01.dbf' SIZE 50M reuse
ENABLE PLUGGABLE DATABASE
SEED
FILE_NAME_CONVERT = ('/app/oracle/oradata/FREE/',
'/app/oracle/oradata/FREE/pdbseed/')
SYSTEM DATAFILES SIZE 125M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED
SYSAUX DATAFILES SIZE 100M
USER_DATA TABLESPACE usertbs
DATAFILE '/app/oracle/oradata/FREE/pdbseed/usertbs01.dbf'
SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED
CHARACTER SET KO16MSWIN949;
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
@?/sqlplus/admin/pupbld.sql
@?/sqlplus/admin/plustrce.sql
@?/rdbms/admin/utlrp.sql
!echo ---End of File ---
|
db 생성은 되지만 seed 구문을 넣었기 때문에 cdb로 구성됨
DB 확인
1
2
3
4
5
6
|
SQL> select con_id, name, open_mode, dbid, con_uid, guid from v$containers;
CON_ID NAME OPEN_MODE DBID CON_UID GUID
---------- -------------------- ---------- ---------- ---------- --------------------------------
1 CDB$ROOT READ WRITE 1439667186 1 173EBA4A84147F0AE0631789A8C04749
2 PDB$SEED READ ONLY 2690318001 2690318001 173EBA4A84157F0AE0631789A8C04749
|
cdb로 구성됨
결론 :
여러 방법으로 23c non-container 설치를 시도했지만 실패함
23c는 확실히 non-container 아키텍처로 설치가 불가능한듯함
컨테이너 db에 적응 해야할듯함
참조 :
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/CREATE-DATABASE.html
https://positivemh.tistory.com/214
'ORACLE > Install' 카테고리의 다른 글
Oracle Linux 4.8에 Oracle 10g R2 설치 가이드 (0) | 2024.08.02 |
---|---|
Oracle Linux 8.4에 Oracle 23ai Free RPM 설치 및 삭제 가이드 (0) | 2024.05.03 |
Oracle Linux 8.4에 Oracle 23c Free RPM 설치 및 삭제 가이드 (0) | 2024.04.25 |
Oracle Linux 8.4에 Oracle 19c Client Silent 모드 설치 가이드 (2) | 2023.11.27 |
Windows 11에 Oracle 21c XE 설치 가이드 (0) | 2023.11.21 |