<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3205618955630808671</id><updated>2011-08-23T05:18:29.298-07:00</updated><category term='recovery'/><category term='tnslistener'/><category term='Installation options'/><category term='undo'/><category term='alerts'/><category term='resource manager'/><category term='Trigger'/><category term='security'/><category term='PL/SQL'/><category term='optimizer'/><category term='Data movement'/><category term='Management'/><category term='privileges'/><category term='functions'/><category term='chained rows'/><category term='Flashback'/><category term='InternalWorkings'/><category term='constraint'/><category term='ASM'/><category term='FlashRecoveryArea'/><category term='DDL'/><category term='Command line tools'/><category term='rowid'/><category term='query performance'/><category term='locks'/><category term='profiles'/><category term='segments'/><category term='dbca'/><category term='data block'/><category term='dictionary'/><category term='Init Params'/><category term='consumer group'/><category term='index'/><category term='roles'/><category term='stats'/><category term='maintenance'/><category term='isqlplus'/><category term='performance'/><category term='tablespace'/><category term='rman'/><category term='advisor'/><category term='catcha'/><category term='Packages'/><category term='accounts'/><category term='Startup'/><category term='backup'/><category term='PENDING'/><title type='text'>Cheng's Oracle</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>66</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6689435759716875314</id><published>2008-05-17T10:31:00.000-07:00</published><updated>2008-05-18T18:41:50.083-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><category scheme='http://www.blogger.com/atom/ns#' term='recovery'/><title type='text'>RMAN commands</title><content type='html'>&lt;strong&gt;To enable control file autobackup &lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; CONFIGURE CONTROLFILE AUTOBACKUP ON;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To change the default format for autobackup file name &lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE disk TO '/u1/oradata/cf_ORCL_auto_&lt;span style="color:#ff0000;"&gt;%F&lt;/span&gt;';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where &lt;span style="font-family:courier new;color:#ff0000;"&gt;%F&lt;/span&gt; is mandatory and translates into &lt;span style="font-family:courier new;"&gt;c-IIIIIIIIII-YYYYMMDD-QQ&lt;/span&gt; being:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;IIIIIIII&lt;/span&gt; the DBID&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;YYYYMMDD&lt;/span&gt; timestamp of the backup&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;QQ&lt;/span&gt; a sequence that starts with &lt;span style="font-family:courier new;"&gt;00&lt;/span&gt; and ends with &lt;span style="font-family:courier new;"&gt;FF&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Use the &lt;span style="font-family:courier new;color:#ff0000;"&gt;SHOW&lt;/span&gt; command to list current settings&lt;/strong&gt;&lt;span style="font-family:Courier New;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;RMAN&gt; &lt;span style="color:#ff0000;"&gt;SHOW&lt;/span&gt; CONTROLFILE AUTOBACKUP FORMAT;&lt;br /&gt;RMAN&gt; &lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="color:#ff0000;"&gt;SHOW&lt;/span&gt; EXCLUDE;&lt;br /&gt;RMAN&gt; &lt;span style="color:#ff0000;"&gt;SHOW&lt;/span&gt; ALL;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:0;"&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;Use the &lt;span style="font-family:courier new;color:#ff0000;"&gt;CLEAR&lt;/span&gt; command to reset any persistent settings to its default value&lt;/span&gt; &lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;RMAN&gt; CONFIGURE BACKUP OPTIMIZATION &lt;span style="color:#ff0000;"&gt;CLEAR&lt;/span&gt;;&lt;br /&gt;RMAN&gt; CONFIGURE MAXSETSIZE &lt;span style="color:#ff0000;"&gt;CLEAR&lt;/span&gt;;&lt;br /&gt;RMAN&gt; CONFIGURE DEFAULT DEVICE TYPE &lt;span style="color:#ff0000;"&gt;CLEAR&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configure the default device type for automatic channel allocation&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;RMAN&gt; CONFIGURE DEFAULT DEVICE TYPE TO sbt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or manually allocate a channel&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; RUN {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;2&gt; &lt;span style="color:#ff0000;"&gt;ALLOCATE CHANNEL c1 DEVICE TYPE disk;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;3&gt; BACKUP DATAFILE '/u0/oradata/user01.dbf';&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;4&gt; }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configure parallelism&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; CONFIGURE DEVICE TYPE disk &lt;span style="color:#ff0000;"&gt;PARALLELISM 3&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Specify the maximum backup piece size&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; CONFIGURE CHANNEL DEVICE TYPE DISK &lt;span style="color:#ff0000;"&gt;MAXPIECESIZE 2G&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Format the name of the generated backup files&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; RUN {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;2&gt; ALLOCATE CHANNEL d1 DEVICE TYPE disk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;3&gt; &lt;span style="color:#ff0000;"&gt;FORMAT '/disk1/backups/%U';&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;4&gt; BACKUP DATABASE PLUS ARCHIVELOG; }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Some backup options (more on Administration Workshop II 3-9)&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; BACKUP device type disk tag '%TAG' database include current controlfile;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; BACKUP database plus archivelog;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; BACKUP datafile '/u0/oradata/user01.dbf';&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;RMAN&gt; BACKUP &lt;span style="color:#ff0000;"&gt;AS BACKUPSET&lt;/span&gt; TABLESPACE hr_data; &lt;/span&gt;(&lt;span style="color:#ff0000;"&gt;AS BACKUPSET&lt;/span&gt; can be omitted if RMAN is configured in mode BACKUPSET)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;After a online backup, remember to archive current redo logs using:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;SQL&gt; ALTER SYSTEM ARCHIVE LOG CURRENT;&lt;br /&gt;&lt;/span&gt;or all archive logs:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SQL&gt; ALTER SYSTEM ARCHIVE LOG ALL;&lt;/span&gt;&lt;br /&gt;or a specific redo group:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SQL&gt; ALTER SYSTEM ARCHIVE LOG GROUP n;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;More on backups at &lt;a href="http://www.stanford.edu/dept/itss/docs/oracle/9i/server.920/a96519/backup.htm"&gt;http://www.stanford.edu/dept/itss/docs/oracle/9i/server.920/a96519/backup.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;See &lt;span style="color:#ff0000;"&gt;backup constraints&lt;/span&gt; at Administration Workshop II 3-10&lt;br /&gt;See parallel backup commands at Administration Workshop II 3-11&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;strong&gt;To create a clone database or a standby database from backups of the target database&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; DUPLICATE database to auxiliaryDb;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To flashback a database&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; &lt;span style="color:#3333ff;"&gt;FLASHBACK&lt;/span&gt; DATABASE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;2&gt; TO TIME = TO_DATE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;3&gt; ('06/25/03 12:00:00','MM/DD/YY HH:MI:SS');&lt;br /&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:+0;"&gt;after you have performed flashback database you should remember to reset logs:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;color:#ff0000;"&gt;SQL&gt; ALTER DATABASE RESETLOGS;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To restore/recover&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; RESTORE/RECOVER database;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; RESTORE/RECOVER tablespace &lt;tablespace&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RMAN&gt; RESTORE/RECOVER datafile &lt;datafile&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Reporting commands&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;LIST&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;REPORT&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;For catalog maintenance (Administration Workshop II 3-8)&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;CROSSCHECK&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;DELETE&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;CHANGE&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;LIST&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6689435759716875314?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6689435759716875314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6689435759716875314' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6689435759716875314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6689435759716875314'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/rman-commands.html' title='RMAN commands'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-8836341365390543655</id><published>2008-05-17T10:19:00.000-07:00</published><updated>2008-05-18T18:43:06.106-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><category scheme='http://www.blogger.com/atom/ns#' term='recovery'/><title type='text'>RMAN command-line arguments</title><content type='html'>(Administration Workshop II 2-27)&lt;br /&gt;First set the ORACLE_SID env&lt;br /&gt;$ export ORACLE_SID=orcl&lt;br /&gt;&lt;br /&gt;Writing RMAN output to a log file&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ rman &lt;span style="color:#3333ff;"&gt;TARGET&lt;/span&gt; sys/oracle &lt;span style="color:#3333ff;"&gt;LOG&lt;/span&gt;=$HOME/oradata/u03/rman.log &lt;span style="color:#3333ff;"&gt;APPEND&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Executing a command file when RMAN is invoked&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;$ rman &lt;span style="color:#3333ff;"&gt;TARGET&lt;/span&gt; sys/oracle &lt;span style="color:#3333ff;"&gt;CMDFILE&lt;/span&gt;=$HOME/scripts/my_rman_script.rcv&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:+0;"&gt;Establishes database connections on RMAN startup (both TARGET and CATALOG DBs)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;$ rman &lt;span style="color:#3333ff;"&gt;TARGET&lt;/span&gt; sys/oracle@orcl &lt;span style="color:#3333ff;"&gt;CATALOG&lt;/span&gt; rman/rman@rcat&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:+0;"&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;span style="font-family:courier new;color:#3333ff;"&gt;NOCATALOG&lt;/span&gt; is the default mode (rman will use the control file as rman repository) unless a &lt;span style="font-family:courier new;color:#3333ff;"&gt;CATALOG&lt;/span&gt; database is specified.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-8836341365390543655?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/8836341365390543655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=8836341365390543655' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/8836341365390543655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/8836341365390543655'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/rman-command-line-arguments.html' title='RMAN command-line arguments'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-1904320994714921372</id><published>2008-05-16T15:27:00.000-07:00</published><updated>2008-05-16T15:35:27.138-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='InternalWorkings'/><title type='text'>Administration Workshop II. 10-3. Table types</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Ordinary (heap organized table):&lt;/span&gt; Data is stored as an unordered collection (heap).&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Partitioned table:&lt;/span&gt; data is divided into smaller, more manageable pieces.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Index-organized table (IOT): &lt;/span&gt;Rows (key and non-key values) are sorted and stored in a B-tree index structure.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Clustered table:&lt;/span&gt; related data from more than one table are stored together. In other words, a cluster is a group of tables that &lt;span style="color: rgb(255, 0, 0);"&gt;share the same data blocks&lt;/span&gt; because they share common columns and are often used together.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-1904320994714921372?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/1904320994714921372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=1904320994714921372' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/1904320994714921372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/1904320994714921372'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/10-3-table-types.html' title='Administration Workshop II. 10-3. Table types'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-5339056787479485971</id><published>2008-05-14T18:01:00.000-07:00</published><updated>2008-05-14T18:04:55.512-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='catcha'/><category scheme='http://www.blogger.com/atom/ns#' term='index'/><title type='text'>Administration Workshop II. 4-14. re-creating indexes</title><content type='html'>Use options to reduce the time it takes to create the index:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PARALLEL&lt;/li&gt;&lt;li&gt;NOLOGGING&lt;/li&gt;&lt;/ul&gt;SQL&gt; CREATE INDEX rname_idx ON hr.regions (region_name) PARALLEL 4;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:180%;" &gt;WARNING: if you created the index with PARALLEL option 4, then you'll need to change it back to PARALLEL 1 after the index is created so that it doesn't use 4 CPUs every time it access the index later!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-5339056787479485971?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/5339056787479485971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=5339056787479485971' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5339056787479485971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5339056787479485971'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/administration-workshop-ii-4-14-re.html' title='Administration Workshop II. 4-14. re-creating indexes'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-5279577687701151345</id><published>2008-05-13T18:14:00.000-07:00</published><updated>2008-05-13T18:17:32.936-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FlashRecoveryArea'/><category scheme='http://www.blogger.com/atom/ns#' term='recovery'/><title type='text'>Administration Workshop II. 2-16. Monitoring the Flash Recovery Area evolution with EM</title><content type='html'>Go to Enterprise Manager -&gt; Related Links -&gt; All metrics. Click on Recovery Area link then again on the percentage number to see the chart.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-5279577687701151345?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/5279577687701151345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=5279577687701151345' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5279577687701151345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5279577687701151345'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/administration-workshop-ii-2-16.html' title='Administration Workshop II. 2-16. Monitoring the Flash Recovery Area evolution with EM'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6221732934465790351</id><published>2008-05-13T18:02:00.001-07:00</published><updated>2008-05-13T18:08:35.645-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recovery'/><title type='text'>Administration Workshop II. 2-5. RMAN Performance Enhancements</title><content type='html'>&lt;ul&gt;&lt;li&gt;Automatic &lt;span style="font-weight: bold;"&gt;parallelization&lt;/span&gt; of backup, restore, and recovery operations&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;No generation of extra redo&lt;/span&gt; during online database backups&lt;/li&gt;&lt;li&gt;Backups that are restricted to &lt;span style="font-weight: bold;"&gt;limit the number of reads per file per second&lt;/span&gt; to avoid interfering with OLTP work&lt;/li&gt;&lt;li&gt;The use of &lt;span style="font-weight: bold;"&gt;multiplexing, which can prevent flooding of any one file with reads and writes&lt;/span&gt; while still keeping a tape drive streaming&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6221732934465790351?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6221732934465790351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6221732934465790351' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6221732934465790351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6221732934465790351'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/administration-workshop-ii-2-5-rman.html' title='Administration Workshop II. 2-5. RMAN Performance Enhancements'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-524701351700642710</id><published>2008-05-13T17:58:00.000-07:00</published><updated>2008-05-13T18:02:04.603-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recovery'/><title type='text'>Administration Workshop II. 2-5. Use RMAN to detect block corruption</title><content type='html'>You can use RMAN to detect block corruption. The information relating to the block corruption that is detected during backup can be obtained by using the &lt;span style="font-family: courier new;"&gt;V$BACKUP_CORRUPTION&lt;/span&gt; and &lt;span style="font-family: courier new;"&gt;V$COPY_CORRUPTION&lt;/span&gt; dynamic views.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-524701351700642710?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/524701351700642710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=524701351700642710' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/524701351700642710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/524701351700642710'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/administration-workshop-ii-2-5-use-rman.html' title='Administration Workshop II. 2-5. Use RMAN to detect block corruption'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6174139328681315854</id><published>2008-05-13T17:39:00.000-07:00</published><updated>2008-05-13T17:57:35.604-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recovery'/><title type='text'>Administration Workshop II. 2-14. Using a Flash Recovery Area with RMAN</title><content type='html'>Flash Recovery Area simplifies managing disk space and files related to backup and recovery:&lt;br /&gt;&lt;ul&gt;&lt;li style="font-weight: bold;"&gt;When the flash recovery area is used, RMAN automatically uses Oracle Managed Files (OMF) for its backup files.&lt;/li&gt;&lt;li&gt;Each time RMAN creates a file in the flash recovery area, the Oracle database updates the list of files that are no longer required on disk. &lt;span style="font-weight: bold;"&gt;When a file needs to be written into the flash recovery area and space is not available for that file, the Oracle database deletes a file that is on the obsolete files list and writes a notification to the alert log.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;A warning is issued when the flash recovery area experiences space pressure or is low on free space because there are no files that can be deleted from the flash recovery area. To resolve the problem, you can:&lt;br /&gt;&lt;br /&gt;- add disk space&lt;br /&gt;- back up your files to a tertiary device&lt;br /&gt;- delete the files from the flash recovery area using RMAN&lt;br /&gt;- or change the RMAN retention policy.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;The flash recovery area is configured by setting the &lt;span style="font-family:courier new;"&gt;DB_RECOVERY_FILE_DEST&lt;/span&gt; initialization parameter. The &lt;span style="font-family:courier new;"&gt;DB_RECOVERY_FILE_DEST_SIZE&lt;/span&gt; parameter specifies its size.&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6174139328681315854?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6174139328681315854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6174139328681315854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6174139328681315854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6174139328681315854'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/administration-workshop-ii-2-14-using.html' title='Administration Workshop II. 2-14. Using a Flash Recovery Area with RMAN'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-2251730262832053998</id><published>2008-05-11T08:57:00.000-07:00</published><updated>2008-05-11T09:19:01.247-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data movement'/><title type='text'>18-12. How to avoid generating REDO entries</title><content type='html'>Even though a database is in archive log mode, it's possible to individually disable logging for a particular table. To do so:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Set the NOLOGGING attribute for the table or&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="subhead1"&gt;Specifying the &lt;span style="color: rgb(255, 0, 0);"&gt;UNRECOVERABLE &lt;/span&gt;Clause in the Control File. Example:&lt;br /&gt;&lt;/p&gt; &lt;pre space="preserve" class="oac_no_warn"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;UNRECOVERABLE&lt;/span&gt;&lt;br /&gt;LOAD DATA&lt;br /&gt;INFILE 'sample.dat'&lt;br /&gt;INTO TABLE emp&lt;br /&gt;(ename VARCHAR2(10), empno NUMBER(4));&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-2251730262832053998?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/2251730262832053998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=2251730262832053998' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2251730262832053998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2251730262832053998'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/18-12-how-to-avoid-generating-redo.html' title='18-12. How to avoid generating REDO entries'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6405030163816792402</id><published>2008-05-11T08:30:00.000-07:00</published><updated>2008-05-11T08:45:10.681-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='functions'/><title type='text'>Timestamp manipulation</title><content type='html'>&lt;span style="font-size:100%;"&gt;Get the timestamp &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);font-size:100%;" &gt;10 minutes earlier&lt;/span&gt;&lt;span style="font-size:100%;"&gt; from &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;now:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SELECT &lt;span style="color: rgb(51, 51, 255);"&gt;SYSTIMESTAMP&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;- INTERVAL '10' minute&lt;/span&gt; FROM DUAL;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;Get the timestamp &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);font-size:100%;" &gt;1 year later&lt;/span&gt;&lt;span style="font-size:100%;"&gt; from the &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;specified timestamp:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SELECT &lt;span style="color: rgb(51, 51, 255);"&gt;timestamp'2004-02-29 00:00:00'&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;+ INTERVAL '1' year(1)&lt;/span&gt; FROM dual;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Extract fields from a timestamp:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier;"&gt;     SELECT&lt;br /&gt;     &lt;span style="color: rgb(0, 0, 255);"&gt;EXTRACT&lt;/span&gt;(&lt;span style="color: rgb(0, 0, 255);"&gt;year&lt;/span&gt; FROM       current_timestamp) EY,&lt;br /&gt;     EXTRACT(&lt;span style="color: rgb(0, 0, 255);"&gt;month&lt;/span&gt; FROM current_timestamp) EM,&lt;br /&gt;     EXTRACT(&lt;span style="color: rgb(0, 0, 255);"&gt;day &lt;/span&gt; FROM current_timestamp) ED,&lt;br /&gt;     EXTRACT(&lt;span style="color: rgb(0, 0, 255);"&gt;hour&lt;/span&gt; FROM current_timestamp) EH,&lt;br /&gt;     EXTRACT(&lt;span style="color: rgb(0, 0, 255);"&gt;minute&lt;/span&gt; FROM current_timestamp) EM,&lt;br /&gt;   EXTRACT(&lt;span style="color: rgb(0, 0, 255);"&gt;second&lt;/span&gt; FROM current_timestamp) ES,&lt;br /&gt;   EXTRACT(&lt;span style="color: rgb(0, 0, 255);"&gt;timezone_hour&lt;/span&gt; FROM current_timestamp)       TH,&lt;br /&gt;   EXTRACT(&lt;span style="color: rgb(0, 0, 255);"&gt;timezone_minute&lt;/span&gt; FROM current_timestamp) TM,&lt;br /&gt;   EXTRACT(&lt;span style="color: rgb(0, 0, 255);"&gt;timezone_region&lt;/span&gt; FROM current_timestamp)       TR,&lt;br /&gt;   EXTRACT(&lt;span style="color: rgb(0, 0, 255);"&gt;timezone_abbr&lt;/span&gt; FROM current_timestamp ) TA&lt;br /&gt;   FROM dual;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;More on: &lt;a href="http://www.psoug.org/reference/timestamp.html"&gt;Oracle Timestamp Data Type&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6405030163816792402?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6405030163816792402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6405030163816792402' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6405030163816792402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6405030163816792402'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/timestamp-manipulation.html' title='Timestamp manipulation'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-4672494376897209114</id><published>2008-05-10T13:07:00.000-07:00</published><updated>2008-05-10T13:13:01.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flashback'/><category scheme='http://www.blogger.com/atom/ns#' term='PENDING'/><title type='text'>17-25. Flashback Versions Query Considerations</title><content type='html'>&lt;span style="font-size:180%;"&gt;The VERSIONS clause cannot be used to query&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;External tables&lt;/li&gt;&lt;li&gt;Temporary tables&lt;/li&gt;&lt;li&gt;Fixed tables&lt;/li&gt;&lt;li&gt;Views&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:180%;"&gt;The VERSIONS clause cannot span DDL commands&lt;/span&gt;&lt;br /&gt;The VERSIONS clause in a SELECT statement cannot produce versions of rows across the DDL statements that change the structure of the corresponding tables. This means that the query stops producing rows after it reaches a time in the past when the table structure was changed.&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;What if I want to flashback version query after a DDL? is it possible?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Segment shrink operations are filtered out&lt;/span&gt;&lt;br /&gt;Certain maintenance operations, such as a segment shrink, may move table rows across blocks. In this case, the version query filters out such phantom versions because the row data remains the same.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-4672494376897209114?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/4672494376897209114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=4672494376897209114' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4672494376897209114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4672494376897209114'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/17-25-flashback-versions-query.html' title='17-25. Flashback Versions Query Considerations'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-8876424681575574156</id><published>2008-05-10T13:00:00.000-07:00</published><updated>2008-05-10T13:05:39.341-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flashback'/><title type='text'>17-9. Flashback Database Limitations</title><content type='html'>&lt;ul&gt;&lt;li&gt;You cannot use Flashback Database if the control file has been restored or re-created.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Data file dropped after Flashback target time cannot be recovered (the dropped data file is added to the control file and marked offline, but it is not flashed back)&lt;/li&gt;&lt;li&gt;Data file that has been shrunk since the Flashback target time cannot be flashed back. &lt;span style="color: rgb(255, 0, 0);"&gt;Any such data files must be taken offline before performing the flashback operation.&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-8876424681575574156?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/8876424681575574156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=8876424681575574156' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/8876424681575574156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/8876424681575574156'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/17-9-flashback-database-limitations_10.html' title='17-9. Flashback Database Limitations'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-1947451317942821318</id><published>2008-05-05T20:59:00.001-07:00</published><updated>2008-05-05T21:05:44.077-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flashback'/><category scheme='http://www.blogger.com/atom/ns#' term='recovery'/><category scheme='http://www.blogger.com/atom/ns#' term='PENDING'/><title type='text'>17-7. Flashback Database: Reducing Restore Time</title><content type='html'>With Flashback Database, &lt;span style="color: rgb(255, 0, 0);"&gt;the time to recover a database is now proportional to the number of changes that need to be backed out (and not to the size of the database)&lt;/span&gt; because you do not have to restore data files.&lt;br /&gt;&lt;br /&gt;The Oracle database periodically logs "before images" of data blocks in the Flashback Database logs. Bock images can be reused to quickly back out the data file changes to any time at which flashback logs are captured just before the desired target time. &lt;span style="color: rgb(255, 204, 0);"&gt;Then, changes from the redo log files are applied to fill in the gap (????? why applying the redo log?).&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-1947451317942821318?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/1947451317942821318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=1947451317942821318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/1947451317942821318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/1947451317942821318'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/17-7-flashback-database-reducing.html' title='17-7. Flashback Database: Reducing Restore Time'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-4427456654908109108</id><published>2008-05-05T19:20:00.000-07:00</published><updated>2008-05-05T19:56:32.780-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recovery'/><title type='text'>16-8. Loss of a Redo Log File</title><content type='html'>Database Control does not allow you to clear a log group that has not been archived. Doing so breaks the chain of redo information. If you must clear an unarchived log group, you should &lt;span style="font-weight: bold;"&gt;immediately &lt;/span&gt;take a full backup of the whole database. Failure to do so may result in a loss of data if another failure ocurrs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-4427456654908109108?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/4427456654908109108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=4427456654908109108' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4427456654908109108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4427456654908109108'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/16-8-loss-of-redo-log-file.html' title='16-8. Loss of a Redo Log File'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-4982721282067281133</id><published>2008-05-04T17:42:00.001-07:00</published><updated>2008-05-04T17:45:54.554-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><title type='text'>15-19. Flash Recovery Area</title><content type='html'>The Flash Recovery Area contains:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Archived logs *&lt;/li&gt;&lt;li&gt;Backups&lt;/li&gt;&lt;li&gt;Flashback logs&lt;/li&gt;&lt;/ul&gt;Oracle recommends that the size of the flash recovery area be at least twice the size of the database so that it can hold one backup &lt;strong&gt;and&lt;/strong&gt; several archived logs.&lt;br /&gt;&lt;br /&gt;*If you have configured your archived logs to be written to this location (with the USE_DB_RECOVERY_AREA flag in one of the locations), then it is important to monitor this space to ensure that it des not reach its capacity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-4982721282067281133?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/4982721282067281133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=4982721282067281133' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4982721282067281133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4982721282067281133'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/15-19-flash-recovery-area.html' title='15-19. Flash Recovery Area'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-1243845504193456754</id><published>2008-05-04T13:47:00.000-07:00</published><updated>2008-05-04T13:49:52.325-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><title type='text'>15-16. Backup control file to a trace file</title><content type='html'>&lt;span style="font-family:courier new;"&gt;SQL&gt; ALTER DATABASE BACKUP CONTROLFILE TO TRACE;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It would be backed up at the location specified at &lt;span style="font-family:courier new;"&gt;USER_DUMP_DEST&lt;/span&gt; initialization parameter with a name &lt;span style="font-family:courier new;"&gt;sid_ora_pid.trc&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-1243845504193456754?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/1243845504193456754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=1243845504193456754' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/1243845504193456754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/1243845504193456754'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/15-16-backup-control-file-to-trace-file.html' title='15-16. Backup control file to a trace file'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6015086208655449778</id><published>2008-05-03T13:11:00.000-07:00</published><updated>2008-05-03T13:16:57.711-07:00</updated><title type='text'>15-7. Backup sets vs. image copies</title><content type='html'>&lt;span style="font-size:180%;"&gt;Data blocks&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Image copies:&lt;/span&gt; all data blocks&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Backup sets:&lt;/span&gt; no empty data blocks are copied (saves space). Typically 20% of database space is empty data block.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Granularity&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Image copies:&lt;/span&gt; only the file we need has to be copied&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Backup sets:&lt;/span&gt; all backup set must be retrieved even though only one of them is needed&lt;br /&gt;&lt;br /&gt;A backup of a database running in NOARCHIVELOG mode must have all three attributes:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;offline&lt;/li&gt;&lt;li&gt;full backup (level 0)&lt;/li&gt;&lt;li&gt;whole database&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6015086208655449778?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6015086208655449778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6015086208655449778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6015086208655449778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6015086208655449778'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/05/15-7-backup-sets-vs-image-copies.html' title='15-7. Backup sets vs. image copies'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-8979198256503601496</id><published>2008-04-21T20:55:00.000-07:00</published><updated>2008-04-21T20:56:54.817-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PENDING'/><title type='text'>9-6 to 9-11</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-8979198256503601496?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/8979198256503601496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=8979198256503601496' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/8979198256503601496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/8979198256503601496'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/9-6-to-9-11.html' title='9-6 to 9-11'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-5140912649066307692</id><published>2008-04-16T14:35:00.000-07:00</published><updated>2008-04-16T14:37:48.645-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='advisor'/><title type='text'>13-15. SQL Access Advisor</title><content type='html'>This advisor requires that you identify a SQL workload, which is a representative set of SQL statenments that access the schema. You can select you workload from different sources including current and recent SQL activity, a SQL repository, or a user-defined workload such as from a development environment.&lt;br /&gt;The SQL Access Advisor may make recommendations such as creating indexes or materialized views to improve your query performance for the given workload.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-5140912649066307692?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/5140912649066307692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=5140912649066307692' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5140912649066307692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5140912649066307692'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/13-15-sql-access-advisor.html' title='13-15. SQL Access Advisor'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-4488801690190969817</id><published>2008-04-16T12:57:00.000-07:00</published><updated>2008-04-16T13:15:04.086-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='optimizer'/><title type='text'>13-9. SQL Tuning Advisor</title><content type='html'>Oracle's Tuning Advisor calls Automatic Tuning Optimizer (ATO) to perform 4 types of analysis:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Statistics Analysis:&lt;/span&gt; The Automatic Tuning Optimizer checks each query object for missing or stale statistics, and makes recommendations to gather relevant statistics.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;SQL Profiling (Tune SQL plan):&lt;/span&gt; The ATO verifies its own estimates and collects auxiliary information to remove estimation errors. It builds a SQL profile using the auxiliary information and makes a recommendation to create it. When a SQL profile is created, it enables the query optimizer to generate a well-tuned plan.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Access path Analysis:&lt;/span&gt; the ATO explores whether a new index can be used to significantly improve access to each table in the query and, when appropriate, makes recommendations to create such indexes.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;SQL Structure Analysis: &lt;/span&gt;The ATO tries to identify SQL statements that use bad plans and makes relevant suggestions to restructure them. The suggested changes can be syntactic as well as semantic.&lt;/li&gt;&lt;/ul&gt;It's important to choose the appropriate scope for the tuning task. If you choose the &lt;span style="font-weight: bold;"&gt;Limited &lt;/span&gt;option, then recommendations are based on:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Statistics check&lt;/li&gt;&lt;li&gt;Access path analysis&lt;/li&gt;&lt;li&gt;SQL structure analysis&lt;/li&gt;&lt;/ul&gt;If you choose &lt;span style="font-weight: bold;"&gt;comprehensive &lt;/span&gt;option, then &lt;span style="font-weight: bold;"&gt;SQL profile &lt;/span&gt;recommendations are generated as well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-4488801690190969817?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/4488801690190969817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=4488801690190969817' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4488801690190969817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4488801690190969817'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/13-9-sql-tuning-advisor.html' title='13-9. SQL Tuning Advisor'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6133205428498875763</id><published>2008-04-13T17:09:00.001-07:00</published><updated>2008-04-16T12:56:26.162-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='alerts'/><title type='text'>12-22. Server-generated alerts</title><content type='html'>&lt;div&gt;A few key metrics that can provide early problem notifications are:&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Average File Read Time (centiseconds)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Dump Area Used (%)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Response Time (per transaction)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;SQL Response Time (%)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Tablespace Used (%)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Wait Time (%)&lt;/li&gt;&lt;/ul&gt;By default, the following server-generated alerts are enabled:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Tablespace Space Usage (warnings 85%, critical 97%)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Snapshot Too Old&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Recovery Area Low on Free Space&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Resumable Session Suspended&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;To set or edit a threshold for your whole database, select Manage Metrics in the Related Links region of the database home page.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;There are two kinds of server-generated alerts:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Threshold (stateful) alerts:&lt;/span&gt; they are configured by setting a warning and critical threshold values on database metrics. For example: Physical Reads per second, User commits per second, SQL Service Response Time, etc.&lt;br /&gt;Except for the Tablespace Space Usage metric, which is database related, the other metrics are instance related.&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Stateful alerts appear in &lt;/span&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;DBA_OUTSTANDING_ALERTS&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; and when cleared, go to &lt;/span&gt;&lt;span style="font-family: courier new; color: rgb(255, 0, 0);"&gt;DBA_ALERT_HISTORY&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Nonthreshold (stateless) alerts: &lt;/span&gt;corresponds to specific database events such as Snapshot Too Old errors, Recovery Area Low On Free Space, and Resumable Session Suspended.&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Stateless alerts go directly to the history table&lt;/span&gt;. Clearing a stateless alert makes sense only in the Database Control environment because Database Control stores stateless alerts in its own repository.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6133205428498875763?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6133205428498875763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6133205428498875763' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6133205428498875763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6133205428498875763'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/12-22-server-generated-alerts.html' title='12-22. Server-generated alerts'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-5728477083123127167</id><published>2008-04-13T16:54:00.000-07:00</published><updated>2008-04-13T16:57:09.887-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='advisor'/><title type='text'>12-21. The DBMS_ADVISOR Package</title><content type='html'>The DBMS_ADVISOR package contains all constants and procedure declarations for all advisor modules. You can use this package to execute tasks via command line.&lt;br /&gt;To execute advisor procedures, you must be granted the ADVISOR privilege. The ADVISOR privilege permits full access to the advisor procedures and views.&lt;br /&gt;&lt;br /&gt;Procedures:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;CREATE_TASK&lt;/li&gt;&lt;li&gt;DELTE_TASK&lt;/li&gt;&lt;li&gt;EXECUTE_TASK&lt;/li&gt;&lt;li&gt;INTERRUPT_TASK&lt;/li&gt;&lt;li&gt;GET_TASK_REPORT&lt;/li&gt;&lt;li&gt;RESUME_TASK&lt;/li&gt;&lt;li&gt;UPDATE_TASK_ATTRIBUTES&lt;/li&gt;&lt;li&gt;SET-TASK_PARAMETER&lt;/li&gt;&lt;li&gt;MARK_RECOMMENDATION&lt;/li&gt;&lt;li&gt;GET_TASK_SCRIPT&lt;/li&gt;&lt;/ul&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-5728477083123127167?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/5728477083123127167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=5728477083123127167' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5728477083123127167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5728477083123127167'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/12-21-dbmsadvisor-package.html' title='12-21. The DBMS_ADVISOR Package'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-7480439487897029001</id><published>2008-04-13T13:30:00.000-07:00</published><updated>2008-04-13T13:41:20.609-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='stats'/><category scheme='http://www.blogger.com/atom/ns#' term='optimizer'/><title type='text'>12-8. Using the Optimizer Statistics</title><content type='html'>Go to the Enterprise Manager page for managing optimizer statistics by clicking Manage Optimizer Statistics on the Administration tabbed page. Note that &lt;span style="font-family:courier new;"&gt;GATHER_STATS_JOB&lt;/span&gt; should be enabled and for this to work, you should set &lt;span style="font-family:courier new;"&gt;STATISTICS_LEVEL&lt;/span&gt; initialization parameter is set to at least &lt;span style="font-family:courier new;"&gt;TYPICAL.&lt;/span&gt;&lt;br /&gt;&lt;span &gt;&lt;/span&gt;&lt;br /&gt;From Manage Optimizer Statistcs page, you can perform the following tasks on statistics:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color:#ff0000;"&gt;Gather optimizer statistics manually. this action submits the job that GATHER_STATS_JOB automatically does. This should be done in the case where a table's contents have changed so much between automatic gathering jobs that the statistics no longer represent the table accurately. Examples of this are a table that is truncated in the middle of the day and a batch job that runs and adds large amounts of data to a table.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Restore optimizer statistics to a point in the past. The point in time chosen must be within the optimizer statistics retention period, which defaults to 30 days.&lt;/li&gt;&lt;li&gt;&lt;span style="color:#ff0000;"&gt;Lock optimizer statistics to guarantee that the statistics for certain objects are never overwritten. This is useful if statistics have been calculated for a certain table at a time when well-representative data is present, and you want to always have those statistics. No fluctuation in the table affects the statistics if they are locked.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Unlock optimizer statistics to undo the previously done lock&lt;/li&gt;&lt;li&gt;Delete optimizer statistics to delete statistics.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-7480439487897029001?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/7480439487897029001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=7480439487897029001' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/7480439487897029001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/7480439487897029001'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/12-8-using-optimizer-statistics.html' title='12-8. Using the Optimizer Statistics'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-2078077853613781895</id><published>2008-04-12T17:59:00.000-07:00</published><updated>2008-04-13T13:27:16.772-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='stats'/><category scheme='http://www.blogger.com/atom/ns#' term='maintenance'/><category scheme='http://www.blogger.com/atom/ns#' term='query performance'/><category scheme='http://www.blogger.com/atom/ns#' term='chained rows'/><category scheme='http://www.blogger.com/atom/ns#' term='optimizer'/><title type='text'>When to re-organize a table</title><content type='html'>Notes from: &lt;a href="http://www.oracle.com/technology/oramag/oracle/02-nov/o62asktom.html"&gt;All about chained rows&lt;/a&gt; @ Ask Tom&lt;br /&gt;&lt;br /&gt;Before jumping into the topic, we need to first clarify some concepts:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;A row that doesn't fit into a block A needs to be &lt;strong&gt;"chained"&lt;/strong&gt; with another block B.&lt;/li&gt;&lt;li&gt;Now, if there was another row in the block A then it needs to be &lt;strong&gt;"migrated"&lt;/strong&gt; to another block when block A fills up.&lt;/li&gt;&lt;li&gt;a Full table scan example is &lt;span style="font-family:courier new;color:#3333ff;"&gt;SELECT * FROM t&lt;/span&gt;&lt;/li&gt;&lt;li&gt;a query using an index is for example &lt;span style="font-family:courier new;"&gt;&lt;span style="color:#3333ff;"&gt;SELECT * FROM t WHERE t.col1 = 1&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;(it uses the index on col1 to find the row where t.col1 = 1)&lt;/li&gt;&lt;/ul&gt;Migrated rows and their impact on:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Full table scan:&lt;/strong&gt; are not affected by migrated rows since it picks up data while reading the disks&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Querying migrated rows with index (instead of full table scan):&lt;/strong&gt; go through the ROWID pointer (that was left behind when a row was migrated) to find the data it needs so it adds 1 to &lt;strong&gt;Table Fetch Continue Row&lt;/strong&gt; count.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Chained rows and their impact on:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Full table scan:&lt;/strong&gt; since we can't find the data in one place only, we will need an additional read to find all the data&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Querying chained rows with index (instead of full table scan):&lt;/strong&gt; idem.&lt;/li&gt;&lt;/ul&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br /&gt;Chained rows are inevitable so there's not much we can do unless the data model could be changed so that fewer data is stored - but that's a functional problem. On the other hand, if we have lots of migrated rows that each of them would perfectly fit in one datablock, then we could potentially reorganize the table to reduce the additional disk lookup.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-2078077853613781895?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/2078077853613781895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=2078077853613781895' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2078077853613781895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2078077853613781895'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/when-to-re-organize-table.html' title='When to re-organize a table'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-7881688778879565885</id><published>2008-04-12T16:51:00.000-07:00</published><updated>2008-04-13T13:24:10.900-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='stats'/><category scheme='http://www.blogger.com/atom/ns#' term='maintenance'/><category scheme='http://www.blogger.com/atom/ns#' term='chained rows'/><category scheme='http://www.blogger.com/atom/ns#' term='optimizer'/><title type='text'>12-5. Optimizer Statistics</title><content type='html'>Optimizer statistics include table, column, index and system statistics. They provide the optimizer a statistically correct snapshot of data storage and distribution, which the optimizer uses to make decisions on how to access data.&lt;br /&gt;&lt;br /&gt;The statistics that are collected include:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Size of the table or index (in database blocks)&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SELECT &lt;span style="color:#ff0000;"&gt;blocks &lt;/span&gt;FROM dba_tables WHERE owner='hr' AND table_name='EMPLOYEES'&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Number of rows&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SELECT &lt;span style="color:#ff0000;"&gt;num_rows&lt;/span&gt; FROM dba_tables WHERE owner='hr' AND table_name='EMPLOYEES'&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Average row size and chain count (tables only)&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SELECT &lt;span style="color:#ff0000;"&gt;avg_row_len, chain_cnt&lt;/span&gt; FROM dba_tables WHERE owner='hr' AND table_name='EMPLOYEES'&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Height and number of deleted leaf rows (indexes only)&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Optimizer statistics are collected automatically by the preconfigured &lt;span style="font-family:courier new;"&gt;GATHER_STATS_JOB&lt;/span&gt;, which runs during predefined maintenance windows, &lt;strong&gt;once per day&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;A large table that experiences 10 percent growth (or reduction) within a 24-hour period is usually considered too volatile for statistics collection once per day to be sufficient. For tables that experience this level of change, Oracle recommends collecting statistics more frequently so it won't exceed 10 percent growth between collection periods.&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;Statistics can be manually collected by using Enterprise Manager or through the use of the &lt;span style="font-family:courier new;"&gt;DBMS_STATS &lt;/span&gt;package as shown here:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;SQL&gt; EXEC dbms_stats.gather_table_stats('HR', 'EMPLOYEES');&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-7881688778879565885?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/7881688778879565885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=7881688778879565885' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/7881688778879565885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/7881688778879565885'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/12-5-optimizer-statistics.html' title='12-5. Optimizer Statistics'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6266365405187860496</id><published>2008-04-02T15:52:00.000-07:00</published><updated>2008-04-27T17:05:09.333-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='undo'/><title type='text'>9-9. Monitoring and Administering Undo</title><content type='html'>In order to minimize the impact to the users, proactively monitor the alert log for the below errors and resize the undo tablespace accordingly:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;ORA-01650 unable to extend rollback segment&lt;/span&gt; error message: happens when the undo tablespace runs out of room for undo data. Make sure users commit large transactions periodically.&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;ORA-01555 snapshot too old&lt;/span&gt; error message: occurs when the query needs to access undo information that has already been overwritten. This may happen in a long-running or flashback query. Configure an appropriate undo retention interval by setting &lt;span style="font-family: courier new;"&gt;UNDO_RETENTION&lt;/span&gt; in seconds and altering tablespace to have &lt;span style="font-family: courier new;"&gt;RETENTION GUARANTEE&lt;/span&gt;. This parameter UNDO_RETENTION is only used when:&lt;br /&gt;- the undo tablespace has the AUTOEXTEND option enabled or&lt;br /&gt;- you want to set undo retention for LOBS or&lt;br /&gt;- you want to guarantee retention.&lt;/li&gt;&lt;/ul&gt;The recommendation is to set the AUTOEXTEND to true until we determined the space requirements for the undo tablespace. After that, we should disable it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6266365405187860496?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6266365405187860496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6266365405187860496' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6266365405187860496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6266365405187860496'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/9-9-monitoring-undo.html' title='9-9. Monitoring and Administering Undo'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6055626398587278003</id><published>2008-04-01T20:00:00.000-07:00</published><updated>2008-04-27T13:43:02.902-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='locks'/><title type='text'>8-28 to 8-31. Lock Conflicts Causes, Detection and Resolution</title><content type='html'>&lt;span style="font-size:180%;"&gt;Causes&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Uncommited changes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Long running transactions: &lt;/span&gt;Many applications use batch processing to perform bulk updates. Lock conflicts are common when transaction and batch processing are being performed simultaneously.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Unnecessarily high lock levels: &lt;/span&gt;Some database still lock at page or table level. As a consequence, developers writing applications to be run among multiple databases use artificially high lock levels which make Oracle behave like those less capable DBMS.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:180%;"&gt;Detection&lt;/span&gt;&lt;br /&gt;Use Blocking Sessions page in Enterprise Manager to locate lock conflicts.&lt;br /&gt;Alternatively, the Automatic Diagnostic Monitor (ADDM) also automatically detects lock conflicts and can advise you on inefficient locking trends.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Resolution&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The best way:&lt;/span&gt; inform the user and let them complete the transaction.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;In emergency:&lt;/span&gt; kill the session in session detail page (Enterprise Manager) or manually using SQL:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SQL&gt; select sid, serial#, username from v$session where sid in (select blocking_session from v$session);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The above selects sessions where its SID matches those SIDs that are blocking other sessions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SQL&gt; alter system kill session 'sid&lt;sid&gt;,serial_number&lt;serial&gt;' immediate;&lt;/serial&gt;&lt;/sid&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6055626398587278003?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6055626398587278003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6055626398587278003' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6055626398587278003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6055626398587278003'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/8-28-possible-causes-of-lock-conflicts.html' title='8-28 to 8-31. Lock Conflicts Causes, Detection and Resolution'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-2241206808281278435</id><published>2008-04-01T19:55:00.000-07:00</published><updated>2008-04-22T19:44:14.387-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='locks'/><category scheme='http://www.blogger.com/atom/ns#' term='PENDING'/><title type='text'>8-23. Lock Modes</title><content type='html'>Need more info on these locking modes (though we often don't use it since they are automatically obtained):&lt;br /&gt;&lt;ul&gt;&lt;li&gt;ROW SHARE&lt;/li&gt;&lt;li&gt;ROW EXCLUSIVE&lt;/li&gt;&lt;li&gt;SHARE&lt;/li&gt;&lt;li&gt;SHARE ROW EXCLUSIVE&lt;/li&gt;&lt;li&gt;EXCLUSIVE&lt;/li&gt;&lt;/ul&gt;Explicación extensa de Oracle: http://youngcow.net/doc/oracle10g/server.102/b14220/consist.htm&lt;br /&gt;&lt;br /&gt;Intento de explicación (cualquier cosa): http://mioracle.blogspot.com/2008/03/bloqueo-base-de-datos.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-2241206808281278435?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/2241206808281278435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=2241206808281278435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2241206808281278435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2241206808281278435'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/8-23-lock-modes.html' title='8-23. Lock Modes'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-8552044566439838800</id><published>2008-04-01T19:50:00.000-07:00</published><updated>2008-04-21T20:51:51.663-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trigger'/><title type='text'>8-20. Triggering Events</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;DML: &lt;/span&gt;INSERT, UPDATE, DELTE&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;DDL: &lt;/span&gt;CREATE, DROP, ALTER, GRANT, REVOKE, RENAME&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Database: &lt;/span&gt;LOGON, LOGOFF, STARTUP, SHUTDOWN, SERVERERROR&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-8552044566439838800?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/8552044566439838800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=8552044566439838800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/8552044566439838800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/8552044566439838800'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/8-20-triggering-events.html' title='8-20. Triggering Events'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-3633014954196257536</id><published>2008-04-01T19:47:00.000-07:00</published><updated>2008-04-21T20:40:53.603-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='locks'/><title type='text'>8-25. DML locks</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Transaction 1:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;UPDATE employees&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;SET salary=salary*1.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;WHERE employee_id=107;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Transaction 2:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; UPDATE employees&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; SET salary=salary*1.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; WHERE employee_id=106;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Each DML transaction &lt;span style="color: rgb(255, 0, 0);"&gt;must&lt;/span&gt; obtain two locks:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;An &lt;span style="font-family: courier new; color: rgb(51, 51, 255);"&gt;EXCLUSIVE&lt;/span&gt; row lock for the row or rows being updated&lt;/li&gt;&lt;li&gt;A &lt;span style="font-family: courier new; color: rgb(51, 51, 255);"&gt;ROW EXCLUSIVE&lt;/span&gt; table-level lock on the table being updated. This is to prevent another session from locking the whole table (possibly to drop or truncate it) while the change is being made.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-3633014954196257536?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/3633014954196257536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=3633014954196257536' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3633014954196257536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3633014954196257536'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/8-25-dml-locks.html' title='8-25. DML locks'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-2239972955902494132</id><published>2008-04-01T08:43:00.000-07:00</published><updated>2008-04-21T20:50:33.464-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Packages'/><title type='text'>8-18. Built-in Packages</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;DBMS_STATS:&lt;/span&gt; Gather, view, and modify optimizer statistics&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;DBMS_OUTPUT: &lt;/span&gt;Generate output from PL/SQL&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;DBMS_SESSION: &lt;/span&gt;PL/SQL access to the ALTER SESSION and SET ROLE statements&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;DBMS_RANDOM: &lt;/span&gt;Generate random numbers&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;DBMS_UTILITY: &lt;/span&gt;Get time, CPU time, and version information; compute a hash value, and perform many other miscellaneous functionalities&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;DBMS_SCHEDULER: &lt;/span&gt;Schedule functions and procedures that are callable from PL/SQL&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;DBMS_CRYPTO: &lt;/span&gt;Encrypt and decrypt database data&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;UTL_FILE: &lt;/span&gt;Read and write to operating system files from PL/SQL&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-2239972955902494132?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/2239972955902494132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=2239972955902494132' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2239972955902494132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2239972955902494132'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/8-18-built-in-packages.html' title='8-18. Built-in Packages'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-1267170712550501016</id><published>2008-03-30T20:42:00.000-07:00</published><updated>2008-03-30T20:49:41.618-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='performance'/><category scheme='http://www.blogger.com/atom/ns#' term='index'/><title type='text'>Function-based index</title><content type='html'>A function-based index indexes a funciton's return value.&lt;br /&gt;It can be a:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Built-in SQL function&lt;/li&gt;&lt;li&gt;PL/SQL function&lt;/li&gt;&lt;li&gt;A user-written function&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;It relieves the server from having to invoke the function for every key value as it performs a search on the indxed expression.&lt;/p&gt;&lt;p&gt;For example:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;CREATE INDEX table1_ix ON TABLE1(my_function(column1, column2));&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Now any query that contains the expression &lt;span style="font-family:courier new;"&gt;my_function(column1, column2)&lt;/span&gt; in the &lt;span style="font-family:courier new;"&gt;WHERE&lt;/span&gt; clause may be able to take advantage of this index (otherwise, it would force a full table scan)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-1267170712550501016?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/1267170712550501016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=1267170712550501016' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/1267170712550501016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/1267170712550501016'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/function-based-index.html' title='Function-based index'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-4582770002814385976</id><published>2008-03-30T20:28:00.000-07:00</published><updated>2008-03-30T20:35:04.873-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='index'/><title type='text'>Reversed-key indexes</title><content type='html'>From: &lt;a href="http://www.dba-oracle.com/t_reverse_key_indexes_dml_insert.htm"&gt;Oracle reverse key index tips&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It has been suggested that using reverse-key indexes will speed-up Oracle INSERT statements, especially with an increasing key, like an index on an Oracle sequence (which is used for the primary key of the target table). For large batch inserts, Oracle reverse key indexes will greatly speed-up data loads because the high-order index key has been reversed.&lt;br /&gt;&lt;br /&gt;Note: An Oracle reverse key index DOES NOT change the functionality of the index, and it's not the same as reversing the index key values.&lt;br /&gt;&lt;br /&gt;In general, an Oracle reverse key index &lt;strong&gt;relieve data block contention&lt;/strong&gt; (buffer busy waits) when inserting into any index where the index key is a monotonically increasing value which must be duplicated in the higher-level index nodes.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;With the index key reversal, only the lowest-level index node is changed, and not all of the high-order index nodes, resulting in far faster insert speed&lt;/span&gt;. For updates, Oracle updates the index nodes with each update statement.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Depending on the size of your update batch, it's often faster to drop, update and then re-build the index. If you have more than one CPU, you might consider doing a parallel index rebuild for faster speed. It splits-up the full-table scan.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-4582770002814385976?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/4582770002814385976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=4582770002814385976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4582770002814385976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4582770002814385976'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/reversed-key-indexes.html' title='Reversed-key indexes'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-5633515271092997928</id><published>2008-03-30T19:55:00.000-07:00</published><updated>2008-03-30T20:12:05.282-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rowid'/><title type='text'>ROWID</title><content type='html'>More explanation at: &lt;a href="http://youngcow.net/doc/oracle10g/server.102/b14220/datatype.htm#i6732"&gt;Overview of ROWID and UROWID Datatypes&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Oracle uses rowids internally for the construction of indexes. Each key in an index is associated with a rowid that points to the associated row's address for fast access. End users and application developers can also use rowids for several important functions:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Rowids are the fastest means of accessing particular rows.&lt;/li&gt;&lt;li&gt;Rowids can be used to see how a table is organized.&lt;/li&gt;&lt;li&gt;Rowids are unique identifiers for rows in a given table.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;There are Restricted ROWIDs and Extended ROWIDs.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:180%;"&gt;Structure of a Restricted ROWID&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a id="sthref3914" name="sthref3914"&gt;&lt;/a&gt;&lt;a id="sthref3915" name="sthref3915"&gt;&lt;/a&gt;&lt;a id="sthref3916" name="sthref3916"&gt;&lt;/a&gt;&lt;a id="sthref3917" name="sthref3917"&gt;&lt;/a&gt;&lt;a id="sthref3918" name="sthref3918"&gt;&lt;/a&gt;&lt;a id="sthref3919" name="sthref3919"&gt;&lt;/a&gt;An example ROWID is &lt;/p&gt;&lt;p&gt;&lt;a id="sthref3920" name="sthref3920"&gt;&lt;span style="font-family:courier new;"&gt;ROWID              ENAME&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;------------------ ----------&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;00000DD5.0000.0001 KRISHNAN &lt;/span&gt;&lt;/p&gt;&lt;p&gt;As shown, a restricted rowid's VARCHAR2/hexadecimal representation is in a three-piece format, &lt;strong&gt;block.row.file&lt;/strong&gt;:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The data block that contains the row (block DD5 in the example). Block numbers are relative to their datafile, not tablespace. Two rows with identical block numbers could reside in two different datafiles of the same tablespace.&lt;/li&gt;&lt;li&gt;The row in the block that contains the row (rows 0, 1, 2 in the example). Row numbers of a given block always start with 0.&lt;/li&gt;&lt;li&gt;The datafile that contains the row (file 1 in the example). The first datafile of every database is always 1, and file numbers are unique within a database.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:180%;"&gt;Structure of an Extended ROWID&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;ROWID              LAST_NAME&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;------------------ ----------&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;AAAAaoAATAAABrXAAA BORTINS&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;AAAAaoAATAAABrXAAE RUGGLES&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;AAAAaoAATAAABrXAAG CHEN&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;AAAAaoAATAAABrXAAN BLUMBERG&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a id="sthref3907" name="sthref3907"&gt;&lt;/a&gt;&lt;a id="sthref3908" name="sthref3908"&gt;&lt;/a&gt;&lt;a id="sthref3909" name="sthref3909"&gt;&lt;/a&gt;&lt;a id="sthref3910" name="sthref3910"&gt;&lt;/a&gt;An extended rowid has a four-piece format, &lt;span style="color:#ff0000;"&gt;OOOOOO&lt;/span&gt;&lt;span style="color:#ff9900;"&gt;FFF&lt;/span&gt;&lt;span style="color:#33cc00;"&gt;BBBBBB&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;RRR&lt;/span&gt;:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;OOOOOO&lt;/span&gt;&lt;/strong&gt;: The data object number that identifies the database segment (AAAAao in the example). Schema objects in the same segment, such as a cluster of tables, have the same data object number.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;span style="color:#ff9900;"&gt;FFF&lt;/span&gt;&lt;/strong&gt;: The tablespace-relative datafile number of the datafile that contains the row (file AAT in the example).&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;span style="color:#33ff33;"&gt;BBBBBB&lt;/span&gt;&lt;/strong&gt;: The data block that contains the row (block AAABrX in the example). Block numbers are relative to their datafile, not tablespace. Therefore, two rows with identical block numbers could reside in two different datafiles of the same tablespace.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;RRR&lt;/span&gt;&lt;/strong&gt;: The row in the block.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-5633515271092997928?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/5633515271092997928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=5633515271092997928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5633515271092997928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5633515271092997928'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/rowid.html' title='ROWID'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6948608952921494931</id><published>2008-03-30T17:46:00.000-07:00</published><updated>2008-04-19T21:33:37.873-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dictionary'/><title type='text'>7-44. Data Dictionary</title><content type='html'>The data dictionary can be used to query about users, objects, constraints and storage.&lt;br /&gt;&lt;br /&gt;By querying the Oracle with &lt;span style="font-weight: bold;"&gt;SELECT * FROM dictionary WHERE table_name like 'USER_%'&lt;/span&gt;, we get the list of views that the user owns.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;To find out the name of the view used to retrieve the indexes that INVENTORY user owns, we query the &lt;span style="font-weight: bold;"&gt;SELECT * FROM dictionary WHERE table_name like 'USER_IND%'&lt;/span&gt;. There should be a row where the table_name is USER_INDEXES.&lt;br /&gt;&lt;br /&gt;To list all constraints that the INVENTORY user can see, we should use the view &lt;span style="color: rgb(255, 0, 0);"&gt;ALL_CONSTRAINTS&lt;/span&gt;. We use ALL because we want to include other user's constraints and its own constraints.&lt;br /&gt;&lt;br /&gt;To list the names of tables created in your schema: &lt;span style="font-weight: bold;"&gt;SELECT table_name, tablespace_name FROM &lt;span style="color: rgb(255, 0, 0);"&gt;user_tables&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To see significant information about any sequences in the database that you have access to: &lt;span style="font-weight: bold;"&gt;SELECT sequence_name, min_value, max_value, increment_by FROM &lt;span style="color: rgb(255, 0, 0);"&gt;all_sequences&lt;/span&gt; WHERE sequence_owner IN ('MDSYS', 'XDB');&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To see which users in this database are currently able to log in: &lt;span style="font-weight: bold;"&gt;SELECT username, account_status FROM &lt;span style="color: rgb(255, 0, 0);"&gt;dba_users&lt;/span&gt; WHERE account_status = 'OPEN';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To see what information you can view about all the indexes in the database: &lt;span style="font-weight: bold;"&gt;DESCRIBE &lt;span style="color: rgb(255, 0, 0);"&gt;dba_indexes&lt;/span&gt;;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6948608952921494931?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6948608952921494931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6948608952921494931' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6948608952921494931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6948608952921494931'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/7-44-data-dictionary.html' title='7-44. Data Dictionary'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-4718079264986293800</id><published>2008-03-30T17:45:00.000-07:00</published><updated>2008-03-30T17:47:56.699-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='performance'/><category scheme='http://www.blogger.com/atom/ns#' term='index'/><title type='text'>7-29. B-Tree index leaf entry characteristics</title><content type='html'>In a B-tree index on a nonpartitioned table:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Key value are repeated if there are multiple rows that have the same key value unless the index is compressed&lt;/li&gt;&lt;li&gt;There is no index entry corresponding to a row that has all key columns that are NULL. Therefore, a WHERE clase specifying NULL will always result in a full table scan.&lt;/li&gt;&lt;li&gt;Restricted ROWID is used to point to the rows of the table because all rows belong to the same segment.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-4718079264986293800?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/4718079264986293800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=4718079264986293800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4718079264986293800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4718079264986293800'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/7-29-b-tree-index-leaf-entry.html' title='7-29. B-Tree index leaf entry characteristics'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-3282878523054360091</id><published>2008-03-30T17:02:00.000-07:00</published><updated>2008-03-30T17:16:53.696-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flashback'/><category scheme='http://www.blogger.com/atom/ns#' term='DDL'/><title type='text'>7-24. Dropping a table</title><content type='html'>Dropping a table removes:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Data&lt;/li&gt;&lt;li&gt;Table structure&lt;/li&gt;&lt;li&gt;Database triggers&lt;/li&gt;&lt;li&gt;Corresponding indexes&lt;/li&gt;&lt;li&gt;Associated object privileges&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Optional clauses for the DROP TABLE statement:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;CASCADE CONSTRAINTS: Dependent referential integrity constraints are removed as well.&lt;/li&gt;&lt;li&gt;PURGE: No flashback possible&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Some considerations:&lt;/p&gt;&lt;p&gt;If you do not use the PURGE option, the table definition, associated indexes, and triggers are placed in a recycle bin. &lt;span style="color:#ff0000;"&gt;That means that the space taken up by the table and its indexes still counts against user's allowed quota for the tablespaces involved&lt;/span&gt;. Use &lt;span style="font-family:courier new;"&gt;PURGE RECYCLEBIN&lt;/span&gt; command to empty the recycle bin or &lt;span style="font-family:courier new;"&gt;FLASHBACK TABLE&lt;/span&gt; command to recover schema objects if &lt;span style="font-family:courier new;"&gt;PURGE&lt;/span&gt; clause was not used in &lt;span style="font-family:courier new;"&gt;DROP TABLE&lt;/span&gt; statement&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-3282878523054360091?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/3282878523054360091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=3282878523054360091' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3282878523054360091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3282878523054360091'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/7-24-dropping-table.html' title='7-24. Dropping a table'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6001751149901204743</id><published>2008-03-30T16:43:00.001-07:00</published><updated>2008-03-30T17:02:50.615-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='constraint'/><title type='text'>7-19. Deferred and nondeferred constraints</title><content type='html'>Constraints are checked at the time of:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Statement execution, for &lt;span style="color:#ff0000;"&gt;nondeferred&lt;/span&gt; constraints&lt;/li&gt;&lt;li&gt;COMMIT, for deferred constraints&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;So the order is (case: DML statement, followed by COMMIT):&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Nondeferred constraints checked&lt;/li&gt;&lt;li&gt;COMMIT issued&lt;/li&gt;&lt;li&gt;Deferred constraints checked&lt;/li&gt;&lt;li&gt;COMMIT complete&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Non-deferred constraints are enforced at the end of every DML statement and a violation causes the &lt;strong&gt;statement&lt;/strong&gt; to roll back.&lt;/p&gt;&lt;p&gt;Deferred constraints are enforced when a transaction is committed and a violation causes the &lt;strong&gt;transaction&lt;/strong&gt; to roll back.&lt;/p&gt;&lt;p&gt;A constraint that is defined as deferrable can be specified as one of the following:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Initially immediable&lt;/strong&gt;: specifies that &lt;span style="color:#ff0000;"&gt;by default it must function as an immediate constraint unless explicitly set otherwise&lt;/span&gt; using SET CONSTRAINT {constraint name, ...  ALL} {IMMEDIATE  DEFERRED}&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Initially deferred&lt;/strong&gt;: specifies that by default the constraint must be enforced only at the end of the transaction.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6001751149901204743?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6001751149901204743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6001751149901204743' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6001751149901204743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6001751149901204743'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/7-19-constraint-checking.html' title='7-19. Deferred and nondeferred constraints'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6695312070998027244</id><published>2008-03-30T16:31:00.000-07:00</published><updated>2008-03-30T16:42:18.649-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='constraint'/><title type='text'>7-17. Constraint States</title><content type='html'>To better deal with situations where data must be temporarily in violation of a constraint, you can designate a constraint to be in various states.&lt;br /&gt;An integrity constraint can be ENABLED or DISABLED. This applies to newly entered data.&lt;br /&gt;An integrity constraint can VALIDATE or NOVALIDATE existing data.&lt;br /&gt;To sumarize, an integrity constraint can be in one of the four states:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;DISABLE NOVALIDATE (often used when the data is from an already validated source and the table is &lt;span style="color:#ff0000;"&gt;read-only&lt;/span&gt;, so no new data is being entered into the table).&lt;/li&gt;&lt;li&gt;DISABLE VALIDATE (used when the existing data must be validated but the data is not going to be modified and the index is not otherwise needed for performance).&lt;/li&gt;&lt;li&gt;ENABLE NOVALIDATE (used so that existing constraint violations can be corrected, and at the same time, new violations are not allowed to enter the system).&lt;/li&gt;&lt;li&gt;ENABLE VALIDATE (both new and existing data must conform to the constraint)&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6695312070998027244?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6695312070998027244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6695312070998027244' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6695312070998027244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6695312070998027244'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/7-17-constraint-states.html' title='7-17. Constraint States'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-9043039010784292559</id><published>2008-03-30T16:00:00.000-07:00</published><updated>2008-04-21T19:45:37.184-07:00</updated><title type='text'>7-6. Naming database objects</title><content type='html'>Non-quoted names are stored in uppercase and not case sensitive&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-9043039010784292559?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/9043039010784292559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=9043039010784292559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/9043039010784292559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/9043039010784292559'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/7-6-naming-database-objects.html' title='7-6. Naming database objects'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6118966106871170053</id><published>2008-03-27T20:37:00.000-07:00</published><updated>2008-03-27T20:46:01.292-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='profiles'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>6-28. Oracle Password Verification Function: VERIFY_FUNCTION</title><content type='html'>The Oracle server provides a password complexity verification function named &lt;span style="font-family:courier new;"&gt;VERIFY_FUNCTION&lt;/span&gt;. This function is created with the &lt;span style="font-family:courier new;"&gt;&lt;oracle_home&gt;/rdbms/admin/utlpwdmg.sql&lt;/span&gt; script. The password complexity verification function must be created in the &lt;span style="font-family:courier new;"&gt;SYS &lt;/span&gt;schema. It can be used as a template for you customized password verification.&lt;br /&gt;&lt;br /&gt;The supplied password verification function enforces these password restrictions:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The minimum length is four characers.&lt;/li&gt;&lt;li&gt;The password cannot be the same as the username.&lt;/li&gt;&lt;li&gt;The password must have at least one alphabetic, one numeric, and one special character.&lt;/li&gt;&lt;li&gt;The password must differ from the prvious password by at least three letters.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;In adittion to creating &lt;span style="font-family:courier new;"&gt;VERIFY_FUNCTION&lt;/span&gt;, the utlpwdmg script also changes the &lt;span style="font-family:courier new;"&gt;DEFAULT&lt;/span&gt; profile with the following &lt;span style="font-family:courier new;"&gt;ALTER PROFILE&lt;/span&gt; command:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;ALTER PROFILE default LIMIT&lt;br /&gt;PASSWORD_LIFE_TIME 60&lt;br /&gt;PASSOWRD_GRACE_TIME 10&lt;br /&gt;PASSWORD_REUSE_TIME 1800&lt;br /&gt;PASSWORD_REUSE_MAX UNLIMITED&lt;br /&gt;FAILED_LOGIN_ATTEMPTS 3&lt;br /&gt;PASSWORD_LOCK_TIME 1/1440&lt;br /&gt;PASSWORD_VERIFYH_FUNCTION verify_function;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6118966106871170053?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6118966106871170053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6118966106871170053' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6118966106871170053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6118966106871170053'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/6-28-oracle-password-verification.html' title='6-28. Oracle Password Verification Function: VERIFY_FUNCTION'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-9053852037508477734</id><published>2008-03-27T20:08:00.000-07:00</published><updated>2008-03-27T20:35:09.695-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='profiles'/><title type='text'>6-23. Profiles and users</title><content type='html'>Users are assigned only &lt;span style="color:#ff0000;"&gt;one&lt;/span&gt; profile at any given time.&lt;br /&gt;&lt;br /&gt;Profiles:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Control resource consumption&lt;/li&gt;&lt;li&gt;Manage account status and password expiration&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:180%;"&gt;Control resource consumption&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Profiles enable the administrator to control the following system resources:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;CPU&lt;/strong&gt;: may be limited on a &lt;span style="color:#3366ff;"&gt;per-session&lt;/span&gt; or &lt;span style="color:#3366ff;"&gt;per-call&lt;/span&gt; basis (in hundredths of a second)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Network/Memory&lt;/strong&gt;: each DB session consumes system memory resources and network resources (if the session is from a user who is not local to the server). You can supply: Connect time, idle time, concurrent sessions or Private SGA.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Disk I/O&lt;/strong&gt;: This limits the amount of data a user can read either at the &lt;span style="color:#3366ff;"&gt;per-session&lt;/span&gt; or &lt;span style="color:#3366ff;"&gt;per-call&lt;/span&gt; level. Reads/Session and Reads/Call place a limitation on the total number of reads from both memory and the disk.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Profiles also allow a composite limit. Composite limits are based on a weighted combination of CPU/Session, Reads/Session, Connect Time, and Private SGA. Composite limits are discussed in more detail in the Oracle Database Security Guide.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:180%;"&gt;Manage account status and password expiration&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Oracle password management is implemented with user profiles. &lt;span style="color:#ff0000;"&gt;You should set it by clicking on the Password tab in the desired Profile from Enterprise Manager.&lt;/span&gt; Profiles can provide many standard security features including the following:&lt;/p&gt;&lt;p&gt;Account locking:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The FAILED_LOGIN_ATTEMPTS parameter specifies the number of failed login attempts before the lockout of the account.&lt;/li&gt;&lt;li&gt;The PASSWORD_LOCK_TIME parameter specifies the number of days for which the account is locked after the specified number of failed login attempts.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Password aging and expiration:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The PASSWORD_LIFE_TIME parameter determines the lifetime of the password in days, after which the password expires.&lt;/li&gt;&lt;li&gt;The PASSWORD_GRACE_TIME parameter specifies a grace period in days for changing the password after the first successful login after the password has expired.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Password history (&lt;span style="color:#ff0000;"&gt;mutually exclusive parameters&lt;/span&gt;):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;PASSWORD_REUSE_TIME: specifies that a user cannot reuse a password for a given number of days&lt;/li&gt;&lt;li&gt;PASSWORD_REUSE_MAX: specifies the number of password changes that are required before the current password can be reused.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Password complexity verification:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The PASSWORD_VERIFY_FUNCTION parameter names a PL/SQL function that performs a password complexity check before a password is assigned. Passowrd verification functions must be owned by SYS user and must return a Boolean value.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-9053852037508477734?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/9053852037508477734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=9053852037508477734' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/9053852037508477734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/9053852037508477734'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/6-23-profiles-and-users.html' title='6-23. Profiles and users'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-7005942504365311496</id><published>2008-03-27T19:53:00.000-07:00</published><updated>2008-03-27T19:54:34.906-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='roles'/><title type='text'>6-21. Secure Roles</title><content type='html'>It is possible to:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Make a role nondefault&lt;/strong&gt;: when the role is granted to a user, deselect the DEFAULT check box. The user must now explicitly enable the role before the role's privileges can be exercised. This is done by issuing &lt;strong&gt;SET ROLE &lt;rolename&gt;;&lt;/strong&gt; command&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Have a role require addtional authentication&lt;/strong&gt;: they can be password, external or global&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Create secure application roles that can be enabled only by executing a PL_SQL procedure successfully&lt;/strong&gt;: The PL/SQL procedure can check things such as the user's network address, which program the user is running, time of day, or other elements needed to proerly secure a group of permissions. See &lt;a href="http://www.dba-oracle.com/t_get_ip_address_utl_inaddr_sys_context.htm"&gt;http://www.dba-oracle.com/t_get_ip_address_utl_inaddr_sys_context.htm&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-7005942504365311496?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/7005942504365311496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=7005942504365311496' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/7005942504365311496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/7005942504365311496'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/6-21-secure-roles.html' title='6-21. Secure Roles'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6645952186808784274</id><published>2008-03-27T19:52:00.000-07:00</published><updated>2008-03-27T20:03:34.636-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='roles'/><title type='text'>6-19. Predefined Roles</title><content type='html'>&lt;p&gt;There are some predefined roles such as:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;CONNECT&lt;/li&gt;&lt;li&gt;RESOURCE&lt;/li&gt;&lt;li&gt;SCHEDULER_ADMIN&lt;/li&gt;&lt;li&gt;DBA&lt;/li&gt;&lt;li&gt;SELECT_CATALOG_ROLE&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Notes:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;CONNECT is granted automatically to any user created with Enterprise Manager&lt;/li&gt;&lt;li&gt;&lt;span style="color:#ff0000;"&gt;In earlier versions of the database (before 10gR2), the CONNECT role included more privileges, such as CREATE TABLE and CREATE DATABASE LINK, which have been removed for security reasons.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Granting the RESOURCE ROLE includes granting the UNLIMITED TABLESPACE privilege&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Functional Roles&lt;/p&gt;&lt;p&gt;Other roles that authorize you to administer special functions are created when that functionality is installed. For example:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;XDBADMIN: contains the privileges required to administer XML database if that feature is installed.&lt;/li&gt;&lt;li&gt;AQ_ADMINISTRATOR_ROLE: privileges to administer advanced queuing&lt;/li&gt;&lt;li&gt;HS_ADMIN_ROLE: includes the privileges needed to administer heterogeneous services.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6645952186808784274?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6645952186808784274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6645952186808784274' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6645952186808784274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6645952186808784274'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/6-19-predefined-roles.html' title='6-19. Predefined Roles'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-5266368899278012416</id><published>2008-03-27T19:51:00.001-07:00</published><updated>2008-03-27T19:53:52.804-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='privileges'/><title type='text'>6-16. Revoking Object Privileges with GRANT OPTION</title><content type='html'>Cascading effects can be observed when revoking a system privilege that is related to a DML operation. For example, &lt;span style="color:#ff0000;"&gt;if the &lt;strong&gt;SELECT ANY TABLE&lt;/strong&gt; privilege is granted to a user, and that user has created procedures that use the table, all procedures that are contained in the user's schema must be recompiled before they can be used again&lt;/span&gt;.&lt;br /&gt;Revoking object privileges also cascades when given WITH GRANT OPTION.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-5266368899278012416?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/5266368899278012416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=5266368899278012416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5266368899278012416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5266368899278012416'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/6-16-revoking-object-privileges-with.html' title='6-16. Revoking Object Privileges with GRANT OPTION'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-4681485649122709130</id><published>2008-03-27T19:47:00.000-07:00</published><updated>2008-03-27T19:51:10.759-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='privileges'/><title type='text'>6-15. Revoking System Privileges</title><content type='html'>System privileges, which have been granted directly with a &lt;strong&gt;GRANT&lt;/strong&gt; command, can be revoked by using the &lt;strong&gt;REVOKE&lt;/strong&gt; SQL statement. &lt;strong&gt;Users with &lt;span style="color:#ff0000;"&gt;ADMIN OPTION&lt;/span&gt; for a system privilege can revoke the privilege from any other database user&lt;/strong&gt;.&lt;br /&gt;There are no cascading effects when a system privilege is revoked, regardless of whether it is given the ADMIN OPTION.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-4681485649122709130?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/4681485649122709130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=4681485649122709130' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4681485649122709130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4681485649122709130'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/6-15-revoking-system-privileges.html' title='6-15. Revoking System Privileges'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-4992051812502103630</id><published>2008-03-27T12:04:00.000-07:00</published><updated>2008-04-19T16:23:48.294-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='privileges'/><title type='text'>6-12. System privileges</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;RESTRICTED SESSION:&lt;/span&gt; allows to log in even if the database has been opened in restricted mode&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;SYSDBA and SYSOPER:&lt;/span&gt; &lt;/span&gt;These privileges allows you to shutdown, start up, and perform recovery and other administrative tasks in the database. SYSOPER allows a user to perform basic operational tasks, but without the ability to look at the user data. It includes the following system privileges:&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;STARTUP &lt;/span&gt;and &lt;span style="font-weight: bold;"&gt;SHUTDOWN&lt;/span&gt;&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;CREATE SPFILE&lt;/span&gt;&lt;br /&gt;- ALTER DATABASE &lt;span style="font-weight: bold;"&gt;OPEN/MOUNT/BACKUP&lt;/span&gt;&lt;br /&gt;- ALTER DATABASE &lt;span style="font-weight: bold;"&gt;ARCHIVELOG&lt;/span&gt;&lt;br /&gt;- ALTER DATABASE &lt;span style="font-weight: bold;"&gt;RECOVER &lt;/span&gt;(&lt;span style="color: rgb(255, 0, 0);"&gt;complete recovery only&lt;/span&gt;, Any form of incomplete recovery, such as UNTIL TIME | CHANGE | CANCEL | CONTROLFILE requires connnecting as SYSDBA)&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;RESTRICTED SESSION&lt;/span&gt;&lt;br /&gt;The SYSDBA system privilege additionally authorizes incomplete recovery and deletion of a database. Effectively, the SYSDBA system privilege allows a user to connect as the SYS user.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;DROP ANY &lt;/span&gt;object&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;CREATE&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;MANAGE&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;DROP&lt;/span&gt;, and &lt;span style="font-weight: bold;"&gt;ALTER TABLESPACE&lt;/span&gt;&lt;/li&gt;&lt;li style="font-weight: bold;"&gt;CREATE ANY DIRECTORY (&lt;span style="color: rgb(255, 0, 0);"&gt;potential security hole&lt;/span&gt;)&lt;br /&gt;&lt;/li&gt;&lt;li style="font-weight: bold;"&gt;GRANT ANY OBJECT PRIVILEGE: &lt;span style="font-weight: normal;"&gt;grant object permissions on objects you do not own&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="font-weight: bold;"&gt;ALTER DATABASE and ALTER SYSTEM: &lt;span style="font-weight: normal;"&gt;allows renaming a data file or flushing the buffer cache&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-4992051812502103630?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/4992051812502103630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=4992051812502103630' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4992051812502103630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4992051812502103630'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/6-12-system-privileges.html' title='6-12. System privileges'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-3980504544602958492</id><published>2008-03-27T12:03:00.000-07:00</published><updated>2008-04-19T16:25:32.455-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='privileges'/><category scheme='http://www.blogger.com/atom/ns#' term='accounts'/><title type='text'>6-5. Predefined Accounts: SYS and SYSTEM</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;SYS &lt;/span&gt;and &lt;span style="font-weight: bold;"&gt;SYSTEM &lt;/span&gt;accounts have the &lt;span style="font-weight: bold;"&gt;DBA &lt;span style="color: rgb(255, 0, 0);"&gt;role&lt;/span&gt;&lt;/span&gt; granted to them by default&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;SYS&lt;/span&gt; is granted &lt;span style="font-weight: bold;"&gt;SYSDBA &lt;span style="color: rgb(255, 0, 0);"&gt;privilege&lt;/span&gt;&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;SYSTEM&lt;/span&gt; is not&lt;/li&gt;&lt;li&gt;To connect to the &lt;span style="font-weight: bold;"&gt;SYS&lt;/span&gt; account, you must use the &lt;span style="font-weight: bold;"&gt;AS SYSDBA&lt;/span&gt; clase&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;SYS &lt;/span&gt;account in addition has all privileges with &lt;span style="font-weight: bold;"&gt;ADMIN OPTION&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;SYS &lt;/span&gt;account owns the &lt;span style="font-weight: bold;"&gt;data dictionary&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;SYS &lt;/span&gt;account owns the &lt;span style="font-weight: bold;"&gt;Automatic Workload Repository (AWR)&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;SYS &lt;/span&gt;account owns the &lt;span style="font-weight: bold;"&gt;data dictionary&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Only users with &lt;span style="font-weight: bold;"&gt;SYSDBA&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;SYSOPER&lt;/span&gt; privilege, are allowed to &lt;span style="color: rgb(255, 0, 0);"&gt;start up and shutdown&lt;/span&gt; the database instance&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;For more on SYS and SYSOPER go to &lt;a href="http://chengoracle.blogspot.com/2008/03/6-12-system-privileges.html"&gt;6-12. System privileges&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SYS and SYSTEM accounts are not used for routine operations. Create privileged users for that. For example, Jim has a low privilege account called &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;jim&lt;/span&gt; and a privileged account called &lt;span style="font-weight: bold; color: rgb(51, 51, 255);font-family:courier new;" &gt;jim_dba&lt;/span&gt;. This method allows the principle of least privilege to be applied, eliminates the need for account sharing, and allows individual actions to be audited.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-3980504544602958492?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/3980504544602958492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=3980504544602958492' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3980504544602958492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3980504544602958492'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/6-5-predefined-accounts-sys-and-system.html' title='6-5. Predefined Accounts: SYS and SYSTEM'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-5875479314881589006</id><published>2008-03-27T12:02:00.000-07:00</published><updated>2008-04-19T15:49:05.618-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='resource manager'/><category scheme='http://www.blogger.com/atom/ns#' term='consumer group'/><title type='text'>6-4. Database User Accounts</title><content type='html'>A database user can belong to a &lt;span style="font-weight: bold;"&gt;consumer group&lt;/span&gt; which Oracle Resource Manager uses to balance the allocation of resources (CPU, memory, etc) according to user-defined rules. More info on&lt;br /&gt;http://www.oracle.com/technology/oramag/oracle/04-nov/o64tuning.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-5875479314881589006?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/5875479314881589006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=5875479314881589006' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5875479314881589006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5875479314881589006'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/04/6-4-database-user-accounts.html' title='6-4. Database User Accounts'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-777674650837854668</id><published>2008-03-27T12:01:00.001-07:00</published><updated>2008-03-27T12:01:57.193-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='functions'/><title type='text'>Oracle/PLSQL: NVL Function</title><content type='html'>In Oracle/PLSQL, the &lt;b&gt;NVL&lt;/b&gt; function lets you substitute a value when a null value is encountered.         &lt;p&gt;The syntax for the &lt;b&gt;NVL&lt;/b&gt; function is:&lt;/p&gt;         &lt;blockquote class="definition"&gt;           &lt;p&gt;NVL( string1, replace_with )&lt;/p&gt;         &lt;/blockquote&gt;         &lt;p&gt;&lt;i&gt;string1&lt;/i&gt; is the string to test for a null value.&lt;/p&gt;         &lt;p&gt;&lt;i&gt;replace_with&lt;/i&gt; is the value returned if &lt;i&gt;string1&lt;/i&gt; is null.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-777674650837854668?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/777674650837854668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=777674650837854668' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/777674650837854668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/777674650837854668'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/oracleplsql-nvl-function.html' title='Oracle/PLSQL: NVL Function'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-5540833397561610062</id><published>2008-03-27T12:00:00.000-07:00</published><updated>2008-03-27T12:01:02.480-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PL/SQL'/><title type='text'>Null Values in Group By</title><content type='html'>&lt;span style="font-size: 100%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;It is known that Null &lt;&gt; Null. When two different NULL values are compared, the result is NULL (not TRUE), i.e. the two NULL values are not considered to be equal. Applying the same rule to the GROUP BY clause would force SQL to place each row with a NULL grouping column into a separate group by itself.&lt;p&gt;But creating a separate group for every row with a NULL in a grouping column is confusing and of no useful value, so designers wrote the SQL standard such that NULL values are considered equal for the purposes of a GROUP BY clause. Therefore, if two rows have NULL values in the same grouping columns and matching values in the remaining non-NULL grouping columns, the DBMS will group the rows together.&lt;/p&gt;&lt;p&gt;Simply put &lt;b&gt;if the grouping column contains more than one null value, the null values are put into a single group.&lt;/b&gt;&lt;/p&gt;For example, the grouped query:&lt;blockquote&gt;SELECT A, B,SUM(amount_purchased) AS 'C'&lt;br /&gt;FROM customers&lt;br /&gt;GROUP BY A, B&lt;br /&gt;ORDER BY A, B&lt;br /&gt;&lt;/blockquote&gt;will display a results table similar to&lt;br /&gt;&lt;br /&gt;&lt;table align="center" border="1" cellpadding="0" cellspacing="0" width="60%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;A&lt;/th&gt;&lt;th&gt;B&lt;/th&gt;&lt;th&gt;C&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;61438.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;101&lt;/td&gt;&lt;td&gt;196156.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;AZ&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;75815.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;AZ&lt;/td&gt;&lt;td&gt;103&lt;/td&gt;&lt;td&gt;36958.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;CA&lt;/td&gt;&lt;td&gt;101&lt;/td&gt;&lt;td&gt;78252.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LA&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;181632.0000&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;for CUSTOMERS that contain the following rows.&lt;br /&gt;&lt;br /&gt;&lt;table align="center" border="1" width="60%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;A&lt;/th&gt;&lt;th&gt;B&lt;/th&gt;&lt;th&gt;amount_purchased&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;45612.00000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;15826.00000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;101&lt;/td&gt;&lt;td&gt;45852.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;101&lt;/td&gt;&lt;td&gt;74815.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;101&lt;/td&gt;&lt;td&gt;75489.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;AZ&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;75815.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;AZ&lt;/td&gt;&lt;td&gt;103&lt;/td&gt;&lt;td&gt;36958.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;CA&lt;/td&gt;&lt;td&gt;101&lt;/td&gt;&lt;td&gt;78252.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LA&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;96385.0000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LA&lt;/td&gt;&lt;td&gt;NULL&lt;/td&gt;&lt;td&gt;85247.0000&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-5540833397561610062?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/5540833397561610062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=5540833397561610062' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5540833397561610062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5540833397561610062'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/null-values-in-group-by.html' title='Null Values in Group By'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-3791281058504752607</id><published>2008-03-16T20:25:00.000-07:00</published><updated>2008-03-16T20:46:37.651-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tnslistener'/><title type='text'>Mechanics of Connecting over TCP/IP</title><content type='html'>Expert Oracle Database Architecture 9i and 10g Programming Techniques And Solutions - page 60&lt;br /&gt;&lt;br /&gt;We’ll investigate the most common networking case: a network-based connection request over a TCP/IP connection. In this case, the client is situated on one machine and the server resides on another machine, with the two connected on a TCP/IP network. It all starts with the client. The client makes a request using the Oracle client software (a set of provided application program interfaces, or APIs) to connect to database. For example, the client issues the following:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$ sqlplus &lt;a href="mailto:scott/tiger@ora10g.localdomain"&gt;scott/tiger@ora10g.localdomain&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here, the client is the program SQL*Plus, scott/tiger is the username/password, and ora10g.localdomain is a TNS service name. TNS stands for Transparent Network Substrate and is “foundation” software built into the Oracle client that handles our remote connections, allowing for peer-to-peer communication. The TNS connection string tells the Oracle software how to connect to the remote database. Generally, the client software running on yourmachine will read a file called tnsnames.ora. This is a plain-text configuration file commonly found in the [ORACLE_HOME]\network\admin directory ([ORACLE_HOME] represents the full path to your Oracle installation directory). It will have entries that look like this:&lt;br /&gt;&lt;br /&gt;ORA10G.LOCALDOMAIN =&lt;br /&gt;(DESCRIPTION =&lt;br /&gt;(ADDRESS_LIST =&lt;br /&gt;(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))&lt;br /&gt;)&lt;br /&gt;(CONNECT_DATA =&lt;br /&gt;(SERVICE_NAME = ora10g)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;This configuration information allows the Oracle client software to map the TNS connection string we used, ora10g.localdomain, into something useful—namely, a hostname, a port on that host on which a “listener” process will accept connections, the service name of the database on the host to which we wish to connect, and so on. A service name represents groups of applications with common attributes, service level thresholds, and priorities. The number of instances offering the service is transparent to the application, and each database instance may register with the listener as willing to provide many services. So, services are mapped to physical database instances and allow the DBA to associate certain thresholds and priorities with them.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;This string, ora10g.localdomain, could have been resolved in other ways. For example, it could have been resolved using Oracle Internet Directory (OID), which is a distributed Lightweight Directory Access Protocol (LDAP) server&lt;/span&gt;, similar in purpose to DNS for hostname resolution. &lt;strong&gt;However, use of the tnsnames.ora file is common in most small to medium installations where the number of copies of such a configuration file is manageable.&lt;/strong&gt;&lt;br /&gt;Now that the client software knows where to connect to, it will open a TCP/IP socket connection to the server with the hostname localhost.localdomain on port 1521. If the DBA for our server has installed and configured Oracle Net, and has the listener listening on port 1521 for connection requests, this connection may be accepted. In a network environment, we will be running a process called the TNS listener on our server. This listener process is what will get us physically connected to our database. When it receives the inbound connection request,it inspects the request and, using its own configuration files, either rejects the request (e.g., because there is no such database, or &lt;span style="color:#ff0000;"&gt;perhaps our IP address has been disallowed connections to this host) or accepts it and goes about getting us connected.&lt;/span&gt;&lt;br /&gt;If we are making a dedicated server connection, the listener process will create a dedicated server for us. On UNIX, this is achieved via a fork() and exec() system call (the only way to create a new process after initialization in UNIX is via fork()). The new dedicated server process inherits the connection established by the listener, and we are now physically connected to the database. On Windows, the listener process requests the database process to create a new thread for a connection. Once this thread is created, the client is “redirected” to it, and we are physically connected. Diagrammatically in UNIX, it would look as shown in Figure 2-4.&lt;br /&gt;&lt;br /&gt;On the other hand, the listener will behave differently if we are making a shared server connection request. This listener process knows the dispatcher(s) we have running in the instance. As connection requests are received, the listener will choose a dispatcher process from the pool of available dispatchers. The listener will either send back to the client the connection information describing how the client can connect to the dispatcher process or, if possible, “hand off” the connection to the dispatcher process (this is operating system– and database version–dependent, but the net effect is the same). When the listener sends back the connection information, it is done because the listener is running on a well-known hostname and port on that host, but the dispatchers will be accepting connections on randomly assigned ports on that server. The listener is made aware of these random port assignments by the dispatcher and will pick a dispatcher for us. The client then disconnects from the listener and connects directly to the dispatcher. We now have a physical connection to the database.Figure 2-5 illustrates this process.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-3791281058504752607?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/3791281058504752607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=3791281058504752607' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3791281058504752607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3791281058504752607'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/mechanics-of-connecting-over-tcpip.html' title='Mechanics of Connecting over TCP/IP'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-3230209275839085830</id><published>2008-03-14T16:35:00.000-07:00</published><updated>2008-03-27T19:32:24.254-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Automatic Storage Management</title><content type='html'>5-26. What is ASM?&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Is a portable and high-performance cluster file system&lt;/li&gt;&lt;li&gt;Manages Oracle database files&lt;/li&gt;&lt;li&gt;Spreads data across disks to balance load&lt;/li&gt;&lt;li&gt;Mirrors data&lt;/li&gt;&lt;li&gt;Solves many storage management challenges&lt;/li&gt;&lt;li&gt;Allows increasing the size of DB without having to shut down the DB to adjust storage allocation&lt;/li&gt;&lt;/ul&gt;5-27. ASM: Key Features and Benefits&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Stripes files, but not logical volumes&lt;/li&gt;&lt;li&gt;Provides online disk reconfiguration and dynamic rebalancing&lt;/li&gt;&lt;li&gt;Allows for adjustable rebalancing speed&lt;/li&gt;&lt;li&gt;Provides redundancy on a per-file basis (rather than on a volume basis)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Supports only Oracle database files (data files, log files, control files, archive logs, Recovery Manager (RMAN) backup sets, etc)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Is cluster aware (so there's no need for a Cluster Logical Volume Manager or a Cluster File System)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Is automatically installed&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;5-28. ASM: Concepts&lt;/p&gt;&lt;ul&gt;&lt;li&gt;ASM disk group&lt;/li&gt;&lt;li&gt;ASM file&lt;/li&gt;&lt;li&gt;ASM disk&lt;/li&gt;&lt;li&gt;Allocation unit&lt;/li&gt;&lt;li&gt;Physical block&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-3230209275839085830?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/3230209275839085830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=3230209275839085830' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3230209275839085830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3230209275839085830'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/5-26-what-is-automatic-storage.html' title='Automatic Storage Management'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-5543966757930648945</id><published>2008-03-09T21:19:00.000-07:00</published><updated>2008-03-09T21:20:23.918-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Startup'/><title type='text'>Startup and shutdown types</title><content type='html'>&lt;a href="http://mioracle.blogspot.com/2008/02/arranque-y-parada.html"&gt;http://mioracle.blogspot.com/2008/02/arranque-y-parada.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-5543966757930648945?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/5543966757930648945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=5543966757930648945' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5543966757930648945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/5543966757930648945'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/startup-and-shutdown-types.html' title='Startup and shutdown types'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-3587078500176817296</id><published>2008-03-09T19:04:00.000-07:00</published><updated>2008-03-09T19:43:59.624-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Startup'/><title type='text'>4-21. Oracle Database Instance states</title><content type='html'>Oracle DB can be in one of the following states:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;strong&gt;SHUTDOWN&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;NOMOUNT (instance started):&lt;/strong&gt; An instance is typically started only in NOMOUNT mode during database creation, during re-creation of control files, or during certain backup and recovery scenarios.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;MOUNT (control file opened for this instance):&lt;/strong&gt; here the data files and online redo log files are NOT opened so specific maintenance tasks can be performed such as 1) renaming data files (though data files on an offline tablespace can be renamed while the db is open), 2) enabling and disabling online redo log file archiving options, 3) perfoming full database recovery, etc.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Note: a database may be left in MOUNT mode even thoug an OPEN request has been made. This may be because the database needs to be recovered in some way.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;OPEN:&lt;/strong&gt; this includes opening the online data files and the redo log files.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;You can also start up a database instance in restricted mode so that it is available to users with administrative privileges only. to start an instance in restricted mode, select the "Restrict access to database" option on the Advanced Startup Options page.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Starting an instance includes the following tasks:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Searching &lt;span style="font-family:courier new;"&gt;&lt;oracle_home&gt;/database&lt;/span&gt; for a file of a particular name in this order:&lt;/li&gt;&lt;li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;spfile&lt;sid&gt;.ora&lt;/span&gt;&lt;/li&gt;&lt;li&gt;If not found, &lt;span style="font-family:courier new;"&gt;spfile.ora&lt;/span&gt;&lt;/li&gt;&lt;li&gt;If not found, &lt;span style="font-family:courier new;"&gt;init&lt;sid&gt;.ora&lt;/span&gt;This is the file that contains initialization parameters for the instance. Specifying the &lt;span style="font-family:courier new;"&gt;PFILE&lt;/span&gt; parameter with &lt;span style="font-family:courier new;"&gt;STARTUP&lt;/span&gt; overrides the default behavior.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Allocating the SGA&lt;/li&gt;&lt;li&gt;Starting the background processes&lt;/li&gt;&lt;li&gt;Opening the &lt;span style="font-family:courier new;"&gt;alert&lt;sid&gt;.log&lt;/span&gt; file and the trace files&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-3587078500176817296?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/3587078500176817296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=3587078500176817296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3587078500176817296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3587078500176817296'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/4-21-oracle-database-instance-states.html' title='4-21. Oracle Database Instance states'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-7936415044460351176</id><published>2008-03-09T18:56:00.000-07:00</published><updated>2008-04-13T14:48:46.601-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Init Params'/><title type='text'>4-15. Initialization Parameter Files</title><content type='html'>There are two types of parameter files:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;strong&gt;Server parameter file:&lt;/strong&gt; This is the preferred type of initialization parameter file. It is a binary file that can be written to and read by the database server and &lt;em&gt;must not be edited manually&lt;/em&gt;. It resides in the server that the Oracle database is executing on, and is persistent across shutdown and startup. this is often referred to as a server parameter file (SPFILE). The default name of this file, which is automatically sought at startup, is &lt;span style="font-family:courier new;color:#ff0000;"&gt;app/user&lt;user&gt;/product/11.1.0/db_1/database/spfile&lt;sid&gt;.ora&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Text initialization parameter file:&lt;/strong&gt; This type of initialization parameter file can be read by the database server, but it is not written to by the server. The initialization parameter settings must be set and changed manually by using a text editor so that they are persistent across shutdown and startup. the default name of this file, which is automatically sought at startup if an SPFILE is not found, is &lt;span style="font-family:courier new;color:#ff0000;"&gt;init&lt;sid&gt;.ora&lt;/span&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-7936415044460351176?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/7936415044460351176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=7936415044460351176' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/7936415044460351176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/7936415044460351176'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/4-15-initialization-parameter-files.html' title='4-15. Initialization Parameter Files'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6046927806826304363</id><published>2008-03-09T18:08:00.000-07:00</published><updated>2008-03-09T18:13:46.865-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='isqlplus'/><title type='text'>4-10. Setting up iSQL*PLUS for SYSDBA and SYSOPER access</title><content type='html'>For a user to login to iSQL*PLUS as SYSDBA or SYSOPER you must set up the user in the OC4J user manager by performing the following steps:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Create a user&lt;/li&gt;&lt;li&gt;Grant the webDba role to the user&lt;/li&gt;&lt;/ol&gt;&lt;p&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$ cd $ORACLE_HOME/oc4j/j2ee/isqlplus/application-deployments/isqlplus&lt;br /&gt;$ $JAVA_HOME/bin/java -Djava.security.properties=$ORACLE_HOME/oc4j/j2ee/home/config/jazn.security.props -jar $ORACLE_HOME/oc4j/j2ee/home/jazn.jar -user "iSQL*Plus DBA/admin" -password welcome -shell&lt;br /&gt;&lt;br /&gt;JAZN&gt; add user "iSQL*Plus DBA" username password&lt;br /&gt;JAZN&gt; grantrole webDba "iSQL*Plus DBA" username&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6046927806826304363?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6046927806826304363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6046927806826304363' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6046927806826304363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6046927806826304363'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/4-10-setting-up-isqlplus-for-sysdba-and.html' title='4-10. Setting up iSQL*PLUS for SYSDBA and SYSOPER access'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-6428118806946500422</id><published>2008-03-09T17:55:00.000-07:00</published><updated>2008-03-09T18:08:25.523-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='isqlplus'/><title type='text'>4-9. Using iSQL*Plus</title><content type='html'>ISQL*Plus has a server-side listener process that must be started before you can connect with a browser. To start this server process, use:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;isqlplusctl start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After thes server process is started, connect to it by entering the following URL in a browser:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://host:port/isqlplus"&gt;http://host:port/isqlplus&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The port number that is used by iSQL*Plus is usually 5560 unless Oracle Universal Installer detects that something is already using that port. Check $ORACLE_HOME/install/portlist.ini to find the port used by iSQL*PLUS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-6428118806946500422?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/6428118806946500422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=6428118806946500422' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6428118806946500422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/6428118806946500422'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/4-9-using-isqlplus.html' title='4-9. Using iSQL*Plus'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-721426629807657508</id><published>2008-03-09T16:22:00.000-07:00</published><updated>2008-03-09T17:52:17.241-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Management'/><title type='text'>4-3. Management Framework</title><content type='html'>There are three major components of the Oracle database management framework:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The database instance that is being managed&lt;/li&gt;&lt;li&gt;A listener that allows connections to the database&lt;/li&gt;&lt;li&gt;The management interface. This may be either a management agent running on the database server (which connects it to Oracle Enterprise Manager Grid Control) or the stand-alone Oracle Enterprise Manager Database Control. this is also referred to as Database Console.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Each of these componenets must be explicitly started before you can use the services of the component and must be shut down cleanly when shutting down the server hosting the Oracle database.&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;Start up order is important. these components must be started in this order:&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Management interface. After this is activated, it can be used to start the other components. Use &lt;span style="font-family:courier new;"&gt;emctl start dbconsole&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Database instance. Either from dbconsole or executing&lt;span style="font-family:courier new;"&gt; STARTUP &lt;/span&gt;command within SQL*PLUS&lt;/li&gt;&lt;li&gt;Listener. Notice that the listener could actually be started before the database instance but there is no point of starting a listener if there is no instance running. Use &lt;span style="font-family:courier new;"&gt;lsnrctl start&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-721426629807657508?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/721426629807657508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=721426629807657508' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/721426629807657508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/721426629807657508'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/4-3-management-framework.html' title='4-3. Management Framework'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-4245271507249525475</id><published>2008-03-09T15:47:00.000-07:00</published><updated>2008-03-09T16:21:25.137-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dbca'/><title type='text'>3-14. Using the DBCA to Delete a Database</title><content type='html'>&lt;span style="color:#ff0000;"&gt;To delete (or configure) a database in UNIX or Linux, you must set ORACLE_SID in the shell from which DBCA is launched.&lt;/span&gt; Start the DBCA by entering dbca in a terminal window, and click Next on the Welcome page. to delete the database, perform the following steps:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;On the Operations page, select Delete a Database, and click Next.&lt;/li&gt;&lt;li&gt;Select the database that you wanted to delete (in class, hist), and click Finish.&lt;/li&gt;&lt;li&gt;Click Yes to confirm your deletion.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Dropping a database involves removing its data files, redo log files, control files, and initialization parameter files. The DROP DATABASE statement deletes all control files and all other database files listed in the control file. To use the DROP DATABASE statement successfully, all the following conditions must apply:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The database must be mounted and closed.&lt;/li&gt;&lt;li&gt;The database must be mounted exclusively - not in shared mode.&lt;/li&gt;&lt;li&gt;The database must be mounted as RESTRICTED.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;An example of this statement is:&lt;/p&gt;&lt;p&gt;DROP DATABASE;&lt;/p&gt;&lt;p&gt;The DROP DATABASE statement has no effect on archieved log files nor does it have any effect on copies or backups of the database. It is best to use Recovery Manager (RMAN) to delete such files. If the database is on raw disks, then the actual raw disk special files are not deleted.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-4245271507249525475?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/4245271507249525475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=4245271507249525475' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4245271507249525475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/4245271507249525475'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/3-14-using-dbca-to-delete-database.html' title='3-14. Using the DBCA to Delete a Database'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-3243630003521932874</id><published>2008-03-03T07:56:00.001-08:00</published><updated>2008-03-09T15:44:21.941-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation options'/><title type='text'>2-19. Installation Option: Silent Mode</title><content type='html'>To install and configure Oracle products with OUI in silent mode, perform the following steps:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Create the &lt;span style="font-family:georgia;"&gt;&lt;span style="font-family:courier new;"&gt;oraInst.loc&lt;/span&gt; &lt;/span&gt;file, if it does not already exist.&lt;/li&gt;&lt;li&gt;Prepare a response file based on file templates that are delivered with the Oracle software OR record a response file:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;.runInstaller -record -destinationFile &lt;filename&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Run OUI in silent or suppressed mode.&lt;/li&gt;&lt;li&gt;If required, run NetCA and DBCA in silent mode.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;For details, check Oracle 10g: Administration Workshop I, page 2-19&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-3243630003521932874?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/3243630003521932874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=3243630003521932874' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3243630003521932874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/3243630003521932874'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/installation-option-silent-mode.html' title='2-19. Installation Option: Silent Mode'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-7632230462582188627</id><published>2008-03-03T07:46:00.000-08:00</published><updated>2008-03-09T15:43:04.803-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation options'/><title type='text'>2-18. Oracle Advanced Installation Options</title><content type='html'>&lt;ul&gt;&lt;li&gt;With OUI, you can create configurations that use Automatic Storage Management.&lt;/li&gt;&lt;li&gt;You can install and configure the Enterprise Manager (EM) framework. Oracle Enterprise Manager Database Control is installed in the same Oracle home as the database and is configured to run on a stand-alone OC4J instance. &lt;span style="color:#ff0000;"&gt;You have to perform a separate installation to get EM central management capabilities.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;if you choose to use Oracle Enterprise Manager Database Control, &lt;span style="color:#ff0000;"&gt;you can optionally configure the database to use the Oracle-recommended default backup strategy.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;If you choose to use Oracle Enterprise Manager Database Control during the installation, &lt;span style="color:#ff0000;"&gt;you can configure Enterprise Manager to send e-mail alerts to an e-mail address that you specify.&lt;/span&gt;&lt;span style="color:#ff0000;"&gt; These alerts can include issues such as disk space reaching a critical limit or a database shutting down unexpectedly.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;The Oracle Database 10g installation supports RAC features, particularly the installation of Cluster Ready Services (CRS)&lt;/li&gt;&lt;li&gt;Oracle homes can be cloned by using the Enterprise Configuration Management tool. This tool enables users to create clone requests and then schedule and process them. This tool is available via EM Grid Control.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-7632230462582188627?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/7632230462582188627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=7632230462582188627' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/7632230462582188627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/7632230462582188627'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/oracle-advanced-installation-options.html' title='2-18. Oracle Advanced Installation Options'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-2931715876036939210</id><published>2008-03-03T05:12:00.001-08:00</published><updated>2008-03-09T15:42:21.378-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Command line tools'/><title type='text'>2-5. Command line tools</title><content type='html'>To administer Enterprise Manager, use:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;emctl start  status  set  stop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To stop and start iSQL*Plus, use:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;isqlplusctl start  stop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To administer the listener, use:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;lsnrctl help start  status  stop&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-2931715876036939210?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/2931715876036939210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=2931715876036939210' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2931715876036939210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2931715876036939210'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/command-line-tools.html' title='2-5. Command line tools'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-8501182043855590443</id><published>2008-03-03T04:58:00.000-08:00</published><updated>2008-03-09T15:39:58.961-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='segments'/><title type='text'>1-21. Segments</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Data segments:&lt;/strong&gt; Each nonclustered, non-indexed-organized table has a data segment. All of the table's data is stored in the extents of its data segment. For a partitioned table, each partition has a data segment. Each cluster has a data segment. The data of every table in the cluster is stored in the cluster's data segment.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Index segments:&lt;/strong&gt; each index has an index segment that stores all of its data. For a partitioned index. each partition has an index segment.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Undo segments:&lt;/strong&gt; one UNDO tablespace is created by the database administrator to temporarily store undo information. This information in an undo segment is used to generate read-consistent database information and, during database recovery, to roll back uncommitted transactions for users.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Temporary segments:&lt;/strong&gt; Temporary segments are created by the Oracle database when a SQL statement needs a temporary work area to complete execution. When the statement finishes execution, the temporary segment's extents are returned to the instance for future use. &lt;span style="color:#ff0000;"&gt;Specify a default temporary tablespace for every user or a default temporary tablespace, which is used databasewide.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-8501182043855590443?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/8501182043855590443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=8501182043855590443' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/8501182043855590443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/8501182043855590443'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/temporary-segments.html' title='1-21. Segments'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-2589529480264705406</id><published>2008-03-03T04:54:00.000-08:00</published><updated>2008-03-09T15:35:42.941-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='performance'/><category scheme='http://www.blogger.com/atom/ns#' term='data block'/><title type='text'>1-19. Data block size</title><content type='html'>The size of the data block can be set at the time of the creation of the database. The default size of 8 KB is adequate for most databases. &lt;span style="color:#ff0000;"&gt;If your database supports a data warehouse application that has large tables and indexes, then a larger block size may be beneficial.&lt;br /&gt;If your database supports a transactional application where reads and writes are random, then specifying a smaller block size may be beneficial.&lt;/span&gt; The maximum block size depends on your OS. The minimum Oracle block size is 2 KB and should rarely (if ever) be used.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-2589529480264705406?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/2589529480264705406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=2589529480264705406' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2589529480264705406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/2589529480264705406'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/data-block-size.html' title='1-19. Data block size'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3205618955630808671.post-1701392682220342061</id><published>2008-03-03T04:45:00.000-08:00</published><updated>2008-03-09T15:32:50.226-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tablespace'/><title type='text'>1-17. Tablespaces</title><content type='html'>A database is divided into logical storage units called tablespaces, which group related logical structures together. For example, tablespaces commonly group all of an application's objetcs to simplify some administrative operations. &lt;span style="color:#ff0000;"&gt;You may have a tablespace for application data and an additional one for application indexes.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3205618955630808671-1701392682220342061?l=chengoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chengoracle.blogspot.com/feeds/1701392682220342061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3205618955630808671&amp;postID=1701392682220342061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/1701392682220342061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3205618955630808671/posts/default/1701392682220342061'/><link rel='alternate' type='text/html' href='http://chengoracle.blogspot.com/2008/03/tablespaces.html' title='1-17. Tablespaces'/><author><name>Cheng Lee</name><uri>http://www.blogger.com/profile/12625693269929055755</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh3.google.com/cheng.lee/Rl5Drm_bI4E/AAAAAAAACoY/mfZFSqmUsiM/s160-c/ElCaNDelColorado.jpg'/></author><thr:total>0</thr:total></entry></feed>
