Linux 常见问题索引

CentOS 6.5/Linux 重启网卡报错 Determining if ip address x.x.x.x is already in use

操作系统:CentOS 6.5

在公司用完之后,回到家里使用静态ip发现上不了网,重启网络服务时报错:

# service network restart
正在关闭接口 eth0: [确定]
关闭环回接口: [确定]
FATAL: Module off not found.
弹出环回接口: [确定]
弹出界面 eth0: Determining if ip address 192.168.1.103 is already in use for device eth0…
[确定]
FATAL: Module off not found.

发现是在CentOS 6.5默认开启了ARPCHECK,将其关闭即可解决:
vim /etc/sysconfig/network-scripts/ifcfg-eth0
在最后加上
ARPCHECK=no

然后在重启网卡发现一切正常了
# service network restart
正在关闭接口 eth0: [确定]
关闭环回接口: [确定]
弹出环回接口: [确定]
弹出界面 eth0: [确定]

SecureCRT SSH连接LINUX服务器超时断开

之前遇到一问题,但是没有仔细去研究过,使用SecureCRT连接LINUX服务器操作时,会在一定时间内没有操作后就自动超时断工连接了,有些后台在执行的操作也没法继续下去。

百度一下,你就知道!以下信息来源互联网博客

因为客户端与服务器之间存在路由器,防火墙以及为了本身的安全性,在超过特定的时间后就会把空闲连接断开。或者是服务器端设置了断开空闲连接。 解决方法: 既然会断开超时的空闲连接,那么我们就应该让客户端与服务器之间的连接“忙”起来,方法有两个:

从服务器方面入手:修改/etc/ssh/sshd_config配置文件 ClientAliveInterval 300(默认为0) 这个参数的是意思是每5分钟,服务器向客户端发一个消息,用于保持连接 service sshd reload 生效

从客户端入手:上面是配置需要服务器权限,如果没有服务器权限则可以使用这个方法,其思想是:客户端向服务器发一个消息,用于保持连接 secureCRT在Options-Terminal-Anti idle 中设置每隔多少秒发送一个字符串,或者是NO-OP协议包

putty:putty -> Connection -> Seconds between keepalives ( 0 to turn off ), 默认为0, 改为300

win7文件夹权限导致拒绝访问的解决办法

第一次安装windows 7系统是使用的32位的,把一个私人文件夹设置了只允许自己的帐号有权限访问,如tom,后来升级了内存到8G,把操作系统也换成了64位的。重装好系统之后,windows 用户名依然没变,还是使用tom,但是我的文件夹却拒绝访问了。

经过一翻研究和百度,终于找到了方法。到用户管理里把 administrator 用户开启,切换到 administrator 用户登录。找到私密文件夹右击属性,点击“安全”。

先把“包括可从该对象的父项继承的权限(I)”的勾选去掉,在弹出的对话框里点击“删除”。

 

完成之后再添加 administrators 和 everyone 用户,再把“使用可从此对象继承的权限替换所有子对象权限(P)”。

做完这一步之后,再切换回 tom 用户,发现已经可以访问文件夹了。

win7系统不能启动sybase central的解决方法

自从换了thinkpad之后,用上了win7,但是有些软件好像不太兼容了。从32位折腾到64位。

为什么sybase就是启动不来呢?经过一番百度之后,终于找到答案了。

系统:windows 7 64bit

数据库:sybase12.5.4

百度知道里的回答是:

你的系统是Win7,或者Server 2008,太高级了,sybase不支持
修改==>是win7的主题渲染sybase不支持。你把主题改为Win7 Basic就可以了
==》还有一种方法,右键->兼容模式->Vista sp2,也可以正常运行

