sky's profileDBA日记PhotosBlogListsMore ![]() | Help |
DBA日记日出东海落西山,喜也一天,愁也一天,遇事不钻牛角尖,人也舒坦,心也舒坦,常与朋友聊聊天,古也聊聊,今也聊聊,不是神仙,胜似神仙,快乐每一天! 6/18/2009 RAC节点一挂起,日志报pmon failed to accuire latch
hpux+10.2.0.4RAC 数据库挂起 alert日志如下:
虽然bug的版本差点,不过看现象差不多。重启节点2后正常。
4/7/2009 expdp:ORA-39062: error creating master process DM00发信人: boyli (sky), 信区: Database 标 题: [合集] expdp 问题 发信站: 水木社区 (Tue Apr 7 16:04:23 2009), 站内 ☆─────────────────────────────────────☆ xuebaowang (海风) 于 (Sat Apr 4 03:22:32 2009) 提到: expdp 的时候报错: ORA-31626: job does not exist ORA-31637: cannot create job ZK_EXPDP for user ZK ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95 ORA-06512: at "SYS.KUPV$FT", line 1201 ORA-39062: error creating master process DM00 ORA-39107: Master process DM00 violated startup protocol. Master error: ORA-06533: Subscript beyond count 网上搜说这样做: alter system set streams_pool_size=10M scope=memory; 然后文章的作者搞定了; 但是我按照这个依然不行 请教 有没有哪位高人 知道这个还要怎么解决 多谢了 ☆─────────────────────────────────────☆ boyli (sky) 于 (Sat Apr 4 20:29:47 2009) 提到: 查了一下metalink,试试: select * from dba_objects where object_name='ZK'; 看看有啥东西? 很可能是个bug 查一下alert,看是不是有其他错误出现 【 在 xuebaowang (海风) 的大作中提到: 】 : expdp 的时候报错: : ORA-31626: job does not exist : ORA-31637: cannot create job ZK_EXPDP for user ZK : ................... ☆─────────────────────────────────────☆ xuebaowang (海风) 于 (Sun Apr 5 07:34:31 2009) 提到: zk 下 有9K多的对象 metalink是什么 才疏学浅 还望赐教 【 在 boyli (sky) 的大作中提到: 】 : 查了一下metalink,试试: : select * from dba_objects where object_name='ZK'; : 看看有啥东西? : ................... ☆─────────────────────────────────────☆ boyli (sky) 于 (Sun Apr 5 20:29:49 2009) 提到: 是名字等于‘ZK’的对象 有人说和用户同名的同义词会导致这个问题(个案) metalink是oracle官方技术支持网站,已经发现的问题都会有文档 需要授权才能访问 【 在 xuebaowang (海风) 的大作中提到: 】 : zk 下 有9K多的对象 : metalink是什么 才疏学浅 还望赐教 ☆─────────────────────────────────────☆ xuebaowang (海风) 于 (Tue Apr 7 14:41:30 2009) 提到: 受教了 zk下竟然有个名字是zk的函数 真服了 再次感谢大侠 【 在 boyli (sky) 的大作中提到: 】 : 是名字等于‘ZK’的对象 : 有人说和用户同名的同义词会导致这个问题(个案) : metalink是oracle官方技术支持网站,已经发现的问题都会有文档 : ................... ☆─────────────────────────────────────☆ boyli (sky) 于 (Tue Apr 7 15:01:41 2009) 提到: 问题解决了? 【 在 xuebaowang (海风) 的大作中提到: 】 : 受教了 : zk下竟然有个名字是zk的函数 : 真服了 : ................... ☆─────────────────────────────────────☆ xuebaowang (海风) 于 (Tue Apr 7 15:43:56 2009) 提到: 恩 我drop掉这个function 然后 再搞 就OK了 【 在 boyli (sky) 的大作中提到: 】 : 问题解决了? 3/25/2009 RAC节点报GES: Potential blocker (pid=373) on resource TX-0x370008-0x147环境:10.2.0.1 RAC 用户发现系统性能下降厉害,检查日志发现: 节点2报错:
trc文件中内容如下 完成以上工作,update 语句的执行计划不错,希望今天不会再次出现该问题. 11/14/2008 rhel5+ocfs2安装rac时,报PROT-1错误运行root.sh时,报如下错误:
PROT-1: Failed to initialize ocrconfig Failed to upgrade Oracle Cluster Registry configuration 查看$CRS_HOME/logs/hostname/client/*.log,可以看到:
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved. 2005-07-11 12:30:29.809: [ OCRCONF][3086915264]ocrconfig starts... 2005-07-11 12:30:29.810: [ OCRCONF][3086915264]Upgrading OCR data 2005-07-11 12:30:29.811: [ OCROSD][3086915264]utstoragetype: /ocfs/ocr_disk1 is on FS type 1952539503. Not supported. 提示不支持ocfs2做ocr和votingdisk。 查看手册,原来ocfs2给redolog、dafafile、controlfile、ocr、votingdisk等使用时,需要在mount时加上datavolume选项: mount -t ocfs2 -o datavolume /dev/emcpowera /oracluster
运行vipca也报错了,网上找到了解决办法: 在oracle2上执行root.sh时,会提示一个错误,关于vipca无法执行的。于是乎,我手动运行/oracle/product/10.2.0/crs/bin/vipca,结果又告诉我找不到libpthread.so.0。晕~~ 你也应该遇到吧!! 别急这是个bug,我们这样来解决:
现在再运行vipca试试,什么?又出现个错误? 是不是类似下面的错误: Error 0(Native: listNetInterfaces:[3]) 阿弥佗佛,压住火气,这样来解决:
10/30/2008 OCM过了Dearxxx, 10/27/2008 时区引起的agent start failed。-bash-2.05b$ ./emctl start agent -bash-2.05b$ ./emdctl validateTZ agent PST8PDT 查看sysman/config/emd.properties里面,时区设置的也是PST8PDT 可以用这个下面命令解决: export TZ=GMT (用MDT也可以,PST8PDT不行,其他没尝试) 这时emd.properties里面的agentTZRegion=GMT,原先是PST8PDT. 10/14/2008 ocm考试出师不利终于考完了ocm考试了,不过考得并不好
据老师说,ocm考试做了调整,我们是调整后的全球第一期考生。不知道是不是这个原因,第一天上午一直无法进行考试,下午才开始考,考试一直到晚上10点多才结束。
还是准备不足,在两个最容易的地方出了问题
1.安装图形界面时,安装程序死掉了,不相应鼠标键盘输入,看日志也没有进展
监考老师也不能给出解决办法,只是答应向美国那边如实反应情况。
没办法只好杀掉进程,然后用grid control自带的低版本数据库安装了grid control,但是因为时间很紧张,在收集成绩时,emrep数据库还没有建成。
这给后续章节带来了隐患,比如后续的传输表空间因为版本兼容性无法完成(exp/expdp都无法完成)
但是老师说,从采分点来看,这个章节我得了一半以上的分。
2.在更为容易的data guard章节,又再次遇到故障,图形界面配置dataguard失败。第二次虽然成功了,但是但是在做了一部分题目后,又出现了后台进程异常终止的问题。
这样,在三个使用图形界面的章节,grid control、rac、data gurad,除了rac完美成功外,其他都不好。
3.最郁闷的是在dw章节,居然少做了半道题,直到快结束了才发现,最后还是没有完成。不过这个章节其他题目自我感觉还不错。
其他章节感觉还成,但是也有没复习到的,有些没有很好理解题目意图,给的答案并不是最佳方案。
除了出问题的gc和dg章节,其他章节都在规定时间内完成了
8/1/2008 oracle10g的flashback database需要启动flash recovery area,才能使用flashback database SQL> create spfile from pfile; File created. SQL> startup Total System Global Area 801112064 bytes System altered. SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE=20G scope=both; System altered. SQL> alter system set db_recovery_file_dest=/u01/app/oracle/flash_recovery_area scope=both; SQL> alter system set db_recovery_file_dest='/u01/app/oracle/flash_recovery_area' scope=both; System altered. SQL> alter database flashback on; SQL> shutdown immediate Total System Global Area 801112064 bytes Database altered. SQL> 10g的recyclebin1.启用&关闭回收站 2.视图 recyclebin,dba_recyclebin,user_recyclebin; 3.flashback table功能 4.限制条件 5.清除recyclebin中的对象。 7/24/2008 emagent.trc报 ERROR-400|ORA-01801,oms和agent无法通信oms突然显示agent无法连接,查emagent.log显示启动成功,有emagent.trc产生,报如下错误:
可以尝试重启emrep数据库。如果不解决,给数据库打这个补丁。
7/10/2008 分区表主键如何使用分区索引?主键索引失效,rebuild太慢了
打算建立分区索引时才意识到以前没做过这样的工作
表是在添加primary key时自动生成的索引,并不会进行分区
于是查资料,找到这篇文章
文章中心就一句话:现在需要建立主键的列上创建一个分区索引,然后添加主键,oracle会自动选用这个索引作为主键的索引。
PURPOSE This article gives examples of how to create primary key partitioned indexes. SCOPE & APPLICATION For users trying to create primary key partitioned indexes. How To Create Primary Key Partitioned Indexes: ============================================== Example: SQL> -- Create partitioned table TEST_A SQL> SQL> CREATE TABLE test_a (col1 number, col2 number, col3 varchar2(20)) 2 PARTITION BY RANGE (col1, col2) 3 (partition part_test_a_1 values less than (10, 100), 4 partition part_test_a_2 values less than (20, 200), 5 partition part_test_a_3 values less than (30, 300), 6 partition part_test_a_4 values less than (40, 400)); Table created. SQL> -- Create partitioned table TEST_B SQL> SQL> CREATE TABLE test_b (col1 number, col2 number, col3 varchar2(20)) 2 PARTITION BY RANGE (col1, col2) 3 (partition part_test_b_1 values less than (10, 100), 4 partition part_test_b_2 values less than (20, 200), 5 partition part_test_b_3 values less than (30, 300), 6 partition part_test_b_4 values less than (40, 400)); Table created. SQL> -- Create a non-unique local partitioned index, IX_TEST_A, SQL> -- on TEST_A SQL> SQL> CREATE INDEX ix_test_a ON test_a(col1, col2) 2 LOCAL 3 (partition ix_test_a_1, 4 partition ix_test_a_2, 5 partition ix_test_a_3, 6 partition ix_test_a_4); Index created. SQL> -- Create a unique global partitioned index, IX_TEST_B, SQL> -- on TEST_B SQL> SQL> CREATE UNIQUE INDEX ix_test_b1 ON test_b(col1, col2) 2 GLOBAL PARTITION BY RANGE (col1, col2) 3 (partition ix_test_b1_1 values less than (20, 200), 4 partition ix_test_b1_2 values less than (maxvalue, maxvalue)); Index created. SQL> -- Add a primary key constraint, PK_TEST_A, to TEST_A SQL> SQL> ALTER TABLE test_a ADD CONSTRAINT pk_test_a 2 PRIMARY KEY (col2, col1); Table altered. SQL> -- Attempt to drop index IX_TEST_A; note the following error... SQL> SQL> DROP INDEX ix_test_a; drop index ix_test_a * ERROR at line 1: ORA-02429: cannot drop index used for enforcement of unique/primary key SQL> -- Attempt to create a second index, IX_TEST_B2 on TEST_B SQL> -- using the same columns used to partition IX_TEST_B1. SQL> -- Note the following error... SQL> SQL> CREATE INDEX ix_test_b2 ON test_b(col1, col2) 2 LOCAL; create index ix_test_b2 on test_b(col1, col2) * ERROR at line 1: ORA-01408: such column list already indexed SQL> -- Add a primary key constraint, PK_TEST_B, to TEST_B SQL> SQL> ALTER TABLE test_b ADD CONSTRAINT pk_test_b 2 PRIMARY KEY (col1, col2); Table altered. SQL> -- Attempt to drop index IX_TEST_B1; note the following error... SQL> SQL> DROP INDEX ix_test_b1; drop index ix_test_b1 * ERROR at line 1: ORA-02429: cannot drop index used for enforcement of unique/primary key SQL> -- A listing of the indexes and their associated partitions. SQL> SQL> SELECT index_name, partition_name, status 2 FROM user_ind_partitions 3 ORDER BY index_name, partition_name; INDEX_NAME PARTITION_NAME STATUS ----------- --------------- -------- IX_TEST_A IX_TEST_A_1 USABLE IX_TEST_A IX_TEST_A_2 USABLE IX_TEST_A IX_TEST_A_3 USABLE IX_TEST_A IX_TEST_A_4 USABLE IX_TEST_B1 IX_TEST_B1_1 USABLE IX_TEST_B1 IX_TEST_B1_2 USABLE 6 rows selected. SQL> -- Drop the primary key constraint from TEST_A SQL> SQL> ALTER TABLE test_a DROP CONSTRAINT pk_test_a; Table altered. SQL> -- Drop the primary key constraint from TEST_B SQL> SQL> ALTER TABLE test_b DROP CONSTRAINT pk_test_b; Table altered. SQL> -- A listing of the indexes and their associated partitions. SQL> -- Note that while IX_TEST_A, the non-unique local partitioned SQL> -- index, remains and has a status of USABLE. SQL> -- IX_TEST_B, the unique global partitioned index, has been SQL> -- dropped. SQL> SQL> SELECT index_name, partition_name, status 2 FROM user_ind_partitions 3 ORDER BY index_name, partition_name; INDEX_NAME PARTITION_NAME STATUS --------------- -------------- -------- IX_TEST_A IX_TEST_A_1 USABLE IX_TEST_A IX_TEST_A_2 USABLE IX_TEST_A IX_TEST_A_3 USABLE IX_TEST_A IX_TEST_A_4 USABLE The primary key uses the underlying index if the index is built using the same columns as defined in the primary key. This is consistent without regard to whether the index was created as a unique or non-unique index, or if it is a global or local partioned index. It is important to note that while in the example a primary key was established on a non-unique index, this will only occur if the values within the index are in fact unique. Attempting to enable a primary key constraint when duplicate values are present within the index will result in the following error: "ORA-02437: cannot enable (STEELY.PK_TEST_B) - primary key violated." Two indexes cannot be created using the same ordered columns. This was demonstrated above when attempting to create a second index on table TEST_B. This resulted in the following error: "ORA-01408: such column list already indexed." However, changing the order of the columns will permit the creation of additional indexes using the same columns. Contrary to the previous note, the column order for index IX_TEST_A and the definition for the primary key PK_TEST_A were reversed. Yet the primary key still used IX_TEST_A as the underlying index. When dropping a primary key constraint from a table, the corresponding index is also dropped if the index was created as a UNIQUE index. This behavior is consistent for both LOCAL as well as GLOBAL partitioned indexes. To receive the full benefits of partitioning, users/DBA must use the STORAGE clause when creating partitioned tables/indices. 6/27/2008 oms10.2.0.1+rhel4遇到bug,报ora-14400事情过去了,日志没有了,简单记录一下:
metalink一下,是oracle的bug,按要求分析了sysman,重新整理了partitiion,也不行。
ora-14400是解决了,但是其他的问题接种而来。
metalink了一下没有信息,应用服务器分析起来太复杂,干脆把gridcontrol升级到10gR3了。
informatica:pcsf_46008informatica安装完成好几天了,最近太忙,一直没用。 尝试配置一下,和LHM遇到的错误一样。查到一篇文章http://www.dwway.com/bbs/showthread.php?t=20289,看了看没什么帮助。google了一下国外的文章,也没解决问题。只是知道了这个错误号一般和网络之类的问题有关。 检查windows firewall、网络端口等,都没有问题。 发现原来hosts文件写的不对,informatica要求hosts里制定的服务器主机名必须和服务器真实主机名一致,而不是随便写一个,解析出IP就可以。 host改成 10.*.*.* jl2,搞定。 2/27/2008 importvg 时,cfgmgr无法找到pv idOa系统安装时遇到的现象 lspv发现已经找到hdisk3,不过没有现实pvid。尝试多次仍然不成功。后无意中发现cfgmgr找到pvid了。一直没找到原因。 现在知道了,因为1号机当时vg没有正常varyoff,导致vg被锁,所以2号机cfgmgr得不到pv id。只要在1号机重新varyonvg,再varyoffvg,2号机就正常了。 Character Semantics and Globalization ----9i的一个新特性,一直没注意过。。。内容摘要: |
|||||||||||||||||||||||||
Please check the following: |
| step 7,lsnodes failed in graphical mode,but successed in SecureCRT. both mode using the same .profile then check the output of command :$env I found that there was no "LD_LIBRARY_PATH=/u01/app/oracle/product/9.2.0/db_1/lib" in xmanager. try $export LD_LIBRARY_PATH=/u01/app/oracle/product/9.2.0/db_1/lib then upgrading successed. |
SQL> startup nomount pfile="/u01/app/oracle/admin/orc/scripts/init.ora"; |
进程无法读写bdump、cdump、udump、alert.log会导致这个问题asfd cd $ORACLE_BASE/admin/sid mkdir bdump cdump udump |
| 摘自README Linux Itanium How to install Oracle RDBMS version 9.2.0.8 To install 9.2.0.2 and then 9.2.0.8 on Linux Itanium, do the following : [2]. Download Patch 5390952 and run the supplied OUI to install Montecito JDK and JRE into the new 9.2 home
[3]. Install 9.2.0.2 into the new 9.2 home by running OUI (./runInstaller) from <path>/Disk1 [4]. At the root.sh stage, do the following before running root.sh :
[5]. Run root.sh [6]. Start OUI from the 9.2.0.8 patchset (Patch 4547809) with jreLoc option
|
|
|