与 RMAN 相关的文件
$oracle_homerdbmsadminrecover.bsq[@more@]
10G OCA TEST Attention
1 , Select the invalid statements from the following regarding undo segment management. (Chooseall that apply.)A. ALTER SYSTEM SET UNDO_TABLESPACE = ROLLBACK;B. ALTER DATABASE SET UNDO_TABLESPACE = UNDOTBS;C. ALTER SYSTEM SET UNDO_MANAGEMENT = AUTO;D. ALTER SYSTEM SET UNDO_MANAGEMENT = MANUAL;2, You are administering an Oracle database using Shared Server. The LARGE_POOL_SIZE is50MB. You issue the command ALTER SYSTEM SET LARGE_POOL_SIZE = 100M SCOPE=MEMORY.You then shut down and restart the dat
Oracle 11G support different OS Platform DataGaurd ( windows and linux )
I have seen it in : http://blue-prince.spaces.live.com/default.aspx. Thanks blueprice giving the detail test process.1 , The control backup in ( windows or linux ) can be used directly for mounting the Oracle database. 2 , Registering the backupset in the linux platform : RMAN> catalog start with '/home/oracle/opt/oradata/standby';using target database control file instead of recovery catalogsearching for all files that match the pattern /home/oracle/opt/oradata/standbyList of Files Unkn
Oracle 10g Grid Setup and Configuration
Oracle 10g Grid : 1 , Windows Firewall defense the 4889 port , so Need to be disabled.2 , In client machine , setup Oracle 10g Grid Agent.3 , 10g Grid have 2 methods for connections : Normal and Password certified .[@more@]
9I Catalog Configure
SQL> create tablespace rman datafile 'E:ORACLEORADATATEST003RMAN.DBF' size 10M;表空间已创建。Create a user and schema for the recovery catalog. For example, enter:SQL>SQL> create user rman identified by rman 2 temporary tablespace temp 3 default tablespace rman 4 quota unlimited on rman;用户已创建SQL>Grant the RECOVERY_CATALOG_OWNER role to the schema owner. This role provides the user with privileges to maintain and query the recovery catalog.SQL> grant recovery_catalog_own
oracle 9I 数据库异机恢复( Catalog 库 )
1 , 通过 rman 进行 open resetlogs 后,catalogs 中的数据库信息更新为新服务器中恢复出来的数据库信息。这时通过 rman 所做的备份,都是针对新恢复出的数据库。RMAN> alter database open resetlogs;数据库已打开在恢复目录中注册的数据库的新实体化正在启动全部恢复目录的 resync完成全部 resync2 , 通过 sqlplus 进行 open resetlogs 时,因不做 resync ,rman catalog 中的信息还是原数据库的,这时通过 rman 所做的备份,还是针对原数据库的。参考:rman unregister database :1 , % rman TARGET SYS/change_on_install@prod1
The method of create a replicate of the database .
Use DBCA to create a template from the existing database to contain the database structure and then use the same template to create the database in the new location.[@more@]
Oracle 10g RAC CRS-0184 linux
vmware 下由于 virtural machine physical network card ( MAC ) address changed , so crsctl start crs 不能启动 crs 。/etc/init.d/init.crs start 去启动。(需要用 root 用户去做)正常情况下,OS 在启动时,会去启动该服务。[@more@]
10g ASM OEM 相关
10g ASM OEM 相关[@more@]1 , IP address changed , then emctl start dbconsole return errors . recreate . emca -config dbcontrol db -repos recreate 2 , then , login oms using sys user , return user / password error . change sys password the same as the old in sqlplus , then try again , it is ok .3 , Login to ASM administrator interface , return user/password error again , use orapwd recreate the password file . try again , it is ok .D:oracleproduct10.2.0db_1BIN>orapwd file=d:
Oracle 8i 与 oracle 9 下 RMAN 中 CROSSCHECK 使用的差异
oracle 8I 下: change archivelog all crosscheck;oracle 9 下: crosscheck archivelog all;[@more@]
遇到 ORA-27121 错误
遇到 ORA-27121 错误[@more@]ORA-01034: ORACLE not availableORA-27121: unable to determine size of shared memory segmentLinux Error: 13: Permission denied主要是因为oracle安装程序没有给oracle这个可执行程序设置正确的setuid。这样设置一下:$ cd $ORACLE_HOME/bin$ chmod 6751 oracle结果类似这样就行了。$ ls -l $ORACLE_HOME/bin/oracle-rwsr-s--x 1 oracle oinstall 23352783 Aug 14 2001 /home/oracle/app/oracle/product/8.1.6/bin/oracle
ORA-27046 , ORA-01565错误
ORA-01565: error in identifying file '/export/home/oracle/product/10.2.0/dbs/spfilebaan.ora'ORA-27046: file size is not a multiple of logical block size[@more@]查了一下metalink :Problem Description:====================You are attempting to recreate the controlfiles for an existing database. During creation you may see the following errors:Case 1:ORA-01503: CREATE CONTROLFILE failedORA-01565: error in identifying file '/u02/oradata/RM805/system01.dbf'ORA-27046: file size is not a multiple of log
The value (30) of MAXTRANS parameter ignored. 问题分析
The value (30) of MAXTRANS parameter ignored. 问题分析[@more@]客户系统 alert 文件报以下错误:Tue Apr 17 09:27:06 2007The value (30) of MAXTRANS parameter ignored.kupprdp: master process DM00 started with pid=62, OS id=11680 to execute - SYS.KUPM$MCP.MAIN('SYS_EXPORT_TABLE_01', 'SYSTEM', 'KUPC$C_1_20070417092708', 'KUPC$S_1_20070417092708', 0);Tue Apr 17 09:33:13 2007Thread 1 advanced to log sequence 2834 Current log# 1 seq# 2834 mem# 0: /oracledata/oracledb/redo01.logTue Apr 17 09:40:15
10G SGA 自动管理
10G SGA 自动管理[@more@]正象PGA內存管理一樣﹐SGA內存管理在oracle 10g中也存在兩種方法﹕手動和自動。 手動內存管理各參數的設置跟以前版本一樣。而自動內存管理僅需要設定SGA_TARGET和很少几個內存參數﹐通過設置sga_target參數﹐你是允許實例自動去調整SGA。不過要使用自動內存管理的前提是﹐STATISTICS_LEVEL必須設定為TYPICAL或ALL。如果統計收集不可使用﹐那么數據庫會沒有為作決定所必須的歷史信息。 在oracle 10g中﹐相關的內存參數可分成兩類﹕ 1. 自動調整的內存參數﹕db_cache_size,shared_pool_size,large_pool_size﹐
sunos 5.9 + oracle 9207 的奇怪问题
OS : sunos 5.9 ( 12 cpu + 48 G memory )磁盘:sun 3510 cache 1G raid 5oracle : 9207在 imp 一个 150M 左右的 文件,用了 12 分钟左右。但是,在 imp 时,观察到 io 使用很低。据客户讲,在旧的 AIX 系统中(其配置远低于当前配置),用了 2 分钟就可以导完。后测试在创建表空间时,速度还可以接受,disk I/O 也能上去。数据库在进行读操作时,disk I/O 也能上去,查询性能也可以。就是数据库在进行写操作时,变得很慢。很是奇怪,难到真是 Oracle 的问题![@more@]
2006.12.13 成功实施 分区表增加 分区
OS : AIX Oracle : oracle 8.1.7客户一个分区表分区做到 2006 年,并且 2006 年的分区中用的是 maxvalue ; 随着 2007 年的临近,客户要求为 2007 年的数据增加分区。因 客户数据库上跑的是财务系统,并且周一到周五时间不能停机,客户 DBA 也不能确定工作时间什么时间,业务比较空闲,后经客户 DBA 的协调,安排在中午吃饭时间来做,我让他给我们空出 2 个小时来做。 早上,9:30 到客户那里后,先建了一个与分区表相同的表(分区,索引都相同)作为测试表,并导了一些真实的数据到测试表中。然后 按照我 写的增加分区计划操作步骤,一步一
解密Oracle数据存取算法(附代码、算法分析)
解密Oracle数据存取算法(附代码、算法分析)[@more@]经过几天的努力,终于对Oracle数据存取算法有所突破,并写成相应的函数。下面是Obj$表的Dump文件的一部分:col 0: [ 3] c2 08 07col 1: *NULL*col 2: [ 1] 80col 3: [20] 56 5f 24 44 4c 4d 5f 43 4f 4e 56 45 52 54 5f 4c 4f 43 41 4ccol 4: [ 2] c1 02col 5: *NULL*col 6: [ 2] c1 05col 7: [ 7] 78 69 05 13 0b 01 03col 8: [ 7] 78 69 05 13 0b 01 03col 9: [ 7] 78 69 05 13 0b 01 03col 10: [ 2] c1 02col 11: *NULL*col 12: *NULL*col 13: [ 1] 80col 14: *NULL*col 15: [ 2] c1
Oracle DataGaurd
Oracle DataGaurd[@more@]DataGaurd --------------------------- Log Transport Services: Log Apply Services:(Managed Recovery Mode , Read-Only Mode) alter system set Log_archive_trace = integer ; Remote File Service (RFS) Archiver (ARCn) Managed Recovery Process (MRP) Start the standby instance 1 , startup nomount; 2 , alter database mount standby database; Initiating Log Apply Services Log apply services can run as a foreground session or as a background process with control options
注意 SID 的命名规则( ora-12500, 0ra-12560 )
注意 SID 的命名规则( ora-12500, 0ra-12560 )[@more@]在手工创建数据库时 , 因为 我设置 SID = orc92_test , 所以 再连接数据库时 : connect sys/oracle@orc92_test as sysdba ; 出现 "ora-12500 :TNS:监听器无法启动专用服务器进程" 错误提示。 但是 对应的服务"OracleServiceorc92_test" 显示的是启动状态, 实际上 服务"OracleServiceorc92_test" 没有启动起来。可以通过 d:oracleora92databaseoradim.log 去看相关记录。Tue Sep 05 10:18:29 2006ORA-12560: TNS: 协议适配器错误
ORACLE的隔离级别
ORACLE的隔离级别[@more@]ORACLE的隔离级别作者: Parrotao 隔离级别(isolation level) l 隔离级别定义了事务与事务之间的隔离程度。l 隔离级别与并发性是互为矛盾的:隔离程度越高,数据库的并发性越差;隔离程度越低,数据库的并发性越好。l ANSI/ISO SQL92标准定义了一些数据库操作的隔离级别:l 未提交读(read uncommitted)l 提交读(read committed)l 重复读(repeatable read)l 序列化(serializable)l 通过一些现象,可以反映出隔离级别的效果。这些现