感谢作者 jiljil (http://passport.baidu.com/?business&aid=6&un=jiljil#2)

错误日志内容:

                              +—————–+

                              |   Stack Trace   |

                              +—————–+

 

Current thread: main

java.lang.NullPointerException

 at javax.swing.border.EmptyBorder.<init>(EmptyBorder.java:54)

 at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(WindowsTableHeaderUI.java:63)

 at com.sybase.util.SybWindowsTableHeaderUI$XPRendererFix.getTableCellRendererComponent(SybWindowsTableHeaderUI.java)

 at com.sybase.central.viewer.DetailsList$ImageHeaderRenderer.getTableCellRendererComponent(DetailsList.java:1393)

 at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(BasicTableHeaderUI.java:394)

 at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(BasicTableHeaderUI.java:428)

 at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(BasicTableHeaderUI.java:454)

 at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(BasicTableHeaderUI.java:485)

 at javax.swing.JComponent.getPreferredSize(JComponent.java:1275)

 at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:75)

 at java.awt.Container.preferredSize(Container.java:1178)

 at java.awt.Container.getPreferredSize(Container.java:1162)

 at javax.swing.JComponent.getPreferredSize(JComponent.java:1277)

 at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:702)

 at java.awt.Container.layout(Container.java:1020)

 at java.awt.Container.doLayout(Container.java:1010)

 at java.awt.Container.validateTree(Container.java:1092)

 at java.awt.Container.validateTree(Container.java:1099)

 at java.awt.Container.validateTree(Container.java:1099)

 at java.awt.Container.validateTree(Container.java:1099)

 at java.awt.Container.validateTree(Container.java:1099)

 at java.awt.Container.validateTree(Container.java:1099)

 at java.awt.Container.validateTree(Container.java:1099)

 at java.awt.Container.validateTree(Container.java:1099)

 at java.awt.Container.validateTree(Container.java:1099)

 at java.awt.Container.validate(Container.java:1067)

 at java.awt.Window.show(Window.java:461)

 at java.awt.Component.show(Component.java:1133)

 at java.awt.Component.setVisible(Component.java:1088)

 at com.sybase.central.viewer.SybaseCentral.run(SybaseCentral.java:147)

 at com.sybase.central.viewer.SybaseCentral.main(SybaseCentral.java:386)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

 at java.lang.reflect.Method.invoke(Method.java:324)

 at com.sybase.central.viewer.SCLoader.callMethod(SCLoader.java:207)

 at com.sybase.central.viewer.SCLoader.main(SCLoader.java:107)

 

 

 

                             +——————–+

                             |   Sybase Central   |

                             +——————–+

 

Sybase Central Version: 4.3.0.2428

 
*** A java.lang.NullPointerException exception was caught while gathering application information

  null

 

 

                               +—————+

                               |   Classpath   |

                               +—————+

 

D:\sybase\Shared\Sybase Central 4.3\sybasecentral.jar

    Timestamp=2006-03-31 20:36:28.0

    Length=603562

 

D:\sybase\Shared\java\jsyblib142.jar

    Timestamp=2006-03-31 20:35:45.0

    Length=266937

 

D:\sybase\Shared\java\HelpManager11.jar

    Timestamp=2006-03-31 20:34:01.0

    Length=56339

 

D:\sybase\Shared\java\SCEditor142.jar

    Timestamp=2006-03-31 20:34:56.0

    Length=345060

 

D:\sybase\Shared\Sun\javahelp-1_1\jh.jar

    Timestamp=2006-02-25 00:37:37.0

    Length=347246

 

D:\sybase\Shared\Sybase Central 4.3\jcchart400K.jar

    Timestamp=2006-02-25 00:43:43.0

    Length=1064214

 

 

 

                             +——————-+

                             |   Look and Feel   |

                             +——————-+

 

Look and Feel:
  Name:Windows
  Description:The Microsoft Windows Look and Feel
  IsNative:true
  IsSupported:true
  ID:Windows
  Class:com.sun.java.swing.plaf.windows.WindowsLookAndFeel

