最近的工作都要和事務打交道,我把oracle事務常用方法整理了下列出來Commit的用法:(完成事務,資料修改成功並對其他使用者開放)例如:Update 計劃類型 set 計劃類型='哈哈' where 計劃類型='測試';Commit;當執行過Update語句之後表中的資料是不會被更改的,只有在執行了Commit之後表中的資料才能被修改.Rollback的用法:(撤消事務,撤消所有操作)Update 計劃類型 set 計劃類型='哈哈' where 計劃類型='測試';Rollback;Upd
查看系統是以pfile還是spfile啟動 Select isspecified,count(*) from v$spparameter group by isspecified; 如果isspecified裡有true,表明用spfile進行了指定配置 如果全為false,則表明用pfile啟動 使用SPfile的好處 Spfile改正了pfile管理混亂的問題,在多結點的環境裡,pfile會有多個image
semsys:seminfo_semmni Description Maximum number of semaphore identifiers. Data Type Signed integer Default 10 Range 1 to 65,535 Dynamic? No Validation Compared to SEMA_INDEX_MAX (currently 65,535) and reset to that value if
資料字典dict總是屬於Oracle使用者sys的。 1、使用者: select username from dba_users; 改口令 alter user spgroup identified by spgtest; 2、資料表空間: select * from dba_data_files; select * from dba_tablespaces;//資料表空間 select tablespace_name,sum(bytes), sum(
參考文獻:http://chengjunflying.iteye.com/blog/698505在oracle中,如果要對varchar類型的欄位進行order by操作,那麼首先必須得將他們轉化成數字類型,比如int類型,這就需要用到cast關鍵字。例子SELECT procedure_no FROM (SELECT * FROM process_card_procedure where process_card_id=421 order by cast(procedure_no
增加欄位 alter table docdsp add dspcode char(200) 刪除欄位 ALTER TABLE table_NAME DROP COLUMN column_NAME 修改欄位類型 ALTER TABLE table_name ALTER COLUMN column_name new_data_type 改名 sp_rename
轉自:http://www.cnblogs.com/ruanbl/archive/2008/02/29/1086398.htmlEXTRACT extracts and returns the value of a specified datetime field from a datetime or interval value expression.The field you are extracting must be a field of the datetime_value_expr