使用MV總結
今天系統需要升級幾個MV,原本在測試庫上執行良好的指令碼但到正式環境還是有些出入的,
問題一:
首先是建立的時候,居然報:
ora-12060 shape of prebuilt table does not match definition query
原因是需要將select後的列名需要進行as 別名提示,暈死。。
問題二:
再就是執行好的指令碼居然上面都有小紅叉叉,叫人看了心裡好不爽,但是還是可以正常執行的,後來檢視metalink文章(264036.1):
An mview becoming invalid does not mean it will not retain old data. You can still query the mview. Actually an mview with invalid status means it has old data and it is not in sync with the master table.
We were seeing the same behavior. in 9.2 and found Metalink note 264036.1 which says:
"This is expected behavior. When there is a DML on the master table, all the MVs based on this table are marked as INVALID. Though the status is INVALID, you will be able to query the mview.
shit~~~~~
However, the query on MV will not return latest update done in master table unless MV is refreshed
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10130206/viewspace-616473/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- templatejs使用總結JS
- VideoJs使用總結IDEJS
- VUE 使用總結Vue
- Audio使用總結
- HelloCharts 使用總結
- Git 使用總結Git
- ProgressDialog使用總結
- swagger使用總結Swagger
- npm使用總結NPM
- Supervisor 使用總結
- IDEA使用總結Idea
- SVN使用總結
- kvm使用總結
- jmeter 使用總結JMeter
- Vuex使用總結Vue
- Gson使用總結
- Toolbar使用總結
- Ajax使用總結
- Nginx使用總結Nginx
- sqlserver 使用總結SQLServer
- CompletableFuture 使用總結
- Eureka使用總結
- 前端this使用總結前端
- MV
- dorado 7 使用總結
- Rust Cargo使用總結RustCargo
- iconfonts使用的總結
- ListenalbeFuture的使用總結
- Spring Cloud使用總結SpringCloud
- artisan 命令使用總結
- SSH key使用總結
- cmake的使用總結
- JXCategoryView的使用總結GoView
- openssl常用使用總結
- css calc使用總結CSS
- Oracle之Hint使用總結Oracle
- springboot使用問題總結Spring Boot
- ES6使用總結
- github使用命令總結Github