自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

Orale Auditing

1. 记录方式session/access2. 标准审计sys.aud$/operation file3.细力度审计(fine-grained auditing) 4.administrator auditing5.重要参数审计存放位置:audit_sys_operations审计开关:audit_trail,不能修改memory6.重要操作audit se...

2010-12-26 12:12:55 93

管理权限

1.显示当前用户拥有的权限select * from session_privs;select * from session_roles;2. 把某权利授予给任何用户grant create table to [color=red]public[/color]3.07_dictionary_accessibility限制用户对系统特权的访问4.使用create any ...

2010-12-26 10:49:35 221

Management password & resource

1.profile 1>.failed_login_attempts 2>.password_lock_time 3>.password_lift_time 4>.password_grace_time 5>.password_reuse_time 6>.password_reuse_max 7>.password_verify_function 8...

2010-12-18 08:43:50 211

原创 Oracle logBuffer

各地现场的log_buffer都不一样,有的现场设置为200M,有的现场设置500K。到底应该设多大呢? log_buffer是Redo log的buffer。 因此在这里必须要了解Redo Log的触发事件(LGWR) 1、当redo log buffer的容量达到1/3 2、设定的写redo log时间间隔到达,一般为3秒钟。 ...

2010-12-16 18:05:58 408

原创 Index Management

[b]1.classification of indexex[/b] a>:logical 1>:single column and concatenated 2>:unique and nounique 3>:function based 4>:domain b>:phisical 1>:partitioned...

2010-12-12 11:11:56 225

Table Management

[b]1.temporay table语法[/b] a>:基于事务的临时的表空间[code="sql"]create global temporary table tableName on commit delete rows (id number,name varchar2(10))[/code] b>:基于session的临时表空间[code="sql"]create ...

2010-12-12 08:34:58 159

Undo Management

[b]1.undo 表空间大小的确定[/b] a>:UR undo_retention in seconds [code="sql"] select * from v$parameter [undo_retention]\ [/code] b>:UPS Number of undo data blocks generated per s...

2010-12-11 10:53:24 133

基于时间点的不完全恢复

Hints:The requirements for database point-in-time recovery are as follows:1.Your database must be running in ARCHIVELOG mode.2.You must have backups of all datafiles from before the target S...

2010-12-08 18:43:40 170

原创 oracle 热备份

[code="sql"]SQL> set time on;17:25:16 SQL> select count(*) from tiny.ftest; COUNT(*)---------- 017:26:19 SQL> alter tablespace tiny begin backup;表空间已更改。17:26:38 SQ...

2010-12-08 17:29:57 81

Oracle 冷备份

[code="sql"]SQL> select count(*) from tiny.ftest; COUNT(*)---------- 200--------------我在这个时间点冷备份了我的数据文件(时间点1)SQL> insert into tiny.ftest select rownum from dual connect by ...

2010-12-07 11:34:00 81

原创 Storage structure & Relationship

1.目标a.描述数据库的逻辑结构b.列出segment的类型和使用c.控制块空间分配的重要配置d.了解常用的视图2.segment的类型表,分区表,cluster,index,index-organized-table,index partition,undo,temporary,lob,nested table(嵌套表),bootstrap segment as so...

2010-12-05 09:35:53 136

原创 Oracle 维护小技巧

1.重新编译有错误的函数,存储过程,包[code="sql"]select 'ALTER ' || OBJECT_TYPE || ' ' || owner || '.' || OBJECT_NAME || ' COMPILE;' from all_objects where status = 'INVALID' and object_type in ('P...

2010-12-04 11:55:07 126

原创 oracle 性能监控常用SQL

[code="sql"]监控数据库性能的SQL 查看tablespace的空間使用情況select tablespace_name,sum(bytes)/1024/1024 from dba_free_space group by tablespace_name1. 监控事例的等待 select event,sum(decode(wait_Time,0,0,1)) "Prev"...

2010-12-03 18:44:05 92

原创 Oracle正则表达式

Oracle 10g数据库内建了符合IEEE POSIX (Portable Operating System for Unix)标准的正则表达式。熟练使用正则表达式,可以写出简洁,强大的SQL语句。 正则表达式有几个优点优于常见的LIKE操作符和INSTR、SUBSTR及REPLACE 函数的。这些传统的SQL 函数不便于进行模式匹配。只有LIKE 操作符通过使用%和_字符匹配,但LIKE不...

2010-12-03 18:07:04 158

原创 oracle 记录,嵌套表,集合

[b]1.exists 检查集合中是否存在某个元素,collection.exists(index)2.count 返回集合中元素的个数 collection.count3.limit 返回varray中最大的条目数,关联数组和嵌套表返回空4.first 返回集合的第一个元素5.last 返回集合的最后一个元素6.next 返回集合中的下一个元素,如果不存在返回空 collec...

2010-12-03 11:39:07 247

原创 oracle 关联数组,bulk collect,forAll,动态SQL

1.今天花了点时间看了下plsql的关联数组,可谓是几经波折啊,这个类型的格式要求非常的严格我今天大半天的时间就花在这个格式的调整上,最后还是使用了plsql的美化器搞定.[code="sql"]SQL> set serveroutput on;SQL> SQL> declare 2 type emparr is table of scott.emp.job%typ...

2010-12-02 18:22:28 317

手动创建数据库

[b][b]1.操作指南(摘自oracle在线帮助文档)[/b]Step 1: Decide on Your Instance Identifier (SID)Step 2: Establish the Database Administrator Authentication MethodStep 3: Create the Initialization Parameter File...

2010-12-02 09:12:39 128

Tablespaces&Datafiles

[b]a.目标[/b]1.定义表空间和数据文件,熟悉相关的脚本参数2.创建表空间和管理表空间3.使用OMF创建表空间4.使用相关的视图查看表空间和数据文件的信息[b]b.数据库结构[/b]1.一个数据库由多个表空间组成,一个表空间由多个segment(table,index and so on)组成,一个segment由多个extent组成,一个extent(不能跨多个数据...

2010-12-01 21:32:13 136

原创 Redo Log File

[b]a.日志文件概要[/b]1.Record all changes made to data2.provide a recovery mechanism3.can be organized into groups4.at least two groups required[b]b.概念[/b]1.同组的日志文件是完全一致的2.LGWR3.必须至少具有两组日志工作...

2010-11-30 21:00:25 146

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除