log_archive_dest_state_n=reset的含义
今天论坛中的一个朋友问及log_archive_dest_state_n=reset的含义:LOG_ARCHIVE_DEST_STATE_n 用于指定对应的归档目录的可用状态。RESET状态和DEFER状态功能相同。解释:日志传送服务将不传送redo 数据到LOG_ARCHIVE_DEST_n指定的位置,指示这个位置是有效的,但不使用它。RESET同时清除此位置有关的任何先前传输过程的error message。 [@more@]http://download-east.oracle.com/docs/cd/B14117_01/server.101/b10823/log_transport.htm#1230951Configuring Destinations with the LOG_ARCHIVE_DEST_n ParameterThe LOG_ARCHIVE_DEST_n ini
表空间配额和UNLIMITED TABLESPACE权限
<div id="sina_keyword_ad_area2" class="articalContent "><div>对于一个新建的用户,如果没有分配给unlimitedtablespace系统权限的用户,必须先给他们指定限额,之后他们才能在表空间中创建对象,限额可以是:</div><div>A、以兆字节或者千字节为单位的特定值</div><div>B、无限制的</div><div...
oracle 转义字符去掉下划线 _ 的使用方法
1,看以下结果 select * from test where login like '%CF_%';LOGIN--------------------------------------------------CF_wwwwwww4CF_wwwwwww5CF_wwwwwww6CF1CF2CF3因为_是转义字符 把CF1,CF2,CF3的结果也...
oracle追踪误操作DDL
生产环境经常遇到DROP、TRUNCATE、DELETE等误操作, 其中大部分影响较大的是DDL,11.2 设置ENABLE_DDL_LOGGING为true后,alert中会记录DDL操作的语句,但是没有详细信息: alter system set enable_ddl_logging = TRUE sid='*' scope=spfile; 12C中的开启ENA...
DIAG_ADR_ENABLED parameter in 11g
HiIn 11G DIAG_ADR_ENABLED is a default parameter , hence you wont find it in the sqlnet.ora file .For you to disable it , you need to explicitly specify in the sqlnet.ora file i.e DIAG_ADR_ENABLED =OFFRgdshttps://community.oracle.com/thread/1079709?start=0&tstart=0
DB_BLOCK_SIZE and DB_CACHE_SIZE in Oracle
DB_BLOCK_SIZE Parameter The DB_BLOCK_SIZE is used to specify the standard block size which is used for the system and temporary tablespaces. The DB_BLOCK_SIZE parameter in your initialization parameter file determines the size of your standard block size in...
致命的db_unique_name笔误引发的悲剧
故障现象:ORACLE DATAGUARD环境搭建完成后启动主库报告如下错误: Wed Feb 8 23:12:38 2012LGWR: Error 16047 creating archivelog file 'standby'Wed Feb 8 23:12:38 2012Errors in file /home/oracle/admin/port/bdump/port_lns1_1131.trc:ORA-16047: DGID mismatch between destination setting...
【DataGuard】ORA-16032: parameter destination string cannot be translated
ORA-16032 Attempting to Transfer Archive Logs to Standby DatabaseProblem Description-------------------You are attempting to setup a standby database and automate theprocess of transferring archive lo...
Oracle DBA命令参考——alter database
alter database:修改数据文件alter database datafile 4 offline;alter database datafile '/opt/oracle/datafile/users01.dbf' offline;alter database datafile '/opt/oracle/datafile/users01.dbf' resize 10...
Applying “Incremental Statistic” for Oracle Big Partition Table
In CBO, Statistic is critical important for Optimizer. Precise and timely statistics will truly reflect the data distribution and volume, and generate wiser SQL Execution Plan (SEP). After yea...
oracle 修改序列起始值
Oracle 序列(Sequence)主要用于生成流水号,Oracle EBS系统中是经常用到的。但是,有时需要修改序列初始值(START WITH)时,好多人凭感觉认为:Alter Sequence SequenceName Start With N。事实上,在Oracle Db中,修改序列没有这样的语法。没有这样的语法情况怎么办,有二种方法可以完成—— &...
Oracle10g 10.2.0.5 RAC一次恢复ORC、votedisk实战
在上次安装Oracle10g 10.2.0.5后发现在节点2主机重启HACMP后datavg的vg permission会被制成passive-only。详细处理过程请参看我之前的博客http://blog.itpub.net/29047826/viewspace-1265183/主机工程师给出的解决方案是重做datavg,不能通过程序或是脚本来修复该问题。看来之前创建的ASM和database要牺牲了,为了减少重...
EXPDP和IMPDP的比较详细使用说明
ORCALE 10G提供了新的导入导出工具,数据泵。Oracle官方对此的形容是:Oracle Data Pump technology enables Very High-Speed movement of data and metadata from one database to another.其中Very High-Speed是亮...
Create a secure application role
--创建应用角色 create role hr_read identified using hr.hr_read_check; --给角色赋权 grant select on scott.emp to hr_read;--创建角色认证过程(HR) CREATE OR REPLACE PROCEDURE hr.hr_read_check AUTHID CURRENT_USER IS BEGIN DBMS_SESSION.SET_ROLE('HR_READ') ; END; /--在sqlplus 中执行: SQL> declare i number; 2 begin 3 hr.hr_read_check; 4 select count(*) into i from hr.aa; 5 dbms_output.put_line(i); 6 end; 7 / select count(*) into i from hr.aa; * ERROR 位于第 4 行: ORA-06550: 第 4 行, 第 32 列: PL/SQL:
DBMS_NETWORK_ACL_ADMIN 包的使用
DBMS_NETWORK_ACL_ADMIN CREATE_ACL ADD_PRIVILEGE ASSIGN_ACL UNASSIGN_ACL drop_acl dba_network_acls使用
sqlldr 导入中文出现乱码解决方法
在oracle的环境变量中设置如下字符集:#export NLS_LANG=AMERICAN_AMERICA.ZHS16GBKexport NLS_LANG='SIMPLIFIED CHINESE_CHINA.ZHS16GBK'
oracle 时间字段自动更新问题
MySql的timestamp类型跟oracle里有很大不同 以前一直用oracle,今天用mysql建表,发现一些问题:在mysql里timestamp类型默认情况下为 不允许为空,并且默认值为current_timestamp最后发现MySql这么规定是有原因的:timestamp其实是MYSQL帮我们实现的一个updateTime类型一条新数据插入时,它会...
Partitioning Enhancements in Oracle Database 11g Release 1
http://www.oracle-base.com/articles/11g/partitioning-enhancements-11gr1.php#system_partitioningThis article uses simple examples to describe the partitioning enhancements in Oracle 11g Release 1.Extended Composite PartitioningInterval PartitioningSystem PartitioningRef...
Oracle分页查询中排序与效率问题解决方法详解
本文将结合作者近日工作中,在ORACLE数据库分页查询时,遇到一个小问题,为大家讲解如何解决Oracle分页查询中排序与效率问题。原始未分页查询Sql代码如下:select ROWNUM rn, t.id ID, o.name YYB,u.name XM, t.MC from tZDYSXt,tuser u,lborganization o where t.cjr=u.id and u.orgid=o...
11g 新特性—— Active Database Duplication
https://blogs.oracle.com/Database4CN/entry/11g_%E6%96%B0%E7%89%B9%E6%80%A7_active_database_duplication11g 新特性—— Active Database DuplicationBy Jian Zhang-Oracle on 三月 07, 2012简介---------Active database duplication功能是从11g开始引入的一个新功能,它是对比以前版本中的基于备份集...