2023-06-01から1ヶ月間の記事一覧

{Terraform}RDS/GCP

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance -- 1. macにTerraformインストール brew tap hashicorp/tapbrew install hashicorp/tap/terraformbrew updatebrew upgrade hashicorp/tap/terraform…

パスワード有効期限

DB

MySQL (8.0.33)https://dev.mysql.com/doc/refman/8.0/ja/alter-user.html drop user if exists user2; create user user2@'%' identified by 'user2';grant process on *.* to 'user2'@'%'; select Host, User, password_expired, password_last_changed, p…

FAILED_LOGIN_ATTEMPTS

MySQL (8.0.33)https://dev.mysql.com/doc/refman/8.0/ja/alter-user.htmlhttps://blog.s-style.co.jp/2020/01/5704/ drop user if exists user3; create user user3@'%' identified by 'user3';grant process on *.* to 'user3'@'%'; select Host, User, ac…

DBアカウントロック

DB

MySQL (8.0.33)https://dev.mysql.com/doc/refman/8.0/ja/account-locking.htmlhttps://dev.mysql.com/doc/refman/8.0/ja/alter-user.html drop user if exists user1; create user user1@'%' identified by 'user1';grant process on *.* to 'user1'@'%'; s…

{Denodo}IFVとBVの対応調査

https://community.denodo.com/docs/html/browse/8.0/jp/vdp/vql/stored_procedures/predefined_stored_procedures/view_dependencies ストアドプロシージャ VIEW_DEPENDENCIES は、ビューの系統、つまり、1 つのビューを構築するときに元となった別のビュー…

{Denodo}カラム一覧

https://community.denodo.com/docs/html/browse/8.0/jp/vdp/vql/stored_procedures/predefined_stored_procedures/get_view_columns select database_name, view_name, column_name, ordinal_position, column_vdp_type, column_sql_type, column_sql_type_…

{Denodo}ビュー名、カラム名の最大長

https://community.denodo.com/docs/html/browse/8.0/jp/vdp/vql/language_for_defining_and_processing_data_vql/unicode_identifiers/unicode_identifiers 識別子は最長で 100 文字です。 -- 1. 基本ビューの名前変更 100文字 ALTER TABLE b_tab1 RENAME b…

{Denodo}ビューのエクスポート

https://community.denodo.com/docs/html/browse/8.0/jp/vdp/administration/cluster_architectures_server_backup/using_the_import_export_scripts_for_backup_and_or_replication/export_script cd C:\Denodo\DenodoPlatform8.0\bin .\export.bat ^--logi…

{Java}MeCab

https://kakakakakku.hatenablog.com/entry/20120228/1330359548https://www.oracle.com/java/technologies/downloads/#jdk17-windowshttps://taku910.github.io/mecab/#install-windows OS: Windows Server 2022文字コード: SHIFT-JIS -- 1. Java 17のイン…

VBA(MeCab)

VBA

https://qiita.com/kujirahand/items/d49e3801c156e2fa4f39 -- 1. MeCabのインストール -- 2. MeCab for Excel VBAをインポート ※下記のように修正If UBound(Cm) < 8 Then GoTo Y_CONTINUE↓If UBound(Cm) < 1 Then GoTo Y_CONTINUE Debug.Print Cmd↓'Debug.P…

プロシージャ引数の名前表記法

DB

MySQL (8.0.33)https://dev.mysql.com/doc/refman/8.0/en/call.htmlhttps://stackoverflow.com/questions/4245530/named-parameters-for-stored-procedures-in-mysql 名前表記法はできない模様 念のため使用できないことを確認 drop procedure proc1; delimi…

{Denodo}DENODO ADMIN AND DEVELOPMENT BEST PRACTICES

https://community.denodo.com/kb/en/view/document/Denodo%20Admin%20and%20Development%20Best%20Practiceshttps://community.denodo.com/kb/en/view/document/Denodo%20Best%20Practices%20and%20Guidelines -- 1. JVM Configuration it is not recommend…

{Denodo}ビュー一覧

https://community.denodo.com/docs/html/browse/8.0/en/vdp/vql/stored_procedures/predefined_stored_procedures/get_views select database_name, folder, name, create_date, last_modification_date, view_type, cache_status, view_statusfrom GET_VIE…

TiDBインストール

https://engineering.dena.com/blog/2022/01/infra-meetup-tidb/https://www.publickey1.jp/blog/23/mysql7000linemysqlnewsqlpr.htmlhttps://github.com/pingcap/tidb https://docs.pingcap.com/tidb/stable/quick-start-with-tidbhttps://docs.pingcap.com…

ビュー定義

DB

ビューのアスタは展開されて保存される MySQL (8.0.32) drop table if exists tab17 ;drop view if exists view17;drop view if exists view18; create table tab17(col1 int, col2 varchar(100), col3 datetime);create view view17 as select * from tab17…

{Denodo}Pythonで接続

https://community.denodo.com/kb/en/view/document/How%20to%20connect%20to%20Denodo%20from%20Python%20-%20a%20starter%20for%20Data%20Scientists pip install sqlalchemypip install psycopg2pip install --upgrade denodo-sqlalchemy ## Script name:…

{Denodo}VQLストアドプロシージャ

※ Denodo 8.0 2023 年 3 月アップデートで追加 https://community.denodo.com/docs/html/browse/8.0/en/vdp/developer/developing_extensions/developing_stored_procedures/developing_vql_stored_procedures SELECT *FROM GET_ELEMENTS()where type = 'sto…

VBA(作業中ブックの別名保存)

VBA

https://excelwork.info/excel/booksavecopyas/https://tech.chasou.com/vba/vba1_16/ -- 1. 開発タブの挿入でボタンを作成※ActiveXコントロールのものを使用する -- 2. デザインモードONで作成したボタンをダブルクリックするとエディタが開くので下記コー…

{Python}MeCab

https://note.com/smkt_interview/n/nafebd60ae6bchttps://atmarkit.itmedia.co.jp/ait/articles/2102/05/news027.html -- インストール pip install mecab-python3pip install unidic python -m unidic download -- 動作確認 import MeCabimport unidic -- …

{Denodo}JMeter

クライアントOS: CentOS7メモリサイズ: 4GB -- 1. Installing JMeter yum remove java* yum -y install java-1.8.0-openjdkyum -y install java-1.8.0-openjdk-develjava -version vim ~/.bash_profile export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdkexp…

{Denodo}シングルユーザーモード

https://community.denodo.com/docs/html/browse/8.0/jp/vdp/administration/appendix/single_user_mode/single_user_mode 大容量の VQL ファイルのインポート、サーバーの設定の変更などのメンテナンス操作を実行する場合は、サーバーを「シングルユーザー…

{Denodo}月の初日

調査パターン: ソースDB: MySQL,Oracle,PostgreSQL,SQL Server,RedshiftキャシュDB: MySQL,Oracle,PostgreSQL,SQL Server,Redshift 結論: DBにRedshiftを使用すると月の初日を条件とするクエリがエラーになる場合がある -- テストテーブル準備 -- 1. MySQL d…

VBA(ソート)

VBA

https://www.sejuku.net/blog/29917 https://learn.microsoft.com/ja-jp/office/vba/api/excel.range.sort -- 1. 開発タブの挿入でボタンを作成※ActiveXコントロールのものを使用する -- 2. デザインモードONで作成したボタンをダブルクリックするとエディタ…