123
 123

2007-09-25 Tue

23:23 The LONG RAW and BLOB support of text unload (export) utility (3011 Bytes) » DBA Tools

    Now you can use ociuldr to move data with LONG RAW or BLOB types. Just the same as LONG and CLOB type, the "long=" option define the maximum length ociuldr will read. You may need to set the proper value of this option, the default value is 32KB. Let's start with a sample of how it works. First, create a table with BLOB and LONG RAW type. I have tested it under Oracle 9i and Oracle 10g, but not tested it under Oracle 8i.

CREATE TABLE T_RAW (COL1 NUMBER, COL2 BLOB, COL3 LONG RAW);
-- 424c4f422031=BLOB 1
-- 4c4f4e47205241572031=LONG RAW 1
INSERT INTO T_RAW VALUES (1,'424c4f422031','4c4f4e47205241572031');

    Then we unload the data with ociuldr.

ociuldr user=scott/tiger query="select * from t_raw" table=t_raw

    And check what's in the exported file. Don't feel strange that the LONG RAW and BLOB values are converted to hex code.

1,424c4f422031,4c4f4e47205241572031

    The we check the SQL Loader control file generated. The maximum length of these columns is doubled compared to LONG and CLOB type.

Read Full Text of【The LONG RAW and BLOB support of text unload (export) utility】

Related Posts

Leave New Comment(Current: 0)

Link: http://www.dbatools.net/mytools/unload_oracle_raw_data.html

23:00 系统管理工具包: 使用 SSH 进行分布式管理 (337 Bytes) » developerWorks : AIX 专区的文章,教程
使用安全 Shell (SSH) 在远程 UNIX(R) 系统中运行命令,并使用一些简单的脚本构成一个系统,该系统允许您在一台计算机中同时管理许多系统,而无需直接登录到计算机本身。本文还介绍了分布式管理系统的基础知识,以及使用该技术的某些脚本和解决方案。
21:59 How to move Oracle context index to another tablespace? (2538 Bytes) » DBA Tools

    We cannot use following command to move Oracle context index to another tablespace, because it's a special kind of index.

ALTER INDEX ... REBUILD TABLESPACE CTXDATA;

    You need create new storage setting or modify existing storage setting. Following is to create a new one.

begin
ctx_ddl.create_preference('CTXSTORE', 'BASIC_STORAGE');
ctx_ddl.set_attribute('CTXSTORE', 'I_TABLE_CLAUSE', 'tablespace CTXDATA');
ctx_ddl.set_attribute('CTXSTORE', 'K_TABLE_CLAUSE', 'tablespace CTXDATA');
ctx_ddl.set_attribute('CTXSTORE', 'R_TABLE_CLAUSE', 'tablespace CTXDATA');
ctx_ddl.set_attribute('CTXSTORE', 'N_TABLE_CLAUSE', 'tablespace CTXDATA');
ctx_ddl.set_attribute('CTXSTORE', 'I_INDEX_CLAUSE', 'tablespace CTXDATA');
ctx_ddl.set_attribute('CTXSTORE', 'P_TABLE_CLAUSE', 'tablespace CTXDATA');
end;
/

    Then you can run the following command to rebuild the Oracle context index.

ALTER INDEX ... REBUILD PARAMETERS 'STORAGE CTXDATA';

    Then check the space usage of the tablespace.

Related Posts

Leave New Comment(Current: 0)

Link: http://www.dbatools.net/experience/move_oracle_context_index.html

19:16 Convert to Veritas Quick-IO file with shell script. (2996 Bytes) » DBA Tools

    We moved some Oracle data files from OS file system to Veritas file system, to get the better performance, we need to convert them to Veritas Quick-IO file, then Oracle will treat them as raw devices.

$> ls -la *.dbf
-rw-rw-r--   1 oracle   dba            0 Sep 25 18:02 a.dbf
-rw-rw-r--   1 oracle   dba            0 Sep 25 18:02 b.dbf

    Quick-IO files are just a special symbol link for us. So we can write a shell script to do this.

