2020-02-22から1日間の記事一覧

merge join

DB

MySQL (5.6)サポートしていない Oracle (12cR1) --確認事項(非等価結合の場合)件数が少ないテーブルが外部表となること --データ準備 drop table tab1;drop table tab2; create table tab1(col11 int,col12 int,col13 int);create table tab2(col21 int,col2…

hash join

DB

MySQL (5.6)サポートしていない Oracle (12cR1) --確認事項(絞り込み後)件数が少ないテーブルが外部表となること 外部表→ビルド表内部表→プローブ表 --データ準備 drop table tab1;drop table tab2; create table tab1(col11 int,col12 int,col13 int);creat…

nested loop

DB

MySQL (5.6)--確認事項(絞り込み後)件数が少ないテーブルが外部表となること --データ準備 drop table tab1;drop table tab2; create table tab1(col11 int,col12 int,col13 int);create table tab2(col21 int,col22 int,col23 int); alter table tab1 add c…

集合演算

DB

MySQL (8.0.31) https://sakaik.hateblo.jp/entry/20221011/mysql8031_supports_intersect_and_except ※ (8.0.31)よりexceptとintersectが使用可能 drop table tab1;drop table tab2;create table tab1(col1 int);create table tab2(col1 int);insert into t…

パーティション暗号化

OS

Ubuntu (16)apt install cryptsetup-bin cryptsetup luksFormat /dev/sdb1 cryptsetup luksOpen /dev/sdb1 secret mkfs -t xfs /dev/mapper/secret mount /dev/mapper/secret /mnt umount /mnt cryptsetup luksClose secret cryptsetup luksDump /dev/sdb1 (…

シンボリックリンク

OS

Ubuntu (16)mkdir /tmp/targetdirtouch /tmp/targetfile ln -s /tmp/targetdirln -s /tmp/targetfile ln -s /tmp/targetdir mydirln -s /tmp/targetfile myfile (18)mkdir /tmp/targetdirtouch /tmp/targetfile ln -s /tmp/targetdirln -s /tmp/targetfile l…

文字列暗号化

OS

Ubuntu (16) -- 暗号化echo "test" | openssl enc -e -aes256 -base64 -k "" -out /root/test.pass -- 復号化openssl enc -d -aes256 -base64 -k "" -in /root/test.pass (18) -- 暗号化echo "test" | openssl enc -e -aes256 -iter 256 -base64 -k "" -out …