Desktop Properties:
  awt.dynamicLayoutSupported=false
  awt.multiClickInterval=500
  awt.wheelMousePresent=true
  win.3d.backgroundColor=java.awt.Color[r=240,g=240,b=240]
  win.3d.darkShadowColor=java.awt.Color[r=105,g=105,b=105]
  win.3d.highlightColor=java.awt.Color[r=255,g=255,b=255]
  win.3d.lightColor=java.awt.Color[r=227,g=227,b=227]
  win.3d.shadowColor=java.awt.Color[r=160,g=160,b=160]
  win.ansiFixed.font=java.awt.Font[family=dialog,name=Courier,style=plain,size=13]
  win.ansiFixed.font.height=13
  win.ansiVar.font=java.awt.Font[family=sansserif,name=MS Sans Serif,style=plain,size=11]
  win.ansiVar.font.height=11
  win.button.textColor=java.awt.Color[r=0,g=0,b=0]
  win.defaultGUI.font=java.awt.Font[family=dialog,name=????,style=plain,size=12]
  win.defaultGUI.font.height=12
  win.desktop.backgroundColor=java.awt.Color[r=0,g=0,b=0]
  win.deviceDefault.font=java.awt.Font[family=dialog,name=System,style=bold,size=16]
  win.deviceDefault.font.height=16
  win.drag.height=4
  win.drag.width=4
  win.frame.activeBorderColor=java.awt.Color[r=180,g=180,b=180]
  win.frame.activeCaptionColor=java.awt.Color[r=153,g=180,b=209]
  win.frame.activeCaptionGradientColor=java.awt.Color[r=185,g=209,b=234]
  win.frame.backgroundColor=java.awt.Color[r=255,g=255,b=255]
  win.frame.captionButtonHeight=21
  win.frame.captionButtonWidth=35
  win.frame.captionFont=java.awt.Font[family=微软雅黑,name=微软雅黑,style=plain,size=12]
  win.frame.captionFont.height=12
  win.frame.captionGradientsOn=true
  win.frame.captionHeight=21
  win.frame.captionTextColor=java.awt.Color[r=0,g=0,b=0]
  win.frame.color=java.awt.Color[r=100,g=100,b=100]
  win.frame.fullWindowDragsOn=false
  win.frame.inactiveBorderColor=java.awt.Color[r=244,g=247,b=252]
  win.frame.inactiveCaptionColor=java.awt.Color[r=191,g=205,b=219]
  win.frame.inactiveCaptionGradientColor=java.awt.Color[r=215,g=228,b=242]
  win.frame.inactiveCaptionTextColor=java.awt.Color[r=67,g=78,b=84]
  win.frame.sizingBorderWidth=5
  win.frame.smallCaptionButtonHeight=19
  win.frame.smallCaptionButtonWidth=17
  win.frame.smallCaptionFont=java.awt.Font[family=微软雅黑,name=微软雅黑,style=plain,size=12]
  win.frame.smallCaptionFont.height=12
  win.frame.smallCaptionHeight=19
  win.frame.textColor=java.awt.Color[r=0,g=0,b=0]
  win.highContrast.on=false
  win.icon.font=java.awt.Font[family=微软雅黑,name=微软雅黑,style=plain,size=12]
  win.icon.font.height=12
  win.icon.hspacing=75
  win.icon.titleWrappingOn=true
  win.icon.vspacing=75
  win.item.highlightColor=java.awt.Color[r=51,g=153,b=255]
  win.item.highlightTextColor=java.awt.Color[r=255,g=255,b=255]
  win.item.hotTrackedColor=java.awt.Color[r=0,g=102,b=204]
  win.item.hotTrackingOn=true
  win.mdi.backgroundColor=java.awt.Color[r=171,g=171,b=171]
  win.menu.backgroundColor=java.awt.Color[r=240,g=240,b=240]
  win.menu.buttonWidth=19
  win.menu.font=java.awt.Font[family=微软雅黑,name=微软雅黑,style=plain,size=12]
  win.menu.font.height=12
  win.menu.height=19
  win.menu.keyboardCuesOn=false
  win.menu.textColor=java.awt.Color[r=0,g=0,b=0]
  win.messagebox.font=java.awt.Font[family=微软雅黑,name=微软雅黑,style=plain,size=12]
  win.messagebox.font.height=12
  win.oemFixed.font=java.awt.Font[family=dialog,name=Terminal,style=plain,size=16]
  win.oemFixed.font.height=16
  win.properties.version=2
  win.scrollbar.backgroundColor=java.awt.Color[r=200,g=200,b=200]
  win.scrollbar.height=17
  win.scrollbar.width=17
  win.sound.asterisk=WinPlaySound(SystemAsterisk)
  win.sound.close=WinPlaySound(Close)
  win.sound.default=WinPlaySound(.Default)
  win.sound.exclamation=WinPlaySound(SystemExclamation)
  win.sound.exit=WinPlaySound(SystemExit)
  win.sound.hand=WinPlaySound(SystemHand)
  win.sound.maximize=WinPlaySound(Maximize)
  win.sound.menuCommand=WinPlaySound(MenuCommand)
  win.sound.menuPopup=WinPlaySound(MenuPopup)
  win.sound.minimize=WinPlaySound(Minimize)
  win.sound.open=WinPlaySound(Open)
  win.sound.question=WinPlaySound(SystemQuestion)
  win.sound.restoreDown=WinPlaySound(RestoreDown)
  win.sound.restoreUp=WinPlaySound(RestoreUp)
  win.sound.start=WinPlaySound(SystemStart)
  win.status.font=java.awt.Font[family=微软雅黑,name=微软雅黑,style=plain,size=12]
  win.status.font.height=12
  win.system.font=java.awt.Font[family=dialog,name=System,style=bold,size=16]
  win.system.font.height=16
  win.systemFixed.font=java.awt.Font[family=dialog,name=Fixedsys,style=plain,size=16]
  win.systemFixed.font.height=16
  win.text.fontSmoothingOn=true
  win.text.grayedTextColor=java.awt.Color[r=109,g=109,b=109]
  win.tooltip.backgroundColor=java.awt.Color[r=255,g=255,b=225]
  win.tooltip.font=java.awt.Font[family=微软雅黑,name=微软雅黑,style=plain,size=12]
  win.tooltip.font.height=12
  win.tooltip.textColor=java.awt.Color[r=0,g=0,b=0]
  win.xpstyle.colorName=NormalColor
  win.xpstyle.dllName=C:\Windows\resources\Themes\Aero\Aero.msstyles
  win.xpstyle.sizeName=NormalSize
  win.xpstyle.themeActive=true

 

 
                                +————-+

                                |   Java VM   |

                                +————-+

 

