oracle 817 ora_snp background process
$ ps -ef|grep ora_ oracle 5996 1 0 16:10:24 - 0:00 ora_lgwr_orapp oracle 17100 1 0 16:10:24 - 0:00 ora_snp0_orapp oracle 17558 1 0 16:10:25 - 0:00 ora_snp1_orapp oracle 19498 1 0 16:10:24 - 0:00 ora_pmon_orapp oracle 20276 24436 1 16:13:29 pts/1 0:00 grep ora_ oracle 21704 1 0 16:10:24 - 0:00 ora_dbw0_orapp oracle 21934 1 0 16:10:24 - 0:00 ora_reco_orapp oracle 22192 1 0 16:10:24 - 0:00 ora_sm
windows 防火墙 导致 tnsping 不能成功
windows 防火墙 导致 tnsping 不能成功[@more@]
Windows 下备份 archive log
@echo -------------- 开始归档日志备份 %date% %time% -------------------- >> f:testarch_backup.logxcopy d:oracleora92rdbms*.001 f:test /D /F >> f:testarch_backup.log@echo -------------- 归档日志备份结束 %date% %time% -------------------- >> f:testarch_backup.log@echo ---------------------------------------------------------------------------------- >> f:testarch_backup.log@echo. >> f:testarch_backup.log@echo. >> f:testarch_backup.log[@more@]
Oracle各版本区别(转载)
From : http://tolywang.itpub.net/post/48/462115Oracle EE(企业版, Enterprise Edition), SE(标准版, Standard Edition), SE1(标准版1, Standard Edition One) 区别是什么? 1. SE1针对部门和小企业,SE针对中小企业和单位,EE针对大中型企业和单位。使用SE,就意味着用户不能使用EE的功能强大的选件,EE选件可以实现高性能、高可用性、高扩展性、高安全性和高级数据分析的功能。SE和SE1最多支持 500 GB 数据量,EE则高达 8,000,000,000 GB(80亿GB),另外EE还支持数据压缩(compression)功能,特别适合存储资源有限、I/O量大的数据仓库。
ZHS16CGB231280 --> ZHS16GBK 字符集转换,exp/imp 注意事项
1 , 源库 exp , 目标库 imp 时的环境变量要设为:LANG=zh_CN.ZHS16GBKNLS_LANG=american_america.ZHS16GBK否则,可能会遇到一些卡住。2 , 源库在做 全库的 exp 时,不能指定 direct=y 否则也会报错。3 , 参考语句:exp system/manager@test full=y file=(/oradata/artcvs01.dmp /oradata/artcvs02.dmp) filesize=2000M log=/oradata/test080508full.log buffer=20480000 feedback=1000 imp userid=system/manager file=/oradata/artcvs01.dmp full=y filesize=2000m log=/oradata/imp080508_2.log[@more@]
Oracle 817 linux 不能传输 archivelog
做 817 standby 时后台日志报以下错误信息,archivelog 不能传到 standby 服务器 Tue May 6 14:10:02 2008ARC0: Beginning to archive log# 3 seq# 438Tue May 6 14:10:02 2008Thread 1 advanced to log sequence 439 Current log# 1 seq# 439 mem# 0: /oraclesoft/oradata/orcl/redo01.logTue May 6 14:10:03 2008ARC0: Error 16032 attaching RFS server to standby instance at host 'standby'ARC0: Error 16032 creating archivelog file 'standby'ARC0: Completed archiving log# 3 seq# 438Tue May 6 15:41:01 2008 Subject:
RMAN ORA-19697: standby control file not found in backup set
C:Documents and SettingsOracle.XP_ONE>set oracle_sid=orclC:Documents and SettingsOracle.XP_ONE>rman target /Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 1 23:12:47 2008Copyright (c) 1982, 2005, Oracle. All rights reserved.connected to target database: orcl (not mounted)RMAN> restore controlfile from 'c:3RJFA2A6_1_1';Starting restore at 08-05-01using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: sid=156 devtype=DI
Catalog backuppiece ( regsiter a backup piece to the catalog )
RMAN> catalog backuppiece2> 'D:oracleproduct10.2.0flash_recovery_areaORCLBACKUPSET2008_05_01O1_MF_NNNDF_TAG20080501T164457_41M0RB8C_.BKP';cataloged backuppiecebackup piece handle=D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAORCLBACKUPSET2008_05_01O1_MF_NNNDF_TAG20080501T164457_41M0RB8C_.BKP recid=97 stamp=653612555RMAN> run {2> set until logseq 17;3> set newname for datafile 1 to 'c:test_orcloradataSYSTEM01.DBF';4> set newname for datafile 2 to 'c:test_orcloradataUNDOTBS01.DBF';5>
同一数据间复制用户
先建立新用户并授权和 default tablespace quotaSQL> create user test identified by test; 用户已创建。 SQL> grant create session , connect to test; 授权成功。SQL> alter user test default tablespace tools;用户已更改。SQL> alter user test quota 50m on tools;用户已更改。C:Documents and SettingsAdministrator>exp userid=system/oracle@orcl owner=hr file=c:hr.dmpExport: Release 9.2.0.1.0 - Production on 星期三 4月 30 10:33:19 2008Copyright (c) 1982, 2002, Oracle Corporation. All rights re
不同版本间 EXP 问题
用 10G exp 导出 9I 数据时会报以下信息:D:oracleproduct10.2.0db_1BIN>exp userid=system/oracle@orcl owner=hrExport: Release 10.2.0.1.0 - Production on 星期三 4月 30 10:34:54 2008Copyright (c) 1982, 2005, Oracle. All rights reserved.EXP-00056: 遇到 ORACLE 错误 6550ORA-06550: 第 1 行, 第 41 列:PLS-00302: 必须说明 'SET_NO_OUTLINES' 组件ORA-06550: 第 1 行, 第 15 列:PL/SQL: Statement ignoredEXP-00000: 导出终止失败D:oracleproduct10.2.0db_1BIN>[@more@]
Oracle Secure Backup
Oracle Secure Backup Download Address :http://www.oracle.com/technology/software/products/securebackup/index.html[@more@]
Oracle 10G Archive Destination 理解
奇怪,blog 中为什么会丢失 反斜线?以下路径中丢失了 反斜线缺省情况:SQL> archive log listDatabase log mode Archive ModeAutomatic archival EnabledArchive destination USE_DB_RECOVERY_FILE_DESTOldest online log sequence 9Next log sequence to archive 12Current log sequence 12看一下,我的 recovery 的位置和 大小。SQL> show parameter recoveryNAME TYPE VALUE------------------------------------ ----------- ------------------------------db_recovery_file_dest string D:oracleproduct10.2.0/flash_recover
Oracle 10G Logminer
1 , Extracting the LogMiner Dictionary to a Flat FileNeed to configure utl_file_dir Parameter , This Parameter is a Static Parameter , so the database restart is required.1 , alter system set utl_file_dir ="c:" scope=spfile;2 , restart the database.3 , execute dbms_logmnr_d.build('dictionary.ora',-'c:',- 注: 此目录必须与 utl_file_dir 保持一致DBMS_LOGMNR_D.STORE_IN_FLAT_FILE);我的 dictionary.ora 生成出来的大小为: 31M [@more@]
Oracle 9I Transparent GateWay
透明网关 for MS SQL Server的版本必须安装在Windows平台下。Oracle9i安装光盘自带该组件,但Oracle8i需另购买。Oracle 9i安装时Transparent Gateway默认是不安装的,要想安装该组件,需在安装Oracle9i的时候选择自定义安装,然后在安装产品列表中选择Oracle Transparent Gateway->Transparent Gateway for MS SQL Server.. Oracle数据库和Oracle透明网关可以在不同的服务器上。 在安装完透明网关后,可以在$ORACLE_HOME(9i安装目录)下找到tg4msql目录。D:oracleora92tg4drdaD:oracleora92tg4msqlD:oracleora92tg4sybsD:oracleora92t
链接文件libobk.a错误造成oracle8i使用svrmgrl无法登陆
FROM : http://blog.chinaunix.net/u/12960/showart.php?id=178916今天大客户那边报过来说大客户测试机的8i数据库无法登陆了,检查客户端连接,报TNS-12500的错误。在主机上检查listener未发现问题,之后试图通过sqlplus和svrmgrl使用管理员身份登陆时报错:exec(): 0509-036 Cannot load program oraclebjlttest because of the following errors: 0509-150 Dependent module libobk.a(shr.o) could not be loaded. 0509-022 Cannot load module libobk.a(shr.o). 0509-026 System error: A file or directory in
10g 启用 flashback 功能
-- 确定 数据库的 flashback log 的保留期限已设定,并且数据库处于归档模式SQL> show parameter flashNAME TYPE------------------------------------ --------------------VALUE------------------------------db_flashback_retention_target integer1440SQL> select dbid,name from v$database;DBID NAME---------- ------------------1916475441 TESTSQL> shutdown immediate;数据库已经关闭。已经卸载数据库。ORACLE 例程已经关闭。-- 数据库启动到 mount exclusive 状态。SQL> startup mount exclusive;ORACLE 例程已经
dbsnmp 用户作用
dbsnmp 用于 agent 连接处理。[@more@]
测了一下 通过 DBCA 通过模板 复制数据库(数据库架构及数据)
估计其中是通过备份现有数据库,然后做恢复来实现的。可以更改数据库的名字,[@more@]
Oracle 字符集
作为一个Oracle数据库的用户,对于Export和Import两个命令绝对不会感到陌生,因为这二者正是我们经常用于数据备份和恢复的工具。但在使用这两个命令过程中所发生的Oracle字符集问题,常给一些Oracle使用者带来不必要的麻烦和不必要的数据损失。本文将就Export和Import过程中Oracle字符集的转换规律及使用这两个命令的注意事项做一总结。 字符集转换的原因 Export、Import过程如下图所示,从这个示意图中可以看到有四处关系到字符集,而这四处字符集的不一致恰恰是导致Oracle进行字符集转换的原因。 源数
HP-UX 10.2.0.1 升级到 10.2.0.3 时报 ORA-20000: Upgrade re-run not supported from version
SELECT version_script AS file_name FROM DUAL *ERROR at line 1:ORA-20000: Upgrade re-run not supported from versionORA-06512: at "SYS.VERSION_SCRIPT", line 45 Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, OLAP and Data Mining options通过 update registry$ set prv_version='' where cid='CATPROC' 更新到你要升级到的 version 再次运行, 不会报错[@more@]Bug No.5071433Filed01-MAR-2006Updated