今天可能是苹果迷们心情上窜下跳的一天,首先,前段时间非常“酷”的iphone从599美元的价格今天突然跌到399美元,让前段时间入手iphone的粉丝捶胸顿足不已;另一方面,乔布斯也推出了新一代的ipod:ipod touch(见下图) 这一新产品的消息,又让苹果的粉丝们欢呼雀跃了!(iPod to […]
10g对sqlplus一处改进
今天在10g上用sqlpus登录后切换用户,发现sqlplus的提示能自动的改变,比起9i来,也算是个不错的进步了,因为在9i只能显示初次登录的信息,但是在10g却能实时的显示当前用户的信息了:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
#### 9i,在conn 从sys用户切换到misc用户,提示信息没有改变,仍然是sys #### D:\oracle\ora92\bin>D:/oracle/ora92/bin/sqlplus "/ as sysdba" SQL*Plus: Release 9.2.0.1.0 - Production on 星期四 9月 6 23:42:57 2007 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. 连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production sys@ORALOCAL(192.168.0.22)> conn misc/misc 已连接。 sys@ORALOCAL(192.168.0.22)> --已经切换到misc用户了,但是提示还是sys用户 sys@ORALOCAL(192.168.0.22)> exit #### 10g,在conn 从sys用户切换到misc用户,提示信息会改变成当前的用户 #### D:\oracle\ora92\bin>D:\oracle10g\product\10.2.0\db_1\BIN\sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 9月 6 23:43:48 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved. 连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production sys@ORALOCAL(192.168.0.22)> conn misc/misc 已连接。 misc@ORALOCAL(192.168.0.22)> --已经切换到misc用户了,提示变成misc用户 |
因为hosts文件无法实现侦听动态注册
今天一个同事来求助sqlplus+sid登录不上的问题,测试登录,发现有ora-12514的报错:
|
1 2 3 4 5 6 7 8 9 |
oracle@my_testdb01:/oracle > sqlplus myuser/mypasswd@mysid SQL*Plus: Release 9.2.0.4.0 - Production on Wed Sep 5 15:36:06 2007 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. ERROR: ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor |
检查了sqlnet.ora文件,发现NAMES.DIRECTORY_PATH= (TNSNAMES),是使用tsnnames,继续检查 […]
配置dp备份报错fail to load MML
今天在配置dp时,dp中报错: 用手工测试也有类似的报错:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
RMAN> run{ 2> allocate channel t1 type 'sbt_tape' ; 3> allocate channel t2 type 'sbt_tape' ; 4> backup datafile 3 5> format 'test_bk_%u_%p_%s.RMN' 6> include current controlfile; 7> } RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of allocate command on t1 channel at 09/01/2007 04:25:21 ORA-19554: error allocating device, device type: SBT_TAPE, device name: ORA-27211: Failed to load Media Management Library Additional information: 2 RMAN> ################################ ###### 但是备份到disk却没有问题 ################################ RMAN> RMAN> RMAN> RMAN> run{ 2> allocate channel t1 type disk ; 3> allocate channel t2 type disk ; 4> backup datafile 2 5> format '/iarch/test_bk_%u_%p_%s.RMN' 6> include current controlfile; 7> } allocated channel: t1 channel t1: sid=58 devtype=DISK allocated channel: t2 channel t2: sid=70 devtype=DISK Starting backup at 01-SEP-07 channel t1: starting full datafile backupset channel t1: specifying datafile(s) in backupset including current controlfile in backupset channel t1: starting piece 1 at 01-SEP-07 channel t2: starting full datafile backupset channel t2: specifying datafile(s) in backupset input datafile fno=00002 name=/dev/vg_iora01/rdata_1g_001 channel t2: starting piece 1 at 01-SEP-07 channel t1: finished piece 1 at 01-SEP-07 piece handle=/iarch/test_bk_01iqqmc8_1_1.RMN comment=NONE channel t1: backup set complete, elapsed time: 00:00:04 channel t2: finished piece 1 at 01-SEP-07 piece handle=/iarch/test_bk_02iqqmca_1_2.RMN comment=NONE channel t2: backup set complete, elapsed time: 00:00:37 Finished backup at 01-SEP-07 released channel: t1 released channel: t2 RMAN> |
检查了lib库中的link也是已经建立了:
|
1 2 |
gd_idb02:[/oracle/app/oracle/product/9.2.0/lib$]ll libobk.sl lrwxrwxrwx 1 oracle dba 36 Sep 3 10:01 libobk.sl -> /opt/omni/lib/libob2oracle8ale_64bit.sl |
后来查了相关的文档,才发现那个link的微妙差别,原来在64位的 […]
DBA要有良好的工作作风
dba不仅仅要有扎实的基础,良好的心态,更要有个良好的工作作风。 1、无论什么时候,要保证业务不受影响。你可以做清理,可以做优化,可以做备份,但是前提是这些操作不能影响到业务操作,需要预估这些操作的时间,会否延时到业务高峰期。这不仅要求dba了解数据库,也要了解业务,一个月中哪几天是业务高峰期;一天 […]
trace的一些小结
1. 使用autotrace: set autotrace ON | ON EXPLAIN | ON STATISTICS | TRACEONLY | TRACEONLY EXPLAIN set autotrace off 2. 使用set events context : alter sessio […]
数据库安装交接文档
数据安装完之后,数据库安装人员就可以把数据库交付给维护人员或者应用部署人员,但是往往很多时候没有交接文档,缺乏必要的信息,在后续的工作中造成了不少不便。在这里,我选取了一些比较重要的数据库信息——主机名称、操作系统版本、数据库安装用户名、数据库安装用户密码、数据库安装用户主目录、数据库安装用户环境变 […]
一些不错的oracle书籍
《oracle专家高级编程》:即传说中的expert one on one,tom的经典著作,对oracle的架构了解,sql执行效率有很强的指导作用。 《oracle9i性能调整》:新买的书,最近刚刚开始开看,虽然oracle已经出了11g了,不过还是比较喜欢从9i开始了解oracle,9i的教材 […]
oracle 11g 慢慢的走近了我们……
oracle 11g在上周五在oracle 的官方网站已经提供下载了:下载地址(11g db software) 目前的版本还是for linux x86的。还没有看到其他平台的11g。 不过,今天又看到11g的在线文档也发布了,其地址是:下载地址(online document) oracle 1 […]
IMP-00060:type does not exist or has different identifier
今天在做一个数据库迁移的时候,在imp的时候出现了一个奇怪的报错: …… . . importing table “APPLY_SERV_BAK070713” 1542 rows imported . . importing table “APPLY_SERV_BAK070724” 1546 row […]
遭遇抢劫……怀念偶的7610……
大前天在公交车上,正在用手机看电子书的时候,一只粗壮的大手一把夺过了偶的手机,飞快的窜下了车……偶拼命的追上去,可是门口有好多同伙装作要挤着下车,死死的挤在门口……在挤的过程中,偶的眼镜被挤掉了,好容易挤下了车,却看不清楚那瓜娃子往哪个方向逃去了……唉,偶的7610…… 回头分析了一下被抢的遭遇,站 […]
oracle的lifetime support政策
从今年的7月开始,oracle将对9i的版本不再提供标准支持服务(premier support),进入为期3年的延伸支持服务期(extended support)。也就是说,按照规定,从今年7月开始不再免费的提供新的patch,如果有需要,将在原来的服务费用基础上,第一年加收10%的费用提供支持, […]