关于直方图中关于字符类型的ENDPOINT_VALUE字段的转换
今天看书(基于ORACLE的SQL优化)看到关于直方图dba_histograms ENDPOINT_VALUE字段的计算问题所以记录如下:1、数字类型的ENDPOINT_VALUE没有什么悬念就是其本生的值2、字符类型的ENDPOINT_VALUE计算相对复杂,是取字符的头15的字节经过16进制DUMP后在转换为十进制进行的测试如下:SQL> select count(*),...
ORACLE11GR2 RAC DATABASE+STANDLONE DATAGUARD配置摘要
ORACLE11GR2 RAC DATABASE+STANDLONE STANDBY配置摘要一、目标为集群数据库配置DATAGUARD,同时实现SWITCH OVER,同时DATAGUARD端并...
MONGODB使用MONGDODUMP备份来搭建备份集
准备加入一个备分节点,如下操作:使用MONGODUMP进行一致性备份./mongodump -o /ora11g/monbak --oplog -u moadm1 -p gelc123同样的首先进行恢复 ./mongorestore --oplogReplay --port 27030 /ora11g/monbak/ 加入OPLOG集合use localdb.createCollection("oplog.rs",{"capped":true,"size":100000000})...
MONGODB 回滚失败
MONGODB 回滚失败:{ "_id" : 5, "name" : "192.168.190.7:27018", &nbs...
一次SQL分析
问题描述:类似语句如下:with t as (select trans_code, trans_amount, direction, settle_channel_api from acctrans_account_log where account_no = '20130606000000589266' and raw_add_time>= sysdate-1000 and raw_add_time<sysdate ),t2 as (...
About Oracle WITH clause
About Oracle WITH clauseStarting in Oracle9i release 2 we see an incorporation of the SQL-99 “WITH clause”, a tool for materializing subqueries to save Oracle from having to re-compute them multiple times.The SQL “WITH clause” is very similar to the use of Global temporary tables (GTT), a tec...
使用SPM和STA进行固定执行计划
在实际的工作中可能遇到SQL执行计性能划退化的可能性,除了研究退化原因以外,我们可能需要固定其执行计划 一、如下列子展示如果在多个执行计划中使用SPM选择正确的执行计划,SPM默认是不会自动建立BASELINE的。但是可以修改参数开启自动建立(optimizer_capture_sql_plan_baselines)但是建议不要开启,如果开启自...
smon_scn_time ORA-00600 ktspfupdst-1
处理流程如下:查看数据库日志报错:ORA-00600: internal error code, arguments: [ktspfupdst-1], [], [], [], [], [], [], [], [], [], [], []Incident details in: /home/oradba/oracle/diag/rdbms/yjfcdbp/yjfcdb/incident/incdir_192162/yjfcdb_smon_17351_i192162.trcUse ADRCI or Support Workbench to pa...
11.2.0.1配置DATAGUARD遭遇ORA-12514
今天同事配置了一套DATAGUARD但是配置好后备库没有RFS进程,查看日志报错Error 12154 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'bossdbd'Error 12154 attaching to destination LOG_ARCHIVE_DEST_2 standby host ...
ORACLE 10G中闪回汇总
1、查看当前SCN并且转换为时间select scn_to_timestamp(dbms_flashback.get_system_change_number) from dual;select timestamp_to_scn(to_date('2013-08-2 10:01:00','yyyy-mm-dd hh24:mi:ss')) from dual;2、开启和使用flashback database--必须开启归档--必须设置参数 db_flashback_retention_target&...
Possible fixes for the TNS-12560 include:
Possible fixes for the TNS-12560 include:
转载 MELTAINK 一篇HANGANALZE文章
Interpreting HANGANALYZE trace files to diagnose hanging and performance problems for 9i and 10g. (文档 ID 215858.1)WHY USING HANGANALYZEA “true” hang in the Oracle database can be defined as an internal deadlock or a cyclical dependency between two or more processes. When dealing with ...
ORACLE 受限RESTRICT模式,只读READ ONLY模式,静默QUIESCE模式,延迟SUSPEND模式解释
一、受限RESTRICT模式关于ORACLE RESTRICT模式,以及START OPEN RECOVER 说明如下:Restricting Access to an Instance at StartupYou can start an instance, and optionally mount and open a database, in restricted mode so that the instance is available onlyto administrative personnel (not ...
关于ORACLE RESTRICT模式,以及START OPEN RECOVER
关于ORACLE RESTRICT模式,以及START OPEN RECOVER 说明如下:Restricting Access to an Instance at StartupYou can start an instance, and optionally mount and open a database, in restricted mode so that the instance is available onlyto administrative personnel (not general databas...
关于UPDATE中关联查询的执行时间考虑
update testj3 set object_id = (select USER_ID from testj2 where testj3.owner = testj2.username)考虑如上的语句,如何估算其时间...
EXP COMPRESS以及EXP/IMP EXPDP/IMPDP导入表结构注意
关于EXP COMPRESS参数一直对这个参数有些疑惑。当然此参数一定不是所谓的压缩备份文件的空间,而它的解释为COMPRESS import into one extent字面意思为把所有的EXTENT压缩到INIT 分区中。但是这个实际上这个只在数据字典管理的中生效。但是在本地管理表空间中实际initial 也是有用的但是他不会分配到一个EXTENT...
REMOTE_LOGIN_PASSWORDFILE参数和ORAPW密码文件
俗话说 万丈高楼从地起,从业ORACLE 7年多后,我重新开始看基础类容,将列出一些DBA容易忽视的类容,并且做一些笔记和实验和大家共享。关于REMOTE_LOGIN_PASSWORDFILE参数文件:REMOTE_LOGIN_PASSWORDFILEare:■ NONE: Setting this parameter to NONE causes Oracle Database to behave as if the password file does ...
关于ORACLE操作系统认证和ORAPWD密码文件认证SYSDBA权限
首先注意如下文档说明: Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication. ...
我这三十年,与各位共勉
转眼间已经是接近30岁的年龄,大家都30而立,我不确定我是否立起来了,虽说成家了但是说立业视乎还有点过早。和很多从事IT行业的朋友一样,从进入大学开始就广泛的和电脑打交道,当然大学使用电脑过多的只是玩游戏,没有太多的心机和圆滑,有的只是直率和仅有一些技术而已。 ...
11gR2关于延时段建立,和初始化分区段8M的说明
11.2.0.1Deferred segment creationWhen creating a nonpartitioned heap-organized table in a locally managed tablespace, table segment creation is deferred until the first row is inserted11.2.0.3New default first extent size for partitioned tables improves performanceThe default size of the first...