<?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:blogger='http://schemas.google.com/blogger/2008' 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-7342975493006246574</id><updated>2024-09-14T00:16:17.115-07:00</updated><category term="11g R2"/><category term="AIX commands"/><category term="AIX oracle commands"/><category term="ASM"/><category term="ASM Administration"/><category term="ASM Installation"/><category term="ASM architecture"/><category term="IBM AIX Commands for Oracle DBAs"/><category term="IBM AIX commands"/><category term="Oracle AIX commands"/><category term="database compression"/><category term="database compression types"/><category term="iostat"/><category term="netstat"/><category term="oracle 10g cloning"/><category term="oracle 11g cloning"/><category term="oracle database"/><category term="physical cloning"/><category term="rman cloning"/><category term="types of joins"/><category term="vmstat"/><title type='text'>ORACLE</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7342975493006246574.post-5889801994068941675</id><published>2013-04-25T19:28:00.003-07:00</published><updated>2013-04-25T19:28:52.509-07:00</updated><title type='text'>Resume failed rman duplicate</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
RMAN automatically optimizes a&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;command that is a repeat of a previously failed&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;command. The repeat&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;command notices which datafiles were successfully copied earlier and does not copy them again. This applies to all forms of duplication, whether they are backup-based (with or without a target connection) or active database duplication. The automatic optimization of the&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;command can be especially useful when a failure occurs during the duplication of very large databases.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
If a&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;operation fails, you need only run the&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;comand again, using the same parameters contained in the original&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;command.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
The second&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;operation locates the datafiles that were successfully duplicated by the initial&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;command. Restores only the missing or incomplete datafiles, thereby avoiding re-copying and restoring all the datafiles.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
Before you attempt to resume a failed&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;operation, you must reset the auxiliary instance to&amp;nbsp;&lt;code&gt;NOMOUNT&lt;/code&gt;&amp;nbsp;mode. One way to do this is to exit RMAN, use SQL*Plus to reset the auxiliary instance to&amp;nbsp;&lt;code&gt;NOMOUNT&lt;/code&gt;&amp;nbsp;mode, start RMAN and then repeat the&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;command. If you do not want RMAN to automatically recover from a failed&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;operation, specify the keyword&amp;nbsp;&lt;code&gt;NORESUME&lt;/code&gt;&amp;nbsp;to disable the functionality. Using the keyword&lt;code&gt;NORESUME&lt;/code&gt;&amp;nbsp;in the first invocation of&amp;nbsp;&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;prevents a subsequent&lt;code&gt;DUPLICATE&lt;/code&gt;&amp;nbsp;command for the new database from using this automatic optimization.&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/5889801994068941675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arun-oracle.blogspot.com/2013/04/resume-failed-rman-duplicate.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/5889801994068941675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/5889801994068941675'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/2013/04/resume-failed-rman-duplicate.html' title='Resume failed rman duplicate'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7342975493006246574.post-2481753330042060727</id><published>2013-04-08T04:51:00.000-07:00</published><updated>2013-04-08T04:51:25.598-07:00</updated><title type='text'>Cloning Oracle Database Without Connecting Catalog and Target using rman</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Cloning oracle database without accessing target database or rman catalog. Only we need is a full rman &amp;nbsp;backup including controlfile and parameter file. Below given is the step to achieve this.&lt;br /&gt;
&lt;br /&gt;
Step 1:Take Backup of Target database to a specific destination.&lt;br /&gt;
&lt;br /&gt;
run {&lt;br /&gt;
allocate channel t1 type disk;&lt;br /&gt;
backup current controlfile format &#39;/tem/bck/ctl_%d_%u_%s&#39;;&lt;br /&gt;
backup database format &#39;/tem/bck/data_%d_%u_%s&#39;;&lt;br /&gt;
backup archivelog all format &#39;/temp/bck/arch_%d_%u_%s&#39;;&lt;br /&gt;
release channel t1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/2481753330042060727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arun-oracle.blogspot.com/2013/04/cloning-oracle-database-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/2481753330042060727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/2481753330042060727'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/2013/04/cloning-oracle-database-without.html' title='Cloning Oracle Database Without Connecting Catalog and Target using rman'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7342975493006246574.post-7396218297585869046</id><published>2012-08-21T01:04:00.001-07:00</published><updated>2012-08-21T01:05:40.820-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="11g R2"/><category scheme="http://www.blogger.com/atom/ns#" term="database compression"/><category scheme="http://www.blogger.com/atom/ns#" term="database compression types"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle database"/><title type='text'>11g Release 2 RMAN Backup Compression</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;post-bodycopy clearfix&quot;&gt;
Oracle 11g Release 2 introduced 
compression algorithm levels which can be used for compressing table 
data, Data Pump exports and RMAN backups as well.&lt;br /&gt;
The compression levels are BASIC, LOW, MEDIUM and HIGH and each 
affords a trade off related to backup througput and the degree of 
compression afforded.&lt;br /&gt;
To use this option, we can run the following RMAN commands&lt;br /&gt;
RMAN&amp;gt; CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET;&lt;br /&gt;
followed by ..&lt;br /&gt;
RMAN&amp;gt;  CONFIGURE COMPRESSION ALGORITHM ‘HIGH’;&lt;br /&gt;
or&lt;br /&gt;
RMAN&amp;gt;  CONFIGURE COMPRESSION ALGORITHM ‘MEDIUM’;&lt;br /&gt;
or&lt;br /&gt;
RMAN&amp;gt;  CONFIGURE COMPRESSION ALGORITHM ‘LOW’;&lt;br /&gt;
or&lt;br /&gt;
RMAN&amp;gt;  CONFIGURE COMPRESSION ALGORITHM ‘BASIC’;&lt;br /&gt;
Tests carried out on a small 1.5 GB database returned compression 
ratios of about 4.7 at best case. However, it should be noted that use 
of LOW, MEDIUM and HIGH requires the Advanced Compression license. The 
backupset size and backup durations are shown below.&lt;br /&gt;
&lt;b&gt;Compression Level ‘HIGH’&lt;/b&gt;&lt;br /&gt;
backupset size: 226.18M&lt;br /&gt;
time: 00:02:21&lt;br /&gt;
&lt;b&gt;Compression Level ‘Medium’&lt;/b&gt;&lt;br /&gt;
backupset size: 293.80M&lt;br /&gt;
time: 00:00:30&lt;br /&gt;
&lt;b&gt;Compression Level ‘Low’&lt;/b&gt;&lt;br /&gt;
backupset size: 352.59M&lt;br /&gt;
time: 00:00:20&lt;br /&gt;
&lt;b&gt;Compression Level ‘Basic’&lt;/b&gt;&lt;br /&gt;
backupset size:  276.55M&lt;br /&gt;
time: 00:00:50&lt;br /&gt;
To summarise we can conclude:&lt;br /&gt;
LOW – corresponds to LZO (11gR2) – smallest compression ratio, fastest&lt;br /&gt;
MEDIUM – corresponds to ZLIB (11gR1) – good compression ratio, slower than LOW&lt;br /&gt;
HIGH – corresponds to unmodified BZIP2  (11gR2) – highest compression ratio, slowest&lt;br /&gt;
BASIC (which is free) – corresponds to BZIP2 (10g style compression) – compression ratio in the range of  MEDIUM, but slower&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/7396218297585869046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arun-oracle.blogspot.com/2012/08/11g-release-2-rman-backup-compression.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/7396218297585869046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/7396218297585869046'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/2012/08/11g-release-2-rman-backup-compression.html' title='11g Release 2 RMAN Backup Compression'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7342975493006246574.post-9201637869947755353</id><published>2010-08-05T23:01:00.000-07:00</published><updated>2010-08-05T23:02:44.150-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iostat"/><category scheme="http://www.blogger.com/atom/ns#" term="netstat"/><category scheme="http://www.blogger.com/atom/ns#" term="vmstat"/><title type='text'>iostat,vmstat,netstat</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;iostat,vmstat,netstat&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;iostat , vmstat and netstat are three most commonly used tools for performance monitoring . These comes built in with the operating system and are easy to use .iostat stands for input output statistics and reports statistics for i/o devices such as disk drives . vmstat gives the statistics for virtual Memory and netstat gives the network statstics .&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;Following paragraphs describes these tools and their usage for performance monitoring.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;Table of content :&lt;br /&gt;
1. Iostat&lt;br /&gt;
* Syntax&lt;br /&gt;
* example&lt;br /&gt;
* Result and Solutions&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;2. vmstat&lt;br /&gt;
* syntax&lt;br /&gt;
* example&lt;br /&gt;
* Result and Solutions&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;3. netstat&lt;br /&gt;
* syntax&lt;br /&gt;
* example&lt;br /&gt;
* Result and Solutions&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Input Output statistics ( iostat )&lt;/strong&gt;&lt;br /&gt;
iostat reports terminal and disk I/O activity and CPU utilization. The first line of output is for the time period since boot &amp;amp; each subsequent line is for the prior interval . Kernel maintains a number of counters to keep track of the values.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;iostat’s activity class options default to tdc (terminal, disk, and CPU). If any other option/s are specified, this default is completely overridden i.e. iostat -d will report only statistics about the disks.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;syntax:&lt;/strong&gt;&lt;br /&gt;
Basic synctax is iostat interval count&lt;br /&gt;
option – let you specify the device for which information is needed like disk , cpu or terminal. (-d , -c , -t or -tdc ) . x options gives the extended statistics .&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;interval – is time period in seconds between two samples . iostat 4 will give data at each 4 seconds interval.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;count – is the number of times the data is needed . iostat 4 5 will give data at 4 seconds interval 5 times&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;Example&lt;/div&gt;&lt;pre&gt;$ iostat -xtc 5 2
                          extended disk statistics       tty         cpu
     disk r/s  w/s Kr/s Kw/s wait actv svc_t  %w  %b  tin tout us sy wt id
     sd0   2.6 3.0 20.7 22.7 0.1  0.2  59.2   6   19   0   84  3  85 11 0
     sd1   4.2 1.0 33.5  8.0 0.0  0.2  47.2   2   23
     sd2   0.0 0.0  0.0  0.0 0.0  0.0   0.0   0    0
     sd3  10.2 1.6 51.4 12.8 0.1  0.3  31.2   3   31

The fields have the following meanings:
      disk    name of the disk
      r/s     reads per second
      w/s     writes per second
      Kr/s    kilobytes read per second
      Kw/s    kilobytes written per second
      wait    average number of transactions waiting for service (Q length)
      actv    average number of transactions  actively being serviced
(removed  from  the  queue but not yet completed)
      %w      percent of time there are transactions  waiting
              for service (queue non-empty)
      %b      percent of time the disk is busy  (transactions
                  in progress)&lt;/pre&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Results and Solutions&lt;/strong&gt;&lt;br /&gt;
The values to look from the iostat output are:&lt;br /&gt;
* Reads/writes per second (r/s , w/s)&lt;br /&gt;
* Percentage busy (%b)&lt;br /&gt;
* Service time (svc_t)&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;If a disk shows consistently high reads/writes along with , the percentage busy (%b) of the disks is greater than 5 percent, and the average service time (svc_t) is greater than 30 milliseconds, then one of the following action needs to be taken&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;1.) Tune the application&lt;/strong&gt;&amp;nbsp;to use disk i/o more efficiently by modifying the disk queries and using available cache facilities of application servers .&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;2.) Spread the file system&amp;nbsp;&lt;/strong&gt;of the disk on to two or more disk using disk striping feature of volume manager /disksuite etc.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;3.) Increase the system parameter&lt;/strong&gt;&amp;nbsp;values for inode cache , ufs_ninode , which is Number of inodes to be held in memory. Inodes are cached globally (for UFS), not on a per-file system basis&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;4.) Move the file system&lt;/strong&gt;&amp;nbsp;to another faster disk /controller or replace existing disk/controller to a faster one.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Virtual Memory Statistics ( vmstat )&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;vmstat – vmstat reports virtual memory statistics of process, virtual memory, disk, trap, and CPU activity.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;On multicpu systems , vmstat averages the number of CPUs into the output. For per-process statistics .Without options, vmstat displays a one-line summary of the virtual memory activity since the system was booted.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;syntax&lt;/strong&gt;&lt;br /&gt;
Basic synctax is vmstat interval count&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;option – let you specify the type of information needed such as paging -p , cache -c ,.interrupt -i etc.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;if no option is specified information about process , memory , paging , disk ,interrupts &amp;amp; cpu is displayed .&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;interval – is time period in seconds between two samples . vmstat 4 will give data at each 4 seconds interval.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;count – is the number of times the data is needed . vmstat 4 5 will give data at 4 seconds interval 5 times.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;br /&gt;
The following command displays a summary of what the system&lt;br /&gt;
is doing every five seconds.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;example% vmstat 5&lt;/div&gt;&lt;pre&gt;procs  memory          page             disk      faults        cpu
     r b w swap  free re mf pi p fr de sr s0 s1 s2 s3  in  sy  cs us sy id
     0 0 0 11456 4120 1  41 19 1  3  0  2  0  4  0  0  48 112 130  4 14 82
     0 0 1 10132 4280 0   4 44 0  0  0  0  0 23  0  0 211 230 144  3 35 62
     0 0 1 10132 4616 0   0 20 0  0  0  0  0 19  0  0 150 172 146  3 33 64
     0 0 1 10132 5292 0   0  9 0  0  0  0  0 21  0  0 165 105 130  1 21 78

