標籤:監聽 oracle11g linux LINUX登入oracle使用者,通過lsnrctl start命令啟動資料庫時,報錯如下: “ [[email protected] ~]$ lsnrctl start LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 29-APR-2015 07:38:11
標籤:目的:監控oracle索引的有效性,看索引有沒有被使用。然後根據監控結果刪除或者調整索引。步驟:1.監控指定索引 命令: alter index 索引名 monitoring usage; 如:alter index User_IDX1 monitoring usage;2.查看索引監控是否生效 命令:select * from V$OBJECT_USAGE t where t.monitoring = ‘YES‘;3.
標籤:1,建立資料表空間,資料表空間名字為database,目錄為datafile ‘d:\oracle\product\10.2.0\oradata\data01.dbf‘ ,大小為100M,每次自動擴充10M,最大無限制。 create tablespace database datafile ‘d:\oracle\product\10.2.0\oradata\data01.dbf‘ size 100M autoextend on next 10M
標籤:查詢所有使用者:select * from all_users;手動註冊監聽:alter system register;oracle密碼到期設定1,查詢select * from dba_profiles where profile=‘DEFAULT‘ and resource_name=‘PASSWORD_LIFE_TIME‘; 2,釋放保留ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME
標籤: select sid, cjsj from base_zjxx where cjsj = to_date(‘0001/1/1‘, ‘yyyy/mm/dd‘);select * from sys_user where qyid in (90656, 90655, 90646, 90641, 90636, 90633, 90631);UPDATE base_zjxx SET cjsj = (CASE WHEN zjid = ‘90656‘