
oracle
文章平均质量分 78
大恒
从开始到现在,一直追随着IT的人
展开
-
Chapter 04–Creating a Database
1,OFA 数据库安装目录规范(参考联机文档)2,authentication methods (认证):local database administration:通过操作系统认证的条件必须是oracle这样的用户登录到操作系统,也就是说oracle是属于dba组里的用户。其他普通用户登录进来如果打conn / as sysdba 是通不过认证的,要输入sys密码,使用口令文件认证,口令转载 2011-11-27 23:28:47 · 521 阅读 · 0 评论 -
14-Managing users
1,Objectives .Create new database users .Alter and drop existing database users .Monitor information about existing users2,Users and Security .Account locking .Default tablespace .Tempo转载 2011-12-03 22:54:41 · 614 阅读 · 0 评论 -
13 - Managing Password Security and Resources
1,Objectives .Manage passwords using profiles .Administer profile .Control use of resources using profiles .Obtain information about profiles,passdord managemnet and resources2,Profiles .转载 2011-12-03 22:51:10 · 609 阅读 · 0 评论 -
11 Managing Tables
Chapter 11 Managing TablesAfter completing this lesson, you should be able to do the following:★ Identify the various methods of storing data★ Outline Oracle data types★ Distinguish转载 2011-12-01 09:50:51 · 1091 阅读 · 0 评论 -
Using Data Dictionary and Dynamic Performance Views
Using Data Dictionary and Dynamic Performance ViewsBuilt-In Database ObjectsOther objects created with the database:• Data dictionary• Performance tables• PL/SQL packages• Database event t转载 2011-11-30 15:48:22 · 1607 阅读 · 0 评论 -
10--Managing Undo Data
Managing Undo DataManaging Undo Data• There are two methods for managing undo data:– Automatic Undo Management– Manual Undo Management• The term undo was known as rollback in previousversi转载 2011-11-30 15:46:42 · 1044 阅读 · 0 评论 -
Chapter 09–Storage Structure and Relationships
1,table,index最少对应一个segments,对于tablepartition 一个partition对应一个segment2,entents是逻辑上连续的blocks3,oracle存储的单位block,是操作系统块的整数倍,在表空间一级规定(STRINGS spfileray.ora |grep -iDB_BLOCK_SIZE,标准是8k,可以是2、4、8原创 2011-11-27 23:15:14 · 845 阅读 · 0 评论 -
tuning 11--SQL Statement Tuning
--《cost based oracle foundamentals》 --optimizer_features_enable show parameter optiselect * from v$version;--sql plan management--diagnostic toolsstaspackexplain plansql trace and t原创 2011-11-27 22:51:29 · 644 阅读 · 0 评论 -
开启关闭、操作日志文件alter.LOG trace.LOG
1,参数文件在目录$ORACLE_HOME/dbs下面2,startup启动按照以下顺序查找参数文件spfileSID.ora-spfile.ora-initSID.ora,若想改变参数文件启动,可这样startup pfile=$ORACLE_HOME/dbs/abc123.ora,指定pfile,不能指定spfile。因为spfile is better than pfile3转载 2011-11-27 23:30:04 · 4684 阅读 · 0 评论 -
Chapter 05–Using Data Dictionary and Dynamic Performance.txt
data dictionarystored in the system tablespaceowned by the user sysread-onlywhen DDL statement is executed由base tables(sql.bsq)和data dictionary views(catalog.sql)构成静态:USER_XXXALL_XXX转载 2011-11-27 23:27:04 · 454 阅读 · 0 评论 -
Chapter 06–Maintaining the Control File
mount的时候读取control file数据库运行中也需要control file只要数据文件与联机重做日志文件不丢,其他还是可以恢复的备份控制文件在不同的磁盘(至少两个)备份 control file(先修改alter system 在初始化参数文件中添加指定一个ctl文件,再shutdown 再cp,如果是使用pfile那么手动修改初始化参数文件,不用alter)转载 2011-11-27 23:25:56 · 342 阅读 · 0 评论 -
Chapter 08–Maintaining Tablespace and Data files
1, oracle stores data logically in tablespaces and physically in data files2,segment可以跨datafile 而extent不行3,tablespace 分为3种:permanent(系统+用户)temporary (比如排序操作,会把结果临时存放在这里,9i版本如果没有指定临时表空间会转载 2011-11-27 23:24:04 · 480 阅读 · 0 评论 -
Chapter 07–Maintaining Oline Redo Log Files
1,至少有两个联机重做日志文件(成员),分别属于两个联机重做日志文件组(至少有2组,每组至少有一个文件),一般使用3组每组2个,建议多组,同组的成员放在不同的磁盘上,即安全又提高性能2,同组内的多个文件(Mmultiplexed)内容一模一样,分配同一个编号LSN(log sequence number)写满换组(或者强行促发)称为log switch(日志切换)引发check转载 2011-11-27 23:22:11 · 453 阅读 · 0 评论 -
面对一个全新的环境,作为一个Oracle DBA,首先应该了解什么?
面对一个全新的环境,作为一个Oracle DBA,首先应该了解什么?在这里,不谈那些大的方面,比如了解整个IT环境整体情况,假设你已经知道了这些,接下来需要面对的就是这些一个个活生生的database了.这里总结了一些一般的思路来面对一个全先的database,从而快速了解你面对的环境概要.这也不是教科书,只是一些心得和体会,对于这种问题,每个人的认识的角度是不一样的.欢迎大家继续补充完善转载 2011-11-27 23:04:27 · 457 阅读 · 0 评论 -
tuning 2 Diagnostic and Tuning Tools
--maitenance of alert log file the alert log file consis of chronnological messages and errors;check the alert log file regularly to:---detect internal errors and corruption errors---monitor d原创 2011-11-27 23:41:29 · 553 阅读 · 0 评论 -
secureCRT进入sqlplus能上下查看历史sql语句以及左右修改字符
在Windows操作系统上,当在DOS命令窗口中运行SQL*Plus的时候,可以使用向上,向下键来跳回之前已经执行过的SQL语句.你可以根据需要修改他们,然后按Enter键重新提交执行.然而,当在Linux Shell中运行SQL*Plus的时候,并不提供浏览历史命令行的功能.为了在Linux中达到同样的目的,你可以安装rlwrap,这个程式本身是个Shell,可以运行任何你提供给它的命令转载 2011-12-07 23:16:41 · 3786 阅读 · 1 评论