#!/bin/ksh

for fname in  `ls *.dbf`
do
  if [ -e $fname ]; then
  if [ -L $fname ]; then
     :
  else
     mv $fname .$fname
     ln -s .$fname::cdev:vxfs: $fname
     echo "convert $fname to qio finished!"
  fi
  fi
done

    Then run the script to do the conversion.

Read Full Text of【Convert to Veritas Quick-IO file with shell script.】

Related Posts

Leave New Comment(Current: 0)

Link: http://www.dbatools.net/experience/convert_to_veritas_qio.html

17:27 在广州Oracle 11g发布会作主题演讲 (3378 Bytes) » Oracle Life

©作者:eygle 发布在 eygle.com

昨天,参加了Oracle广州的Oracle Database 11g软件发布会。

广州的参会人数比北京要少一些,但是现场还是坐的满满的,Gototop前来捧场。
流程和北京的相同,开始仍然是我的一个小演讲。

后面还有一个小小论坛,参加的客户是广州移动,据说广州移动的收入占到了中移动收入的1/6,利润高昂,是中移动最大的收入来源,看一下广州移动的营收数据

广东移动近日发表2007年中期报告,今年上半年净利润100.54亿元,日营业收入已连续第五年超过1亿元。
早在2003年,广东移动业务收入已经实现了"平均一天一个亿,全年突破365亿元"的目标。2004年,广东移动客户数、收入和净利润分别约占整个集团公司的1/6、1/5和1/3,业务收入占广东GDP的2.5%,经济贡献率高于全国平均水平一倍。

从以上数据我们可以看到,全国人民对于中国移动的贡献该有多大!!!

据说广州移动主要Boss平台每天的归档日志量就有1T:

我之前说过,我的演讲题目和技术无关,是对数据库技术的一点展望,这基本上是一个半命题作文,内容的取舍很是麻烦。
Paul和我说,和技术关系不大,用户可能不感兴趣。
我说,那我变化一下,增加点技术内容好不好。
Paul说,不好,你讲了我讲什么:)

演讲之后有几个广州的朋友来找我签名,素不相识,但是我祝愿朋友们在Oracle的这条路上都能够越走越远、越走越好。

-The End-

相关文章|Related Articles

评论数量(5)|Add Comments

本文网址:

11:00 Uli Drepper part 2: Buffer overflow and libc attacks (2017 Bytes) » Red Hat Magazine

Uli Drepper is a Red Hat developer and the lead contributor and maintainer of the GNU C Library (glibc). See the first video in this series.

Download the video: [ogg]
Download the podcast: [mp3] [ogg]

In the second of five films featuring Uli Drepper, he talks a little more about buffer overflows and another security implementation currently being used.

Learn a little about libc attacks stemming from buffer overflows and the canaries that serve to protect the stack in these emergencies.

Once again, we’re offering up an unabridged podcast of our session that picks up where the last left off. Don’t forget to join us next time when we will discuss a little about malloc exploits.

08:13 The Dictionary in the Data Dictionary (92 Bytes) » DBASupport
Take a trip into Oracles data dictionary, specifically, the dictionary part or aspect of it.
05:22 祝大家中秋快乐 (1870 Bytes) » dba on unix

今天中秋节了,祝大家中秋快乐。端午,中秋,春节也算是中国农历的三大传统节日了,不过,除了春节算是传统节日中比较隆重的一个外,中秋与端午好象都不怎么过了。单位给每位都发了一盒月饼,只是,现在大家都不爱吃月饼了,还在家放着呢。

给老爸打了个电话,问他老人家人一个人怎么过节的。7点多了,老人家还正在吃饭,问他怎么吃这么晚,原来是家里停电了,才来电不久。又问他吃月饼没有,他说吃了,不过买的一般的月饼,好月饼太贵了,要好几块一个呢。