The fields of vmstat&#39;s display are
&lt;strong&gt;procs&lt;/strong&gt;
r     in run queue
b     blocked for resources I/O, paging etc.
w     swapped
memory (in Kbytes)
swap -  amount  of  swap   space   currently   available
free   - size of the free list

page ( in units per second).
re    page reclaims -  see  -S  option  for  how  this
field is modified.
mf    minor faults -  see  -S  option  for  how    this
field is modified.
pi    kilobytes paged in
po    kilobytes paged out
fr    kilobytes freed
de    anticipated short-term memory shortfall (Kbytes)
sr    pages scanned by clock algorithm
disk  ( operations per second )
There are  slots for up to four disks,
 labeled with a single letter and number.
The letter indicates  the  type  of disk
 (s = SCSI, i = IPI, etc).
The number is  the logical unit number.

faults
in    (non clock) device interrupts
sy    system calls
cs    CPU context switches

cpu  -   breakdown of percentage usage of CPU  time.
 On multiprocessors  this is an a
 average across all processors.
us    user time
sy    system time
id    idle time&lt;/pre&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Results and Solution from iostat&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;A. CPU issues&lt;/strong&gt;&lt;br /&gt;
Following columns has to be watched to determine if there is any cpu issue&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;1. Processes in the run queue (procs r)&lt;br /&gt;
2. User time (cpu us)&lt;br /&gt;
3. System time (cpu sy)&lt;br /&gt;
4. Idle time (cpu id)&lt;/div&gt;&lt;pre&gt;procs      cpu
     r b w    us sy  id
     0 0 0    4  14  82
     0 0 1    3  35  62
     0 0 1    3  33  64
     0 0 1    1  21  78&lt;/pre&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Problem symptoms&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;A.) Number of processes in run queue&lt;/strong&gt;&lt;br /&gt;
