您的位置:首页 > 数据库 > Oracle

oracle单列索引和组合索引性能测试

2014-12-14 10:06 459 查看
享受自由,感受经典--debian -

原图

http://jianxiaza.blog.163.com/pr ... 92&frompvphdown

感谢win黑屏事件,让我有勇气开始一直向往的linux之旅。从ububntu开始用了近十个发行版本,有些是一瞥而过,有的或有些许留念。也许这就是
linux的优势--自由--我选择--我作主!带着或大或小的遗憾,我经历过一两个月前的4.0r7的失败(回想当时可能是仓促),再此向经典致敬
------debian lenny(5.0)。我想用xfce,开始我下了xfce的live的镜像和cd1的镜像,但都无法从硬盘引导成功,没辙,下了默认gnome的cd1 镜像,安装相当顺(十来个版本没白玩!)。可是有东西还得按习惯记下来,备用。

网络设置

我有个发现,以前装4.0r7时DHCP自动激活。可是5.0却不能,但在一次重装时我开着我的本本,安装过程就发生了变化,我想是DHCP已激活所致,因为这是的APT设置变的一蹴而就,原来装到这里都相当滞缓。果然,装好后进入系统网络已经可用。我想大概是因为我的本本开着以至路由器处于激活状态?不管!以下是在HDCP没有激活时的手工设置方案:

gedit /etc/network/interfaces 设置网卡接口

# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).

# The loopback network interface

auto lo

iface lo inet loopback

# The primary network interface

allow-hotplug eth0

iface eth0 inet static

address 192.168.1.10*

netmask 255.255.255.0

gateway 192.168.1.1

auto eth0

不管是静态IP或HDCP都要重启以下

/etc/init.d/networking restart

是指DNS

gedit /etc/resolv.conf

domain domain

search domain

nameserver 218.74.122.**

nameserver 218.74.122.**



(以我粗浅的经验和拿来主义的秉性而言,这意味着扩展应用和升级的基石,我纳闷的是我们的“国货”在这方面作的没洋货好,这也是我热情澎湃的“国货”了一把后的无奈叹息。)

上次的4.07,由于仓促没倒腾灵清源的事儿。现在倒腾好了。用了个台湾的(国内还没建立,不知道是没建立5.0还是没建立debian官方镜像,后来我用businesscard镜像装时发现其实有中国的服务器在官方列表里。不过有时手头明明有资源不知道利用也有的,163.的镜像我一直收藏的,可后来才发现,也能用,还相当满意。)

gedit /etc/apt/sources.list

#

# deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 CD Binary-1 20090214-16:29]/ lenny main

# deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 CD Binary-1 20090214-16:29]/ lenny main

# deb http://security.debian.org/ lenny/updates main

# deb-src http://security.debian.org/ lenny/updates main

# deb http://volatile.debian.org/debian-volatile lenny/volatile main

# deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

deb http://ftp.tw.debian.org/debian lenny main

# deb http://ftp.tw.debian.org/debian squeeze main

# deb http://ftp.de.debian.org/debian lenny main

# deb http://ftp.de.debian.org/debian etch main

# deb http://ftp.de.debian.org/debian squeeze main

# deb http://ftp.de.debian.org/debian sid main

deb http://www.debian-multimedia.org lenny main

deb ftp://ftp.debian-multimedia.org lenny main

deb http://www.debian-multimedia.org stable main

deb ftp://ftp.debian-multimedia.org stable main

deb http://ftp.au.debian.org/debian lenny main

deb http://ftp.au.debian.org/debian etch main

deb http://ftp.au.debian.org/debian squeeze main

deb http://ftp.au.debian.org/debian sid main

友情推荐

deb http://mirrors.163.com/debian lenny main non-free contrib

deb http://mirrors.163.com/debian lenny-proposed-updates main contrib non-free

deb http://mirrors.163.com/debian-security lenny/updates main contrib non-free

deb-src http://mirrors.163.com/debian lenny main non-free contrib

deb-src http://mirrors.163.com/debian lenny-proposed-updates main contrib non-free

deb-src http://mirrors.163.com/debian-security lenny/updates main contrib non-free

