2020-02-01から1ヶ月間の記事一覧

{JP1/Base}3.4.7 パスワードポリシーを設定する

JP1

※ 12-10で追加 物理ホスト /opt/jp1base/bin/jbsgetcnf -c JP1BASE > /root/jbscnf.bkup vim /etc/opt/jp1base/conf/passwdpolc/jp1bs_passwdpolc.conf [JP1_DEFAULT\JP1BASE\PASSWDPOLC]"ENABLE"=dword:0000001"PASSWD_LEN_MIN"=dword:00000010"NUM_OF_CHAR…

{JP1/Base}付録L JP1/Base管理者での運用(UNIX限定)

JP1

物理ホスト (1)JP1/Baseのインストール (2) JP1管理者グループ(OSのユーザーグループ)の作成groupadd jp1adm (3) JP1/Base管理者とするユーザーのプライマリーグループの設定useradd -g jp1adm jp1admecho jp1adm | passwd --stdin jp1adm (4) JP1/Base管…

JP1単調増加ファイル調査

JP1

□JP1/Base ・イベントDB→2ファイルを切り替えて使用 ・統合トレースログ→4ファイルを切り替えて使用 □JP1/IM ・統合監視DB→JP1イベントの容量が格納可能な範囲を超えた場合,JP1イベントが自動で削除されます □JP1/AJS ・スケジューラーデータベース→自動増…

exp/impツールバージョン互換性

DB

MySQL --テーブル作成drop table tab1;create table tab1(col1 int);alter table tab1 add constraint cons1 primary key(col11);insert into tab1 values(1);select * from tab1; 【1】5.6で取得したダンプを用いて8へリストアする場合 --ダンプ取得mysqldu…

exp/impツールカラム影響

DB

MySQL (5.6)(5.7)(8) --確認事項ダンプ取得後、カラム追加したテーブルへダンプからリストアできるか --テーブル作成drop table tab1;create table tab1(col1 int);alter table tab1 add constraint cons1 primary key(col11);insert into tab1 values(1);se…

キャッシュデータクリア

OS

Ubuntu (16) free -mecho 3 > /proc/sys/vm/drop_cachesfree -m (18) free -mecho 3 > /proc/sys/vm/drop_cachesfree -m Debian (9) free -mecho 3 > /proc/sys/vm/drop_cachesfree -m (10) free -mecho 3 > /proc/sys/vm/drop_cachesfree -m CentOS (7)http…

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 …

GUI追加

OS

Ubuntu (16)apt updateapt -y install ubuntu-desktopshutdown -r now (18)https://blog.amedama.jp/entry/2018/08/04/230601 apt updateapt -y install ubuntu-desktopshutdown -r now Debian (9)apt install task-gnome-desktopreboot (10)apt install tas…

クライアント文字コードエンコーディング設定

DB

MySQL (5.6)(5.7)(8) show variables like '%char%';show variables like '%collation%'; set names 'utf8mb4';set names 'cp932'; Oracle (12cR1)(12cR2)(18c)(19c) export NLS_LANG=Japanese_Japan.AL32UTF8 export NLS_LANG=Japanese_Japan.JA16SJISTILDE…