oracle 資料庫幾個技巧

2021-06-23 09:14:57 字數 819 閱讀 8687

--從**站內恢復表

flashback table

表名 to before drop  ;

--檢視表空間中各對像占用空間情況

select tablespace_name 

表空間,segment_name 

表名稱,bytes / 1024 / 1024 || 'mb' 

表大小from user_segments a 

where segment_type = 'table'

and tablespace_name = 'bossdata_space'

order by bytes / 1024 / 1024 desc ;

--檢視**站內錶資料

select * from recyclebin a where a.original_name='

表名' ;

select * from "bin$vc0t1ftzb9dgqab/aqbb/a==$0" ;

--清空**站

purge recyclebin ;

--檢視程序對應編號

select a.spid,a.pid,b.sid,b.paddr,a.addr 

from v$process a ,v$session  b where a.addr=b.paddr and a.spid =30746 ;

--檢視1天前表裡的資料

select * from

表名  as of timestamp sysdate-1 ;

--刪除表後表不在**站內

drop table

表名 purge ;

Oracle資料庫SqlLoad常用技巧總結

ad 線下活動 三大新銳html 5企業匯聚51cto 大話移動前端技術 oracle資料庫sqlload常用技巧的相關知識是本文我們主要要介紹的內容,本文我們總結了14種sqlload的使用技巧,並給出了測試用的檔案原始碼,接下來我們就開始一一介紹這部分內容,希望能夠對您有所幫助。1 控制檔案中注...

蒐集oracle資料庫小技巧

1 檢視全庫表狀態 oracle中檢視所有的表 select from tab dba tables dba objects cat 看使用者建立的表 select table name from user tables 當前使用者的表 select table name from all tabl...

Oracle 資料庫小技巧整理

1 關於監聽程式建立不了 服務內不顯示監聽服務 這個問題我遇到的是使用者許可權不夠,在命令行內輸入netca,建立服務,發現出現配置檔案不能儲存的io錯誤。解決方法 以管理員身份執行命令列,然後執行netca命令建立監聽服務 lsnrctl start 啟動監聽服務即可 lsnrctl status...