What type of VMware vSphere virtual hard disk
What type of VMware vSphere virtual hard disk 特性 精简置备(Thin Provisioning) 厚置备延迟零(Thick Provision Lazy Zeroed) 厚置备零(Thick Provision Eager Zeroed) 空间分配 按需分配 预先分配全部空间 预先分配全部空间 创建时间 快速 中等 最慢 初始磁盘块置零 否 否 是 性能 首次写入时性能较低 首次写入未置零块时性能较低 最佳性能,无额外写入开销 空间利用率 高 低 低 安全性(数据残留风险) 高 高 低(无旧数据残留风险) 适用场景 需要节省空间的场景 需要较好性能且快速创建磁盘的场景 需要最佳性能和安全性的场景 支持高级特性(如 FT) 否 否 是 PowerShell 查询虚拟机磁盘类型: Get-VM | ForEach {Get-harddisk -VM $_ | Select-Object -Property Parent, Name, StorageFormat} | Format-Tab...
Security vulnerability scan detects exposed port 8888 on ora.oc4j resource
Security vulnerability scan detects exposed port 8888 on ora.oc4j resource SYMPTOMS [root@rac1 ~]# netstat -tunlp | grep 8888tcp6 0 0 127.0.0.1:8888 :::* LISTEN 3107/java[root@rac1 ~]# lsof -i :8888COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEjava 3107 grid 162u IPv6 88310 0t0 TCP localhost:ddi-tcp-1 (LISTEN)[root@rac1 ~]# ps -p 3107 -o pid,cmd PID CMD 3107 /u01/app/11.2.0/grid/jdk/bin/java -server -Xcheck:jni -Xms128M -Xmx3...
Setting SQLPLUS Prompt
Setting SQLPLUS Prompt Global Mode ORACLECLIENT/glogin.sql∗∗ORACLE_CLIENT/glogin.sql* *ORACLECLIENT/glogin.sql∗∗ORACLE_HOME/sqlplus/admin/glogin.sql ~$ cat /mnt/e/instantclient_23_6/glogin.sql---- Copyright (c) 1988, 2005, Oracle. All Rights Reserved.---- NAME-- glogin.sql---- DESCRIPTION-- SQL*Plus global login "site profile" file---- Add any SQL*Plus commands here that are to be executed when a-- user starts SQL*Plus, or uses the SQL*Plus CONNECT command.---- USAGE-- This scri...
How to display the explain plan of an SQL statement
How to display the explain plan of an SQL statement Use Autotrace in SQL*Plus. SQL> SET AUTOTRACE TRACEONLYSQL> SELECT * FROM dual;Execution Plan----------------------------------------------------------Plan hash value: 272002086--------------------------------------------------------------------------| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |--------------------------------------------------------------------------| 0 | SELECT STATEMENT | | ...
Overview of Oracle Database Performance Problems
Overview of Oracle Database Performance Problems 表没有正确的创建索引 -> 错误的执行计划 表没有及时的分析 -> 错误的执行计划 热快 -> 数据库的争用(反向索引?) 锁的阻塞 -> 业务设计缺陷 SQL 解析消耗大量的 CPU -> 变量绑定 低效的 SQL -> SQL 自身的问题 数据库整体负载过程 -> 架构设计的问题 性能问题定位 SQL 层 如果能定位到 SQL,就不需要从会话层面分析。 execution plan, 10053, 10046 会话层 如果能定位到会话,就不需要从系统层面分析。 VSESSION,VSESSION, VSESSION,VSESSTAT, VSESSIONWAIT,VSESSION_WAIT, VSESSIONWAIT,VSQL, V$LOCK, SQL_TRACE 系统层 如果无法定位任何性能问题,从系统层面入手。 AWR,OS tools(top, iostat, vmstat) 不要迷恋优化器 优化器永远...
Memory Allocation on Linux
Memory Allocation on Linux Linux 内存分配过程: free -> buff/cache -> swap ~]# free -g total used free shared buff/cache availableMem: 7 1 5 0 0 5Swap: 5 0 5 Top swap usage of processes. for file in /proc/*/status; do awk '/VmSwap|Name|^Pid/{printf $2 " " $3}END{print ""}' $file; done | sort -k 3 -n -r | head 内存不足,无法满足程序需求时,会发生内存溢出,进而导致系统杀死当前占用最多内存的进程。 Out of memor...
HPE P2000 G3 Service Manual
HPE P2000 G3 Service Manual Replacing a Failed Disk Remove the failed drive, and replace with the new one. Connect to the web cosole of the storage array. Select the MSA > Provisioning > Manage Global Spares. Also you can Managing dedicated spares | for a vdisk. Tick the replacement drive > Modify Spares Note: If you cannot see the drive, and/or it is flagged LEFTOVR it may have metadata on it that needs removing. That’s it, the vdisk that had the failed drive will 'cl...
Recommended Partitioning Scheme For Linux
Recommended Partitioning Scheme For Linux System Partition: /boot/efi: 200 MiB /boot: 1024 MiB /: 10 GiB /usr: 10 GiB /var: 10 GiB /home: 10 GiB /opt: 10 GiB swap: 4-8 GiB Data Partition: /data: 500 GiB 标准分区扩容: 磁盘上还有剩余空间,且待扩容分区与剩余空间是连续的。扩展标准分区,需要先删除分区,再创建分区,提示删除标签时,选 NO。 磁盘上没有剩余空间,需要挂载新磁盘,然后采用软连接方式,将数据目录链接到新磁盘上。 mv log /data/log; ln -s /data/log . LVM 分区扩容:
How to Reset Windows Server 2008 R2 Password with Installation Disc
How to Reset Windows Server 2008 R2 Password with Installation Disc A Windows server 2008 r2 installation disc could save your life in an emergency. All you need is insert the Server 2008 r2 installation disc in the machine, and then follow these steps to Enter Windows Recovery Environment: Boot from the Windows Server 2008 R2 installation disc. From the Install Windows menu, click Next. Select Repair your computer, and then Next. Click Command prompt to open a window, run the follow...
File Sharing
File Sharing SMB/CIFS Linux 客户端上挂载 Windows SMB 共享。 mount -t cifs -o username=smb,password=Welcome@123,vers=3.0 //192.168.3.180/ad-share /tmp/mnt 拷贝 CIFS 共享目录里的文件时,提示文件句柄过期。 cp: cannot open'test/test,txt,bak' for reading: stale file handle 将挂载选项 vers=3.0 调整为 vers=1.0 后,正常访问。 FTP NFS














