Jobs:”你必须要找到你所爱的东西”

史蒂夫·乔布斯(Steve Jobs)2005年6月12号在斯坦福大学的毕业典礼上面的演讲稿,在这个特殊的日子里让我们一起来回顾他曾经讲过的三个故事。
Jobs Jobs:”你必须要找到你所爱的东西”
You’ve got to find what you love,’ Jobs says

Jobs说,你必须要找到你所爱的东西。

阅读全文

关于有道词典ActiveX的问题

在打开有道词典的时候经常提示ActiveX的一个错误.其实这是由于Flash升级引发的Bug导致的.

只要删除注册表中的

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\方框

就可以解决这个问题

Oracle存储参数(storage子句)含义及设置技巧

可用于:表空间、回滚段、表、索引、分区、快照、快照日志

image thumb4 Oracle存储参数(storage子句)含义及设置技巧

阅读全文

SQL脚本:监控当前重做日志文件使用情况

转自:ORACLE CLINIC

这个脚本可以用来分析当前重做日志文件(redo logfile)已被用到了什么位置(position)、还剩余多少空间和已使用的百分比:

set linesize 200 pagesize 1400;
select le.leseq "Current log sequence No",
       100 * cp.cpodr_bno / le.lesiz "Percent Full",
       (cpodr_bno - 1) * 512  "bytes used exclude header",
       le.lesiz * 512 - cpodr_bno * 512 "Left space",
       le.lesiz  *512       "logfile size"
  from x$kcccp cp, x$kccle le
 where LE.leseq = CP.cpodr_seq
   and bitand(le.leflg, 24) = 8;
Sample:
SQL> set linesize 200 pagesize 1400;
SQL> select le.leseq "Current log sequence No",
  2         100 * cp.cpodr_bno / le.lesiz "Percent Full",
  3         (cpodr_bno - 1) * 512  "bytes used exclude header",
  4         le.lesiz * 512 - cpodr_bno * 512 "Left space",
  5         le.lesiz  *512       "logfile size"
  6    from x$kcccp cp, x$kccle le
  7   where LE.leseq = CP.cpodr_seq
  8     and bitand(le.leflg, 24) = 8;

Current log sequence No Percent Full bytes used exclude header Left space logfile size
----------------------- ------------ ------------------------- ---------- ------------
                    189   90.7612305                  95169536    9687552    104857600

/*  如上结果显示当前重做日志号为189,使用量百分比是90.7%
    当前日志被使用到了95169536+512 bytes(重做日志文件头)的位置,
    还剩余9687552 bytes的空间,该重做日志的总大小为104857600=100MB
*/

© 2010, www.oracledatabase12g.com. 版权所有.文章允许转载,但必须以链接方式注明源地址,否则追求法律责任.

ORACLE归档模式的设置

在ORACLE 数据库的开发环境和测试环境中,数据库的日志模式和自动归档模式一般都是不设置的,这样有利于系统应用的调整,也免的生成大量的归档日志文件将磁盘空间大 量的消耗。但在系统上线,成为生产环境时,将其设置为日志模式并自动归档就相当重要了,因为,这是保证系统的安全性,有效预防灾难的重要措施。这样,通过 定时备份数据库和在两次备份间隔之间的日志文件,可以有效的恢复这段时间的任何时间点的数据,可以在很多时候挽回或最大可能的减少数据丢失。
一、 要使OARCLE 数据库进行日志的自动归档,需要做两方面的事情;
1.是数据库日志模式的设置(可为Archive Mode 和No Archive Mode);2.就是自动归档模式设置(Automatic archival,可为Enabled 和Disabled)。

二、 如何查看数据库的现行日志和自动归档模式的设置
可用archive log list 命令来查看。
运行在日志自动归档模式下的数据库系统查看结果如下(一般是生产环境):
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /backup/archivelog
Oldest online log sequence 2131
Next log sequence to archive 2133
Current log sequence 2133
没有启动数据库日志模式和自动归档的数据库系统查看结果如下(一般是测试环境):
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /u01/app/oracle/product/8.1.7/dbs/arch
Oldest online log sequence 194
Current log sequence 196

 

阅读全文

Spotlight on Oracle 5.0.1.1022

image thumb1 Spotlight on Oracle 5.0.1.1022

安装后折腾了很长时间,总是连接不上我vm里的oracle10g.后来看了一下使用手册才知道需要通过File–>Oracle User Wizard创建一个工具用来连接的用户才可以.

这个图是我的vm中的oracle10g的情况,没有打开asm,systemos的监视.没有做过全备和闪回.

8步教你把Mac os X 10.6.4安装到PC机上

在优酷上发现的一个黑苹果的安装流程,视频做的很细,很酷,很强大!

阅读全文

Vim Introduction and Tutorial

转自: Vim Introduction and Tutorial

I often tried to learn the great Emacs editor/IDE/operating system. The last time I tried it, I spent some time getting comfortable with it until I wanted to customize my .emacsfile.

That was the point when I entered vi .emacs. As soon as I realized what I’ve done, I knew that Vim has won me over a long time ago.

So, here I am – using Vim as my editor1 of choice.

Another big motivational boost came after I discovered that my preferred shell (ZSH) has an awesome vi-mode including the command mode (yes, you can switch between command and insert mode!).

Vim has a great deal of features, and learning them takes some time. Of course there are many online-tutorials and tips’n’tricks pages, but the help-files are very good too! There are overview-pages, summary pages and some comments at the commands.

I took the approach to start using some tutorial and let the help-system guide (type :help <command> to get help for the command) me through the rest. I like to try the commands in a test-file, and take a short note of important commands.

Another reason I like to use Vim is because it’s much more healthy than Emacs (using the default-keymappings). Healthy? Many commands are easily typed with a single keystroke – the virtue of a modal editor, instead of long command-chains with lots of modifier keys. Even if you have a natural keyboard, pressing Ctrl, Alt etc is certainly not natural at all.

Just remember: Vim’s basics are really very simple, but in combination the simple commands become very powerful.

阅读全文

vimrc_1.5.vim

image thumb4 vimrc 1.5.vim

" File:                    .vimrc
" Author:               Stanley Sun <coolingverse AT gmail DOT com>
" Version:            1.5
" For:                    Windows and Linux
" Last Change:  2011/5/24 22:44:36
"
" What’s New:
"   1.调整代码以适用于Linux系统
"   2.删除不使用的插件配置信息
"   3.加强代码折叠,代码补全的设置
"   4.更改文件的字符集为UTF-8

获取方法: 回复留下email,稍后通过邮件寄出.

vimrc_1.4.vim

image thumb3 vimrc 1.4.vim

" Author: Stanley Sun <coolingverse at gmail.com>
" Version: 1.4 – 2011/5/21 10:15:14
"
" What’s New:
"   1.转到插入模式时 StatusLine 颜色反转
"   2.对 StatusLine 中的各个元素进行了分组设置
"   3.在 StatusLine 中的encoding后加入文件的format信息

下载: _vimrc_1.4.vim