OS 환경 : Oracle Linux 8.4 (64bit)
DB 환경 : Oracle Database 23.5.0.24.07 ai for Oracle Cloud and Engineered Systems
방법 : Oracle Linux 8.4에 Oracle 23ai Exa 버전(정식23ai 버전X) 설치 가이드
2024년 08월 현재까지도 오라클 23ai 정식 버전은 클라우드 환경이나 엑사에서만 사용가능하고 온프레미스에서는 Free 버전만 사용가능함
하지만 2024년 07월 22일부터 https://edelivery.oracle.com/ 에서 Exadata 용 23ai 버전(23.5)를 다운로드 받을 수 있게됨
본문에서는 이 버전을 다운로드 받아 설치하는 방법을 설명함
이렇게 설치하는 경우 Free 버전이 아니기 때문에 EE 에서 사용가능한 더많은 신기능을 테스트해볼 수 있음
본문은 개인VM에 테스트용으로 설치한것이고, 운영 서버에는 정식버전이 나오면 설치해야함
Free 버전의 경우 아래 게시글을 참고하여 설치하면 됨
참고 : Oracle Linux 8.4에 Oracle 23ai Free RPM 설치 및 삭제 가이드 ( https://positivemh.tistory.com/1095 )
OS 설치는 아래 게시물 참조
Oracle Linux 8.4 설치 가이드 ( https://positivemh.tistory.com/761 )
설치파일 다운로드
https://edelivery.oracle.com/ 접속 후 oracle database 검색
V1043785-01를 다운로드함
오라클 설치 전 사전 설정
/etc/hosts 에 ip hostname설정
1
2
3
4
|
# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.137.23 ora23
|
preinstall rpm 설치
공식홈페이지에서 preinstall rpm 다운로드 후 서버에 업로드
또는 curl로 서버에 직접 다운로드
1
|
# curl -o oracle-database-preinstall-23ai-1.0-2.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-23ai-1.0-2.el8.x86_64.rpm
|
preinstall 패키지 설치
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
|
# dnf -y localinstall oracle-database-preinstall-23c-1.0-1.el8.x86_64.rpm
Oracle Linux 8 BaseOS Latest (x86_64) 13 MB/s | 78 MB 00:05
Oracle Linux 8 Application Stream (x86_64) 11 MB/s | 62 MB 00:05
Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64) 15 MB/s | 97 MB 00:06
Last metadata expiration check: 0:00:31 ago on Sun 04 Aug 2024 11:13:11 PM KST.
Dependencies resolved.
==============================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================
Installing:
oracle-database-preinstall-23c x86_64 1.0-1.el8 @commandline 30 k
Installing dependencies:
compat-openssl10 x86_64 1:1.0.2o-4.el8_6 ol8_appstream 1.1 M
ksh x86_64 20120801-267.0.1.el8 ol8_appstream 923 k
lm_sensors-libs x86_64 3.4.0-23.20180522git70f7e08.el8 ol8_baseos_latest 59 k
sysstat x86_64 11.7.3-13.0.1.el8_10 ol8_appstream 426 k
Transaction Summary
==============================================================================================================================================================================================================
Install 5 Packages
Total size: 2.5 M
Total download size: 2.5 M
Installed size: 7.7 M
Downloading Packages:
(1/4): lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64.rpm 0% [ ] --- B/s | 0 B --:-- ETA
(1-3/4): compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm 0% [ ] --- B/s | 0 B --:-- ETA
(1-3/4): compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm 1% [= ] 104 kB/s | 31 kB 00:24 ETA
(1/4): lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64.rpm 72 kB/s | 59 kB 00:00
(2-3/4): ksh-20120801-267.0.1.el8.x86_64.rpm 4% [==== ] 119 kB/s | 128 kB 00:20 ETA
(2-4/4): ksh-20120801-267.0.1.el8.x86_64.rpm 18% [===============- ] 183 kB/s | 480 kB 00:11 ETA
(2-4/4): sysstat-11.7.3-13.0.1.el8_10.x86_64.rpm 62% [===================================================- ] 397 kB/s | 1.6 MB 00:02 ETA
(2/4): sysstat-11.7.3-13.0.1.el8_10.x86_64.rpm 685 kB/s | 426 kB 00:00
(3-4/4): compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm 67% [======================================================== ] 422 kB/s | 1.7 MB 00:01 ETA
(3/4): ksh-20120801-267.0.1.el8.x86_64.rpm 605 kB/s | 923 kB 00:01
(4/4): compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm 93% [=============================================================================- ] 548 kB/s | 2.4 MB 00:00 ETA
(4/4): compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm 738 kB/s | 1.1 MB 00:01
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.6 MB/s | 2.5 MB 00:01
warning: /var/cache/dnf/ol8_baseos_latest-e4c6155830ad002c/packages/lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Oracle Linux 8 BaseOS Latest (x86_64) [ === ] --- B/s | 0 B --:-- ETA
Oracle Linux 8 BaseOS Latest (x86_64) 3.0 MB/s | 3.1 kB 00:00
Importing GPG key 0xAD986DA3:
Userid : "Oracle OSS group (Open Source Software group) <build@oss.oracle.com>"
Fingerprint: 76FD 3DB1 3AB6 7410 B89D B10E 8256 2EA9 AD98 6DA3
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : ksh-20120801-267.0.1.el8.x86_64 1/5
Running scriptlet: ksh-20120801-267.0.1.el8.x86_64 1/5
Installing : compat-openssl10-1:1.0.2o-4.el8_6.x86_64 2/5
Running scriptlet: compat-openssl10-1:1.0.2o-4.el8_6.x86_64 2/5
/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6: hwcap directive ignored
Installing : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 3/5
Running scriptlet: lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 3/5
/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6: hwcap directive ignored
Installing : sysstat-11.7.3-13.0.1.el8_10.x86_64 4/5
Running scriptlet: sysstat-11.7.3-13.0.1.el8_10.x86_64 4/5
Installing : oracle-database-preinstall-23c-1.0-1.el8.x86_64 5/5
Running scriptlet: oracle-database-preinstall-23c-1.0-1.el8.x86_64 5/5
/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6: hwcap directive ignored
Verifying : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 1/5
Verifying : compat-openssl10-1:1.0.2o-4.el8_6.x86_64 2/5
Verifying : ksh-20120801-267.0.1.el8.x86_64 3/5
Verifying : sysstat-11.7.3-13.0.1.el8_10.x86_64 4/5
Verifying : oracle-database-preinstall-23c-1.0-1.el8.x86_64 5/5
Installed:
compat-openssl10-1:1.0.2o-4.el8_6.x86_64 ksh-20120801-267.0.1.el8.x86_64 lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 oracle-database-preinstall-23c-1.0-1.el8.x86_64
sysstat-11.7.3-13.0.1.el8_10.x86_64
Complete!
|
추가 패키지 설치
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
|
# curl -o binutils-2.30-93.0.3.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/getPackage/binutils-2.30-93.0.3.el8.x86_64.rpm
# dnf -y localinstall binutils-2.30-93.0.3.el8.x86_64.rpm
Last metadata expiration check: 0:03:08 ago on Sun 04 Aug 2024 11:31:14 PM KST.
Dependencies resolved.
==============================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================
Upgrading:
binutils x86_64 2.30-93.0.3.el8 @commandline 5.9 M
Transaction Summary
==============================================================================================================================================================================================================
Upgrade 1 Package
Total size: 5.9 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : binutils-2.30-93.0.3.el8.x86_64 1/2
Running scriptlet: binutils-2.30-93.0.3.el8.x86_64 1/2
/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6: hwcap directive ignored
Running scriptlet: binutils-2.30-93.0.1.el8.x86_64 2/2
Cleanup : binutils-2.30-93.0.1.el8.x86_64 2/2
Running scriptlet: binutils-2.30-93.0.1.el8.x86_64 2/2
/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6: hwcap directive ignored
/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6: hwcap directive ignored
/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6: hwcap directive ignored
Verifying : binutils-2.30-93.0.3.el8.x86_64 1/2
Verifying : binutils-2.30-93.0.1.el8.x86_64 2/2
Upgraded:
binutils-2.30-93.0.3.el8.x86_64
Complete!
|
자동 설정 후 수동설정 파일 확인필요
자동 설정 시 필수 rpm 설치 및 커널 파라미터가 설정되고 유저 및 그룹이 만들어짐
커널 파라미터 확인
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
|
# cat /etc/sysctl.conf
결과
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
# oracle-database-preinstall-23ai setting for fs.file-max is 6815744
fs.file-max = 6815744
# oracle-database-preinstall-23ai setting for kernel.sem is '250 32000 100 128'
kernel.sem = 250 32000 100 128
# oracle-database-preinstall-23ai setting for kernel.shmmni is 4096
kernel.shmmni = 4096
# oracle-database-preinstall-23ai setting for kernel.shmall is 1073741824 on x86_64
kernel.shmall = 4294967296
# oracle-database-preinstall-23ai setting for kernel.shmmax is 4398046511104 on x86_64
kernel.shmmax = 4294967296
# oracle-database-preinstall-23ai setting for kernel.panic_on_oops is 1 per Orabug 19212317
kernel.panic_on_oops = 1
# oracle-database-preinstall-23ai setting for net.core.rmem_default is 262144
net.core.rmem_default = 262144
# oracle-database-preinstall-23ai setting for net.core.rmem_max is 4194304
net.core.rmem_max = 4194304
# oracle-database-preinstall-23ai setting for net.core.wmem_default is 262144
net.core.wmem_default = 262144
# oracle-database-preinstall-23ai setting for net.core.wmem_max is 1048576
net.core.wmem_max = 1048576
# oracle-database-preinstall-23ai setting for net.ipv4.conf.all.rp_filter is 2
net.ipv4.conf.all.rp_filter = 2
# oracle-database-preinstall-23ai setting for net.ipv4.conf.default.rp_filter is 2
net.ipv4.conf.default.rp_filter = 2
# oracle-database-preinstall-23ai setting for fs.aio-max-nr is 1048576
fs.aio-max-nr = 1048576
# oracle-database-preinstall-23ai setting for net.ipv4.ip_local_port_range is 9000 65500
net.ipv4.ip_local_port_range = 9000 65535
# oracle-database-preinstall-23ai setting special parameters BEGIN
# oracle-database-preinstall-23ai setting for kernel.panic is 10
kernel.panic = 10
# oracle-database-preinstall-23ai setting special parameters END
|
*kernel.shmall, kernel.shmmax 은 서버에 물리 메모리의 절반으로 설정 필요(byte 단위)
현재 서버의 물리 메모리를 8gb로 잡았기 때문에 절반인 4gb를 byte로 변경해 적용함(4*1024*1024*1024)
두 커널값 변경 후 적용
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# sysctl -p
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 4294967296
kernel.shmmax = 4294967296
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65535
kernel.panic = 10
|
유저 및 그룹 확인
1
2
3
4
5
6
7
8
9
10
11
12
13
|
유저
# tail -1 /etc/passwd
oracle:x:54321:54321::/home/oracle:/bin/bash
그룹
# tail -7 /etc/group
oinstall:x:54321:oracle
dba:x:54322:oracle
oper:x:54323:oracle
backupdba:x:54324:oracle
dgdba:x:54325:oracle
kmdba:x:54326:oracle
racdba:x:54330:oracle
|
selinux disable 설정
1
2
|
# vi /etc/selinux/config
SELINUX=disabled
|
불필요한 서비스 정지
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#
systemctl stop firewalld
systemctl disable firewalld
systemctl stop bluetooth
systemctl disable bluetooth
systemctl stop chronyd
systemctl disable chronyd
mv /etc/chrony.conf /etc/chrony.conf.bak
systemctl stop ntpdate
systemctl disable ntpdate
systemctl stop avahi-daemon.socket
systemctl disable avahi-daemon.socket
systemctl stop avahi-daemon
systemctl disable avahi-daemon
systemctl stop libvirtd
systemctl disable libvirtd
|
oracle 유저 패스워드 설정
1
2
3
4
5
6
|
# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
|
db 설치 경로 생성
1
2
3
4
5
|
# mkdir -p /app
# mkdir -p /app/media
# mkdir -p /app/oracle/product/23ai
# chown -R oracle:dba /app
# chmod -R 755 /app
|
설치 미디어 업로드(LINUX.X64_235000_forEngineeredSystems_db_home(V1043785-01).zip)
1
2
3
4
5
|
$ ls -al /app/media/
total 2183468
drwxr-xr-x. 2 oracle oinstall 76 Aug 8 23:20 .
drwxr-xr-x. 5 oracle dba 53 Aug 8 23:28 ..
-rw-r--r--. 1 oracle dba 2235867141 Aug 8 23:20 'LINUX.X64_235000_forEngineeredSystems_db_home(V1043785-01).zip'
|
오라클 유저 .bash_profile 설정
1
2
3
4
5
6
7
8
9
10
11
12
|
$ vi .bash_profile
export ORACLE_BASE=/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/23ai;
export ORACLE_SID=oracle23
export PATH=$PATH:$ORACLE_HOME/bin
export DISPLAY=192.168.137.1:0.0;
alias ss='sqlplus / as sysdba'
alias sysc='sqlplus sys/oracle@localhost:1521/oracle23 as sysdba'
alias sysp='sqlplus sys/oracle@localhost:1521/ORACLE23PDB1 as sysdba'
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
|
적용
1
|
$ . ./.bash_profile
|
Oracle Software(엔진) 설치
오라클 23ai 엔진 압축 해제
1
2
|
$ cd $ORACLE_HOME
$ unzip /app/media/LINUX.X64_235000_forEngineeredSystems_db_home\(V1043785-01\).zip
|
runInstaller 실행
1
|
$ ./runInstaller
|
Set Up Software Only 선택
Enterprise Edition 선택
Next 선택
Inventory 확인 후 Next 선택
그룹 확인 후 Next 선택
root 권한으로 자동 스크립트 실행을 위해 root 유저 패스워드 입력
사전 요구사항 확인중
Install 선택
설치중
root 권한으로 자동 스크립트 실행 Yes 선택
Close 선택
23ai 엔진 설치 완료됨
리스너 설정
netca 진행
1
|
$ netca
|
Listener configuration 선택
리스너 이름 설정
Next 선택
리스너 포트 선택
No 선택
Next 선택
Finish 선택
DB 생성
dbca 진행
1
|
$ dbca
|
디자인이 이뻐진 23ai dbca 실행창
Create a database 선택
Advanced configuration 선택
Custom Database 선택
oracle SID 입력
Use template for the database storage attributes 선택
Next 선택
리스너 선택
컴포넌트 모두 체크 해제
Memory 설정
프로세스 설정
Choose from the list of character sets 는 KO16MSWIN949 선택
Connection mode 는 Dedicated server mode 선택
EM 체크 해제
admin 계정 패스워드 설정
Yes 선택
Generate database creation scripts 선택
Save Response File 선택 후 Finish
설치가 되는 듯 하다가 ORA-27350 에러 발생함
엑사데이터용 db인데 논엑사 서버에 설치해서 에러가 발생한 것
설치 스크립트의 파라미터파일에 히든파라미터를 추가하여 해결 가능함
Generate database creation scripts 저장했던 경로로 이동
1
2
3
4
|
$ cd /app/oracle/admin/oracle23/scripts/
$ ls
CreateClustDBViews.sql CreateDBFiles.sql init.ora oracle23.sh PDBCreation.sql postDBCreation.sql
CreateDBCatalog.sql CreateDB.sql lockAccount.sql oracle23.sql plug_oracle23pdb1.sql postPDBCreation_oracle23pdb1.sql
|
init.ora 파일 vi 로 열어서 최하단에 히든파라미터 추가
1
2
|
$ vi init.ora
_exadata_feature_on=true
|
oracle23.sh 파일 실행
1
|
$ sh oracle23.sh
|
상세로그
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
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
|
$ sh oracle23.sh
You should Add this entry in the /etc/oratab: oracle23:/app/oracle/product/23ai:Y
SQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Thu Sun 4 23:48:37 2024
Version 23.5.0.24.07
Copyright (c) 1982, 2024, Oracle. All rights reserved.
Enter new password for SYS:
Enter new password for SYSTEM:
Enter new password for PDBADMIN:
Enter password for SYS:
Connected to an idle instance.
SQL> spool /app/oracle/admin/oracle23/scripts/CreateDB.log append
SQL> startup nomount pfile="/app/oracle/admin/oracle23/scripts/init.ora";
ORACLE instance started.
Total System Global Area 1238952200 bytes
Fixed Size 5359880 bytes
Variable Size 335544320 bytes
Database Buffers 889192448 bytes
Redo Buffers 8855552 bytes
SQL> CREATE DATABASE "oracle23"
2 MAXINSTANCES 8
3 MAXLOGHISTORY 1
4 MAXLOGFILES 16
5 MAXLOGMEMBERS 3
6 MAXDATAFILES 1024
7 DATAFILE '/app/oracle/oradata/ORACLE23/system01.dbf' SIZE 700M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
8 EXTENT MANAGEMENT LOCAL
9 SYSAUX DATAFILE '/app/oracle/oradata/ORACLE23/sysaux01.dbf' SIZE 550M REUSE AUTOEXTEND ON NEXT10240K MAXSIZE UNLIMITED
10 SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/app/oracle/oradata/ORACLE23/temp01.dbf' SIZE 20M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
11 SMALLFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE '/app/oracle/oradata/ORACLE23/undotbs01.dbf' SIZE 200M REUSE AUTOEXTEND ON NEXT5120K MAXSIZE UNLIMITED
12 CHARACTER SET KO16MSWIN949
13 NATIONAL CHARACTER SET AL16UTF16
14 SET DEFAULT BIGFILE TABLESPACE
15 LOGFILE GROUP 1 ('/app/oracle/oradata/ORACLE23/redo01.log') SIZE 200M,
16 GROUP 2 ('/app/oracle/oradata/ORACLE23/redo02.log') SIZE 200M,
17 GROUP 3 ('/app/oracle/oradata/ORACLE23/redo03.log') SIZE 200M
18 USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword"
19 enable pluggable database
20 seed file_name_convert=('/app/oracle/oradata/ORACLE23/system01.dbf','/app/oracle/oradata/ORACLE23/pdbseed/system01.dbf','/app/oracle/oradata/ORACLE23/sysaux01.dbf','/app/oracle/oradata/ORACLE23/pdbseed/sysaux01.dbf','/app/oracle/oradata/ORACLE23/temp01.dbf','/app/oracle/oradata/ORACLE23/pdbseed/temp01.dbf','/app/oracle/oradata/ORACLE23/undotbs01.dbf','/app/oracle/oradata/ORACLE23/pdbseed/undotbs01.dbf') LOCAL UNDO ON;
Database created.
SQL> spool off
SQL> @/app/oracle/admin/oracle23/scripts/CreateDBFiles.sql
SQL> SET VERIFY OFF
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/CreateDBFiles.log append
SQL> CREATE BIGFILE TABLESPACE "USERS" LOGGINGDATAFILE '/app/oracle/oradata/ORACLE23/users01.dbf' SIZE 7M REUSE AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITEDEXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
Tablespace created.
SQL> ALTER DATABASE DEFAULT TABLESPACE "USERS";
Database altered.
SQL> spool off
SQL> @/app/oracle/admin/oracle23/scripts/CreateDBCatalog.sql
SQL> SET VERIFY OFF
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/CreateDBCatalog.log append
SQL> alter session set "_oracle_script"=true;
Session altered.
SQL> alter pluggable database pdb$seed close;
Pluggable database altered.
SQL> alter pluggable database pdb$seed open;
Pluggable database altered.
SQL> host /app/oracle/product/23ai/perl/bin/perl /app/oracle/product/23ai/rdbms/admin/catctl.pl -u "SYS"/"&&sysPassword" -n 4 -icatpcat -c 'CDB$ROOT PDB$SEED' -a -d /app/oracle/product/23ai/rdbms/admin -l /app/oracle/admin/oracle23/scripts rdbms/admin/catpcat.sql;
Argument list for [/app/oracle/product/23ai/rdbms/admin/catctl.pl]
For Oracle internal use only A = 0
Run in c = CDB$ROOT PDB$SEED
Do not run in C = 0
Input Directory d = /app/oracle/product/23ai/rdbms/admin
Echo OFF e = 1
Simulate E = 0
Forced cleanup F = 0
Log Id i = catpcat
Child Process I = 0
Log Dir l = /app/oracle/admin/oracle23/scripts
Priority List Name L = 0
Upgrade Mode active M = 0
SQL Process Count n = 4
SQL PDB Process Count N = 0
Open Mode Normal o = 0
Start Phase p = 0
End Phase P = 0
Reverse Order r = 0
AutoUpgrade Resume R = 0
Script s = 0
Serial Run S = 0
Classic Upgrade t = 0
RO User Tablespaces T = 0
Zip Logs w = 0
Upgrade PDBs in Upgrade mode x = 0
Display Phases y = 0
Debug catcon.pm z = 0
Debug catctl.pl Z = 0
Manual upgrade using catctl.pl is desupported as of Oracle Database 23.4. Oracle recommends using AutoUpgrade to upgrade your database.
catctl.pl VERSION: [23.0.0.0.0]
STATUS: [Lim]
BUILD: [RDBMS_23.5.0.24.07DBRU_LINUX.X64_240710]
/app/oracle/product/23ai/rdbms/admin/orahome = [/app/oracle/product/23ai]
/app/oracle/product/23ai/bin/orabasehome = [/app/oracle/product/23ai]
catctlGetOraBaseLogDir = [/app/oracle/product/23ai]
Analyzing file /app/oracle/product/23ai/rdbms/admin/catpcat.sql
Log file directory = [/app/oracle/admin/oracle23/scripts]
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/app/oracle/admin/oracle23/scripts/catpcatcatpcat_catcon_55462.lst]
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/catpcatcatpcat*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/catpcatcatpcat_*.lst] files for spool files, if any
Number of Cpus = 4
Database Name = oracle23
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/app/oracle/admin/oracle23/scripts/catpcatcatpcatcdbroot_catcon_55462.lst]
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/catpcatcatpcatcdbroot*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/catpcatcatpcatcdbroot_*.lst] files for spool files, if any
Log file directory = [/app/oracle/admin/oracle23/scripts]
Parallel SQL Process Count (PDB) = 2
Parallel SQL Process Count (CDB$ROOT) = 4
Generated PDB Inclusion:[PDB$SEED]
Components in [CDB$ROOT]
Installed [None]
Not Installed [APEX APS CATALOG CATJAVA CATPROC CONTEXT DV EM JAVAVM LCTR MGW ODM OLS ORDIM OWM RAC SDO WK XDB XML XOQ]
------------------------------------------------------
Phases [0-54] Start Time:[2024_08_04 23:49:48]
Container Lists Inclusion:[CDB$ROOT] Exclusion:[NONE]
------------------------------------------------------
*********** Executing Change Scripts ***********
Serial Phase #:0 [CDB$ROOT] Files:1 Time: 1s
*************** Catalog Core SQL ***************
Serial Phase #:1 [CDB$ROOT] Files:5 Time: 70s
Restart Phase #:2 [CDB$ROOT] Files:1 Time: 0s
*********** Catalog Tables and Views ***********
Parallel Phase #:3 [CDB$ROOT] Files:21 Time: 40s
Restart Phase #:4 [CDB$ROOT] Files:1 Time: 0s
************* Catalog Final Scripts ************
Serial Phase #:5 [CDB$ROOT] Files:7 Time: 23s
***************** Catproc Start ****************
Serial Phase #:6 [CDB$ROOT] Files:1 Time: 15s
***************** Catproc Types ****************
Serial Phase #:7 [CDB$ROOT] Files:2 Time: 17s
Restart Phase #:8 [CDB$ROOT] Files:1 Time: 1s
**************** Catproc Tables ****************
Parallel Phase #:9 [CDB$ROOT] Files:88 Time: 37s
Restart Phase #:10 [CDB$ROOT] Files:1 Time: 0s
************* Catproc Package Specs ************
Serial Phase #:11 [CDB$ROOT] Files:1 Time: 110s
Restart Phase #:12 [CDB$ROOT] Files:1 Time: 1s
************** Catproc Procedures **************
Parallel Phase #:13 [CDB$ROOT] Files:103 Time: 8s
Restart Phase #:14 [CDB$ROOT] Files:1 Time: 0s
Parallel Phase #:15 [CDB$ROOT] Files:127 Time: 11s
Restart Phase #:16 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:17 [CDB$ROOT] Files:12 Time: 2s
Restart Phase #:18 [CDB$ROOT] Files:1 Time: 0s
Parallel Phase #:19 [CDB$ROOT] Files:43 Time: 4s
Restart Phase #:20 [CDB$ROOT] Files:1 Time: 1s
***************** Catproc Views ****************
Parallel Phase #:21 [CDB$ROOT] Files:32 Time: 21s
Restart Phase #:22 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:23 [CDB$ROOT] Files:2 Time: 24s
Restart Phase #:24 [CDB$ROOT] Files:1 Time: 0s
Parallel Phase #:25 [CDB$ROOT] Files:15 Time: 795s
Restart Phase #:26 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:27 [CDB$ROOT] Files:1 Time: 0s
***************** Catpdeps PLBs ****************
Serial Phase #:28 [CDB$ROOT] Files:14 Time: 3s
Serial Phase #:29 [CDB$ROOT] Files:1 Time: 0s
Restart Phase #:30 [CDB$ROOT] Files:1 Time: 0s
Parallel Phase #:31 [CDB$ROOT] Files:12 Time: 306s
Restart Phase #:32 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:33 [CDB$ROOT] Files:12 Time: 27s
Restart Phase #:34 [CDB$ROOT] Files:1 Time: 1s
*************** Catproc CDB Views **************
Serial Phase #:35 [CDB$ROOT] Files:1 Time: 1s
Restart Phase #:36 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:38 [CDB$ROOT] Files:1 Time: 0s
***************** Catproc PLBs *****************
Serial Phase #:39 [CDB$ROOT] Files:320 Time: 25s
Serial Phase #:40 [CDB$ROOT] Files:1 Time: 0s
Restart Phase #:41 [CDB$ROOT] Files:1 Time: 0s
Serial Phase #:42 [CDB$ROOT] Files:31 Time: 15s
Restart Phase #:43 [CDB$ROOT] Files:1 Time: 0s
*************** Catproc DataPump ***************
Serial Phase #:44 [CDB$ROOT] Files:3 Time: 87s
Restart Phase #:45 [CDB$ROOT] Files:1 Time: 0s
****************** Catproc SQL *****************
Parallel Phase #:46 [CDB$ROOT] Files:12 Time: 325s
Restart Phase #:47 [CDB$ROOT] Files:1 Time: 1s
Parallel Phase #:48 [CDB$ROOT] Files:11 Time: 17s
Restart Phase #:49 [CDB$ROOT] Files:1 Time: 0s
Parallel Phase #:50 [CDB$ROOT] Files:8 Time: 12s
Restart Phase #:51 [CDB$ROOT] Files:1 Time: 0s
************* Final Catproc scripts ************
Serial Phase #:52 [CDB$ROOT] Files:1 Time: 1359s
Restart Phase #:53 [CDB$ROOT] Files:1 Time: 1s
Serial Phase #:54 [CDB$ROOT] Files:1 Time: 1s
------------------------------------------------------
Phases [0-54] End Time:[2024_08_05 00:45:52]
Container Lists Inclusion:[CDB$ROOT] Exclusion:[NONE]
------------------------------------------------------
Concurrent PDB Upgrades Reset = 1
Concurrent PDB Upgrades = 1
Start processing of PDBs (PDB$SEED)
[/app/oracle/product/23ai/perl/bin/perl /app/oracle/product/23ai/rdbms/admin/catctl.pl -u SYS/oracle -n 2 -icatpcat -c 'PDB$SEED' -a -d /app/oracle/product/23ai/rdbms/admin -l /app/oracle/admin/oracle23/scripts -I rdbms/admin/catpcat.sql]
Argument list for [/app/oracle/product/23ai/rdbms/admin/catctl.pl]
For Oracle internal use only A = 0
Run in c = PDB$SEED
Do not run in C = 0
Input Directory d = /app/oracle/product/23ai/rdbms/admin
Echo OFF e = 1
Simulate E = 0
Forced cleanup F = 0
Log Id i = catpcat
Child Process I = 1
Log Dir l = /app/oracle/admin/oracle23/scripts
Priority List Name L = 0
Upgrade Mode active M = 0
SQL Process Count n = 2
SQL PDB Process Count N = 0
Open Mode Normal o = 0
Start Phase p = 0
End Phase P = 0
Reverse Order r = 0
AutoUpgrade Resume R = 0
Script s = 0
Serial Run S = 0
Classic Upgrade t = 0
RO User Tablespaces T = 0
Zip Logs w = 0
Upgrade PDBs in Upgrade mode x = 0
Display Phases y = 0
Debug catcon.pm z = 0
Debug catctl.pl Z = 0
Manual upgrade using catctl.pl is desupported as of Oracle Database 23.4. Oracle recommends using AutoUpgrade to upgrade your database.
catctl.pl VERSION: [23.0.0.0.0]
STATUS: [Lim]
BUILD: [RDBMS_23.5.0.24.07DBRU_LINUX.X64_240710]
/app/oracle/product/23ai/rdbms/admin/orahome = [/app/oracle/product/23ai]
/app/oracle/product/23ai/bin/orabasehome = [/app/oracle/product/23ai]
catctlGetOraBaseLogDir = [/app/oracle/product/23ai]
Analyzing file /app/oracle/product/23ai/rdbms/admin/catpcat.sql
Log file directory = [/app/oracle/admin/oracle23/scripts]
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/app/oracle/admin/oracle23/scripts/catpcatcatpcat_catcon_59416.lst]
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/catpcatcatpcat*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/catpcatcatpcat_*.lst] files for spool files, if any
Number of Cpus = 4
Database Name = oracle23
DataBase Version = 23.0.0.0.0
PDB$SEED Open Mode = [READ WRITE]
Generated PDB Inclusion:[PDB$SEED]
CDB$ROOT Open Mode = [OPEN]
Components in [PDB$SEED]
Installed [None]
Not Installed [APEX APS CATALOG CATJAVA CATPROC CONTEXT DV EM JAVAVM LCTR MGW ODM OLS ORDIM OWM RAC SDO WK XDB XML XOQ]
------------------------------------------------------
Phases [0-54] Start Time:[2024_08_05 00:47:05]
Container Lists Inclusion:[PDB$SEED] Exclusion:[NONE]
------------------------------------------------------
*********** Executing Change Scripts ***********
Serial Phase #:0 [PDB$SEED] Files:1 Time: 2s
*************** Catalog Core SQL ***************
Serial Phase #:1 [PDB$SEED] Files:5 Time: 78s
Restart Phase #:2 [PDB$SEED] Files:1 Time: 0s
*********** Catalog Tables and Views ***********
Parallel Phase #:3 [PDB$SEED] Files:21 Time: 43s
Restart Phase #:4 [PDB$SEED] Files:1 Time: 0s
************* Catalog Final Scripts ************
Serial Phase #:5 [PDB$SEED] Files:7 Time: 28s
***************** Catproc Start ****************
Serial Phase #:6 [PDB$SEED] Files:1 Time: 12s
***************** Catproc Types ****************
Serial Phase #:7 [PDB$SEED] Files:2 Time: 16s
Restart Phase #:8 [PDB$SEED] Files:1 Time: 0s
**************** Catproc Tables ****************
Parallel Phase #:9 [PDB$SEED] Files:88 Time: 52s
Restart Phase #:10 [PDB$SEED] Files:1 Time: 0s
************* Catproc Package Specs ************
Serial Phase #:11 [PDB$SEED] Files:1 Time: 108s
Restart Phase #:12 [PDB$SEED] Files:1 Time: 0s
************** Catproc Procedures **************
Parallel Phase #:13 [PDB$SEED] Files:103 Time: 11s
Restart Phase #:14 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:15 [PDB$SEED] Files:127 Time: 13s
Restart Phase #:16 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:17 [PDB$SEED] Files:12 Time: 2s
Restart Phase #:18 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:19 [PDB$SEED] Files:43 Time: 5s
Restart Phase #:20 [PDB$SEED] Files:1 Time: 0s
***************** Catproc Views ****************
Parallel Phase #:21 [PDB$SEED] Files:32 Time: 28s
Restart Phase #:22 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:23 [PDB$SEED] Files:2 Time: 18s
Restart Phase #:24 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:25 [PDB$SEED] Files:15 Time: 798s
Restart Phase #:26 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:27 [PDB$SEED] Files:1 Time: 0s
***************** Catpdeps PLBs ****************
Serial Phase #:28 [PDB$SEED] Files:14 Time: 3s
Serial Phase #:29 [PDB$SEED] Files:1 Time: 0s
Restart Phase #:30 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:31 [PDB$SEED] Files:12 Time: 314s
Restart Phase #:32 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:33 [PDB$SEED] Files:12 Time: 12s
Restart Phase #:34 [PDB$SEED] Files:1 Time: 0s
*************** Catproc CDB Views **************
Serial Phase #:35 [PDB$SEED] Files:1 Time: 2s
Restart Phase #:36 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:38 [PDB$SEED] Files:1 Time: 0s
***************** Catproc PLBs *****************
Serial Phase #:39 [PDB$SEED] Files:320 Time: 148s
Serial Phase #:40 [PDB$SEED] Files:1 Time: 0s
Restart Phase #:41 [PDB$SEED] Files:1 Time: 0s
Serial Phase #:42 [PDB$SEED] Files:31 Time: 5s
Restart Phase #:43 [PDB$SEED] Files:1 Time: 0s
*************** Catproc DataPump ***************
Serial Phase #:44 [PDB$SEED] Files:3 Time: 58s
Restart Phase #:45 [PDB$SEED] Files:1 Time: 0s
****************** Catproc SQL *****************
Parallel Phase #:46 [PDB$SEED] Files:12 Time: 330s
Restart Phase #:47 [PDB$SEED] Files:1 Time: 1s
Parallel Phase #:48 [PDB$SEED] Files:11 Time: 19s
Restart Phase #:49 [PDB$SEED] Files:1 Time: 0s
Parallel Phase #:50 [PDB$SEED] Files:8 Time: 13s
Restart Phase #:51 [PDB$SEED] Files:1 Time: 0s
************* Final Catproc scripts ************
Serial Phase #:52 [PDB$SEED] Files:1 Time: 1188s
Restart Phase #:53 [PDB$SEED] Files:1 Time: 1s
Serial Phase #:54 [PDB$SEED] Files:1 Time: 1s
------------------------------------------------------
Phases [0-54] End Time:[2024_08_05 01:42:14]
Container Lists Inclusion:[PDB$SEED] Exclusion:[NONE]
------------------------------------------------------
Grand Total Time: 3390s [PDB$SEED]
LOG FILES: (/app/oracle/admin/oracle23/scripts/catpcatcatpcat*.log)
Time: 3364s For CDB$ROOT
Time: 3529s For PDB(s)
Grand Total Time: 6893s
LOG FILES: (/app/oracle/admin/oracle23/scripts/catpcatcatpcatcdbroot*.log)
SQL> host /app/oracle/product/23ai/perl/bin/perl /app/oracle/product/23ai/rdbms/admin/catcon.pl -n 1 -l/app/oracle/admin/oracle23/scripts -v -b owminst -U"SYS"/"&&sysPassword" /app/oracle/product/23ai/rdbms/admin/owminst.plb;
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/app/oracle/admin/oracle23/scripts/owminst_catcon_62978.lst]
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/owminst*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/owminst_*.lst] files for spool files, if any
catcon::catconInit2: start initializing catcon
catcon::catconInit2: finished constructing connect strings
catcon::catconInit2: start CDB-specific processing
catcon::catconInit2: finished examining instances which can be used to run scripts/SQL statements.
catcon::catconInit2: DBMS version: 23.0.0.0.0.
catcon::catconInit2: started SQL*Plus processes.
catcon::catconInit2: initialization completed successfully (2024-08-05 01:44:43)
catcon::catconExec: start executing scripts/SQL statements
catcon::catconExec_int: finished examining scripts/SQL statements to be executed.
catcon::catconExec_int: will run all scripts/statements against the Root (Container CDB$ROOT) of a CDB
catcon::log_script_execution: executing "@/app/oracle/product/23ai/rdbms/admin/owminst.plb" in container CDB$ROOT using process 0
catcon::catconExec_int: run all scripts/statements against remaining 1 PDBs
catcon::log_script_execution: executing "@/app/oracle/product/23ai/rdbms/admin/owminst.plb" in container PDB$SEED using process 0
catcon::catconExec: finished executing scripts/SQL statements
catcon::catconWrapUp: (PID=62978) about to free up all resources
catcon::catconWrapUp: done
catcon.pl: completed successfully
SQL> host /app/oracle/product/23ai/perl/bin/perl /app/oracle/product/23ai/rdbms/admin/catcon.pl -n 1 -l/app/oracle/admin/oracle23/scripts -v -b pupbld -u SYSTEM/&&systemPassword-U "SYS"/"&&sysPassword" /app/oracle/product/23ai/sqlplus/admin/pupbld.sql;
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/app/oracle/admin/oracle23/scripts/pupbld_catcon_63526.lst]
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/pupbld*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/pupbld_*.lst] files for spool files, if any
catcon::catconInit2: start initializing catcon
catcon::catconInit2: finished constructing connect strings
catcon::catconInit2: start CDB-specific processing
catcon::catconInit2: finished examining instances which can be used to run scripts/SQL statements.
catcon::catconInit2: DBMS version: 23.0.0.0.0.
catcon::catconInit2: started SQL*Plus processes.
catcon::catconInit2: initialization completed successfully (2024-08-05 01:48:31)
catcon::catconExec: start executing scripts/SQL statements
catcon::catconExec_int: finished examining scripts/SQL statements to be executed.
catcon::catconExec_int: will run all scripts/statements against the Root (Container CDB$ROOT) of a CDB
catcon::log_script_execution: executing "@/app/oracle/product/23ai/sqlplus/admin/pupbld.sql" in container CDB$ROOT using process 0
catcon::catconExec_int: run all scripts/statements against remaining 1 PDBs
catcon::log_script_execution: executing "@/app/oracle/product/23ai/sqlplus/admin/pupbld.sql" in container PDB$SEED using process 0
catcon::catconExec: finished executing scripts/SQL statements
catcon::catconWrapUp: (PID=63526) about to free up all resources
catcon::catconWrapUp: done
catcon.pl: completed successfully
SQL> host /app/oracle/product/23ai/perl/bin/perl /app/oracle/product/23ai/rdbms/admin/catcon.pl -n 1 -l/app/oracle/admin/oracle23/scripts -v -b pupdel -u SYS/&&sysPassword -U "SYS"/"&&sysPassword"/app/oracle/product/23ai/sqlplus/admin/pupdel.sql;
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/app/oracle/admin/oracle23/scripts/pupdel_catcon_63602.lst]
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/pupdel*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/pupdel_*.lst] files for spool files, if any
catcon::catconInit2: start initializing catcon
catcon::catconInit2: finished constructing connect strings
catcon::catconInit2: start CDB-specific processing
catcon::catconInit2: finished examining instances which can be used to run scripts/SQL statements.
catcon::catconInit2: DBMS version: 23.0.0.0.0.
catcon::catconInit2: started SQL*Plus processes.
catcon::catconInit2: initialization completed successfully (2024-08-05 01:48:35)
catcon::catconExec: start executing scripts/SQL statements
catcon::catconExec_int: finished examining scripts/SQL statements to be executed.
catcon::catconExec_int: will run all scripts/statements against the Root (Container CDB$ROOT) of a CDB
catcon::log_script_execution: executing "@/app/oracle/product/23ai/sqlplus/admin/pupdel.sql" in container CDB$ROOT using process 0
catcon::catconExec_int: run all scripts/statements against remaining 1 PDBs
catcon::log_script_execution: executing "@/app/oracle/product/23ai/sqlplus/admin/pupdel.sql" in container PDB$SEED using process 0
catcon::catconExec: finished executing scripts/SQL statements
catcon::catconWrapUp: (PID=63602) about to free up all resources
catcon::catconWrapUp: done
catcon.pl: completed successfully
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/sqlPlusHelp.log append
SQL> host /app/oracle/product/23ai/perl/bin/perl /app/oracle/product/23ai/rdbms/admin/catcon.pl -n 1 -l/app/oracle/admin/oracle23/scripts -v -b hlpbld -u SYS/&&sysPassword -U "SYS"/"&&sysPassword"-a 1 /app/oracle/product/23ai/sqlplus/admin/help/hlpbld.sql;
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/app/oracle/admin/oracle23/scripts/hlpbld_catcon_63678.lst]
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/hlpbld*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/hlpbld_*.lst] files for spool files, if any
catcon::catconInit2: start initializing catcon
catcon::catconInit2: finished constructing connect strings
catcon::catconInit2: start CDB-specific processing
catcon::catconInit2: finished examining instances which can be used to run scripts/SQL statements.
catcon::catconInit2: DBMS version: 23.0.0.0.0.
catcon::catconInit2: started SQL*Plus processes.
catcon::catconInit2: initialization completed successfully (2024-08-05 01:48:39)
catcon::catconExec: start executing scripts/SQL statements
catcon::catconExec_int: finished examining scripts/SQL statements to be executed.
catcon::catconExec_int: will run all scripts/statements against the Root (Container CDB$ROOT) of a CDB
catcon::log_script_execution: executing "@/app/oracle/product/23ai/sqlplus/admin/help/hlpbld.sql" in container CDB$ROOT using process 0
catcon::catconExec_int: run all scripts/statements against remaining 1 PDBs
catcon::log_script_execution: executing "@/app/oracle/product/23ai/sqlplus/admin/help/hlpbld.sql" in container PDB$SEED using process 0
catcon::catconExec: finished executing scripts/SQL statements
catcon::catconWrapUp: (PID=63678) about to free up all resources
catcon::catconWrapUp: done
catcon.pl: completed successfully
SQL> spool off
SQL> spool off
not spooling currently
SQL> @/app/oracle/admin/oracle23/scripts/CreateClustDBViews.sql
SQL> SET VERIFY OFF
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/CreateClustDBViews.log append
SQL> host /app/oracle/product/23ai/perl/bin/perl /app/oracle/product/23ai/rdbms/admin/catcon.pl -n 1 -l/app/oracle/admin/oracle23/scripts -v -b catclust-U "SYS"/"&&sysPassword"/app/oracle/product/23ai/rdbms/admin/catclust.sql;
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/app/oracle/admin/oracle23/scripts/catclust_catcon_63755.lst]
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/catclust*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/catclust_*.lst] files for spool files, if any
catcon::catconInit2: start initializing catcon
catcon::catconInit2: finished constructing connect strings
catcon::catconInit2: start CDB-specific processing
catcon::catconInit2: finished examining instances which can be used to run scripts/SQL statements.
catcon::catconInit2: DBMS version: 23.0.0.0.0.
catcon::catconInit2: started SQL*Plus processes.
catcon::catconInit2: initialization completed successfully (2024-08-05 01:48:43)
catcon::catconExec: start executing scripts/SQL statements
catcon::catconExec_int: finished examining scripts/SQL statements to be executed.
catcon::catconExec_int: will run all scripts/statements against the Root (Container CDB$ROOT) of a CDB
catcon::log_script_execution: executing "@/app/oracle/product/23ai/rdbms/admin/catclust.sql" in container CDB$ROOT using process 0
catcon::catconExec_int: run all scripts/statements against remaining 1 PDBs
catcon::log_script_execution: executing "@/app/oracle/product/23ai/rdbms/admin/catclust.sql" in container PDB$SEED using process 0
catcon::catconExec: finished executing scripts/SQL statements
catcon::catconWrapUp: (PID=63755) about to free up all resources
catcon::catconWrapUp: done
catcon.pl: completed successfully
SQL> host /app/oracle/product/23ai/perl/bin/perl /app/oracle/product/23ai/rdbms/admin/catcon.pl -n 1 -l/app/oracle/admin/oracle23/scripts -v -b catfinal-U "SYS"/"&&sysPassword"/app/oracle/product/23ai/rdbms/admin/catfinal.sql;
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/app/oracle/admin/oracle23/scripts/catfinal_catcon_64205.lst]
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/catfinal*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/catfinal_*.lst] files for spool files, if any
catcon::catconInit2: start initializing catcon
catcon::catconInit2: finished constructing connect strings
catcon::catconInit2: start CDB-specific processing
catcon::catconInit2: finished examining instances which can be used to run scripts/SQL statements.
catcon::catconInit2: DBMS version: 23.0.0.0.0.
catcon::catconInit2: started SQL*Plus processes.
catcon::catconInit2: initialization completed successfully (2024-08-05 01:49:05)
catcon::catconExec: start executing scripts/SQL statements
catcon::catconExec_int: finished examining scripts/SQL statements to be executed.
catcon::catconExec_int: will run all scripts/statements against the Root (Container CDB$ROOT) of a CDB
catcon::log_script_execution: executing "@/app/oracle/product/23ai/rdbms/admin/catfinal.sql" in container CDB$ROOT using process 0
catcon::catconExec_int: run all scripts/statements against remaining 1 PDBs
catcon::log_script_execution: executing "@/app/oracle/product/23ai/rdbms/admin/catfinal.sql" in container PDB$SEED using process 0
catcon::catconExec: finished executing scripts/SQL statements
catcon::catconWrapUp: (PID=64205) about to free up all resources
catcon::catconWrapUp: done
catcon.pl: completed successfully
SQL> spool off
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/postDBCreation.log append
SQL> @/app/oracle/admin/oracle23/scripts/lockAccount.sql
SQL> SET VERIFY OFF
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/lockAccount.log append
SQL> alter session set "_oracle_script"=true;
Session altered.
SQL> alter pluggable database pdb$seed close;
Pluggable database altered.
SQL> alter pluggable database pdb$seed open;
Pluggable database altered.
SQL> BEGIN
2 FOR item IN ( SELECT USERNAME, AUTHENTICATION_TYPE FROM DBA_USERS WHERE ACCOUNT_STATUS IN ('OPEN', 'LOCKED', 'EXPIRED') AND USERNAME NOT IN (
3 'SYS','SYSTEM','SYSRAC','XS$NULL') )
4 LOOP
5 IF item.AUTHENTICATION_TYPE='PASSWORD' THEN
6 dbms_output.put_line('Locking and Expiring: ' || item.USERNAME);
7 execute immediate 'alter user ' ||
8 sys.dbms_assert.enquote_name(
9 sys.dbms_assert.schema_name(
10 item.USERNAME),false) || ' password expire account lock' ;
11 ELSE
12 dbms_output.put_line('Locking: ' || item.USERNAME);
13 execute immediate 'alter user ' ||
14 sys.dbms_assert.enquote_name(
15 sys.dbms_assert.schema_name(
16 item.USERNAME),false) || ' account lock' ;
17 END IF;
18 END LOOP;
19 END;
20 /
PL/SQL procedure successfully completed.
SQL> alter session set container=pdb$seed;
Session altered.
SQL> BEGIN
2 FOR item IN ( SELECT USERNAME, AUTHENTICATION_TYPE FROM DBA_USERS WHERE ACCOUNT_STATUS IN ('OPEN', 'LOCKED', 'EXPIRED') AND USERNAME NOT IN (
3 'SYS','SYSTEM','SYSRAC','XS$NULL') )
4 LOOP
5 IF item.AUTHENTICATION_TYPE='PASSWORD' THEN
6 dbms_output.put_line('Locking and Expiring: ' || item.USERNAME);
7 execute immediate 'alter user ' ||
8 sys.dbms_assert.enquote_name(
9 sys.dbms_assert.schema_name(
10 item.USERNAME),false) || ' password expire account lock' ;
11 ELSE
12 dbms_output.put_line('Locking: ' || item.USERNAME);
13 execute immediate 'alter user ' ||
14 sys.dbms_assert.enquote_name(
15 sys.dbms_assert.schema_name(
16 item.USERNAME),false) || ' account lock' ;
17 END IF;
18 END LOOP;
19 END;
20 /
PL/SQL procedure successfully completed.
SQL> alter session set container=cdb$root;
Session altered.
SQL> spool off
SQL> @/app/oracle/admin/oracle23/scripts/postDBCreation.sql
SQL> SET VERIFY OFF
SQL> spool /app/oracle/admin/oracle23/scripts/postDBCreation.log append
SQL> host /app/oracle/product/23ai/OPatch/datapatch -skip_upgrade_check -db oracle23;
SQL Patching tool version 23.5.0.24.07 Lim on Mon Aug 5 01:49:11 2024
Copyright (c) 2012, 2024, Oracle. All rights reserved.
Log file for this invocation: /app/oracle/product/23ai/cfgtoollogs/sqlpatch/sqlpatch_sid_oracle23_ts_2024_08_05_01_49_11_pid_64296/sqlpatch_invocation.log
Connecting to database...OK
Gathering database info...done
Note: Datapatch will only apply or rollback SQL fixes for PDBs
that are in an open state, no patches will be applied to closed PDBs.
Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
(Doc ID 1585822.1)
Bootstrapping registry and package to current versions...done
Determining current state...done
Current state of interim SQL patches:
No interim patches found
Current state of release update SQL patches:
Binary registry:
No release update patches installed
PDB CDB$ROOT:
No release update patches installed
PDB PDB$SEED:
No release update patches installed
Adding patches to installation queue and performing prereq checks...done
Installation queue:
For the following PDBs: CDB$ROOT PDB$SEED
No interim patches need to be rolled back
No release update patches need to be installed
No interim patches need to be applied
SQL Patching tool complete on Mon Aug 5 01:49:21 2024
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> set echo on
SQL> create spfile='/app/oracle/product/23ai/dbs/spfileoracle23.ora' FROM pfile='/app/oracle/admin/oracle23/scripts/init.ora';
File created.
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> host /app/oracle/product/23ai/perl/bin/perl /app/oracle/product/23ai/rdbms/admin/catcon.pl -n 1 -l/app/oracle/admin/oracle23/scripts -v -b utlrp -U "SYS"/"&&sysPassword"/app/oracle/product/23ai/rdbms/admin/utlrp.sql;
catcon::set_log_file_base_path: ALL catcon-related output will be written to [/app/oracle/admin/oracle23/scripts/utlrp_catcon_64609.lst]
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/utlrp*.log] files for output generated by scripts
catcon::set_log_file_base_path: catcon: See [/app/oracle/admin/oracle23/scripts/utlrp_*.lst] files for spool files, if any
catcon::catconInit2: start initializing catcon
catcon::catconInit2: finished constructing connect strings
catcon::catconInit2: start CDB-specific processing
catcon::catconInit2: finished examining instances which can be used to run scripts/SQL statements.
catcon::catconInit2: DBMS version: 23.0.0.0.0.
catcon::catconInit2: started SQL*Plus processes.
catcon::catconInit2: initialization completed successfully (2024-08-05 01:49:24)
catcon::catconExec: start executing scripts/SQL statements
catcon::catconExec_int: finished examining scripts/SQL statements to be executed.
catcon::catconExec_int: will run all scripts/statements against the Root (Container CDB$ROOT) of a CDB
catcon::log_script_execution: executing "@/app/oracle/product/23ai/rdbms/admin/utlrp.sql" in container CDB$ROOT using process 0
catcon::catconExec_int: run all scripts/statements against remaining 1 PDBs
catcon::log_script_execution: executing "@/app/oracle/product/23ai/rdbms/admin/utlrp.sql" in container PDB$SEED using process 0
catcon::catconExec: finished executing scripts/SQL statements
catcon::catconWrapUp: (PID=64609) about to free up all resources
catcon::catconWrapUp: done
catcon.pl: completed successfully
SQL> select comp_id, status from dba_registry;
COMP_ID STATUS
------------------------------ -----------
CATALOG VALID
CATPROC VALID
RAC OPTION OFF
XDB VALID
OWM VALID
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected to an idle instance.
SQL> startup ;
ORACLE instance started.
Total System Global Area 1238952200 bytes
Fixed Size 5359880 bytes
Variable Size 335544320 bytes
Database Buffers 889192448 bytes
Redo Buffers 8855552 bytes
Database mounted.
Database opened.
SQL> spool off
SQL> select instance from v$thread where instance like 'UNNAMED_INSTANCE%';
no rows selected
SQL> @/app/oracle/admin/oracle23/scripts/PDBCreation.sql
SQL> SET VERIFY OFF
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/PDBCreation.log append
SQL> @/app/oracle/admin/oracle23/scripts/plug_oracle23pdb1.sql
SQL> SET VERIFY OFF
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/plugDatabase.log append
SQL> spool /app/oracle/admin/oracle23/scripts/plugDatabase.log append
SQL> host mkdir -p /app/oracle/oradata/ORACLE23/oracle23pdb1;
SQL> select d.name||'|'||t.name from v$datafile d,V$TABLESPACE t where d.con_id=2 and d.ts#=t.ts# and d.con_id=t.con_id;
D.NAME||'|'||T.NAME
--------------------------------------------------------------------------------
/app/oracle/oradata/ORACLE23/pdbseed/system01.dbf|SYSTEM
/app/oracle/oradata/ORACLE23/pdbseed/sysaux01.dbf|SYSAUX
/app/oracle/oradata/ORACLE23/pdbseed/undotbs01.dbf|UNDOTBS1
SQL> select d.name||'|'||t.name from v$tempfile d,V$TABLESPACE t where d.con_id=2 and d.ts#=t.ts# and d.con_id=t.con_id;
D.NAME||'|'||T.NAME
--------------------------------------------------------------------------------
/app/oracle/oradata/ORACLE23/pdbseed/temp01.dbf|TEMP
SQL> CREATE PLUGGABLE DATABASE "oracle23pdb1" ADMIN USER PDBADMIN IDENTIFIED BY "&&pdbadminPassword" ROLES=(CONNECT) PARALLELfile_name_convert=('/app/oracle/oradata/ORACLE23/pdbseed',
2 '/app/oracle/oradata/ORACLE23/oracle23pdb1') STORAGE INHERIT;
Pluggable database created.
SQL> select name from v$containers where upper(name) = 'ORACLE23PDB1';
NAME
--------------------------------------------------------------------------------
ORACLE23PDB1
SQL> alter pluggable database "oracle23pdb1" open;
Pluggable database altered.
SQL> alter system register;
System altered.
SQL> ALTER SESSION SET CONTAINER = "oracle23pdb1";
Session altered.
SQL> select con_id from v$pdbs where con_id > 1 and upper(name)=upper('oracle23pdb1') ;
CON_ID
----------
3
SQL> SELECT bigfile FROM sys.cdb_tablespaces WHERE tablespace_name='TEMP' AND CON_ID=0;
no rows selected
SQL> CREATE SMALLFILE TEMPORARY TABLESPACE TEMP_NON_ENC TEMPFILE '/app/oracle/oradata/ORACLE23/oracle23pdb1/temp01_NON_ENC.dbf' SIZE 20480K REUSE AUTOEXTEND ON NEXT 64M MAXSIZE UNLIMITED;
Tablespace created.
SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE "TEMP_NON_ENC";
Database altered.
SQL> alter session set container=cdb$root;
Session altered.
SQL> ALTER PLUGGABLE DATABASE "oracle23pdb1" CLOSE IMMEDIATE;
Pluggable database altered.
SQL> alter pluggable database "oracle23pdb1" open;
Pluggable database altered.
SQL> alter system register;
System altered.
SQL> ALTER SESSION SET CONTAINER = "oracle23pdb1";
Session altered.
SQL> drop tablespace TEMP including contents and datafiles;
Tablespace dropped.
SQL> CREATE SMALLFILE TEMPORARY TABLESPACE TEMP TEMPFILE '/app/oracle/oradata/ORACLE23/oracle23pdb1/temp01.dbf' SIZE 20480K REUSE AUTOEXTEND ON NEXT 64M MAXSIZE UNLIMITED;
Tablespace created.
SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE "TEMP";
Database altered.
SQL> alter session set container=cdb$root;
Session altered.
SQL> ALTER PLUGGABLE DATABASE "oracle23pdb1" CLOSE IMMEDIATE;
Pluggable database altered.
SQL> alter pluggable database "oracle23pdb1" open;
Pluggable database altered.
SQL> alter system register;
System altered.
SQL> ALTER SESSION SET CONTAINER = "oracle23pdb1";
Session altered.
SQL> drop tablespace TEMP_NON_ENC including contents and datafiles;
Tablespace dropped.
SQL> @/app/oracle/admin/oracle23/scripts/postPDBCreation_oracle23pdb1.sql
SQL> SET VERIFY OFF
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> alter session set container="oracle23pdb1";
Session altered.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/postPDBCreation.log append
SQL> CREATE BIGFILE TABLESPACE "USERS" LOGGINGDATAFILE '/app/oracle/oradata/ORACLE23/oracle23pdb1/users01.dbf' SIZE 7M REUSE AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENTAUTO;
Tablespace created.
SQL> ALTER DATABASE DEFAULT TABLESPACE "USERS";
Database altered.
SQL> host /app/oracle/product/23ai/OPatch/datapatch -skip_upgrade_check -db oracle23 -pdbs oracle23pdb1;
SQL Patching tool version 23.5.0.24.07 Lim on Mon Aug 5 01:52:52 2024
Copyright (c) 2012, 2024, Oracle. All rights reserved.
Log file for this invocation: /app/oracle/product/23ai/cfgtoollogs/sqlpatch/sqlpatch_sid_oracle23_ts_2024_08_05_01_52_52_pid_65191/sqlpatch_invocation.log
Connecting to database...OK
Gathering database info...done
Note: Datapatch will only apply or rollback SQL fixes for PDBs
that are in an open state, no patches will be applied to closed PDBs.
Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
(Doc ID 1585822.1)
Bootstrapping registry and package to current versions...done
Determining current state...done
Current state of interim SQL patches:
No interim patches found
Current state of release update SQL patches:
Binary registry:
No release update patches installed
PDB ORACLE23PDB1:
No release update patches installed
Adding patches to installation queue and performing prereq checks...done
Installation queue:
For the following PDBs: ORACLE23PDB1
No interim patches need to be rolled back
No release update patches need to be installed
No interim patches need to be applied
SQL Patching tool complete on Mon Aug 5 01:53:01 2024
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> select property_value from database_properties where property_name='LOCAL_UNDO_ENABLED';
PROPERTY_VALUE
--------------------------------------------------------------------------------
TRUE
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> alter session set container="oracle23pdb1";
Session altered.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/postPDBCreation.log append
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> alter session set container="oracle23pdb1";
Session altered.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/postPDBCreation.log append
SQL> select TABLESPACE_NAME from cdb_tablespaces a,dba_pdbs b where a.con_id=b.con_id and UPPER(b.pdb_name)=UPPER('oracle23pdb1');
TABLESPACE_NAME
------------------------------
SYSTEM
SYSAUX
UNDOTBS1
TEMP
USERS
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> alter session set container="oracle23pdb1";
Session altered.
SQL> set echo on
SQL> spool /app/oracle/admin/oracle23/scripts/postPDBCreation.log append
SQL> Select count(*) from dba_registry where comp_id = 'DV' and status='VALID';
COUNT(*)
----------
0
SQL> show con_name;
CON_NAME
------------------------------
ORACLE23PDB1
SQL> alter session set container="oracle23pdb1";
Session altered.
SQL> select count(a.username) from cdb_users a, v$pdbs b where a.con_id=b.con_id and a.username=upper('PDBADMIN') and upper(b.name)=upper('oracle23pdb1');
COUNT(A.USERNAME)
-----------------
1
SQL> show con_name;
CON_NAME
------------------------------
ORACLE23PDB1
SQL> alter session set container="CDB$ROOT";
Session altered.
SQL> alter session set container=CDB$ROOT;
Session altered.
SQL> exit;
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.5.0.24.07
|
db 접속 후 버전 및 상태 확인
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$ sqlplus / as sysdba
SQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Mon Aug 05 01:59:33 2024
Version 23.5.0.24.07
Copyright (c) 1982, 2024, Oracle. All rights reserved.
Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.5.0.24.07
SQL> select instance_name, version, status from v$instance;
INSTANCE_NAME VERSION STATUS
---------------- ----------------- ------------
oracle23 23.0.0.0.0 OPEN
|
정상적으로 설치됨
참조 :
https://blogs.oracle.com/database/post/oracle-23ai-now-generally-available
https://www.oracle.com/database/free/get-started/
https://docs.oracle.com/en/database/oracle/oracle-database/23/nfcoa/toc.htm
https://docs.oracle.com/en/database/oracle/oracle-database/23/xeinl/deinstalling-oracle-database-free-software-linux.html#GUID-3F29EE7C-4546-49EE-B894-027EE3E371BF
https://tuna.tistory.com/81
https://positivemh.tistory.com/1088
https://positivemh.tistory.com/1095
https://pat98.tistory.com/1205
'ORACLE > Install' 카테고리의 다른 글
Oracle 19c Single DB RU(Release Update) 패치 가이드 (2) | 2024.08.17 |
---|---|
Oracle Linux 8.4에 Oracle 19c 설치 가이드 (0) | 2024.08.14 |
Oracle Linux 4.8에 Oracle 10g R2 설치 가이드 (0) | 2024.08.02 |
Oracle Linux 8.4에 Oracle 23ai Free RPM 설치 및 삭제 가이드 (0) | 2024.05.03 |
Oracle 23ai Free non-container 설치 시도(실패) (0) | 2024.04.28 |