Total memory: 3035136

Free memory: 897488

System properties:

    asa.location=D:\sybase\Shared\SYBASE~1.3\

    awt.toolkit=sun.awt.windows.WToolkit

    file.encoding=GBK

    file.encoding.pkg=sun.io

    file.separator=\

    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment

    java.awt.printerjob=sun.awt.windows.WPrinterJob

    java.class.path=D:\sybase\Shared\SYBASE~1.3\SYBASE~1.JAR;D:\sybase\Shared\java\JSYBLI~1.JAR;D:\sybase\Shared\java\HELPMA~1.JAR;D:\sybase\Shared\java\SCEDIT~1.JAR;D:\sybase\Shared\sun\JAVAHE~1\jh.jar;D:\sybase\Shared\SYBASE~1.3\JCCHAR~1.JAR;

    java.class.version=48.0

    java.endorsed.dirs=D:\sybase\Shared\sun\jre142\lib\endorsed

    java.ext.dirs=D:\sybase\Shared\sun\jre142\lib\ext

    java.home=D:\sybase\Shared\sun\jre142

    java.io.tmpdir=C:\Users\jeftom\AppData\Local\Temp\

    java.library.path=D:\sybase\Shared\Sybase Central 4.3\win32;.;C:\Windows\system32;C:\Windows;D:\sybase\RPL-12_5\bin;D:\sybase\Shared\Sybase Central 4.3;D:\sybase\OCS-12_5\lib3p;D:\sybase\OCS-12_5\dll;D:\sybase\OCS-12_5\bin;D:\sybase\ASE-12_5\dll;D:\sybase\ASE-12_5\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Lenovo\Access Connections\;D:\Program Files\Mysql\MySQL Server 5.5\bin;D:\Program Files\php;D:\Program Files\TortoiseSVN\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\

    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition

    java.runtime.version=1.4.2_06-b03

    java.security.policy=D:\sybase\Shared\Sybase Central 4.3\SybaseCentral.policy

    java.specification.name=Java Platform API Specification

    java.specification.vendor=Sun Microsystems Inc.

    java.specification.version=1.4

    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory

    java.vendor=Sun Microsystems Inc.

    java.vendor.url=http://java.sun.com/

    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi

    java.version=1.4.2_06

    java.vm.info=mixed mode

    java.vm.name=Java HotSpot(TM) Client VM

    java.vm.specification.name=Java Virtual Machine Specification

    java.vm.specification.vendor=Sun Microsystems Inc.

    java.vm.specification.version=1.0

    java.vm.vendor=Sun Microsystems Inc.

    java.vm.version=1.4.2_06-b03

    line.separator=

 

    os.arch=x86

    os.name=Windows NT (unknown)

    os.version=6.1

    path.separator=;

    sun.arch.data.model=32

    sun.awt.exception.handler=com.sybase.util.ExceptionHandler

    sun.boot.class.path=D:\sybase\Shared\sun\jre142\lib\rt.jar;D:\sybase\Shared\sun\jre142\lib\i18n.jar;D:\sybase\Shared\sun\jre142\lib\sunrsasign.jar;D:\sybase\Shared\sun\jre142\lib\jsse.jar;D:\sybase\Shared\sun\jre142\lib\jce.jar;D:\sybase\Shared\sun\jre142\lib\charsets.jar;D:\sybase\Shared\sun\jre142\classes

    sun.boot.library.path=D:\sybase\Shared\sun\jre142\bin

    sun.cpu.endian=little

    sun.cpu.isalist=pentium i486 i386

    sun.io.unicode.encoding=UnicodeLittle

    sun.java2d.d3d=false

    sun.java2d.fontpath=

    sun.java2d.noddraw=true

    sun.os.patch.level=Service Pack 1

    sybase.jsyblib.dll.location=D:\sybase\Shared\win32\

    user.country=CN

    user.dir=D:\sybase\Shared\Sybase Central 4.3\win32

    user.home=C:\Users\jeftom

    user.language=zh

    user.name=jeftom

    user.timezone=GMT

    user.variant=

 

 

                             +——————-+

                             |   Java Packages   |

                             +——————-+

 

