之前在vmware上搭了一个rac,在配置rac的时候,由于当时的电脑是接在路由器上的,因此将public和vip配置在了需要连接路由器的IP上,用的是bridge的连接方式。但是也造成了一个不便,就是在没有连接路由的情况下,public和vip无法连接,因此我希望用host only而不是brid […]
写正确了tnsnames文件却tnsping无法ping通
今天遇到个问题比较奇怪,tnsnames.ora明明配置正确,在其中写的IP是10.1.2.40,但是在tnsping中却解析到10.1.2.45:
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  | 
						[oracle@si_adm02 admin]$ cat tnsnames.ora # TNSNAMES.ORA.SI_WWW01 Network Configuration File: /ora9i/app/oracle/product/9.2.0/network/admin/tnsnames.ora.si_www01 # Generated by Oracle configuration tools. EXTPROC_CONNECTION_DATA =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))     )     (CONNECT_DATA =       (SID = PLSExtProc)       (PRESENTATION = RO)     )   ) dev2 =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.2.40)(PORT = 1521))     )     (CONNECT_DATA =       (SERVICE_NAME =misc1)     )   ) [oracle@si_adm02 admin]$   | 
					
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14  | 
						[oracle@si_adm02 admin]$ tnsping dev2 TNS Ping Utility for Linux: Version 9.2.0.4.0 - Production on 06-1Ղ -2010 15:03:15 Copyright (c) 1997 Oracle Corporation.  All rights reserved. Used parameter files: /oracle/product/9.2.0/network/admin/sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.3.54)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = ora9i))) OK (0 msec) [oracle@si_adm02 admin]$   | 
					
而且我把tnsna […]
legato备份时不执行备份直接写index
今天某省的同事来找,说备份有问题。从log上看备份似乎成功了,但是在legato的界面中看还是一个红叉。于是登录上legato的界面再次测试了备份,发现monitor中日志如下:
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  | 
						01/05/10 16:46:23 nsrd: savegroup info: starting  OracleArch (with 1 client(s)) 01/05/10 16:46:42 savegrp: jx_db:/oracle/app/oracle/product/9.2.0/bin/oraclearch will retry 1 more time(s) 01/05/10 16:46:56 savegrp: jx_db:/oracle/app/oracle/product/9.2.0/bin/oraclearch will retry 0 more time(s) 01/05/10 16:46:56 nsrd: media info: suggest mounting 000700L2 on jx_bak01 for writing  to pool 'index' 01/05/10 16:46:56 nsrd: media waiting event: Waiting for 1 writable volumes to backup pool 'index' tape(s) on jx_bak01 01/05/10 16:46:56 nsrd: media info: loading volume 000700L2 into \\.\Tape0 01/05/10 16:47:06 nsrmmd #13: Start nsrmmd #13, with PID 8020, at HOST jx_bak01 01/05/10 16:47:13 nsrd: \\.\Tape0 1:Verify label operation in progress 01/05/10 16:47:34 nsrd: \\.\Tape0 1:Mount operation in progress 01/05/10 16:48:00 nsrd: media event cleared: Waiting for 1 writable volumes to backup pool 'index' tape(s) on jx_bak01 01/05/10 16:48:00 nsrd: jx_bak01:index:jx_db saving to pool 'index' (000700L2) 01/05/10 16:48:01 nsrd: jx_bak01:index:jx_db done saving to pool 'index' (000700L2) 93 KB 01/05/10 16:48:06 nsrd: jx_bak01:bootstrap saving to pool 'index' (000700L2) 01/05/10 16:48:07 nsrmmdbd: media db is saving its data.  This may take a while. 01/05/10 16:48:07 nsrmmdbd: media db is open for business. 01/05/10 16:48:08 nsrd: jx_bak01:bootstrap done saving to pool 'index' (000700L2) 2645 KB 01/05/10 16:48:15 nsrd: savegroup info: Added 'jx_bak01' to the group 'OracleArch' for bootstrap backup. 01/05/10 16:48:15 nsrd: savegroup alert: OracleArch completed, total 2 client(s), 0 Hostname(s) Unresolved, 1 Failed, 1 Succeeded. (jx_db Failed)  | 
					
从日志上看,legato的备份在没有进行rman的备份 […]
Legato备份还原测试
最近的一段时间,某省的备份出了点问题,legato的备份在还原时检查不到索引,通过scanner扫描之后还是检查不到,问题已经开case提交到emc那边,目前还在处理。为了防止万一,还是对全网用legato备份的省进行了一次还原测试。以下是还原测试中遇到的一些问题小结。 目前现网大部分机器都是采用h […]
OCM考试-listener
启动侦听:
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21  | 
						cp一个sample中的listener.ora 去掉以下行的注释:  LISTENER =   (ADDRESS_LIST=         (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))         (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))) 这样可以通过动态注册侦听实现service的注册(启动侦听后大约1分钟)。 如果要实现的时候静态注册,建议稍作修改: LISTENER =  (ADDRESS_LIST=    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))   ) SID_LIST_LISTENER=     (SID_LIST=       (SID_DESC=         (SID_NAME=ocmdb)          (ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1)        )      )  | 
					
