使用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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mv命令使用詳解(轉)
- SVN使用總結
- Git 使用總結Git
- Vuex使用總結Vue
- Toolbar使用總結
- Gson使用總結
- Ajax使用總結
- HelloCharts 使用總結
- Nginx使用總結Nginx
- VUE 使用總結Vue
- npm使用總結NPM
- 前端this使用總結前端
- kvm使用總結
- jmeter 使用總結JMeter
- Eureka使用總結
- RxJava使用總結RxJava
- webp使用總結Web
- formData使用總結ORM
- JUnit使用總結
- Pycharm使用總結PyCharm
- vim使用總結
- Sass使用總結
- JQuery使用總結jQuery
- Git使用總結Git
- Excel使用總結Excel
- job使用總結
- aerospike 使用總結ROS
- BTrace 使用總結
- Supervisor 使用總結
- IDEA使用總結Idea
- Audio使用總結
- ListenalbeFuture的使用總結
- templatejs使用總結JS
- ProgressDialog使用總結
- Rust Cargo使用總結RustCargo
- artisan 命令使用總結
- openssl常用使用總結
- css calc使用總結CSS