JasonFu

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2008年4月16日

摘要: 1. 使用oracle的工具dbfsize [AIXP55A:oracle:/oracle/product/9.2.0/dbs]>dbfsize ./db_control1 Database file: ./db_control1 Database file type: raw device without 4K starting offset Database file size: 286 81... 阅读全文
posted @ 2008-04-16 14:11 Jason.Fu 阅读(293) 评论(0) 推荐(0) 编辑

摘要: After Setup Legato Single Server, you can use "inquire" to query devices, and then use "jbconfig" to install them. C:\PROGRA~1\nsr\bin>inquire scsidev@0.0.0:LG CD-ROM CRD-8482B1.05|CD-ROM scsidev... 阅读全文
posted @ 2008-04-16 14:09 Jason.Fu 阅读(338) 评论(0) 推荐(0) 编辑

摘要: 1. 字符集的一些概念: 与ORACLE数据库相连时,有一个很重要的环境变量需要设定:NLS_LANG,其格式为: NLS_LANG = _. 指定Oracle 消息的语言,如:AMERICAN 指地区,如:AMERICA 指控制客户端的应用程序的字符集,如:WE8ISO8859P1 如果设置不好,数据库中的字符可能显示成乱码或?,特别是在使用... 阅读全文
posted @ 2008-04-16 13:53 Jason.Fu 阅读(325) 评论(0) 推荐(0) 编辑

摘要: 对于如何建立恢复目录数据库,相信大家都知道, 在此不再重复(建立专用表空间,建立用户,授权recovery_catalog_owner)。 一、 注册数据库: 1. 连接到恢复目录: C:\>rman catalog rman/rman@rmandb Recovery Manager: Release 9.2.0.1.0 - Production Copyright (c) 1... 阅读全文
posted @ 2008-04-16 13:47 Jason.Fu 阅读(282) 评论(0) 推荐(0) 编辑

摘要: =========================================================== 作者: m77m78(http://m77m78.itpub.net) 发表于:2007.05.14 21:43 分类: oracle 管理 出处:http://m77m78.itpub.net/post/125/287704 ------------------------... 阅读全文
posted @ 2008-04-16 13:43 Jason.Fu 阅读(200) 评论(0) 推荐(0) 编辑

摘要: SET line 800 SET pages 100 col sid format 9990 col SERIAL# format 999990 col top_io_machine format a8 col top_io_program format a10 col top_io_sql format a50 SET colsep | SELECT /*+ rule */ aa.sid ... 阅读全文
posted @ 2008-04-16 13:42 Jason.Fu 阅读(223) 评论(0) 推荐(0) 编辑

2008年4月14日

摘要: 1. RollUp select sumyear,summonth,svcdesc, sum(decode(sumio,'I',1,0) * decode(sumef,'E',1,0) * sumtype2 * decode(sumreefind,'N',1,0) * SumStandard) IE20, sum(decode(sumio,'I',1,0) * decode(sumef,'E',1... 阅读全文
posted @ 2008-04-14 17:35 Jason.Fu 阅读(474) 评论(0) 推荐(0) 编辑

摘要: 在Oracle 816 以后的版本中,Oracle提供了一个包: DBMS_BACKUP_RESTORE.DBMS_BACKUP_RESTORE,由dbmsbkrs.sql 和 prvtbkrs.plb 这两个脚本创建, catproc.sql 脚本运行后会调用这两个包。该包是Oracle服务器和操作系统之间IO操作的接口,由恢复管理器直接调用。 在catalog的情况下,采用RMAN备份,如果... 阅读全文
posted @ 2008-04-14 15:04 Jason.Fu 阅读(401) 评论(0) 推荐(0) 编辑

摘要: 做RMAN恢复测试时遇到的一个问题: 1、RMAN全备份数据库(数据库为ARCHIVE LOG模式) 2、在数据库上创建新的表空间 3、备份所有归档日志 4、关闭数据库并将数据库里面的控制文件、数据文件全部删除 5、用RMAN进行恢复 RMAN>set dbid ... RMAN>startup nomount RMAN>restore controlfile from autobackup; ... 阅读全文
posted @ 2008-04-14 15:03 Jason.Fu 阅读(339) 评论(0) 推荐(0) 编辑

摘要: 1. 当前日志组文件损坏----文件大小没有变化 SQL> startup ORACLE instance started. Total System Global Area 101784276 bytes Fixed Size 453332 bytes Variable Size 75497472 bytes Database B... 阅读全文
posted @ 2008-04-14 14:55 Jason.Fu 阅读(455) 评论(0) 推荐(0) 编辑