1.) If the number of processes in run queue (procs r) are consistently greater than the number of CPUs on the system it will slow down system as there are more processes then available CPUs .&lt;br /&gt;
2.) if this number is more than four times the number of available CPUs in the system then system is facing shortage of cpu power and will greatly slow down the processess on the system.&lt;br /&gt;
3.) If the idle time (cpu id) is consistently 0 and if the system time (cpu sy) is double the user time (cpu us) system is facing shortage of CPU resources.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Resolution&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;
Resolution to these kind of issues involves tuning of application procedures to make efficient use of cpu and as a last resort increasing the cpu power or adding more cpu to the system.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;B. Memory Issues&lt;/strong&gt;&lt;br /&gt;
Memory bottlenecks are determined by the scan rate (sr) . The scan rate is the pages scanned by the clock algorithm per second. If the scan rate (sr) is continuously over 200 pages per second then there is a memory shortage.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Resolution&lt;/strong&gt;&lt;br /&gt;
1. Tune the applications &amp;amp; servers to make efficient use of memory and cache.&lt;br /&gt;
2. Increase system memory .&lt;br /&gt;
3. Implement priority paging in s in pre solaris 8 versions by adding line “set priority paging=1″ in&lt;br /&gt;
/etc/system. Remove this line if upgrading from Solaris 7 to 8 &amp;amp; retaining old /etc/system file.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Network Statistics (netstat)&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;netstat displays the contents of various network-related data structures in depending on the options selected.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Syntax&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;netstat&lt;br /&gt;
multiple options can be given at one time.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;Options&lt;br /&gt;
-a – displays the state of all sockets.&lt;br /&gt;
-r – shows the system routing tables&lt;br /&gt;
-i – gives statistics on a per-interface basis.&lt;br /&gt;
-m – displays information from the network memory buffers. On Solaris, this shows statistics&lt;br /&gt;
for STREAMS&lt;br /&gt;
-p [proto] – retrieves statistics for the specified protocol&lt;br /&gt;
-s – shows per-protocol statistics. (some implementations allow -ss to remove fileds with a value of 0 (zero) from the display.)&lt;br /&gt;
-D – display the status of DHCP configured interfaces.&lt;br /&gt;
-n do not lookup hostnames, display only IP addresses.&lt;br /&gt;
-d (with -i) displays dropped packets per interface.&lt;br /&gt;
-I [interface] retrieve information about only the specified interface.&lt;br /&gt;
-v be verbose&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;interval – number for continuous display of statictics.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Example&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;
$netstat -rn&lt;/div&gt;&lt;pre&gt;Routing Table: IPv4
    Destination           Gateway               Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.1.0         192.168.1.11          U        1   1444      le0
