- 浏览: 42806 次
- 性别:
- 来自: 北京
-
最新评论
-
weiruan85:
oracle 不是有闪回特性吗,不需要这么麻烦吧
oracle Restore of delete data
文章列表
An A-Z Index of the Bash command line for Linux
alias Create an alias
apropos Search Help manual pages (man -k)
apt-get Search for and install software packages (Debian)
aspell Spell Checker
awk Find and Replace text, database sort/validate/index
b
bash GNU Bourne-Again SHell
bc Arbitrary precision ...
- 2009-06-05 10:06
- 浏览 1198
- 评论(0)
<u>______</u> 替换<u></u> 之间的_ 为等量的String。
public class TestRegStr {
public static void main(String[] args) {
System.out.println("-----------");
String s1 = "ftggh <u>__________</u>faadf<u>_</u>grgsfdgsgsfg <u>_____</u> ...
- 2008-09-23 02:34
- 浏览 798
- 评论(0)
首先修改local文件
sudo gvim /var/lib/locales/supported.d/local
加入如下内容;可选择加入
zh_SG.UTF-8 UTF-8
zh_HK.UTF-8 UTF-8
zh_TW.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_CN.GB2312 GB2312
zh_CN.GBK GBK
zh_CN.GB18030 GB18030
zh_HK.Big5 Big5
zh_TW.Big5 Big5
然后
sudo locale-gen
重新配置
dpkg-reconfigure locales
- 2008-09-16 13:17
- 浏览 996
- 评论(0)
转载自:http://blog.chinaunix.net/u1/39544/showart_310565.html
查看软件xxx安装内容
dpkg -L xxx
查找软件
apt-cache search 正则表达式
查找文件属于哪个包
dpkg -S filename apt-file search filename
查询软件xxx依赖哪些包
apt-cache depends xxx
查询软件xxx被哪些包依赖
apt-cache rdepends xxx
增加一个光盘源
sudo apt-cdrom add
系统升级
sudo apt-ge ...
- 2008-09-16 13:09
- 浏览 1020
- 评论(0)
SHOW VARIABLES -- 显示系统变量
SHOW PROCESSLIST -- 显示系统进程
SHOW CREATE TABLE --显示创建表的脚本
SHOW INDEXES FROM --显示表的索引
SHOW KEYS FROM --显示表的主外键
SHOW STATUS --显示系统状态
SHOW INNODB STATUS --显示INNODB引擎状态
SHOW TABLE STATUS --显示表的状态
SHOW TABLE STATUS LIKE 'tablename' \G --显示具 ...
- 2008-08-27 16:58
- 浏览 764
- 评论(0)
1. download mysql5.0GA
ftp://ftp.cs.pu.edu.tw/Unix/mysql/Downloads/MySQL-5.0/mysql-max-5.0.24-solaris10-x86_64.pkg.gz
2. unzip and pkgadd
groupadd mysql
useradd -g mysql mysql
gunzip mysql-max-5.0.24-solaris10-x86_64.pkg.gz
pkgadd -d mysql-max-5.0.24-solaris10-x86_64.pkg
3. change root password
defa ...
- 2008-08-07 10:39
- 浏览 1095
- 评论(0)
1. /etc/power.conf
# Auto-Shutdown Idle(min) Start/Finish(hh:mm) Behavior
autoshutdown 30 9:00 9:00 noshutdown
device-dependency-property removable-media /dev/fb
autopm enable
system-threshold always-on
autoshutdown 设置自动关机
2. pmconfig 使修改生效
3. dtpower 图形终端的电源管理程序,推荐使用。
- 2008-08-07 10:37
- 浏览 917
- 评论(0)
SELECT * FROM pg_attribute WHERE attrelid = ‘tablename’::regclass;
–只查看字段名
SELECT attname FROM pg_attribute WHERE attrelid = ‘tablename’::regclass;
- 2008-08-07 10:34
- 浏览 1002
- 评论(0)
SOLARIS8中IP网络多路径(IP Network Multipathing)的原理与实现
一.简介:
IP 网络多路径是SOLARIS8操作环境的一种新特性,旨在在主机一侧提供网络故障切换和IP连接集合。关键特性包括:
故障检测及故障切换(failover):当网络适配 ...
- 2008-08-07 10:33
- 浏览 1492
- 评论(0)
系统引导时一直提示 “Timeout waiting for ARP/RARP packet”?
解决方法: 关闭电源重新引导系统时按 sun 键盘的 stop-A 或 普通键盘的 ctl+break (alt+break) 进入OK提示状态.
在 ok>; type printenv and look for these parameters .
boot-device disk
mfg-switch? false
diag-switch? false
if you see “boot-device net ” or true value for the other two parame ...
- 2008-08-07 10:32
- 浏览 5704
- 评论(0)
Solaris 修改时区和时间
cat /etc/TIMEZONE 查看时区设置
#
vi /etc/TIMEZONE --保存当前时区设置.
如果需要修改时区从US到中国,修改TZ标识.
#TZ=US/Central
TZ=PRC
CMASK=022
/usr/share/lib/zoneinfo 目录下保存时区文件, 具体设置看 /usr/share/lib/zoneinfo/ ...
- 2008-08-07 10:28
- 浏览 5254
- 评论(0)
Solaris8+Tomcat+PostgreSQL 安装向导
1. HardWare V100
Sun Fire V100 (UltraSPARC-IIe 548MHz), No Keyboard
OpenBoot 4.0, 512 MB memory installed, Serial #53480306.
Ethernet address 0:3:ba:30:b:72, Host ID: 83300b72.
2. OS Solaris8
SunOS Release 5.8 Version Generic_117350-39 64-bit Solaris 8
# uname ...
- 2008-08-07 10:23
- 浏览 1844
- 评论(0)
Solaris10 x86 u1 下安装 Oracle 10g Release 2
操作环境
Dell 2850
Solaris 10 x86 u1
Oracle 10g Release 2
Bash shell
综合知识
Solaris 10 x86 u1会在Dell 2850下以64位模式运行。
Oracle 10g Release 2就是64位架构
参考资料
安装文件10201_database_solx86_64.zip内的帮助文档
http://www.dbspecialists.com/presentations/oracle10gsolaris.html
http://dow ...
- 2008-08-07 10:21
- 浏览 2765
- 评论(0)
Solaris 系统启动脚本
今晚帮朋友装一套系统软件。写了一个系统启动脚本虽然简单但第一次写还是挺折腾的 。
who -r 查看系统运行级别
root@v250 # who -r
. run-level 3 Sep 28 22:39 3 0 S
#建立系统启动脚本
vi /etc/init.d/Jedi
#!/sbin/sh
#
# WTWY co.
# All rights reserved.
#
# write by ww 05/09/28 SMI"
case "$1" in
'start')
su - ...
- 2008-08-07 10:20
- 浏览 1158
- 评论(0)
oracle中误删数据重新恢复的过程,教训 ! 学习~
今天在工作过程中失误删除了select * from ccard.em_creditcard where sno = 99的记录,找同事帮我恢复了一下,以下记录恢复的过程。既作为教训也作为学习,引以为鉴,以后删除数据前一定要先备份。
基本思路把前一天的表空间备份出来恢复到一个临时的表空间,然后把记录重新Insert到误删的表空间中,幸亏这条记录是今天之前的,若是当天的数据也没有备份的话需要从日志来恢复了。
[oracle@Pay-DBsrv oracle]$ sqlplus /nolog
SQL> connect / as ...
- 2008-08-07 10:19
- 浏览 1745
- 评论(1)