Drop temp tablespace command hang in oracle 11g R2
昨天DB 磁盘空间预警空间不足,发现临时表空间扩展的非常之大,于是规划调整临时表空间换个磁盘路径,本来online switch temp tablespace 并不难,结果还是遇到小问题..
提供综合数据库运维服务与优化方案(不限Oracle MySQL PG GaussDB GoldenDB OceanBase等), 微信/Tel:(+86)134-365-60330
昨天DB 磁盘空间预警空间不足,发现临时表空间扩展的非常之大,于是规划调整临时表空间换个磁盘路径,本来online switch temp tablespace 并不难,结果还是遇到小问题..
ON single-instance 1, make sure asm diskgroup is avaliable Select name,total_mb,free_mb from v$asm_diskgroup where state=’CONNECTED’; 2, check current controlfile and using spfile show parameter control_files show parameter pfile 3, add new controlfile to spfile alter system set control_files='[original file]’,'[asm diskgroup name where new control file will stored]’ scope=spfile ; for example: alter system set control_files=’+OLD/ANBOB/controlfile/current.258.798205861′,’+NEW_DATA’ … Read more
this is shell script to backup mysql database, using mysqldump to dump all databases into separate files, and encrypt backup file using zip password option, Generate a collective file using tar, ftp to ftp server, to send email to DBA .
自己画了个从oracle 7及后续版本升级到oracle 12c 的升级路线图。 另存为下载查看效果良好。
With the annoucement of Oracle’s database support on RHEL6 and OEL6, they have decided to stop making ASMLIB for RHEL compatible kernels. ASMLIB is now only available if you are using Oracle Unbreakable Linux Kernel.But Recent events enabled Red Hat and Oracle to work togethe. Oracle ASMLib availability and support on Red Hat Enterprise Linux 6.
今天测式部门同事遇到的一个问题记录一下,开发库运行正常,同样的复制到测试库执行应用报错,
LINE/COL ERROR
——– —————————————————————–
59/5 PL/SQL: Statement ignored
59/23 PLS-00382: expression is of wrong type
EXP-00056: ORACLE error 24324 encountered
ORA-24324: service handle not initialized
ORA-07445: exception encountered: core dump [kgghstfel()+15] [SIGSEGV] [Address not mapped to object]
PROMPT List all SQL in the library cache cursor referencing a given table — Author: weejar — — you need to run this script either as SYS or — need to have relevant X$ proxy views created — I tested in oracle 11g it worked . undefine owner undefine table_name prompt accept owner prompt ‘Please … Read more
只是简单的记录主从的配置过程和一些常用排错方法 ,我本次安装使用的是mysql 5.6.16,和之前的老版本配置可能有些不同。
Next, let’s create the mysql user and group: groupadd mysql useradd -g mysql mysql create mysql soft and data files store dictroy. and install mysql mkdir -p /data/mysql tar zxvf mysql-5.5.36-linux2.6-x86_64.tar.gz mv mysql-5.5.36-linux2.6-x86_64 /data/mysql/ cd /usr/local ln -s /data/mysql/mysql-5.5.36-linux2.6-x86_64/ mysql scripts/mysql_install_db –user=mysql or (./mysql_install_db –user=mysql –basedir=/usr/local/mysql –datadir=/usr/local/mysql/data) Modify File and Directory Permissions cd /data/mysql/ chown … Read more
来模拟一种刚建的表空间,还没来的及备份,数据文件被删除,但archive log 都在时的恢复。 sys@ANBOB>create tablespace tbs_rm datafile ‘/oradata/anbob/tbs_rm01.dbf’ size 10m; Tablespace created. sys@ANBOB>conn anbob Enter password: Connected. anbob@ANBOB>create table test_rm tablespace tbs_rm as select rownum id from dual connect by levelselect * from test_rm; ID ——————– 1 … 9 10 破坏数据文件,使用mv [oracle@db231 ~]$ mv /oradata/anbob/tbs_rm01.dbf /oradata/anbob/tbs_rm01_dbf sys@ANBOB>alter system flush buffer_cache; System altered. anbob@ANBOB>select * from … Read more
Oracle has the BBED utility (block browser and editor) is is all releases of Oracle, from Oracle7 to Oracle10g,In Oracle 11g, BBED becomes unavailable but if you search in the ins_rdbms.mk makefile,…
standby site 的ABMR没有成功, 后来是怀疑buffer header中有mrec 的block, 现在我接着测试如果buffer header 中没有此类block,ABMR是否成功?以前用bbed 标记corrupt block的方式, 如果有corrupt block时rman backup 又会怎么样?
Automatic block repair allows corrupt data blocks to be automatically repaired as soon as the corruption is detected. This feature reduces the amount of time that data is inaccessible due to block corruption.
今天刚搭建的一个Data guard环境,一开始在日志传输时遇到ora-12592错误,ORA-12592: TNS:bad packet
一个不错的oracle AWR 报告本地文件格式化chrome浏览器插件,看似用js完成,有一些特性非常不错,拿出来分享,作者Tyler Muth –观看 需要翻墙视频介绍 下载下载地址1下载地址2 安装方法 1,下载AWR-Format.crx文件2,打开chrome 谷歌浏览器,我这里版本是28,点击右上角的按钮或显示菜单,找工具–扩展程序 打开扩展程序页面3,用鼠标把1 下载的文件托进浏览器的这个页面,增加插件,默认是启用,勾选插件下的“允许访问文件网址”4,右击本地的AWR html文件,使用google chrome 打开,体验一下吧 — update 如果新版本的chrome 不支持, 可以修改crx为.rar ,解压文件夹,修改manifest.json 的manifest_version 为 3或更高,chrome修改为开发者模式,加载已解压的文件夹即可。 执行时可能报错 Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source 当前页面的 CSP策略禁止执行字符串形式的 JavaScript。 因为awr-format.js中使用了, 在1606行,eval() 是 XSS 攻击最大入口。修改如下 //var rowVal = eval(‘sqlStatsCombined[i].’+column);var rowVal = sqlStatsCombined[i][column]; 重新加载就可以。
当你在windows NTFS文件系统操作大的数据文件时,有时会遇到下面的错误:
The operating system returned error 665 (The requested operation could not be completed due to a file system limitation)
# crsctl start has
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
Prior to 10g you can use a unix debugger like gdb, adb or dbx to attach to a shadow process and dump the system state using the function ksudss which is the subroutine in the Oracle source code which does the same.
If you need to recovery the dead transaction record of more than 100(_cleanup_rollback_entries parameter value), PMON only responsible for cleaning up dead session, which is responsible for the SMON recovery dead transaction.