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