Create Table henry_test (a varchar2(10),b int);Insert Into henry_test values ('aa',1);Insert Into henry_test values ('bb',1);Insert Into henry_test values ('cc',1);Insert Into henry_test values ('dd',2);Insert Into henry_test values ('ee',2);Insert
Microsoft Windows 2000 [Version 5.00.2195](C) 著作權 1985-2000 Microsoft Corp.C:/Documents and Settings/Administrator>sqlplus /nologSQL*Plus: Release 9.2.0.6.0 - Production on 星期三 8月 1 11:42:37 2007Copyright (c) 1982, 2002, Oracle Corporation. All
Oracle在操作過程中,鎖表是時常發生的事情,當遇到鎖表時,該如何查詢鎖表session及進程,如何解鎖是經常困擾的事情,以下將介紹具體的操作步驟及方法供參考學習:鎖表查詢的代碼有以下的形式:select count(*) from v$locked_object;select * from v$locked_object;查看哪個表被鎖select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object
1、startup nomount 非安裝啟動,這種方式啟動下可執行:重建控制檔案、重建資料庫讀取init.ora檔案,啟動instance,即啟動SGA和後台進程,這種啟動只需要init.ora檔案。2、startup mount dbname安裝啟動,這種方式啟動下可執行:資料庫日誌歸檔、資料庫介質恢複、使資料檔案聯機或離線,重新置放資料檔案、重做記錄檔。執行“nomount”,然後開啟控制檔案,確認資料檔案和聯機記錄檔的位置,但此時不對資料檔案和記錄檔進行校正檢查。3、startup
在OCP 007裡有類似如下的題目: Q: 141 Evaluate this SQL statement:SELECTe.EMPLOYEE_ID,e.LAST_NAME,e.DEPARTMENT_ID, d.DEPARTMENT_NAMEFROM EMPLOYEES e, DEPARTMENTS dWHERE e.DEPARTMENT_ID = d.DEPARTMENT_ID; In the statement, which capabilities of a SELECT
本人當寫完這個函數後才知道已經有lengthb()這個現成的函數,無賴對Oracle認識的還是太淺薄,汗自己一個!Oracle下的Length()函數不能區分中英文,只能得到字元數而不能得到位元組數,很多時候插入string到欄位中時總要先進行一次檢查,防止string長度超過了欄位定義的長度,一般大家都是把這個檢測放到應用程式中執行,用我寫的這個小函數就可以實現在資料庫伺服器端對要插入的欄位進行檢測。create or replace function
To query the list of users that are CRS Administrators:[grid@rac1 ~]$ crsctl query crs administratorCRS Administrator List: *To enable role-separated management and grant privileges to non-permanent CRSAdministrators, you must add specific users to
--------Creating Physical Standby Database---------------------------------------Settings for the primary database--------------------------------1、Enable Forced LoggingALTER DATABASE FORCE LOGGING;2、Create a Password Fileorapwd
-----------Step-by-Step Instructions for Creating a Logical Standby Database-----------1.Create a Physical Standby Database (EXSITING NOW)2.Stop Redo Apply on the Physical Standby Database Executing the following statement in the sqlplus on the
Cause?-?The plug-in failed in its perform method Action?-?Refer to the logs or contact Oracle Support Services. Log File Location/u01/app/oraInventory/logs/installActions2013-01-04_08-37-53PM.log/u01/app/oraInventory/logs/installActions2013-01-04_0