随笔分类 - 9I Fudmentl II
摘要:1、Overview之前使用RMAN进行登陆时,会是这样rman target sys/oracle@DB202 nocatalog没有catalog的情况下,所有的备份和恢复信息,都存放在control file里面.注意:(a)、无论你是否使用catalog database,所有的备份和恢复信息依然存储在控制文件里面.catatalog作为备份和恢复信息的第二目的地.(b)、因为数据库的备份与恢复信息,有时候会认为的只存储在控制文件里面,而不存放在catalog里面,就造成了控制文件中的备份与恢复信息,同catalog database中的信息,不一致的情况.resynchronize命
阅读全文
摘要:Types of Incomplete RecoveryTime-based recoveryCancel-based recoveryChange-based recoveryIncomplete RecoveryFollow all steps carefullyTake whole database backups before and after recovery.Always verify that the recovery was successful.Back up and remove archived logs.Incomplete and the Alert LogChec
阅读全文
摘要:1、在oracle的recovery中,分两种:complete recover and incomplete recovery2、在NOARCHIVELOG MODE情况下,是没有完全恢复的. 在非归档模式下,有一个文件损坏,要restore必须重新拷贝全部文件; 非归档模式,一般使用在测试环境或者开发环境;对于实际的生产环境下的数据业务库,100%的需要使用归档模式.3、非归档模式下数据库恢复原理图解假如the most recent backup,是在144(scn)处,当数据发生损坏在146处时,又假如redo log file文件中的数据没有被覆盖时(redo log file是..
阅读全文
摘要:1、只有在RMAN下可以实现增量备份2、Backup File TypesTablespacesDatafiles(current or copy)Control file(current or copy)SpfilesArchived logsBackup Sets3、要执行RMAN数据库备份,必须要求Oracle Database Server必须处于archive mode下;RMAN进行备份的时候,会将Online redo log files 进行一次alter system switch log file,然后再进行备份操作;把online redo log file的内容,写到a
阅读全文
摘要:1、export和import操作的.dmp文件,是一种二进制文件;面对一些小型的数据库,可以应付;但是对于那些大型的数据库,就有些吃力了;Import和export将逐渐的被淘汰;exp.exe->exedp.exeimp.exe->impdp.exe*.dmp文件时平台无关性的;2、Before Your Use Of Exp/ImpRun the catexp.sql or catalog.sql script(如果DBA是用DBCA工具创建的数据库,Oracle server 会自动执行上述两个脚本;如果是手工创建的数据库,则需要手工执行上述两个脚本)3、Methods t
阅读全文
摘要:1、查看数据文件SQL> select name,status from v$datafile;NAME STATUS-------------------------------------------------- -------/u01/oradata/poli/system01.dbf SYSTEM/u01/oradata/poli/sysaux01.dbf ONLINE/u01/oradata/poli/undot...
阅读全文
摘要:1、RMAN连接远端数据库rman target sys/oracle@DB200 nocatalog2、查看RMAN的配置信息show all;(rman登陆成功后,执行show all命令;)3、修改rman配置文件之前默认Device type是Disk,现在需要修改成sbt;操作命令如下:configure default device type to sbt;恢复Device type为Diskconfigure default device type clear;4、数据库备份backup database;View Code RMAN> backup database; .
阅读全文
摘要:NOARCHIVELOG ModeImplications of NOARCHIVELOG ModeIf a tablespace becomes unavaliable because of a failure,you cannot continue to operate the database until the tablespace has been dropped or the entire database has been restored from backups.Auto and Manual Archivingoracle server有归档模式与非归档模式之分,如果是归档
阅读全文
摘要:After completing this lesson,you should be able to do the following:Describe the Oracle processes,memory structures,and files relating to recoveryIdentify the importance of checkpoints,redo log files,and archived log filesDescribe ways to tune instance recoveryTypes of CheckpointsFull checkpointAll
阅读全文
摘要:Backup and Recovery Issues [备份与恢复所关心的问题]Protect the database from numerous types of failuresIncrease Mean-Time-Between-Failures(MTBF) [平均无故障时间]Decrease Mean-Time-To-Reconver(MTTR) [平均抢修时间]Minimize data lossCategories of FailuresStatement failure(sql 语句Causes of Statement FailuresLogic error in an ap
阅读全文
摘要:配置和使用oracle共享服务器1、一般情况下而言,客户端与服务器端打交道的方式分两种:Dedicated server processShared server process详细总结dedicate server process and shared server process2、搭建shared server process在Oracle 9i中,执行如下命令进行配置shared server process,是不会成功的;在oracle 11gr2中是可以的;alter system set dispatchers='(protocol=tcp)(dispatchers=3)
阅读全文
摘要:1、如何查找3要素信息(IP地址、端口号、服务名)IP地址:ifconfig端口号:view /$ORACLE_HOME/network/admin/listener.ora服务名:以sys用户登陆oracle server后,执行show parameter service查看2、有关Naming Method Configuration相关文件分类 oracle server site file->listener.ora client site file ->tnsnames.ora,slqnet.ora tnsnames.ora文件用于存放数据库连接三元素(IP地址、端口号
阅读全文
摘要:The Listener ProcessA listener process can listen for more than one database 一个监听进程,可以监听多个数据库; 监听进程可以与database在不同的机器上;Multiple listeners can listen on behalf of a single database to perform load balancing. 一个数据库可以启动多个listenerThe listener can listen for multiple protocolsNote:高版本的listener可以连接低版本的数...
阅读全文
摘要:Concepts & TerminologyView Code Database ServicesService Name A logical representation of a database The way a database is presented to clientsConnect Descriptor Location of the database Name of the database serviceListener Receives client connection requests Hands requests to the ...
阅读全文
摘要:一般情况存在大量并发的时候,就会使用Shared Server模式;为了应对更大规模的并发访问,oracle提供了OCM(Oracle Connection Manager);Networking OverviewOracle 9i Network SolutionsConnectivityDirectory ServicesScalabilitySecurityAccessibilityThe connections types can be在安装了oracle server的linux系统中,sqlplus连接oracle server,走的是RPC,进程间通讯;Clinet-Server
阅读全文