安装数据库
1.不要创建容器数据库
2.设置字符集为utf-8
3.设置联机日志为300m
4.检查创建pfile文件追加_allow_insert_with_update_check=TRUE 值,以initORCL.ora启动数据库,重新创建spfile
alter system set "_optimizer_nlj_hj_adaptive_join"= FALSE scope=spfile sid='*';
19c安装emcc13.4追加下列参数
alter system set "_optimizer_strans_adaptive_pruning" = FALSE scope=spfile sid='*';
alter system set "_px_adaptive_dist_method" = OFF scope=spfile sid='*';
alter system set "_sql_plan_directive_mgmt_control" = 0 scope=spfile sid='*';
alter system set "_optimizer_dsdir_usage_control" = 0 scope=spfile sid='*';
alter system set "_optimizer_use_feedback" = FALSE scope=spfile sid='*';
alter system set "_optimizer_gather_feedback" = FALSE scope=spfile sid='*';
alter system set "_optimizer_performance_feedback" = OFF scope=spfile sid='*';
alter system set "_allow_insert_with_update_check" = TRUE scope=spfile sid='*';
alter system set parallel_min_servers=0;
alter system set session_cached_cursors=400 scope=spfile;
alter system set log_buffer=8M scope=spfile;
alter system set open_cursors=600 scope=spfile;
alter system set pga_aggregate_target=2G scope=spfile;
alter system set processes=1000 scope=spfile;
alter system set session_cached_cursors=400 scope=spfile;
alter system set sga_max_size=8G scope=spfile;
alter system set sga_target=8G scope=spfile;
alter system set shared_pool_size=1G scope=spfile;
startup pfile='/opt/oracle/product/19c/dbhome_1/dbs/initORCL.ora';
SQL> create spfile from memory;
下记为参考值
--------------------------------------------------------------
alter system set session_cached_cursors=400 scope=spfile;
alter system set shared_pool_size=1G scope=spfile;
alter system set sga_target=5G scope=spfile;
alter system set pga_aggregate_target=1G scope=spfile;
Recommendation : All adaptive features parameters should be unset for improved SQL performance
---------------19c 安装emcc13.5报错处理-------------------------
alter system reset "_optimizer_nlj_hj_adaptive_join" scope=both sid='*';
alter system reset "_optimizer_strans_adaptive_pruning" scope=both sid='*';
alter system reset "_px_adaptive_dist_method" scope=both sid='*';
alter system reset "_sql_plan_directive_mgmt_control" scope=both sid='*';
alter system reset "_optimizer_dsdir_usage_control" scope=both sid='*';
alter system reset "_optimizer_use_feedback" scope=both sid='*';
alter system reset "_optimizer_gather_feedback" scope=both sid='*';
alter system reset "_optimizer_performance_feedback" scope=both sid='*';
准备环境
1.Oracle Management Service的内核参数要求:
[oracle@emcc ~]$ cat /proc/sys/net/ipv4/ip_local_port_range
11000 65000
修改/etc/sysctl.d/ 下面三个配置文件值,以防万一都修改而后重启系统生效
net.ipv4.ip_local_port_range = 11000 65000
[root@emcc sysctl.d]# ls
99-initial-sysctl.conf 99-sysctl.conf
99-oracle-database-preinstall-19c-sysctl.conf
2.建立目录:
mkdir /u01/app/middleware -p
mkdir /u01/app/agent -p
chown -R oracle:oinstall /u01/app
chmod -R 755 /u01/app
3.安装软件包
yum install gcc glibc-devel.i686 -y
3.启动emcc
2.启动oms
<OMS_HOME>
cd /app/middleware/bin
./emctl getversion oms
./emctl status oms
./emctl status oms -details
./emctl status oms -details -sysman_pwd Oracle123
./emctl list properties
./emctl stop oms
./emctl start oms
启动日志
/app/gc_inst1/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs/EMGC_OMS1.out
启动agent
3.启动agent
<AGENT_HOME>
cd /u02/agent/agent_13.3.0.0.0/bin
./emctl getversion agent
./emctl status agent
./emctl stop agent
./emctl start agent
./emctl pingOMS
./emctl upload agent
端口:3872
4.数据库启动错误
SQL> startup
ORACLE instance started.
Total System Global Area 5368708176 bytes
Fixed Size 8907856 bytes
Variable Size 1207959552 bytes
Database Buffers 4143972352 bytes
Redo Buffers 7868416 bytes
Database mounted.
ORA-03113: end-of-file on communication channel
Process ID: 6634
Session ID: 261 Serial number: 21790
5.修改密码
./emctl config oms -change_repos_pwd -use_sys_pwd -sys_pwd
原因闪回空间不足,增加 db_recovery_file_dest_size大小。
SQL> show parameters recov
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string /opt/oracle/fast_recovery_area
db_recovery_file_dest_size big integer 8256M
db_unrecoverable_scn_tracking boolean TRUE
recovery_parallelism integer 0
remote_recovery_file_dest string
SQL> alter system set db_recovery_file_dest_size=20G scope=spfile;
emcli agent 下载
https://dbakevlar.com/2013/10/em12c-agent-deployment-on-windows/