<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8751605357139682129</id><updated>2011-11-27T16:33:05.062-08:00</updated><category term='Oracle Net Services'/><category term='PARALLEL PROCESS'/><title type='text'>Sr ORACLE DBA</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-2581017603609955744</id><published>2011-10-04T23:40:00.000-07:00</published><updated>2011-10-04T23:40:54.647-07:00</updated><title type='text'>Setup your Oracle Rac using Open Filer...Copy and Paste Post</title><content type='html'>Install openfiler O/S,it works like NAS and SAN&lt;br /&gt;Install oracle enterprise linux on both rac nodes&lt;br /&gt;Edit hosts file on both nodes and put entries and remove hostname from first line&lt;br /&gt;vi /etc/hosts&lt;br /&gt;172.22.0.175    rac1&lt;br /&gt;172.22.0.176    rac2&lt;br /&gt;172.22.0.178    rac1-vip&lt;br /&gt;172.22.0.179    rac2-vip&lt;br /&gt;172.22.0.177    openfiler&lt;br /&gt;10.0.0.101      rac1-priv&lt;br /&gt;10.0.0.102      rac2-priv&lt;br /&gt;:wq  (save and exit)&lt;br /&gt;&lt;br /&gt;Oracle group and user add on both nodes&lt;br /&gt;#groupadd dba&lt;br /&gt;#groupadd oinstall&lt;br /&gt;#useradd -c "Oracle software owner" -G dba -g oinstall oracle&lt;br /&gt;#passwd oracle&lt;br /&gt;&lt;br /&gt;Both the group and userid same on both rac nodes&lt;br /&gt;issue the below command to check &lt;br /&gt;#cat /etc/group  (for groupid)&lt;br /&gt;#cat /etc/passwd (for userid)&lt;br /&gt;if not change this with below commands&lt;br /&gt;#groupadd -g 1001 oinstall&lt;br /&gt;#groupadd -g 1002 dba&lt;br /&gt;#useradd -u 1001 -g 1001 -G 1002 -d /home/oracle -m oracle&lt;br /&gt;&lt;br /&gt;setup sysctl.conf file for configuring kernel parameters on both nodes&lt;br /&gt;kernel.shmmax=2147483648&lt;br /&gt;kernel.shmall = 2097152&lt;br /&gt;kernel.shmmni = 4096 &lt;br /&gt;kernel.sem=250 32000 100 128&lt;br /&gt;fs.file-max=65536&lt;br /&gt;&lt;br /&gt;net.ipv4.ip_local_port_range=1024 65000&lt;br /&gt;net.core.rmem_default = 262144&lt;br /&gt;net.core.rmem_max = 262144 &lt;br /&gt;net.core.wmem_default = 262144&lt;br /&gt;net.core.wmem_max = 262144 &lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_timestamps = 0 &lt;br /&gt;net.ipv4.tcp_sack =1 &lt;br /&gt;net.ipv4.tcp_window_scaling = 1&lt;br /&gt;&lt;br /&gt;sysctl -p&lt;br /&gt;&lt;br /&gt;Download and run compat packages according to system 32bit or 64bit on both nodes&lt;br /&gt;compat-gcc-7.3-2.96.128.i386.rpm&lt;br /&gt;compat-gcc-c++-7.3-2.96.128.i386.rpm&lt;br /&gt;compat-libcwait-2.1-1.i386.rpm&lt;br /&gt;compat-libstdc++-7.3-2.96.128.i386.rpm&lt;br /&gt;compat-libstdc++-devel-7.3-2.96.128.i386.rpm&lt;br /&gt;compat-oracle-rhel4-1.0-5.i386.rpm&lt;br /&gt;issue below command to run compat packages on both nodes&lt;br /&gt;#rpm -ivh compat*  --force --aid&lt;br /&gt;&lt;br /&gt;Run below package on both nodes to check post installation of oracle RAC using cluvfy later,this package u will get in oracle clusterware software&lt;br /&gt;#rpm -ivh cvuqdisk-1.0.6-1.rpm --force --aid&lt;br /&gt;&lt;br /&gt;Create user-equivalence on both nodes&lt;br /&gt;#su - oracle&lt;br /&gt;$ssh-keygen -t rsa&lt;br /&gt;enter&lt;br /&gt;enter&lt;br /&gt;enter&lt;br /&gt;$cd .ssh/&lt;br /&gt;$cat id_rsa.pub  &gt;&gt;authorized_keys&lt;br /&gt;$scp authorized_keys to node 2 on same location example:/home/oracle/.ssh&lt;br /&gt;like this create user-equivalence on 2nd node&lt;br /&gt;&lt;br /&gt;Check the time on both nodes it should be same if not give below command to make time synchronise&lt;br /&gt;#date 102812542009.35 (the time format is like this monthdatehourminyear.second)&lt;br /&gt;&lt;br /&gt;After installing openfiler you get the url like this https://openfiler:446/ or https://172.22.0.177:446/&lt;br /&gt;Copy and paste this url to open storage graphically&lt;br /&gt;First step click on system and configure network access configuration&lt;br /&gt;hostname ipaddress     subnetmask  share&lt;br /&gt;rac1     172.22.0.175  255.255.0.0 share&lt;br /&gt;rac2     172.22.0.176  255.255.0.0 share&lt;br /&gt;and click on update&lt;br /&gt;&lt;br /&gt;Second step click on services and modify&lt;br /&gt;servicename status  modification&lt;br /&gt;iscsi       disable enable          &lt;br /&gt;click on enable in modification column to make status enable&lt;br /&gt;like this enable all services except UPS server&lt;br /&gt;&lt;br /&gt;Third step click on block devices&lt;br /&gt;click on edit disk&lt;br /&gt;         /dev/hdc&lt;br /&gt;now you will get new screen create primary and logical space&lt;br /&gt;mode&lt;br /&gt;primary extended  create &lt;br /&gt;click on create&lt;br /&gt;again you will get&lt;br /&gt;mode &lt;br /&gt;logical  physical create &lt;br /&gt;click on create&lt;br /&gt;&lt;br /&gt;Fourth step click on volume groups&lt;br /&gt;give volume group name&lt;br /&gt;click on add volume group&lt;br /&gt;click on create&lt;br /&gt;&lt;br /&gt;Fifth step click on add volume&lt;br /&gt;give volume name&lt;br /&gt;give volume Description&lt;br /&gt;give Required space(MB)&lt;br /&gt;give File system iscsi&lt;br /&gt;click on create&lt;br /&gt;&lt;br /&gt;Sixth step click on ISCSI targets&lt;br /&gt;click on Target IQN and click on add&lt;br /&gt;click on LAN mapping and click on map&lt;br /&gt;click on Network ACL and click allow on access column and finally click on update to complete configuration&lt;br /&gt;&lt;br /&gt;Add parameter on both nodes in iscsi.conf file&lt;br /&gt;#vi /etc/iscsi.conf&lt;br /&gt;add this line&lt;br /&gt;DiscoveryAddress=openfiler&lt;br /&gt;&lt;br /&gt;After configuration openfiler and add line in iscsi.conf you will get sharing disk on both nodes issue below command as a root user to check &lt;br /&gt;&lt;br /&gt;#fdisk -l&lt;br /&gt;(the output shows sharing disk as contains not a valid partition)&lt;br /&gt;&lt;br /&gt;Partitions creating on sharing disk&lt;br /&gt;&lt;br /&gt;#service iscsi restart&lt;br /&gt;#fdisk -l&lt;br /&gt;#fdisk /dev/sdb&lt;br /&gt;p  (type p to print partition)&lt;br /&gt;n  (to create new partition)&lt;br /&gt;p  (to create primary partition)&lt;br /&gt;1&lt;br /&gt;enter &lt;br /&gt;enter&lt;br /&gt;+2048m  (give size and enter this partition is for ocr information)&lt;br /&gt;n  &lt;br /&gt;p&lt;br /&gt;2&lt;br /&gt;enter&lt;br /&gt;enter&lt;br /&gt;+2048m  (give size and enter this partition is for voting disk information)&lt;br /&gt;n&lt;br /&gt;p&lt;br /&gt;3&lt;br /&gt;enter&lt;br /&gt;enter&lt;br /&gt;+14000M (give size and enter this partition is for data)&lt;br /&gt;n&lt;br /&gt;e   (this is extended partition)&lt;br /&gt;enter&lt;br /&gt;enter&lt;br /&gt;n&lt;br /&gt;enter&lt;br /&gt;+25000m (give full remaining space is for data)&lt;br /&gt;:w   (save and exit)&lt;br /&gt;#partprobe /dev/sdb  (is for update kernel)&lt;br /&gt;#fdisk -l  (here you will get mount points)&lt;br /&gt;#mkfs.ext3 /dev/sdb1 (make ocr and voting disk in ext3 format)&lt;br /&gt;#mkfs.ext3 /dev/sdb2 &lt;br /&gt;&lt;br /&gt;Give this entry and reboot system once to create logical disk on follwing location on both nodes)&lt;br /&gt;#vi /etc/sysconfig/rawdevices&lt;br /&gt;/dev/raw/raw1    /dev/sdb1&lt;br /&gt;/dev/raw/raw2    /dev/sdb2&lt;br /&gt;/dev/raw/raw3    /dev/sdb3&lt;br /&gt;/dev/raw/raw4    /dev/sdb4&lt;br /&gt;:wq&lt;br /&gt;#services iscsi restart&lt;br /&gt;#services rawdevices restart&lt;br /&gt;#chown root.oinstall /dev/raw/raw1  (give permissions to all logical devices for raw1 give root.oinstall because here information of ocr)&lt;br /&gt;#chown oracle.oinstall /dev/raw/raw2&lt;br /&gt;#chown oracle.oinstall /dev/raw/raw3&lt;br /&gt;#chown oracle.oinstall /dev/raw/raw4&lt;br /&gt;&lt;br /&gt;login as oracle user and check pre and post installation using cluvfy&lt;br /&gt;$/home/oracle/clusterware/cluvfy/runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose  (for pre installation)&lt;br /&gt;$/home/oracle/clusterware/cluvfy/runcluvfy.sh stage -post hwos -n rac1,rac2 -verbose (for post installation)&lt;br /&gt;output shows preinstallation checking successfully completed so we can continue installing clusterware software,if it show unsuccessfully check the errors.&lt;br /&gt;If u get error like user equivalence failed again create keygen and copy on both nodes.If u get error like couldn't find a suitable interfaces for vips.We &lt;br /&gt;can ignore this error and create vip manually using vipca.This error gets due to:-&lt;br /&gt;CVU checks for the following criteria before considering set of interface:&lt;br /&gt;-the interfaces should have the same name across nodes.&lt;br /&gt;-they should belong to the same subnet and same netmask&lt;br /&gt;-they should be on public (and routable) network&lt;br /&gt;Oftentimes,the interfaces planned for the vip's are configured on 10.*.m172.16.*,172.31.*or192.168.* networks which are not routable.Hence CVU does not &lt;br /&gt;consider them as suitable for vip's.If name of the available interfaces satistfy this criteria,cvu complain "error-couldn't find a suitable set of interfaces&lt;br /&gt; for vip's.It is worth nothing that,such addresses will actually work if things are public but cvu just things they're private and reports accordingly.To &lt;br /&gt;invoke vipca go to $ORA_CRS_HOME/bin and run the following command as root user after *.sh scripts are run on both nodes at cluster software installation.&lt;br /&gt;#./vipca&lt;br /&gt;1)click on next button&lt;br /&gt;2)select eth0 and click on next button.&lt;br /&gt;3)Type in the IP alias name for the vip and IP address and click on next&lt;br /&gt;4)lastly click on finish&lt;br /&gt;This will configure startup the vip.Now you can go back to the first screen (means last screen of clusterware software) and click ok.&lt;br /&gt;http://www.idevelopment.into/data/Oracle/DBA_tips/Oracle10gRAC/CLUSTER_18.shtml&lt;br /&gt;&lt;br /&gt;Installation clusterware software:&lt;br /&gt;$cd /home/oracle/cluster/&lt;br /&gt;$./runInstaller&lt;br /&gt;u will get window like specify cluster configuration&lt;br /&gt;click on add&lt;br /&gt;public node name (give in bracket(rac2))&lt;br /&gt;private node name (give in bracket(rac2-priv))&lt;br /&gt;virtual host name (give in bracket(rac2-vip))&lt;br /&gt;and click on ok to continue&lt;br /&gt;u will get next window like specify oracle cluster registry(ocr) location&lt;br /&gt;select on external redundancy and on next line give location&lt;br /&gt;specify ocr location  /dev/raw/raw1 and click on next to continue&lt;br /&gt;u will get next window specify voting disk location&lt;br /&gt;select on external redundancy and on next line give location&lt;br /&gt;voting disk location  /dev/raw/raw2 and click on next to continue&lt;br /&gt;u will get next window click on install to start installation&lt;br /&gt;At the end u will get window to run root.sh and Orainstroot.sh on both nodes with root user&lt;br /&gt;After running this scripts if u r getting error in pre requistion like couldn't find a suitable interfaces for vip's so configure vip using vipca it resides &lt;br /&gt;in clusterware software bin folder and configure vip's as explain above in this note.&lt;br /&gt;Finally u will get window installation completed successfully&lt;br /&gt;OCR :- keeps information of number of rac nodes&lt;br /&gt;Voting Disk :- Cluster processes vote we are alive.It ups another nodes background process if existing nodes fails.&lt;br /&gt;&lt;br /&gt;Installation of ASM:&lt;br /&gt;Using normal 10g software install asm&lt;br /&gt;$/home/oracle/oracle10gsoftware/runInstaller&lt;br /&gt;u will get first window select enterprise edition and click on next&lt;br /&gt;u will get second window specify the location of asm to install ex:/home/oracle/product/10.2/asm&lt;br /&gt;u will get next window specify hardware cluster installation mode&lt;br /&gt;select cluster installation,click on rac2 and finally click on next to continue&lt;br /&gt;u will get next window select configure automatic storage management(ASM)&lt;br /&gt;give password specify asm sys password (sys)&lt;br /&gt;give conform password (sys) and finally click on next to continue&lt;br /&gt;u will get next window select on external &lt;br /&gt;on same window select candidates and also select 1st and 2nd point and click on next to continue&lt;br /&gt;u will get next window to run root.sh on both nodes as root user&lt;br /&gt;finally u will get installation completed successfully click on exit to complete installation&lt;br /&gt;&lt;br /&gt;Creating ASM database&lt;br /&gt;$export PATH&lt;br /&gt;$export CLASS_PATH&lt;br /&gt;$export LD_LIBRARY&lt;br /&gt;$dbca if not works go to $ORACLE_ASM/bin and run&lt;br /&gt;u will get 1st window select cluset Real Application and click on next&lt;br /&gt;u will get next window select configure automatic storage management&lt;br /&gt;the output shows rac1 and rac2 on same window and click on select all to continue&lt;br /&gt;u will get next window give password:sys and click on next to continue&lt;br /&gt;u will get next window in that u will get by default Disk group name DATA&lt;br /&gt;in the same window select external&lt;br /&gt;in the same window select show candidates it will give output of third and fourth logical derives like /dev/raw/raw3 /dev/raw/raw4 &lt;br /&gt;By default i think selected if not select on both and click on ok to continue &lt;br /&gt;u will get next window click on finish to complete asm instance creation.&lt;br /&gt;&lt;br /&gt;Installation of Normal Oracle 10g software&lt;br /&gt;$/home/oracle/oracle10gsoftware/runInstaller&lt;br /&gt;u will get window Specify Hardware Cluster Installation Mode select on cluster installation&lt;br /&gt;in the same window u will get rac1 and rac2 by default it is selected if not select both rac1 and rac2 and click on select all to continue&lt;br /&gt;u will get next window click on next to continue&lt;br /&gt;u will get next window click on next to continue&lt;br /&gt;u will get next window select configuration option select install database software only and click on next to continue&lt;br /&gt;u will get next window click on install to complete installations&lt;br /&gt;&lt;br /&gt;Creation of database &lt;br /&gt;$export ORACLE_HOME=/home/oracle/product/10.2/db_1&lt;br /&gt;$export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin&lt;br /&gt;$dbca&lt;br /&gt;u will get first window select oracle RAC and click on next to continue&lt;br /&gt;u will get next window select on create database and click on next ot continue&lt;br /&gt;u will get next window in that u will get by default rac1 and rac2 and click on select all to continue&lt;br /&gt;u will get next window select general purpose and click on next to continue&lt;br /&gt;u will get next window write dbname and click on next to continue&lt;br /&gt;u will get next window click on next to continue&lt;br /&gt;u will get next window give password and click on next to continue&lt;br /&gt;u will get next window select automatic storage management and click on next to continue&lt;br /&gt;u will get next window specify sys password specific to asm give password and click on next to continue&lt;br /&gt;u will get next window select DATA and click on next to continue&lt;br /&gt;u will get next window select on use common location +DATA and click on next to continue&lt;br /&gt;u will get final window db creation completed successfully&lt;br /&gt;u will get prod1 instance on rac1 and prod2 instance name on rac2 &lt;br /&gt;u will get dbname prod on both nodes&lt;br /&gt;put the instance entries in /etc/oratab on both nodes&lt;br /&gt;for ex:prod1:/home/oracle/product/10.2/db_1  &lt;br /&gt;&lt;br /&gt;to check status of resources&lt;br /&gt;#/home/oracle/product/10.2/crs/bin/crs_stat -t&lt;br /&gt;&lt;br /&gt;to stop all resources&lt;br /&gt;#/home/oracle/product/10.2/crs/bin/crs_stop -all&lt;br /&gt;&lt;br /&gt;to check daemons&lt;br /&gt;#/home/oracle/product/10.2/crs/bin/crsctl check crs&lt;br /&gt; &lt;br /&gt;to stop daemons&lt;br /&gt;#/home/oracle/product/10.2/crs/bin/crsctl stop crs&lt;br /&gt;&lt;br /&gt;to stop services &lt;br /&gt;#service iscsi stop&lt;br /&gt;#service rawdevices stop&lt;br /&gt;&lt;br /&gt;to start services&lt;br /&gt;#service iscsi start&lt;br /&gt;#service rawdevices start&lt;br /&gt;#chown root.oinstall /dev/raw/raw1&lt;br /&gt;#chown oracle.oinstall /dev/raw/raw2&lt;br /&gt;#chown oracle.oinstall /dev/raw/raw3&lt;br /&gt;#chown oracle.oinstall /dev/raw/raw4&lt;br /&gt;&lt;br /&gt;vi editor to change from existing to new &lt;br /&gt;:%s/stop/start/g or&lt;br /&gt;:1,$s /stop/start&lt;br /&gt;&lt;br /&gt;To uninstall RAC&lt;br /&gt;1)stop crs on both nodes&lt;br /&gt;2)#/home/oracle/product/10.2/crs/install/rootdelete.sh local nosharedvar nosharedhome on bothnodes&lt;br /&gt;3)rm -rf /etc/ora* on both nodes&lt;br /&gt;4)rm -rf /var/tmp/.oracle on both nodes&lt;br /&gt;5)rm -rf /crs  /db_1 /asm&lt;br /&gt;6)rm -rf /etc/inittab.no*&lt;br /&gt;7)rm -rf /home/oracle/oraInventory&lt;br /&gt;8)ps -ef|grep pmon&lt;br /&gt;              crs&lt;br /&gt;              init.d&lt;br /&gt;              oracle&lt;br /&gt;$kill -9 &lt;id&gt;&lt;br /&gt;9)dd if=/dev/o of=/dev/raw/raw1 bs=8192 count=5000&lt;br /&gt;10)remove if available .crs .cssd .ocmd in /etc/rco.d&lt;br /&gt;&lt;br /&gt;To check performance of i/o harddisk.&lt;br /&gt;$dd if=/dev/zero of=/pyrosan/eastdata/santest bs=1024k count=10000 (it copied 10gb file)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-2581017603609955744?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/2581017603609955744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2011/10/setup-your-oracle-rac-using-open.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/2581017603609955744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/2581017603609955744'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2011/10/setup-your-oracle-rac-using-open.html' title='Setup your Oracle Rac using Open Filer...Copy and Paste Post'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-596321758722454245</id><published>2010-12-30T07:30:00.000-08:00</published><updated>2010-12-30T07:30:53.602-08:00</updated><title type='text'>Analyze Statement and Transferring Statistics.</title><content type='html'>&lt;b&gt;Analyze Statement&lt;br /&gt;&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;The ANALYZE statement can be used to gather statistics for a specific table, index or cluster. The statistics can be computed exactly, or estimated based on a specific number of rows, or a percentage of rows:&lt;br /&gt;&lt;br /&gt;ANALYZE TABLE employees COMPUTE STATISTICS;&lt;br /&gt;ANALYZE INDEX employees_pk COMPUTE STATISTICS;&lt;br /&gt;&lt;br /&gt;ANALYZE TABLE employees ESTIMATE STATISTICS SAMPLE 100 ROWS;&lt;br /&gt;ANALYZE TABLE employees ESTIMATE STATISTICS SAMPLE 15 PERCENT;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DBMS_STATS&lt;br /&gt;&lt;br /&gt;The DBMS_STATS package was introduced in Oracle 8i and is Oracles preferred method of gathering object statistics. Oracle list a number of benefits to using it including parallel execution, long term storage of statistics and transfer of statistics between servers. Once again, it follows a similar format to the other methods:&lt;br /&gt;&lt;br /&gt;EXEC DBMS_STATS.gather_database_stats;&lt;br /&gt;EXEC DBMS_STATS.gather_database_stats(estimate_percent =&gt; 15);&lt;br /&gt;&lt;br /&gt;EXEC DBMS_STATS.gather_schema_stats('SCOTT');&lt;br /&gt;EXEC DBMS_STATS.gather_schema_stats('SCOTT', estimate_percent =&gt; 15);&lt;br /&gt;&lt;br /&gt;EXEC DBMS_STATS.gather_table_stats('SCOTT', 'EMPLOYEES');&lt;br /&gt;EXEC DBMS_STATS.gather_table_stats('SCOTT', 'EMPLOYEES', estimate_percent =&gt; 15);&lt;br /&gt;&lt;br /&gt;EXEC DBMS_STATS.gather_index_stats('SCOTT', 'EMPLOYEES_PK');&lt;br /&gt;EXEC DBMS_STATS.gather_index_stats('SCOTT', 'EMPLOYEES_PK', estimate_percent =&gt; 15);&lt;br /&gt;This package also gives you the ability to delete statistics:&lt;br /&gt;&lt;br /&gt;EXEC DBMS_STATS.delete_database_stats;&lt;br /&gt;EXEC DBMS_STATS.delete_schema_stats('SCOTT');&lt;br /&gt;EXEC DBMS_STATS.delete_table_stats('SCOTT', 'EMPLOYEES');&lt;br /&gt;EXEC DBMS_STATS.delete_index_stats('SCOTT', 'EMPLOYEES_PK');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Transfering Stats&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;=================&lt;br /&gt;&lt;br /&gt; First the statistics must be collected into a statistics table. In the following examples the statistics for the APPS user are collected into a new table, STATS_TABLE, which is owned by scott:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  SQL&gt; EXEC DBMS_STATS.create_stat_table('SCOTT','STATS_TABLE');&lt;br /&gt;  SQL&gt; EXEC DBMS_STATS.export_schema_stats('APPS','STATS_TABLE',NULL,'SCOTT');&lt;br /&gt;&lt;br /&gt;This table can then be transfered to another server using your preferred method (Export/Import ) and the stats imported into the data dictionary as follows:&lt;br /&gt;&lt;br /&gt;  SQL&gt; EXEC DBMS_STATS.import_schema_stats('APPS','STATS_TABLE',NULL,'SCOTT');&lt;br /&gt;  SQL&gt; EXEC DBMS_STATS.drop_stat_table('APPS','STATS_TABLE');&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-596321758722454245?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/596321758722454245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2010/12/analyze-statement-and-transferring.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/596321758722454245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/596321758722454245'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2010/12/analyze-statement-and-transferring.html' title='Analyze Statement and Transferring Statistics.'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-1616102223854228410</id><published>2010-12-30T07:21:00.000-08:00</published><updated>2010-12-30T07:21:04.685-08:00</updated><title type='text'>TSM for ORACLE Installation</title><content type='html'>&lt;b&gt;TSM for ORACLE Installation&lt;i&gt;&lt;/i&gt;&lt;/b&gt; :-&lt;br /&gt;&lt;br /&gt;&lt;b&gt;On TSM server&lt;i&gt;&lt;/i&gt;&lt;/b&gt; :-&lt;br /&gt;&lt;br /&gt;1. Create Policy domain and backup copy group ( vere=1, verd=0, retain extra=0, retain only=0)&lt;br /&gt;2. Register TDP for Oracle node&lt;br /&gt;&lt;br /&gt;&lt;b&gt;On TSM client&lt;i&gt;&lt;/i&gt;&lt;/b&gt; :-&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Install TDP for oracle fileset&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Configure dsm.opt file in /usr/tivoli/tsm/client/api/bin64/dsm.opt&lt;/b&gt;&lt;br /&gt;    example :- &lt;br /&gt;  SErvername       tsmserv (provide tsm server name)&lt;br /&gt; &lt;br /&gt;&lt;b&gt;3. Configure dsm.sys file in /usr/tivoli/tsm/client/api/bin64/dsm.sys&lt;/b&gt;&lt;br /&gt;    example :- &lt;br /&gt;   SErvername   tsmserv (provide tsm server name)&lt;br /&gt;   COMMmethod           TCPip&lt;br /&gt;   TCPPort              1500&lt;br /&gt;   TCPServeraddress     192.168.13.104 (provide tsm server IP)&lt;br /&gt;   compression          no&lt;br /&gt;   errorlogname         /tmp/dsmerror_erpdev_ora.log (provide error log path)&lt;br /&gt;   nodename             erpdev_ora (provide node name)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. Configure tdpo.opt file in  /usr/tivoli/tsm/client/oracle/bin64/tdpo.opt&lt;/b&gt;&lt;br /&gt;    example :-&lt;br /&gt;           DSMI_ORC_CONFIG     /usr/tivoli/tsm/client/api/bin64/dsm.opt (provide option file path)&lt;br /&gt; DSMI_LOG            /tmp/ (provide error log directory)&lt;br /&gt;&lt;br /&gt; TDPO_FS             orc9_db&lt;br /&gt; TDPO_NODE          erpdev_ora (provide node name)&lt;br /&gt; *TDPO_OWNER         &lt;username&gt;&lt;br /&gt; *TDPO_PSWDPATH      /usr/tivoli/tsm/client/oracle/bin64&lt;br /&gt;&lt;br /&gt; *TDPO_DATE_FMT      1&lt;br /&gt; *TDPO_NUM_FMT       1&lt;br /&gt; *TDPO_TIME_FMT      1&lt;br /&gt;&lt;br /&gt; *TDPO_MGMT_CLASS_2   mgmtclass2&lt;br /&gt; *TDPO_MGMT_CLASS_3   mgmtclass3&lt;br /&gt; *TDPO_MGMT_CLASS_4   mgmtclass4&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5. Go to /usr/tivoli/tsm/client/oracle/bin64 and run&lt;/b&gt;&lt;br /&gt;  ./tdpoconf password&lt;br /&gt;&lt;br /&gt;&lt;b&gt;6. Put the node password and confirm with same password and you can oracle environment by giving ./tdpoconf showenv in the same path&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;7. Then give permission to &lt;br /&gt; dsmerror_erpprod_ora.log in /tmp (path of error log file)&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;8. Link the "TSM for DB" library file within oracle &lt;/b&gt;&lt;br /&gt;        -Shutdown oracle instance &lt;br /&gt;        -Change directory to oracle's lib directory &lt;br /&gt;                # cd /&lt;oracle's home directory&gt; &lt;br /&gt;                # cd lib &lt;br /&gt;        -Check presence of original libobk.a file         &lt;br /&gt;                # ls -l libobk.a &lt;br /&gt;        -If found rename it &lt;br /&gt;                # ln libobk.a libobk.a.org &lt;br /&gt;        -Link to TSM library &lt;br /&gt;                # ln –s /usr/lib/libobk64.a libobk.a &lt;br /&gt;        -Start oracle instance&lt;br /&gt;&lt;br /&gt;&lt;b&gt;9. Oracle administrator role is to create RMAN script for backup and set environment variable path for tdpo.opt file as " /usr/tivoli/tsm/client/oracle/bin64/tdpo.opt"&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-1616102223854228410?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/1616102223854228410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2010/12/tsm-for-oracle-installation.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1616102223854228410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1616102223854228410'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2010/12/tsm-for-oracle-installation.html' title='TSM for ORACLE Installation'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-3609920690130754279</id><published>2010-12-30T07:14:00.000-08:00</published><updated>2010-12-30T07:22:10.244-08:00</updated><title type='text'>ora-01555 snapshot too old error.</title><content type='html'>Now that we understand why the ORA-1555 occurs and some aspects about how they can occur we need to examine the following:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How can we logically determine and resolve what has occurred to cause the ORA-1555?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1) Determine if UNDO_MANAGEMENT is MANUAL or AUTO&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;If set to MANUAL, it is best to move to AUM.  If it is not feasible to switch to AUM see&lt;br /&gt;&lt;br /&gt;Note 69464.1 Rollback Segment Configuration &amp; Tips &lt;br /&gt;&lt;br /&gt;to attempt to tune around the ORA-1555 using V$ROLLSTAT&lt;br /&gt;&lt;br /&gt;If set to AUTO, proceed to #2 &lt;br /&gt;&lt;br /&gt;&lt;b&gt;2) Gather the basic data &lt;br /&gt;&lt;/b&gt;&lt;br /&gt;a) Acquire both the error message from the user / client ... and the message in the alert log &lt;br /&gt;&lt;br /&gt;User / Client session example: &lt;br /&gt;&lt;br /&gt;ORA-01555: snapshot too old: rollback segment number 9 with name "_SYSSMU1$" too small &lt;br /&gt;&lt;br /&gt;Alert log example &lt;br /&gt;&lt;br /&gt;ORA-01555 caused by SQL statement below (Query Duration=9999 sec, SCN:0x000.008a7c2d) &lt;br /&gt;&lt;br /&gt;b) Determine the QUERY DURATION from the message in the alert log &lt;br /&gt;&lt;br /&gt;From our example above ... this would be 9999 &lt;br /&gt;&lt;br /&gt;c) Determine the undo segment name from the user / client message &lt;br /&gt;&lt;br /&gt;From our example above ... this would be _SYSSMU1$ &lt;br /&gt;&lt;br /&gt;d) Determine the UNDO_RETENTION of the undo tablespace &lt;br /&gt;&lt;br /&gt;show parameter undo_retention &lt;br /&gt;&lt;br /&gt;&lt;b&gt;3) Determine if the ORA-1555 is occurring with an UNDO or a LOB segment &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If the undo segment name is null ... &lt;br /&gt;&lt;br /&gt;ORA-01555: snapshot too old: rollback segment number  with name "" too small &lt;br /&gt;&lt;br /&gt;or the undo segment is unknown &lt;br /&gt;&lt;br /&gt;ORA-01555: snapshot too old: rollback segment number # with name "???" too small&lt;br /&gt;&lt;br /&gt;then this means this is a read consistent failure on a LOB segment&lt;br /&gt;&lt;br /&gt;If the segment_name or the undo segment is known the error is occurring with an UNDO segment. &lt;br /&gt;&lt;br /&gt;==============================================================================================&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What to do if an ORA-1555 is occurring with an UNDO segment &lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1) QUERY DURATION &gt; UNDO_RETENTION&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;There are no guarantees that read consistency can be maintained after the transaction slot for the&lt;br /&gt;committed row has expired (exceeded UNDO_RETENTION) &lt;br /&gt;&lt;br /&gt;Why would one think that the transaction slot's time has exceeded UNDO_RETENTION? &lt;br /&gt;&lt;br /&gt;Lets answer this with an example &lt;br /&gt;&lt;br /&gt;If UNDO_RETENTION = 900 seconds ... but our QUERY DURATION is 2000 seconds ...&lt;br /&gt;&lt;br /&gt;This says that our query has most likely encountered a row that was committed more than 900 &lt;br /&gt;seconds ago ... and has been overwritten as we KNOW that the transaction slot being examined&lt;br /&gt;no longer matches the row we are looking for &lt;br /&gt;&lt;br /&gt;The reason we say "most likely" is that it is possible that an unexpired committed transaction slot was &lt;br /&gt;overwritten due to either space pressure on the undo segment or this is a bug &lt;br /&gt;&lt;br /&gt;SOLUTION:&lt;br /&gt;&lt;br /&gt;The best solution is to tune the query can to reduce its duration. If that cannot be done then increase &lt;br /&gt;UNDO_RETENTION based on QUERY DURATION to allow it to protect the committed &lt;br /&gt;transaction slots for a longer period of time &lt;br /&gt;&lt;br /&gt;NOTE: Increasing UNDO_RETENTION requires additional space in the UNDO tablespace.  Make&lt;br /&gt;sure to accommodate for this space.  One method of doing this is to set AUTOEXTEND on one or&lt;br /&gt;more of the UNDO tablespace datafiles for a period of time to allow for the increased space. Once the &lt;br /&gt;size has stabilized, AUTOEXTEND can be removed.&lt;br /&gt;&lt;br /&gt;See the solution for #2 below for more options &lt;br /&gt;&lt;br /&gt;&lt;b&gt;2) QUERY DURATION &lt;= UNDO_RETENTION&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;This case is most often due to the UNDO tablespace becoming full sometime during the time when the&lt;br /&gt;query was running &lt;br /&gt;&lt;br /&gt;How do we tell if the UNDO tablespace has become full during the query? &lt;br /&gt;&lt;br /&gt;Examine V$UNDOSTAT.UNXPSTEALCNT for the period while the query that generated the &lt;br /&gt;ORA-1555 occurred.&lt;br /&gt;&lt;br /&gt;This column shows committed transaction slots that have not exceeded UNDO_RETENTION but &lt;br /&gt;were overwritten due to space pressure on the undo tablespace (IE became full).&lt;br /&gt;&lt;br /&gt;If UNEXPSTEACNT &gt; 0 for the time period during which the query was running then this shows &lt;br /&gt;that the undo tablespace was too small to be able to maintain UNDO_RETENTION.  Unexpired &lt;br /&gt;blocks were over written, thus ending read consistency for those blocks for that time period.&lt;br /&gt;set pagesize 25&lt;br /&gt;set linesize 120&lt;br /&gt;&lt;br /&gt;select inst_id, &lt;br /&gt;to_char(begin_time,'MM/DD/YYYY HH24:MI') begin_time, &lt;br /&gt;UNXPSTEALCNT "# Unexpired|Stolen", &lt;br /&gt;EXPSTEALCNT "# Expired|Reused", &lt;br /&gt;SSOLDERRCNT "ORA-1555|Error", &lt;br /&gt;NOSPACEERRCNT "Out-Of-space|Error", &lt;br /&gt;MAXQUERYLEN "Max Query|Length"&lt;br /&gt;from gv$undostat&lt;br /&gt;where begin_time between &lt;br /&gt;to_date('&lt;start time of the ORA-1555 query&gt;','MM/DD/YYYY HH24:MI:SS') &lt;br /&gt;and &lt;br /&gt;to_date('&lt;time when ORA-1555 occured&gt;','MM/DD/YYYY HH24:MI:SS')&lt;br /&gt;order by inst_id, begin_time;&lt;br /&gt;&lt;br /&gt;NOTE: Start time of the query can be determined by subtracting the query duration from the timestamp&lt;br /&gt;of the ORA-1555&lt;br /&gt;EXAMPLE:&lt;br /&gt;&lt;br /&gt;Tue May 26 16:16:57 2009&lt;br /&gt;ORA-01555 caused by SQL statement below (SQL ID: 54yn3n36w24ft, Query Duration=922 sec, SCN: 0x0007.8a55f4e3)&lt;br /&gt;&lt;br /&gt;922 seconds is 15 min 22 seconds&lt;br /&gt;&lt;br /&gt;So the start time of the query would be May 26 16:01:35&lt;br /&gt;&lt;br /&gt;If after researching, you find no existing bugs seem to match your case, then additional info will be&lt;br /&gt;needed to file a bug.&lt;br /&gt;&lt;br /&gt;Starting with release 9.2.0.4 an event, 10442, can be set to dump all the necessary diagnostics&lt;br /&gt;information to one trace file. NOTE: Event 10442 does not trigger diagnostics in cases where the &lt;br /&gt;ORA-1555 error is associated with out-of-row LOB undo.&lt;br /&gt;&lt;br /&gt;The event can be enabled using the following settting in init.ora&lt;br /&gt;&lt;br /&gt;event="10442 trace name context forever, level 10"&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;Alter system set events '10442 trace name context forever , level 10';&lt;br /&gt;Reproduce the ORA-1555 error with a new connection to trigger the trace diagnostics file.&lt;br /&gt;NOTE:  There have been issues with 10g and 11g on RAC using 10442.  The event can contribute to factors leading to a hang on one or more nodes on the RAC.  Refer to Bug 10051817 for more fixes for these problems on RAC.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another thing to consider is whether Oracle is behaving as designed as far as "steal logic" is concerned&lt;br /&gt;&lt;br /&gt;Here is the logic for allocating space for a new transaction--based on Bug:4070480&lt;br /&gt;&lt;br /&gt;* Allocate new extent in the undo tablespace&lt;br /&gt;* If failed, steal an expired extent from another undo segment. This involves shrinking from the&lt;br /&gt;other segment and adding to the current undo segment.&lt;br /&gt;* If failed, autoextend a datafile (if enabled)&lt;br /&gt;* If failed, reuse an unexpired extent from the current undo segment.&lt;br /&gt;* If failed, steal an unexpired extent from another undo segment.&lt;br /&gt;* If failed, report an "Out-Of-Space" error.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What to do if an ORA-1555 is occurring with a LOB segment&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1) Often the ORA-1555 with the null undo segment is accompanied by an ORA-22924&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Error: ORA-22924&lt;br /&gt;Text: snapshot too old&lt;br /&gt;---------------------------------------------------------------------------&lt;br /&gt;Cause: The version of the LOB value needed for the consistent read was already overwritten by another&lt;br /&gt;writer.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2) Determine if PCTVERSION or RETENTION is used&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Examine DBA_LOBS.PCTVERSION and DBA_LOBS.RETENTION&lt;br /&gt;(or investigate through the data dictionary--see below)&lt;br /&gt;&lt;br /&gt;NOTE: Only one of these may be set, so this will determine which method of undo management is&lt;br /&gt;used for this LOB&lt;br /&gt;&lt;br /&gt;There is a bug with these two columns prior to 10.2 and as such the data dictionary must be&lt;br /&gt;examined to determine which of these is being used&lt;br /&gt;&lt;br /&gt;Note 422826.1 How To Identify LOB Segment Use PCTVERSION Or RETENTION From&lt;br /&gt;Data Dictionary&lt;br /&gt;&lt;br /&gt;&lt;b&gt;If PCTVERSION is used&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;------------------------------------&lt;br /&gt;&lt;br /&gt;This method of LOB undo management is akin to use of rollback segments and as such there is little&lt;br /&gt;control to tune undo usage.&lt;br /&gt;&lt;br /&gt;The only parameter we have control over with this method is PCTVERSION itself.&lt;br /&gt;&lt;br /&gt;SOLUTION:&lt;br /&gt;&lt;br /&gt;Increase PCTVERSION&lt;br /&gt;ALTER TABLE **table name** MODIFY LOB (**lob column name**) (PCTVERSION 100)&lt;br /&gt;&lt;br /&gt;If the parameter is at 100% then the only solution will be to move to use of RETENTION&lt;br /&gt;ALTER TABLE **table name** MODIFY LOB (**lob column name**) (RETENTION)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;If RETENTION is used&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;---------------------------------    &lt;br /&gt;&lt;br /&gt;You may have RETENTION in place, but it may not be working as you expect.  &lt;br /&gt;&lt;br /&gt;See Note 800386.1 ORA-1555 - UNDO_RETENTION is silently ignored if the LOB &lt;br /&gt;resides in a MSSM tablespace&lt;br /&gt;Note 563470.1 Lob retention not changing when undo_retention is changed &lt;br /&gt;&lt;br /&gt;If RETENTION is used the same rules apply for the LOB segments as do the UNDO segments&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1) QUERY DURATION &gt; UNDO_RETENTION&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;There are no guarantees that read consistency can be maintained after the old lob segment for &lt;br /&gt;the committed row has expired (exceeded UNDO_RETENTION)&lt;br /&gt;&lt;br /&gt;SOLUTION:&lt;br /&gt;&lt;br /&gt;The best solution is to tune the query to reduce its duration. If that cannot be done then&lt;br /&gt;increase UNDO_RETENTION based on QUERY DURATION to allow it to protect the&lt;br /&gt;committed transaction slots for a longer period of time.  A change to UNDO_RETENTION &lt;br /&gt;does not automatically change RETENTION.  See Note 563470.1 Lob retention not &lt;br /&gt;changing when undo_retention is changed.&lt;br /&gt;&lt;br /&gt;NOTE 1: Increasing UNDO_RETENTION requires additional space in the LOB segments&lt;br /&gt;tablespace.  Make sure to accommodate for this.  One method of doing this is to set &lt;br /&gt;AUTOEXTEND on one of more of the lob segments tablespace datafiles.  There may or &lt;br /&gt;may not be a stabilization of size like the UNDO tablespace.  If it does stabilize then the &lt;br /&gt;AUTOEXTEND can be removed.  See the solution for #2 below for more options.&lt;br /&gt;&lt;br /&gt;NOTE 2: RETENTION for LOBs does not function the same as it does for undo.  LOB segments &lt;br /&gt;will not automatically extend to allow for retention of read consistent copies of a lob.  As &lt;br /&gt;such, at times like these, PCTVERSION 100 is a better solution. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;2) QUERY DURATION &lt;= UNDO_RETENTION&lt;/b&gt;&lt;br /&gt;This case is most often due to the LOB segments tablespace becoming full sometime during the time &lt;br /&gt;when the query was running.&lt;br /&gt;&lt;br /&gt;How do we tell if the LOB segment tablespace has become full during the query?&lt;br /&gt;&lt;br /&gt;Unfortunately there is no easy way to do this.  V$UNDOSTAT does not contain info about the LOB &lt;br /&gt;segments.  There may be a way to use Enterprise Manager and examine the high watermark&lt;br /&gt;(HWM) of the tablespace in question.&lt;br /&gt;&lt;br /&gt;There is an enhancement request for this info to be included in the future &lt;br /&gt;&lt;br /&gt;Bug:3200789 Abstract: VISIBILITY OF LOB SEGMENT USAGE FOR UNDO&lt;br /&gt;&lt;br /&gt;SOLUTION:&lt;br /&gt;&lt;br /&gt;Provide more space in the LOB segments tablespace so that transaction slots do not have to be&lt;br /&gt;stolen.  This can be done by:&lt;br /&gt;&lt;br /&gt;* Using AUTOEXTEND on an existing LOB segments tablespace datafile&lt;br /&gt;* Increase the size of an existing LOB segments tablespace datafile&lt;br /&gt;* Add a datafile to the LOB segments tablespace&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3) Occasionally we encounter situations that do not fit into either #1 or #2 above.&lt;/b&gt; We have to consider the possibility of a bug in those cases.&lt;br /&gt;&lt;br /&gt;EXAMPLES:&lt;br /&gt;&lt;br /&gt;Note 253131.1 Concurrent Writes May Corrupt LOB Segment When Using Auto Segment &lt;br /&gt;Space Management (ORA-1555)&lt;br /&gt;&lt;br /&gt;Bug:5636728 FALSE ORA-1555 WHEN READING LOBS AFTER SHRINK&lt;br /&gt;&lt;br /&gt;NOTE: If RAC is in use, changes must be made to AT LEAST the instance that raised the ORA-1555&lt;br /&gt;&lt;br /&gt;The following query will determine the instance on which the ORA-1555 occurred &lt;br /&gt;select stat.inst_id, seg.tablespace_name&lt;br /&gt;from dba_rollback_segs seg, gv$rollstat stat&lt;br /&gt;where seg.segment_id = stat.usn&lt;br /&gt;and seg.segment_name='&lt;undo SEGMENT NAME REPORTED IN THE ALERT LOG MESSAGE&gt;';&lt;br /&gt;&lt;br /&gt;@ Former title: ORA-1555 - YET STILL ANOTHER APPROACH&lt;br /&gt;&lt;br /&gt;References&lt;br /&gt;BUG:5636728 - FALSE ORA-1555 WHEN READING LOBS AFTER SHRINK&lt;br /&gt;BUG:6919859 - ORA-22924, ORA-1555: SNAPSHOT TOO OLD WITH RETENTION BASED LOB&lt;br /&gt;NOTE:104008.1 - ORA-01555: "SNAPSHOT TOO OLD" - Additional Solutions&lt;br /&gt;NOTE:10630.1 - ORA-01555: "Snapshot too old" - Overview&lt;br /&gt;NOTE:253131.1 - Concurrent Writes May Corrupt LOB Segment When Using Auto Segment Space Management (ORA-1555)&lt;br /&gt;NOTE:389554.1 - ORA-1555 Using Automatic Undo Management - How to troubleshoot&lt;br /&gt;NOTE:40689.1 - ORA-01555 "Snapshot too old" - Detailed Explanation&lt;br /&gt;NOTE:422826.1 - How To Identify LOB Segment Use PCTVERSION Or RETENTION From Data Dictionary&lt;br /&gt;NOTE:452341.1 - ORA-01555 And Other Errors while Exporting Table With LOBs, How To Detect Lob Corruption.&lt;br /&gt;NOTE:563470.1 - Lob retention not changing when undo_retention is changed&lt;br /&gt;NOTE:800386.1 - ORA-1555 - UNDO_RETENTION is silently ignored if the LOB resides in a MSSM tablespace&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-3609920690130754279?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/3609920690130754279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2010/12/now-that-we-understand-why-ora-1555.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/3609920690130754279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/3609920690130754279'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2010/12/now-that-we-understand-why-ora-1555.html' title='ora-01555 snapshot too old error.'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-1447668340898000339</id><published>2010-09-14T00:27:00.000-07:00</published><updated>2010-09-14T00:27:57.242-07:00</updated><title type='text'>Points_2_Resolve the ORA-12705 error</title><content type='html'>&lt;b&gt;Below are the points to fix the issue on your oracle client machine.&lt;i&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Cause:  There are two possible causes: Either an attempt was made to issue an ALTER SESSION statement with an invalid NLS parameter or value; or the NLS_LANG environment variable contains an invalid language, territory, or character set. &lt;br /&gt;&lt;br /&gt;Action: Check the syntax of the ALTER SESSION command and the NLS parameter, correct the syntax and retry the statement, or specify correct values in the NLS_LANG environment variable. &lt;br /&gt;&lt;br /&gt;Points to fix the issue:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1.simply set it with the below command&lt;br /&gt;C:&gt;set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252. (if not fix,try with below procedure)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2.From start--&gt;Run---&gt;Type regedit---&gt;HKEY_LOCAL_MACHINE--&gt;SOFTWARE--&gt;ORACLE--&gt;HOME folder has a key&lt;br /&gt;NLS_LANG as AMERICAN_AMERICA.WE8MSWIN1252. &lt;br /&gt;change to AMERICAN_AMERICA.WE8ISO8859P15 may fix your connectivity issue. (Permanent fix, even if not fix try with below procedure)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3.Try this...&lt;br /&gt;check if exist into windows registry (regedit) the oracle_home&lt;br /&gt;Example&lt;br /&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE]&lt;br /&gt;ORACLE_HOME=&lt;location&gt; (for ex: D:\Appls\Oracle)&lt;br /&gt;if not create one.&lt;br /&gt;and add the path into the windows variable PATH adding bin folder&lt;br /&gt;example D:\Appls\Oracle\bin&lt;br /&gt;Control Panel -&gt; System -&gt; Advanced Options -&gt; Environment variables - &gt; system variables -&gt; path&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Still not resolve&lt;br /&gt;Just go regedit --&gt;Oracle Home--and delete the NLS entries from there..You should be fine.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Final point if not solve with above points, uninstall and install Oracle client software.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-1447668340898000339?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/1447668340898000339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2010/09/points2resolve-ora-12705-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1447668340898000339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1447668340898000339'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2010/09/points2resolve-ora-12705-error.html' title='Points_2_Resolve the ORA-12705 error'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-1844260405320875577</id><published>2010-08-29T22:23:00.000-07:00</published><updated>2010-08-29T22:23:04.297-07:00</updated><title type='text'>WHEN TO REORGANIZE TABLES AND REBUILD INDEXES.</title><content type='html'>&lt;b&gt;When to reorganize tables and rebuild indexes:&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt; Table fragmentation:When rows are not stored contiguously or if rows are split auto more than one block,performance decrease because these rows required additional block accesses.&lt;br /&gt;  Note that table fragmentation is different from file fragmentation.When a lot of DML operations are applied on a table,the table will become fragmentation because DML does not release free space from the table below the HWM.&lt;br /&gt;  HWM is an indicator of used blocks in the database.Blocks below the high water mark (used blocks) have at least once contained data.This data might have been deleted.Since oracle knows that blocks before the high water mark didn't have data,it only reads block up to the high water when doing a full table scan.&lt;br /&gt;*DDL statements always resets the HWM.&lt;br /&gt; &lt;br /&gt;Table size (with fragmentation)&lt;br /&gt;Sql&gt;exec dbms_stat.gather_table_stats('SCOTT','BIG1');&lt;br /&gt;Sql&gt;select table_name,round((blocks*8),2)||'kb' "size" from user_tables where table_name='BIG1'&lt;br /&gt;output of the command:&lt;br /&gt;table_name  size &lt;br /&gt;BIG1        72952 kb&lt;br /&gt;&lt;br /&gt;Actual data in table&lt;br /&gt;Sql&gt;select table_name,round((num_rows*avg_row_len/1024),||'kb' "size" from user_tables where table_name='BIG1';&lt;br /&gt;output&lt;br /&gt;table_name  size &lt;br /&gt;BIG1        30604.2 kb&lt;br /&gt;&lt;br /&gt;72952-30604=42348 kb is wasted space in table&lt;br /&gt;   The difference between two values is 60% and pct free 10%(default)-so,the table has 50% extra space which is wasted becuase there is no data.&lt;br /&gt;      How to reset HWM/remove fragmentation  ?&lt;br /&gt;4 options:&lt;br /&gt;1)alter table .. move to another tablespace.&lt;br /&gt;2)export,truncate or drop import.&lt;br /&gt;3)CTAS method&lt;br /&gt;4)dbms_redifinition&lt;br /&gt;&lt;br /&gt;To check indexes&lt;br /&gt;sql&gt;select status,index_name from user_indexes where table_name='BIG1';&lt;br /&gt;output &lt;br /&gt;status    index_name&lt;br /&gt;unusable   bigidx&lt;br /&gt;sql&gt;alter index bigidx rebuild;&lt;br /&gt;select del_lf_rows*100/decode(lf_rows,0,1,lf_rows) from index_stats where name='&lt;INDEXNAME&gt;';&lt;br /&gt; you may decide that index should be rebuilt if more than 20% of its rows are deleted. &lt;br /&gt;&lt;br /&gt;How can you determine if an index needs to be dropped and rebuilt?&lt;br /&gt;Level: Intermediate&lt;br /&gt;Expected answer: Run the ANALYZE INDEX command on the index to validate its structure and then calculate the ratio of LF_BLK_LEN/LF_BLK_LEN+BR_BLK_LEN and if it isn?t near 1.0 (i.e. greater than 0.7 or so) then the index should be rebuilt. Or if the ratio&lt;br /&gt;BR_BLK_LEN/ LF_BLK_LEN+BR_BLK_LEN is nearing 0.3&lt;br /&gt;&lt;br /&gt;To check the compress or not compress mode:&lt;br /&gt;Sql&gt;select compression from dba_tables where table_name in &lt;'tablename'&gt;;&lt;br /&gt;  If some times show actual size is greater than the table size it is due to in compress mode of table&lt;br /&gt;If table is compress make this to no compress mode&lt;br /&gt;Sql&gt;alter table move nocompress;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-1844260405320875577?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/1844260405320875577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2010/08/when-to-reorganize-tables-and-rebuild.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1844260405320875577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1844260405320875577'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2010/08/when-to-reorganize-tables-and-rebuild.html' title='WHEN TO REORGANIZE TABLES AND REBUILD INDEXES.'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-2887084568217905846</id><published>2010-08-29T22:00:00.000-07:00</published><updated>2010-08-29T22:00:01.692-07:00</updated><title type='text'>MYSQL_DBA_BEGINNER.</title><content type='html'>&lt;i&gt; &lt;b&gt;MYSQL DOCUMENTATION&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;To install Mysql&lt;br /&gt;#rpm -ivh mysql-server-community_x86-64.rpm&lt;br /&gt;&lt;br /&gt;After installing immediately give password&lt;br /&gt;#/usr/bin/mysqladmin -u root -p password "root123"&lt;br /&gt;&lt;br /&gt;To start and stop mysql server&lt;br /&gt;&lt;br /&gt;#/etc/init.d/mysql start&lt;br /&gt;#/etc/init.d/mysql stop&lt;br /&gt;&lt;br /&gt;To connect mysql&lt;br /&gt;#mysql -u root -p&lt;br /&gt;&lt;br /&gt;To check databases and use database&lt;br /&gt;Mysql&gt;show databases;&lt;br /&gt;Mysql&gt;use &lt;dbname&gt;;&lt;br /&gt;&lt;br /&gt;To check tables and its contents and its use&lt;br /&gt;Mysql&gt;show tables;&lt;br /&gt;Mysql&gt;desc &lt;tablename&gt;;&lt;br /&gt;Mysql&gt;select * from &lt;tablename&gt;;&lt;br /&gt;&lt;br /&gt;To create user&lt;br /&gt;Mysql&gt;create user 'khan'@'localhost' identified by 'khan';&lt;br /&gt;&lt;br /&gt;To give Privileges&lt;br /&gt;Mysql&gt;grant select,insert,update,delete on *.* to 'khan';&lt;br /&gt;&lt;br /&gt;To drop user&lt;br /&gt;Mysql&gt;drop user 'khan'@'localhost';&lt;br /&gt;&lt;br /&gt;To check which database to connected&lt;br /&gt;Mysql&gt;select database ();&lt;br /&gt;&lt;br /&gt;To check which user is connected&lt;br /&gt;Mysql&gt;select user ();&lt;br /&gt;&lt;br /&gt;To check how many users have&lt;br /&gt;Mysql&gt;select distinct grantee from user_privileges;&lt;br /&gt;&lt;br /&gt;Global privileges are administrative or apply to all databases on a given server. To assign global privileges, use ON *.* syntax:&lt;br /&gt;&lt;br /&gt;GRANT ALL ON *.* TO 'someuser'@'somehost';&lt;br /&gt;GRANT SELECT, INSERT ON *.* TO 'someuser'@'somehost';&lt;br /&gt;&lt;br /&gt;Only two rows information need give limit 2 in your query&lt;br /&gt;&lt;br /&gt;In mysql by default database create in /var/lib/mysql&lt;br /&gt;&lt;br /&gt;To create table&lt;br /&gt;Mysql&gt;create table oolaala(name varchar(20));&lt;br /&gt;&lt;br /&gt;To check mysql version&lt;br /&gt;#rpm -qa|grep -i mysql&lt;br /&gt;&lt;br /&gt;Try this after relocating files if errors getting&lt;br /&gt;#setsebool -p mysqld_disable_trans=1&lt;br /&gt;&lt;br /&gt;Note:If not available my.cnf file or removed or  '/home/oracle/data/three/redo01a.log' size 20m,lost we can copy the same file available in /usr/share/mysql (my_large.cnf)&lt;br /&gt;&lt;br /&gt;MYISAM INNODB (engines of mysql)&lt;br /&gt;&lt;br /&gt;By default tables create in MYISAM&lt;br /&gt;&lt;br /&gt;To create tables in INNODB&lt;br /&gt;set in my.cnf (uncomment#innodb parameter)&lt;br /&gt;&lt;br /&gt;Mysql&gt;create table pepsi(name varchar(10)) engine=innodb;&lt;br /&gt;&lt;br /&gt;MYISAM is for OLAP and INNODB is for OLTP&lt;br /&gt;&lt;br /&gt;To check connection errors or any errors&lt;br /&gt;#/var/log/messages or /var/log/sys/logs of /var/lib/mysql/mysqld.log&lt;br /&gt;&lt;br /&gt;How to rename and relocate on datafiles&lt;br /&gt;1.Stop service&lt;br /&gt;2.copy data directory on another mount point&lt;br /&gt;3.vi /etc/my.cnf&lt;br /&gt;#The MySQL server&lt;br /&gt;[mysqld]&lt;br /&gt;datadir=/home/mysql/data (five here different mount point)&lt;br /&gt;user=mysql&lt;br /&gt;&lt;br /&gt;To migrate from Oracle to Mysql&lt;br /&gt;1.PhpAdmin tool use or&lt;br /&gt;2.$mysql -u &lt;username&gt; -p&lt;password&gt; &lt;dbname&gt; &lt; abc.sql3.mysql&gt;source abc.sql&lt;br /&gt;&lt;br /&gt;It helps to migrate from oracle to mysql&lt;br /&gt;&lt;br /&gt;To create tables in oracle&lt;br /&gt;set echo off&lt;br /&gt;set heading off&lt;br /&gt;spool t1_insert.txt&lt;br /&gt;create table t1 (c1 number, c2 varchar2(10), c3 date);&lt;br /&gt;insert into t1 values (1,'one', sysdate);&lt;br /&gt;insert into t1 values (2,'two', sysdate);&lt;br /&gt;commit;&lt;br /&gt;select 'insert into t1 (c1, c2, c3) values (' || c1 || ', ' || c2 || ', ' || c3 || ');'   from t1;&lt;br /&gt;select 'insert into t1 (c1, c2, c3) values (' || c1 || ', ''' || c2 || ''', ''' || to_char(c3,'yyyy-mm-dd hh24:mi:ss') || ''');'   from t1;&lt;br /&gt;spool off&lt;br /&gt;&lt;br /&gt;To create tables in Mysql&lt;br /&gt;create table t1 (c1 int, c2 varchar(10), c3 datetime);&lt;br /&gt;select '' || c1 || ', ''' || c2 || ''', ''' || to_char(c3,'yyyy-mm-dd hh24:mi:ss') || ''''   from t1;&lt;br /&gt;&lt;br /&gt;make t1_insert.txt to t1_insert.sql&lt;br /&gt;&lt;br /&gt;to migrate&lt;br /&gt;mysql&gt;source t1_insert.sql&lt;br /&gt;&lt;br /&gt;To take logical backup dump of mysql&lt;br /&gt;&lt;br /&gt;#mysqldump -uroot -padmin --all-database &gt;testmysql.sql&lt;br /&gt;it generates file that we can read for import on mysql or oracle. For oracle change the data format and import by running sql file.&lt;br /&gt;&lt;br /&gt;site to download mysql software&lt;br /&gt;&lt;i&gt;http://dev.mysql.com/&lt;b&gt;&lt;/b&gt;&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-2887084568217905846?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/2887084568217905846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2010/08/mysqldbabeginner.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/2887084568217905846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/2887084568217905846'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2010/08/mysqldbabeginner.html' title='MYSQL_DBA_BEGINNER.'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-1424009923868470992</id><published>2010-06-06T23:38:00.000-07:00</published><updated>2010-06-06T23:38:28.884-07:00</updated><title type='text'>ORACLE_11G_NEW_FEATURES</title><content type='html'>&lt;b&gt;ORACLE 11G NEW FEATURES:&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Installation, Database Upgrades and Change Management&lt;br /&gt;Installation New Features Support &lt;br /&gt;Role and Privilege Changes &lt;br /&gt;Deprecated Components&lt;br /&gt;New Initialization Parameters Affecting Database Creation&lt;br /&gt;DBCA Enhancements&lt;br /&gt;Upgrading to Oracle Database 11g&lt;br /&gt;Database Replay&lt;br /&gt;The SQL Performance Analyzer&lt;br /&gt;Patching in Oracle Database Control&lt;br /&gt;Database Diagnosis and Repair&lt;br /&gt;Introducing Automatic Diagnostic Repository (ADR) &lt;br /&gt;Configuring the ADR&lt;br /&gt;Using adrci Tool &lt;br /&gt;Using The Support Workbench in the OEM &lt;br /&gt;Database Health Monitor &lt;br /&gt;Data Recovery Advisor&lt;br /&gt;SQL Test Case Builder &lt;br /&gt;Data Block Corruption Parameters &lt;br /&gt;Database Administration &lt;br /&gt;Automatic Memory Management &lt;br /&gt;Automatic Maintenance Tasks &lt;br /&gt;Oracle Flashback-Related New Features&lt;br /&gt;LogMiner Interface in Oracle Enterprise Manager&lt;br /&gt;Oracle Flashback Transaction Backout&lt;br /&gt;Flashback Data Archive&lt;br /&gt;Virtual Columns &lt;br /&gt;New Data Partitioning Schemes &lt;br /&gt;DDL Lock Timeout &lt;br /&gt;Explicit Locking of Tables&lt;br /&gt;Invisible Indexes&lt;br /&gt;Read-Only Tables &lt;br /&gt;Shrinking Temporary Tablespaces and Tempfiles&lt;br /&gt;Creating an Initialization Parameter File from Memory &lt;br /&gt;Restore Point Enhancements &lt;br /&gt;Database Resident Connection Pooling&lt;br /&gt;Comparing and Synchronizing Database Objects&lt;br /&gt;SQL*Plus New Features&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Oracle 11g New Features for Administrators:- &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Online Application Maintenance&lt;br /&gt;Oracle Advanced Compression Option&lt;br /&gt;Oracle Scheduler New Features &lt;br /&gt;Lightweight Jobs &lt;br /&gt;Remote External Jobs &lt;br /&gt;Finer-grained Dependency Management &lt;br /&gt;Enhancements in Oracle Database Resource Manager&lt;br /&gt;Performance Tuning &lt;br /&gt;PL/SQL Native Compilation&lt;br /&gt;Server Result Cache &lt;br /&gt;Client Side Result Cache&lt;br /&gt;Enhanced Oracle Process Monitoring&lt;br /&gt;Subprogram Inlining&lt;br /&gt;SQL Tuning Automation &lt;br /&gt;SQL Access Advisor Enhancements &lt;br /&gt;Changing Statistics Preferences &lt;br /&gt;Enhanced Statistics Maintenance &lt;br /&gt;SQL Plan Management&lt;br /&gt;ADDM New Features &lt;br /&gt;AWR New Features &lt;br /&gt;Setting Metric Thresholds for Baselines &lt;br /&gt;Performance-Related Changes in Database Control &lt;br /&gt;Miscellaneous New Performance Tuning Features &lt;br /&gt;Real-Time SQL Monitoring &lt;br /&gt;Adaptive Cursor Sharing&lt;br /&gt;Database Security &lt;br /&gt;Stronger Password Hash Algorithm &lt;br /&gt;Security Out of the Box &lt;br /&gt;Anti Network Attacks Parameters &lt;br /&gt;Tablespace Encryption &lt;br /&gt;Fine-Grained Access Control for UTL_* Packages &lt;br /&gt;Further Security New Features &lt;br /&gt;Backup and Recovery New Features&lt;br /&gt;Enhanced Block Media Recovery &lt;br /&gt;RMAN Substitution Variables &lt;br /&gt;New RMAN Configuration Parameters&lt;br /&gt;The Multisection Backups &lt;br /&gt;Creating Archival Backups &lt;br /&gt;VALIDATE Command &lt;br /&gt;Configuring an Archived Redo Log Deletion Policy &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Oracle 11g New Features for Administrators:-&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Active Database Duplication &lt;br /&gt;Importing and Moving Recovery Catalogs&lt;br /&gt;Virtual Private Catalogs&lt;br /&gt;Miscellaneous New Features in RMAN&lt;br /&gt;Data Pump Utilities&lt;br /&gt;Compression Enhancement &lt;br /&gt;Encryption Enhancements &lt;br /&gt;Reusing a Dump File&lt;br /&gt;Remapping Data &lt;br /&gt;Renaming Tables During Export or Import&lt;br /&gt;Data Pump and Partitioned Tables &lt;br /&gt;Ignoring Nondeferred Constraints &lt;br /&gt;External Tables Based on Data Pump Driver &lt;br /&gt;Enhancement in the Transportable Parameter &lt;br /&gt;Automatic Storage Management (ASM)&lt;br /&gt;SYSASM Privilege and OSASM Group&lt;br /&gt;Upgrading ASM using DBUA &lt;br /&gt;Upgrading ASM Manually &lt;br /&gt;ASM Restricted Mode&lt;br /&gt;Diskgroup Attributes&lt;br /&gt;Checking Diskgroup&lt;br /&gt;asmcmd Utility Commands &lt;br /&gt;Fast Rebalance&lt;br /&gt;The FORCE option with Drop Diskgroup Command&lt;br /&gt;Miscellaneous ASM New Features&lt;br /&gt;PL/SQL New Features&lt;br /&gt;PL/SQL New Features&lt;br /&gt;Data Warehousing &lt;br /&gt;SecureFiles &lt;br /&gt;Accessing a LOB Using SQL and PL/SQL&lt;br /&gt;Online Redefinition &lt;br /&gt;Partition Change Tracking (PCT) &lt;br /&gt;Generating SQL Crosstab Report using PIVOT Operator &lt;br /&gt;Partitioning Improvements &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Below Topics Not covered:-&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Oracle Streams&lt;br /&gt;Data Guard&lt;br /&gt;Oracle RAC&lt;br /&gt;Oracle XML DB&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-1424009923868470992?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/1424009923868470992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2010/06/oracle11gnewfeatures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1424009923868470992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1424009923868470992'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2010/06/oracle11gnewfeatures.html' title='ORACLE_11G_NEW_FEATURES'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-1299878865862998049</id><published>2009-12-23T01:44:00.000-08:00</published><updated>2009-12-23T01:44:19.336-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PARALLEL PROCESS'/><title type='text'>PARALLEL PROCESS</title><content type='html'>&lt;b&gt;PARALLEL PROCESS:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;DEFINITION&lt;/b&gt; - In computers, parallel processing is the processing of program instructions by dividing them among multiple processors with the objective of running a program in less time. In the earliest computers, only one program ran at a time. A computation-intensive program that took one hour to run and a tape copying program that took one hour to run would take a total of two hours to run. An early form of parallel processing allowed the interleaved execution of both programs together. The computer would start an I/O operation, and while it was waiting for the operation to complete, it would execute the processor-intensive program. The total execution time for the two jobs would be a little over one hour.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Oracle Parallel Query Option&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Introduced in later versions of Oracle7 the parallel query option (PQO) allows multiple processes to simultaneously fetch records and perform sorting operations. This parallelization of operations can lead to impressive speed improvements in a properly set up parallel environment.&lt;br /&gt;&lt;br /&gt;The most important item to specify in a parallel environment is the number of parallel query slaves. Too few and you don’t get the full benefits, too many and they end up competing with each other for resources. Of course parallel operations are of little or no benefit if your system doesn’t have parallel processors and your tables aren’t spread across multiple disks in a stripe set or partitioned. Along with the number of parallel query slaves the degree of parallel (DOP) for the tables and indexes needs to be set properly.&lt;br /&gt;&lt;br /&gt;The maximum number of parallel query slaves should generally be set to at least twice the number of CPUs or to twice the number of disks that he object was spread across. The DOP can be determined by forcing a full table scan for tables (use a where 1=2 in a select count(*) from the table) and then timing the response for different DOP settings. These numbers are then adjusted up or down depending on performance.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Parallel query settings&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;There are several initialization parameters that pertain to parallel query:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;parallel_adaptive_multi_user&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;TRUE or FALSE, defaults to FALSE, when set to TRUE, enables an adaptive algorithm designed to improve performance in multi-user environments that use Parallel Query(PQ). It does this by automatically reducing the requested degree of parallelism based on the current number of active PQ users on the system. The effective degree of parallelism will be based on the degree of parallelism from the table or hint divided by the total number of PQ users. The algorithm assumes that the degree of parallelism provided has been tuned for optimal performance in a single user environment.&lt;br /&gt;&lt;br /&gt;At Oracle Openworld 2007, Oracle recommends never to turn-on the parallel_adaptive_multi_user parameter.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;optimizer_percent_parallel&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Specifies the amount of parallelism that the optimizer uses in its cost functions. The default of 0 means that the optimizer chooses the best serial plan. A value of 100 means that the optimizer uses each object's degree of parallelism in computing the cost of a full table scan operation. Low values favor indexes, and high values favor table scans.&lt;br /&gt;&lt;br /&gt;Cost-based optimization will always be used for any query that references an object with a nonzero degree of parallelism. For such queries a RULE hint or optimizer mode or goal will be ignored. Use of a FIRST_ROWS hint or optimizer mode will override a nonzero setting of OPTIMIZER_PERCENT_PARALLEL.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;parallel_min_percent&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This specifies the minimum percent of threads required for parallel query. Setting this parameter ensures that a parallel query will not be executed sequentially if adequate resources are not available. The default value of 0 means that this parameter is not used.&lt;br /&gt;&lt;br /&gt;If too few query slaves are available, an error message is displayed and the query is not executed. Consider the following settings:&lt;br /&gt;&lt;br /&gt;PARALLEL_MIN_PERCENT = 50&lt;br /&gt;PARALLEL_MIN_SERVERS = 5&lt;br /&gt;PARALLEL_MAX_SERVERS = 10&lt;br /&gt;&lt;br /&gt;In a system with 20 instances up and running, the system would have a maximum of 200 query slaves available. If 190 slaves are already in use and a new user wants to run a query with 40 slaves (for example, degree 2 instances 20), an error message would be returned because 20 instances (that is, 50% of 40) are not available.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;parallel_min_servers&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This specifies the minimum number of query server processes for an instance. This is also the number of query server processes Oracle creates when the instance is started.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;parallel_max_servers&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Parallel_max_servers specifies the maximum number of parallel query servers or parallel recovery processes for an instance. Oracle will increase the number of query servers as demand requires from the number created at instance startup up to this value. The same value should be used for all instances in a parallel server environment.&lt;br /&gt;&lt;br /&gt;Proper setting of the PARALLEL_MAX_SERVERS parameter ensures that the number of query servers in use will not cause a memory resource shortage during periods of peak database use.&lt;br /&gt;&lt;br /&gt;If PARALLEL_MAX_SERVERS is set too low, some queries may not have a query server available to them during query processing.&lt;br /&gt;&lt;br /&gt;Setting PARALLEL_MAX_SERVERS too high leads to memory resource shortages during peak periods, which can degrade performance. For each instance to which you do not want to apply the parallel query option, set this initialization parameter to zero.&lt;br /&gt;&lt;br /&gt;If you have reached the limit of PARALLEL_MAX_SERVERS on an instance and you attempt to query a GV$ view, one additional parallel server process will be spawned for this purpose. This extra process will serve any subsequent GV$ queries until expiration of the PARALLEL_SERVER_IDLE_TIME, at which point the process will terminate. The extra process is not available for any parallel operation other than GV$ queries.&lt;br /&gt;&lt;br /&gt;Note that if PARALLEL_MAX_SERVERS is set to zero for an instance, then no additional parallel server process will be allocated to accommodate a GV$ query.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;parallel_server_idle_time&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Specifies the amount of idle time after which Oracle terminates a process for parallel operations (parallel query, parallel DML, or parallel DDL). This value is expressed in minutes. The parameter must be set to 1 or greater for the query processes to terminate. 0 means the processes are never terminated.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;parallel_execution_message_size&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Specifies the size of messages for parallel execution (Parallel Query, PDML, Parallel Recovery, replication). The default value should be adequate for most applications. Typical values are 2148 or 4096 bytes. Larger values would require a larger shared pool.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;parallel_min_message_pool&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The parallel_min_message_pool parameter defaults to (cpus*parallel_max_servers*1.5*(OS message buffer size) or cpus*5*1.5*(OS message size)). Specifies the minimum permanent amount of memory which will be allocated from the SHARED POOL, to be used for messages in parallel execution.&lt;br /&gt;&lt;br /&gt;This memory is allocated at startup time if PARALLEL_MIN_SERVERS is set to a non-zero value, or when the server is first allocated. Setting this parameter is most effective when PARALLEL_MIN_SERVERS is set to a non-zero value, because the memory will be allocated in a contiguous section.&lt;br /&gt;&lt;br /&gt;This parameter should only be set if the default formula is known to be significantly inaccurate. setting this parameter too high will lead to a shortage of memory for the shared pool; setting it too low will lead to costlier memory allocation when doing parallel execution. This parameter cannot be set to a number higher than 90% of the shared pool.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;parallel_broadcast_enabled&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This defaults to FALSE and allows you to improve performance in certain cases involving hash and merge joins. When set to TRUE, if you are joining a very large join result set with a very small result set (size being measured in bytes, rather than number of rows), the optimizer has the option of broadcasting the row sources of the small result set, such that a single table queue will send all of the small set's rows to each of the parallel servers which are processing the rows of the larger set. The result is enhanced performance.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;shared_pool_size&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The shared pool will have to be increased in size to accommodate the parallel query message areas and IO queues. I suggest that the LARGE POOL be designated to prevent PQO from causing shared pool problems.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;large_pool_size&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The large pool will automatically be configured at a minimum size of 600k if certain initialization parameters are set in Oracle8. I suggest manually setting the size.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Oracle Parallel Automatic tuning parameter:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Oracle parallel query (OPQ) is a great way to speed full full-scan operations, but Oracle parallelism can be problematic if it is not implemented properly.&lt;br /&gt;&lt;br /&gt;Oracle provides a general method for implementing parallelism with the parallel_automatic_tuning=true parameter setting, but there are cases when using PAT can actually degrade your Oracle performance.  The Oracle docs note:&lt;br /&gt;&lt;br /&gt;    "With parallel automatic tuning enabled, Oracle determines parameter settings for each environment based on the number of CPUs on your system and the value set for PARALLEL_THREADS_PER_CPU.&lt;br /&gt;&lt;br /&gt;    The default values Oracle sets for parallel execution processing when PARALLEL_AUTOMATIC_TUNING is TRUE are usually optimal for most environments. In most cases, Oracle's automatically derived settings are at least as effective as manually derived settings."&lt;br /&gt;&lt;br /&gt;I disagree.&lt;br /&gt;&lt;br /&gt;The parallel_automatic_tuning parameter feature was created for DSS and Data Warehouse environments using the all_rows optimizer mode on servers with many CPU processors to ensure that the common full table scans are parallelized to an optimal DEGREE.&lt;br /&gt;&lt;br /&gt;However, parallel_automatic_tuning is not always appropriate for OLTP and online systems, where setting parallel_automatic_tuning may change the SQL optimizers perception of the costs of full scan operations, causing indexes not to be used.&lt;br /&gt;&lt;br /&gt;For non-warehouse environments, I do not recommend setting parallel_automatic_tuning, or turning on parallel query at the system or table level.  I get the best performance my manually adding the "parallel" hint to query where I want the full can to be done in parallel.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PARALLEL_THREADS_PER_CPU specifies the default degree of parallelism for the instance and determines the parallel adaptive and load balancing algorithms. The parameter describes the number of parallel execution processes or threads that a CPU can handle during parallel execution.&lt;br /&gt;&lt;br /&gt;The default is platform-dependent and is adequate in most cases. You should decrease the value of this parameter if the machine appears to be overloaded when a representative parallel query is executed. You should increase the value if the system is I/O bound.&lt;br /&gt;&lt;br /&gt;    * Parallel query. The ability to break up the execution of a SELECT statement into multiple tasks, and then to execute those tasks in parallel using multiple processors.&lt;br /&gt;    * Parallel data loading. The ability to run multiple SQL*Loader sessions in parallel, which all load data into the same table.&lt;br /&gt;    * Parallel DML (Data Manipulation Language). The ability to parallelize INSERT, UPDATE, and DELETE statements.&lt;br /&gt;    * Parallel DDL (object creation). The ability to parallelize DDL statements such as CREATE TABLE, CREATE INDEX, and ALTER INDEX.&lt;br /&gt;    * Parallel recovery. The ability to use multiple processes to perform instance and media recovery.&lt;br /&gt;    * Parallel replication propagation. The ability to propagate changes from one database to another using multiple processes working together in parallel.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-1299878865862998049?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/1299878865862998049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2009/12/parallel-process.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1299878865862998049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1299878865862998049'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2009/12/parallel-process.html' title='PARALLEL PROCESS'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-6969294169591038860</id><published>2009-12-22T22:57:00.000-08:00</published><updated>2009-12-22T22:57:39.513-08:00</updated><title type='text'>ORACLE HISTORY (CORPORATE,TECHNICAL,VERSION,EDITIONS,PLATFORMS,FEATURES,TOOLS,SUPPORT,CERTIFICATION etc)</title><content type='html'>&lt;b&gt;Corporate/technical timeline&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;    * 1977: Larry Ellison and friends founded Software Development Laboratories.&lt;br /&gt;    * 1979: SDL changed its company-name to "Relational Software, Inc." (RSI) and introduced its product Oracle V2 as an early commercially-available relational database system. The version did not support transactions, but implemented the basic SQL functionality of queries and joins. (RSI never released a version 1 - instead calling the first version version 2 as a marketing gimmick.)&lt;br /&gt;    * 1982: RSI in its turn changed its name, becoming known as "Oracle Corporation",to align itself more closely with its flagship product.&lt;br /&gt;    * 1983: The company released Oracle version 3, which it had re-written using the C programming language and which supported COMMIT and ROLLBACK functionality for transactions. Version 3 extended platform support from the existing Digital VAX/VMS systems to include Unix environments.&lt;br /&gt;    * 1984: Oracle Corporation released Oracle version 4, which supported read-consistency.&lt;br /&gt;    * 1985: Oracle Corporation released Oracle version 5, which supported the client-server model—a sign of networks becoming more widely available in the mid-1980s.&lt;br /&gt;    * 1986: Oracle version 5.1 started supporting distributed queries.&lt;br /&gt;    * 1988: Oracle RDBMS version 6 came out with support for PL/SQL embedded within Oracle Forms v3 (version 6 could not store PL/SQL in the database proper), row-level locking and hot backups.&lt;br /&gt;    * 1989: Oracle Corporation entered the application products market and developed its ERP product, (later to become part of the Oracle E-Business Suite), based on the Oracle relational database.&lt;br /&gt;    * 1990: the release of Oracle Applications release 8&lt;br /&gt;    * 1992: Oracle version 7 appeared with support for referential integrity, stored procedures and triggers.&lt;br /&gt;    * 1997: Oracle Corporation released version 8, which supported object-oriented development and multimedia applications.&lt;br /&gt;    * 1999: The release of Oracle8i aimed to provide a database inter-operating better with the Internet (the i in the name stands for "Internet"). The Oracle 8i database incorporated a native Java virtual machine (Oracle JVM).&lt;br /&gt;    * 2000: Oracle E-Business Suite 11i pioneers integrated enterprise application software&lt;br /&gt;    * 2001: Oracle9i went into release with 400 new features, including the ability to read and write XML documents. 9i also provided an option for Oracle RAC, or "Real Application Clusters", a computer-cluster database, as a replacement for the Oracle Parallel Server (OPS) option.&lt;br /&gt;    * 2003: Oracle Corporation released Oracle Database 10g. (The g stands for "grid"; emphasizing a marketing thrust of presenting 10g as "grid-computing ready".)&lt;br /&gt;    * 2005: Oracle Database 10.2.0.1—also known as Oracle Database 10g Release 2 (10gR2)—appeared.&lt;br /&gt;    * 2006: Oracle Corporation announces Unbreakable Linux&lt;br /&gt;    * 2007: Oracle Database 10g release 2 sets a new world record TPC-H 3000 GB benchmark result&lt;br /&gt;    * 2007: Oracle Corporation released Oracle Database 11g for Linux and for Microsoft Windows.&lt;br /&gt;    * 2008: Oracle Corporation acquires BEA Systems.&lt;br /&gt;    * 2009: Oracle Corporation acquires Sun Microsystems. Note: as of November 2009 the acquisition awaits approval from the European Commission.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Version numbering&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Oracle products have historically followed their own release-numbering and naming conventions. With the Oracle RDBMS 10g release, Oracle Corporation started standardizing all current versions of its major products using the "10g" label, although some sources continued to refer to Oracle Applications Release 11i as Oracle 11i. Major database-related products and some of their versions include:&lt;br /&gt;&lt;br /&gt;    * Oracle Application Server 10g (also known as "Oracle AS 10g"): a middleware product;&lt;br /&gt;    * Oracle Applications Release 11i (aka Oracle e-Business Suite, Oracle Financials or Oracle 11i): a suite of business applications;&lt;br /&gt;    * Oracle Developer Suite 10g (9.0.4);&lt;br /&gt;    * Oracle JDeveloper 10g: a Java integrated development environment;&lt;br /&gt;&lt;br /&gt;Since version 5, Oracle's RDBMS release numbering has used the following codes:&lt;br /&gt;&lt;br /&gt;    * Oracle5&lt;br /&gt;    * Oracle6&lt;br /&gt;    * Oracle7: 7.0.16—7.3.4&lt;br /&gt;    * Oracle8 Database: 8.0.3—8.0.6&lt;br /&gt;    * Oracle8i Database Release 1: 8.1.5.0—8.1.5.1&lt;br /&gt;    * Oracle8i Database Release 2: 8.1.6.0—8.1.6.3&lt;br /&gt;    * Oracle8i Database Release 3: 8.1.7.0—8.1.7.4&lt;br /&gt;    * Oracle9i Database Release 1: 9.0.1.0—9.0.1.5 (patchset as of December 2003)&lt;br /&gt;    * Oracle9i Database Release 2: 9.2.0.1—9.2.0.8 (patchset as of April 2007)&lt;br /&gt;    * Oracle Database 10g Release 1: 10.1.0.2—10.1.0.5 (patchset as of February 2006)&lt;br /&gt;    * Oracle Database 10g Release 2: 10.2.0.1—10.2.0.4 (patchset as of April 2008)&lt;br /&gt;    * Oracle Database 11g Release 1: 11.1.0.6—11.1.0.7 (patchset as of September 2008)&lt;br /&gt;    * Oracle Database 11g Release 2: 11.2.0.1 (released 2009-09-01)&lt;br /&gt;&lt;br /&gt;The version-numbering syntax within each release follows the pattern: major.maintenance.application-server.component-specific.platform-specific.&lt;br /&gt;&lt;br /&gt;For example, "10.2.0.1 for 64-bit Solaris" means: 10th major version of Oracle, maintenance level 2, Oracle Application Server (OracleAS) 0, level 1 for Solaris 64-bit.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;List of claimed firsts&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Oracle Corporation claims to have provided:&lt;br /&gt;&lt;br /&gt;    * the first commercially-available SQL-based database (1979)&lt;br /&gt;    * the first database to support symmetric multiprocessing (SMP) (1983)&lt;br /&gt;    * the first distributed database (1986)&lt;br /&gt;    * the first database product tested to comply with the ANSI SQL standard (1993)&lt;br /&gt;    * the first 64-bit database (1995)&lt;br /&gt;    * the first database to incorporate a native JRE (1998)&lt;br /&gt;    * the first proprietary RDBMS to become available on Linux (1998)&lt;br /&gt;    * the first database to support XML (1999)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Editions&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Over and above the different versions of the Oracle database management software, Oracle Corporation subdivides its product into varying "editions" - apparently for marketing and license-tracking reasons. In approximate order of decreasing scale, we find:&lt;br /&gt;&lt;br /&gt;    * Enterprise Edition (EE) includes more features than the 'Standard Edition', especially in the areas of performance and security. Oracle Corporation licenses this product on the basis of users or of processors, typically for servers running 4 or more CPUs. EE has no memory limits, and can utilize clustering using Oracle RAC software.&lt;br /&gt;    * Standard Edition (SE) contains base database functionality. Oracle Corporation licenses this product on the basis of users or of processors, typically for servers running from one to four CPUs. If the number of CPUs exceeds 4 CPUs, the user must convert to an Enterprise license. SE has no memory limits, and can utilize clustering with Oracle RAC at no additional charge.&lt;br /&gt;    * Standard Edition One, introduced with Oracle 10g, has some additional feature-restrictions. Oracle Corporation markets it for use on systems with one or two CPUs. It has no memory limitations.&lt;br /&gt;    * Express Edition ('Oracle Database XE'), introduced in 2005, offers Oracle 10g free to distribute on Windows and Linux platforms. It has a footprint of only 150 MB and is restricted to the use of a single CPU, a maximum of 4 GB of user data. Although it can install on a server with any amount of memory, it uses a maximum of 1 GB. Support for this version comes exclusively through on-line forums and not through Oracle support.&lt;br /&gt;    * Oracle Database Lite, intended for running on mobile devices. The database located on the mobile device can synchronize with a server-based installation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Host platforms&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Prior to releasing Oracle9i in 2001, Oracle Corporation ported its database product to a wide variety of platforms. More recently Oracle Corporation has consolidated on a smaller range of operating-system platforms.&lt;br /&gt;&lt;br /&gt;As of October 2006, Oracle Corporation supported the following operating systems and hardware platforms for Oracle Database 10g:&lt;br /&gt;&lt;br /&gt;    * Apple Mac OS X Server: PowerPC&lt;br /&gt;    * HP HP-UX: PA-RISC, Itanium&lt;br /&gt;    * HP Tru64 UNIX: Alpha&lt;br /&gt;    * HP OpenVMS: Alpha, Itanium&lt;br /&gt;    * IBM AIX5L: IBM POWER&lt;br /&gt;    * IBM z/OS: zSeries&lt;br /&gt;    * Linux: x86, x86-64, PowerPC, zSeries, Itanium&lt;br /&gt;    * Microsoft Windows: x86, x86-64, Itanium&lt;br /&gt;    * Sun Solaris: SPARC, x86, x86-64&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Database options&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Oracle Corporation refers to some extensions to the core functionality of the Oracle database as "database options". As of 2008 such options include:&lt;br /&gt;&lt;br /&gt;    * Active Data Guard (extends Oracle Data Guard physical standby functionality in 11g)&lt;br /&gt;    * Advanced Security (adds data encryption methods)&lt;br /&gt;    * Content database (provides a centralized repository for unstructured information)&lt;br /&gt;    * Database Vault (enforces extra security on data access)&lt;br /&gt;    * Data Mining (ODM) (mines for patterns in existing data)&lt;br /&gt;    * In-Memory Database Cache (utilizes TimesTen technology)&lt;br /&gt;    * Label Security (enforces row-level security)&lt;br /&gt;    * Management Packs (various)&lt;br /&gt;    * Oracle Answers (for ad-hoc analysis and reporting)&lt;br /&gt;    * Oracle OLAP (adds analytical processing)&lt;br /&gt;    * Oracle Programmer (provides programmatic access to Oracle databases via precompilers, interfaces and bindings)&lt;br /&gt;    * Partitioning (granularizes tables and indexes for efficiency)&lt;br /&gt;    * Real Application Clusters (RAC) (coordinates multiple database servers, together accessing the same database)&lt;br /&gt;    * Oracle Real Application Testing (new at version 11g)—including Database Replay (for testing workloads) and SQL Performance Analyzer (SPA) (for preserving SQL efficiency in changing environments)&lt;br /&gt;    * Records database (a records management application)&lt;br /&gt;    * Oracle Spatial (integrates relational data with geographic information systems (GIS))&lt;br /&gt;    * Transparent Gateway for connecting to non-Oracle systems. Offers optimized solution, with more functionality and better performance than Oracle Generic Connectivity.&lt;br /&gt;    * Total Recall (optimizes long-term storage of historical data)&lt;br /&gt;    * Oracle Warehouse Builder (in various forms and sub-options)&lt;br /&gt;&lt;br /&gt;    This list is incomplete; you can help by expanding it.&lt;br /&gt;&lt;br /&gt;In most cases, using these options entails extra licensing costs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Suites&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In addition to its RDBMS, Oracle Corporation has released several related suites of tools and applications relating to implementations of Oracle databases. For example:&lt;br /&gt;&lt;br /&gt;    * Oracle Application Server, a J2EE-based application server, aids in developing and deploying applications which utilise Internet technologies and a browser.&lt;br /&gt;    * Oracle Collaboration Suite contains messaging, groupware and collaboration applications.&lt;br /&gt;    * Oracle Developer Suite contains software development tools, including JDeveloper.&lt;br /&gt;    * Oracle E-Business Suite collects together applications for enterprise resource planning (including Oracle Financials), customer relationship management and human resources management (Oracle HR).&lt;br /&gt;    * Oracle Enterprise Manager (OEM) used by database administrators (DBAs) to manage the DBMS, and recently in version 10g, a web-based rewrite of OEM called "Oracle Enterprise Manager Database Control". Oracle Corporation has dubbed the super-Enterprise-Manager used to manage a grid of multiple DBMS and Application Servers "Oracle Enterprise Manager Grid Control".&lt;br /&gt;    * Oracle Programmer/2000, a bundling of interfaces for 3GL programming languages, marketed with Oracle7 and Oracle8.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Database "features"&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Apart from the clearly-defined database options, Oracle databases may include many semi-autonomous software sub-systems, which Oracle Corporation sometimes refers to as "features" in a sense subtly different from the normal usage of the word. For example, Oracle Data Guard counts officially as a "feature", but the command-stack within SQL*Plus, though a usability feature, does not appear in the list of "features" in Oracle's list. Such "features" may include (for example):&lt;br /&gt;&lt;br /&gt;    * Active Session History (ASH), the collection of data for immediate monitoring of very recent database activity.&lt;br /&gt;    * Automatic Workload Repository (AWR), providing monitoring services to Oracle database installations from Oracle version 10. Prior to the release of Oracle version 10, the Statspack facility provided similar functionality.&lt;br /&gt;    * Clusterware&lt;br /&gt;    * Data Aggregation and Consolidation&lt;br /&gt;    * Data Guard for high availability&lt;br /&gt;    * Generic Connectivity for connecting to non-Oracle systems.&lt;br /&gt;    * Data Pump utilities, which aid in importing and exporting data and metadata between databases&lt;br /&gt;    * Database Resource Manager (DRM), which controls the use of computing resources.&lt;br /&gt;    * Fine-grained auditing (FGA) (in Oracle Enterprise Edition) supplements standard security-auditing features&lt;br /&gt;    * Flashback for selective data recovery and reconstruction&lt;br /&gt;    * iSQL*Plus, a web-browser-based graphical user interface (GUI) for Oracle database data-manipulation (compare SQL*Plus)&lt;br /&gt;    * Oracle Data Access Components (ODAC), tools which consist of:&lt;br /&gt;          o Oracle Data Provider for .NET (ODP.NET)&lt;br /&gt;          o Oracle Developer Tools (ODT) for Visual Studio&lt;br /&gt;          o Oracle Providers for ASP.NET&lt;br /&gt;          o Oracle Database Extensions for .NET&lt;br /&gt;          o Oracle Provider for OLE DB&lt;br /&gt;          o Oracle Objects for OLE&lt;br /&gt;          o Oracle Services for Microsoft Transaction Server&lt;br /&gt;    * Oracle-managed files (OMF) -- a feature allowing automated naming, creation and deletion of datafiles at the operating-system level.&lt;br /&gt;    * Recovery Manager (rman) for database backup, restoration and recovery&lt;br /&gt;    * SQL*Plus, a program that allows users to interact with Oracle database(s) via SQL and PL/SQL commands on a command-line. Compare iSQL*Plus.&lt;br /&gt;&lt;br /&gt;    This list is incomplete; you can help by expanding it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Standalone tools&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Users can develop applications in Java and PL/SQL using tools such as Oracle JDeveloper, Oracle Forms, or Oracle Reports. Oracle Corporation has started a drive toward 'wizard'-driven environments with a view to enabling non-programmers to produce simple data-driven applications.&lt;br /&gt;&lt;br /&gt;Oracle SQL Developer, a free graphical tool for database development, allows developers to browse database objects, run SQL statements and SQL scripts, and edit and debug PL/SQL statements. It incorporates standard and customized reporting.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Other databases marketed by Oracle Corporation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;By acquiring other technology in the database field, Oracle Corporation has taken over:&lt;br /&gt;&lt;br /&gt;    * TimesTen, a memory-resident database that can cache transactions and synchronize data with a centralized Oracle database server. It functions as a real-time infrastructure software product intended for the management of low-latency, high-volume data, of events and of transactions.&lt;br /&gt;    * BerkeleyDB, a simple, high-performance, embedded database&lt;br /&gt;    * Oracle Rdb, a legacy relational database for the OpenVMS operating system&lt;br /&gt;    * MySQL a relational database purchased as part of its immediate previous owner, Sun Microsystems&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Use&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The Oracle RDBMS has had a reputation among novice users as difficult to install on Linux systems. Oracle Corporation has packaged recent versions for several popular Linux distributions in an attempt to minimize installation challenges beyond the level of technical expertise required to install a database server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Official support&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Users who have Oracle support contracts can use Oracle's MetaLink web site. MetaLink provides users of Oracle Corporation products with a repository of reported problems, diagnostic scripts and solutions. It also integrates with the provision of support tools, patches and upgrades.&lt;br /&gt;&lt;br /&gt;The Remote Diagnostic Agent or RDA can operate as a command-line diagnostic tool executing a script. The data captured provides an overview of the Oracle Database environment intended for diagnostic and trouble-shooting. Within RDA, the HCVE (Health Check Validation Engine) can verify and isolate host system environmental issues that may affect the performance of Oracle software.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Database-related guidelines&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Oracle Corporation also endorses certain practices and conventions as enhancing the use of its database products. These include:&lt;br /&gt;&lt;br /&gt;    * Oracle Maximum Availability Architecture (MAA), guidelines on developing high-availability systems&lt;br /&gt;    * Optimal Flexible Architecture (OFA), blueprints for mapping Oracle-database objects to file-systems&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Oracle Certification Program&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Main article: Oracle Certification Program&lt;br /&gt;&lt;br /&gt;The Oracle Certification Program, a professional certification program, includes the administration of Oracle Databases as one of its main certification paths. It contains three levels not upto limits.&lt;br /&gt;&lt;br /&gt;   1. Oracle Certified Associate (OCA)&lt;br /&gt;   2. Oracle Certified Professional (OCP)&lt;br /&gt;   3. Oracle Certified Master (OCM)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;User groups&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A variety of official (Oracle-sponsored) and unofficial Oracle User Groups has grown up of users and developers of Oracle databases. They include:&lt;br /&gt;&lt;br /&gt;    * Oracle Technology Network&lt;br /&gt;    * Independent Oracle Users Group&lt;br /&gt;    * Geographical/regional user groups&lt;br /&gt;    * Product-centric user groups&lt;br /&gt;    * Industry-centric user groups&lt;br /&gt;    * The Oak Table Network&lt;br /&gt;    * Usenet newsgroups&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Market position&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In the market for relational databases, Oracle Database competes against commercial products such as IBM's DB2 UDB and Microsoft SQL Server. Oracle and IBM tend to battle for the mid-range database market on UNIX and Linux platforms, while Microsoft dominates the mid-range database market on Microsoft Windows platforms. However, since they share many of the same customers, Oracle and IBM tend to support each other's products in many middleware and application categories (for example: WebSphere, PeopleSoft, and Siebel Systems CRM), and IBM's hardware divisions work closely with Oracle on performance-optimizing server-technologies (for example, Linux on zSeries). The two companies have a relationship perhaps best described as "coopetition". Niche commercial competitors include Teradata (in data warehousing and business intelligence), Software AG's ADABAS, Sybase, and IBM's Informix, among many others.&lt;br /&gt;&lt;br /&gt;Increasingly, the Oracle database products compete against open-source relational database systems, particularly PostgreSQL, Firebird, and MySQL. Oracle acquired Innobase, supplier of the InnoDB codebase to MySQL, in part to compete better in the open source market. Database products developed on the basis of the open-source model generally cost significantly less to acquire than Oracle systems.&lt;br /&gt;&lt;br /&gt;In 2007, competition with SAP AG occasioned litigation from Oracle Corporation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Pricing&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Oracle Corporation offers term licensing for all Oracle products. It bases the list price for a term-license on a specific percentage of the perpetual license price.&lt;br /&gt;&lt;br /&gt;Enterprise Edition&lt;br /&gt;    As of March 2006, the database that costs the most per machine-processor among Oracle database editions.&lt;br /&gt;Standard Edition&lt;br /&gt;    Cheaper: it can run on up to four processors but has fewer features than Enterprise Edition—it lacks proper parallelization,etc; but remains quite suitable for running medium-sized applications.&lt;br /&gt;Standard ONE&lt;br /&gt;    Sells even more cheaply, but remains limited to two CPUs. Standard Edition ONE sells on a per-seat basis with a five-user minimum. Oracle Corporation usually sells the licenses with an extra 22% cost for support and upgrades (access to MetaLink—Oracle Corporation's support site) which customers need to renew annually.&lt;br /&gt;Oracle Express Edition (Oracle XE)&lt;br /&gt;    An addition to the Oracle database product family (beta version released in 2005, production version released in February 2006), offers a free version of the Oracle RDBMS, but one limited to 4 GB of user data and to 1 GB of RAM (SGA+PGA). XE will use no more than one CPU and lacks an internal JVM. XE runs only on Windows and on Linux, not on AIX, Solaris, HP-UX and the other operating systems available for other editions.&lt;br /&gt;&lt;br /&gt;As computers running Oracle often have eight or more processors, the software price can rise into the hundreds of thousands of dollars. The total cost of ownership often exceeds this, as large Oracle installations usually require experienced and trained database administrators to do the set-up properly. Because of the product's large installed base and available training courses, Oracle specialists in some areas have become a more abundant resource than those for more exotic databases. Oracle frequently provides special training offers for database-administrators.&lt;br /&gt;&lt;br /&gt;On Linux, Oracle's certified configurations include mostly commercial Linux distributions (Red Hat Enterprise Linux 3 and 4, SuSE SLES8 and 9, Asianux) which can cost in a range from a few hundred to a few thousand USD per year (depending on processor architecture and the support package purchased).&lt;br /&gt;&lt;br /&gt;The Oracle database system can also install and run on freely-available Linux distributions such as the Red Hat-based Centos,or Debian-based systems.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-6969294169591038860?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/6969294169591038860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2009/12/oracle-history-corporatetechnicalversio.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/6969294169591038860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/6969294169591038860'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2009/12/oracle-history-corporatetechnicalversio.html' title='ORACLE HISTORY (CORPORATE,TECHNICAL,VERSION,EDITIONS,PLATFORMS,FEATURES,TOOLS,SUPPORT,CERTIFICATION etc)'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-5052145024642890180</id><published>2009-12-21T01:55:00.000-08:00</published><updated>2009-12-21T01:55:34.851-08:00</updated><title type='text'>Oracle Upgradation from 10g to 11g</title><content type='html'>Oracle 11g Database software must be installed in new ORACLE_HOME&lt;br /&gt;&lt;br /&gt;&lt;b&gt;For some database version direct upgrade to 11g is NOT supported&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;7.3.3 (or lower) -&gt; 7.3.4 -&gt; 9.2.0.8 -&gt; 11.1&lt;br /&gt;8.0.5 (or lower) -&gt; 8.0.6 -&gt; 9.2.0.8 -&gt; 11.1&lt;br /&gt;8.1.7 (or lower) -&gt; 8.1.7.4 -&gt; 9.2.0.8 -&gt; 11.1&lt;br /&gt;9.0.1.3 (or lower) -&gt; 9.0.1.4 -&gt; 9.2.0.8 -&gt; 11.1&lt;br /&gt;9.2.0.3 (or lower) -&gt; 9.2.0.8 -&gt; 11.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Direct upgrade to 11g is supported from following version&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;9.2.0.4 and higher -&gt; 11.1&lt;br /&gt;10.1.0.2 and higher -&gt; 11.1&lt;br /&gt;10.2.0.1 and higher -&gt; 11.1&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Tools and methods to upgrade database&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. DBUA (DataBase Upgrade Assistant) Utility - GUI&lt;br /&gt;2. Manual Upgradeusing SQL scripts and Utilities - Command line tool (catupgrd.sql..)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Top level steps for Oracle Database 11g upgarde&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Prepare Upgrade to 11g Database&lt;br /&gt;2. Backup existing database software and database&lt;br /&gt;3. Analyze the database using Pre-Upgrade Information Tool&lt;br /&gt;4. Install Oracle 11g software in new ORACLE_HOME&lt;br /&gt;5. Run Pre-upgrade information tool &lt;br /&gt;   SQL&gt;spool upgrd_info.sql &lt;br /&gt;   SQL&gt;@?/rdbms/admin/utlu111i.sql (check output and modify).&lt;br /&gt;6. Check Invalid objects.&lt;br /&gt;    SQL&gt;select object_name,owner,object_type from all_objects where status like 'INVALID';&lt;br /&gt;7. Check version and status of all database components.&lt;br /&gt;    SQL&gt;select comp_name,version,status from dba_registry;&lt;br /&gt;8. Change compatibility in init.ora&lt;br /&gt;9. Startup upgrade&lt;br /&gt;    SQL&gt;spool upgrade.log&lt;br /&gt;    SQL&gt;@?/rdbms/admin/catupgrd.sql &lt;br /&gt;10.Run post-upgrade status tool provides a summary of the upgrade.&lt;br /&gt;    SQL&gt;@?/rdbms/admin/utlu111s.sql&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-5052145024642890180?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/5052145024642890180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2009/12/oracle-upgradation-from-10g-to-11g.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/5052145024642890180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/5052145024642890180'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2009/12/oracle-upgradation-from-10g-to-11g.html' title='Oracle Upgradation from 10g to 11g'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-8058175417139045457</id><published>2009-12-18T02:28:00.001-08:00</published><updated>2009-12-21T02:09:03.766-08:00</updated><title type='text'>Oracle: Recover a deleted datafile without backup even your DB in no archive mode from unix/linux when database is still up</title><content type='html'>&lt;b&gt;How to use Linux behavior to recover an accidentally delete file when the database is still open.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;On Unix/Linux, when a file is deleted, but a process still has the file open, the file is still there in the filesystem, and only the inode is removed.  &lt;br /&gt;But the process can continue to use its file handle, and the file can also be accessible under /proc/&lt;pid&gt;/fd . &lt;br /&gt;&lt;br /&gt;In the following example, we use that behaviour to recover a lost datafile after is has been dropped from the os (with rm) but the datafile is still open by the background processes. &lt;br /&gt;&lt;br /&gt;First, we create a tablespace, and populate a table in it.&lt;br /&gt;&lt;br /&gt;SQL&gt; REM we create a tablespace:  &lt;br /&gt;SQL&gt; create tablespace TEST_RM datafile '/oradata/tmp/test_rm.dbf' size 10M; &lt;br /&gt;Tablespace created. &lt;br /&gt;&lt;br /&gt;SQL&gt; REM we create a table in it:  &lt;br /&gt;SQL&gt; create table KHAN_TEST tablespace test_rm as select * from dba_objects; &lt;br /&gt;Table created. &lt;br /&gt;&lt;br /&gt;SQL&gt; REM we check that table data is accessible:  &lt;br /&gt;SQL&gt; select count(*) from KHAN_TEST; &lt;br /&gt;COUNT(*) &lt;br /&gt;---------- &lt;br /&gt;12708 &lt;br /&gt;&lt;br /&gt;SQL&gt; exit &lt;br /&gt;Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production &lt;br /&gt;&lt;br /&gt;Then, we drop the datafile from unix prompt.&lt;br /&gt;&lt;br /&gt;here is the datafile  &lt;br /&gt;ls -l /oradata/tmp/test_rm.dbf &lt;br /&gt;-rw-r----- 1 oracle dba 10493952 Sep 26 14:25 /oradata/tmp/test_rm.dbf &lt;br /&gt;&lt;br /&gt;we 'accidently' drop the datafile  &lt;br /&gt;rm /oradata/tmp/test_rm.dbf &lt;br /&gt;ls -l /oradata/tmp/test_rm.dbf &lt;br /&gt;ls: /oradata/tmp/test_rm.dbf: no such file or directory&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Here the datafile is lost.&lt;/b&gt;  &lt;br /&gt;Now we connect again. &lt;br /&gt;&lt;br /&gt;sqlplus / as sysdba &lt;br /&gt;&lt;br /&gt;Connected to: &lt;br /&gt;Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production &lt;br /&gt;&lt;br /&gt;SQL&gt; REM and we check if table data is accessible:  &lt;br /&gt;SQL&gt; select count(*) from KHAN_TEMP; &lt;br /&gt;&lt;br /&gt;select * from khan_temp &lt;br /&gt;* &lt;br /&gt;ERROR at line 1: &lt;br /&gt;ORA-01116: error in opening database file 5 &lt;br /&gt;ORA-01110: data file 5: '/oradata/tmp/test_rm.dbf' &lt;br /&gt;ORA-27041: unable to open file &lt;br /&gt;Linux Error: 2: No such file or directory &lt;br /&gt;Additional information: 3&lt;br /&gt;&lt;br /&gt;The datafile is lost and data is not accessible. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;However, the datafile should still have an open file descriptor by an oracle background process&lt;/b&gt;  &lt;br /&gt;&lt;br /&gt;we check the dbwriter pid:  &lt;br /&gt;ps -edf | grep dbw &lt;br /&gt;oracle 2661 1 0 Sep26 ? 00:00:06 xe_dbw0_XE &lt;br /&gt;oracle 7044 7037 0 14:40 pts/1 00:00:00 /bin/bash -c ps -edf | grep dbw &lt;br /&gt;oracle 7046 7044 0 14:40 pts/1 00:00:00 grep dbw &lt;br /&gt;&lt;br /&gt;and we check its opened file descriptors for our file:  &lt;br /&gt;ls -l /proc/2661/fd | grep test_rm &lt;br /&gt;lrwx------ 1 oracle dba 64 Sep 26 14:02 66 -&gt; /oradata/tmp/test_rm.dbf (deleted) &lt;br /&gt;&lt;br /&gt;here it is:  &lt;br /&gt;ls -l /proc/2661/fd/66 &lt;br /&gt;lrwx------ 1 oracle dba 64 Sep 26 14:02 /proc/2661/fd/66 -&gt; /oradata/tmp/test_rm.dbf (deleted)&lt;br /&gt;&lt;br /&gt;In some other unix, lsof may be needed to map the file descriptor with the deleted file name &lt;br /&gt;&lt;br /&gt;first we set a symbolic link so that oracle can see it as it was before the delete: &lt;br /&gt;ln -s /proc/2661/fd/66 /oradata/tmp/test_rm.dbf&lt;br /&gt;&lt;br /&gt;here data is accessible, but that will be lost if dbwriter closes it file handle (i.e if the database is closed) &lt;br /&gt;&lt;br /&gt;&lt;b&gt;However we can now set the tablespace read only so that it is checkpointed, and no writes occurs on it.&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;SQL&gt; alter tablespace TEST_RM read only; &lt;br /&gt;Tablespace altered.&lt;br /&gt;&lt;br /&gt;We can now copy the file safely.&lt;br /&gt;&lt;br /&gt;then we drop the symbolic link:  &lt;br /&gt;rm /oradata/tmp/test_rm.dbf &lt;br /&gt;ls -l /oradata/tmp/test_rm.dbf&lt;br /&gt;&lt;br /&gt;ls: /oradata/tmp/test_rm.dbf: No such file or directory &lt;br /&gt;&lt;br /&gt;and we can now copy the file  &lt;br /&gt;cp -p /proc/2661/fd/66 /oradata/tmp/test_rm.dbf &lt;br /&gt;ls -l /oradata/tmp/test_rm.dbf&lt;br /&gt;&lt;br /&gt;-rw-r----- 1 oracle dba 10493952 Mar 26 14:54 /oradata/tmp/test_rm.dbf&lt;br /&gt;&lt;br /&gt;&lt;b&gt;And datafile is now available again.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; REM we have it back, lets put the tablespace back in read/write  &lt;br /&gt;SQL&gt; alter tablespace test_rm read write; &lt;br /&gt;Tablespace altered. &lt;br /&gt;&lt;br /&gt;SQL&gt; REM and we check data is still there:  &lt;br /&gt;SQL&gt; select count(*) from FRANCK; &lt;br /&gt;&lt;br /&gt;COUNT(*) &lt;br /&gt;---------- &lt;br /&gt;12708 &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/b&gt;This is not to be used like that in production. This is unsupported and may behave differently on different unix/linux or oracle versions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-8058175417139045457?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/8058175417139045457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2009/12/oracle-recover-deleted-datafile-enen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/8058175417139045457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/8058175417139045457'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2009/12/oracle-recover-deleted-datafile-enen.html' title='Oracle: Recover a deleted datafile without backup even your DB in no archive mode from unix/linux when database is still up'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-8473276154034841857</id><published>2009-11-26T04:09:00.000-08:00</published><updated>2009-11-26T04:12:47.647-08:00</updated><title type='text'>ORA-27054 on NFS file system on SUSE 10 SP2 for archives to be create directly on standby server.</title><content type='html'>On SUSE 10 SP 2 which is the supported version to be used with LOCAL,SAN,NAS devices and database 10gR2 although you create nfs filesystems archiver process reports the following error :&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ORA-27054: NFS file system where the file is created or resides is not mounted with correct options&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This is happening because on Oracle 10gR2 Oracle checks the options with which a NFS mount is mounted on the filesystem.&lt;br /&gt;Correct option for SUSE datafiles,archives and backup are :&lt;br /&gt;cio,rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,noac,vers=3,timeo=600&lt;br /&gt;&lt;br /&gt;If you mount your NFS filesystems and you got on this error this is due to bug 5146667&lt;br /&gt;&lt;br /&gt;If available apply patch. Else use the following work around:&lt;br /&gt;&lt;br /&gt;1) set the Event 10298 in the init file event="10298 trace name context forever, level 32"&lt;br /&gt;&lt;br /&gt;If you are using the spfile then :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SQL&gt; alter system set event='10298 trace name context forever, level 32'scope= spfile sid='*';&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Once you set the above parameter bounce the instance to effect parameter.&lt;br /&gt;&lt;br /&gt;Check as follows&lt;br /&gt;&lt;br /&gt;SQL&gt; select name, value from v$parameter where name = 'event';&lt;br /&gt;NAME VALUE&lt;br /&gt;---------- ------------------------------------------------------------&lt;br /&gt;Event 10298 trace name context forever, level 32&lt;br /&gt;&lt;br /&gt;Then try by switching logfile again.&lt;br /&gt;&lt;br /&gt;sid='*' is for RAC. For single instance do not use it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-8473276154034841857?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/8473276154034841857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2009/11/ora-27054-on-nfs-file-system-on-suse-10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/8473276154034841857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/8473276154034841857'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2009/11/ora-27054-on-nfs-file-system-on-suse-10.html' title='ORA-27054 on NFS file system on SUSE 10 SP2 for archives to be create directly on standby server.'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-7182602236422381422</id><published>2009-11-23T22:16:00.000-08:00</published><updated>2009-11-23T22:16:00.762-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Net Services'/><title type='text'>[Oracle Net Service]WARNING: inbound connection timed out (ORA-3136)</title><content type='html'>This problem can occur on any platform, When you use Oracle Net services.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Because;&lt;/b&gt; The Oracle Net 10G parameter "SQLNET.INBOUND_CONNECT_TIMEOUT and INBOUND_CONNECT_TIMEOUT_listenername default to 0 in 10.1.&lt;br /&gt;To address Denial of Service (DOS) issues, the parameter were set to have a default of 60 (seconds) in 10.2&lt;br /&gt;&lt;br /&gt;The following may be seen in the alert log: WARNING: inbound connection timed out (ORA-3136)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SQLNET.INBOUND_CONNECT_TIMEOUT&lt;/b&gt; is set to a value in seconds and determines how long a client has to provide the necessary authentication information to a database.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;INBOUND_CONNECT_TIMEOUT_listenername&lt;/b&gt; is set to a value in seconds and determines how long a client has to complete its connect request to the listener after the network connection has been established.&lt;br /&gt;&lt;br /&gt;To protect both the listener and the database server, Oracle Corporation recommends setting INBOUND_CONNECT_TIMEOUT_listenername in combination with the SQLNET.INBOUND_CONNECT_TIMEOUT parameter.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cause:&lt;/b&gt;&lt;br /&gt;Whenever default timeouts are assigned to a parameter, there may be cases where this default does not work well with a particular application. However, some type of timeout on the connection establishment is necessary to combat Denial of Service attacks on the database. In this case, SQLNET.INBOUND_CONNECT__TIMEOUT and INBOUND_CONNECT_TIMEOUT_listenername were given default values of 60 seconds in Oracle 10.2. It is these timeout values that can cause the errors described in this note.&lt;br /&gt;&lt;br /&gt;Also note that it is possilbe the reason the database is slow to authenticate, may be due to an overloaded Oracle database or node.&lt;b&gt;&lt;br /&gt;&lt;br /&gt;Solution:&lt;/b&gt;&lt;br /&gt;Set the parameters SQLNET.INBOUND_CONNECT_TIMEOUT and INBOUND_CONNECT_TIMEOUT_listenername to 0 (indefinite) or to an approprate value for the application yet still combat DOS attacks (120 for example).&lt;br /&gt;&lt;br /&gt;These parameters are set on the SERVER side:&lt;br /&gt;listener.ora: INBOUND_CONNECT_TIMEOUT_listenername&lt;br /&gt;sqlnet.ora: SQLNET.INBOUND_CONNECT_TIMEOUT&lt;br /&gt;&lt;br /&gt;After setup this parameter in listener reload the listener by issuing command reload on o/s level.Below is the example&lt;br /&gt;&lt;br /&gt;$lsnrctl reload&lt;br /&gt;&lt;br /&gt;Note:Further tuning of these parameters may be needed is the problem persists.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-7182602236422381422?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/7182602236422381422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2009/11/oracle-net-servicewarning-inbound.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/7182602236422381422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/7182602236422381422'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2009/11/oracle-net-servicewarning-inbound.html' title='[Oracle Net Service]WARNING: inbound connection timed out (ORA-3136)'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-8779084426920536346</id><published>2009-11-15T21:30:00.000-08:00</published><updated>2009-11-15T21:30:33.420-08:00</updated><title type='text'>IMPORT ZIP DUMP WITHOUT UNZIP</title><content type='html'>&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Script to import zip dump&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Here I'm creating script on o/s level &lt;br /&gt;&lt;br /&gt;$ vi &lt;b&gt;imp_compress_dump.sh&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;#/bin/bash&lt;br /&gt;&lt;br /&gt;# Example Script to Import an Object from a Compressed Export File &lt;br /&gt;# without compressing it, by using FIFO (named_pipes)&lt;br /&gt;# Use when uncompressing an export is not possible&lt;br /&gt;# due to space and/or time constraints&lt;br /&gt;&lt;br /&gt;# Declare the name of the named pipe&lt;br /&gt;&lt;br /&gt;NAMED_PIPE=mypipe.pipe;&lt;br /&gt;&lt;br /&gt;# Make the named pipe (FIFO)&lt;br /&gt;&lt;br /&gt;mknod $NAMED_PIPE p;&lt;br /&gt;&lt;br /&gt;# Use zcat to read compressed file and direct the standard out to the named pipe created earlier&lt;br /&gt;&lt;br /&gt;zcat expfull_test_16-nov-09_test_export.dmp.gz &gt; $NAMED_PIPE &amp;&lt;br /&gt;&lt;br /&gt;# A sample imp using the named pipe&lt;br /&gt;&lt;br /&gt;imp file=$NAMED_PIPE userid=test/test commit=y compile=n buffer=2000000000;&lt;br /&gt;&lt;br /&gt;# Remove the named pipe&lt;br /&gt;&lt;br /&gt;rm $NAMED_PIPE;&lt;br /&gt;&lt;br /&gt;# Exit the script&lt;br /&gt;&lt;br /&gt;exit;&lt;br /&gt;&lt;br /&gt;:wq  (save and exit)&lt;br /&gt;&lt;br /&gt;--------&lt;b&gt;example&lt;/b&gt;------------&lt;br /&gt;&lt;br /&gt;$ sqlplus "/ as sysdba"&lt;br /&gt;&lt;br /&gt;SQL&gt; create user test identified by test;&lt;br /&gt;&lt;br /&gt;User created.&lt;br /&gt;&lt;br /&gt;SQL&gt; grant connect, dba to test;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;SQL&gt; connect test/test&lt;br /&gt;Connected.&lt;br /&gt;SQL&gt; create table test_export (id number not null);&lt;br /&gt;&lt;br /&gt;Table created.&lt;br /&gt;&lt;br /&gt;SQL&gt; insert into test_export values (1);&lt;br /&gt;&lt;br /&gt;1 row created.&lt;br /&gt;&lt;br /&gt;SQL&gt; commit;&lt;br /&gt;&lt;br /&gt;Commit complete.&lt;br /&gt;&lt;br /&gt;SQL&gt; ! exp userid=test/test file=expfull_test_16-nov-09_test_export.dmp log=exfutest_16-nov-09.log buffer=2000000000 statistics=none&lt;br /&gt;&lt;br /&gt;About to export specified tables via Conventional Path ...&lt;br /&gt;. . exporting table                    TEST_EXPORT          1 rows&lt;br /&gt;exported&lt;br /&gt;Export terminated successfully without warnings.&lt;br /&gt;&lt;br /&gt;SQL&gt; ! gzip expfull_test_16-nov-09_test_export.dmp&lt;br /&gt;&lt;br /&gt;SQL&gt; ! ls -ltr *.gz&lt;br /&gt;-rw-r--r--  1 oracle oinstall 459 Nov 16 09:22 expfull_test_16-nov-09_test_export.dmp.gz&lt;br /&gt;&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;$ &lt;b&gt;./imp_compress_dump.sh&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Export file created by EXPORT:V09.02.00 via conventional path&lt;br /&gt;import done in US7ASCII character set and AL16UTF16 NCHAR character set&lt;br /&gt;import server uses AL32UTF8 character set (possible charset conversion)&lt;br /&gt;. importing TEST's objects into TEST&lt;br /&gt;. . importing table                  "TEST_EXPORT"          1 rows&lt;br /&gt;imported&lt;br /&gt;Import terminated successfully without warnings.&lt;br /&gt;&lt;br /&gt;$ sqlplus test/test&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select * from test_export;&lt;br /&gt;&lt;br /&gt;        ID&lt;br /&gt;----------&lt;br /&gt;         1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-8779084426920536346?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/8779084426920536346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2009/11/import-zip-dump-without-unzip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/8779084426920536346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/8779084426920536346'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2009/11/import-zip-dump-without-unzip.html' title='IMPORT ZIP DUMP WITHOUT UNZIP'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-1771187709282690920</id><published>2009-11-09T03:57:00.000-08:00</published><updated>2009-11-09T03:57:47.763-08:00</updated><title type='text'>Difference between DBMS &amp; RDBMS</title><content type='html'>&lt;b&gt;DBMS (Database Management System):&lt;strike&gt;&lt;/strike&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1)In DBMS no relationship concept.&lt;br /&gt;2)It supports single user only.&lt;br /&gt;3)It treats data as files internally.&lt;br /&gt;4)It supports 3 rule of EF CODD out of 12 rules.&lt;br /&gt;5)It requires low software and hardware requirements.&lt;br /&gt;6)FOXPRO,IMS are example.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;RDBMS (Relational Database Management System):&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1)It is used to establish the relationship concept between two database objects.i.e,tables etc.&lt;br /&gt;2)It supports multiple users.&lt;br /&gt;3)It treats data as tables internally.&lt;br /&gt;4)It supports minimum of 6 rules of EF CODD.&lt;br /&gt;5)It requires high software and hardware.&lt;br /&gt;6)SQL-server,Oracle are examples.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;12 RULES OF EF CODD:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If DB support &gt;=6 then the DB is known as RDBMS rule.&lt;br /&gt;&lt;br /&gt;1)Information rule:DB is should contain in the form of table with R&amp;C for storing.&lt;br /&gt;2)Rule of Guarantee access:For ex:if emp,dept if i want to access emp it should give the data from emp not from other table.&lt;br /&gt;3)Systematic treatment of Null value:Null value:Absence of info.&lt;br /&gt;4)Comprehensive Sub language:&lt;br /&gt;5)View update rule:&lt;br /&gt;ex: emp                emp1&lt;br /&gt;    10 columns        3 columns&lt;br /&gt;6)Insert and Update rule:&lt;br /&gt;  DMS command insert,update,delete.&lt;br /&gt;7)Physical data independent:&lt;br /&gt;     HD1  HD2  HD3&lt;br /&gt;Access the data from  any HD&lt;br /&gt;8)Logical data independent:&lt;br /&gt;  C   D   E   F&lt;br /&gt;Access the data from others.&lt;br /&gt;9)Data description rule:&lt;br /&gt;See the structure of table&lt;br /&gt;&gt;desc emp;&lt;br /&gt;10)Data distribution rule:&lt;br /&gt;DB             ADMIN&lt;br /&gt;emp,dept        LAN&lt;br /&gt;Distribute the table which can access from db.&lt;br /&gt;11)Integrity rule:&lt;br /&gt;                Constraints&lt;br /&gt;12)No subversion rule:&lt;br /&gt;New version should support old version.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-1771187709282690920?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/1771187709282690920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2009/11/difference-between-dbms-rdbms.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1771187709282690920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1771187709282690920'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2009/11/difference-between-dbms-rdbms.html' title='Difference between DBMS &amp; RDBMS'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8751605357139682129.post-1012978558078093952</id><published>2009-11-09T02:31:00.000-08:00</published><updated>2009-11-09T02:57:28.391-08:00</updated><title type='text'>How to enable listener logging and tracing</title><content type='html'>Enable listener logging and tracing helps you to identify the network problems and troubleshooting connection problems in oracle.It also help to identify when a client is connected to oracle database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Enabling Logging and Tracing in listener.ora:&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)Putting entry in listener.ora&lt;br /&gt;go to location for ex:$cd $ORACLE_HOME/network/admin&lt;br /&gt;vi listener.ora&lt;br /&gt;2)Put an entry  of LOGGING_LISTENER for logging and TRACE_LEVEL_LISTENER for tracing.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;TRACE_FILE_LISTENER=listenertrace.trc (The destination file for the trace file)&lt;br /&gt;TRACE_DIRECTORY_LISTENER=/home/oracle (The destination directory for the trace file)&lt;br /&gt;LOGGING_LISTENER=on&lt;br /&gt;TRACE_LEVEL_LISTENER=support&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;TRACE_LEVEL:It specifies the level of detail the trace facility records for the listener.The trace level value can either be a value within the range of 0 (zero) to 16 (where 0 is no tracing and 16 represents the maximum amount of tracing) or a value of off, admin, user, or support.&lt;br /&gt;&lt;br /&gt;i))off (equivalent to 0) provides no tracing.&lt;br /&gt;&lt;br /&gt;ii))user (equivalent to 4) traces to identify user-induced error conditions.&lt;br /&gt;&lt;br /&gt;iii)admin (equivalent to 6) traces to identify installation-specific problems.&lt;br /&gt;&lt;br /&gt;iv)support (equivalent to 16) provides trace information for troubleshooting information for Oracle Support Services.&lt;br /&gt;&lt;br /&gt;c)Reload The Listener:&lt;br /&gt;exp:$lsnrctl reload&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;TROUBLESHOOTING:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Format of the Listener Log Audit Trail:&lt;br /&gt;---------------------------------------------&lt;br /&gt;The audit trail formats text into the following fields:&lt;br /&gt;&lt;br /&gt;Timestamp * Connect Data [* Protocol Info] * Event [* SID | Service] * Return Code&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Properties of the audit trail are as follows:&lt;br /&gt;&lt;br /&gt;-Each field is delimited by an asterisk (*).&lt;br /&gt;-Protocol address information and service name or SID information appear only when a connection is attempted.&lt;br /&gt;-A successful connection or command returns a code of zero.&lt;br /&gt;-A failure produces a code that maps to an error message.&lt;br /&gt;&lt;br /&gt;With the return code you can be able to see which type of error and when it occurs.&lt;br /&gt;&lt;br /&gt;Audit Trail information can be used to view trends and user activity by first storing it in a table and then collating it into a report format.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Using trcasst Assistant to examine trace files&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;With trcasst examine the trace file, for ex:&lt;br /&gt;&lt;br /&gt;trcasst trace_file_name_here.&lt;br /&gt;For example to see statistics we can use,&lt;br /&gt;&lt;br /&gt;trcasst -s /home/oracle/mytracefile.trc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8751605357139682129-1012978558078093952?l=gmdba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmdba.blogspot.com/feeds/1012978558078093952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmdba.blogspot.com/2009/11/how-to-enable-listener-logging-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1012978558078093952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8751605357139682129/posts/default/1012978558078093952'/><link rel='alternate' type='text/html' href='http://gmdba.blogspot.com/2009/11/how-to-enable-listener-logging-and.html' title='How to enable listener logging and tracing'/><author><name>G M KHAN</name><uri>http://www.blogger.com/profile/16948879493996798431</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_0c_sOTQO54Q/TAR6nbWU3II/AAAAAAAAAJ8/5NWsLvayS-E/S220/Image0173.jpg'/></author><thr:total>0</thr:total></entry></feed>
