UTL_FILE包可以用來讀寫作業系統上的文字檔,UTL_FILE提供了在用戶端(FORM等等)和伺服器端的檔案訪問功能。建立測試目錄:建立一個command window;建立目錄:(以system使用者登入資料庫)SQL> create or replace directory cux_log_dir as '/home/appltest/debug';Directory created賦許可權。SQL> grant read, write on directory
啟動時應用重做日誌,關閉時取消重做日誌:8.1Starting Up and Shutting Down a Physical Standby DatabaseThis section describes the SQL*Plus statements used to start up and shut down a physical standby database.8.1.1Starting Up a Physical Standby Database8.1.1
如果簡單的使用如下sql語句可能會返回失敗,失敗的原因極有可能是已經存在這張資料表了。create table sales3 ( id NUMERIC,sale_date datetime not null) PARTITION by range(TO_DAYS(sale_date))( PARTITION sales20140301 values less than(TO_DAYS('2014-03-01')), PARTITION sales20140
最近在做MySQL主從資料庫同步測試,發現了一些問題,其中主從同步延遲問題是其中之一,下面內容是從網上找到的一些講解,記錄下來以便自己學習;MySQL的主從同步是一個很成熟的架構,優點為:①在從伺服器可以執行查詢工作(即我們常說的讀功能),降低主伺服器壓力;②在從主伺服器進行備份,避免備份期間影響主伺服器服務;③當主伺服器出現問題時,可以切換到從伺服器。MySQL主從同步故障-Slave_SQL_Running: No MySQL主從同步搭建 MySQL主從複製配置詳述 MySQL
今天客戶在imp匯入資料的時候遇到了下面的報錯資訊IMP-00051: Direct path exported dump file contains illegal column lengthIMP-00008: unrecognized statement in the export file這個報錯的原因與解決方案見如下官方文檔 ALERT: Direct Path Export (EXP) Corrupts The Dump If An Empty