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