deb http://mirrors.163.com/debian testing main contrib non-free

deb http://mirrors.163.com/debian testing-proposed-updates main contrib non-free

deb http://mirrors.163.com/debian-security testing/updates main contrib non-free

deb-src http://mirrors.163.com/debian testing main contrib

deb-src http://mirrors.163.com/debian testing-proposed-updates main contrib non-free

deb-src http://mirrors.163.com/debian-security testing/updates main contrib non-free

deb ftp://www.anheng.com.cn/debian/ testing main non-free contrib

deb ftp://www.anheng.com.cn/debian/ testing-proposed-updates main non-free contrib

deb ftp://www.anheng.com.cn/debian-security testing/updates main contrib non-free

deb-src ftp://www.anheng.com.cn/debian/ testing main non-free contrib

deb-src ftp://www.anheng.com.cn/debian/ testing-proposed-updates main non-free contrib

deb-src ftp://www.anheng.com.cn/debian-security testing/updates main contrib non-free

deb http://www.debian-multimedia.org testing main

香港 (Hong Kong)

* http://ftp.hk.debian.org/debian/ (Full Debian mirror)

* ftp://ftp.hk.debian.org/debian/ (Full Debian mirror)

* http://ftp.hk.debian.org/debian-iso/ (i386 + amd64 CD ISO images)

* ftp://ftp.hk.debian.org/debian-iso/ (i386 + amd64 CD ISO images)

* http://ftp.cuhk.edu.hk/pub/Linux/debian/ (Debian 3.1r5, Debian 4.0r2 i386 full/update DVD iso)香港中文大学高速网络

* ftp://ftp.cuhk.edu.hk/pub/Linux/debian/ (Debian 3.1r5, Debian 4.0r2 i386 full/update DVD iso)香港中文大学高速网络

中国大陆 (Mainland China)

* http://debian.cn99.com/ (Full Debian mirror, with i386 CD ISO images)

* ftp://debian.ustc.edu.cn/

* ftp://ftp.linuxforum.net/debian/

* ftp://mirrors.geekbone.org/debian

台湾 (Taiwan)

* http://ftp.cse.yzu.edu.tw/pub/Linux/debian/

* ftp://ftp.cse.yzu.edu.tw/pub/Linux/debian/

* http://debian.nctu.edu.tw/

* http://debian.csie.nctu.edu.tw/

照例,apt-get update(upgrade,dist-upgrade------花的时间可不少)

挂载其它分区

gedit /etc/fstab (或 sudo vi /etc/fstab)

/dev/hda1 /media/hda1 ntfs nls=utf8,umask=222,user 0 0 (挂ntfs分区)

我的是fat32,挂了c盘和f盘(在linux下的盘符为hda1,hda10)

/dev/hda1 /media/hda1 vfat utf8,umask=000,user 0 0

/dev/hda10 /media/hda10 vfat utf8,umask=000,user 0 0

保存fstab文档

建立挂载点

mkdir /media/hda1

mkdir /media/hda10

你有几个建立几个

测试 (这很重要!)

mount /dev/hda1

mount /dev/hda10

输入法

我是用搜索到的一个命令搞定的

apt-get install scim.*

(推荐用:apt-get install scim-pinyin im-switch )

im-switch -s scim -z default

http://www.linuxsir.org/bbs/thread287473.html

http://www.linuxsir.org/bbs/thread287473.html

http://www.91linux.com/html/linux_pub/debian/20070129/407.html

http://www.91linux.com/html/linux_pub/debian/20070129/409.html

iceweasel安装,汉化,(附带gftp)

apt-get install iceweasel iceweasel-l10n-zh-cn gftp

http://www.linuxdiyf.com/viewarticle.php?id=65551

http://www.linuxdiyf.com/viewarticle.php?id=65551

为了安装的有效性,我装了新利得等安装管理工具

apt-get install synaptic Adept GDebi gnome-app-install

轻量化会话