Package: com.sun.java.swing

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: com.sun.java.swing.plaf.windows

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: com.sun.java.swing.plaf.windows.resources

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: com.sun.swing.internal.plaf.basic.resources

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: com.sybase.central

    Implementation title: Sybase Central

    Implementation vendor: Sybase, Inc.

    Implementation version: 4.3.0.2428

    Specification title: Sybase Central

    Specification vendor: Sybase, Inc.

    Specification version: 4.3.0.2428

 

Package: com.sybase.central.editor

    Implementation title: Sybase Central Editor

    Implementation vendor: Sybase, Inc.

    Implementation version: 4.3.0.2396

    Specification title: Sybase Central Editor

    Specification vendor: Sybase, Inc.

    Specification version: 4.3.0.2396

 

Package: com.sybase.central.lang

    Implementation title: Sybase Central

    Implementation vendor: Sybase, Inc.

    Implementation version: 4.3.0.2428

    Specification title: Sybase Central

    Specification vendor: Sybase, Inc.

    Specification version: 4.3.0.2428

 

Package: com.sybase.central.viewer

    Implementation title: Sybase Central

    Implementation vendor: Sybase, Inc.

    Implementation version: 4.3.0.2428

    Specification title: Sybase Central

    Specification vendor: Sybase, Inc.

    Specification version: 4.3.0.2428

 

Package: com.sybase.helpManager

    Implementation title: HelpManager classes

    Implementation vendor: Sybase, Inc.

    Implementation version: 4.3.0.2428

    Specification title: HelpManager classes

    Specification vendor: Sybase, Inc.

    Specification version: 4.3.0.2428

 

Package: com.sybase.util

    Implementation title: Application-Independent Java Utility Library

    Implementation vendor: Sybase, Inc.

    Implementation version: 4.3.0.2428

    Specification title: Application-Independent Java Utility Library

    Specification vendor: Sybase, Inc.

    Specification version: 4.3.0.2428

 

Package: com.sybase.util.win32

    Implementation title: Application-Independent Java Utility Library

    Implementation vendor: Sybase, Inc.

    Implementation version: 4.3.0.2428

    Specification title: Application-Independent Java Utility Library

    Specification vendor: Sybase, Inc.

    Specification version: 4.3.0.2428

 

Package: java.applet

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.color

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.datatransfer

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.dnd

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.dnd.peer

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.event

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.font

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.geom

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.im

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.im.spi

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.image

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.awt.peer

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.beans

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.io

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.lang

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.lang.ref

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.lang.reflect

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.net

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.nio

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.nio.charset

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.nio.charset.spi

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.rmi

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.security

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.security.cert

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.sql

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.text

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.util

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.util.jar

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.util.regex

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: java.util.zip

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: javax.accessibility

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: javax.swing

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: javax.swing.border

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: javax.swing.event

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: javax.swing.plaf

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: javax.swing.plaf.basic

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: javax.swing.table

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: javax.swing.text

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: javax.swing.tree

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.awt

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.awt.color

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.awt.datatransfer

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.awt.dnd

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.awt.font

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.awt.im

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.awt.image

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.awt.resources

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.awt.shell

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.awt.windows

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.io

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.java2d

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.java2d.loops

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.java2d.pipe

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.misc

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.net

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.net.spi.nameservice

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.net.www

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.net.www.protocol.file

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.net.www.protocol.jar

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.nio.cs

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.nio.cs.ext

    Implementation title: null

    Implementation vendor: null

    Implementation version: null

    Specification title: null

    Specification vendor: null

    Specification version: null

 

