OCP-1Z0-051-60
QUESTION NO: 60View the Exhibit and examine the structure of the CUSTOMERS and CUST_HISTORY tables. The CUSTOMERS table contains the current location of all currently active customers. TheCUST_HISTORY table stores historical details relating to any changes in the location of al...
日期和时间的存储与处理
关于日期和时间在数据库中经常用到,下面总结了一些这方面的知识。因为字符集对日期时间有影响,这个是我们首先要关注的,之前的文章中也简单的提到了(http://blog.itpub.net/29876893/viewspace-1627370/)SQL> select * from nls_session_parameters where rownum<4;PARAMETER-------------------------------------...
Oracle-1Z0-051-61
QUESTION NO: 61You created an ORDERS table with the following description:Exhibit: You inserted some rows in the table. After some time, you want to alter the table by creating thePRIMARY KEY constraint on the ORD_ID column.Which statement is true in this scenario?A. Yo...
重建口令文件
由于练习机模拟,误删了口令文件,所以不得不重建:SQL> exit从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options 断开C:\>sqlplus sys/manager@55 as sysdbaSQL*Plus: Release 11.2.0.1.0 Production o...
通过alert日志重建参数文件
当spfile损坏,而且没有了pfile文件和init.ora文件,则我们不得不重建参数文件:下面模拟参数文件损坏,删除了所有的参数文件:SQL> startup nomount;ORA-01078: failure in processing system parametersLRM-00109: ???????????????????????? '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/i...
客户端字符集
这部分是属于oracle全球化支持的内容,详细了解可以参考文档首先谈一下数据库字符集,我们用dbca建库的时,会让你选择数据库字符集,默认的就是基于操作系统的语言设置:[oracle@localhost ~]$ echo $LANG;zh_CN.UTF-8SQL> select userenv('language') from dual 2 ;USERENV('LANGUAGE')-----------...
客户端网络配置上的一点说明
这几天qq上很多朋友问及客户端网络配置问题,希望这篇文章能帮助一些朋友(之前也写过一篇文章关于用第三方工具连接数据库:http://blog.itpub.net/29876893/viewspace-1465317/)。首先说明的是数据库是单实例,数据库的连接方式是专有连接模式。SQL> select * from v$version where rownum=1;BANNER-------------------...
open阶段的一致性检验
oracle在open阶段时,需要进行一致性检验,然后才可以打开数据库,到底做了哪些检验呢? 下面会通过转储分析:SQL> select * from v$version where rownum=1;BANNER--------------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Pr...
ORA-00205
SQL> select * from v$version where rownum=1;BANNER--------------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionSQL> startup force;ORACLE 例程已经启动。Total System Global Area 422670336 bytesFixed...
一文教你看懂大数据的技术生态圈 Hadoop,hive,spark
一文教你看懂大数据的技术生态圈 Hadoop,hive,spark
关于技术分享的一点感悟
想想自大学以来接触的开发语言也不少了,开始启蒙的pascal,到后面的c,c++,c#,java,jsp,一直到了后面的各种J2EE框架,在平时也学习了oracle,mysql,mongo,都是略知皮毛,听起来是很丰富的样子。但是实际看来让自己能够踏踏实实怕胸脯说熟练精通的几乎没有。现在Oracle算不上精通,但是还是比较熟悉了,自己在开始工作的时候...
alter session set events 'immediate trace name controlf level 8'
控制文件的重要性不用多说,就像是数据库的神经系统,学习的过程中,深入分析控制文件很有必要,下面只是贴出dump文件,希望大家能深入研究:SQL> select * from v$version where rownum=1;BANNER--------------------------------------------------------------------------------Oracle Database 11g Enterprise Edi...
ORA-02449
关于这个错误:ORA-02449, 00000, "unique/primary keys in table referenced by foreign keys"// *Cause: An attempt was made to drop a table with unique or // primary keys referenced by foreign keys in another table.// *Action: Before performing the above operations t...
创建表对象时,oracle做了些什么?
我们通过10046事件来分析:[oracle@localhost ~]$ cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 5.5 (Tikanga)SQL> select * from v$version where rownum=1;BANNER--------------------------------------------------------------------------------Oracle Database 11g Enterpr...
冷备下模拟rm -rf *.dbf恢复案例
关于备份恢复一直是所有关系型数据库的重头戏。下面会介绍冷备数据库,并模拟破坏数据文件进行恢复数据库,并涉及到其他相关内容。[oracle@localhost ~]$ cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 5.5 (Tikanga)SQL> select * from v$version where rownum
初探oracle open初始化过程
[oracle@localhost ~]$ lsb_release -aLSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: EnterpriseEnterpriseServerDescription: Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)Release: ...
云和恩墨版Oracle Database 12c 最新体系结构图下载
云和恩墨版Oracle Database 12c 最新体系结构图下载
Metric Manager
这部分和awr,ash,addm构成了oracle性能监控的一整套体系。内容涉及很多,下面不能够全面详细介绍,希望有抛砖引玉的作用。[oracle@localhost ~]$ lsb_release -aLSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: EnterpriseEnterpriseServerDescriptio...
AWR ADDM
AWR(auto workload repository),本篇限介绍如何使用,关于统计信息可自行研究,对于statspack,不作介绍。awr属于sys用户,收集信息存储在SYSAUX表空间。有三类表:wri$-(i:internal 内部)-wrm$-(m:metadata 元数据)-wrh$-(h:histroy 历史)-我们从视图中查到的所有信息都是来自以上的表:dba_hist_wr_control视图创...
ASH
我们可以用第三方工具监控数据库,如toad,spotlight(我用的是这个,还不错),但是oracl提供的监测数据的工具不可忽视,学会应用会给监控数据带来便捷。下面介绍ASH.ASH:active session history我们可以查v$active_session_history(记录了活动session的历史信息),v$session_wait_history(记录了session等待的信息),...