xfce,lxde.openbox 都能很方便的实现,我是第一次看到光秃秃的openbox(以前见过有panel的),不过能通过运行gnome-
panel,pypanel或
lxpanel其中任何一个配合起来就可以方便地使用了。lxde也是不错的选择,可惜华人做的东东没作汉化,呵呵。xfce是我用的最久的。总之,在
debian上,因为openbox,我第一次有了把不同环境进行组合使用的流畅体验,真不错。难怪有位老兄感慨说:原来,openbox才是王道...

如果只安装了标准系统

apt-get install xfce4 xdm alsa-base alsa-utils gnome-power-manager
gnome-themes gnome-icon-theme ttf-bitstream-vera ttf-arphic-uming

执行 alsaconf 一路回车。 设置音量,取消静音,ESC 键退出。

保存设置 alsactl store

测试 cat /dev/urandom > /dev/dsp 你将会听到非常好听的声音,恭喜你,你的声卡工作了。

ctrl+c 终止它

应用构建

按照我的习惯,想到一个写一个,我只有简单的应用,一般系统装好我多想着先去掉我不想要得东东,debian的系统是最干净的,我不做这事了,想用什么
我就倒腾什么

1,flashplayer+ffmpeg

dpkg -i /media/hda10/soft/linux/debian/media/install_flash_player_10_linux.deb

apt-get install ffmpeg

ffmpeg是个格式转换软件

http://www.stonemx.com/blog/archives/2006/2006112134545.html

http://www.stonemx.com/blog/archives/2006/2006112134545.html

依赖关系问题

apt-get install -f

dpkg -i /media/hda10/soft/linux/debian/media/install_flash_player_10_linux.deb

2,realplayer

dpkg -i /media/hda10/soft/linux/debian/media/RealPlayer11GOLD.deb

依赖关系问题

apt-get install -f

dpkg -i /media/hda10/soft/linux/debian/media/RealPlayer11GOLD.deb

3,网络电视(新闻用,必备)

建好源后(第一次我没建好源,装出来的mplayer一启动就休克。我发觉mplayer这好东东在不同的发行版本里多是个相当难伺候的。)

下载公钥:download the debian-multimedia-keyring package

cd /media/hda10/soft/linux/debian/media/

dpkg -i debian-multimedia-keyring_2008.10.16_all.deb

源设置如下

# deb http://ftp.de.debian.org/debian lenny main

# deb http://ftp.de.debian.org/debian etch main

deb http://ftp.de.debian.org/debian squeeze main

# deb http://ftp.de.debian.org/debian sid main

deb http://www.debian-multimedia.org lenny main

deb ftp://ftp.debian-multimedia.org lenny main

deb http://www.debian-multimedia.org stable main

deb ftp://ftp.debian-multimedia.org stable main

apt-get update

apt-get install mplayer

备用源

deb ftp://ftp.nerim.net/debian-marillat/ unstable main

deb-src ftp://ftp.nerim.net/debian-marillat/ unstable main

http://www.debsir.org/main/?q=node/92

http://www.debsir.org/main/?q=node/92

于我而言,如获至宝的地址:

http://debian-multimedia.org/

在这之前我用test源装的mplayer存在各种崩溃状态,哈哈,现在解气了!!!---是debian里到目前为止我为以头头疼的事。可以从以下引自linuxsir论坛的话作为作证:

最初由 hantsy 发表

也不知道debian 和mplayer两个team之间有什么深仇大恨,mplayer一直没有官方版本。。。

yongq:

引用:

最初由 hantsy 发表

也不知道debian 和mplayer两个team之间有什么深仇大恨,mplayer一直没有官方版本。。。

后者仰慕前者, 前者嫌后者 license 有问题, 后者遂...

所谓爱之愈深, 恨之愈深...

其实好像大多数 distro 都是不收录 mplayer 的, 非独Debian如此.

mplayer添加skin

解压到桌面

cd /home/kantian/Desktop/PowerPlayer/

mkdir /usr/share/mplayer/skins/PowerPlayer/

mv * /usr/share/mplayer/skins//PowerPlayer

下一个w32codecs的.deb包

dpkg -i /media/hda10/soft/linux/debian/media/w32codecs

网络电视我用了原来ubuntu8.04里的0.21版gmlive(有备无患,嘿嘿)

