原创 MySQL的lock tables和unlock tables的用法

早就聽說lock tables和unlock tables這兩個命令,從字面也大體知道,前者的作用是鎖定表,後者的作用是解除鎖定。但是具體如何用,怎麼用,不太清楚。今天詳細研究了下,總算搞明白了2者的用法。 lock tables 命令

原创 Tracking Database Feature Usage (DBA_FEATURE_USAGE_STATISTICS)

Oracle licensing is a complicated business. The notes here are only a guide. You should always discuss your licensing

原创 Linux stat 獲取文件屬性

獲取文件的屬性 $stat filename獲取文件系統信息 $stat -f /dev/sda1   #此獲取的是文件系統(分區),而不是文件stat支持許多取得文件屬性的格式代碼,基本用法爲 : stat -c 格式代碼  file

原创 MySQL下創建索引

root@mysql-master:~# mysql -uroot -p Enter password:  Welcome to the MySQL monitor.  Commands end with ; or \g. Your M

原创 oracle impdp/expdp 的權限問題

直接運行 expdp scott/tiger 系統報錯:ORA-39002: invalid operation ORA-39070: Unable to open the log file. ORA-39145: directory

原创 How to resolve ORA-19706 error when select from dblink

由於通過database link進行遠程數據庫的數據讀取時,會自動同步當前庫和遠程庫的SCN,老楊在文章中做過描述,並且提到: 而對於實際環境中,SCN的增加可能是幾倍、幾十倍甚至是上百倍,從而引發一些其他的bug。 下面就

原创 MySql中Lock命令和unlock命令

在同一個連接當中,執行了一次lock table之後,如果再次執行lock table,那麼之前被鎖住的表就自動解鎖了。 下面這張圖可以證明: ----------------------------------------

原创 shell中uniq與sort -u 兩種去重的對別

sort -u 和 uniq都能起到刪除重複信息的功能,那麼他們的區別究竟在哪呢? $ cat test               jason jason jason fffff jason 下面分別執行三個命令 1: