`

Oracle 11g Create Parameter file from memory and Hot Patch(原创)

 
阅读更多

Creating a Parameter File from Memory
You can now create a text initialization parameter file (PFILE) or a server parameter file (SPFILE) from the system-wide parameters currently in use by the instance. Here’s how you generate the initialization parameter file from the settings in memory:
SQL> create pfile from memory;
File created.
You can also create an SPFILE from the parameter settings in memory, as follows:
SQL> create spfile from memory;
File created.
You can use this ability to create a text parameter file or an SPFILE from memory when you can’t access your parameter file because it’s corrupted or lost. The following example demonstrates this:
SQL> create pfile from spfile;
create pfile from spfile
*
ERROR at line 1:
ORA-01565: error in identifying file
'/u01/app/oracle/product/11.1/db_1/dbs/spfileauxdb.ora'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
The example shows that you can’t create a new parameter file from the SPFILE because the database can’t find the SPFILE. When you lose an SPFILE, it’s easy to recover from it because of the new ability to re-create the SPFILE from memory. If the instance can’t find the parameter file and you therefore can’t create the new parameter file, you can execute the create pfile from memory statement instead to re-create an init.ora file from memory. The new file that you create from memory will have values for all the 150 or so initialization parameters, even though you haven’t set the values for most of them in your parameter file when starting the database. Oracle uses the default value for all the parameters that you ignored.
Hot Patching
Traditional patching of database server code always involves downtime for the database. While the downtime doesn’t pose any problems on a test database, it’s not so easy when you are working with production databases. Hot patching (or online patching) enables you to apply bug fixes or diagnostic patches on a live database, without incurring any downtime. Live application of patches makes a lot of sense, especially when you are dealing with a small bug fix or a diagnostic patch. The opatch command-line utility lets you perform online patching. Using opatch, you can install, enable, and disable patches. You can continue to use the opatch utility as in the previous release to perform normal offline code patching. In Oracle Database 11g, you can use opatch to perform online patching as well.
Benefits of Hot Patching
Hot patching with the opatch utility offers the following benefits: No need to restart the database, thus preventing any downtime for patching. Quick installation and de-installation of patches. Unlike conventional patches, hot patches take seconds, not minutes to apply.
Automatic listing in patch inventory.
Ability to work in an Oracle RAC environment, which lets you perform a rolling patch application. You don’t have to worry about whether the hot patch can be applied as a rolling upgrade or as an upgrade. Hot patches persist across instance shutdowns.
Installing a Hot Patch
As mentioned earlier, you use the opatch utility to perform an online patching. Oracle automatically detects any conflicts between two hot patches. You can issue the $ORACLE_HOME/OPatch/opatch command to determine if a patch is a hot patch:
$ opatch query -is_online_patch <patch location>
You can also use this variant of the previous command for the same purpose:
$ opatch query -is_online_patch <patch location> -all
Once you confirm that a patch is indeed an online patch, you can use the opatch utility to perform the patching.
Considerations
Currently, hot patching is available only on some platforms such as Linux x86, Linux x86-64, and Solaris SPARC64. The opatch utility does consume extra memory depending on the size of the patch and the number of currently running concurrent Oracle processes. You’ll need a minimum of one OS page of memory for each running Oracle process when you apply a patch. An OS page usually is 4 KB on a Linux x86 server and 8 KB on a Solaris SPARC64 system. If there are 500 Oracle concurrent processes running on a Solaris SPARC64 server, for example, you can expect to need only about 4 MB of memory for applying a small patch online.

 

参考至: 《McGraw.Hill.OCP.Oracle.Database.11g.New.Features.for.Administrators.Exam.Guide.Apr.2008》
本文原创,转载请注明出处、作者

如有错误,欢迎指正

邮箱:czmcj@163.com

0
0
分享到:
评论

相关推荐

    2012年3月还可用的oracle11g patch 112030补丁下载地址

    ### Oracle 11g Patch 112030 补丁详解 #### 一、Oracle 11g Patch 112030 概述 Oracle 11g是Oracle公司推出的一个数据库管理系统版本,它在Oracle 10g的基础上进行了大量的改进和优化,提升了性能并增强了安全性...

    oracle11g官方中文文档完整版

    Oracle 11g 官方中文文档 包括一下部分文档: Oracle 11g:ORACLE ACTIVE DATA GUARD.pdf Oracle Database 11g 高可用性.pdf Oracle 数据库 11g :真正应用测试与可管理性概述.pdf Oracle 数据库 11g 中的分区....

    oracle10G和oracle11G的OCI.dll

    3. 新特性:Oracle 11G引入了许多新特性,比如Automatic Memory Management(自动内存管理),简化了数据库管理员对内存设置的工作;另外,Real Application Clusters (RAC) 在11G中也得到了加强,提供了更高的可用...

    oracle11g 百度盘下载

    在这个“Oracle11g 百度盘下载”资源中,用户可以获取到Oracle 11g的安装包,以便在自己的计算机上搭建数据库环境。下面将详细阐述Oracle 11g的一些核心特性和关键知识点。 1. **数据库版本**:Oracle 11g是Oracle...

    oracle 11g 下载地址

    根据提供的文件信息,本文将围绕Oracle 11g的下载及其相关知识点进行详细介绍。Oracle 11g是一款功能强大的数据库管理系统,它为企业级应用提供了稳定、高效的数据存储和管理服务。 ### Oracle 11g简介 Oracle 11g...

    oracle 11g 补丁

    Oracle 11g数据库是Oracle公司推出的企业级数据库管理系统,被广泛应用于各种规模的企业和组织。这个"Oracle 11g p10350787_111070升级补丁"是为了增强Oracle 11g数据库系统的稳定性和安全性而设计的。补丁通常包含...

    欧拉系统安装oracle 11g

    欧拉系统安装 Oracle 11g 本资源摘要信息将详细介绍欧拉系统安装 Oracle 11g 的过程,包括安装依赖包、安装 Oracle 11g 等步骤。 安装依赖包 在安装 Oracle 11g 之前,需要安装一些依赖包,以确保安装过程的顺利...

    oracle11g导出还原到oracle10g

    ### Oracle 11g 数据库导出还原到 Oracle 10g 的步骤详解 #### 一、导出Oracle 11g数据至DMP文件 在进行Oracle版本之间的迁移时,通常会采用导出(Export)的方式将源数据库的数据转换为可移植的格式,再通过导入...

    Oracle11g冷备份并迁移整个数据库去另一台服务器.doc

    Oracle 11g冷备份并迁移整个数据库到另一台服务器 Oracle 11g冷备份是指在不停止数据库的前提下,对数据库进行备份的操作。cold backup是相对于hot backup的,hot backup是在数据库运行时进行备份,而cold backup是...

    oracle11g 客户端 windows 64位

    Oracle 11g客户端是Oracle数据库的一个重要组成部分,主要用于连接到Oracle服务器进行数据查询、管理和其他操作。在Windows 64位操作系统上安装这个客户端,可以让开发者和DBA在本地环境中进行高效的数据处理和分析...

    Oracle11g客户端32位

    Oracle11g客户端32位是Oracle公司推出的数据库管理系统的客户端版本,专为32位操作系统设计。这个轻量级的客户端尽管只有70多MB,但仍然包含了完整版Oracle客户端的许多核心功能,能够满足大部分数据库管理和开发的...

    Oracle11g客户端安装包.zip

    Oracle11g客户端是Oracle数据库系统的一个组成部分,主要用于在Windows环境下与Oracle服务器进行通信和数据交互。这个压缩包文件“Oracle11g客户端安装包.zip”包含安装客户端所需的所有组件,使得用户能够在本地...

    Oracle 11g 官方中文文档集萃【完整版】

    Oracle 11g 官方中文文档集萃(完整打包) 包括: Oracle 11g:ORACLE ACTIVE DATA GUARD.pdf Oracle Database 11g 高可用性.pdf Oracle 数据库 11g :真正应用测试与可管理性概述.pdf Oracle 数据库 11g 中的...

    oracle11g数据备份导入到10g数据库中

    ### Oracle 11g 数据备份导入到 10g 数据库中的详细操作指南 #### 一、背景介绍 在实际工作中,有时会遇到需要将Oracle 11g的数据备份导入到10g数据库中的需求。这通常是因为业务迁移或者数据共享的需求导致的。...

    linux上安装oracle11g详细步骤

    Linux 上安装 Oracle 11g 详细步骤 本文将指导您在 Linux 操作系统上安装 Oracle 11g 数据库。安装过程可能会很繁琐,但按照以下步骤,您可以顺利完成安装。 安装环境 * 操作系统:Red Hat Linux 5.4 (32 位) * ...

    oracle 11g ,10g软件资源 百度云下载

    ### Oracle 11g与10g软件资源百度云下载相关知识点 #### 一、Oracle数据库简介 Oracle数据库是美国甲骨文公司的一款关系型数据库管理系统,在市场上占有重要的份额。Oracle数据库以其高度的安全性、可靠性和灵活性...

    Docker 拉取 oracle 11g镜像超详细配置.docx

    Docker 拉取 oracle 11g镜像超详细配置,包含从docker拉取oracle11g镜像到oracle11g配置,最后到PLSQL连接oracle11g容器的超详细步骤。

    windows下oracle11g数据泵自动备份脚本

    windows下oracle11g数据泵自动备份脚本含删除过期备份和使用方法 1、先建备份用的路径对象:(注:此处认为用来做备份的用户backupuser已经建好了,且已经有连接数据库的相应权限) sqlplus / as sysdba CREATE OR ...

Global site tag (gtag.js) - Google Analytics