dpkg -i /media/hda10/soft/linux/debian/media/gmlive

另外一种方案:

把essential-20071007包解压

cd /home/kantian/Desktop/codecs/essential-20071007/

mkdir /usr/lib/codecs

mv * /usr/lib/codecs/

Linux下安装Mplayer后打开一个rmvb格式的电影,声音都很正常,但是没有图像。

  vo=xv,将其改成vo=x11。

  但是我改过之后仍然没有图像,然后继续找其它的原因。

  

  先用 sudo apt-get install w32codecs 试了一下,没有可用的软件包

  然后去网上下了个w32codecs包,下载链接如下:

  http://www.debian-multimedia.org ... 071007-0.1_i386.deb

  http://ftp.sunet.se/pub/os/Linux ... 071007-0.1_i386.deb

  

  关于mplayer配置文件的一些说明

  vo=xv(选择默认的播放模式,xv模式是支持显卡硬加速功能的模式,对cpu的占用很小,推荐;更多的显示模式可以用命令mplayer -vo help看,其中的vesa模式可以在不启动xwin界面时播放,有点象当年DOS下的金山影霸)

  ao=oss(选择声音的播放模式,oss是兼容性最好的播放模式,推荐;你也可以试试sdl模式)

  fs=yes(全屏模式,yes的话默认以全屏播放,no或前面加#号注释掉这行的话则默认是1:1播放模式)

  zoom=yes(即时改变电影画面大小,yes的话则可以用鼠标随意将播放画面拉大拉小,no的话不能)

  gui = yes(默认是图形化操作界面,这需要你先前用./configure --enable-gui来编译,否则的话就算yes也没有gui操作界面)

  skin = default(设置默认的skin,将等号右边的值换成skin所放目录就可以设置想要的skin为默认了,这个参数在用gui操作界面才有效)

  cache = 8192(默认的播放缓存大小,如果机器内存够大,则将它加大一点,如果不是很大,譬如128以下,还是用默认的算了)

  framedrop = yes(允许跳帧,如果你的机器CPU速度非常非常慢的话请将这个yes,默认是no或前面加#号将这行禁止;对于366MHZ以上的机器,建议都设成no或前面加#号)其他设置用默认就行

http://edu.cnzz.cn/NewsInfo/22596.aspx

http://edu.cnzz.cn/NewsInfo/22596.aspx

http://www.linuxdiyf.com/viewarticle.php?id=65551

http://www.mplayerhq.hu/拿个all-20071007.tar.bz2下来,解压到:/usr/lib/codecs,几乎所有的视频都能放了,不需要再装realplayer了。

http://www.linuxsir.org/bbs/thread287473.html

http://www.linuxdiyf.com/bbs/thread-56887-1-3.html

4,看图

apt-get install gthumb

5,wine

http://wine.budgetdedicated.com/archive/index.html

http://wine.budgetdedicated.com/archive/index.html

我拿了for ubuntu8.10的包可用。

6,桌面小工具

apt-get install screenlets

7,装个主题包

cd /home/kantian/

mkdir /.themes

cp /media/hda8/soft/linux/ubuntu/icon/93880-LK_OSX_Grey_V2.tar.gz /home/kantian/.themes

cd /home/kantian/.themes/

tar zxvf *.tar.gz

(使用root限权解压:

tar.gz包的解压方法:

sudo tar zxvf file.tar.gz

bz2包的解压方法一:

sudo tar jxvf file.tar.bz2

bz2的解压方法二:

sudo bzip2 -de file.tar.bz2|tar xvf file.tar.bz2

tar.Z包的解压方法:

sudo uncompress file.tar.Z

)

8,dpf阅读

apt-get install evince

9,装个奔流下东东

建个目录,拷贝benliud-socrates-u710.tar.bz2进去,改到该目录下

tar jxvf benliud-socrates-u710.tar.bz2

10,懒得用命令解压装个文件归档器

apt-get install file-roller (可选ark)

Screenshot.png
(1.38 MB)

下载次数:0
2009-3-23 18:11



1420041257506655178.jpg
(24.35 KB)

下载次数:0
2009-3-23 18:11

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: