删除job
exec dbms_job.remove(jobno);commit;
监控SQL对临时表空间的使用
select to_number(decode(sid, 65535, null, sid)) sid, operation_type operation,trunc(expected_size/1024) esize, trunc(actual_mem_used/1024) mem, trunc(max_mem_used/1024) "max mem", number_...
Oracle PSU
11.2.0.4 Patch Set Updates - List of Fixes in each PSU 1611785.1Oracle Recommended Patches -- Oracle Database (文档 ID 756671.1)数据库 PSU,SPU(CPU),Bundle Patches 和 Patchsets 补丁号码快速参考 (文档 ID 1922396.1)如何在Data Guard Physical Standby环境上安装Patchset、PSU 或 CPU (文档 ID 1577628.1)...
relink all后进行dbca操作遇到的诡异问题
在同一个虚拟机里装个多个版本的oracle数据库,出现的问题是:使用10.2.0.1版本的dbca建库后得到的是10.2.0.5的库。当时我就凌乱了,这是什么情况。后来想了想,10.2.0.1这个软件我更改过路径,是不是这个原因导致的呢?但是话说回来,我mv之后做了relink all操作呀?为了验证想法直接看dbca内容:看完后小伙伴惊呆...
通过dbca工具生成创建数据库的sql语句
dbca -silent -generateScripts -customCreate -templateName New_Database.dbt -gdbName ora11241. 进入相关目录 cd /u01/app/oracle/product/11.2.0.4/db_1/assistants/dbca/templates 2. 通过dbca生成相关脚本 dbca -silent -generateScripts -customCreate -templateN...
克隆安装oracle
主要步骤:1. Copy the binaries, using an OS utility.2. Attach the Oracle home.详细内容:1. Copy the binaries, using an OS utility. tar -cvf - <locDir> | ssh <remoteNode> "cd <remoteDir>; tar -xvf -" tar -cvf - dev_1 | ssh ora03 "cd /home/oracle; tar -xvf -...
通过响应文件进行静默安装
未完,待续。。。。。。
oraInst.loc
1. 包含内容 inventory目录路径(inventory_loc) 具有安装和升级Oracle软件权限的OS Group(inst_group)2. 所在位置 Linux: /etc/oraInst.loc Unix: /var/opt/oracle/oraInst.loc3. 示例 inventory_loc=...
OS Group
OS group DB System Privilege Authorized Operations Where Referenced oinstall none OS privileges to install and upgrade binaries inst_group variable i...
定时导出awr元数据脚本
-- crontab -l | grep databak/spool10 22 */8 * * /databak/spool/awr.sh-- awr.shsource /home/oracle/.bash_profilesqlplus / as sysdba
Dead Connection Detection(DCD)
DCD(死链接检测)是定期测试每个客户端连接,确保客户端仍可访问,并且该连接仍处于活动状态的功能。对于那些死链接会话,都将被终止(pmon)。
AWR元数据导出
SQL> @?/rdbms/admin/awrextr ~~~~~~~~~~~~~ AWR EXTRACT ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ This script will extract the AWR data for a range of snapshots ~ ~ into a dump file. The script willpr...