[root@vapp0301~]#catpull_log.sh#!/bin/bash#date=2014-09-16#istopulltheapplogecho-ne"\033[31m\033[05mthetimeformatoftheriskandbpis%Y-%m-%d%H:%M:%S.theposis%H:%M:%S\033[0m"read-p"pleaseinputyourapp":APPread-p"pleaseinputyourtimeinterval":TIME1read-p"pleaseinp..
分类:
其他好文 时间:
2014-09-16 16:06:40
阅读次数:
189
1- Read the usage policy of the website. I know this is the third time I mention that, but that tells you its important :)2- Always try to use the mob...
分类:
其他好文 时间:
2014-09-16 09:11:30
阅读次数:
189
[root@testdb11a ~]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory.Adding read,write permissions for group.Removin...
分类:
数据库 时间:
2014-09-16 00:16:39
阅读次数:
376
oracle 利用flashback将备库激活为read wirte(10g 及上)环境:OS: CENTOS 6.5 X64DB: ORACLE 10.2.0.5主库操作:SQL> alter system switch logfile;System altered.SQL> 备库操作取消归档应用...
分类:
数据库 时间:
2014-09-16 00:04:29
阅读次数:
404
[centos@lob1scripts]$vish03.sh#!/bin/bash#Program#Thisprogramshows"HelloWorld!"inyourscreen.#History#2014/09/15lobsMonreleasePATH=/bin:/sbin:/usr/bin:usr/sbin:/usr/local/bin:usr/local/sbin:~binexport=PATHecho-e"Iwilluse‘touch‘commandtocreate3files."read-p"P..
分类:
其他好文 时间:
2014-09-15 19:47:30
阅读次数:
277
一、问题描述Mysql主从复制模式中,slave上报错“relaylogreadfailure”,导致主从同步停止。mysql>showslavestatus\G***************************1.row***************************Slave_IO_State:Master_Host:10.0.0.93Master_User:slaveuserMaster_Port:3306Connect_Retr..
分类:
数据库 时间:
2014-09-15 19:42:59
阅读次数:
269
(一) 导出scott用户下的emp表到xx用户下1.1 创建DIRECTORY,用sys用户创建create directory DATA_PUMP_DIR as 'D:\dir_dp';1.2 在该目录上对scott用户授读写权限Grant read,write on directory DAT...
分类:
其他好文 时间:
2014-09-15 19:08:49
阅读次数:
284
在Java语言的IO编程中,读取文件是分两个步骤:1、将文件中的数据转换为流,2、读取流内部的数据。其中第一个步骤由系统完成,只需要创建对应的流对象即可,对象创建完成以后步骤1就完成了,第二个步骤使用输入流对象中的read方法即可实现了。使用输入流进行编程时,代码一般分为3个部分:1、创建流对象,2...
分类:
编程语言 时间:
2014-09-15 19:05:29
阅读次数:
194
如何跳过文件首行读取文件呢?我们可以使用readline来实现,打开文件后,首先readline,然后再使用while继续读取文件的其他行进行处理。这种方法比较适合同时处理多个文件的场景,具体的实现方式如下: #!/usr/bin/perl open( READ, ") { ......
分类:
其他好文 时间:
2014-09-15 17:23:09
阅读次数:
177
Java NIO非堵塞应用通常适用用在I/O读写等方面,我们知道,系统运行的性能瓶颈通常在I/O读写,包括对端口和文件的操作上,过去,在打开一个I/O通道后,read()将一直等待在端口一边读取字节内容,如果没有内容进来,read()也是傻傻的等,这会影响我们程序继续做其他事情,那么改进做法就是开设...
分类:
编程语言 时间:
2014-09-15 11:14:28
阅读次数:
312