2007-12-03 18:08
2007-11-30 14:45
http://blog.roodo.com/mywork/archives/2579830.html
mysql移至oracle的經驗記錄
上個星期都在忙處理mysql的資料匯到oracle中,本來是用sqlldr來處理,後來想到要處理的table很多,就開始找了一些工具來處理。試過了oracle官方軟体,但只支援mysql4.x;再找了Intelligent Converters,發現中文匯入會有問題,最後還是自已diy處理了.........
一些心得分享:
1、如需轉碼的話,可利用linux中的iconv這個指令處理,範列如下:
icon |
2007-11-30 14:38
http://blog.roodo.com/mywork/archives/1117380.html
oracle的impdb/expdp
os:rhce 4.0
linux:10.1.2
備份跟還原測試機器上先建立相同的環境,進入sql
create user expdbuser identified by expdbuser default tablespace expdb temporary tablespace temp;
grant dba to expdbuser;
create directory expdb_dir as '/u01/expdb';
grant read, write on directory expdb_dir to expdbuser;
建立用戶可看情況 |
2007-11-30 14:12
2007-11-30 14:06
2007-11-30 14:02
http://blog.roodo.com/mywork/archives/2861323.html
使用rman的壓縮功能
今天oracle的hd的使用量正式突破80%了,這就是一個要注意的事情了。於是老樣子先上google尋找了一下10g的rman是否有壓縮的功能可使用,經測試後壓縮比例個人覺的很不錯。
提供一下script給大家參考
start_back.sh
#!/bin/bash
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
ORACLE_BASE=/u01/app/oracle
export ORACLE_BA |
2007-11-30 14:00
http://blog.roodo.com/mywork/archives/1779608.html
解決oracle mount nfs備份發生ORA-27054
今天掛上一個nfs的目錄,然後進行rman備份時發生了
ORA-19504: failed to create file "/u01/db_back/archive_20060620_03hm3gn8_3_1"
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
尋問google大神後,找到解決的方法,就是在mount的語法後面再配上一
|
2007-11-29 15:44
2007-11-29 15:42
2007-11-28 18:46
find ./ -type f -name "*.html"|while read i;do iconv -f gb2312 -t utf8 $i -o $i+1;rm -rf $i;mv $i+1 $i;done
这条命令可以将gbk转换为utf8,反过来的话就要把utf8和gb2312对调一下了。在linux下用过,bsd下没试。 |
|
|