2024-11-01から1ヶ月間の記事一覧
https://docs.oracle.com/cd/F19136_01/vldbg/maintenance-partition-can-be-performed.html#GUID-79391819-DCEF-46AC-977D-199BD2044DA2 パーティションを追加alter table range_range add partition p2 values less than(200); insert into range_range va…
https://docs.oracle.com/cd/F19136_01/vldbg/index-partitioning.html#GUID-569F94D0-E6E5-45BB-9626-5506DE18FF00 conn test/test ローカル同一キー レンジcreate index range_douitu on range(col1) local; ハッシュcreate index hash_douitu on hash(col…
https://docs.oracle.com/cd/F19136_01/vldbg/partition-create-tables-indexes.htmlhttps://docs.oracle.com/cd/F19136_01/vldbg/create-composite-partition-table.html https://docs.oracle.com/cd/F19136_01/vldbg/partition-concepts.html#GUID-3DA6E03…
https://docs.oracle.com/cd/F19136_01/adlob/using-oracle-LOBs-storage.html#GUID-AD240DE1-392F-41EC-864D-2D892CF7D45A conn test/test show parameter securealter system set db_securefile='PREFERRED'; drop table bf1 purge; create table bf1(col1…
https://docs.oracle.com/cd/F19136_01/adlob/using-oracle-LOBs-storage.html#GUID-D4B9A527-6DF8-4451-B88B-B973E961D9F7 drop table sf4 purge;drop table sf5 purge; CREATE TABLE sf4 ( a CLOB) LOB(a) STORE AS SECUREFILE ( COMPRESS HIGH DEDUPLICAT…
https://docs.oracle.com/cd/F19136_01/adlob/using-oracle-LOBs-storage.html#GUID-D4B9A527-6DF8-4451-B88B-B973E961D9F7 conn test/test show parameter securealter system set db_securefile='ALWAYS'; 圧縮create table sf1(col1 number,col2 clob)lob…
https://docs.oracle.com/cd/F19136_01/admin/managing-undo.html#GUID-FE48AEC0-64AE-4431-8A29-CD4EA15E6548 alter tablespace undo retention guarantee;alter tablespace undo retention noguarantee; select tablespace_name,retention from dba_tables…
https://docs.oracle.com/cd/F19136_01/adfns/flashback.html#GUID-8CF548A0-FA45-45B2-87CE-9F6F17ED1A41 有効 表の新規作成 grant flashback archive on fla1 to hr;grant flashback archive on fla2 to hr; conn hr/hr create table hr.flata(col1 number…
https://docs.oracle.com/cd/F19136_01/adfns/flashback.html#GUID-FC792CEF-8F8C-4FC4-91A4-ED5CD4321037 alter flashback archive fla2 set default;alter flashback archive fla2 add tablespace users quota 10M;alter flashback archive fla2 add table…
https://docs.oracle.com/cd/F19136_01/adfns/flashback.html#GUID-06AA782A-3F79-4235-86D5-2D136485F093 デフォルト 表領域users 最大領域サイズ1G 保有期間2年 create flashback archive default fla1 tablespace users quota 1G retention 2 year ; sel…
https://docs.oracle.com/cd/F19136_01/adfns/flashback.html#GUID-115952E6-DB02-48D5-A2D3-B5C04AB68063 update "HR"."EMPLOYEES" set "SALARY" = '8200' where ROWID = 'AAAFwxAAEAAAAClAAK'; commit; SELECT versions_startscn, versions_endscn, versio…
https://docs.oracle.com/cd/F19136_01/adfns/flashback.html#GUID-0BD1F4BD-894B-47BA-A44B-74BCA4CFD60Ehttps://docs.oracle.com/cd/F19136_01/adfns/flashback.html#GUID-544C00A0-D4F5-4B32-BE2F-5332EDCDD039https://docs.oracle.com/cd/F19136_01/adfn…
https://docs.oracle.com/cd/F19136_01/adfns/flashback.html#GUID-779FB434-F3EA-4334-8B2A-A328555B5AFFhttps://docs.oracle.com/cd/F19136_01/sutil/oracle-logminer-utility.html#GUID-D2DDD67C-E1CC-45A6-A2A7-198E4C142FA3 select supplemental_log_da…
https://docs.oracle.com/cd/F19136_01/asoag/configuring-transparent-data-encryption.html#GUID-2931A16D-84E8-4A42-8D01-662FD693A711 select * from all_encrypted_columns; alter table sh.encb rekey using 'AES256'; ※列単位にアルゴリズムは指定不…
https://docs.oracle.com/cd/F19136_01/asoag/configuring-transparent-data-encryption.html#GUID-3A298444-09BB-409E-94E5-1FA5FFA89A1D select * from all_encrypted_columns; alter table sh.encb modify(col2 encrypt salt);alter table sh.encb modify…
https://docs.oracle.com/cd/F19136_01/asoag/using-transparent-data-encryption-with-other-oracle-features.html#GUID-15CB716C-74A5-42E5-9BCA-7EC9C9FFA712 select * from v$encryption_wallet; select * from all_encrypted_columns; insert into sh.e…
https://docs.oracle.com/cd/F19136_01/asoag/configuring-transparent-data-encryption.html#GUID-F95E13AA-FE30-423B-930C-13D355CE46B3 SHOW PARAMETER COMPATIBLE select * from v$encryption_wallet; CREATE TABLESPACE securetbsaDATAFILE '/oradata/o…
https://docs.oracle.com/cd/F19136_01/asoag/configuring-transparent-data-encryption.html#GUID-613F7E02-EA77-4CF4-9683-A0344DF724D0 select * from v$encryption_wallet;select * from all_encrypted_columns; desc sh.encc alter table sh.encc add( …
https://cloud.google.com/load-balancing/docs/tcp/setting-up-tcp?hl=ja -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01" gcloud config listgcloud config set project projec…
https://cloud.google.com/functions/docs/tutorials/pubsub?hl=ja -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01" gcloud config listgcloud config set project project01-999…
https://docs.oracle.com/cd/F19136_01/asoag/configuring-transparent-data-encryption.html#GUID-FC8D6E7E-CD47-4972-89B4-E90CB8A811AA select * from v$encryption_wallet; create table sh.enca( first_name varchar2(128), last_name varchar2(128), e…
https://docs.oracle.com/cd/F19136_01/dbseg/configuring-audit-policies.html#GUID-B706FF6F-13A6-4944-AFCB-29971F5076FD ※sysユーザでのSQL実行は監査ログに残らない truncate table SYS.FGA_LOG$; select * from SYS.FGA_LOG$;select * from dba_audit_…
https://docs.oracle.com/cd/F19136_01/dbseg/introduction-to-auditing.htmlhttps://docs.oracle.com/cd/F19136_01/sqlrf/AUDIT-Traditional-Auditing.html SYSユーザの監査を有効化show parameter audit ALTER SYSTEM SET AUDIT_SYS_OPERATIONS=TRUE SCOPE…
https://docs.oracle.com/cd/F19136_01/dwhsg/data-warehouse-optimizations-techniques.html#GUID-2BB63651-2ED9-41B3-838D-592CC1D6766F conn sh/sh set autot onset timing on select a.id,b.dim1_name,c.dim2_namefrom fact a,dim1 b,dim2 cwhere a.dim1…
https://docs.oracle.com/cd/F19136_01/dwhsg/data-warehouse-optimizations-techniques.html#GUID-76BAA645-A219-4FF5-AFD4-B6FA8C1473FB create table dim1(dim1_id number not null,dim1_name date,constraint dim1_pk primary key(dim1_id));create tabl…
https://docs.oracle.com/cd/F19136_01/dwhsg/data-warehouse-optimizations-techniques.html#GUID-095A1BEC-E373-49B2-A3CF-E059D42B6E7A https://blogs.oracle.com/oracle4engineer/post/ja-sample-data-for-oracle-database cd ~/db-sample-schemas/sales…
https://docs.oracle.com/cd/F19136_01/vldbg/types-parallelism.html#GUID-D399FA96-424C-47C9-A3AC-28A12C0B2FD4 パラレル問合せ ヒント句 alter session文 表定義のパラレル度 select * from hr.jobs fetch first 30 rows only;select /*+ parallel(4) */…
https://docs.oracle.com/cd/F19136_01/vldbg/types-parallelism.html#GUID-5EB01FA8-030B-45BB-9B16-2D13881F6010 alter session enable parallel dml ; alter session enable parallel ddl ;alter session enable parallel query ; alter session force pa…
自動並列化を有効化 計算された処理時間が20秒以下の場合はシリアル実行 https://docs.oracle.com/cd/F19136_01/vldbg/parameters-parallel-exec.html#GUID-7ED3242C-D2FF-4279-AF8A-C7CFB7ED5F2A show parameter parallelalter system set parallel_degree_…
--orcl conn sh/sh CREATE MATERIALIZED VIEW LOG ON products WITH SEQUENCE, ROWID(prod_id, prod_name, prod_desc, prod_subcategory, prod_subcategory_desc, prod_category, prod_category_desc, prod_weight_class, prod_unit_of_measure, prod_pack_s…