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) since Mon 2024-03-25 11:48:53 CST; 60ms ago
41 Docs: man:firewalld(1)
42 Process: 1061 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
43 Main PID: 1061 (code=exited, status=0/SUCCESS)
44
45Mar 25 11:12:31 anolis8 systemd[1]: Starting firewalld - dynamic firewall daemon...
46Mar 25 11:12:33 anolis8 systemd[1]: Started firewalld - dynamic firewall daemon.
47Mar 25 11:12:33 anolis8 firewalld[1061]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will be removed in a future release. Please consider disabling it now.
48Mar 25 11:48:52 anolis8 systemd[1]: Stopping firewalld - dynamic firewall daemon...
49Mar 25 11:48:53 anolis8 systemd[1]: firewalld.service: Succeeded.
50Mar 25 11:48:53 anolis8 systemd[1]: Stopped firewalld - dynamic firewall daemon.
51
52#==============================================================#
53禁用 SELinux
54#==============================================================#
55
56SELinux status: disabled
57
58#==============================================================#
59YUM 静默安装依赖包
60#==============================================================#
61
62bc-1.07.1-5.0.1.an8.x86_64
63binutils-2.30-117.0.1.an8.x86_64
64package compat-libcap1 is not installed
65gcc-8.5.0-10.1.0.3.an8.x86_64
66gcc-c++-8.5.0-10.1.0.3.an8.x86_64
67elfutils-libelf-0.187-4.0.1.an8.x86_64
68elfutils-libelf-devel-0.187-4.0.1.an8.x86_64
69glibc-2.28-189.5.0.2.an8_6.x86_64
70glibc-devel-2.28-189.5.0.2.an8_6.x86_64
71libaio-0.3.112-1.0.1.an8.x86_64
72libaio-devel-0.3.112-1.0.1.an8.x86_64
73libgcc-8.5.0-10.1.0.3.an8.x86_64
74libstdc++-8.5.0-10.1.0.3.an8.x86_64
75libstdc++-devel-8.5.0-10.1.0.3.an8.x86_64
76libxcb-1.13.1-1.el8.x86_64
77libX11-1.7.0-7.an8.x86_64
78libXau-1.0.9-8.an8.x86_64
79libXi-1.7.10-1.an8.x86_64
80libXrender-0.9.10-7.el8.x86_64
81make-4.2.1-11.0.1.an8.x86_64
82net-tools-2.0-0.52.20160912git.an8.x86_64
83smartmontools-7.1-1.0.2.an8.x86_64
84sysstat-11.7.3-7.0.1.an8.x86_64
85e2fsprogs-1.46.0-1.0.1.an8.x86_64
86e2fsprogs-libs-1.46.0-1.0.1.an8.x86_64
87unzip-6.0-46.0.1.an8.x86_64
88openssh-clients-8.0p1-13.0.1.an8.x86_64
89readline-7.0-10.0.1.an8.x86_64
90readline-devel-7.0-10.0.1.an8.x86_64
91psmisc-23.1-5.0.1.an8.x86_64
92ksh-20120801-257.0.1.an8.x86_64
93nfs-utils-2.3.3-51.0.3.an8.x86_64
94tar-1.30-6.0.1.an8.x86_64
95device-mapper-multipath-0.8.4-28.0.1.an8_6.2.x86_64
96avahi-0.7-20.an8.x86_64
97package ntp is not installed
98chrony-4.2-1.0.1.an8.x86_64
99libXtst-1.2.3-7.el8.x86_64
100libXrender-devel-0.9.10-7.el8.x86_64
101fontconfig-devel-2.13.1-4.an8.x86_64
102policycoreutils-2.9-20.an8.x86_64
103package policycoreutils-python is not installed
104librdmacm-37.2-1.0.3.an8.x86_64
105package libnsl* is not installed
106libibverbs-37.2-1.0.3.an8.x86_64
107compat-openssl10-1.0.2o-4.0.1.an8_6.x86_64
108policycoreutils-python-utils-2.9-20.an8.noarch
109package elfutils* is not installed
110glibc-2.28-189.5.0.2.an8_6.x86_64
111
112#==============================================================#
113配置主机名
114#==============================================================#
115
116anolis8
117
118#==============================================================#
119配置 /etc/hosts 文件
120#==============================================================#
121
122127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
123::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
124
125## OracleBegin
126## Public IP
127192.168.6.137 anolis8
128
129#==============================================================#
130创建用户和组
131#==============================================================#
132
133oracle 用户:
134
135uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba)
136
137
138#==============================================================#
139配置 Avahi-daemon 服务
140#==============================================================#
141
142● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
143 Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)
144 Active: inactive (dead)
145
146Mar 25 11:12:36 anolis8 avahi-daemon[910]: New relevant interface virbr0.IPv4 for mDNS.
147Mar 25 11:12:36 anolis8 avahi-daemon[910]: Registering new address record for 192.168.122.1 on virbr0.IPv4.
148Mar 25 11:49:59 anolis8 systemd[1]: Stopping Avahi mDNS/DNS-SD Stack...
149Mar 25 11:49:59 anolis8 avahi-daemon[910]: Got SIGTERM, quitting.
150Mar 25 11:49:59 anolis8 avahi-daemon[910]: Leaving mDNS multicast group on interface virbr0.IPv4 with address 192.168.122.1.
151Mar 25 11:49:59 anolis8 avahi-daemon[910]: Leaving mDNS multicast group on interface ens33.IPv6 with address fe80::20c:29ff:fec3:5ee1.
152Mar 25 11:49:59 anolis8 avahi-daemon[910]: Leaving mDNS multicast group on interface ens33.IPv4 with address 192.168.6.137.
153Mar 25 11:49:59 anolis8 avahi-daemon[910]: avahi-daemon 0.7 exiting.
154Mar 25 11:49:59 anolis8 systemd[1]: avahi-daemon.service: Succeeded.
155Mar 25 11:49:59 anolis8 systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
156
157#==============================================================#
158配置透明大页 && NUMA && 磁盘 IO 调度器
159#==============================================================#
160
161args="ro resume=/dev/mapper/ao-swap rd.lvm.lv=ao/root rd.lvm.lv=ao/swap rhgb quiet $tuned_params cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M numa=off transparent_hugepage=never elevator=deadline"
162-resume=/dev/mapper/ao-swap
163-args="ro
164args="ro resume=/dev/mapper/ao-swap rd.lvm.lv=ao/root rd.lvm.lv=ao/swap rhgb quiet numa=off transparent_hugepage=never elevator=deadline"
165-elevator=deadline"
166-transparent_hugepage=never
167
168#==============================================================#
169配置 sysctl.conf
170#==============================================================#
171
172fs.aio-max-nr = 1048576
173fs.file-max = 6815744
174kernel.shmall = 2097152
175kernel.shmmax = 8126386175
176kernel.shmmni = 4096
177kernel.sem = 250 32000 100 128
178net.ipv4.ip_local_port_range = 9000 65500
179net.core.rmem_default = 262144
180net.core.rmem_max = 4194304
181net.core.wmem_default = 262144
182net.core.wmem_max = 1048576
183vm.min_free_kbytes = 31743
184net.ipv4.conf.ens33.rp_filter = 1
185vm.swappiness = 10
186kernel.panic_on_oops = 1
187kernel.randomize_va_space = 2
188kernel.numa_balancing = 0
189
190#==============================================================#
191配置 nsysctl.conf
192#==============================================================#
193
194NOZEROCONF=yes
195
196#==============================================================#
197配置 RemoveIPC
198#==============================================================#
199
200[Login]
201RemoveIPC=no
202
203#==============================================================#
204配置 /etc/security/limits.conf 和 /etc/pam.d/login
205#==============================================================#
206
207查看 /etc/security/limits.conf:
208
209oracle soft nofile 1024
210oracle hard nofile 65536
211oracle soft stack 10240
212oracle hard stack 32768
213oracle soft nproc 2047
214oracle hard nproc 16384
215oracle hard memlock unlimited
216oracle soft memlock unlimited
217
218查看 /etc/pam.d/login 文件:
219
220auth substack system-auth
221auth include postlogin
222account required pam_nologin.so
223account include system-auth
224password include system-auth
225session required pam_selinux.so close
226session required pam_loginuid.so
227session optional pam_console.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/ao-root / xfs defaults 0 0
242UUID=5b4f444b-7f7f-4cf1-9e1b-474e447b8075 /boot xfs defaults 0 0
243/dev/mapper/ao-swap none swap defaults 0 0
244tmpfs /dev/shm tmpfs size=7935924k 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-25_11-53-50AM/installerPatchActions_2024-03-25_11-53-50AM.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-25_11-53-50AM.log
349 ACTION: Identify the list of failed prerequisite checks from the log: installActions2024-03-25_11-53-50AM.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-25_11-53-50AM.rsp
352
353You can find the log of this install session at:
354 /tmp/InstallActions2024-03-25_11-53-50AM/installActions2024-03-25_11-53-50AM.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[anolis8]
362Execute /u01/app/oracle/product/19.3.0/db/root.sh on the following nodes:
363[anolis8]
364
365
366Successfully Setup Software with warning(s).
367Moved the install session logs to:
368 /u01/app/oraInventory/logs/InstallActions2024-03-25_11-53-50AM
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_anolis8_2024-03-25_12-21-29-545308061.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-25_12-21-33PM_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-25_12-21-48PM_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-25_12-21-48PM_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 25-MAR-2024 12:24:18
489
490Copyright (c) 1991, 2023, Oracle. All rights reserved.
491
492Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=anolis8)(PORT=1521)))
493STATUS of the LISTENER
494------------------------
495Alias LISTENER
496Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
497Start Date 25-MAR-2024 12:24:07
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/anolis8/listener/alert/log.xml
504Listening Endpoints Summary...
505 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=anolis8)(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 3874 \
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_m020k9m2_.log 100
586 1 12 /oradata/LUCIFER/onlinelog/o1_mf_12_m020k9q8_.log 100
587 1 13 /oradata/LUCIFER/onlinelog/o1_mf_13_m020k9tv_.log 100
588 1 14 /oradata/LUCIFER/onlinelog/o1_mf_14_m020k9yn_.log 100
589 1 15 /oradata/LUCIFER/onlinelog/o1_mf_15_m020kb6l_.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 * 1299185664 812646400
659processes * 2000 640
660remote_login_passwordfile * EXCLUSIVE EXCLUSIVE
661session_cached_cursors * 300 50
662sessions * 984
663sga_max_size * 5199888384 3254779904
664sga_target * 5199888384 3254779904
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