为monitor打PSU4 (10.2.0.4.4)的步骤
最近在监控服务器上新安装了一个oracle 10.2.0.4,被安全科扫描出漏洞,详细信息如下:--------------------------------------10.0.3.23 漏洞编号: 3661 CVE号: CVE-2009-0688 CVE-2009-2404 CVE-2010-0086 CVE-201...
重建控制文件 recreate control file
简单总结如下:1) 启动到mount2) 执行Alter database backup controlfile to trace;3) 找到第2步生成的trace文件,并作相应修改. 只保留创建语句4) shutdown并启动到nomount, 执行创建语句5) 启动到mount6) 执行下面脚...
停库前执行alter system checkpoint 很重要!
近期几次停一个库迁文件时, 发现srvctl stop instance xxx 停库后, 迁完文件在open时报SQL> alter database open;alter database open*ERROR at line 1:ORA-01122: database file 113 failed verification checkORA-...
用RMAN迁移文件到ASM或从ASM迁出
此为学习笔记, 目前正在做一个数据仓库的数据迁移工作, 从一个'故障'dg(normal redundancy中其中一个failgroup中的所有disk都offline, 由于asm的bug 无法解决)迁到另一个没问题的dg上, 每个文件都有128GB (db_block_...
关联更新
SQL> create table testa as select object_id,object_name,status from user_objects where rownum<101;SQL> create table testb as select * from testa where rownum<11;Table created.SQL> update testa set s...
不能为 EXTERNAL REDUNDANCY的磁盘组添加failgroup disk
ASMCMD> lsdg -cgH dgroup1 2 MOUNTED EXTERN N 512 4096 1048576 ...
gv$datafile定义
select fe.inst_id, fe.fenum, to_number(fe.fecrc_scn), to_date(fe.fecrc_tim,'MM/DD/RR HH24:MI...
Oracle中查看sql命令历史,查看rman命令历史
就像$HOME下的.bash_history 会存储当前用户的shell命令执行历史一样如果在oracle server上安装了uniread以解决SQL提示符下命令记录问题,那么,同样可以获得sql或rman命令的执行历史. 当我们需要查找曾经执行过哪些...
alter database close ORA-16196 ORA-01531 ORA-01093
如果没有其它active连接,Oracle10g中可以用alter database close将DB改到mount状态. 在mount状态下如果再用alter database open改到open状态,则会报错ora-01109.必须shutdown 之后再open.好像是说一个周期内(insta...
设置Flash Recovery Area
注意点:1, DB_RECOVERY_FILE_DEST_SIZE必须在DB_RECOVERY_FILE_DEST之前设置2, 相关视图V$RECOVERY_FILE_DEST,V$FLASH_RECOVERY_AREA_USAGE 相关参数db_recovery_file_dest, db_recovery_...
一些oracle,mysql,linux常用的技术站点
http://www.oracle.comhttp://metalink.oracle.comhttp://download-east.oracle.com oracle docshttp://asktom.oracle.com &n...
oracle中的Rowid和Urowid
Oracle使用rowid数据类型存储行地址,rowid可以分成两种,分别适于不同的对像Physical rowids:存储ordinary table,clustered table,table partition and subpartition,indexe,index partition and subpartitionLog...
纠正<<concepts>>中一处错误--dba_*视图有公共同义词
oracle 10gR2 doc <<concepts>>的 Part II Oracle Database Architecture"How the Data Dictionary Is Used"中有一处错误Views with the Prefix DBAViews with the prefix DBA show a global view of the entire dat...
利用connect by显示类目层次关系
相关贴子参见:http://www.itpub.net/showthread.php?s=&threadid=712131&highlight=connect+and+byhttp://www.itpub.net/716770.htmlhttp://blog.csdn.net/pangpangde/archive/2006/07/24/970345.aspxhttp://www.jav...
object_id and data_object_id in dba_objects
对于dba_objects,有几个值得注意的地方1, object_id与data_object_id是有区别的,前者指dictionary object number;后者指dictionary object number of the segment2, 对普通表及索引来说,object_id与data_object_id...
oracle关于*_tab_columns视图的描述有一个错误
oracle10g docs <<sql reference>>P1016 有一处错误:Note: The MAXVALUE and MINVALUE columns of USER_, DBA_,and ALL_TAB_COLUMNS have a length of 32 bytes. If you analyzecolumns with a length >32 bytes, a...
about histogram(1)
analyze的size 指定histogram的最大buckets,the default value is 75,minimum value is 1,and maximum value is 254.------------quote begin----<<sql reference>>P1017-----------------Column statistics appear ...
about histogram(2)
dba_tab_col_statistics根据yuang hong的文章,9i中无上述视图,不过可以从dba_tab_col_statistics 视图的代码中得知可用下面的语句查看 9i的histogram type (注:10g与9i中histogram无大的变化).注意xxx_tab_col_s...
what's mean about db_block_hash_buckets and others?
#top 10 shared pool componentsSQL> select * from 2 (select name,bytes/(1024*1024) MB order by bytes desc) 3 f...
row_number() partition order by 的使用
##取shared pool中每个namespace中占空间最大的两个objectset linesize 1000col name for a50select * from (select row_number() over (partition by name...