在.net+oracle開發中,發布web程式的時候,有是會遇到該錯誤 ora-01019ORA-01019 unable to allocate memory in the user sideCause: The user side memory allocator returned an error.Action: Increase the size of the process heap or switch to the old set of calls.或者 錯誤,不能從進程獲得上下文.
方法一、使用SQL*Loader這個是用的較多的方法,前提必須oracle資料中目的表已經存在。大體步驟如下:1、將excel檔案另存新檔一個新檔案比如檔案名稱為text.txt,檔案類型選文字檔(定位字元分隔),這裡選擇類型為csv(逗號分隔)也行,但是在寫後面的control.ctl時要將欄位結束字元改為','(fields terminated by ','),假設儲存到c盤根目錄。2
標籤: 工作中遇到:在為一個表新增欄位後,新增欄位在最後,想調整新增欄位的位置。 1、原始方法:--建立暫存資料表以儲存正確的順序create table A_2 as select (column1,colum2,……A表中的順序) from A_1 ;--刪除表A_1drop table A_1;--建立A_1並從A_2表中賦予其正確的順序和值create table A_1 as select * from A_2;--刪除暫存資料表A_2drop
尋找無效對象你可以根據這個查詢結果來判斷使用下面的哪種方法來編譯你資料庫裡面的無效對象.COLUMN object_name FORMAT A30 SELECT owner, object_type, object_name, STATUS FROM dba_objects WHERE STATUS = 'INVALID' ORDER BY owner, object_type, object_name;1.手動編譯如果無效對象的數量很少,那麼你可以逐個編譯這些對象.如:ALTER
1,查Oracle資料庫建立時候的字元集:Oracle伺服器端執行SQL> select name, value$ from sys.props$ where name like 'NLS%';NAME VALUE$------------------------------ ----------------------------------------NLS_LANGUAGE
有兩種含義的表大小。一種是分配給一個表的物理空間數量,而不管空間是否被使用。可以這樣查詢獲得位元組數:select segment_name, bytes from user_segments where segment_type = 'TABLE'; 或者 Select Segment_Name,Sum(bytes)/1024/1024 From User_Extents Group By Segment_Name另一種表實際使用的空間。這樣查詢:analyze table emp