標籤:1.分析表與索引(analyze 不會重建索引) analyze table tablename compute statistics 等同於 analyze table tablename compute statistics for table for all indexes for all columnsfor table 的統計資訊存在於視圖:user_tables 、all_tables、dba_tablesfor all indexes
標籤:以前一直經常修改oracle的使用者密碼,但很少修改使用者名稱的。以前只能建立一個使用者1,然後將使用者2資料匯入到使用者1,然後經使用者1刪掉,這樣非常麻煩而且耗時,今天就整理了下如何修改Oracle的使用者名稱:1、用sysdba角色帳號進入,然後查詢有哪些使用者:SELECT * FROM user$2、找到需要修改的使用者(user#欄位是唯一標識)SELECT * FROM user$ WHERE user#=713、修改需要更改的使用者名稱UPDATE USER$ SET
標籤:目前總結的語句,在查看資料的串連情況很有用 ,寫完程式一邊測試代碼一邊查看資料庫連接的釋放情況有助於分析最佳化出一個健壯的系統程式來。1.Sql代碼1.select count(*) from v$process --當前的資料庫連接數select count(*) from v$process;2.Sql代碼1.select value from v$parameter where name =
標籤:oracleOracle Study之--查看Oracle 版本運算字長(32/64位)方法一、採用sqlplus查看64位:[[email protected] ~]$ sqlplus ‘/as sysdba‘SQL*Plus: Release 11.2.0.3.0 Production on Wed Jun 24 14:14:10 2015Copyright (c) 1982, 2011, Oracle. All rights
標籤:http://blog.itpub.net/27157/viewspace-425567/初始化相關參數job_queue_processesalter system set job_queue_processes=39 scope=spfile;//最大值不能超過1000 ;job_queue_interval = 10 //調度作業重新整理頻率秒為單位 job_queue_process 表示oracle能夠並發的job的數量,可以通過語句 show parameter
標籤:oracle 11gOracle study之--“ORA-00845: MEMORY_TARGET not supported on this system"錯誤系統內容: 作業系統:RedHat EL6(64) Oracle: Oracle 11g R2 故障案例:在Oracle 11gR2下調整記憶體參數:memory_targetSQL> show parameter
標籤:Oracle grouping和rollup簡單測試SQL> select department_id,sum(salary) from employees where department_id in(10,30,90,100) group by department_id order by department_id;DEPARTMENT_ID SUM(SALARY)------------- ----------- 10 4400