存档

‘技术’ 分类的存档

禁止使用plsql developer登陆数据库

2023年5月16日 没有评论

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...

分类: 技术 标签:

oracle 缩小数据文件大小

2023年5月16日 没有评论

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 ...

分类: oracle, 技术 标签:

chrome浏览器崩溃解决

2023年5月12日 没有评论

@echo off reg add HKLM\SOFTWARE\Policies\Google\Chrome\ /v RendererCodeIntegrityEnabled /t REG_DWORD /d 0

分类: 技术 标签:

Oracle DataGuard FAL[client, ARC2]: Error 16191 connecting to 问题处理过程记录

2023年3月7日 没有评论

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修改用户密码

2022年11月29日 没有评论

要使用 PowerShell 更改本地用户帐户密码,我们可以使用带有Password参数的 Set-LocalUser 命令。此密码参数应在安全字符串中。所以我们需要要求用户输入密码作为安全字符串或者需要将明文密码显式转换为安全字符串。例如, 123 $localuser = Read-Host "Enter Local UserName"$password = Read-Host "输入本地用户帐户密码 " -AsSecureStringSet-LocalUser -Name $localuser -Password $password -Verbose 如果您需要在不询问用户提示的情况下...

分类: 技术 标签:

linux 每次登录发邮件通知

2022年11月15日 没有评论

添加如下内容到 /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 错误

2022年4月2日 没有评论

搭建了 WSUS 服务,做为上游补丁服务的副本供下游服务器更新,客户端服务器无法连接二级补丁更新服务,报错 0x8024401f,WSUS 提示计算机都是无状态的计算机,更新都是无状态的更新。 0x8024401f,一般来说是网络故障导致服务无法访问,系统的防火墙已经关闭,网络也能ping通基本就排除网络连接的问题。 通过排查日志C:\inetpub\logs\LogFiles\W3SVC1\u_exyymmdd.log 发现访问 /ClientWebService/client.asmx 服务返回 500 错误,初步定位为更新服务本身,直接通过页面访问地址可以返回具体错误原因。 访问 http://ip/ClientWebService...

分类: 技术 标签:

windows 调试 ntp 连通性

2022年3月29日 没有评论

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 挂了

2022年3月6日 没有评论

bootcdn 挂了,导致网站打不开,把模版引用的路径换成 staticfile 。 1 find tpl/ -type f -exec sed -i 's/bootcdn.net\/ajax\/libs/staticfile.org/g' {} \;

分类: 技术 标签:

bing 搜索正在成为一个不可忽视的存在

2022年2月27日 没有评论

最近分析网站的统计数据,发现一个有趣的现象。 来自 bing 搜索的用户越来越多,难道是必应的搜索质量正在变好,而且有可能 bing 现在的搜索结果可能是之前做百度搜索的那波人在 bing 做的。 百度现在做搜索的这波人可能走入了误区,他们为了应付 seo 和推广自家产品导致百度的搜索质量不断下降,有点伤敌 1000 自损 800 的感觉。之前其它竞争对手质量不行,大家选择忍,而随着 bing 的搜索质量越来越好,那些之前没有选择只能忍的人,有了 bing 这个新选择,于是开始不再忍受,慢慢换成 bing ,这是很可怕的,包括我自己也越来越多的...

分类: 技术 标签: ,