Package: sun.reflect

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.security.action

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.security.provider

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.security.util

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.text.resources

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

 

Package: sun.util.calendar

    Implementation title: Java Runtime Environment

    Implementation vendor: Sun Microsystems, Inc.

    Implementation version: 1.4.2_06

    Specification title: Java Platform API Specification

    Specification vendor: Sun Microsystems, Inc.

    Specification version: 1.4

windows 7 五笔输入法与QQ、IE不兼容解决办法

从03年开始使用windows 2003一直到前几天,难以置信啊。

终于这昨天转到windows 7了怀抱了,虽然暂时还不习惯,我不是一个贪新厌旧的人,不知道需要多长时间来适应。

昨晚安装了一贯使用的念青五笔输入法简体字版和繁体字版,简体版跟IE 8/9不兼容,繁体版跟QQ 2012 不兼容,有时候程序重启,有时候输入法假死,输入不了任何东西。ctrl+space一切换输入法就导致程序崩溃掉,我人也快跟着崩溃掉了。其实这个问题早两年的时候朋友买个华硕本回来的时候就已经发现了,没想到念青那家伙到现在也不解决一下,极品五笔也有同样情况。

一个简单想法的人,喜欢用纯朴的输入法,钟情于五笔,而且是王码系的五笔。所以QQ五笔,万能五笔,搜狗五笔,极点五笔都不在考虑范围内,今天无意中看到一个叫新极品五笔的,下载下来安装,开IE,开QQ/TM发现都正常使用,泪奔啊,终于可以使用了,但是新极品五笔的词库顺序跟念青的有点出入,因为都是属于标准输入法,应该词库是通用的,于是试着把词库替换成念青的,成功了。原本新极品五笔只有简体版,我再复制一份出来做了个繁体版的,同样用了念青的繁体词库。

现在只有一个小小的问题,输入法默认英文标点,还没时间去研究。

在此感谢新极品五笔作者何云峰同学,云峰工作室网址:http://www.wb98.com/

mysql表损坏恢复root口令

操作系统:WINDOWS 2003 SERVER 系统

数据库版本:mysql 5.1.33

提示:access denied for user ‘root’@’localhost’ using password yes/no

由于服务器非法关机了,导致mysql数据库的表有损坏,root登录不上。

1. 管理员登陆系统,停止 MySQL 服务或者结束 MySQL 进程。

2. 启动 WINDOWS 的命令行窗口(即通常的 DOS 窗口:运行cmd),切换到你的 “MySQL\bin” 目录下。
E:\MySQL\bin>mysqld –defaults-file=”e:\mysql\my.ini” –console –skip-grant-tab
les
120204 23:01:47 [Note] Plugin ‘InnoDB’ disabled by command line option
120204 23:01:47 [Note] mysqld: ready for connections.
Version: ‘5.1.33-community’  socket: ”  port: 3306  MySQL Community Server (GPL
)
120204 23:05:37 [Note] mysqld: Normal shutdown

120204 23:05:37 [Warning] Forcing shutdown of 2 plugins
120204 23:05:37 [Note] mysqld: Shutdown complete
3. 不关闭此命令行窗口,然后重新开打一个命令提示符的窗口(CMD)用空密码方式使用root用户登录 MySQL
E:\MySQL\bin>mysql -uroot mysql

然后,就是重新设置密码了!

mysql> UPDATE user SET Password=PASSWORD(‘root’) where USER=’root’;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye

4. 好了到此步,可以关闭第一个 DOS 窗口了(关闭服务)。重新启动 MySQL 服务。

5. 在剩下的第二个 DOS 窗口中,用新的 ROOT 密码连接 MySQL。

E:\MySQL\bin>mysql -u root -p
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.33-community MySQL Community Server (GPL)
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
mysql> quit
Bye

到此root口令已经恢复成功,但是网站还是报错,用SQLyog Enterprise查看,发表少了三个表,但是创建表的时候又提示已经存在。没招了,暂时先把表删了再重新创建导入数据。

还有一报错:Table is marked as crashed and should be repaired

应该也是表损坏了引起的。

editplus编辑perl/php双击选中变量的解决办法

