原创 datapatch fails with Error:"ORA-03114" ,"ORA-03113" due to "ORA-07445" (文檔 ID 2422799.1)

Applies to: Oracle Database - Enterprise Edition - Version 12.1.0.2 and later Information in this document applies to a

原创 Directing Plans with Baselines/Profiles Using coe_load_sql_baseline.sql / coe_load_sql_profile.sql

(shipped with SQLT) (文檔 ID 1400903.1)   APPLIES TO: Oracle Database - Enterprise Edition - Version 10.1.0.2 and later I

原创 linux下刪除文件用法命令

1. 結合AWK刪除 先進入該目標目錄 cd /crs/rdbms/audit 在使用AWK刪除 ls -l | awk '{print "rm ",$9}' | sh 2. 結合xargs刪除 cd /crs/rdbms/audit

原创 14.6.2.1 Clustered and Secondary Indexes(LIMIT)

Every InnoDB table has a special index called the clustered index where the data for the rows is stored. Typically, the

原创 MYSQL 5.7 SQL_MODE

Server SQL Modes MySQL服務器可以在不同的SQL模式下運行,並且可以根據sql_mode系統變量的值將這些模式不同地應用於不同的客戶端。DBA可以設置全局SQL模式以匹配站點服務器操作要求,並且每個應用程序可以

原创 oracle字段拼接過程中以0開頭的小數,開頭的0消失

1.出現問題     在做字段拼接的過程,查詢結果出現以0開頭的小數,開頭的0消失 2.問題解決 爲何小數點前0會省略,是因爲oracle數據庫中存在一個隱形類型轉換,在拼接的過程中小數自動轉成字符類型,相當於調用了to_char函數,

原创 啓動關閉mysql

mysql關閉: https://dev.mysql.com/doc/mysql-startstop-excerpt/8.0/en/server-shutdown.html mysqladmin shutdown example: ./m

原创 ora-01122 ora-01110 ora-01207

ORA-01122: database file 1 failed verification check ORA-01110: data file 1:'/backup/copy/coNmn' ORA-01207: file is mor

原创 MYSQL 主從同步延遲 Got fatal error 1236

【原因】 由於存儲日誌的磁盤空間滿而導致MYSQL沒有將日誌完全寫入磁盤,binglog event 被截斷。slave讀取該binlog file時就報以上圖片錯誤 【解決】 利用mysqlbinlog工具還原數據 /usr/loca

原创 禁用透明大頁Transparent HugePages

默認情況下,Red Hat Enterprise Linux 6,SUSE Linux Enterprise Server 11和Oracle Linux 6以及早期版本的Oracle Linux Unbreakable Enterpri

原创 使用pt-online-schema-change在線修改大表

pt-online-schema-change使用場景pt-online-schema-change介紹工作流程原理這裏刪除索引的執行SQL日誌參數介紹舉例pt-online-schema-change 好處 使用場景 在線對MY

原创 oracle根據分隔符一行轉多行

REGEXP_SUBSTR函數格式如下: REGEXP_SUBSTR(source_char, pattern [, position [, occurrence

原创 ORACLE 12.2新特性-在線將非分區錶轉換成分區表

通過在ALTER table SQL語句中添加MODIFY子句,可以將非分區錶轉換爲分區表。 此外,還可以指定關鍵字ONLINE,在轉換過程中啓用併發DML操作。 語法如下: ALTER TABLE table_name MODIFY 

原创 打補丁到11.2.0.3.15遇到的報錯

How to Create an OCM Response file to Apply a Patch in Silent Mode - opatch silent (文檔 ID 966023.1) 轉到底部 In this Doc

原创 How to Monitor and tune Open and Cached Cursors (Doc ID 1430255.1)

  OPEN_CURSORS指定會話一次可以擁有的最大打開遊標數(私有SQL區域的句柄)。您可以使用此參數來防止會話打開過多的遊標。 例如,如果OPEN_CURSORS設置爲100,則每個會話最多可以同時打開100個光標。如果單個會話打開