代码改变世界

随笔档案-2012年2月7日

监控sqlserver 2008 R2群集状态

2012-02-07 15:55 by java ee spring, 398 阅读, 收藏,
摘要: declare @OutputTypevarchar(20)declare @debug char(1)declare @ForceRefreshchar(1)declare @xp_cmdshell_available char(1)set@OutputType='LIST'set @Debug= 'Y'set @ForceRefresh= 'Y'set @xp_cmdshell_available = 'Y'begin set nocountondeclare@idintdeclare @id2intdeclare @Line 阅读全文

编译安装samba 3.3.3

2012-02-07 15:16 by java ee spring, 465 阅读, 收藏,
摘要: ----------------------------第一部分:编译安装----------------------------1.解压# tar xvzf samba-3.3.3.tar.gz 2.配置#cd cd /test/samba-3.3.3/source/ --test为保存samba压缩文件的目录#./configure --prefix=/usr/local/samba --with-acl-supportBy default, `make install' will install all the files in`/usr/local/samba/bin' 阅读全文

bind-9.4.2编译安装

2012-02-07 15:15 by java ee spring, 382 阅读, 收藏,
摘要: DNS编译安装步骤:--------------------------------------------------------------第一部分:编译安装--------------------------------------------------------------一、 所需软件 bind-9.4.2.tar.gz //http://www.isc.org/wget http://ftp.isc.org/isc/bind9/9.4.2/bind-9.4.2.tar.gz编译安装之前将系统默认安装的卸载!二 解压、安装# tar zxvf bind-9.4.2.tar.gz# 阅读全文

设置DDL等待时间

2012-02-07 15:14 by java ee spring, 384 阅读, 收藏,
摘要: 在11g以前,DDL操作都要获取对象的排他锁,如果当时无法获取,则会马上报错:ORA-00054: 资源正忙, 但指定以 NOWAIT 方式获取资源, 或者超时失效现在可以设置等待时间:alter session set ddl_lock_timeout = 5; 阅读全文

nid修改oracle11gR2数据库名

2012-02-07 15:13 by java ee spring, 355 阅读, 收藏,
摘要: 1.查看数据库信息show parameter instance_name show parameter db_name show parameter service_name select dbid from v$database; 2.正常关闭数据库sqlplus / as sysdbaSQL>shutdown immediate3.启动数据库到mount模式SQL>startup mount4.确认LISTENER是启动的lsnrctl status5.修改数据库名host nid target=sys/password dbname=ocp setname=y# Chang 阅读全文