Oracle Linux 6.4配置NFS
Oracle Linux NFS
Oracle Linux xargs Command
xargs
ORA-00845: MEMORY_TARGET not supported on this system
Oracle Linux Database ORA_00845 Memory
Linux sed Tips
--Removing the last comma from each line.sed 's/,$//' xxx.file
Linux Ctrl Z
Ctrl +Z brings a process into background. For instance, while you're editing a file using vi, hitting Ctrl+z brings user back to command line, and makes vi run as a background process.Use jobs command to list all background process.Use fg % to bring the process back.
SELinux tips
Closing SELinuxset enforce 0
Setting up Samba3.6.9 on Oracle Linux 6
Samba Oracle Linux Windows
Getting Approximate Row Count of a Huge File
This blog is originated from stackoverflow.comStep 1: head -n filename > newfile // get the first n lines into newfile,e.g. n =5Step 2: Get the huge file size, AStep 3: Get the newfile size,BStep 4: (A/B)*n is approximately equal to the exact line count.Set n to ...
Login Oracle Instance Even When sysdba Cannot Do So
This blog is based on:http://tech.e2sn.com/oracle/troubleshooting/hang/how-to-log-on-even-when-sysdba-can-t-do-so sqlplus -prelim "/as sysdba" When archiver is stuck, users with DBA ...
Find Out Top Ten Largest Files in Linux
du -a | sort -nr | head -10 -a : all files, not just directory. -n: sort by string numeric value.-r: reverse the order. By default, sort is in the ascending o...
Linux create soft link
ln -s source target
Oracle Linux JRE Study
Oracle Linux 6 U3 comes with Open-JDK 1.6 and 1.7, 1.7 is the default jvm.java -versionjava version "1.7.0_45"OpenJDK Runtime Environment (rhel-2.4.3.2.0.1.el6_4-x86_64 u45-b15...
Unable to Find Sources for Current Linux Kernel
Unable to find sources for current Linux Kernel. Specify KERN_DIR=<directory> and run againyum install gcc yum install kernel-uek-devel-$(uname -r)
Linux下高效地删除一个大文件最后N行记录
head 和管道, sed等都可以完成这个任务。但是效率非常低,因为他们都需要遍历整个文件。Oracle Linux带了Truncate命令。truncate --size=<new size> <file_name>计算出删除的行的字节数,并得到新...
grep搜索匹配行前后几行
$grep -5 'parttern' inputfile //打印匹配行的前后5行 $grep -C 5 'parttern' inputfile //打印匹配行的前后5行 $grep -A 5 'parttern' inputfile //打印匹配行的后5行 $grep -B 5 'parttern' input...
Linux开放1521端口允许网络连接Oracle Listener
症状:1. TCP/IP连接是通的。可以用ping 命令测试。2. 服务器上Oracle Listener已经启动。 lsnrctl status 查看listener状态 lsnrctl start 启动Oracle listener3. 客...
vi 命令
查找替换vi /etc/hosts: s/nl/ol/g 当前行所有nl 替换成olyy复制当前行p粘帖0: 移至行首
linux Find命令
/u01目录下查找log文件find /u01 -type f -nam *.log注意要加通配符。
Linux auto-mount
1. login as root2. vi /etc/fstab写入:/dev/sdb/u01 ext4defaults1 1
Linux开启SSH
service sshd start启动service sshd status查看状态之后可以用winscp远程访问了。