豫ICP备17040950号-2

Ubuntu下vim更新

Ubuntu下使用Vi时方向键变乱码 退格键不能使用的解决方法:
sudo apt-get remove vim-common
sudo apt-get install vim
如果安装失败,提示:

1
Package vim is not available, but is referred to by another package.

请先执行:
sudo apt-get update

ORA-01033

转载自百度百科

1、进入CMD,执行set ORACLE_SID=ORCL,确保连接到正确的SID;
2、命令窗口运行sqlplus “/as sysdba” 启动窗口之后显示如下信息

SQL*Plus: Release 11.1.0.7.0 - Production on 星期三 3月 6 17:17:53 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.

连接到:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
3、停止服务 shutdown immediate
SQL> shutdown immediate
ORA-01109: 数据库未打开

samble设置

在安装samba增加用户,并且使用smbpasswd生成密码的时候出现如下错误:
Failed to find entry for user test.
Failed to modify password entry for user test
说明是没有该用户,请使用 -a 参数
OPTIONS
-a
This option specifies that the username following should be added to the local smbpasswd file, with the new
password typed (type for the old password). This option is ignored if the username following
already exists in the smbpasswd file and it is treated like a regular change password command. Note that
the default passdb backends require the user to already exist in the system password file (usually
/etc/passwd), else the request to add the user will fail.
This option is only available when running smbpasswd as root.
解决方法:
加参数‘-a’:
# smbpasswd -a 用户即可