Oracle 19c Poor Performance With DataPump Tips
Poor Performance With DataPump Export On Large Databases (Doc ID 473423.1)
Data Pump Export Hanging In RAC At ESTIMATE Phase And Slow Performance (Doc ID 1948926.1)
Oracle Exadata Smart Flash Cache Tips
The default flash cache mode is WriteThrough on X4 and earlier systems.
Since April 2017, Oracle Exadata Deployment Assistant (OEDA) enables Write-Back Flash Cache by default if the following conditions are met:
From Exadata Storage Server release 11.2.3.2.0, Exadata Smart Flash Cache can operate either as a Write-through cache or a Write-back cache. Write-through mode is best suited for random repeated reads commonly found in OLTP applications. Write-back mode is best suited for write-intensive applications.
Write-Through -> first write to physical disks and then to flash cache for faster reads. Write-Back -> first write to flash cache and then to physical disk for both faster reads and writes.
Oracle 19c Wait event ‘enq: KO - fast object checkpoint’
There were top event - ‘enq: KO - fast object checkpoint’ while I was doing awr report analysis, and found some test with it and some mos.
From mos: Enq: KO - Fast Object Checkpoint Wait Event (Doc ID 2547319.1)
On reporting queries, there are too many "enq: KO - fast object checkpoint" wait event.
All reporting queries are doing full table scans concurrently. Oracle uses direct path reads instead of db file scattered reads. And direct path reads require a checkpoint
"_serial_direct_read"=NEVER
Oracle 19c load awr report
Tips:
Load data from datapump file created by awrload.sql.
Use awrextr.sql extract data from AWR into a datapump file.
Use same db version is good choise(the awr format are different from db versions.)
Need to check tablespace’s size while load awr data due to the limit of tablespace.
Oracle Recover Tips
Tips:
Wrong msg:
ERROR:
ORA-01017: invalid username/password; logon denied
Solution:
Use orapwd command to recover the password file.
orapwd file=$ORACLE_HOME/dbs/orapwORCL password=Welcome1 force=y // force=y (if the password file is existed, will replace the password file instead by force)
Oracle 19c Analysis SQL in AWR report
There are some sql in SQL ordered by CPU Time AWR report.
These sql were using so many cpu time…

/* SQL Analyze(0) */ select /*+ full(t) parallel(t, 6) parallel_index(t, 6) dbms_stats cursor_sharing_exact use_weak_name_resl dynamic_sampling(0) no_monitoring xmlindex_sel_idx_tbl no_substrb_pad */to_char...
What are these sqls? what are they doing?
Oracle 19c Online statistics gathering between sqlloader and insert append Tips
This is test with sqlloader/insert append sql.
Oracle SQL loader Tips
Unix SSH Timeout Tips
Centos 7.6 + Postgresql 10 Install Tips
实战介绍在 CentOS 7.6 环境下如何 源码安装 Postgresql 10
Ubuntu Change default editor Tips
$ echo export EDITOR=/usr/bin/vim >> ~/.bashrc
$ update-alternatives --config editor
-> 3 (vim.basic)
root@inst-hk01:~# update-alternatives --config editor
There are 4 choices for the alternative editor (providing /usr/bin/editor).
Selection Path Priority Status
------------------------------------------------------------
0 /bin/nano 40 auto mode
1 /bin/ed -100 manual mode
2 /bin/nano 40 manual mode
* 3 /usr/bin/vim.basic 30 manual mode
4 /usr/bin/vim.tiny 10 manual mode
Press <enter> to keep the current choice[*], or type selection number: 3
root@inst-hk01:~#
$ sudo apt-get remove nano
test
$crontab -e
Oracle Linux pstack Tips
Install gdb by yum and there are pstack and gstack in gdb.