数据库
elimuzi
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
RAC故障处理,Agent 或者mdnsd.bin, gpnpd.bin, gipcd.bin 未运行
现象分析 使用命令查看init服务情况 # crsctl stat res -init -t 可见,mdnsd.bin,gpnpd.bin,gipcd.bin等所有服务都是OFFLINE,未运行。 查看日志,mdnsd.log,对比正常的日志,for the home后面未显示路径。 根据现象,查询资料,可得 问题:Agent或者mdnsd.bin,gpnpd.bin,gipcd.bin未运行 症状: 1.orarootagent未运行 ....原创 2020-10-26 13:46:12 · 933 阅读 · 0 评论 -
游标与While循环的使用
--定义变量 DECLARE @UserID INT --定义游标 DECLARE cur_userId CURSOR FAST_FORWARD READ_ONLY FOR SELECT distinct FUserID FROM t_User ORDER BY FUserID ASC -- 打开游标 OPEN cur_userId FETCH NEXT FROM cur_userId ...原创 2019-10-30 17:27:03 · 1499 阅读 · 1 评论 -
SQL Server根据字段得到表名
select objs.name as TableName, cols.name as ColName From sysobjects objs inner join syscolumns cols on (objs.id=cols.id) where objs.xtype='U' and cols.name='字段名'原创 2019-10-30 14:47:26 · 14754 阅读 · 0 评论
分享