2014/12/14

Published 12月 14, 2014 by

找尋檔案中的字串-find / grep 指令

在linux底下,找尋目錄及子目錄的檔案的字串: 要利用 find 的功能來協助,就嘗試寫寫看囉!我的寫法如下: # find ./ -type f -name \*.php |xargs grep 'localhost' # grep -r --include='*.php' localhost ....
Read More

2014/07/24

Published 7月 24, 2014 by

Create partition Table/Index

Create partition Table/Index: 1.      確認是否需要新增Table/Index Tablespace 2.      確認空間是否足夠 3.      Create Partition table 4.      Split Partition 5.      Create Partition Index 6.      確認建立的Partition(找出最大的Partition) 一、產生新的 Table/index Tablespace語法(自行確認是否要新增): CREATE TABLESPACE STGC5_TRG_2015Q1...
Read More

2014/07/21

Published 7月 21, 2014 by

Linux下安裝xrdp

Linux下安裝xrdp 使用rdp協定訪問遠端Linux桌面...
Read More

2014/07/20

Published 7月 20, 2014 by

被動收入-分類

一般來說被動收入有兩種方式: 1.透過資本賺被動收入(較適合有一桶金以上的人) 2.透過技能專長興趣賺被動收入(較適合時間較多的人...
Read More

2014/05/23

Published 5月 23, 2014 by

DB File/Tablespace Size Monitor

查看每個File的使用率 SELECT T.TABLESPACE_NAME,D.FILE_NAME,D.AUTOEXTENSIBLE,D.BYTES/1024/1024/1024 as USED_G,D.MAXBYTES/1024/1024/1024 AS MAX_G,D.STATUS,(d.bytes/d.maxbytes)*100 AS UseRate FROM DBA_TABLESPACES T,DBA_DATA_FILES D WHERE T. TABLESPACE_NAME =D. TABLESPACE_NAME and d.maxbytes!=0 ORDER BY UseRate desc 查看Tablespace的平均使用率及剩餘空間 select t.tablespace_name ,avg(d.bytes/d.maxbytes)*100 as Used_Rate,sum(d.maxbytes)/1024/1024/1024...
Read More

2014/05/16

Published 5月 16, 2014 by

DB常用指令

Create Function: CREATE INDEX DWPIA.IDX_SAP_STB_MTIDX ON DWPIA.SAP_STB (MTIDX, RDATE) LOGGING TABLESPACE DWC5_IDX NOPARALLEL online; CREATE TABLESPACE C5_SYS_DATA DATAFILE '+DBDATA/c5tasm/datafile/C5_SYS_DATA.dbf' SIZE 5M AUTOEXTEND ON NEXT 5M MAXSIZE UNLIMITED; CREATE USER C5TST3 IDENTIFIED BY C5TST3 ACCOUNT UNLOCK; Drop Function: DROP TABLESPACE tspace INCLUDING CONTENTS AND DATAFILES; Grant...
Read More

2014/05/07

Published 5月 07, 2014 by

Oracle ASM To File File::DBMS_FILE_TRANSFER

Oracle ASM To File File::DBMS_FILE_TRANSFER 建立Directory: SQL> create directory souredir as '+DBDATA/c5tasm/datafile'; SQL> create directory destdir as '/orasys'; Directory created 確認directories: SQL>select * from dba_directories; 確認File的Status: SQL>select file_name,...
Read More

2014/04/24

Published 4月 24, 2014 by

Linux Multipath (Storage I/O)

Linux Multipath (Storage I/O) l         Multipath說明 儲存裝置到主機有多條路徑, 這就叫作 Multipath, 一般在外接 Storage 上較常看到 Multipath 一般常看到的是在 Storage 上有一個以上的 Controller 或是 供外部主機存取的介面, 這個情況下你會發現, 我在 Storage 上明明只切了一塊空間給主機, 但是再主機上卻看到兩個空間...
Read More