这里需要注意的是SID_LIST_LISTENER部分,里面可能还有空格之类的东西,把该行前面的空格删除,再整理下格式,就可以了。 如果遇到以下报错:
| 
					 1 2 3 4 5 6 7 8 9 10 11 12  | 
						[oracle@ocmdb1 admin]$ lsnrctl start LSNRCTL for Linux: Version 10.2.0.2.0 - Production on 20-NOV-2009 19:15:13 Copyright (c) 1991, 2005, Oracle.  All rights reserved. Starting /oracle/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait... TNS-12537: TNS:connection closed  TNS-12560: TNS:protocol adapter error   TNS-00507: Connection closed    Linux Error: 29: Illegal seek  | 
					
检查 […]
9i不能实现silent安装
今天尝试在一个hp 安腾的机器上安装9202的数据库,并且升级到9206的版本,但是当安装的时候,配置好了response file,还是会有报错:
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  | 
						$ ./runInstaller -silent -responseFile /opt/ora_soft/Disk1/response/IA_custom.rsp $ Initializing Java Virtual Machine from /tmp/OraInstall2009-12-11_04-43-32PM/jre/bin/java. Please wait... Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '211.137.180.5:0.0' as the value of the DISPLAY variable.         at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)         at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:58)         at java.lang.Class.forName0(Native Method)         at java.lang.Class.forName(Unknown Source)         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)         at java.awt.Window.<init>(Window.java:183)         at java.awt.Frame.<init>(Frame.java:310)         at java.awt.Frame.<init>(Frame.java:289)         at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)         at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)         at oracle.sysman.oii.oiif.oiifm.OiifmMainFrame.<init>(OiifmMainFrame.java:296)         at oracle.sysman.oii.oiic.OiicInstaller.<init>(OiicInstaller.java:231)         at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:599) $   | 
					
从报错的log中,我们看到,虽然使用搜silent模式安装,但是还是去启动的xser […]
NBU培训杂记
以下这段文字比较乱了,是参加nbu培训时候记的,没有条理,仅作为个人学习笔记了。 nbu component: master server media server san media server emm server-是一个sybase的数据库。 client nom server -用于展示报 […]
rac修改异步IO导致挂死
今天遇到个rac的异步IO的问题,环境是oracle 10201的双节点rac,存储使用ASM,机器是HP 的PA的机器,操作系统是11.23. 在udump下的日志中有大量的报错:
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  | 
						oracle@rp8440a:/oracle/oracle/admin/gzxnh/bdump> cat gzxnh1_ora_19552.trc /oracle/oracle/admin/gzxnh/bdump/gzxnh1_ora_19552.trc Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP and Data Mining options ORACLE_HOME = /oracle/oracle/product/10.2.0/db_2 System name:    HP-UX Node name:      rp8440a Release:        B.11.23 Version:        U Machine:        9000/800 Instance name: gzxnh1 Redo thread mounted by this instance: 1 Oracle process number: 0 Unix process pid: 19552, image: oracle@rp8440a Ioctl ASYNC_CONFIG error, errno = 1  | 
					
看到这个报错,觉得很轻松,之前也遇到过,是orac […]
OCM考试-Create the database
登录机器后,先检查 电源是否插牢 鼠标键盘是否没问题 oralce用户的环境变量:ORACLE_BASE,ORACLE_HOME,ORACLE_SID, oracle 10g的软件是否已经安装 联机文档是否能读取 我们假设奇数机(ODD)的主机名叫ocmdb1,偶数机(EVEN)的主机名叫ocmdb […]
OCM考试-培训和考试费用
ocm至少需要参加2门的培训,在中国,可以在广州、北京和上海参加oracle大学的原厂培训,中国OU开设的OCM的培训课程为:
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14  | 
						Oracle Database 10g: RAC for Administrators	 5 Days Oracle Database 10g: Performance Tuning	 4 Days Oracle Database 10g: OCM Exam Preparation	 4 Days Oracle Database 10g: SQL Tuning Workshop	 3 Days Oracle Database 10g: Data Guard Administration	 3 Days Oracle Enterprise Manager 10g Grid Control 	 5 Days Oracle Database 10g: Backup and Recovery	 3 Days Oracle Database 10g: New Features for Administrators	 5 Days Oracle Database 10g: New Features for Oracle8i DBAs	 5 Days Oracle Database 10g: Program with PL/SQL 	 5 Days Oracle Database 10g: Advanced PL/SQL 	 2 Days Oracle Database 10g: Security 	 3 Days Oracle Database 10g: Implement Streams	 5 Days Oracle Database 10g: Implement and Administer Data Warehouse	 4 Days  | 
					
目前的最近的几个月的安排如下: 2009年11月: Oracle北京培训中心 DBA Oracle Dat […]
OCM 考试概述
驾照考完了,接下来的一段时间,是该静下来学习一下ocm的相关知识,为ocm考试准备了。在这里,我会记录下准备ocm考试的相关知识,和大家一起分享。 考试科目:10G OCM(其他各个科目如9i,11g的oca,ocp,ocm等考试计划,可参见这里) 考试价格:RMB:7720/人 考试时间:2天,早 […]
RAC ONE NODE
之前,一直对rac one node、Single Instance HA(SIHA)、Oracle Restart的概念没搞清楚,今天和 @jarodwang和@ricky_zhu聊了之后,才明白了其中的概念: SIHA = Oracle Restart = Oracle Grid Infrast […]