老人家还是太省钱,好几块一个也不贵啊,但是他们老人看起来就很贵了。现在他在家里还有点事情要做,还有油茶要去摘,等过了这一段时间,就把他老人家接过来住一段。去年春节前把他接过来住了一个月时间,真正让他常住在这里呢,他却又总是呆不住。

想不到农村还有停电事情,最近几年好象不怎么停电了的。只有记得我小的时候,只有春节才不会停电,其它时间,是基本没有电的。还记得一个笑话,我问我哥哥,“如果突然停电了,那一个月饼正好生产了一半会怎么样啊?”我哥就笑话我没有出息,停电想到的影响居然是一个月饼。不好意思,那个时候的我,能拥有一个月饼,那可是多么幸福的事情啊。

另外,blog很久没有更新了,最近都在忙书的第二次修正,估计在出版以前,blog的更新都不会多,希望大家多体谅。最后,再次再祝大家中秋快乐,合家团圆。

04:46 Got the "Table is full" error for MySQL memory engine table (2345 Bytes) » DBA Tools

    After using MySQL memory engine table as middle cache table, we got this error when application inserting the data to the table. Seems there is some limits on the table. After searching on Google, we know that we need to change some default settings.

    The global system variable "max_heap_table_size" define the maximum size memeory table can reach. The default values is 16384 (Maybe it's OS dependant). So you can change it with the following steps.

    Run the following command to change it at system level.

set global max_heap_table_size=1048576000

    Then modify the MySQL configuration file, adding a new line at the end. So when next time database get restarted, the change can be permanent.

max_heap_table_size=1048576000

    Finally, you need to reconnect to MySQL, and rebuild all the tables.

ALTER TABLE ... ENGINE MEMORY;

    The last step is to let application reconnect to MySQL database, to take the change effective.

Related Posts

Leave New Comment(Current: 0)

Link: http://www.dbatools.net/experience/mysql_table_is_full.html

03:21 明天马来西亚 (1266 Bytes) » Chanel [K]
明天早上10点多的航班经由香港去马来西亚,第一个到达的城市是Kota Kinabalu,据说有个永远的蓝天和精细的海滩。 敬请期待游记。

02:42 How to install or uninstall (remove) Context on Oracle 9i/10g? (2943 Bytes) » DBA Tools

    The steps of context install on Oracle 10g.

1, create tablespace drsys
2, run @?/ctx/admin/catctx.sql ctxsys drsys temp01 nolock
3, run @?/ctx/admin/defaults/drdefus.sql
4, grant execute on ctxsys.ctx_ddl to public

    The steps of context uninstall (remove) on Oracle 10g.

-- run as sys  
?/ctx/admin/catnoctx.sql

    The steps of context install on Oracle 9i.

1, create tablespace drsys
2, run ?/ctx/admin/dr0csys ctxsys drsys temp01
3, conn to ctxsys user
4, run ?/ctx/admin/dr0inst ?/ctx/lib/libctxx9.so
5, run ?/ctx/admin/defaults/drdefus.sql
6, grant execute on ctxsys.ctx_ddl to public;

    The steps of context uninstall (remove) on Oracle 9i.

-- run as ctxsys
$ORACLE_HOME/ctx/admin/dr0drop.sql
-- run as sys
$ORACLE_HOME/ctx/admin/dr0dsys.sql

    Verification of the context installation.

Read Full Text of【How to install or uninstall (remove) Context on Oracle 9i/10g?】

Related Posts

Leave New Comment(Current: 0)

Link: http://www.dbatools.net/experience/oracle_context_index_install.html

00:22 What does the REPLACE mode of Oracle SQL Loader do? (2428 Bytes) » DBA Tools

    There is something wrong in my mind about the "REPLACE" mode of Oracle SQL Loader, I have thought that sqlldr will use a merge logic, to replace matched rows if the target table has a primary key. But it's not working this way. When I unload few rows (where dept=10) from "SCOTT.EMP" table with "MODE=REPLACE", and then load it to "TEST.EMP" with existing rows. I found the old rows are deleted.

--
-- Generated by OCIULDR
--
OPTIONS(BINDSIZE=8388608,READSIZE=8388608,ERRORS=-1,ROWS=50000)
LOAD DATA
INFILE 'uldrdata.txt' "STR X'0a'"
replace INTO TABLE emp
FIELDS TERMINATED BY X'2c' TRAILING NULLCOLS
(.....)

    Actually with this mode, sqlldr do a delete on target first. I found the following SQL in V$SQL.

DELETE /*+NESTED_TABLE_SET_REFS+*/ FROM EMP

    Then Oracle found that deleting is not high effective, so introduced the "TRUNCATE" mode into sqlldr.

Related Posts

Leave New Comment(Current: 0)

Link: http://www.dbatools.net/experience/sqlldr_replace_mode.html

00:09 Reviewme:St Thomas Villa Rental (2521 Bytes) » 给你点color see see
If you really want to splurge on a vacation that is badly needed, now is the time to get away from the work environment. You need to be in a place wherein peace, quiet and relaxation are the main course served daily.

I suggest you try a St Thomas Villa Rental vacation. If you really need to get away from the noise of life, the best way to do it is to go to the US Virgins Islands. Yes! It is a luxury waterfront villa! Did you know that they have all the amenities that you can possibly have like cable TV, Jacuzzi, flat screen monitors and more?

Imagine being in a stress-free environment in which you can release all your concern, tension and feel life flowing through your veins. Breathe fresh and crisp air in the morning instead of the early city pollution. Feel the cool soothing breeze on your face instead of the metropolis smog. I’m talking about a place that is so liberating that you can actually free your mind and your soul. You can find this dream place with just a few easy clicks at Caretbay.com. St Thomas Villas is beautifully set on the oceanfront of Caret Bay. Caret Bay is located on the lush tropical rainforest section of St Thomas. The beaches are simply breath taking. Words are cheap to describe the immaculate beauty of the rainforests and the coral reefs.

There’s more to love being pampered at the St Thomas Villa Rental villas. The bathroom has a large shower and tub to soak in and relax with your double vanity and sinks to match. Enjoy the St Thomas Villa Rental!

Get packing and reserve your spot with a St Thomas Villa Rental vacation now.

This is a sponsored post.

2007-09-24 Mon

17:26 又是一年中秋到 » OracleDBA Blog
09:28 挺住不动,真的很难! » Fenng's shared items in Google Reader
08:39 如何写一个很小的 CSS 文件 » Fenng's shared items in Google Reader
08:32 30year_logo » Photos from dbanotes
08:30 Parallel Query and 11g - Part 2 - Doug's Oracle Blog » del.icio.us/fenng/oracle
06:39 比特海日志18月23日,短信得来终觉浅 » Fenng's shared items in Google Reader
06:15 将方便进行到底——有道推出桌面词典和工具栏 » Fenng's shared items in Google Reader
06:13 我看blog上的广告 » 给你点color see see
05:30 淘宝的 Web 2.0 应用 » DBA notes
05:11 制作你的年会网络“胸牌” » Fenng's shared items in Google Reader
04:00 Dimdim Challenges WebEx, Microsoft » Fenng's shared items in Google Reader
02:09 征订 » Fenng's shared items in Google Reader
01:35 TO_CHAR » DBA is thinking
01:21 欢迎怿飞加入淘宝UED » Fenng's shared items in Google Reader

2007-09-23 Sun

23:50 税务所的显示屏,太强大了! [Flickr] » Fenng's shared items in Google Reader
20:37 Holy Mozy, EMC Moves In. There Goes The Neighborhood » Fenng's shared items in Google Reader
20:31 对话 UNIX,第 12 部分: 自己动手完成项目 » developerWorks : AIX 专区的文章,教程
18:48 Yupoo照片存储系统即将升级 » Fenng's shared items in Google Reader