224.0.0.0           192.168.1.11          U        1   0            le0
default             192.168.1.1           UG       1   68276
127.0.0.1           127.0.0.1             UH       1   10497     lo0&lt;/pre&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;This shows the output on a Solaris machine who’s IP address is 192.168.1.11 with a default router at 192.168.1.1&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Results and Solutions&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;A.) Network availability&lt;/strong&gt;&lt;br /&gt;
The command as above is mostly useful in troubleshooting network accessibility issues . When outside network is not accessible from a machine check the following&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;1. if the default router ip address is correct&lt;br /&gt;
2. you can ping it from your machine.&lt;br /&gt;
3. If router address is incorrect it can be changed with route add command. See man route for more information.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;route command examples&lt;/strong&gt;&lt;br /&gt;
$route add default&lt;br /&gt;
$route add 192.0.2.32&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;If the router address is correct but still you can’t ping it there may be some network cable /hub/switch problem and you have to try and eliminate the faulty component .&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;B.) Network Response&lt;/strong&gt;&lt;br /&gt;
$ netstat -i&lt;/div&gt;&lt;pre&gt;Name Mtu  Net/Dest Address  Ipkts  Ierrs  Opkts Oerrs  Collis  Queue
lo0 8232  loopback localhost  77814  0  77814  0  0  0
hme0 1500  server1 server1  10658  3  48325  0  279257  0&lt;/pre&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;This option is used to diagnose the network problems when the connectivity is there but it is slow in response .&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;Values to look at:&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;* Collisions (Collis)&lt;br /&gt;
* Output packets (Opkts)&lt;br /&gt;
* Input errors (Ierrs)&lt;br /&gt;
* Input packets (Ipkts)&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;The above values will give information to workout&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;i. Network collision rate as follows :&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;Network collision rate = Output collision counts / Output packets&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;Network-wide collision rate greater than 10 percent will indicate&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;* Overloaded network,&lt;br /&gt;
* Poorly configured network,&lt;br /&gt;
* Hardware problems.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;ii. Input packet error rate as follows :&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;Input Packet Error Rate = Ierrs / Ipkts.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;If the input error rate is high (over 0.25 percent), the host is dropping packets. Hub/switch cables etc needs to be checked for potential problems.&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;C. Network socket &amp;amp; TCP Connection state&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;Netstat gives important information about network socket and tcp state . This is very useful in&lt;br /&gt;
finding out the open , closed and waiting network tcp connection .&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;Network states returned by netstat are following&lt;/div&gt;&lt;pre&gt;CLOSED       ----  Closed.  The socket  is  not  being used.
LISTEN       ----  Listening for incoming connections.
SYN_SENT     ----  Actively trying to  establish  connection.
SYN_RECEIVED ---- Initial synchronization of the connection under way.
ESTABLISHED  ----  Connection has been established.
CLOSE_WAIT   ----  Remote shut down; waiting  for  the socket to close.
FIN_WAIT_1   ----  Socket closed; shutting  down  connection.
CLOSING      ----  Closed,
then   remote   shutdown; awaiting acknowledgement.
LAST_ACK     ----   Remote  shut  down,  then   closed ;awaiting acknowledgement.
FIN_WAIT_2   ----  Socket closed; waiting for shutdown from remote.
TIME_WAIT    ----  Wait after close for  remote  shutdown retransmission..&lt;/pre&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;#netstat -a&lt;/div&gt;&lt;pre&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Local Address  Remote Address  Swind    Send-Q  Rwind  Recv-Q  State
*.*  *.*  0  0  24576  0  IDLE
*.22  *.*  0  0  24576  0  LISTEN
*.22  *.*  0  0  24576  0  LISTEN
*.*  *.*  0  0  24576  0  IDLE
*.32771  *.*  0  0  24576  0  LISTEN
*.4045  *.*  0  0  24576  0  LISTEN
*.25  *.*  0  0  24576  0  LISTEN
*.5987  *.*  0  0  24576  0  LISTEN
*.898  *.*  0  0  24576  0  LISTEN
*.32772  *.*  0  0  24576  0  LISTEN
*.32775  *.*  0  0  24576  0  LISTEN
*.32776  *.*  0  0  24576  0  LISTEN
*.*  *.*  0  0  24576  0  IDLE
192.168.1.184.22  192.168.1.186.50457  41992  0  24616  0  ESTABLISHED
192.168.1.184.22  192.168.1.186.56806  38912  0  24616  0  ESTABLISHED
192.168.1.184.22  192.168.1.183.58672  18048  0  24616  0  ESTABLISHED &lt;/span&gt;&lt;/pre&gt;&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 1.5em; margin-bottom: 20px; margin-top: 15px;&quot;&gt;if you see a lots of connections in FIN_WAIT state tcp/ip parameters have to be tuned because the&lt;br /&gt;
connections are not being closed and they gets accumulating . After some time system may run out of&lt;br /&gt;
resource . TCP parameter can be tuned to define a time out so that connections can be released and used by new connection.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/9201637869947755353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arun-oracle.blogspot.com/2010/08/iostatvmstatnetstat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/9201637869947755353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/9201637869947755353'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/2010/08/iostatvmstatnetstat.html' title='iostat,vmstat,netstat'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7342975493006246574.post-4590883258178821940</id><published>2010-07-29T11:56:00.000-07:00</published><updated>2010-07-29T11:56:47.575-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="oracle 10g cloning"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle 11g cloning"/><category scheme="http://www.blogger.com/atom/ns#" term="physical cloning"/><category scheme="http://www.blogger.com/atom/ns#" term="rman cloning"/><title type='text'>Oracle DataBase Cloning</title><content type='html'>&lt;div class=&quot;g&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;A database cloning procedure is especially useful for the DBA who wants to give his developers a full-sized TEST and DEV instance by cloning the PROD instance into the development server areas.&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;This Oracle clone procedure can be use to quickly migrate a system from one UNIX server to another.&amp;nbsp; It clones the Oracle database and this Oracle cloning procedures is often the fastest way to copy a Oracle database.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;STEP 1:&lt;/b&gt;&amp;nbsp;On the old system, go into SQL*Plus, sign on as SYSDBA and issue: “alter database backup controlfile to trace”. This will put the create database syntax in the trace file directory. The trace keyword tells oracle to generate a script containing a create controlfile command and store it in the trace directory identified in the user_dump_dest parameter of the init.ora file. It will look something like this:&lt;/div&gt;&lt;blockquote style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: xx-small;&quot;&gt;STARTUP NOMOUNT&lt;br /&gt;
CREATE CONTROLFILE REUSE DATABASE &quot;OLDLSQ&quot; NORESETLOGS&lt;br /&gt;
NOARCHIVELOG&lt;br /&gt;
MAXLOGFILES 16&lt;br /&gt;
MAXLOGMEMBERS 2&lt;br /&gt;
MAXDATAFILES 240&lt;br /&gt;
MAXINSTANCES 1&lt;br /&gt;
MAXLOGHISTORY 113&lt;br /&gt;
LOGFILE&lt;br /&gt;
GROUP 1 (&#39;/u03/oradata/oldlsq/log1a.dbf&#39;,&lt;br /&gt;
&#39;/u03/oradata/olslsq/log1b.dbf&#39;) SIZE 30M,&lt;br /&gt;
GROUP 2 (&#39;/u04/oradata/oldlsq/log2a.dbf&#39;,&lt;br /&gt;
&#39;/u04/oradata/oldlsq/log2b.dbf&#39;) SIZE 30M&lt;br /&gt;
DATAFILE&lt;br /&gt;
&#39;/u01/oradata/oldlsq/system01.dbf&#39;,&lt;br /&gt;
&#39;/u01/oradata/oldlsq/mydatabase.dbf&#39;&lt;br /&gt;
;&lt;br /&gt;
# Recovery is required if any of the datafiles are restored&lt;br /&gt;
# backups, or if the last shutdown was not normal or immediate.&lt;br /&gt;
RECOVER DATABASE&lt;br /&gt;
# Database can now be opened normally.&lt;br /&gt;
ALTER DATABASE OPEN;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;b&gt;STEP 2:&amp;nbsp;&lt;/b&gt;Shutdown the old database&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;STEP 3:&lt;/b&gt;&amp;nbsp;Copy all data files into the new directories on the new server. You may change the file names if you want, but you must edit the controlfile to reflect the new data files names on the new server.&lt;/div&gt;&lt;blockquote style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: xx-small;&quot;&gt;rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq&lt;br /&gt;
rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq&lt;br /&gt;
rcp /u03/oradata/oldlsq/* newhost:/u03/oradata/newlsq&lt;br /&gt;
rcp /u04/oradata/oldlsq/* newhost:/u04/oradata/newlsq&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;b&gt;STEP 4:&lt;/b&gt;&amp;nbsp;Copy and Edit the Control file – Using the output syntax from STEP 1, modify the controlfile creation script by changing the following:&lt;br /&gt;
&lt;br /&gt;
Old:&lt;/div&gt;&lt;blockquote style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;CREATE CONTROLFILE&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;REUSE DATABASE &quot;OLDLSQ&quot;&lt;/span&gt;&amp;nbsp;NORESETLOGS&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;New:&lt;/div&gt;&lt;blockquote style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;CREATE CONTROLFILE&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;SET DATABASE &quot;NEWLSQ&quot;&lt;/span&gt;&amp;nbsp;RESETLOGS&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;b&gt;STEP 5:&lt;/b&gt;&amp;nbsp;Remove the “recover database” and “alter database open” syntax&lt;/div&gt;&lt;blockquote style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: xx-small;&quot;&gt;# Recovery is required if any of the datafiles are restored&lt;br /&gt;
# backups, or if the last shutdown was not normal or immediate.&lt;br /&gt;
RECOVER DATABASE&lt;br /&gt;
# Database can now be opened normally.&lt;br /&gt;
ALTER DATABASE OPEN;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;b&gt;STEP 6&lt;/b&gt;: Re-names of the data files names that have changed.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;Save as&amp;nbsp;&lt;i&gt;db_create_controlfile.sql.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Old:&lt;/div&gt;&lt;blockquote style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;DATAFILE&lt;br /&gt;
&#39;/u01/oradata/&lt;span style=&quot;color: red;&quot;&gt;oldlsq&lt;/span&gt;/system01.dbf&#39;,&lt;br /&gt;
&#39;/u01/oradata/&lt;span style=&quot;color: red;&quot;&gt;oldlsq&lt;/span&gt;/mydatabase.dbf&#39;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;New:&lt;/div&gt;&lt;blockquote style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;DATAFILE&lt;br /&gt;
&#39;/u01/oradata/&lt;span style=&quot;color: red;&quot;&gt;newlsq&lt;/span&gt;/system01.dbf&#39;,&lt;br /&gt;
&#39;/u01/oradata/&lt;span style=&quot;color: red;&quot;&gt;newlsq&lt;/span&gt;/mydatabase.dbf&#39;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;b&gt;STEP 7:&amp;nbsp;&lt;/b&gt;Create the bdump, udump and cdump directories&lt;/div&gt;&lt;blockquote style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;cd $DBA/admin&lt;br /&gt;
mkdir newlsq&lt;br /&gt;
cd newlsq&lt;br /&gt;
mkdir bdump&lt;br /&gt;
mkdir udump&lt;br /&gt;
mkdir cdump&lt;br /&gt;
mkdir pfile&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;b&gt;STEP 8:&lt;/b&gt;&amp;nbsp;Copy-over the old init.ora file&lt;/div&gt;&lt;blockquote style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;rcp $DBA/admin/olslsq/pfile/*.ora newhost:/u01/oracle/admin/newlsq/pfile&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;b&gt;STEP 9:&amp;nbsp;&lt;/b&gt;Start the new database&lt;/div&gt;&lt;blockquote style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;@db_create_controlfile.sql&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border-collapse: collapse; font-family: &#39;Times New Roman&#39;, sans-serif;&quot;&gt;&lt;b&gt;STEP 10:&amp;nbsp;&lt;/b&gt;Place the new database in archivelog mode&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/4590883258178821940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/oracle-database-cloning.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/4590883258178821940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/4590883258178821940'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/oracle-database-cloning.html' title='Oracle DataBase Cloning'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7342975493006246574.post-2815812973717942252</id><published>2010-07-29T11:49:00.000-07:00</published><updated>2010-07-29T11:49:14.718-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIX commands"/><category scheme="http://www.blogger.com/atom/ns#" term="AIX oracle commands"/><category scheme="http://www.blogger.com/atom/ns#" term="IBM AIX commands"/><category scheme="http://www.blogger.com/atom/ns#" term="IBM AIX Commands for Oracle DBAs"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle AIX commands"/><title type='text'>IBM AIX Commands for Oracle DBAs</title><content type='html'>&lt;div class=&quot;post-body entry-content&quot; style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 528px;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Hi friends.. these are all the commands i collected for reference, hope it will be useful to you too..&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;i will be updating this post as soon as i come across new commands..&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;thanks for reading and keep in touch.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;General Commands in AIX&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;oslevel:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;Returns operating system level&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;bootinfo -y:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;To display if the hardware is 32-bit or 64-bit, type:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;bootinfo –r&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;or&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;width: 528px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lsattr -E1 sys0 -a realmem:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;To display real memory in kilobytes (KB), type one of the following&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;bootinfo -k:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;To display if the kernel is 32-bit enabled or 64-bit enabled, type:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;prtconf:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lscfg | grep proc:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;to list the no of processors in the system&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;whence (program)&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Returns full path of program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;whereis (program):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Returms full path of program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;what (program):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Displays identifying info from the executable like version number, when&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;compiled.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lslpp -L all:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;list all installed software&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lslpp -L (program set name):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Check if software installed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lslpp -f:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp;Lists filesets vs packages&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lslpp -ha:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Lists installation history of filesets&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;instfix -ik (fix number eg IX66617):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Checks id fix is installed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Uname –p&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;:&lt;/span&gt;&amp;nbsp;Displays the chip type of the system. For example, PowerPC&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Uname –r&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;:&amp;nbsp;&lt;/span&gt;Displays the release number of the operating system&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Uname –s&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;:&amp;nbsp;&lt;/span&gt;Displays the system name. For example, AIX.&lt;span style=&quot;font-family: &#39;Arial Unicode MS&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Uname –n&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;:&amp;nbsp;&lt;/span&gt;Displays the name of the node.&lt;span style=&quot;font-family: &#39;Arial Unicode MS&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Uname –a&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;:&lt;/span&gt;&amp;nbsp;Displays the system name, nodename, version, machine ID.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;Uname –M :&lt;/b&gt;&amp;nbsp;Displays the system model name. For example, IBM, 9114-275.&lt;span style=&quot;font-family: &#39;Arial Unicode MS&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;Uname –v :&lt;/b&gt;&amp;nbsp;Displays the operating system version.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;Uname –m:&lt;/b&gt;&amp;nbsp;Displays the machine ID number of the hardware running the system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Uname &amp;nbsp;-u :&lt;/b&gt;&amp;nbsp;Displays the system ID number.&lt;span style=&quot;font-family: &#39;Arial Unicode MS&#39;, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;• Examples :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;instfix -ik 4330-02_AIX_ML&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;compress -c file.txt &amp;gt; file.Z:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Create a compressed file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;ar -v -t (archive file):&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;List contents of an archive&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;ar -v -x (archive file):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Extracts the archive.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;alog -o -t boot:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;View the boot log&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;chtz (timezone eg GMT0BST):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Change time zone.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;chlang (language eg En_GB):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Changes the language in /etc/environment file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Terminal&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Commands&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;tty:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Displays what the tty/pty number of the terminal is.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;chdev -l (device eg tty1) -a term=vt100:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Sets tty to a vt100 terminal type&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;lscons:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Displays the console device&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Network Related Commands&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;host (ip or hostname):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Resolves a hostname / ip address&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;hostname:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Displays hostname&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;hostname (hostname):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Sets the hostname until next reboot&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;chdev -l (device name) -a hostname=(hostname):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Changes hostname permanently Examples :chdev -l inet0 -a hostname=thomas&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;ifconfig (device name):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Displays network card settings&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;ifconfig (device name):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;up&amp;nbsp;Turns on network card&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;ifconfig (device name):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;down Turns off network card&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;ifconfig (device name):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;detach Removes the network card from the network interface list&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;netstat –i:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Displays interface statistics&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;traceroute (name or ipaddress):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Displays all the hops from source to destination supplied.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;ping -R (name or ipaddress):&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Same as traceroute except repeats.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Volume Management&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Lspv:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt;To display the number of hard disks on your system, type&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Lspv hdisk1:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt;To find details about hdisk1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Crfs&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;: create file system&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Eg:&lt;/span&gt;&amp;nbsp;&lt;span lang=&quot;EN&quot;&gt;The following command will create, within volume group testvg, a jfs2 file system of 10MB with mounting point /fs2 and having read-only permissions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;crfs -v jfs2 -g testvg -a size=10M -p ro -m /fs2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;Chfs:&lt;/b&gt;&amp;nbsp;change size of file system&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Eg: To increase the&amp;nbsp;&lt;code&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;/usr&lt;/span&gt;&lt;/code&gt;&amp;nbsp;file system size by 1000000 512-byte blocks, type:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;width: 528px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;chfs -a size=+1000000 /usr&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;Mount:&amp;nbsp;&lt;span lang=&quot;EN&quot;&gt;command to display information about all currently mounted file systems:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;Options--- examples&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;1.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt;Mount cd rom:&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&lt;/span&gt;mount -V cdrfs -o ro /dev/cd0&amp;nbsp; /cdrom&lt;span lang=&quot;EN&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;2.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt;Mount file system:&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&lt;/span&gt;mount /dev/fslv02 /test&lt;span lang=&quot;EN&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;3.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt;Unmount filesystem:&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&lt;/span&gt;umount /test&lt;span lang=&quot;EN&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;4.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN&quot;&gt;Mount all filesystem:mount &amp;nbsp;{–a|all}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;Defragfs: defragment file system&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Performance Monitoring&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Lsps –a :&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN&quot;&gt;amount of paging space allocated and in use&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN&quot;&gt;increase a paging space:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;You can use the&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span lang=&quot;EN&quot; style=&quot;font-size: 10pt;&quot;&gt;chps -s&lt;/span&gt;&lt;/code&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;command to dynamically increase the size of a paging space. For example, if you want to increase the size of hd6 with 3 logical partitions, you issue the following command:&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;width: 528px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;pre&gt;chps -s 3 hd6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN&quot;&gt;I reduce a paging space:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;You can use the chps&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span lang=&quot;EN&quot; style=&quot;font-size: 10pt;&quot;&gt;-d&lt;/span&gt;&lt;/code&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;command to dynamically reduce the size of a paging space. For example, if you want to decrease the size of hd6 with four logical partitions, you issue the following command:&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;width: 528px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;&lt;pre&gt;chps -d 4 hd6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNoSpacing&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;clear: both;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;post-footer&quot; style=&quot;color: #999999; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 1.6; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.5em;&quot;&gt;&lt;div class=&quot;post-footer-line post-footer-line-1&quot;&gt;&lt;span class=&quot;post-icons&quot;&gt;&lt;/span&gt;&lt;div class=&quot;post-share-buttons&quot; style=&quot;display: inline-block; margin-bottom: 0px !important; margin-left: 0.5em !important; margin-right: 0.5em !important; margin-top: 0px !important; vertical-align: middle; width: 106px; zoom: 1;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/2815812973717942252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/ibm-aix-commands-for-oracle-dbas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/2815812973717942252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/2815812973717942252'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/ibm-aix-commands-for-oracle-dbas.html' title='IBM AIX Commands for Oracle DBAs'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7342975493006246574.post-2665882979034111449</id><published>2010-07-29T11:47:00.000-07:00</published><updated>2013-04-08T04:51:07.267-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASM"/><category scheme="http://www.blogger.com/atom/ns#" term="ASM architecture"/><title type='text'>ASM Architecture</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;In ASM Architecture, Oracle database utilizes &amp;nbsp;a separate smaller database instance, which is installed &amp;nbsp;in a separate oracle home and created during database &amp;nbsp;setup. An ASM &amp;nbsp;instance &amp;nbsp;manages the metadata &amp;nbsp;that is needed to make ASM files available to regular database instances. ASM instance and &amp;nbsp; database instances have access to a common set of disks called disk groups.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;img src=&quot;http://www.toadworld.com/Portals/0/blogimages/OracleASM2edited.jpg&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;fig show difference between conventional storage and asm storage.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;b&gt;ASM Instance Background Processes&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;There are at least two new background processes added for an ASM instance:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&amp;nbsp;&amp;nbsp; - RBAL - coordinates rebalance activity for disk groups&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&amp;nbsp;&amp;nbsp; - ORB0, ORB1… - These perform the actual rebalance data extent movements.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; There can be many of these at a time&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;b&gt;Database Instance ASM Background Processes&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;Any database instance that is using an ASM disk group will contain a background process called OSMB. The OSMB process is responsible for communicating with the ASM instance. A second additional background process, called RBAL (just like in the ASM Instance) performs a global open on ASM disks. A global open means that more than one database instance can be accessing the ASM disks at a time.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;For certain database operations like file creation, ASM intervention is required and the database foreground connects directly to the ASM instance. Whenever a connection is made to the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;ASM instance, the OSMB process is started dynamically. Database instances are only allowed to connect to one&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;ASM instance at a time, so they have at most one OSMB background process.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;u&gt;&lt;b&gt;Disk Group:-&lt;/b&gt;&lt;/u&gt;&amp;nbsp;A basic component of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;ASM is the disk group.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;ASM is configured by creating disk groups, which in turn database instances can use as the default location for files created in the database. Oracle provides SQL statements to create and manage disk groups, their contents, and their metadata.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;For information regarding commands to administer&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;ASM go to&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;a href=&quot;http://arun-oracle.blogspot.in/2010/07/asm-administration.html&quot;&gt;ASM Administration post&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;from home menu.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;u&gt;Allocation Units (AU):-&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;ASM introduces the concept of an allocation unit (AU), the smallest contiguous disk space allocated by the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;ASM. The typical value for an AU is 1MB and is not user configurable.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;ASM does not allow physical blocks to be split across allocation units.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/2665882979034111449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/asm-architecture.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/2665882979034111449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/2665882979034111449'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/asm-architecture.html' title='ASM Architecture'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7342975493006246574.post-2382444572673134754</id><published>2010-07-29T11:46:00.001-07:00</published><updated>2010-07-29T11:46:35.415-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASM Installation"/><title type='text'>ASM Installation</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Automatic Storage Management is installed by default with Oracle Universal Installer. The Database Configuration Assistance (DBCA) looks for an existing ASM instance and if it does not find one, there is the option of creating and configuring one during the installation process. It is available &amp;nbsp;in both the Enterprise Edition and Standard edition Installations.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Starting Up ASM Instance&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;An ASM instance is started like any other database instance, except that the initialization parameter file contains the parameter&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;instance_type&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;=ASM.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;For ASM instances, the mount option does not try to mount a database, but tries to mount the diskgroups that are specified by the asm_diskgroups parameter.&amp;nbsp;ASM instance requires smaller SGA (64MB) and usually brought up automatically on server reboots.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;NOMOUNT:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;does not mount any disk groups, but starts up the instance.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;MOUNT:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;mounts the disk goups specified by&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;asm_diskgroups.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;OPEN:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;not valid for ASM instance.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;FORCE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;issues the command shutdown abort to the instance and starts it as in normal database instance.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Shuting down ASM Instance&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;NORMAL:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;ASM waits for any in-progress SQL to complete before performing an orderly dismount of all of the disk groups.&lt;br /&gt;
ASM waits for all of the currently connected users to disconnect from the instance.&lt;br /&gt;
If any database instances are connected to the ASM instance, then the SHUTDOWN command returns an error.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;IMMEDIATE or TRANSACTIONAL:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;ASM waits for any in-progress SQL to complete before performing an orderly dismount of all of the disk groups.&lt;br /&gt;
ASM does not wait for users currently connected to the instance to disconnect.&lt;br /&gt;
If any database instances are connected to the ASM instance, then the SHUTDOWN command returns an error.&lt;br /&gt;
Because the ASM instance does not contain any transactions, the TRANSACTIONAL mode is the same as the IMMEDIATE.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;ABORT:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;The ASM instance immediately shuts down without the orderly dismount of disk groups.&lt;br /&gt;
This causes recovery to occur upon the next ASM startup.&lt;br /&gt;
If any database instance is connected to the ASM instance, then the database instance aborts.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Initialization Parameter Files for an ASM Instance&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Below are the list of asm parameters, i&#39;ll only explain the&amp;nbsp;relevant ones.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;ASM_DISKGROUPS:-Name of the disk groups created.&lt;br /&gt;
&lt;br /&gt;
ASM_DISKSTRING:- limits the set of disks that ASM considers for discovery.&lt;br /&gt;
&lt;br /&gt;
ASM_POWER_LIMIT:- The maximum power on an ASM instance for disk rebalancing. Possible values range from 1 to 11 with 11 being the fastest.&lt;br /&gt;
&lt;br /&gt;
INSTANCE_TYPE:- Must be set to ASM, this is the only required parameter. All other parameters assume defaults values for most environments.&lt;br /&gt;
&lt;br /&gt;
LARGE_POOL_SIZE:- Internal packages used &amp;nbsp;by ASM utilize the Large Pool. The value of large_pool_size should be set ot a value greater than 8MB.&lt;br /&gt;
&lt;br /&gt;
DB_CACHE_SIZE:-&lt;br /&gt;
DIAGNOSTIC_DEST:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;PROCESSES:-&lt;br /&gt;
REMOTE_LOGIN_PASSWORDFILE:-&lt;br /&gt;
SHARED_POOL_SIZE:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #333333; font-family: Arial; font-size: 13px; line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;ASM_PREFERRED_READ_FAILURE_GROUPS:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/2382444572673134754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/asm-installation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/2382444572673134754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/2382444572673134754'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/asm-installation.html' title='ASM Installation'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7342975493006246574.post-8596548659755141511</id><published>2010-07-29T11:45:00.001-07:00</published><updated>2010-07-29T11:45:35.795-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASM Administration"/><title type='text'>ASM Administration</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;post-header&quot; style=&quot;color: #999999; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 1.6; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div class=&quot;post-header-line-1&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 528px;&quot;&gt;For ASM installation,startup and shutdown information go to&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;ASM Installation post.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: sans-serif; line-height: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: sans-serif; line-height: 19px;&quot;&gt;&lt;b&gt;&lt;u&gt;Disk groups are created using the CREATE DISKGROUP statement.&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: sans-serif; line-height: 19px;&quot;&gt;eg:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: sans-serif; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: sans-serif; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: sans-serif; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: sans-serif; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: sans-serif; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: sans-serif; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: sans-serif; line-height: 19px;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;CREATE DISKGROUP disk_group_1 NORMAL REDUNDANCY&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FAILGROUP failure_group_1 DISK&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;/devices/diska1&#39; NAME diska1,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;/devices/diska2&#39; NAME diska2,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FAILGROUP failure_group_2 DISK&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;/devices/diskb1&#39; NAME diskb1,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;/devices/diskb2&#39; NAME diskb2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;The failgroup clause in the above example is for redundancey.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;ie,&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;* NORMAL REDUNDANCY - Two-way mirroring, requiring two failure groups.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;* HIGH REDUNDANCY - Three-way mirroring, requiring three failure groups.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;* EXTERNAL REDUNDANCY - No mirroring for disks that are already protected using hardware mirroring or RAID.&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;The above &amp;nbsp;is therefore in normal redundancy.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;u&gt;&lt;b&gt;Disk groups can be deleted using the DROP DISKGROUP statement.&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 19px;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;DROP DISKGROUP disk_group_1 INCLUDING CONTENTS;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;Disks can be added or removed from disk groups using the ALTER DISKGROUP statement.&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;-- Add disks.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;ALTER DISKGROUP disk_group_1 ADD DISK&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;/devices/disk*3&#39;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;/devices/disk*4&#39;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;-- Drop a disk.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;ALTER DISKGROUP disk_group_1 DROP DISK diska2;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;b&gt;&lt;u&gt;Disks can be resized using the RESIZE clause of the ALTER DISKGROUP statement.&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-- Resize a specific disk.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ALTER DISKGROUP disk_group_1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIZE DISK diska1 SIZE 100G;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;-- Resize all disks in a failure group.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;ALTER DISKGROUP disk_group_1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIZE DISKS IN FAILGROUP failure_group_1 SIZE 100G;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;-- Resize all disks in a disk group.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;ALTER DISKGROUP disk_group_1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIZE ALL SIZE 100G;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;The UNDROP DISKS clause of the ALTER DISKGROUP statement allows pending disk drops to be undone. It will not revert drops that have completed, or disk drops associated with the dropping of a disk group.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ALTER DISKGROUP disk_group_1 UNDROP DISKS;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Disk groups can be rebalanced manually using the REBALANCE clause of the ALTER DISKGROUP statement. If the POWER clause is omitted the ASM_POWER_LIMIT parameter value is used. Rebalancing is only needed when the speed of the automatic rebalancing is not appropriate.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ALTER DISKGROUP disk_group_1 REBALANCE POWER 5;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif;&quot;&gt;Disk groups are mounted at ASM instance startup and unmounted at ASM instance shutdown. Manual mounting and dismounting can be accomplished using the ALTER DISKGROUP statement as seen below.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; ALTER DISKGROUP ALL DISMOUNT;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; ALTER DISKGROUP ALL MOUNT;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; ALTER DISKGROUP disk_group_1 DISMOUNT;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; ALTER DISKGROUP disk_group_1 MOUNT;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/8596548659755141511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/asm-administration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/8596548659755141511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/8596548659755141511'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/asm-administration.html' title='ASM Administration'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7342975493006246574.post-6148515892267265678</id><published>2010-07-29T11:43:00.001-07:00</published><updated>2010-07-29T11:43:45.971-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="types of joins"/><title type='text'>Types of Joins</title><content type='html'>&lt;h1 style=&quot;color: #333333; font-family: &#39;Myriad Web&#39;, Arial, sans-serif; font-size: 20px; font-weight: bold; line-height: 20px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1.5em; position: relative;&quot;&gt;join types&lt;/h1&gt;&lt;h2 style=&quot;color: #888888; font-family: &#39;Myriad Web&#39;, Arial, sans-serif; font-size: 17px; font-weight: bold; font: normal normal bold 13px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 20px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1.5em; position: relative; text-transform: uppercase;&quot;&gt;INNER JOIN&lt;/h2&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;All of the joins that you have seen so far have used the&amp;nbsp;&lt;strong style=&quot;background-color: #ffe6aa; color: black; font-weight: bold;&quot;&gt;natural join&lt;/strong&gt;&amp;nbsp;syntax—for example, to produce a list of customers and dates on which they placed orders. Remember that if this syntax is available, it will automatically pick the join attributes as those with the same name in both tables (intersection of the schemes). It will also produce only one copy of those attributes in the result table.&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate
        FROM customers NATURAL JOIN orders;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• The join does not consider the pk and fk attributes you have specified. If there are any non-pk/fk attributes that have the same names in the tables to be joined, they will also be included in the intersection of the schemes, and used as join attributes in the natural join. The results will certainly not be correct! This problem might be especially difficult to detect in cases where many natural joins are performed in the same query. Fortunately, you can always specify the join attributes yourself, as we describe next.&lt;/div&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• Another keyword that produces the same results (without the potential attribute name problem) is the&amp;nbsp;&lt;strong style=&quot;background-color: #ffe6aa; color: black; font-weight: bold;&quot;&gt;inner join&lt;/strong&gt;. With this syntax, you may specify the join attributes in a USING clause. (Multiple join attributes in the USING clause are separated by commas.) This also produces only one copy of the join attributes in the result table. Like the NATURAL JOIN syntax, the USING clause is not supported by all systems.&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate
        FROM customers INNER JOIN orders
          USING (custID);&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• The most widely-used (and most portable) syntax for the inner join substitutes an ON clause for the USING clause. This requires you to explicitly specify not only the join attribute names, but the join condition (normally equality). It also requires you to preface (qualify) the join attribute names with their table name, since both columns will be included in the result table. This is the only syntax that will let you use join attributes that have different names in the tables to be joined. Unfortunately, it also allows you to join tables on attributes other than the pk/fk pairs, which was a pre-1992 way to answer queries that can be written in better ways today.&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate
        FROM customers INNER JOIN orders
          ON customers.custID = orders.custID;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• You can save a bit of typing by specifying an&amp;nbsp;&lt;strong style=&quot;background-color: #ffe6aa; color: black; font-weight: bold;&quot;&gt;alias&lt;/strong&gt;&amp;nbsp;for each table name (such as c and o in this example), then using the alias instead of the full name when you refer to the attributes. This is the only syntax that will let you join a table to itself, as we will see when we discuss recursive relationships.&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate
        FROM customers c INNER JOIN orders o
          ON c.custID = o.custID;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• All of the join statements above are specified as part of the 1992 SQL standard, which was not widely supported for several years after that. In earlier systems, joins were done with the 1986 standard SQL syntax. Although you shouldn’t use this unless you absolutely have to, you just might get stuck working on an older database. If so, you should recognize that the join condition is placed confusingly in the WHERE clause, along with all of the tests to pick the right rows:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate
        FROM customers c, orders o
        WHERE c.custID = o.custID;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;h2 style=&quot;color: #888888; font-family: &#39;Myriad Web&#39;, Arial, sans-serif; font-size: 17px; font-weight: bold; font: normal normal bold 13px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 20px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1.5em; position: relative; text-transform: uppercase;&quot;&gt;OUTER JOIN&lt;/h2&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;One important effect of all natural and inner joins is that any unmatched PK value simply drops out of the result. In our example, this means that any customer who didn’t place an order isn’t shown. Suppose that we want a list of&amp;nbsp;&lt;i&gt;all&lt;/i&gt;&amp;nbsp;customers, along with order date(s) for those who did place orders. To include the customers who did&amp;nbsp;&lt;i&gt;not&lt;/i&gt;&amp;nbsp;place orders, we will use an&amp;nbsp;&lt;strong style=&quot;background-color: #ffe6aa; color: black; font-weight: bold;&quot;&gt;outer join&lt;/strong&gt;, which may take either the USING or the ON clause syntax.&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate
        FROM customers c LEFT OUTER JOIN orders o
          ON c.custID = o.custID;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class=&quot;bodyind&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 4em; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;table class=&quot;datatable&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot; summary=&quot;&quot;&gt;&lt;caption style=&quot;font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; font-weight: bold;&quot;&gt;All customers and order dates&lt;/caption&gt;&lt;thead&gt;
&lt;tr&gt;&lt;th class=&quot;datatable&quot; id=&quot;cfirstname1&quot; scope=&quot;col&quot; style=&quot;background-color: #cccccc; border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; color: black; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; font-weight: normal; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;cfirstname&lt;/th&gt;&lt;th class=&quot;datatable&quot; id=&quot;clastname1&quot; scope=&quot;col&quot; style=&quot;background-color: #cccccc; border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; color: black; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; font-weight: normal; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;clastname&lt;/th&gt;&lt;th class=&quot;datatable&quot; id=&quot;orderdate1&quot; scope=&quot;col&quot; style=&quot;background-color: #cccccc; border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; color: black; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; font-weight: normal; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;orderdate&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;datatable&quot; headers=&quot;cfirstname1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;Tom&lt;/td&gt;&lt;td class=&quot;datatable&quot; headers=&quot;clastname1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;Jewett&lt;/td&gt;&lt;td class=&quot;datatable&quot; headers=&quot;orderdate1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;datatable&quot; headers=&quot;cfirstname1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;Alvaro&lt;/td&gt;&lt;td class=&quot;datatable&quot; headers=&quot;clastname1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;Monge&lt;/td&gt;&lt;td class=&quot;datatable&quot; headers=&quot;orderdate1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;2003-07-14&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;datatable&quot; headers=&quot;cfirstname1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;Alvaro&lt;/td&gt;&lt;td class=&quot;datatable&quot; headers=&quot;clastname1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;Monge&lt;/td&gt;&lt;td class=&quot;datatable&quot; headers=&quot;orderdate1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;2003-07-18&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;datatable&quot; headers=&quot;cfirstname1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;Alvaro&lt;/td&gt;&lt;td class=&quot;datatable&quot; headers=&quot;clastname1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;Monge&lt;/td&gt;&lt;td class=&quot;datatable&quot; headers=&quot;orderdate1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;2003-07-20&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;datatable&quot; headers=&quot;cfirstname1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;Wayne&lt;/td&gt;&lt;td class=&quot;datatable&quot; headers=&quot;clastname1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;Dick&lt;/td&gt;&lt;td class=&quot;datatable&quot; headers=&quot;orderdate1&quot; style=&quot;border-bottom-color: rgb(160, 195, 200); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(160, 195, 200); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(160, 195, 200); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(160, 195, 200); border-top-style: solid; border-top-width: 1px; font-family: &#39;Myriad Condensed Web&#39;, &#39;Arial Narrow&#39;, sans-serif; font-size: 14px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left; vertical-align: top;&quot;&gt;2003-07-14&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• Notice that for customers who placed no orders, any attributes from the Orders table are simply filled with NULL values.&lt;/div&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• The word “left” refers to the order of the tables in the FROM clause (customers on the left, orders on the right). The left table here is the one that might have unmatched join attributes—the one from which we want&amp;nbsp;&lt;i&gt;all&lt;/i&gt;&amp;nbsp;rows. We could have gotten exactly the same results if the table names and outer join direction were reversed:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate
        FROM orders o RIGHT OUTER JOIN customers c
          ON o.custID = c.custID;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• An outer join makes sense only if one side of the relationship has a minimum cardinality of zero (as Orders does in this example). Otherwise, the outer join will produce exactly the same result as an inner join (for example, between Orders and OrderLines).&lt;/div&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• The SQL standard also allows a FULL outer join, in which unmatched join attributes from either side are paired with null values on the other side. You will probably not have to use this with most well-designed databases.&lt;/div&gt;&lt;h2 style=&quot;color: #888888; font-family: &#39;Myriad Web&#39;, Arial, sans-serif; font-size: 17px; font-weight: bold; font: normal normal bold 13px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 20px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1.5em; position: relative; text-transform: uppercase;&quot;&gt;EVALUATION ORDER&lt;/h2&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;Multiple joins in a query are evaluated left-to-right in the order that you write them, unless you use parentheses to force a different evaluation order. (Some database systems require parentheses in any case.) The schemes of the joins are also cumulative in the order that they are evaluated; in RA, this means that&lt;/div&gt;&lt;div class=&quot;bodyind&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 4em; margin-top: 0px;&quot;&gt;&lt;i&gt;r1&lt;/i&gt;&amp;nbsp;&lt;img alt=&quot;join&quot; height=&quot;11&quot; src=&quot;http://www.tomjewett.com/dbdesign/img/joinsymbol.gif&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px;&quot; width=&quot;11&quot; /&gt;&amp;nbsp;&lt;i&gt;r2&lt;/i&gt;&amp;nbsp;&lt;img alt=&quot;join&quot; height=&quot;11&quot; src=&quot;http://www.tomjewett.com/dbdesign/img/joinsymbol.gif&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px;&quot; width=&quot;11&quot; /&gt;&amp;nbsp;&lt;i&gt;r3&lt;/i&gt;&amp;nbsp;= (&lt;i&gt;r1&lt;/i&gt;&amp;nbsp;&lt;img alt=&quot;join&quot; height=&quot;11&quot; src=&quot;http://www.tomjewett.com/dbdesign/img/joinsymbol.gif&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px;&quot; width=&quot;11&quot; /&gt;&amp;nbsp;&lt;i&gt;r2&lt;/i&gt;)&amp;nbsp;&lt;img alt=&quot;join&quot; height=&quot;11&quot; src=&quot;http://www.tomjewett.com/dbdesign/img/joinsymbol.gif&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px;&quot; width=&quot;11&quot; /&gt;&amp;nbsp;&lt;i&gt;r3&lt;/i&gt;.&lt;/div&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• It is especially important to remember this rule when outer joins are mixed with other joins in a query. For example, if you write:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate, UPC, quantity
        FROM customers LEFT OUTER JOIN orders 
          USING (custID)
          NATURAL JOIN orderlines;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;you will lose the customers who haven’t placed orders. They will be retained if you force the second join to be executed first:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate, UPC, quantity
        FROM customers LEFT OUTER JOIN 
          (orders NATURAL JOIN orderlines)
          USING (custID);&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;h2 style=&quot;color: #888888; font-family: &#39;Myriad Web&#39;, Arial, sans-serif; font-size: 17px; font-weight: bold; font: normal normal bold 13px/normal Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 20px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1.5em; position: relative; text-transform: uppercase;&quot;&gt;OTHER JOIN TYPES&lt;/h2&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;For sake of completeness, you should also know that if you try to join two tables with no join condition, the result will be that every row from one side is paired with every row from the other side. Mathematically, this is a Cartesian product of the two tables, as you have seen before. It is almost never what you want. In pre-1992 syntax, it is easy to do this accidently, by forgetting to put the join condition in the WHERE clause:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate
        FROM customers, orders;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• If your system is backward-compatible (most are), you might actually try this just to prove to yourself that the result is pure nonsense. However, if you ever have an occasion to really need a Cartesian product of two tables, use the new&amp;nbsp;&lt;strong style=&quot;background-color: #ffe6aa; color: black; font-weight: bold;&quot;&gt;cross join&lt;/strong&gt;&amp;nbsp;syntax to prove that you really mean it. Notice that this example still produces nonsense.&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;pre&gt;&lt;code&gt;        SELECT cFirstName, cLastName, orderDate
        FROM customers CROSS JOIN orders;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• It is possible, but confusing, to specify a join condition other than equality of two attributes; this is called a&amp;nbsp;&lt;strong style=&quot;background-color: #ffe6aa; color: black; font-weight: bold;&quot;&gt;non-equi-join&lt;/strong&gt;. If you see such a thing in older code, it probably represents a WHERE clause or subquery in disguise.&lt;/div&gt;&lt;div class=&quot;body&quot; style=&quot;color: #333333; font-family: &#39;Minion Web&#39;, Georgia, serif; font-size: 16px; font-weight: normal; line-height: 20px; margin-bottom: 0.5em; margin-left: 2em; margin-top: 0px;&quot;&gt;• You may also hear the term&amp;nbsp;&lt;strong style=&quot;background-color: #ffe6aa; color: black; font-weight: bold;&quot;&gt;self join&lt;/strong&gt;, which is nothing but an inner or outer join between two attributes in the same table. We’ll look at these when we discuss recursive relationships.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arun-oracle.blogspot.com/feeds/6148515892267265678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/types-of-joins.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/6148515892267265678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7342975493006246574/posts/default/6148515892267265678'/><link rel='alternate' type='text/html' href='http://arun-oracle.blogspot.com/2010/07/types-of-joins.html' title='Types of Joins'/><author><name>ARUN</name><uri>http://www.blogger.com/profile/10754542046693313400</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPhBuaZVFgm6N-Zsg2hFb2SEOYZ-7zn7pEhYY7ETEK3gfmsdCTexw1mqR9IHJ9qASv80K2gwQ19Eq6Fi5yS2VEDVm54-BKFcwwT-yt9QEftWfBX6ZWV31oRjap0_tZC1w/s220/asdg.jpg'/></author><thr:total>0</thr:total></entry></feed>