怎么老是记不住这几个命令

1220阅读 0评论2020-02-04 brjl
分类:LINUX

nmcli connection modify ens33 ipv4.method manual ipv4.addresses "192.168.204.200/24"

touch {1..5}.txt

恢复dg缺失的归档
RMAN> recover database from service primary_db noredo SECTION SIZE 1G USING COMPRESSED BACKUPSET;

跟踪会话
# strace -Tttfv -s 8192 -o /tmp/stace.out -p

oradebug setospid 328020
oradebug dump pga_summary 1
oradebug tracefile_name

oradebug setospid 328020
oradebug dump heapdump 536870917
oradebug tracefile_name

过滤注释和空格
grep -v "^#" ansible.cfg | grep -v "^$"

进入带加号的目录
cd -- +MGMTDB

替换文本
sed -i  "s/192.168.187.145/192.168.187.146/"  listener.ora

超过500MB的文件,显示前30个吧
find /u01 -type f -size +500M -exec du -sm {} \; |sort -rn|head -30

挂个光驱
mount -r /dev/sr0 /mnt

vmware 默认安装的linux,来个图形吧
yum -y groupinstall "Server with GUI"  安装GUI
startx                                               切换到图形界面


改IP
vi /etc/sysconfig/network-scripts/ifcfg-ens33
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.187.145
NETMASK=255.255.255.0
GATEWAY=192.168.187.2

恢复个ADG
rman target sys/oracle@tns_orcl auxiliary sys/oracle@tns_orcldg 
RMAN> duplicate target database for standby from active database dorecover nofilenamecheck;


10g 上的rpm包
yum install -y compat-gcc-34 compat-gcc-34-c++ compat-libcap1 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel.i686 glibc-devel.x86_64 glibc-headers ksh libXp libXp.i686 libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-develutil-linux 


cd "C:\Program Files (x86)\VMware\VMware Workstation\"
mkdir c:\vm\sharedisk\
vmware-vdiskmanager.exe -c -s 6g -a lsilogic -t 2 "c:\vm\sharedisk\ocr_vote.vmdk"
vmware-vdiskmanager.exe -c -s 10g -a lsilogic -t 2 "c:\vm\sharedisk\data.vmdk"
vmware-vdiskmanager.exe -c -s 2g -a lsilogic -t 2 "c:\vm\sharedisk\fra.vmdk"

动态x$视图相关信息
v$fixed_table    v$fixed_view_definition   v$indexed_fixed_column
上一篇:visudo 内牛满面(无需root账号启停crs)
下一篇:碎片:ssh有时卡,有时慢,试试加速ssh的方法