<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OracleOnLinux &#187; FAQ</title>
	<atom:link href="http://www.oracleonlinux.cn/category/oracle/faq/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oracleonlinux.cn</link>
	<description>Oracle and Linux,I Love U.</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:37:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DBA,SYSDBA,SYSOPER三者的区别</title>
		<link>http://www.oracleonlinux.cn/2010/02/03/dba_sysdba_sysoper/</link>
		<comments>http://www.oracleonlinux.cn/2010/02/03/dba_sysdba_sysoper/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 10:31:54 +0000</pubDate>
		<dc:creator>Asher</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.oracleonlinux.cn/?p=218</guid>
		<description><![CDATA[什么是DBA？什么是SYSDBA，什么又是SYSOPER？三者究竟有何联系呢？
在Oracle数据库领域里，很多Oracle初学者（Me 2)很容易被这三个术语迷惑，就其原因还是基础概念没有弄清楚。记得自己刚开始接触Oracle的时候，也是云里雾里，现在基本弄明白，故写出来和大家分享：
DBA：在Oracle数据库里面其实只是一个角色（role)。那么什么是角色呢?可以简单的认为一个角色就是某些个权限的集合体，也就是说把多个系统权限（system privilege)，对象权限（object privilege)以及角色（role)揉和在一起，然后赋给一个角色。说白了，Oracle引入角色的概念，其实是为了避免相关的系统权限和对象权限的赋予和回收的复杂性。把一堆系统权限和对象权限以及角色打包之后赋给某个新角色，然后再对这个新角色进行必要的操作就显得相当便捷和方便了。当然，在Oracle里面一个角色是可以赋给另外一个角色的，但是角色的赋给是不能够构成循环回路的。eg:先把role1给role2,然后把role2给role3,那么你就不可以再把role3给role1了。这是Oracle不允许的，其实你也不可以成功执行这样的包含回路角色的授权的！
SYSDBA：说白了就是一种系统权限而已，没有什么神秘的。当我们在SQL*PLUS命令行上执行了类似如下的操作：
SQL&#62;conn / as sysdba;这时候，其实我们是以SYSDBA这个身份去登陆数据库的，我们当前的default schema是SYS。那么SYSDBA这个系统权限究竟允许执行哪些操作呢？
■   Perform STARTUP and SHUTDOWN operations
■   ALTER DATABASE: open, mount, back up, or change character set
■   CREATE DATABASE
■   DROP DATABASE
■   CREATE SPFILE
■   ALTER DATABASE ARCHIVELOG
■   ALTER DATABASE RECOVER
■   Includes the RESTRICTED SESSION privilege
■   Perform STARTUP and SHUTDOWN operations
■   [...]]]></description>
		<wfw:commentRss>http://www.oracleonlinux.cn/2010/02/03/dba_sysdba_sysoper/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Oracle物化视图(扫盲)</title>
		<link>http://www.oracleonlinux.cn/2009/12/14/oracle%e7%89%a9%e5%8c%96%e8%a7%86%e5%9b%be%e6%89%ab%e7%9b%b2/</link>
		<comments>http://www.oracleonlinux.cn/2009/12/14/oracle%e7%89%a9%e5%8c%96%e8%a7%86%e5%9b%be%e6%89%ab%e7%9b%b2/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 14:09:53 +0000</pubDate>
		<dc:creator>Asher</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.oracleonlinux.cn/?p=171</guid>
		<description><![CDATA[Oracle的物化视图提供了强大的功能，可以用于预先计算并保存表连接或聚集等耗时较多的操作的结果，这样，在执行查询时，就可以避免进行这些耗时的操作，而从快速的得到结果。物化视图有很多方面和索引很相似：使用物化视图的目的是为了提高查询性能；物化视图对应用透明，增加和删除物化视图不会影响应用程序中SQL语句的正确性和有效性；物化视图需要占用存储空间；当基表发生变化时，物化视图也应当刷新。 物化视图可以分为以下三种类型：包含聚集的物化视图；只包含连接的物化视图；嵌套物化视图。三种物化视图的快速刷新的限制条件有很大区别，而对于其他方面则区别不大。创建物化视图时可以指定多种选项，下面对几种主要的选择进行简单说明：创建方式（Build Methods）：包括BUILD IMMEDIATE和BUILD DEFERRED两种。BUILD IMMEDIATE是在创建物化视图的时候就生成数据，而BUILD DEFERRED则在创建时不生成数据，以后根据需要在生成数据。默认为BUILD IMMEDIATE。 查询重写（Query Rewrite）：包括ENABLE QUERY REWRITE和DISABLE QUERY REWRITE两种。分别指出创建的物化视图是否支持查询重写。查询重写是指当对物化视图的基表进行查询时，Oracle会自动判断能否通过查询物化视图来得到结果，如果可以，则避免了聚集或连接操作，而直接从已经计算好的物化视图中读取数据。默认为DISABLE QUERY REWRITE。刷新（Refresh）：指当基表发生了DML操作后，物化视图何时采用哪种方式和基表进行同步。刷新的模式有两种：ON DEMAND和ON COMMIT。ON DEMAND指物化视图在用户需要的时候进行刷新，可以手工通过DBMS_MVIEW.REFRESH等方法来进行刷新，也可以通过JOB定时进行刷新。ON COMMIT指出物化视图在对基表的DML操作提交的同时进行刷新。刷新的方法有四种：FAST、COMPLETE、FORCE和NEVER。FAST刷新采用增量刷新，只刷新自上次刷新以后进行的修改。COMPLETE刷新对整个物化视图进行完全的刷新。如果选择FORCE方式，则Oracle在刷新时会去判断是否可以进行快速刷新，如果可以则采用FAST方式，否则采用COMPLETE的方式。NEVER指物化视图不进行任何刷新。默认值是FORCE ON DEMAND。 在建立物化视图的时候可以指定ORDER BY语句，使生成的数据按照一定的顺序进行保存。不过这个语句不会写入物化视图的定义中，而且对以后的刷新也无效。 物化视图日志：如果需要进行快速刷新，则需要建立物化视图日志。物化视图日志根据不同物化视图的快速刷新的需要，可以建立为ROWID或PRIMARY KEY类型的。还可以选择是否包括SEQUENCE、INCLUDING NEW VALUES以及指定列的列表。 可以指明ON PREBUILD TABLE语句将物化视图建立在一个已经存在的表上。这种情况下，物化视图和表必须同名。当删除物化视图时，不会删除同名的表。这种物化视图的查询重写要求参数QUERY_REWRITE_INTEGERITY必须设置为trusted或者stale_tolerated。 物化视图可以进行分区。而且基于分区的物化视图可以支持分区变化跟踪（PCT）。具有这种特性的物化视图，当基表进行了分区维护操作后，仍然可以进行快速刷新操作。 对于聚集物化视图，可以在GROUP BY列表中使用CUBE或ROLLUP，来建立不同等级的聚集物化视图。物化视图的基本操作和使用可以查看网址：http://blog.itpub.net/post/468/13318 相关的东东。我主要说明一下使用物化视图的基本东东。如如何建立在特定的表空间上，这些在其他的物化视图上面几乎都没有任何介绍的。主要以我做的一个例子来操作，如果对物化视图的基本概念清楚了就比较明白在那里写特定的表空间存储了。 创建物化视图时应先创建存储的日志空间CREATE MATERIALIZED VIEW LOG ON mv_lvy_levytaxbgtdiv tablespace ZGMV_DATA &#8211;日志保存在特定的表空间 WITH ROWID ;CREATE MATERIALIZED VIEW LOG ON tb_lvy_levydetaildata tablespace ZGMV_DATA &#8211;日志保存在特定的表空间 WITH ROWID,sequence(LEVYDETAILDATAID); CREATE MATERIALIZED VIEW LOG ON tb_lvy_levydata tablespace ZGMV_DATA &#8211;日志保存在特定的表空间 WITH rowid,sequence(LEVYDATAID); 然后创建物化视图 &#8211;创建物化视图 create materialized [...]]]></description>
		<wfw:commentRss>http://www.oracleonlinux.cn/2009/12/14/oracle%e7%89%a9%e5%8c%96%e8%a7%86%e5%9b%be%e6%89%ab%e7%9b%b2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can objects of the same Schema reside in different tablespaces?</title>
		<link>http://www.oracleonlinux.cn/2009/12/12/can-objects-of-the-same-schema-reside-in-different-tablespaces/</link>
		<comments>http://www.oracleonlinux.cn/2009/12/12/can-objects-of-the-same-schema-reside-in-different-tablespaces/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 10:02:45 +0000</pubDate>
		<dc:creator>Asher</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.oracleonlinux.cn/?p=158</guid>
		<description><![CDATA[The answer is YES.
For example ,if  one user have a table and a index schema,he/she can put the table and index into respective  tablespaces. 
点击阅读感兴趣的文章December 14, 2009 -- Oracle物化视图(扫盲) (0)December 11, 2009 -- What is SYSTEM tablespace and when is it created? (0)December 9, 2009 -- What are the components of logical database structure of [...]]]></description>
		<wfw:commentRss>http://www.oracleonlinux.cn/2009/12/12/can-objects-of-the-same-schema-reside-in-different-tablespaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is SYSTEM tablespace and when is it created?</title>
		<link>http://www.oracleonlinux.cn/2009/12/11/what-is-system-tablespace-and-when-is-it-created/</link>
		<comments>http://www.oracleonlinux.cn/2009/12/11/what-is-system-tablespace-and-when-is-it-created/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 00:38:58 +0000</pubDate>
		<dc:creator>Asher</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.oracleonlinux.cn/?p=155</guid>
		<description><![CDATA[Every Oracle database contains a tablespace named SYSTEM, which is automatically created when the database is created. The SYSTEM tablespace always contains the data dictionary tables for the entire database.
点击阅读感兴趣的文章December 14, 2009 -- Oracle物化视图(扫盲) (0)December 12, 2009 -- Can objects of the same Schema reside in different tablespaces? (0)December 9, 2009 -- What are the [...]]]></description>
		<wfw:commentRss>http://www.oracleonlinux.cn/2009/12/11/what-is-system-tablespace-and-when-is-it-created/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the components of logical database structure of Oracle database?</title>
		<link>http://www.oracleonlinux.cn/2009/12/09/logical-database-structure/</link>
		<comments>http://www.oracleonlinux.cn/2009/12/09/logical-database-structure/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 15:35:09 +0000</pubDate>
		<dc:creator>Asher</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.oracleonlinux.cn/?p=149</guid>
		<description><![CDATA[There are tablespaces and database&#8217;s schema objects.
Generally,the logical database structure can be divided into TABLESPACES,SEGMENTS,EXTENTS,BLOCKS.
点击阅读感兴趣的文章December 14, 2009 -- Oracle物化视图(扫盲) (0)December 12, 2009 -- Can objects of the same Schema reside in different tablespaces? (0)December 11, 2009 -- What is SYSTEM tablespace and when is it created? (0)February 7, 2012 -- 调试存储过程：ORA-0131 Insufficient privileges 处理 (0)February [...]]]></description>
		<wfw:commentRss>http://www.oracleonlinux.cn/2009/12/09/logical-database-structure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

