重建索引后是否自动分析表和索引(9i+10g+11g)
--9i库
SQL> select * from v$version where rownum<5;
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
PL/SQL Release 9.2.0.6.0 - Production
CORE 9.2.0.6.0 Production
TNS for HPUX: Version 9.2.0.6.0 - Production
--建测试表
SQL> create tabl...
如何将linux数据库用rman备份到远端win平台
如何将linux数据库用rman备份到远端win平台
将win下的共享目录挂载到linux下即可
#挂载windows共享目录
mount -o rw,uid=oracle,gid=oinstall,username=yallonking,password='oraking' //192.168.137.1/back_dir /tmp/back_dir
如果出现
[root@OELx64 ~]# mount -o rw,uid=oracle,gid=oinstall,username=yallonking,password='oraking' //192.168.137.1/back_dir /tmp/back_dir
mount error(12): Cannot al...
oracle 11gr2 删除节点最佳实践
oracle 11gr2 删除节点最佳实践
OS信息:
[grid@11grac1 ~]$ uname -a
Linux 11grac1 2.6.32-300.10.1.el5uek #1 SMP Wed Feb 22 17:22:40 EST 2012 i686 i686 i386 GNU/Linux
DB信息:
SQL> select * from v$version where rownum<5;
BANNER
------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/S...
oracle 11gr2 添加节点最佳实践
oracle 11gr2 添加节点最佳实践
OS信息:
[grid@11grac1 ~]$ uname -a
Linux 11grac1 2.6.32-300.10.1.el5uek #1 SMP Wed Feb 22 17:22:40 EST 2012 i686 i686 i386 GNU/Linux
DB信息:
SQL> select * from v$version where rownum<5;
BANNER
------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/S...
RAC 启动报错ORA-01078 ORA-01565 ORA-17503 ORA-15077
RAC 启动报错ORA-01078 ORA-01565 ORA-17503 ORA-15077
[oracle@rac1 ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 27 09:38:54 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DATA/ra...
ORACLE RAC如何正确配置数据库归档模式
ORACLE RAC配置归档模式一例
当前系统没有开启归档
[oracle@rac1 ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 27 10:16:27 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected.
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Old...
ORALCE安全之RAC配置Class of Secure Transport(COST)
ORALCE安全之RAC配置Class of Secure Transport(COST)
--参照文档
--Using Class of Secure Transport (COST) to Restrict Instance Registration in Oracle RAC [ID 1340831.1]
[oracle@rac1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
o...
ORACLE 10gRAC升级并打补丁一例
(零) RAC数据库升级(10.2.0.1.0->10.2.0.5.0)并打补丁(P12880299)
--原始库信息
SQL> select * from v$version where rownum<5;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Pro...
ORACLE 10G 打补丁一例
ORACLE 10G 打补丁一例
10g打补丁p13343471
--查看当前补丁情况
[oracle@rac1 OPatch]$ pwd
/opt/ora10g/product/database/OPatch
[oracle@rac1 OPatch]$ ./opatch lsinventory
Invoking OPatch 10.2.0.4.9
Oracle Interim Patch Installer version 10.2.0.4.9
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /opt/ora10g/product/database
Central Inventory : /opt/ora10g...
HP-Unix常用命令整理
HP-Unix常用命令整理
#/opt/ignite/bin/print_manifest |grep "OS mode" --查看操作系统位数
#model --查看主机型号
#ioscan -fnCprocessor --查看CPU个数
#print_manifest --查看主机硬件信息
#lanscan --系统内部网卡信息
#netstat -in --查看网卡IP地址
#ioscan –fnkC disk --查看内置硬盘/外置硬盘(LUN)的使用信息
#sar --sar 2 3 查看系统当前负载
#sar -u --查看cpu的负载
#sar -d --查看磁盘的负...