2007-09-25 Tue
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
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
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
昨天,参加了Oracle广州的Oracle Database 11g软件发布会。
广州的参会人数比北京要少一些,但是现场还是坐的满满的,Gototop前来捧场。
流程和北京的相同,开始仍然是我的一个小演讲。
后面还有一个小小论坛,参加的客户是广州移动,据说广州移动的收入占到了中移动收入的1/6,利润高昂,是中移动最大的收入来源,看一下广州移动的营收数据:
广东移动近日发表2007年中期报告,今年上半年净利润100.54亿元,日营业收入已连续第五年超过1亿元。
早在2003年,广东移动业务收入已经实现了"平均一天一个亿,全年突破365亿元"的目标。2004年,广东移动客户数、收入和净利润分别约占整个集团公司的1/6、1/5和1/3,业务收入占广东GDP的2.5%,经济贡献率高于全国平均水平一倍。
从以上数据我们可以看到,全国人
我之前说过,我的演讲题目和技术无关,是对数据库技术的一点展望,这基本上是一个半命题作文,内容的取舍很是麻烦。
Paul和我说,和技术关系不大,用户可能不感兴趣。
我说,那我变化一下,增加点技术内容好不好。
Paul说,不好,你讲了我讲什么:)
演讲之后有几个广州的朋友来找我签名,素不相识,但是我祝愿朋友们在Oracle的这条路上都能够越走越远、越走越好。
-The End-
相关文章|Related Articles
- 在北京Oracle 11g发布会作主题演讲
- Oracle Database 11g中国Launch大会预告
- Oracle 11g新特性:Rman备份跳过自由区间
- Oracle 11g新特性:Server Result Cache测试
- Oracle 11g新特性:Result Cache之一
评论数量(5)|Add Comments
本文网址:http://www.eygle.com/archives/2007/09/11g_launch_guangzhou.html
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.
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.
今天中秋节了,祝大家中秋快乐。端午,中秋,春节也算是中国农历的三大传统节日了,不过,除了春节算是传统节日中比较隆重的一个外,中秋与端午好象都不怎么过了。单位给每位都发了一盒月饼,只是,现在大家都不爱吃月饼了,还在家放着呢。
给老爸打了个电话,问他老人家人一个人怎么过节的。7点多了,老人家还正在吃饭,问他怎么吃这么晚,原来是家里停电了,才来电不久。又问他吃月饼没有,他说吃了,不过买的一般的月饼,好月饼太贵了,要好几块一个呢。
老人家还是太省钱,好几块一个也不贵啊,但是他们老人看起来就很贵了。现在他在家里还有点事情要做,还有油茶要去摘,等过了这一段时间,就把他老人家接过来住一段。去年春节前把他接过来住了一个月时间,真正让他常住在这里呢,他却又总是呆不住。
想不到农村还有停电事情,最近几年好象不怎么停电了的。只有记得我小的时候,只有春节才不会停电,其它时间,是基本没有电的。还记得一个笑话,我问我哥哥,“如果突然停电了,那一个月饼正好生产了一半会怎么样啊?”我哥就笑话我没有出息,停电想到的影响居然是一个月饼。不好意思,那个时候的我,能拥有一个月饼,那可是多么幸福的事情啊。
另外,blog很久没有更新了,最近都在忙书的第二次修正,估计在出版以前,blog的更新都不会多,希望大家多体谅。最后,再次再祝大家中秋快乐,合家团圆。
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
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
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
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
2007-09-23 Sun
AnySQL.net
DBA notes
Oracle & Starcraft
eagle's home
给你点color see see
AnySQL.net English
Oracle Scratchpad
Oracle Life
OracleDBA Blog
Photos from dbanotes
Chanel [K]
xzh2000的博客
Oracle Security Blog
ERN空间
Eddie Awad's Blog
MySQL Performance Blog
The Tom Kyte Blog
del.icio.us/fenng/oracle
AIXpert
O'Reilly Databases
Red Hat Magazine
DBASupport
DB2 Magazine 中文版
developerWorks : AIX 专区的文章,教程
Pythian Group Blog
车东[Blog^2]
blue_prince
玉面飞龙的BLOG
此生 今世
人生就是如此
Orange Tiger 木匠 的 移民生活
生活帮-LifeBang
Hey!! Sky!
dba on unix
Oracle Notes Wiki
Welcome to brotherxiao's Home
柔嘉维则@life.oracle.eng
Fenng's shared items in Google Reader
jametong's shared items in Google Reader
缥缈游侠-logzgh
Tanel Poder's blog: Core IT for geeks and pros
DBA Tools
DBA is thinking
NinGoo@Net
