1234567891011121314151617181920212223242526272829303132
drop trigger BLOCK_TOOLS_LOGON; CREATE OR REPLACE TRIGGER BLOCK_TOOLS_LOGON AFTER LOGON ON DATABASEDECLARE my_forced_exception EXCEPTION; PRAGMA EXCEPTION_INIT(MY_FORCED_EXCEPTION, -20101);BEGIN IF (sys_context('USERENV', 'SESSION_USER') IN ('TRY_LOGON_BY_TOOLS')) -- add your username here THEN &n...
123456789101112131415161718192021222324252627282930313233343536373839404142
set verify offcol value format a20column file_name format a50 word_wrappedcolumn smallest format 999,990 heading "Smallest|Size|Poss."column currsize format 999,990 heading "Current|Size"column savings format 999,990 heading "Poss.|Savings"break on reportcompute sum of savings on report column value new_val blksizeselect value from v$parameter where name ...
@echo off
reg add HKLM\SOFTWARE\Policies\Google\Chrome\ /v RendererCodeIntegrityEnabled /t REG_DWORD /d 0
1. 问题描述
Oracle DataGuard日志传输失败,日志信息如下所示,
Error 1017 received logging on to the standby
------------------------------------------------------------
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
------------------------------------------------------------
FAL[client, ARC2]: Error ...
要使用 PowerShell 更改本地用户帐户密码,我们可以使用带有Password参数的 Set-LocalUser 命令。此密码参数应在安全字符串中。所以我们需要要求用户输入密码作为安全字符串或者需要将明文密码显式转换为安全字符串。例如,
123
$localuser = Read-Host "Enter Local UserName"$password = Read-Host "输入本地用户帐户密码 " -AsSecureStringSet-LocalUser -Name $localuser -Password $password -Verbose
如果您需要在不询问用户提示的情况下...
添加如下内容到 /etc/pam.d/sshd
1
session optional pam_exec.so seteuid /usr/local/bin/login-notify.sh
通知脚本 /usr/local/bin/login-notify.sh
12345678910111213
#!/bin/sh # Change these two lines:sender="root@example.com"recepient="root" if [ "$PAM_TYPE" != "close_session" ]; then host="`hostname`"  ...
搭建了 WSUS 服务,做为上游补丁服务的副本供下游服务器更新,客户端服务器无法连接二级补丁更新服务,报错 0x8024401f,WSUS 提示计算机都是无状态的计算机,更新都是无状态的更新。
0x8024401f,一般来说是网络故障导致服务无法访问,系统的防火墙已经关闭,网络也能ping通基本就排除网络连接的问题。
通过排查日志C:\inetpub\logs\LogFiles\W3SVC1\u_exyymmdd.log
发现访问 /ClientWebService/client.asmx 服务返回 500 错误,初步定位为更新服务本身,直接通过页面访问地址可以返回具体错误原因。
访问 http://ip/ClientWebService...
NTP服务正常连接
C:\Users\abc>w32tm /stripchart /computer:ntp.aliyun.com
正在跟踪 ntp.aliyun.com [203.107.6.88:123]。
当前时间是 2022/3/29 13:08:29。
13:08:29, d:+00.0168097s o:+00.1191676s [ * ]
13:08:31, d:+00.0210791s o:+00.1166106s [ * ]
网络不通或者NTP服务端配置又问题
C:\Users\abc>w32tm /stripchart /computer:ntp1.aliyun.com
正在跟踪 ntp1.aliyun.com [120.25.115.20:123]。
当前时间是 2022/3/29 13:08:38。
13:08:38, 错误: 0x800705B4
bootcdn 挂了,导致网站打不开,把模版引用的路径换成 staticfile 。
1
find tpl/ -type f -exec sed -i 's/bootcdn.net\/ajax\/libs/staticfile.org/g' {} \;
最近分析网站的统计数据,发现一个有趣的现象。
来自 bing 搜索的用户越来越多,难道是必应的搜索质量正在变好,而且有可能 bing 现在的搜索结果可能是之前做百度搜索的那波人在 bing 做的。
百度现在做搜索的这波人可能走入了误区,他们为了应付 seo 和推广自家产品导致百度的搜索质量不断下降,有点伤敌 1000 自损 800 的感觉。之前其它竞争对手质量不行,大家选择忍,而随着 bing 的搜索质量越来越好,那些之前没有选择只能忍的人,有了 bing 这个新选择,于是开始不再忍受,慢慢换成 bing ,这是很可怕的,包括我自己也越来越多的...