<?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-20869681</id><updated>2011-12-07T05:49:28.940-08:00</updated><title type='text'>All about ORACLE</title><subtitle type='html'>This blog is created for the oracle DBA community who search a lot for valuable data on the internet.This is compilation of posts from various forums and groups.Oracle Database community is growing by the day and the necessity of such a blog will be felt very soon.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>56</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-20869681.post-2128892619649293179</id><published>2011-04-28T06:16:00.000-07:00</published><updated>2011-05-03T06:28:34.356-07:00</updated><title type='text'>Goldengate reading XML data from BLOB column and inserting record into target table</title><summary type='text'>
Given below is a simple workaround for reading XML  from a blob column and parsing XML  and inserting it as a record into the target table.Usage of C userexit to accomplish the same is mentioned later in this post.
Extract group e_xmlextract e_xmluserid source, password ggsrmthost rukh, mgrport 8809rmttrail /opt/oracle/gg/rtrails/xmtable source.xml_blob, &amp;sqlexec (id lookup, query " &amp;select x.* </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/2128892619649293179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=2128892619649293179&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/2128892619649293179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/2128892619649293179'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2011/04/goldengate-reading-xml-data-from-blob.html' title='Goldengate reading XML data from BLOB column and inserting record into target table'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-1359650228999203631</id><published>2011-04-28T05:33:00.000-07:00</published><updated>2011-04-28T06:04:33.840-07:00</updated><title type='text'>Goldengate Reading JMS queue and update table.</title><summary type='text'>Scenario Description In this scenario we  are sending a XML message to the queue and using Goldengate the message is read from the queue and updated in the table.



Setup for Java adapter  
Install Java jdk1.5 or laterSet env variablesWindows:set JAVA_HOME=C:\prog\java\jdk1.6.0_18set PATH=%JAVA_HOME%\bin;%PATH%set PATH=%JAVA_HOME%\jre\bin\server;%PATH%
Download Java Adapter for GG and unzip it </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/1359650228999203631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=1359650228999203631&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/1359650228999203631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/1359650228999203631'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2011/04/reading-jms-queue-and-update-table.html' title='Goldengate Reading JMS queue and update table.'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-6836487623720071057</id><published>2011-04-20T04:46:00.000-07:00</published><updated>2011-04-20T04:47:33.158-07:00</updated><title type='text'>Goldengate Bidirectional replication with conflict resolution</title><summary type='text'>
Scenario Description In this Scenario we have tried to perform bidirectional replication. The extract process on Site A ,  e_sitea  will extract the data and send it as a remote trail file to Site B. The replicat process on Site B, r_sitea will read from the trail file and replicate the same in  database on Site B.  User tries to update a column on Site A and at the same instance another user </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/6836487623720071057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=6836487623720071057&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/6836487623720071057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/6836487623720071057'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2011/04/goldengate-bidirectional-replication.html' title='Goldengate Bidirectional replication with conflict resolution'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-TCL7jZn_6oE/Ta7Gc8L_fUI/AAAAAAAAAE8/UuEXjLr50IY/s72-c/1.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047517696450651</id><published>2010-07-08T11:34:00.003-07:00</published><updated>2010-07-21T18:09:20.877-07:00</updated><title type='text'>Deleting child records and parent records</title><summary type='text'>How  to delete all corresponding child records in order to 
delete the parent record.

 example:
CREATE TABLE EMP (
ENO NUMBER(3) NOT NULL,
NAME VARCHAR2(5),
DNO NUMBER(2) NOT NULL,
CONSTRAINT EMP_FKEY FOREIGN KEY (DNO) 
REFERENCES DEPT (DNO) INITIALLY IMMEDIATE DEFERRABLE,
CONSTRAINT EMP_PKEY PRIMARY KEY (ENO));


SQL&gt; set constraint emp_fkey deferred;        The order of deletes is now not </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047517696450651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047517696450651&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047517696450651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047517696450651'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/deleting-child-records-and-parent.html' title='Deleting child records and parent records'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047531021935968</id><published>2010-07-08T11:34:00.002-07:00</published><updated>2010-07-21T18:13:54.596-07:00</updated><title type='text'>Deleting duplicate values in table</title><summary type='text'>I have some duplicate values in my table.i want to delete one of those values

SQL&gt; CREATE TABLE A  (B NUMBER, C VARCHAR(1));

Table created.

SQL&gt; INSERT INTO A VALUES (1, 'A');

1 row created.

SQL&gt; INSERT INTO A VALUES (2, 'B');

1 row created.

SQL&gt; INSERT INTO A VALUES (3, 'C');

1 row created.

SQL&gt; INSERT INTO A VALUES (1, 'A');

1 row created.

SQL&gt; INSERT INTO A VALUES (4, 'D');

1 row </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047531021935968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047531021935968&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047531021935968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047531021935968'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/deleting-duplicate-values-in-table.html' title='Deleting duplicate values in table'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116048269828963510</id><published>2010-07-08T11:34:00.001-07:00</published><updated>2010-07-08T11:34:25.205-07:00</updated><title type='text'>Extract Numbers from a given string</title><summary type='text'>select NUM from 
(select
Substr('22,23,24,san,35',instr(','||'22,23,24,san,35',',',1,rownum)
,instr(','||'22,23,24,san,35',',',1,rownum+1)-instr(','||'22,23,24,san,35',',',1,rownum)-1)
NUM
from all_objects
where rownum &lt;= (select length('22,23,24,san,35') -
length(TRANSLATE('22,23,24,san,35',' ,',' ')) from
dual)
union all
select
substr('22,23,24,san,35',instr('22,23,24,san,35',',',-1)+1)
from </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116048269828963510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116048269828963510&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116048269828963510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116048269828963510'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/extract-numbers-from-given-string.html' title='Extract Numbers from a given string'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116066278907069721</id><published>2010-07-08T11:34:00.000-07:00</published><updated>2010-07-08T11:34:13.873-07:00</updated><title type='text'>Script to generate Foreign keys</title><summary type='text'>SET termout OFF
SET feedback OFF
SET lines 120
SET serveroutput ON SIZE 1000000
SPOOL C:\crt_fk.SQL
DECLARE
v_virg      VARCHAR2 (1);
v_maxcol    NUMBER;
v_tname     VARCHAR2 (30);
v_string1   VARCHAR2 (2000);
v_string2   VARCHAR2 (2000);
CURSOR c1 IS
SELECT table_name
FROM user_tables
ORDER BY table_name ASC;

BEGIN
DBMS_OUTPUT.put_line ('--');
DBMS_OUTPUT.put_line ('-- FOREIGN KEYS --');
</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116066278907069721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116066278907069721&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116066278907069721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116066278907069721'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/script-to-generate-foreign-keys.html' title='Script to generate Foreign keys'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116066412928425446</id><published>2010-07-08T11:33:00.000-07:00</published><updated>2010-07-21T20:46:27.355-07:00</updated><title type='text'>Killing sniped sessions in UNIX</title><summary type='text'>http://www.orsweb.com/downloads/source/424.html
#!/bin/ksh
#* filename==&gt;cleanup_sniped.ksh
#*
#* Name: cleanup_sniped.ksh
#*
#* Date: 13 December, 2001
#*
#* Purpose:
#* A script to clean up sniped sessions at the OS level.
#* The database sessions will dissappear after the
#* OS process is killed.
#* This script is based on Oracle NOTE: 96170.1
#*
#* Prepared/
#* CopyRighted By: </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116066412928425446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116066412928425446&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116066412928425446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116066412928425446'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/killing-sniped-sessions-in-unix.html' title='Killing sniped sessions in UNIX'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-3796327642106097391</id><published>2009-04-27T10:54:00.000-07:00</published><updated>2010-07-21T20:31:04.392-07:00</updated><title type='text'>ORA-01502 and ORA-00604 when dropping a user</title><summary type='text'>SQL&gt; drop user test cascade;
drop user test cascade*ERROR at line 1:ORA-00604: error occurred at recursive SQL level 2ORA-01502: index 'SYS.I_SEQ1' or partition of such index is in unusable state
connect as sys
SQL&gt; alter index SYS.I_SEQ1 rebuild online;
Index altered.

SQL&gt; drop user test cascade;
User dropped.</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/3796327642106097391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=3796327642106097391&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/3796327642106097391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/3796327642106097391'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2009/04/ora-01502-and-ora-00604-when-dropping.html' title='ORA-01502 and ORA-00604 when dropping a user'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-4150165919904993345</id><published>2009-04-02T10:04:00.000-07:00</published><updated>2009-04-27T10:49:26.989-07:00</updated><title type='text'>Oracle Application server forms and reports install</title><summary type='text'>Oracle Application Server 10g Release2 Installation best practices 1.The Infrastructure (Foundation) has to be installed firstName the home as infra and the path as infraiasChoose Identity managemenet and metadata repository Select administrator privileges check boxLeave the defaultsUse automatic .If you want to specify the ports then you can create a file and choose the filename heresample </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/4150165919904993345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=4150165919904993345&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/4150165919904993345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/4150165919904993345'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2009/04/oracle-application-server-forms-and.html' title='Oracle Application server forms and reports install'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_BHI1j3syxzU/SdTxWL58QvI/AAAAAAAAAAM/fPzISt-ZFwM/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116100703756041644</id><published>2006-10-16T06:54:00.000-07:00</published><updated>2008-02-06T11:19:20.709-08:00</updated><title type='text'>ORA-04093:REFERENCES TO COLUMNS OF TYPE LONG ARE NOT ALLOWED IN TRIGGERS</title><summary type='text'>SQL&gt;create table test(data1 varchar2(10),data2  long raw,data3 varchar2(99));SQL&gt;create or replace trigger t1       after Insert or update or delete on test       for each row       declare       begin         null;         end;SQL&gt;Alter trigger t1 compile debug;SQL&gt;Show error# cause: When compiling a trigger in debug mode which refers to a tablecontaining a LONG RAW column, the compilation will </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116100703756041644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116100703756041644&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116100703756041644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116100703756041644'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/ora-04093references-to-columns-of-type.html' title='ORA-04093:REFERENCES TO COLUMNS OF TYPE LONG ARE NOT ALLOWED IN TRIGGERS'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116100680027817674</id><published>2006-10-16T06:50:00.000-07:00</published><updated>2006-10-19T22:54:38.966-07:00</updated><title type='text'>ORA-04091: table  is mutating, trigger/function may not see it</title><summary type='text'>The Mutating table error is a well-known problem encountered in development; most developers have come across this error.ORA-04091: table is mutating,trigger/function may not see itThe basic reason for this error is the way Oracle manages a read consistent view of data. The error is encountered when a row-level trigger accesses the same table on which it is based, while executing. The table is </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116100680027817674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116100680027817674&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116100680027817674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116100680027817674'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/ora-04091-table-is-mutating.html' title='ORA-04091: table &lt;tablename&gt; is mutating, trigger/function may not see it'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116099895820511602</id><published>2006-10-16T04:14:00.000-07:00</published><updated>2006-10-16T04:42:38.293-07:00</updated><title type='text'>Accidental deletion of parameter file</title><summary type='text'>It is always a good idea to include the parameter file in your backupsbut in the rare event of not having a backup and loosing the file,there are various things you can do. Some of those would be:-- Create a new init file and within that file all you have to do ismake sure that these parameters are set : db_name, control_files,db_block_size and compatible. Once these parameters are set, you </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116099895820511602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116099895820511602&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116099895820511602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116099895820511602'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/accidental-deletion-of-parameter-file.html' title='Accidental deletion of parameter file'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116099550038623122</id><published>2006-10-16T03:43:00.000-07:00</published><updated>2010-07-08T11:32:41.633-07:00</updated><title type='text'>Multiblock read count</title><summary type='text'>As everyone will be aware, this parameter controls how much data Oracle thinks it can retrieve from the disks in a single trip (during a table scan). The important part of this statement is the "how much Oracle thinks". It is relatively easy to manufacture a circumstance where Oracle thinks it can achieve a much higher read size than can actually be serviced by the operating system. Unfortunately</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116099550038623122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116099550038623122&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116099550038623122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116099550038623122'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/multiblock-read-count.html' title='Multiblock read count'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116099521853666349</id><published>2006-10-16T03:37:00.000-07:00</published><updated>2006-10-16T03:40:18.550-07:00</updated><title type='text'>Monitoring rollback progress</title><summary type='text'>When a large transaction takes a long time to rollback, it is good to know how much of the rollback is done and estimate how long it is going to take. Given the session's sid, it can be done with the simple statement below, tested on Oracle9i. When a transaction is rolling back, the t.used_ublk and t.used_urec will decrease until they become 0. By sampling the two measures at different points of </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116099521853666349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116099521853666349&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116099521853666349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116099521853666349'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/monitoring-rollback-progress.html' title='Monitoring rollback progress'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116074435058562202</id><published>2006-10-13T05:57:00.000-07:00</published><updated>2006-10-13T05:59:10.586-07:00</updated><title type='text'>ORA-01994: GRANT failed: cannot add users to public password file</title><summary type='text'>ORA-01994: GRANT failed: cannot add users to public password fileThis error occurs on granting sysoper permission to a userIn the  initialization parameter file of your database.initSID.ora add this line and then restart the database.REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116074435058562202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116074435058562202&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074435058562202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074435058562202'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/ora-01994-grant-failed-cannot-add.html' title='ORA-01994: GRANT failed: cannot add users to public password file'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116074419317981646</id><published>2006-10-13T05:56:00.000-07:00</published><updated>2010-07-21T20:38:22.870-07:00</updated><title type='text'>ORA-00980: synonym translation is no longer valid</title><summary type='text'>SQL&gt;create table maintab as select * from tab;

Table created.

SQL&gt; create synonym syn_maintab for maintab;

Synonym created.

SQL&gt; select * from syn_maintab;

TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
AAAAA


10 rows selected.

SQL&gt; drop table maintab;

Table dropped.

SQL&gt; select * from syn_maintab;
select * from syn_maintab
*
ERROR at line 1:
ORA-00980: synonym</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116074419317981646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116074419317981646&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074419317981646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074419317981646'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/ora-00980-synonym-translation-is-no.html' title='ORA-00980: synonym translation is no longer valid'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116074415086204429</id><published>2006-10-13T05:54:00.000-07:00</published><updated>2008-02-06T11:30:13.271-08:00</updated><title type='text'>ORA-00979: not a GROUP BY expression</title><summary type='text'>select e.deptno,  d.deptno,sum(e.sal) from dept d,e emp  where d.deptno=e.deptno group by e.deptno    d.deptno,sum(e.sal) from d dept,e emp*ERROR at line 2:ORA-00979: not a GROUP BY expressionGROUP BY clause should contain all the columns(without group function) in the query select e.deptno,d.deptno,sum(e.sal) from dept d,emp ewhere d.deptno=e.deptno group by e.deptno,d.deptno;</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116074415086204429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116074415086204429&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074415086204429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074415086204429'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/ora-00979-not-group-by-expression.html' title='ORA-00979: not a GROUP BY expression'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116074395526402244</id><published>2006-10-13T05:51:00.000-07:00</published><updated>2006-10-19T23:03:02.536-07:00</updated><title type='text'>Tracing network errors in oracle</title><summary type='text'>I don't remember the URL of the site where I got this article from.It is really good.If anyone knows please let me know.I will remove this article and put the link here instead.1 Introduction~~~~~~~~~~~~For most problems you need to identify the relevant parts of aconnection to trace. To do this consider which scenario you arehaving problems with and where tracing needs to be enabled.Note that </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116074395526402244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116074395526402244&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074395526402244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074395526402244'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/tracing-network-errors-in-oracle.html' title='Tracing network errors in oracle'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116074039094438536</id><published>2006-10-13T04:51:00.000-07:00</published><updated>2006-10-13T04:53:10.946-07:00</updated><title type='text'>Find difference between two dates in days,hrs,mins and sec</title><summary type='text'>selecttrunc(to_date('15-jan-2006','dd-mon-yyyy')-sysdate)"Days",trunc(mod((to_date('15-jan-2006','dd-mon-yyyy')-sysdate)*24,24))"Hrs",trunc(mod((to_date('15-jan-2006','dd-mon-yyyy')-sysdate)*24*60,60))"Mins",trunc(mod((to_date('15-jan-2006','dd-mon-yyyy')-sysdate)*24*60*60,60))"Secs"from dual;</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116074039094438536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116074039094438536&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074039094438536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074039094438536'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/find-difference-between-two-dates-in.html' title='Find difference between two dates in days,hrs,mins and sec'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116074023117799766</id><published>2006-10-13T04:48:00.000-07:00</published><updated>2008-02-06T11:35:47.100-08:00</updated><title type='text'>Online Table reorganisation</title><summary type='text'>What can be Redefined ONLINE on a Table?----------------------------------------A non-partitioned table can be converted into a partitioned table, andvice versaThe organization of a table can be changed from a heap based to IOTs (IndexOrganized Tables), and vice versaNon-primary key columns can be droppedNew columns can be added to a tableExisting columns can be renamedParallel support can be </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116074023117799766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116074023117799766&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074023117799766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116074023117799766'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/online-table-reorganisation.html' title='Online Table reorganisation'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116066408649766898</id><published>2006-10-12T07:37:00.000-07:00</published><updated>2006-10-12T07:41:26.500-07:00</updated><title type='text'>Interview questions vol3</title><summary type='text'>1 What are the new features in Oracle 9i compared to earlier ones?2.What is undo tablespace and why is called so?What was it called in earlier versions?3.Now if you are appointed as a Oracle DBA in a company, can you tell what all are the databases that are running on a particular server? 4.Now if a database is in mount stage how can you find that database name since you are totally new to the </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116066408649766898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116066408649766898&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116066408649766898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116066408649766898'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/interview-questions-vol3.html' title='Interview questions vol3'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116066381873108215</id><published>2006-10-12T07:35:00.000-07:00</published><updated>2008-02-06T19:04:46.864-08:00</updated><title type='text'>ORA-00997: illegal use of LONG datatype</title><summary type='text'>While copying the data from one database to another using database link. For the tables which has long data types, its giving the error :       1)insert into DOC select * from DOC@acc_link  ORA-00997: illegal use of LONG datatypeUnfortunately, you cannot do an "insert into select" for tables with long datatype columns. If what you're trying it outside of PLSQL or any applications then you can use</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116066381873108215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116066381873108215&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116066381873108215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116066381873108215'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/ora-00997-illegal-use-of-long-datatype.html' title='ORA-00997: illegal use of LONG datatype'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116066353751635482</id><published>2006-10-12T07:21:00.000-07:00</published><updated>2008-02-06T19:18:17.637-08:00</updated><title type='text'>Useful scripts for DBA</title><summary type='text'>These work good on 9i .free.sql-amount of freespace in a tablespaceselect tablespace_name, round(sum(bytes)/(1024*1024),0) MB from dba_free_space group by tablespace_name/---------------------------------------------------------------------compile.sql-compile uncompiled objectsset pages 10000set lines 1500set feedback offset heading offspool com.lstselect ' alter '|| decode(object_type, 'PACKAGE </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116066353751635482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116066353751635482&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116066353751635482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116066353751635482'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/useful-scripts-for-dba.html' title='Useful scripts for DBA'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116048256835851314</id><published>2006-10-10T05:15:00.000-07:00</published><updated>2008-02-06T19:24:16.174-08:00</updated><title type='text'>Faster import export</title><summary type='text'>For fast exportSet the buffer parameter to high value.use direct=ySet recordlength parameter to high.Make sure on which on disk u r taking export should have minimal I/O. For fast ImportImport without indexes then use the indexfile, due to which u can skip the creation of indexes at the time of import.Increase the size of database buffer cache and log_buffer.Keep database in no archive mode.Use </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116048256835851314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116048256835851314&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116048256835851314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116048256835851314'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/faster-import-export.html' title='Faster import export'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047787612481235</id><published>2006-10-10T03:55:00.000-07:00</published><updated>2006-10-19T23:12:47.553-07:00</updated><title type='text'>Oracle Data encryption package dbms_obfuscation_toolkit</title><summary type='text'>One of the newer features added since oracle8i is data encryption. Oracle has supplied a new package called dbms_obfuscation_toolkit which allows you to encrypt and decrypt strings. This functionality will be particularly useful for data encryption when sensitive data like passwords and social security numbers are stored within the database. This article gives an example on encryption and </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047787612481235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047787612481235&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047787612481235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047787612481235'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/oracle-data-encryption-package.html' title='Oracle Data encryption package dbms_obfuscation_toolkit'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047764272061711</id><published>2006-10-10T03:52:00.000-07:00</published><updated>2006-10-20T00:44:09.916-07:00</updated><title type='text'>Row movement in oracle</title><summary type='text'>Row movement is associated with partitioned and non-partitioned tables but is mostly associated with non-partitione tables. For partitioned tables when ROW MOVEMENT is enabled users have the ability to update partitioning key columns in such a way that a row no longer belongs in its current partition, causing such rows to migrate to the appropriate partition. Row movement is enabled at the table </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047764272061711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047764272061711&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047764272061711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047764272061711'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/row-movement-in-oracle.html' title='Row movement in oracle'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047745485661579</id><published>2006-10-10T03:48:00.000-07:00</published><updated>2008-02-06T19:33:07.880-08:00</updated><title type='text'>Drop all indexes in a SCHEMA</title><summary type='text'>How to drop all indexes in a SCHEMASQL&gt;set pages 10000SQL&gt;set wrap offSQL&gt;set heading offSQL&gt;spool c:/indx.sql SQL&gt; select ' drop index ' || index_name ||';' from user_indexes; drop index IND1; drop index IND2; drop index IND3; SQL&gt; spool off; SQL&gt;@indx.sql) in that particular schema in which you want to  drop indexes.A similar script can be used for synonyms especially when you import a schema </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047745485661579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047745485661579&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047745485661579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047745485661579'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/drop-all-indexes-in-schema.html' title='Drop all indexes in a SCHEMA'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047412229407110</id><published>2006-10-10T02:48:00.000-07:00</published><updated>2008-02-06T19:41:04.596-08:00</updated><title type='text'>Creating a Data Guard Configuration on SUN cluster</title><summary type='text'>1) Ensure the Primary database is in ARCHIVELOG mode:SQL&gt; archive log listDatabase log mode No Archive ModeAutomatic archival DisabledArchive destination /export/home/oracle/temp/oracle/archOldest online log sequence 7Current log sequence 9SQL&gt; alter database close;Database altered.SQL&gt; alter database archivelog;Database altered.SQL&gt; shutdown immediateORA-01109: database not openDatabase </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047412229407110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047412229407110&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047412229407110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047412229407110'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/creating-data-guard-configuration-on.html' title='Creating a Data Guard Configuration on SUN cluster'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047340940408855</id><published>2006-10-10T02:42:00.000-07:00</published><updated>2010-07-08T11:35:30.094-07:00</updated><title type='text'>crosstab query transposing columns and rows</title><summary type='text'>SELECT  * FROM  (SELECT job,               sum(decode(deptno,10,sal)) DEPT10,               sum(decode(deptno,20,sal)) DEPT20,               sum(decode(deptno,30,sal)) DEPT30,               sum(decode(deptno,40,sal)) DEPT40          FROM scott.emp      GROUP BY job)ORDER BY 1;JOB           DEPT10     DEPT20     DEPT30     DEPT40--------- ---------- ---------- ---------- ----------ANALYST</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047340940408855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047340940408855&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047340940408855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047340940408855'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/crosstab-query-transposing-columns-and.html' title='crosstab query transposing columns and rows'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047319860247033</id><published>2006-10-10T02:38:00.000-07:00</published><updated>2006-10-10T02:39:58.603-07:00</updated><title type='text'>count(*) and count(1)</title><summary type='text'>What is the difference between count(1) and count(*) in a sql queryeg.select count(1) from emp;   andselect count(*) from emp; Nothing, they are the same, incur the same amount of work -- do the same thing, take the same amount of resources.You can see this via:ops$tkyte@ORA817.US.ORACLE.COM&gt; alter session set sql_trace=true;Session altered.ops$tkyte@ORA817.US.ORACLE.COM&gt; select count(*) from </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047319860247033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047319860247033&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047319860247033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047319860247033'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/count-and-count1.html' title='count(*) and count(1)'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047270623890027</id><published>2006-10-10T02:31:00.000-07:00</published><updated>2010-07-08T11:35:30.097-07:00</updated><title type='text'>Modify datatype of column -coulmn definitions</title><summary type='text'>Modifying Column DefinitionsYou can use the MODIFY clause to change any of the following parts of a column definition:   * datatype   * size   * default value   * NOT NULL column constraintThe MODIFY clause need only specify the column name and the modified part of the definition, rather than the entire column definition.Datatypes and SizesYou can change a CHAR column to VARCHAR2 (or VARCHAR) and</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047270623890027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047270623890027&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047270623890027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047270623890027'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/modify-datatype-of-column-coulmn.html' title='Modify datatype of column -coulmn definitions'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047262452442194</id><published>2006-10-10T02:29:00.000-07:00</published><updated>2006-10-10T02:30:24.533-07:00</updated><title type='text'>Database characterset migration</title><summary type='text'>In most cases a full export and import is recommended to properly convert all data to a new character set. However if, and only if, the new character set is a strict superset of the current character set, you can use the ALTER DATABASE CHARACTER SET statement to expedite migration to a new database character set. The target character set is a strict superset if each and every code point in the </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047262452442194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047262452442194&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047262452442194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047262452442194'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/database-characterset-migration.html' title='Database characterset migration'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047177984871322</id><published>2006-10-10T02:15:00.000-07:00</published><updated>2006-10-10T02:16:19.850-07:00</updated><title type='text'>Select date in GMT format</title><summary type='text'>NEW_TIME (oracle8i and above... pls check for older version) NEW_TIME(date, zone1, zone2)              Convert between GMT and US time zones (but not CET)zone1 and zone2 can be any of the following values:    Value  Description    AST  Atlantic Standard Time    ADT  Atlantic Daylight Time    BST  Bering Standard Time    BDT  Bering Daylight Time    CST  Central Standard Time    CDT  Central </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047177984871322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047177984871322&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047177984871322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047177984871322'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/select-date-in-gmt-format.html' title='Select date in GMT format'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047166405828733</id><published>2006-10-10T02:13:00.000-07:00</published><updated>2006-10-10T02:14:24.060-07:00</updated><title type='text'>Capturing machine name for users in oracle</title><summary type='text'>Create the fieldsCREAT_DATE DATE;CREAT_USER VARCHAR2(25);MODI_DATE  DATE;MODI_USER  VARCHAR2(25);in tables.Use this follwing code in every table row leveltrigger.DECLARE  VDATE   DATE;  vUSER   VARCHAR2(20);BEGIN     SELECT SYSDATE , audit_user(USERENV('SESSIONID'))INTO VDATE,      VUSER FROM DUAL;     IF INSERTING  THEN        :NEW.CREAT_DATE :=VDATE; :NEW.CREAT_USER :=VUSER;  :NEW.MODI_DATE :=</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047166405828733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047166405828733&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047166405828733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047166405828733'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/capturing-machine-name-for-users-in.html' title='Capturing machine name for users in oracle'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116047149802913923</id><published>2006-10-10T01:58:00.000-07:00</published><updated>2006-10-10T02:11:38.046-07:00</updated><title type='text'>How to create alpha numeric sequence.</title><summary type='text'>First, the character "A" can be represented as CHR(65), "B" as CHR(66),and so on.The answer lies in using two Oracle functions: MOD and TRUNC.-- MOD gives the remainder of two numbers. For example, MOD(50,26) gives 24, which is the remainder of 50/26.-- TRUNC gives just the integer value of a number. So TRUNC(50/26) gives  1, which is the integer value of 1.92307692...So, you want a sequence of </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116047149802913923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116047149802913923&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047149802913923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116047149802913923'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/how-to-create-alpha-numeric-sequence.html' title='How to create alpha numeric sequence.'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116046504239075988</id><published>2006-10-10T00:21:00.000-07:00</published><updated>2006-10-10T00:24:02.403-07:00</updated><title type='text'>Oracle DBA Checklist</title><summary type='text'>Purpose:   This document gives details for performing daily, weekly, and monthly checks of the status of one or more Oracle databases.  All SQL and PL/SQL code for the listed checks can be found in the appendix.  The latest version of this paper should always be available on the primary author's home page, .Change Notes: 1.1:  Typo in 'existext.sql' identified by Steve DeNunzio, fixed 1.2:  Typos</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116046504239075988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116046504239075988&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116046504239075988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116046504239075988'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/oracle-dba-checklist.html' title='Oracle DBA Checklist'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116046467912571534</id><published>2006-10-10T00:17:00.000-07:00</published><updated>2006-10-10T03:45:48.633-07:00</updated><title type='text'>Interview questions for Oracle DBA -Vol2</title><summary type='text'>1)How many memory layers are in the shared pool? 2)How do you find out from the RMAN catalog if a particular archive log has been backed-up? 3)How can you tell how much space is left on a given file system and how much space each of the file system's subdirectories take-up? 4)Define the SGA and how you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA? 5)</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116046467912571534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116046467912571534&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116046467912571534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116046467912571534'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/interview-questions-for-oracle-dba_10.html' title='Interview questions for Oracle DBA -Vol2'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-116046458509330943</id><published>2006-10-10T00:15:00.000-07:00</published><updated>2006-10-10T00:16:25.100-07:00</updated><title type='text'>Interview questions for oracle DBA -Vol1</title><summary type='text'>1.Explain the components of physical database structure of Oracle database?Oracle database is comprised of three types of files. One or more datafiles, two are more redo log files, and one or more control files. 2. Explain the components of logical database structure of Oracle database?There are tablespaces and database's schema objects.3. Explain a tablespace?A database is divided into Logical </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/116046458509330943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=116046458509330943&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116046458509330943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/116046458509330943'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/10/interview-questions-for-oracle-dba.html' title='Interview questions for oracle DBA -Vol1'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-115251852968484495</id><published>2006-07-10T00:53:00.000-07:00</published><updated>2006-07-10T01:02:09.696-07:00</updated><title type='text'>Table locking in Oracle RAC</title><summary type='text'>The other day there was some problem in a particular module .People were not able to save recors and also not able to query record related to a particular table.When I analysed with OEM I found that the table had more than one "exclusive lock" held on it.I was puzzled and I tried removing them by killing sessions related to those locks ,but again after a few minutes it was back.I am not an </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/115251852968484495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=115251852968484495&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/115251852968484495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/115251852968484495'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/07/table-locking-in-oracle-rac.html' title='Table locking in Oracle RAC'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-114000053526187533</id><published>2006-02-15T02:46:00.000-08:00</published><updated>2006-10-20T02:16:52.886-07:00</updated><title type='text'>Oracle 10g database on linux all versions</title><summary type='text'>&lt;?xml:namespace prefix = v /&gt;&lt;?xml:namespace prefix = o /&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;Installing Linux RHEL4 Oracle Database 10g Release 2 is certified to run the base release of RHEL4 (Advanced Server and &lt;?xml:namespace prefix = st1 /&gt;Enterprise Server) without updates. The easiest and fastest way to apply the updates for a fresh install of Linux is to perform the install by using the update </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/114000053526187533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=114000053526187533&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/114000053526187533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/114000053526187533'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/02/oracle-10g-database-on-linux-all.html' title='Oracle 10g database on linux all versions'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113955127747789417</id><published>2006-02-09T20:54:00.000-08:00</published><updated>2006-02-09T22:01:17.516-08:00</updated><title type='text'>Error while connecting to RAC database  (TNS-12545)</title><summary type='text'>C:\Documents and Settings\Administrator&gt;sqlplus system@sunSQL*Plus: Release 9.2.0.1.0 - Production on Tue Sep 20 11:09:37 2005Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.Enter password:ERROR:ORA-12545: Connect failed because target host or object does not existEnter user-name:SQLNET.ORA entryFatal NI connect error 12545, connecting to:(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113955127747789417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113955127747789417&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113955127747789417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113955127747789417'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/02/error-while-connecting-to-rac-database.html' title='Error while connecting to RAC database  (TNS-12545)'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113888242058994086</id><published>2006-02-02T04:11:00.000-08:00</published><updated>2006-02-02T05:02:20.786-08:00</updated><title type='text'>Troubleshooting installation of Oracle 9.2 on Sun solaris</title><summary type='text'> Error While Creating database 1.             The installation goes fine without any errors. But when the Oracle DatabseConfiguration Assistant was started, it stopped with an error while trying to createand start the oracle instance. When clicking on 'Ignore', it continues with moreerrors. The error messages:ORA-2730: failure occured at: skgpwreset1ORA-27303: additional information: invalid </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113888242058994086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113888242058994086&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113888242058994086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113888242058994086'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/02/troubleshooting-installation-of-oracle.html' title='Troubleshooting installation of Oracle 9.2 on Sun solaris'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113876807112093534</id><published>2006-01-31T20:00:00.000-08:00</published><updated>2006-01-31T20:27:53.726-08:00</updated><title type='text'>Standby archive apply throws error ORA-01152</title><summary type='text'>This is what happened today .I tried to restore  a cold backup of the primary on the standby and started it with a backup normal controlfile.alter database mount standby database ;controlfile is not standby controlfileso I went to the primary and took a controlfile backupalter database create  standby controlfile as '/bkp/standby.ctl';and ftp 'ed it to the standbyThen I started the database ,note</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113876807112093534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113876807112093534&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113876807112093534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113876807112093534'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/standby-archive-apply-throws-error-ora.html' title='Standby archive apply throws error ORA-01152'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113741830195596804</id><published>2006-01-16T05:31:00.000-08:00</published><updated>2006-10-17T21:43:07.866-07:00</updated><title type='text'>Step by step Data guard for oracle 9i on windows</title><summary type='text'> Maximum Performance data guard   The steps for creating a maximum performance physical standby   database are:           &lt;!--[if !supportLists]--&gt;1.  &lt;!--[endif]--&gt;Ensure your primary database is in archive log mode.To make the primary database in archive modeC:\Documents and Settings\Administrator&gt;sqlplus /nologSQL*Plus: Release 9.2.0.1.0 - Production on Thu Aug 4 13:17:54 2005Copyright (c) </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113741830195596804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113741830195596804&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113741830195596804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113741830195596804'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/step-by-step-data-guard-for-oracle-9i.html' title='Step by step Data guard for oracle 9i on windows'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113741767817591111</id><published>2006-01-16T05:00:00.000-08:00</published><updated>2010-07-08T11:35:30.100-07:00</updated><title type='text'>Standby server on RAC environment</title><summary type='text'>init.ora for standbybackground_dump_dest='/arch/dump/bdump'#cluster_database_instances=2#cluster_database=TRUEcompatible='9.2.0.5'control_files='/oracle/admin/ctl/standbysun.ctl'core_dump_dest='/arch/dump/cdump'cursor_sharing='EXACT'db_block_size=8192db_cache_size=200000000db_domain='world'db_file_multiblock_read_count=8db_name='sun'fast_start_mttr_target=600hash_join_enabled=TRUE#sun11.</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113741767817591111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113741767817591111&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113741767817591111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113741767817591111'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/standby-server-on-rac-environment.html' title='Standby server on RAC environment'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113739695945630089</id><published>2006-01-15T23:30:00.000-08:00</published><updated>2010-07-08T11:35:30.102-07:00</updated><title type='text'>How to Change SID   of oracle database</title><summary type='text'>This entry describes how to find and change the "db_name" for a database, or the ORACLE_SID for an instance, without recreating the database.       SCOPE &amp; APPLICATION      For DBAs requiring to either find or change the db_name or ORACLE_SID.        To find the current DB_NAME and ORACLE_SID:   Query the views v$database and v$thread.        V$DATABASE gives DB_NAME        V$THREAD gives </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113739695945630089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113739695945630089&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113739695945630089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113739695945630089'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/how-to-change-sid-of-oracle-database.html' title='How to Change SID   of oracle database'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113739649596103151</id><published>2006-01-15T23:25:00.000-08:00</published><updated>2006-01-17T04:31:12.306-08:00</updated><title type='text'>How to Change the IAS_ADMIN password for Enterprise Manager</title><summary type='text'>Changing  the EM Administrator account (ias_admin) for the EM Web Site in EM 9.0.2  If you already know the current EM Administrative password for ias_admin,  you can change the password from within the EM Web Site by clicking on the Preferences link on the top right-hand side of the screen.   1. You must enter the old password, the new password and confirm the new password. Or You can also go to</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113739649596103151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113739649596103151&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113739649596103151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113739649596103151'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/how-to-change-iasadmin-password-for.html' title='How to Change the IAS_ADMIN password for Enterprise Manager'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113715365586067105</id><published>2006-01-13T04:00:00.000-08:00</published><updated>2006-10-20T02:09:57.886-07:00</updated><title type='text'>Oracle RAC (Real Application Clusters)</title><summary type='text'>.profile# @(#)local.profile 1.8 99/03/26 SMIstty istripPATH=/usr/bin:$ORACLE_HOME/bin:.export PATH#echo $PATH## If possible, start the windows system#if [ "`tty`" = "/dev/console" ] ; then        if [ "$TERM" = "sun" -o "$TERM" = "sun-color" -o "$TERM" = "AT386" ]        then                if [ ${OPENWINHOME:-""} = "" ] ; then                        OPENWINHOME=/usr/openwin</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113715365586067105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113715365586067105&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113715365586067105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113715365586067105'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/oracle-rac-real-application-clusters.html' title='Oracle RAC (Real Application Clusters)'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113714396699159969</id><published>2006-01-13T01:18:00.000-08:00</published><updated>2006-02-02T02:59:44.560-08:00</updated><title type='text'>Step by Step Installation of Solaris 8 OS</title><summary type='text'>SF280R OS Installation Steps   Configuration: V480/2 * 900Mhz CPU/4GB RAM/FC Controller/2 * 36GB Internal HDD/   USB Keyboard &amp; Mouse      ON SF280   STAGE I ---- OS Installation   =======   1. Mount OS DVD media on drive and access OK prompt by typing stop a (Note STOP key is   to left-top   of key pad)   2. At OK prompt type   OK&gt; boot cdrom   This will access the DVD and OS installation beings</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113714396699159969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113714396699159969&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113714396699159969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113714396699159969'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/step-by-step-installation-of-solaris-8.html' title='Step by Step Installation of Solaris 8 OS'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113714308579864257</id><published>2006-01-13T01:04:00.000-08:00</published><updated>2006-02-02T04:22:44.580-08:00</updated><title type='text'>Step by step installation of Oracle 9.2 on Sun solaris</title><summary type='text'>Check Hardware Requirements                     Minimal Memory: 256 MBMinimal Swap Space: Twice the amount of the RAM                                                                                        To determine the amount of RAM memory installed on your system,               enter the following  command.$ /usr/sbin/prtconfTo determine the amount of SWAP installed on your system, enter the </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113714308579864257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113714308579864257&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113714308579864257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113714308579864257'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/step-by-step-installation-of-oracle-92.html' title='Step by step installation of Oracle 9.2 on Sun solaris'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113714266931738969</id><published>2006-01-13T00:56:00.000-08:00</published><updated>2006-01-17T04:32:27.356-08:00</updated><title type='text'>Could not mount Database after restarting the cluster</title><summary type='text'>Could not mount Database after restarting the cluster.     ALERT LOG   ORA-00202: controlfile: '/dev/vx/rdsk/racdg/orcl_raw_controlfile1'   ORA-27041: unable to open file   SVR4 Error: 6: No such device or address   Additional information: 2   Thu Jan  5 20:12:07 2006   ORA-205 signalled during: ALTER DATABASE   MOUNT...       DISKDUMP   $ dd if=/dev/vx/rdsk/racdg/orcl_raw_controlfile1 of=/dev/</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113714266931738969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113714266931738969&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113714266931738969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113714266931738969'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/could-not-mount-database-after.html' title='Could not mount Database after restarting the cluster'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113714162463030877</id><published>2006-01-13T00:28:00.000-08:00</published><updated>2006-01-15T22:40:40.833-08:00</updated><title type='text'>COLD BACKUP OF RAW FILESYSTEM</title><summary type='text'>COLD BACKUP OF RAW FILESYSTEM   SQL&gt; select status from v$backup;        STATUS---------   NOT ACTIVE   NOT ACTIVE ...21 rows selected.   select file#,status,error,fuzzy,recover from v$datafile_header;   SQL&gt; col error format a20   SQL&gt; /            FILE# STATUS  ERROR                FUZ REC---------- ------- -------------------- --- ---            1 ONLINE                       YES NO</summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113714162463030877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113714162463030877&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113714162463030877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113714162463030877'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/cold-backup-of-raw-filesystem.html' title='COLD BACKUP OF RAW FILESYSTEM'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113706477495644333</id><published>2006-01-12T03:19:00.000-08:00</published><updated>2006-01-12T03:23:04.156-08:00</updated><title type='text'>Oracle patch 9.2.0.6 on RAC</title><summary type='text'>Before Installing the patch kindly read the readme.html located in the disk 1 directory thoroughly.Note:The 32-bit version of the patch set must be installed only on the 32-bit version of the database software, regardless of whether the operating system is 32-bit or 64-bit. The 64-bit version of the patch set must be installed only on the 64-bit version of the database software that runs on the </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113706477495644333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113706477495644333&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113706477495644333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113706477495644333'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/oracle-patch-9206-on-rac.html' title='Oracle patch 9.2.0.6 on RAC'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113706470190685507</id><published>2006-01-12T03:18:00.000-08:00</published><updated>2006-01-13T01:39:58.453-08:00</updated><title type='text'>Oracle 9.2 on SUSE 9.3</title><summary type='text'>                                                                                         Hardware Requirements            The system must meet the following minimum hardware requirements:         Requirement  Minimum Value   RAM  512 MB  Swap space   Approx. twice the size of RAM  Disk space in /tmp  400 MB  Disk space for software files  2.5 GB (2621440 KB)   Disk space for database files  1.2 </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113706470190685507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113706470190685507&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113706470190685507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113706470190685507'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/oracle-92-on-suse-93.html' title='Oracle 9.2 on SUSE 9.3'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20869681.post-113706455326667300</id><published>2006-01-12T03:13:00.000-08:00</published><updated>2006-01-12T03:28:44.023-08:00</updated><title type='text'>How to export selective rows</title><summary type='text'>TIP : Now you can export a selective rows of a table(Feature of Oracle 8i)     You can export a selective rows of table with a new introduced QUERY option of export.You can use QUERY option on command line as well as in parameter file. Preferable way is to use parameter file.     Method 1 :- Command line     ON WINDOWS PLATFORM      Task:- Export only rows of table emp where comm. &gt; 20      </summary><link rel='replies' type='application/atom+xml' href='http://all-about-oracle.blogspot.com/feeds/113706455326667300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20869681&amp;postID=113706455326667300&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113706455326667300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20869681/posts/default/113706455326667300'/><link rel='alternate' type='text/html' href='http://all-about-oracle.blogspot.com/2006/01/how-to-export-selective-rows.html' title='How to export selective rows'/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
