Oracle
文章平均质量分 69
andysweet6
这个作者很懒,什么都没留下…
展开
-
如何给oracle数据库做健康检查
Scope and Application1. Parameter file2. Controlfiles3. Redolog files4. Archiving5. Datafiles 5.1 Autoextend 5.2 Location6. Tablespaces 6.1 SYSTEM Tablespace 6.2 SYSAUX Tablesp转载 2012-03-26 10:26:06 · 3067 阅读 · 0 评论 -
oracle使用nfs
最近使用expdp,平台aix6.1,库10.2.0.4,rac报了个ORA-39001: invalid argument valueORA-39000: bad dump file specificationORA-31641: unable to create dump file "/orabak/xxx.dmp"ORA-27054: NFS file system wh原创 2011-12-12 16:34:42 · 3535 阅读 · 0 评论 -
rman catalog库升级
公司NBU的rman catalog库升级,11.2.0.1升至11.2.0.2,我大约2小时升级好了,然后使用NBU的同事发了个邮件,报了个错:RMAN> register database;database registered in recovery catalogstarting full resync of recovery catalogRMAN-005原创 2011-12-01 22:30:33 · 783 阅读 · 0 评论 -
查看表空间使用率的一个SQL
SELECT D.TABLESPACE_NAME, SPACE||'M' "SUM_SPACE(M)", BLOCKS "SUM_BLOCKS", SPACE - NVL (FREE_SPACE, 0)||'M' "USED_SPACE(M)", ROUND( (1 - NVL (FREE_SPACE, 0) /原创 2011-10-26 09:24:32 · 464 阅读 · 0 评论 -
LVM裸设备建库oracle10g
[root@oel4 ~]# fdisk /dev/sdd\> [root@oel4 ~]# fdisk /dev/sddDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF diskla原创 2011-07-24 13:14:06 · 1606 阅读 · 0 评论 -
oracle EMCA
创建一个EM资料库 emca -repos create重建一个EM资料库 emca -repos recreate删除一个EM资料库 emca -repos drop配置数据库的 Database Control emca -config dbcontr原创 2011-07-24 13:09:11 · 1134 阅读 · 0 评论 -
数据迁移solaris10x86到solaris10SPATC
有套数据库,主机扩容,要迁移数据库。solaris10x86到solaris10SPATC。平台不同。 数据量1T左右, 用transport_tablespace来做。 之间带宽100M,速度太慢,申请提高到1000M,传datafile快了很多。原创 2011-07-22 10:22:48 · 305 阅读 · 0 评论 -
数据迁移hp-ux到aix
有套系统数据库要迁移,hp-ux到aix。 计划使用原创 2011-07-22 10:14:37 · 691 阅读 · 0 评论 -
ORACLE 手动建库
1.切换环境变量export ORACLE_SID=liu2.创建pfile$ORACLE_HOME/dbs/init.ora 用 cat init.ora | grep -v ^# > initliu.ora db_name=liu db_files = 80 # SMALL db_file_multiblock_read_count = 8 # SMALL原创 2011-06-21 09:24:00 · 523 阅读 · 0 评论 -
AIX 挂载nfs提示vmount: Not owner
exp到一半,断掉了发现nfs磁盘也不见了mount -o rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,vers=3,timeo=600 172.xx.xx.xx:/orabak /orabak就报了vmount: Not owner 查了google, 问题描述:Linux 服务器上共享了/nfs 这个目原创 2011-12-19 10:03:30 · 4778 阅读 · 0 评论 -
使用force扩容asm_diskgroup
案例描述:同事在rac上扩asm磁盘,由于没有修改hdisk的reserve_policy属性,导致另外一个节点看不到磁盘,而能看见磁盘的节点也无法使用节点。 节点1Last unsuccessful login: Mon Dec 5 19:47:44 2011 on ssh from 172.20.xxx.xxxLast login: Mon Dec 5 20:52:51原创 2011-12-22 09:17:44 · 1097 阅读 · 0 评论 -
lsnr报错解决
今天做实验,报了个错:[oracle@oel4 admin]$ lsnrctl startLSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-APR-2011 09:26:02Copyright (c) 1991, 2005, Oracle. All rights reserved.Starting /u01/app/原创 2011-12-22 09:23:14 · 628 阅读 · 0 评论 -
非归档redo损坏的加_allow_resetlogs_corruption参数打开数据库
Last login: Sun Feb 26 11:03:55 2012 from 128.192.0.254[root@db ~]# pwd/root[root@db ~]# ps -ef | grep ora_root 3284 2558 0 02:49 pts/0 00:00:00 grep ora_[root@db ~]# su - oracle原创 2012-03-07 14:58:25 · 1381 阅读 · 0 评论 -
使用Dbms_Redefinition转换普通表-》分区表
SQL> CREATE TABLE unpar_table ( 2 id NUMBER(10), 3 create_date DATE, 4 name VARCHAR2(100) 5 ); Table created.SQL> ALTER TABLE unpar_table ADD ( 2 CONSTRAINT unpar_table_p原创 2012-02-25 18:39:51 · 425 阅读 · 0 评论 -
何时重建index
1- Find indexes having height(blevel+1) > 4 i.e. Indexes having BLEVEL > 3SQL> select owner,index_name,table_name,blevel from dba_indexes where BLEVEL>3 2-deleted entries represent 20% or mo原创 2012-02-23 14:41:39 · 495 阅读 · 0 评论 -
sqlplus中的set和col命令
SQL> set timing on; //设置显示“已用时间:XXXX” SQL> set autotrace on-; //设置允许对执行的sql进行分析 SQL> set trimout on; //去除标准输出每行的拖尾空格,缺省为off SQL> set trimspool on; //去除重定向(spool)输出每行的拖尾空格,缺省为off原创 2012-02-23 13:30:17 · 7079 阅读 · 0 评论 -
利用 Oracle 11g 技能学习 DB2 9.7 for Linux, UNIX and Windows
系统结构概述首先,我们需要理解 Oracle 使用的架构以及它与 DB2 的不同之处。图 1 展示了 Oracle 的系统结构。将该图与图 2 进行比较,后者显示了 DB2 的系统结构。在阅读本文的时候,为便于理解,可以参照这两个图。图 1. Oracle on Linux, UNIX, and Windows 的系统结构图 2. DB2 on Linux,转载 2011-12-25 01:15:43 · 2159 阅读 · 0 评论 -
Oracle 11 调优方面做的一些改进
Oracle 11 在调优方面做了一些改进。Oracle 将以下方面的调优自动化了: Redo Logfile Sizing Advisor —— 此特性推荐重做日志文件的最佳大小,从而避免因频繁出现的检查点而导致过多的磁盘 I/O。 Automatic Checkpoint Tuning —— Oracle 数据库现在可以自调优检查点,从而取得良好的恢复速度,同时降低对正常吞吐量的影响。转载 2011-12-25 01:10:01 · 861 阅读 · 0 评论 -
RHEL AS4 上oracle10gR2 静默安装
先按手册配好配置好参数。。。[oracle@oel4 ~]$ /mnt/runInstaller -record -destinationFile /tmp/install_database.rspStarting Oracle Universal Installer...Checking installer requirements...C原创 2011-12-23 23:24:59 · 822 阅读 · 0 评论 -
LVM裸设备建库redhat
[root@oel4 ~]# fdisk /dev/sdd\> [root@oel4 ~]# fdisk /dev/sddDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain原创 2011-12-22 09:28:12 · 671 阅读 · 0 评论 -
lsnr报错解决
今天做实验,报了个错:[oracle@oel4 admin]$ lsnrctl startLSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-APR-2011 09:26:02Copyright (c) 1991, 2005, Oracle. All rights reserved.Starting /u01/app/or原创 2011-06-21 09:21:00 · 658 阅读 · 0 评论