一次oracle数据跨平台迁移过程
源库环境: 操作系统 suse linux数据库 oracle 10g 10.2.0.1存储 IBM DS4500目标库环境: 操作系统 AIX 5.3.009数据库 oracle 10.2.0.1存储 IBM DS4500主机 IBM P550/P52010.150.64.30方案原理:在目标库建立好物理环境,然后使用oracle 10g 的DATAPUMP工具对数据的逻辑结构导出,再导入到目标库。oracle工程师: luda实施具体过程:在suse linux 上 切换到oracle用户按顺序执行以下命令:/*登陆数据库*/ Sqlplus '/as sysdba'/*创建expdp的存放目录,并给予system用户存放目录的读写权限*///cd /opt
oracle升级指南(4)11g 升级指南
11.1.0.X.011.1.0.X.0 TO 11.1.0.6.0The BASE release of Oracle 11g Release 1 is 11.1.0.6.11.1.0.X.0 TO 11.1.0.7.01. Install the 11.1.0.7.0 patchset on top of the 11.1.0.6.0 ORACLE_HOMEPatchset number is : 6890831Patch 68908312. Finish the post installation steps as per the patchset README (patch_note.htm).REFERENCE:Availability and Known issues for 11.1.0.7 Note 738538.111.1.0.X.0 TO 11.2.0.1.01. Install 11.2.0.1.0 softwareThe software can be downloaded from the following link :http://www.oracle.c
oracle升级指南(3)10g 升级指南
10.1.0.X.010.1.0.X.0 TO 10.1.0.3.01. Install the 10.1.0.3.0 patchset on top of the existing 10.1.0.X.0 ORACLE_HOMEPatchset number is : 3761843Patch 37618432. Finish the post installation steps as per the patchset README (patch_note.htm).REFERENCE: Known issues and alerts affecting 10.1.0.3 Note 280554.1 List of fixes added in 10.1.0.3 Note 280552.110.1.0.X.0 TO 10.1.0.4.01. Install the 10.1.0.4.0 patchset on top of the existing 10.1.0.X.0 ORACLE_HOMEPatchset number is : 4163362Patch 41633622. Fi
oracle升级指南(2)9I升级指南
9.2.0.X.X 9.2.0.X.0 TO 9.2.0.3.01. Install the 9.2.0.3.0 patchset on top of the existing 9.2.0.X.0 ORACLE_HOMEPatchset number is : 2761332Patch 27613322. Finish the post installation steps as per the patchset README (patch_note.htm).REFERENCE:Known issues and alerts affecting 9.2.0.3Note 246001.1List of fixes added in 9.2.0.3 Note 245939.19.2.0.X.0 TO 9.2.0.4.01. Install the 9.2.0.4.0 patchset on top of the existing 9.2.0.X.0 ORACLE_HOMEPatchset number is : 3095277Patch 30952772. Finish the post
oracle升级指南(1)8I升级指南
Applies to:Oracle Server - Standard Edition - Version: 8.1.7.0 to 11.2.0.2 - Release: 8.1.7 to 11.2Oracle Server - Enterprise Edition - Version: 8.1.7.0 to 11.2.0.2 [Release: 8.1.7 to 11.2]Information in this document applies to any platform.GoalThis article provides an upgrade reference list for most available Oracle Database versions, including download information, patch numbers, and links to Metalink articles with detailed information.Solution NOTE : Downloading Patchsets requires a My Or
aix下安装oracle10g遭遇em错误
There are two possible methods for adding in Enterprise Manager. You can use the dbca, or you can use a command line tool called emca. I will be using emca, but before I do, I will show you some common errors you will want to avoid as seen through dbca. The first error to look at is here:You would think that with a GUI tool like dbca, Oracle would check for that condition before running the scripts to add in the repository, and either fail first or make the necessary change for you. Rather than
遭遇bug 监听。
TNS-12542: TNS:address already in useTNS-12560: TNS:protocol adapter error TNS-00512: Address already in use Linux Error: 125: Address already in use系统是suse linux , oracle 10.2.0.1监听无法查看状态,无法停止,无法删除。查看端口 lsof -l | grep 1521发现后台有监听在跑,kill -9 杀掉进程后还是无法操作监听。nestat -a |grep 1521发现不少客户端占用端口1521.metakink 查询为bug。重启生产库系统,监听就能启动,解决办法 升级。[@more@]
mysql的备份
在linux下的mysql在刚安装时候的默认用户都是root导出的语句mysql -uusername -ppassword -hlocalhost database_name > name.sql导入的语句mysql -uusername -ppassword -hlocalhost database_name < name.sql[@more@]mysql
手动设置SGA
默认情况下oracle的sga都是自动的,其中涉及的为sga_target这个参数---------------------------------------------------------那么你有时候要设置sga_target这个参数的时候,你必须注意一个参数首先在sqlplus中show parameter sga确定sga_max_size的大小比你要设置的sga_target还要大,否则就需要在$ORACLE_HOME/dbs中修改init_SID.ora,在里面添加sga_max_size=*******最好是设置为字节~~~当然也许你会以M为单位,但是这里建议以字节为单位。字节计算的麻烦,你可以在sqlplus下计算比如你要设置800M的sga_max_size,那么这800m的字节数
expdp、impdp在AIX错误
报错如下:ORA-31626: job does not existORA-31637: cannot create job SYS_EXPORT_SCHEMA_01 for user systemORA-06512: at "SYS.DBMS_SYS_ERROR", line 95ORA-06512: at "SYS.KUPV$FT_INT", line 606ORA-39080: failed to create queues "" and "" for Data Pump jobORA-06512: at "SYS.DBMS_SYS_ERROR", line 95ORA-06512: at "SYS.KUPC$QUE_INT", line 1550ORA-01403: no data found这种错误通常都是由于Oracle软件升级之后和库不一致产生的,需要重新执行catalog.sql
行迁移的解决办法
当往数据库中插入(INSERT)数据的时候,块中的自由空间会减少;当对块中已经存在的行进行修改(UPDATE)的时候(使记录长度增加),块中的自由空间也会减少。DELETE语句和UPDATE语句会使块中的自由空间增加。当使用DELETE语句删除块中的记录或者使用UPDATE语句把列的值更改成一个更小值的时候,Oracle会释放出一部分自由空间。释放出的自由空间并不一定是连续的。通常情况下,Oracle不会对块中不连续的自由空间进行合并。因为合并数据块中不连续的自由空间会影响数据库的性能。只有当用户进行数据插入(INSERT)或者更新(UPDATE)操作,
随便写的
我不是一个很有素质的人,但是人总是因人而变的。只想写点oracle的学习过程,因为除了oracle,我找不到很多东西。但是oracle真的占用了我几乎除了休息的时间。大三那年很傻很天真,我毅然从思科的np班逃出来,觉得学数据库是对的,老谭当时是教我们系的网络技术,他当时给了我决定我这些年来生活的建议,学习数据库,之后我就在数据库的资料中度过了大三大四。oracle要求:英文良好,四级以上吧,这样阅读文档遇到的阻碍会小点。数学基础要好,算法。数据结构和C。非常可笑的是,我大学前2年的数据结构和C都是挂了,可是我在课程设计上 我
logfile 小解
我们知道Oracle里联机日志文件(Online redo logfile)循环记录了数据库所有的事务(transaction)。它的大小、个数和存储位置对数据库性能和恢复也是有重要影响的。本文总结一下关于redo logfile的一些内容。 一、redo logfile的简单介绍 它一般有大小相同的一组文件构成。我们可以查看数据库视图v$logfile知道它的个数和存储位置。 SQL > select * from v$logfile; 查看数据库视图v$log知道它当前的状态。 SVRMGRL> select * from v$log; 一个时间只有一组logfile group是工作状态(current), redo logfile满了后会自动切换到下一个
重构控制文件遭遇的错误
SQL>alter database backup controlfile to trace as '/backup/cc';vi ccyou find where start as START NOMOUNTthen copy them to create.sql:CREATE CONTROLFILE REUSE DATABASE "TEST" NORESETLOGS ARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 292LOGFILE GROUP 1 ( '/oracle/oradata/TEST/onlinelog/o1_mf_1_65ppqt6d_.log', '/oracle/flash_recovery_area/TEST/onlinelog/o1_mf_1_65ppr0pf_.log' ) SIZE 50M, GROUP 2 ( '/oracle/oradata/T
关于oracle里的v$sga
SQL> show sgaTotal System Global Area 638369684 bytesFixed Size 73620 bytesVariable Size 217284608 bytes Database Buffers 419430400 bytesRedo Buffers 1581056 bytesSQL> Fixed Size:oracle 不同版本下可能不一样,对于确定环境是一个固定的值,里面存储了SGA 各部分组件的信息,是引导建立SGA的区域。Variable Size:包含了shared_pool_size、java_pool_size、large_pool_size 等池同时每个控制文件占用256bytes Variable SizeDatabase Buffers:9i以后包含db_cache_size、db_keep_cache_size、db_recycle_cache_size、 db
一次关于redo file的操作和心得体会
环境:AIX 6.1ORACLE 11G 02===========================================================SQL> /MEMBER--------------------------------------------------/oracle/oradata/FTDATA/onlinelog/o1_mf_3_676yzm37_.log/oracle/flash_recovery_area/FTDATA/onlinelog/o1_mf_3_676yzs8n_.log/oracle/oradata/FTDATA/onlinelog/o1_mf_2_676yz6to_.log/oracle/flash_recovery_area/FTDATA/onlinelog/o1_mf_2_676yzdyh_.logMEMBER--------------------------------------------------/oracle/oradata/FTDATA/onlinelog/o1_mf_1_676yytol_.lo
oracle调优之rac调优概念
1、CPU和wait time调节尺寸 当在调节system时,比较系统的CPU time 和wait time是十分重要的,从而确定在相应时间中多少是用于有效的工作时间,多少是在等待由其他进程占用的资源。 从一般规律来看,wait time占主要部分的系统比CPU time占主要部分的系统更需要调节。另一方面,CPU的大量使用可能是由不好的SQL写操作造成了。 尽管CPU time与wait time的比率总是随着系统装载的增加而趋于减小的,wait time的急剧增加是存在冲突的表现,必须被有效的处理。 给node增加更多的CPUs或是给cluster增加nodes,在资源竞争中提供的b
share pool 、library cache、dictionary cachel AND LRU table (one)----library cache、dictionary cachel
library cache最主要的功能就是存放用户提交的SQL语句、SQL语句相关的解析树(解析树也就是对SQL语句中所涉及的所有对象的展现)、执行计划、用户提交的PL/SQL程序块(包括匿名程序块、存储过程、包、函数等)以及它们转换后能够被Oracle执行的代码等。为了对这些内存结构进行管理,library cache中还存放了很多控制结构,包括lock、pin、dependency table等。library cache也存放了很多的数据库对象的信息,包括表、索引等。有关这些数据库对象的信息都是从dictionary cache中获得的。如果用户对library cache中的对象信息进行了修改,比
AIX5.2下 dbconsole启动错误解决办法
解决步骤 一先查看日志1.$dateThu Aug 17 16:08:57 BEIDT 20102.$export TZ=GMT-93.$cd $ORACLE_HOME/bin$./emctl resetTZ agent根据提示用sys/sysman执行相关语句SQL> alter session set current_schema = SYSMAN;Session altered.SQL> exec mgmt_target.set_agent_tzrgn('p630b:3938','+09:00')PL/SQL procedure successfully completed.SQL> select sysdate from dual;4.$emctl start dbconsole 成功.5.$date Thu Aug 17 16:08:57 GMT 2010[@more@]
一次数据库性能调优报告
1 10.*********(单实列)存在的问题:1. 业务高峰期响应慢,处理步骤如下所示,1.1 创建如下索引:create index idx_ZZJGDM_20100617_sh on TAX_SI_ZZJGDM_20100617(sh,aac001) online tablespace IND_DATAEXCHANGE;create index idx_F_KBH1_aac001 on F_KBH1(aac001,ekc092) online tablespace IND_DATAEXCHANGE;create index idx_iaa2_aac001 on iaa2(aac001) online tablespace DATAEXCHANGE;create index idx_SBDI_BANKFEE_sblsh on SBDI_BANKFEE(sblsh,sbbm) online tablespace IND_SIBUSI;create index idx_ic13_aad124 on ic13(