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