Linux 下面 登入使用者名稱:Oraclesqlplus / as sysdbaalter system set os_authent_prefix='' scope =spfile;startup force;create user oracle identified externally;grant connect to oracle;退出當前會話 再su到oracleexitsu - oraclepasswd ...sqlplus / as
1.先啟動CSS服務# cd /db/Oracle/product/bin/# ./localconfig addSuccessfully accumulated necessary OCR keys.Creating OCR keys for user 'root', privgrp 'sys'..Operation successful.Configuration for local CSS has been initializedAdding to inittabStartup will
一、備份1、資料備份(主庫上執行)rman>backup full database format '/u01/rmanbak/port_full_backup%U.bk';2、資料庫軟體備份(主庫上執行)$ cd /home/Oracle/product/10.2.0/$ tar cvf /u01/oraclehomebak/product.tar db_13、資料庫參數備份(主庫上執行)sqlplus "/as sysdba"sql>create
Windows 平台從 Windows 作業系統中徹底除去 DB2產品時需要執行的步驟。僅當不再需要現有 DB2 執行個體和資料庫時,才應執行此任務。如果正在卸載 DB2 的預設副本,並且您有其他的DB2 副本在系統上,則應使用db2swtch命令以在繼續卸載之前選擇一個新的預設副本。還有,如果資料庫管理伺服器(DAS)正運行在要除去的那個副本下,則應將 DAS 移到不會除去的副本下。否則,您將不得不在卸載之後使用db2admin create命令重新建立 DAS,並且可能不得不重新設定
對於插入資料庫資料的語句:INSERT INTO TESTTAB(FIELD1) VALUES('測試')如果插入資料庫的字串中還有單引號,需要轉義處理,如插入“It's a tree.”,SQL語句如下:INSERT INTO TESTTAB(FIELD1) VALUES('It''s a dog.')如果SQL中有“&”,那麼後面的字串將被作為一個變數來處理,無法正常插入資料庫。如果的確需要把&字元插入資料庫,如下處理:INSERT INTO TESTTAB(FIELD1)
Oracle 的Data Guard環境中, 邏輯備庫應用進程停止,日誌顯示錯誤為ORA-01403 not data found 。它具體資訊如下:Mon May 21 10:39:31 2012 LOGSTDBY status: ORA-01403: no data found LOGSTDBY Apply process P004 pid=143 OS id=13936 stopped Mon May 21 10:39:32 2012 Errors in file
在使用RMAN備份資料庫歸檔日誌時,出現這樣的錯誤,"RMAN-8137: WARNING: archived log not deleted as it is still needed"。這是備份歸檔日誌後跟著刪除已備份的歸檔檔案操作時失敗的提示。RMAN備份刪除歸檔記錄檔的指令碼如下所示:backup archivelog all format '/rman_bak/archivelog_%U.%T' delete all input;這裡資料庫系統為Oracle 10.2.0.