在windows的操作习惯里,我们习惯了用双击来选中一个英文单词,在软件开发编辑器里同样习惯了用双击来选中一个变量名。

perl和php的语法很接近,都是使用$作为变量名标识符,不过,perl里用了@做为数量,%做为hash,php则统一使用了$符号。

editplus里使用了语法增强插件之后,好像双击只选中了变量名的单词部分,没有包含$符号,一直以为是editplus有问题,自从更新了editplus到3.31版本之后,发现多了文字加亮功能,也就是说双击选中一个名字之后,同文内有相同名字的也会加亮显示,这功能实在是太有用了;另外在写PHP时发现双击选中变量名时包含了$符号了,研究了一大个早上才发现原来是.stx语法增强插件搞的鬼。

文字高亮显示

perl.stx文件里找到这一行:

#DELIMITER=,(){}[]-+*/=~!&|<>?:;.$@%

php5.stx里也有这么一行:

#DELIMITER=,(){}[]-+*%/=”‘~!&|<>?:;.#$@

把$符号去掉,再重启editplus就可以了。

另外,在3.31版本中,发现增加了对Tortoise SVN的支持,在文件菜单里可以找到它的身影。

sql server 2008 删除数据库出现”因为它正用于复制”以及附加数据变成”只读”的错误解决办法

删除 对于 数据库“YeeSoHo_4”失败。 (Microsoft.SqlServer.Smo)

有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=删除+Database&LinkId=20476

——————————
其他信息:

执行 Transact-SQL 语句或批处理时发生了异常。 (Microsoft.SqlServer.ConnectionInfo)

——————————

无法对 数据库’YeeSoHo_4′ 执行 删除,因为它正用于复制。 (Microsoft SQL Server,错误: 3724)

有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=3724&LinkId=20476

 

附加的数据库变成了“只读”状态,又修改不了,只好把它删除掉,但是删除的时候报了以上错误。百度了一番后发面用SQL语句可以搞定,不过删除前一定要先把SQL服务停掉,然后把MDF和LOG文件改名,不在在DROP时会把数据库文件给删掉,到时候就真的是欲哭无泪了。

停掉服务把文件改名后再启动服务,执行以下语句:

use master
exec sp_removedbreplication ‘mydatabase’
drop database “mydatabase”

——————————

更改 对于 数据库“YeeSoHo_4.0”失败。 (Microsoft.SqlServer.Smo)

有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=更改+Database&LinkId=20476

——————————
其他信息:

执行 Transact-SQL 语句或批处理时发生了异常。 (Microsoft.SqlServer.ConnectionInfo)

——————————

若要使用 ALTER DATABASE,数据库就必须处于可写入状态,从而可以执行检查点。 (Microsoft SQL Server,错误: 5004)

有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=5004&LinkId=20476

 

最近几次附加已有数据库文件(MDF)时,经常碰到附加后的数据库在管理器中显示只读字样的问题,一时没有找到解决办法。

在网上我也搜索了一番,但是都未能解决,最终发现一个简单的设置可以解决:

打开数据库的属性对话框,在左侧的属性列表中选中“选项”,客户属性表格区域中找到分组“状态”,其第一个属性“数据库只读”,你会发现其值为True,改为False即可。

在执行操作的时候又提示数据库只读,后来发现在NTFS文件系统的权限问题。修改之,又提示空间不足,于是修改数据库空间以及日志空间。再重新附加,小功告成!

Linux用SecureCRT上传下载文件

上传文件只需在shell终端仿真器中输入命令“rz ”,即可从弹出的对话框中选择本地磁盘上的文件,利用Zmodem上传到服务器,例如(上传一个 rsyncd.conf文件到服务器):
  [root@localhost ~]# rz
  rz waiting to receive.
  正在开始 zmodem 传输。 按 Ctrl+C 取消。
  正在传输 rsyncd.conf…
   100% 715 bytes 715 bytes/s 00:00:01 0 错误
  
  下载文件只需在shell终端仿真器中输入命令“sz 文件名 ”,即可利用Zmodem将文件下载到“路径\SecureCRT-5.1.3\download\”目录下,例如(下载服务器当前目录下的rsyncd.conf文件到本地):
   [root@localhost ~]# sz rsyncd.conf
  rz
  正在开始 zmodem 传输。 按 Ctrl+C 取消。
  正在传输 rsyncd.conf…
   100% 715 bytes 715 bytes/s 00:00:01 0 错误