常用东东2
时间:2009-04-15 来源:dengfu2345678910
1.loadruuner的匀衡负载:
web_set_sockets_option("OVERLAPPED_SEND", "0"); 2. 午夜十分不能做什么?
struct tm{ int second; //取得当前秒数(在分钟后);取值区间为[0,59]
int minute; //取得当前分钟数(在小时后);取值区间为[0,59]
int hour; //取得当前小时数(从凌晨0点开始);取值区间为[0,23]
int day; //取得当前天数(从上月结束开始);取值区间为[1,31]
int month; //取得当前月份数(从1月开始);取值区间为[0,11]
int year; //取得当前年份数(从1900年开始)
int weekday; //取得当前日期数(为了获取星期几,从上个星期日开始);取值区间为[0,6]
int yearday; //取得当前年份天数(从1月1日开始);取值区间为[0,365]
int daylight; //取得当前夏令时标识符,实行夏令时的时候,daylight取得一个正数
//不实行夏令时的进候,daylight为0;
//不了解情况时,daylight为负数
}; long timenow;//定义保存时间的变量
struct tm *now;//定义结构指针
int a,b,c,d;//非别存储小时、分钟、秒、星期
char *week;
time(&timenow);//获取当前时间
now = (struct tm *)localtime(&timenow);//把当前时间的结构指针赋值给now
a = now->hour;//获取hour值
b = now->minute;//获取minute值
c = now->second;//获取second值
d = now->weekday;//获取week值 if(a==22 || a==00 ||a==01 ||a==02 ||a==03)
{
// lr_error_message("在线取消息6小时!");
for(i=0;i<960;i++)
{
web_custom_request("getAJAXMessageServlet_2",
"URL=http://128.2.3.124/seeyon/getAJAXMessageServlet",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://128.2.3.124/seeyon/main.do?method=top&fromPortal=false",
"Snapshot=t21.inf",
"Mode=HTML",
LAST); lr_think_time(30); } } 3. oracle 恢复
4,设置数据库的归档模式 sqlplus / as sysdba
SQL>select log_mode from v$database; SQL>SHUTDOWN IMMEDIATE
SQL>STARTUP MOUNT
SQL>ALTER DATABASE ARCHIVELOG;
SQL>ALTER DATABASE OPEN; 备份大法: conn a8test/123456@v3x_128.2.3.234
create directory dump_dir as 'E:\bak-shuju';
grant read,write on directory dump_dir to scott; host expdp expdp a8test/123456@lx_128.2.3.228 directory=dump_dir dumpfile=tablespace.dmp tablespaces=a8test
报错解决:
EXECUTE SYS.DBMS_METADATA_UTIL.LOAD_STYLESHEETS impdp a8test/123456@lx_128.2.3.228 directory=dump_dir dumpfile=tablespace.dmp tablespaces=a8test impdp wending/123456@orcl directory=dump_dir101 dumpfile=tablespace.dmp tablespaces=wending
linux下计数器:
web_set_sockets_option("OVERLAPPED_SEND", "0"); 2. 午夜十分不能做什么?
struct tm{ int second; //取得当前秒数(在分钟后);取值区间为[0,59]
int minute; //取得当前分钟数(在小时后);取值区间为[0,59]
int hour; //取得当前小时数(从凌晨0点开始);取值区间为[0,23]
int day; //取得当前天数(从上月结束开始);取值区间为[1,31]
int month; //取得当前月份数(从1月开始);取值区间为[0,11]
int year; //取得当前年份数(从1900年开始)
int weekday; //取得当前日期数(为了获取星期几,从上个星期日开始);取值区间为[0,6]
int yearday; //取得当前年份天数(从1月1日开始);取值区间为[0,365]
int daylight; //取得当前夏令时标识符,实行夏令时的时候,daylight取得一个正数
//不实行夏令时的进候,daylight为0;
//不了解情况时,daylight为负数
}; long timenow;//定义保存时间的变量
struct tm *now;//定义结构指针
int a,b,c,d;//非别存储小时、分钟、秒、星期
char *week;
time(&timenow);//获取当前时间
now = (struct tm *)localtime(&timenow);//把当前时间的结构指针赋值给now
a = now->hour;//获取hour值
b = now->minute;//获取minute值
c = now->second;//获取second值
d = now->weekday;//获取week值 if(a==22 || a==00 ||a==01 ||a==02 ||a==03)
{
// lr_error_message("在线取消息6小时!");
for(i=0;i<960;i++)
{
web_custom_request("getAJAXMessageServlet_2",
"URL=http://128.2.3.124/seeyon/getAJAXMessageServlet",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://128.2.3.124/seeyon/main.do?method=top&fromPortal=false",
"Snapshot=t21.inf",
"Mode=HTML",
LAST); lr_think_time(30); } } 3. oracle 恢复
4,设置数据库的归档模式 sqlplus / as sysdba
SQL>select log_mode from v$database; SQL>SHUTDOWN IMMEDIATE
SQL>STARTUP MOUNT
SQL>ALTER DATABASE ARCHIVELOG;
SQL>ALTER DATABASE OPEN; 备份大法: conn a8test/123456@v3x_128.2.3.234
create directory dump_dir as 'E:\bak-shuju';
grant read,write on directory dump_dir to scott; host expdp expdp a8test/123456@lx_128.2.3.228 directory=dump_dir dumpfile=tablespace.dmp tablespaces=a8test
报错解决:
EXECUTE SYS.DBMS_METADATA_UTIL.LOAD_STYLESHEETS impdp a8test/123456@lx_128.2.3.228 directory=dump_dir dumpfile=tablespace.dmp tablespaces=a8test impdp wending/123456@orcl directory=dump_dir101 dumpfile=tablespace.dmp tablespaces=wending
linux下计数器:
相关阅读 更多 +