1 ███████ ██ ████████ ██ ██ ██ ██ ██ ██ ██
2 ██░░░░░██ ░██ ██░░░░░░ ░██ ░██ ░██░██ ░██ ░██ ░██
3 ██ ░░██ ██████ ██████ █████ ░██ █████ ░██ ░██ █████ ░██ ░██░██ ███████ ██████ ██████ ██████ ░██ ░██
4░██ ░██░░██░░█ ░░░░░░██ ██░░░██ ░██ ██░░░██░█████████░██████ ██░░░██ ░██ ░██░██░░██░░░██ ██░░░░ ░░░██░ ░░░░░░██ ░██ ░██
5░██ ░██ ░██ ░ ███████ ░██ ░░ ░██░███████░░░░░░░░██░██░░░██░███████ ░██ ░██░██ ░██ ░██░░█████ ░██ ███████ ░██ ░██
6░░██ ██ ░██ ██░░░░██ ░██ ██ ░██░██░░░░ ░██░██ ░██░██░░░░ ░██ ░██░██ ░██ ░██ ░░░░░██ ░██ ██░░░░██ ░██ ░██
7 ░░███████ ░███ ░░████████░░█████ ███░░██████ ████████ ░██ ░██░░██████ ███ ███░██ ███ ░██ ██████ ░░██ ░░████████ ███ ███
8 ░░░░░░░ ░░░ ░░░░░░░░ ░░░░░ ░░░ ░░░░░░ ░░░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░ ░░░ ░░ ░░░░░░ ░░ ░░░░░░░░ ░░░ ░░░
9
10
11请选择安装模式 [单机(si)/单机ASM(sa)/集群(rac)] : si
12
13数据库安装模式: single
14
15请选择数据库版本 [11/12/19/21] : 19
16
17数据库版本: 19
18
19#==============================================================#
20配置本地 YUM 源
21#==============================================================#
22
23[BaseOS]
24name=BaseOS
25baseurl=file:///mnt/BaseOS
26enabled=1
27gpgcheck=0
28[AppStream]
29name=AppStream
30baseurl=file:///mnt/AppStream
31enabled=1
32gpgcheck=0
33
34#==============================================================#
35禁用防火墙
36#==============================================================#
37
38● firewalld.service - firewalld - dynamic firewall daemon
39 Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
40 Active: inactive (dead)
41 Docs: man:firewalld(1)
42
433月 28 16:40:22 uosv20 systemd[1]: Starting firewalld - dynamic firewall daemon...
443月 28 16:40:25 uosv20 systemd[1]: Started firewalld - dynamic firewall daemon.
453月 28 16:40:26 uosv20 firewalld[959]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will be removed in a future release. Please consider disabling it now.
463月 28 18:29:38 uosv20 systemd[1]: Stopping firewalld - dynamic firewall daemon...
473月 28 18:29:40 uosv20 systemd[1]: firewalld.service: Succeeded.
483月 28 18:29:40 uosv20 systemd[1]: Stopped firewalld - dynamic firewall daemon.
49
50#==============================================================#
51禁用 SELinux
52#==============================================================#
53
54SELinux status: disabled
55
56#==============================================================#
57配置 nsysctl.conf
58#==============================================================#
59
60NOZEROCONF=yes
61
62#==============================================================#
63YUM 静默安装依赖包
64#==============================================================#
65
66bc-1.07.1-7.uelc20.1.x86_64
67binutils-2.30-117.0.1.uelc20.04.x86_64
68未安装软件包 compat-libcap1
69gcc-8.5.0-10.1.0.3.uelc20.03.x86_64
70gcc-c++-8.5.0-10.1.0.3.uelc20.03.x86_64
71elfutils-libelf-0.187-4.uelc20.02.x86_64
72elfutils-libelf-devel-0.187-4.uelc20.02.x86_64
73glibc-2.28-189.5.0.2.uelc20.05.x86_64
74glibc-devel-2.28-189.5.0.2.uelc20.05.x86_64
75libaio-0.3.112-5.up1.uelc20.01.x86_64
76libaio-devel-0.3.112-5.up1.uelc20.01.x86_64
77libgcc-8.5.0-10.1.0.3.uelc20.03.x86_64
78libstdc++-8.5.0-10.1.0.3.uelc20.03.x86_64
79libstdc++-devel-8.5.0-10.1.0.3.uelc20.03.x86_64
80libxcb-1.13.1-4.uelc20.1.x86_64
81libX11-1.6.8-5.uelc20.4.x86_64
82libXau-1.0.9-3.uelc20.x86_64
83libXi-1.7.10-1.uelc20.x86_64
84libXrender-0.9.10-9.uelc20.1.x86_64
85make-4.2.1-12.uelc20.2.x86_64
86net-tools-2.0-0.53.20160912git.uelc20.3.x86_64
87smartmontools-7.1-1.0.2.uelc20.x86_64
88sysstat-11.7.3-7.uelc20.01.x86_64
89e2fsprogs-1.45.6-18.uelc20.01.x86_64
90e2fsprogs-libs-1.45.6-18.uelc20.01.x86_64
91unzip-6.0-46.uelc20.4.x86_64
92openssh-clients-8.2p1-19.up1.0.2.uelc20.04.x86_64
93readline-7.0-12.uelc20.1.x86_64
94readline-devel-7.0-12.uelc20.1.x86_64
95psmisc-23.3-1.uelc20.01.x86_64
96ksh-20120801-255.uelc20.1.x86_64
97nfs-utils-2.5.1-8.up3.uelc20.04.x86_64
98tar-1.32-3.uelc20.03.x86_64
99device-mapper-multipath-0.8.4-30.uelc20.1.x86_64
100avahi-0.7-21.uelc20.6.x86_64
101ntp-4.2.8p15-3.uelc20.02.x86_64
102chrony-4.2-1.0.1.uelc20.02.x86_64
103libXtst-1.2.3-9.uelc20.1.x86_64
104libXrender-devel-0.9.10-9.uelc20.1.x86_64
105fontconfig-devel-2.13.1-5.uelc20.01.x86_64
106policycoreutils-2.9-19.uelc20.x86_64
107未安装软件包 policycoreutils-python
108librdmacm-37.2-1.0.3.uelc20.x86_64
109未安装软件包 libnsl*
110libibverbs-37.2-1.0.3.uelc20.x86_64
111未安装软件包 compat-openssl10
112policycoreutils-python-utils-2.9-19.uelc20.noarch
113未安装软件包 elfutils*
114glibc-2.28-189.5.0.2.uelc20.05.x86_64
115
116#==============================================================#
117配置主机名
118#==============================================================#
119
120uosv20
121
122#==============================================================#
123配置 /etc/hosts 文件
124#==============================================================#
125
126127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
127::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
128192.168.6.141 uosv20
129
130#==============================================================#
131创建用户和组
132#==============================================================#
133
134oracle 用户:
135
136用户id=54321(oracle) 组id=54321(oinstall) 组=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba)
137
138
139#==============================================================#
140配置 Avahi-daemon 服务
141#==============================================================#
142
143● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
144 Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)
145 Active: inactive (dead)
146
1473月 28 18:30:43 uosv20 avahi-daemon[1073]: No service file found in /etc/avahi/services.
1483月 28 18:30:43 uosv20 avahi-daemon[1073]: Files changed, reloading.
1493月 28 18:30:43 uosv20 avahi-daemon[1073]: No service file found in /etc/avahi/services.
1503月 28 18:30:45 uosv20 avahi-daemon[1073]: Got SIGTERM, quitting.
1513月 28 18:30:45 uosv20 avahi-daemon[1073]: Leaving mDNS multicast group on interface ens33.IPv6 with address fe80::88f9:eb9b:43bc:6d1c.
1523月 28 18:30:45 uosv20 systemd[1]: Stopping Avahi mDNS/DNS-SD Stack...
1533月 28 18:30:45 uosv20 avahi-daemon[1073]: Leaving mDNS multicast group on interface ens33.IPv4 with address 192.168.6.141.
1543月 28 18:30:45 uosv20 avahi-daemon[1073]: avahi-daemon 0.7 exiting.
1553月 28 18:30:45 uosv20 systemd[1]: avahi-daemon.service: Succeeded.
1563月 28 18:30:45 uosv20 systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
157
158#==============================================================#
159配置透明大页 && NUMA && 磁盘 IO 调度器
160#==============================================================#
161
162args="ro resume=/dev/mapper/uos-swap rd.lvm.lv=uos/root rd.lvm.lv=uos/swap rhgb quiet numa=off transparent_hugepage=never elevator=deadline"
163-resume=/dev/mapper/uos-swap
164-args="ro
165args="ro resume=/dev/mapper/uos-swap rd.lvm.lv=uos/root rd.lvm.lv=uos/swap rhgb quiet numa=off transparent_hugepage=never elevator=deadline"
166-elevator=deadline"
167-transparent_hugepage=never
168
169#==============================================================#
170配置 sysctl.conf
171#==============================================================#
172
173net.core.busy_read = 100
174vm.dirty_ratio = 50
175kernel.sysrq = 0
176kernel.panic = 3
177fs.aio-max-nr = 1048576
178fs.file-max = 6815744
179kernel.shmall = 2097152
180kernel.shmmax = 8352497663
181kernel.shmmni = 4096
182kernel.sem = 250 32000 100 128
183net.ipv4.ip_local_port_range = 9000 65500
184net.core.rmem_default = 262144
185net.core.rmem_max = 4194304
186net.core.wmem_default = 262144
187net.core.wmem_max = 1048576
188vm.min_free_kbytes = 32626
189net.ipv4.conf.ens33.rp_filter = 1
190vm.swappiness = 10
191kernel.panic_on_oops = 1
192kernel.randomize_va_space = 2
193kernel.numa_balancing = 0
194
195#==============================================================#
196配置 RemoveIPC
197#==============================================================#
198
199[Login]
200RemoveIPC=no
201
202#==============================================================#
203配置 /etc/security/limits.conf 和 /etc/pam.d/login
204#==============================================================#
205
206查看 /etc/security/limits.conf:
207
208* soft core 0
209* hard core 0
210oracle soft nofile 1024
211oracle hard nofile 65536
212oracle soft stack 10240
213oracle hard stack 32768
214oracle soft nproc 2047
215oracle hard nproc 16384
216oracle hard memlock unlimited
217oracle soft memlock unlimited
218
219查看 /etc/pam.d/login 文件:
220
221auth substack system-auth
222auth include postlogin
223account required pam_nologin.so
224account include system-auth
225password include system-auth
226session required pam_selinux.so close
227session required pam_loginuid.so
228session required pam_selinux.so open
229session required pam_namespace.so
230session optional pam_keyinit.so force revoke
231session include system-auth
232session include postlogin
233-session optional pam_ck_connector.so
234session required pam_limits.so
235session required /lib64/security/pam_limits.so
236
237#==============================================================#
238配置 /dev/shm
239#==============================================================#
240
241/dev/mapper/uos-root / xfs defaults 0 0
242UUID=c1af6e7c-5714-4a4e-b05a-2f06a1942dd7 /boot xfs defaults 0 0
243/dev/mapper/uos-swap none swap defaults 0 0
244tmpfs /dev/shm tmpfs size=8156736k 0 0
245
246#==============================================================#
247安装 rlwrap 插件
248#==============================================================#
249
250成功安装 rlwrap: rlwrap 0.44
251
252#==============================================================#
253Root 用户环境变量
254#==============================================================#
255
256if [ -f ~/.bashrc ]; then
257 . ~/.bashrc
258fi
259PATH=$PATH:$HOME/bin
260export PATH
261alias so='su - oracle'
262export PS1="[`whoami`@`hostname`:"'$PWD]$ '
263
264#==============================================================#
265Oracle 用户环境变量
266#==============================================================#
267
268if [ -f ~/.bashrc ]; then
269 . ~/.bashrc
270fi
271umask 022
272export TMP=/tmp
273export TMPDIR=$TMP
274export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
275export ORACLE_BASE=/u01/app/oracle
276export ORACLE_HOME=/u01/app/oracle/product/19.3.0/db
277export ORACLE_TERM=xterm
278export TNS_ADMIN=$ORACLE_HOME/network/admin
279export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
280export ORACLE_SID=lucifer
281export PATH=/usr/sbin:$PATH
282export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin:$PATH
283export PERL5LIB=$ORACLE_HOME/perl/lib
284alias sas='sqlplus / as sysdba'
285alias awr='sqlplus / as sysdba @?/rdbms/admin/awrrpt'
286alias ash='sqlplus / as sysdba @?/rdbms/admin/ashrpt'
287alias alert='vi $ORACLE_BASE/diag/rdbms/*/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
288export PS1="[`whoami`@`hostname`:"'$PWD]$ '
289export CV_ASSUME_DISTID=OL7
290alias sqlplus='rlwrap sqlplus'
291alias rman='rlwrap rman'
292alias adrci='rlwrap adrci'
293
294#==============================================================#
295静默解压 Oracle 软件包
296#==============================================================#
297
298正在静默解压缩 Oracle 软件包,请稍等:
299
300.---- -. -. . . . .
301( .',----- - - ' ' ' __
302 \_/ ;--:- __--------------------___ ____=========_||___
303__U__n_^_''__[. ooo___ | |_!_||_!_||_!_||_!_| | |..|_i_|..|_i_|..|
304c(_ ..(_ ..(_ ..( /,,,,,,] | |___||___||___||___| | | |
305,_\___________'_|,L______],|______________________|_i,!________________!_i
306/;_(@)(@)==(@)(@) (o)(o) (o)^(o)--(o)^(o) (o)(o)-(o)(o)
307""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"'""
308
309
310静默解压 Oracle 软件安装包: /soft/LINUX.X64_193000_db_home.zip
311
312静默解压 OPatch 软件补丁包: /soft/p6880880_*.zip
313
314静默解压 Oracle 软件补丁包: /soft/p35943157*.zip
315
316静默解压 OJVM 软件补丁包: /soft/p35926646*.zip
317
318#==============================================================#
319Oracle 安装静默文件
320#==============================================================#
321
322oracle.install.option=INSTALL_DB_SWONLY
323UNIX_GROUP_NAME=oinstall
324INVENTORY_LOCATION=/u01/app/oraInventory
325ORACLE_BASE=/u01/app/oracle
326oracle.install.db.InstallEdition=EE
327oracle.install.db.DBA_GROUP=dba
328oracle.install.db.OPER_GROUP=oper
329oracle.install.db.OSBACKUPDBA_GROUP=backupdba
330oracle.install.db.OSDGDBA_GROUP=dgdba
331oracle.install.db.OSKMDBA_GROUP=kmdba
332oracle.install.db.OSRACDBA_GROUP=racdba
333oracle.install.db.rootconfig.executeRootScript=false
334oracle.install.db.rootconfig.configMethod=
335oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0
336
337#==============================================================#
338静默安装数据库软件
339#==============================================================#
340
341Preparing the home to patch...
342Applying the patch /soft/35943157...
343Successfully applied the patch.
344The log can be found at: /tmp/InstallActions2024-03-28_06-33-29PM/installerPatchActions_2024-03-28_06-33-29PM.log
345Launching Oracle Database Setup Wizard...
346
347[WARNING] [INS-13014] Target environment does not meet some optional requirements.
348 CAUSE: Some of the optional prerequisites are not met. See logs for details. installActions2024-03-28_06-33-29PM.log
349 ACTION: Identify the list of failed prerequisite checks from the log: installActions2024-03-28_06-33-29PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
350The response file for this session can be found at:
351 /u01/app/oracle/product/19.3.0/db/install/response/db_2024-03-28_06-33-29PM.rsp
352
353You can find the log of this install session at:
354 /tmp/InstallActions2024-03-28_06-33-29PM/installActions2024-03-28_06-33-29PM.log
355
356As a root user, execute the following script(s):
357 1. /u01/app/oraInventory/orainstRoot.sh
358 2. /u01/app/oracle/product/19.3.0/db/root.sh
359
360Execute /u01/app/oraInventory/orainstRoot.sh on the following nodes:
361[uosv20]
362Execute /u01/app/oracle/product/19.3.0/db/root.sh on the following nodes:
363[uosv20]
364
365
366Successfully Setup Software with warning(s).
367Moved the install session logs to:
368 /u01/app/oraInventory/logs/InstallActions2024-03-28_06-33-29PM
369
370#==============================================================#
371执行 root 脚本
372#==============================================================#
373
374Changing permissions of /u01/app/oraInventory.
375Adding read,write permissions for group.
376Removing read,write,execute permissions for world.
377
378Changing groupname of /u01/app/oraInventory to oinstall.
379The execution of the script is complete.
380Check /u01/app/oracle/product/19.3.0/db/install/root_uosv20_2024-03-28_18-59-46-687369635.log for the output of root script
381
382#==============================================================#
383OJVM 补丁安装
384#==============================================================#
385
386Oracle Interim Patch Installer version 12.2.0.1.40
387Copyright (c) 2024, Oracle Corporation. All rights reserved.
388
389PREREQ session
390
391Oracle Home : /u01/app/oracle/product/19.3.0/db
392Central Inventory : /u01/app/oraInventory
393 from : /u01/app/oracle/product/19.3.0/db/oraInst.loc
394OPatch version : 12.2.0.1.40
395OUI version : 12.2.0.7.0
396Log file location : /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2024-03-28_18-59-52PM_1.log
397
398Invoking prereq "checkconflictagainstohwithdetail"
399
400Prereq "checkConflictAgainstOHWithDetail" passed.
401
402OPatch succeeded.
403Oracle Interim Patch Installer version 12.2.0.1.40
404Copyright (c) 2024, Oracle Corporation. All rights reserved.
405
406
407Oracle Home : /u01/app/oracle/product/19.3.0/db
408Central Inventory : /u01/app/oraInventory
409 from : /u01/app/oracle/product/19.3.0/db/oraInst.loc
410OPatch version : 12.2.0.1.40
411OUI version : 12.2.0.7.0
412Log file location : /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2024-03-28_19-00-10PM_1.log
413
414Verifying environment and performing prerequisite checks...
415OPatch continues with these patches: 35926646
416
417Do you want to proceed? [y|n]
418Y (auto-answered by -silent)
419User Responded with: Y
420All checks passed.
421
422Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
423(Oracle Home = '/u01/app/oracle/product/19.3.0/db')
424
425
426Is the local system ready for patching? [y|n]
427Y (auto-answered by -silent)
428User Responded with: Y
429Backing up files...
430Applying interim patch '35926646' to OH '/u01/app/oracle/product/19.3.0/db'
431
432Patching component oracle.javavm.server, 19.0.0.0.0...
433
434Patching component oracle.javavm.server.core, 19.0.0.0.0...
435
436Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...
437
438Patching component oracle.rdbms, 19.0.0.0.0...
439
440Patching component oracle.javavm.client, 19.0.0.0.0...
441Patch 35926646 successfully applied.
442Log file location: /u01/app/oracle/product/19.3.0/db/cfgtoollogs/opatch/opatch2024-03-28_19-00-10PM_1.log
443
444OPatch succeeded.
445
446#==============================================================#
447Oracle 软件版本
448#==============================================================#
449
450
451SQL*Plus: Release 19.0.0.0.0 - Production
452Version 19.22.0.0.0
453
454
455#==============================================================#
456Oracle 补丁信息
457#==============================================================#
458
45935926646;OJVM RELEASE UPDATE: 19.22.0.0.240116 (35926646)
46035943157;Database Release Update : 19.22.0.0.240116 (35943157)
46129585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)
462
463OPatch succeeded.
464
465
466#==============================================================#
467配置监听
468#==============================================================#
469
470
471Parsing command line arguments:
472 Parameter "silent" = true
473 Parameter "responsefile" = /u01/app/oracle/product/19.3.0/db/assistants/netca/netca.rsp
474Done parsing command line arguments.
475Oracle Net Services Configuration:
476Profile configuration complete.
477Oracle Net Listener Startup:
478 Running Listener Control:
479 /u01/app/oracle/product/19.3.0/db/bin/lsnrctl start LISTENER
480 Listener Control complete.
481 Listener started successfully.
482Listener configuration complete.
483Oracle Net Services configuration successful. The exit code is 0
484
485检查监听状态:
486
487
488LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 28-MAR-2024 19:02:50
489
490Copyright (c) 1991, 2023, Oracle. All rights reserved.
491
492Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=uosv20)(PORT=1521)))
493STATUS of the LISTENER
494------------------------
495Alias LISTENER
496Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
497Start Date 28-MAR-2024 19:02:39
498Uptime 0 days 0 hr. 0 min. 10 sec
499Trace Level off
500Security ON: Local OS Authentication
501SNMP OFF
502Listener Parameter File /u01/app/oracle/product/19.3.0/db/network/admin/listener.ora
503Listener Log File /u01/app/oracle/diag/tnslsnr/uosv20/listener/alert/log.xml
504Listening Endpoints Summary...
505 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=uosv20)(PORT=1521)))
506 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
507The listener supports no services
508The command completed successfully
509
510#==============================================================#
511静默建库命令
512#==============================================================#
513
514dbca -silent -createDatabase \
515-ignorePrereqFailure \
516-templateName General_Purpose.dbc \
517-responseFile NO_VALUE \
518-gdbName lucifer \
519-sid lucifer \
520-sysPassword oracle \
521-systemPassword oracle \
522-redoLogFileSize 100 \
523-datafileDestination /oradata \
524-storageType FS \
525-enableArchive true \
526-archiveLogDest /oradata \
527-databaseConfigType SINGLE \
528-characterset AL32UTF8 \
529-nationalCharacterSet AL16UTF16 \
530-emConfiguration NONE \
531-automaticMemoryManagement false \
532-totalMemory 3982 \
533-databaseType OLTP \
534-createAsContainerDatabase false
535
536#==============================================================#
537创建数据库
538#==============================================================#
539
540[WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards.
541 CAUSE:
542a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
543b.The password entered is a keyword that Oracle does not recommend to be used as password
544 ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
545[WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards.
546 CAUSE:
547a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
548b.The password entered is a keyword that Oracle does not recommend to be used as password
549 ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
550Prepare for db operation
55110% complete
552Copying database files
55340% complete
554Creating and starting Oracle instance
55542% complete
55646% complete
55750% complete
55854% complete
55960% complete
560Completing Database Creation
56166% complete
56269% complete
56370% complete
564Executing Post Configuration Actions
565100% complete
566Database creation complete. For details check the logfiles at:
567 /u01/app/oracle/cfgtoollogs/dbca/lucifer.
568Database Information:
569Global Database Name:lucifer
570System Identifier(SID):lucifer
571Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/lucifer/lucifer.log" for further details.
572
573#==============================================================#
574配置在线重做日志
575#==============================================================#
576
577数据库在线重做日志文件:
578
579
580 THREAD# GROUP# MEMBER size(M)
581---------- ---------- ------------------------------------------------------------------------------------------------------------------------ ----------
582 1 1 /oradata/LUCIFER/redo01.log 100
583 1 2 /oradata/LUCIFER/redo02.log 100
584 1 3 /oradata/LUCIFER/redo03.log 100
585 1 11 /oradata/LUCIFER/onlinelog/o1_mf_11_m0bofcj1_.log 100
586 1 12 /oradata/LUCIFER/onlinelog/o1_mf_12_m0bofcol_.log 100
587 1 13 /oradata/LUCIFER/onlinelog/o1_mf_13_m0bofcry_.log 100
588 1 14 /oradata/LUCIFER/onlinelog/o1_mf_14_m0bofcwo_.log 100
589 1 15 /oradata/LUCIFER/onlinelog/o1_mf_15_m0bofd2p_.log 100
590
591#==============================================================#
592配置 RMAN 备份任务
593#==============================================================#
594
595## OracleBegin
59600 02 * * * /home/oracle/scripts/del_arch.sh
597#00 00 * * 0 /home/oracle/scripts/dbbackup_lv0.sh
598#00 00 * * 1,2,3,4,5,6 /home/oracle/scripts/dbbackup_lv1.sh
599
600#==============================================================#
601配置 glogin.sql
602#==============================================================#
603
604define _editor=vi
605set serveroutput on size 1000000
606set pagesize 9999
607set long 99999
608set trimspool on
609col name format a80
610set termout off
611define gname=idle
612column global_name new_value gname
613select lower(user) || '@' || substr( global_name, 1, decode( dot, 0, length(global_name), dot-1) ) global_name from (select global_name, instr(global_name,'.') dot from global_name );
614ALTER SESSION SET nls_date_format = 'YYYY-MM-DD HH24:MI:SS';
615set sqlprompt '&gname _DATE> '
616set termout on
617
618#==============================================================#
619优化数据库参数
620#==============================================================#
621
622数据库参数:
623
624
625NAME SID SPVALUE VALUE
626-------------------------------------------------- ---------- -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
627_b_tree_bitmap_plans * FALSE FALSE
628_datafile_write_errors_crash_instance * FALSE FALSE
629audit_file_dest * /u01/app/oracle/admin/lucifer/adump /u01/app/oracle/admin/lucifer/adump
630audit_trail * NONE DB
631compatible * 19.0.0 19.0.0
632control_file_record_keep_time * 31 31
633db_block_size * 8192 8192
634db_create_file_dest * /oradata /oradata
635db_file_multiblock_read_count * 128
636db_files * 5000 200
637db_name * lucifer lucifer
638db_writer_processes * 1
639deferred_segment_creation * FALSE FALSE
640diagnostic_dest * /u01/app/oracle /u01/app/oracle
641dispatchers * (PROTOCOL=TCP) (SERVICE=luciferXDB) (PROTOCOL=TCP) (SERVICE=luciferXDB)
642event * 10949 trace name context forever,level 1
643event * 28401 trace name context forever,level 1
644fast_start_parallel_rollback * LOW
645log_archive_dest_1 * location=/oradata/archivelog location=/oradata/archivelog
646log_archive_format * %t_%s_%r.dbf %t_%s_%r.dbf
647max_dump_file_size * unlimited
648max_string_size * STANDARD
649nls_language * AMERICAN AMERICAN
650nls_territory * AMERICA AMERICA
651open_cursors * 1000 300
652optimizer_adaptive_plans * TRUE
653optimizer_adaptive_statistics * FALSE
654optimizer_index_caching * 0
655optimizer_mode * ALL_ROWS
656parallel_force_local * FALSE
657parallel_max_servers * 64 64
658pga_aggregate_target * 1335885824 835715072
659processes * 2000 640
660remote_login_passwordfile * EXCLUSIVE EXCLUSIVE
661session_cached_cursors * 300 50
662sessions * 984
663sga_max_size * 5344591872 3355443200
664sga_target * 5344591872 3355443200
665spfile * /u01/app/oracle/product/19.3.0/db/dbs/spfilelucifer.ora
666statistics_level * TYPICAL
667undo_retention * 10800 900
668
669恭喜!Oracle 单机安装成功,现在是否重启主机:[Y/N] Y