<?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-2935838856065298774</id><updated>2011-11-27T17:19:36.305-08:00</updated><category term='Oracle Net Services'/><category term='Oracle11g'/><category term='Introduction'/><category term='Senior Oracle DBA Questions'/><category term='DBA - workwise'/><category term='FAQ'/><category term='Backup and Recovery'/><category term='Real DBA interview'/><category term='Unanswered questions'/><category term='Interesting Read'/><category term='Oracle jobs'/><category term='Oracle Apps DBA Questions'/><category term='Legato'/><category term='Mid level DBA'/><category term='PL SQL Interview Questions'/><category term='Useful links'/><category term='RMAN'/><category term='General DBA Questions'/><category term='ASM'/><category term='Uncategorised'/><category term='Junior DBA Questions'/><category term='Basic DBA Questions'/><category term='RAC'/><category term='Flash Recovery Area'/><category term='Scenarios'/><category term='Data Guard'/><category term='Oracle 10g Specific'/><category term='Scribd'/><category term='Scripts'/><category term='Statspack'/><category term='Disaster Recovery'/><category term='Personal Questions'/><category term='Grid control'/><title type='text'>Oracle DBA</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default?start-index=101&amp;max-results=100'/><author><name>Rita</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>151</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2935838856065298774.post-33396020386887154</id><published>2010-12-20T04:00:00.000-08:00</published><updated>2010-12-20T04:00:48.471-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle jobs'/><title type='text'>Oracle jobs - Dec 20, 2010</title><content type='html'>Opening for Oracle Form Developer,(Oracle Form 10g,Pro*C,Solaris)-Singapore, Send CV to recruit@terrabit-consulting.com &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Responsibilities: &lt;br /&gt;Reporting to the Project Manager, your responsibilities would be to: &lt;br /&gt;• Work with Team Leads of different project teams &lt;br /&gt;• Support the day-to-day operation of maintenance projects as part of the development team &lt;br /&gt;• Responsible for the Development, Unit Testing and System Integration Testing of Service requests and Defects reported. &lt;br /&gt;• Troubleshooting issues raised by customers and providing its resolution &lt;br /&gt;• Timely delivery of development work with quality, meeting the internal/external customers’ expectation &lt;br /&gt;&lt;br /&gt;• Update relevant documents on all executed changes in a timely manner. &lt;br /&gt;• Work as part of the team to meet project targets and quality objectives. &lt;br /&gt;• Interact effectively with team members at all levels. &lt;br /&gt;&lt;br /&gt;Requirements: &lt;br /&gt;You should possess the following qualifications: &lt;br /&gt;• Bachelor's degree in Computer Science or equivalent work experience &lt;br /&gt;• Have at least 4 years experience in Oracle Form 10g onwards &lt;br /&gt;• Experience in the configuration and administration of Oracle application server &lt;br /&gt;• Experience in Pro*C development &lt;br /&gt;• Experience working in Unix environment SUN Solaris &lt;br /&gt;• Must possess strong problem solving and analytical skills &lt;br /&gt;• Possess ability to lead and support the development team &lt;br /&gt;• Possess strong written and verbal communication skills &lt;br /&gt;• Prior experience in project maintenance &lt;br /&gt;• With consistent focus on quality &lt;br /&gt;• Have positive attitude to meet new challenges &lt;br /&gt;&lt;br /&gt;Send CV to recruit@terrabit-consulting.com&lt;br /&gt;-----------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;URGENT!!!!! EXPERIENCED DBA AND A SENIOR HYPERION PLANNING CONSULTANT NEEDED FOR PERMANENT POSITIONS IN THE UK!!!!!!!**** &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DBA: &lt;br /&gt;Full DBA exposure for the duration of the project lifecycle on at least 3 Oracle projects, Lead DBA/Technical team Leader experience, Track record of implementing Oracle E-Business Suite v11i or v12 &lt;br /&gt;&lt;br /&gt;Senior Hyperion Planning Consultant: &lt;br /&gt;Excellent knowledge of Hyperion Planning and Essbase, ETL, proven experience of Hyperion Planning implementations, ideally part qualified/qualified Accountant. &lt;br /&gt;&lt;br /&gt;CALL ME! 020 7 422 6017 / leigh@maximus-it.com&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------------------------&lt;br /&gt;Oracle/People soft DBA - Infrastructure DBA Support &lt;br /&gt;&lt;br /&gt;on W2 &lt;br /&gt;Locations: Secaucus, NJ &lt;br /&gt;Additional Details: &lt;br /&gt;Must have peoplesoft administration exp of 3 yrs. &lt;br /&gt;&lt;br /&gt;Description: &lt;br /&gt;Infrastructure DBA Support &lt;br /&gt;&lt;br /&gt;Description of day to day tasks &lt;br /&gt;Support of Oracle/PeopleSoft maintenance, upgrades and Incident resolution. &lt;br /&gt;Sound experience in Oracle database administration on UNIX platform &lt;br /&gt;The individual must have supported OLTP databases over 1 terabyte &lt;br /&gt;Experience with cloning distributed (replicated) PeopleSoft databases &lt;br /&gt;Ability to manage databases and troubleshoot issues via command line rather than OEM or other GUI tools &lt;br /&gt;Solid knowledge of Oracle advanced replication and Materialized views &lt;br /&gt;Familiarity with Oracle LDAP relative to names resolution &lt;br /&gt;PeopleSoft Application Designer, Data Mover &amp;amp; Process Scheduler &lt;br /&gt;Experience in supporting heavily customized PeopleSoft installations &lt;br /&gt;UNIX shell scripting &lt;br /&gt;Backup and recovery, RMAN and non-RMAN &lt;br /&gt;Oracle Data Guard &lt;br /&gt;&lt;br /&gt;Describe technical environment &lt;br /&gt;8+ years of experience in IT &lt;br /&gt;At least 5 years of Oracle database administration on UNIX platform, &lt;br /&gt;3 years of PeopleSoft administration.Oracle/PeopleSoft &lt;br /&gt;&lt;br /&gt;Must carry communication device and be reachable at all times. 98% response rate when contacted &lt;br /&gt;&lt;br /&gt;Vijaya, &lt;br /&gt;Enterprise Pals, Olathe, KS &lt;br /&gt;Ph(W) : +1-816-984-0991 &lt;br /&gt;&lt;a href="mailto:vijaya@enterprisepals.com"&gt;vijaya@enterprisepals.com&lt;/a&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------------------------&lt;br /&gt;W2 role for Oracle application DBA in Charlotte, NC - Exp. with Erwin, data warehouse design, SQL tuning, data modeling, reporting, and ETL - Reach me @ 973-854-9109 or &lt;a href="mailto:chhetra.thapa@collabera.com"&gt;chhetra.thapa@collabera.com&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------------------------------------------------------&lt;br /&gt;Immediate needs for an Oracle DBA at Southfield MI &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We have needs for an Oracle DBA from our client at Southfield MI whose role involves Installation, support, and migration of Oracle databases and ongoing administration and configuration of related tools along with providing technical expertise for projects and support. If interested send in your resume to nina.george@mastech.com and I shall contact you immediately.&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------------------&lt;br /&gt;DBA Lead (Teradata, Oracle) (Cincinnati, OH) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Job Responsibilities: &lt;br /&gt;&lt;br /&gt;Will provide a blend of Technical/Functional subject matter expertise in the areas of maintenance, support and development for a variety of database platforms including Teradata, Oracle, SQL Server, IDMS, and Sybase. This role specifically works in collaboration with vendor engineering teams and the internal community to provide enterprise and system level consulting on business analysis, database design, and development efforts. This role identifies ways technology solutions can be applied to support business strategies and improve business processes. Individuals in this role partner with business units and company Business Consultants team to communicate and clarify business needs to vendor resources, contribute to development of long-range systems plans and architecture, assist in requirements elaboration, and ensure products and services are aligned and implemented to meet business needs. May be required to participate minimally in hands-on development work, specifically when it comes to assisting with high severity incident reports or time-critical project deadlines. Incumbents will conduct business process analysis, needs assessments, and preliminary cost-benefit analysis. They also review estimates and designs to ensure compliance with architectural standards. Strong collaboration with the architecture team is expected. This position can also act in a Business Relationship Management capacity partnering with the business functions to ensure that their IT systems needs are met. Working in collaboration with the Business Consultant, the role may also be responsible for developing end to end Level 4 business requirements and the management of Level 0-4 capabilities and requirements for small, vertical domain focused business requests, documented using the Blueprint tool. Following are general accountabilities as well as targeted accountabilities depending on the nature of the position. &lt;br /&gt;&lt;br /&gt;Job Requirements: &lt;br /&gt;&lt;br /&gt;HS diploma + 8 years experience in all phases of IT system development Life Proven appropriate degree of Functional and Technical acumen for the respective technology domain. Knowledge of large complex systems with respect to the Business Processes, Technology, Integration points, and Infrastructure. Ability to size concepts and develop L4 use cases using Blueprint or related tool. Ability to work and collaborate effectively with offshore-based vendors. Understanding of Organizational Change Management (OCM) and Quality Assurance Technical Requirements: &lt;br /&gt;&lt;br /&gt;1. 2+ plus years hands on experience with Erwin &lt;br /&gt;&lt;br /&gt;2. Extensive knowledge in all facets of data warehouse design (Star, Snowflake, normalized verses denormalized, referential integrity, etc.) &lt;br /&gt;&lt;br /&gt;3. Certified DBA in either Oracle or Teradata with working knowledge of one or more of the following databases: SQL Server, Sybase, IDMS, Sybase Prior experience writing ETL solutions &lt;br /&gt;&lt;br /&gt;4. 8+ years experience in the design, build, deployment, and maintenance of an Enterprise Data Warehouse environment &lt;br /&gt;&lt;br /&gt;5. 8+ years SQL coding experience &lt;br /&gt;&lt;br /&gt;6. 8+ years managing databases from planning and testing stages through implementation and support &lt;br /&gt;&lt;br /&gt;7. In-depth understanding of security and backup procedures to ensure database integrity &lt;br /&gt;&lt;br /&gt;8. Good understanding of database schema objects including tables, views, packages, procedures, sequences, indexes, and constraints &lt;br /&gt;&lt;br /&gt;9. Experience in database reorganization, migration, server tuning, capacity planning, collecting statistics, software upgrades, Disaster Recovery, and High-Availability &lt;br /&gt;&lt;br /&gt;10. Strong in-depth experience in database performance tuning and SQL tuning &lt;br /&gt;&lt;br /&gt;Desired Requirements: &lt;br /&gt;BS in CS or IT;; IBM DataStage experience is a plus &lt;br /&gt;Interested candidates should send me a WORD resume and I will contact all qualified candidates. Only GREEN CARD HOLDERS or US CITIZENS will be considered. (tom@wefilljobs.com)&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------&lt;br /&gt;Oracle Apps DBA needed in Temple, Texas - Salary PLUS Bonus AND Generous Relocation Package US Citizens and Green Card Holders only - No Sponsorship &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We need an Oracle Apps DBA to be the principal administrator of installation and maintenance of Oracle applications. Responsible for managing Oracle application patches and determining the related dependencies when applying those patches. Work with the application development team to manage service requests with Oracle application support. Provide ongoing monitoring of the Oracle application and database environments. Manage database and recovery strategy. Review SQL for performance considerations. Implement database object changes to the Oracle application environment. Experience should include 2 to 4 years with Oracle Applications, including E-Business Suite. &lt;br /&gt;&lt;br /&gt;Full-time, permanent, onsite positions offer salary/benefits/bonus/relocation. Approximately 5% travel. &lt;br /&gt;If you're interested in this position, please contact my colleague Susan at &lt;a href="mailto:RecruitSS@PrecisionSystems.com"&gt;RecruitSS@PrecisionSystems.com&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;OR: if you know an appropriate person, please refer him or her to us. Our company will give you $1000 if your referral ends up getting the position!&lt;br /&gt;-------------------------------------------------------------------------------------------------------&lt;br /&gt;Oracle PL/SQL -- New York,NY(Job Id: LR:2191) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Job Title: Oracle PL/SQL &lt;br /&gt;Location: New York,NY. &lt;br /&gt;Job Id: LR:2191 &lt;br /&gt;&lt;br /&gt;Duration: 6 months Contract &lt;br /&gt;&lt;br /&gt;Description: &lt;br /&gt;&lt;br /&gt;• PL/SQL &lt;br /&gt;• Unix &lt;br /&gt;• Shell Scripting &lt;br /&gt;• Minimum 1 years experience with SQL Server or Oracle &lt;br /&gt;&lt;br /&gt;****Please send your updated resume to &lt;a href="mailto:jobs@mapleresource.net"&gt;jobs@mapleresource.net&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-33396020386887154?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/33396020386887154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=33396020386887154' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/33396020386887154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/33396020386887154'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2010/12/oracle-jobs-dec-20-2010.html' title='Oracle jobs - Dec 20, 2010'/><author><name>Rita</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-2935838856065298774.post-3636622649851388141</id><published>2009-08-14T22:53:00.000-07:00</published><updated>2009-08-14T23:15:05.899-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General DBA Questions'/><title type='text'>Interview Questions</title><content type='html'>1. How do you move the tablespaces or datafiles from one server to another server with archivelog mode.&lt;br /&gt;2. How do you copy database from production to new server using RMAN.&lt;br /&gt;3. Session hangs, user unable to connect the database, what is your analysis and how do you resolve it.&lt;br /&gt;4. Archive destination is full 100%,database hangs and configured RMAN, how do you resolve the issues.&lt;br /&gt;5. What is LOCAL LISTENER, how  does it work.&lt;br /&gt;6. You have created one index on Primary database, how do you check whether it is avaliable on Standby database.&lt;br /&gt;7. If you change SYS password on Primary database, will standby database work.&lt;br /&gt;8.  When you fire (DML) statement, what is doing oracle archicture.&lt;br /&gt;9.  If you add datafiles on primary database, what will happend on standy database. What parameter is required and What will happend if you set AUTO or Manual&lt;br /&gt;10. How do you apply critical patch.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3636622649851388141?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3636622649851388141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3636622649851388141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3636622649851388141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3636622649851388141'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/08/interview-questions.html' title='Interview Questions'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-2184702635837829284</id><published>2009-05-23T23:32:00.000-07:00</published><updated>2009-05-24T02:42:10.666-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle11g'/><title type='text'>Data Pump features in Oracle11g</title><content type='html'>Data Pump delivers several new features in Oracle Database 11g,including major new apabilities such as dump file encryption anddata compression. This paper describes these and other new featuresof Data Pump.&lt;br /&gt;&lt;br /&gt;Enhanced Compression&lt;br /&gt;&lt;br /&gt;The ability to compress the metadata associated with a Data Pump job is provided in Oracle Database 10g Release 2.&lt;br /&gt;In Oracle Database 11g, this compression capabilityhas been extended so that you can now compress table data on export.&lt;br /&gt;Data Pumpcompression is an inline operation, so the reduced dump file size means a ignificant savings in disk space. Unlike operating system or file system compression utilities,Data Pump compression is fully inline on the import side as well, so there is no needto uncompress a dump file before importing it.&lt;br /&gt;In the following compression example from the Oracle sample database, the oe andsh schemas were exported while simultaneously compressing all data and metadata.&lt;br /&gt;The dump file size was reduced by 74.67%.Three versions of the gzip (GNU zip) utility and one UNIX compress utility wereused to compress the 6.0 MB dump file set. The reduction in dump file size wascomparable to Data Pump compression.&lt;br /&gt;Note that your reduction in dump file sizewill vary based on data types and other factors.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Compression Method         Dump File          Size Reduction %&lt;br /&gt;Expdp schemas=oe,sh       6.0 MB                N/A&lt;br /&gt;Compression=none&lt;br /&gt;Expdp schemas=oe,sh       1.5 MB               74.67%&lt;br /&gt;Compression=all&lt;br /&gt;gzip –cv1 oesh.dmp           1.1 MB               82.7%&lt;br /&gt;gzip –cv6 oesh.cmp           835 KB              86.2%&lt;br /&gt;gzip –cv9 oesh.dmp          818 KB               86.5%&lt;br /&gt;UNIX compress                1.6 MB                74.24%&lt;br /&gt;Oesh.dmp&lt;br /&gt;&lt;br /&gt;You get full Data Pump functionality using a compressed file. Any command that you would use on a regular file will also work on a compressed file.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;New Encryption Options&lt;/strong&gt;&lt;br /&gt;In Oracle Database 11g, Data Pump supplies more encryption options for more flexible and robust security.&lt;br /&gt;The most important new encryption feature for Data Pump is the ability to encrypt dump file sets. You can select encryption for the data, the metadata, or the entire dump file as your needs require.&lt;br /&gt;You can also specify the type of security to use during an export. If Transparent Data Encryption is installed, then transparent encryption employing the Oracle Wallet can be used. If you are moving sensitive data to a system that does not share wallet information with the source database, then password-based encryption might be a better choice. Or, if you want to use both password-based encryption and transparent data encryption, then dual mode is available. All of these encryption modes can be used in combination with dump file compression if you desire.&lt;br /&gt;Encryption is part of the Advanced Security Option and requires Oracle Enterprise Edition.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Data Transforms&lt;/strong&gt;&lt;br /&gt;This feature allows you to remap data during export or import. There may be a need to obscure data as it is being moved from a production system to a test system so that unauthorized users do not see the data, but the essential processing characteristics of the data are preserved.&lt;br /&gt;&lt;br /&gt;For example, you may have a column of customer credit card numbers that needs to remain secure, but for test purposes would still need to retain a particular format and range of values. During export, you can replace the actual data from the source database with numbers generated by a user-defined remap function.  The data retains its essential characteristics without exposing the credit card numbers to unauthorized users.&lt;br /&gt;The remap feature can also be used to remap data as it is being inserted into a new database during import. This can be useful to avoid collision of unique values such as sequences when merging data from multiple sources.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Single Partition Transportable Tablespace&lt;/strong&gt;&lt;br /&gt;You can now export one or more partitions of a table without having to move the entire table. On import, you can choose to load partitions as is, merge them into a single table, or promote each into a separate table.&lt;br /&gt;&lt;br /&gt;Dynamic Restart of Workers&lt;br /&gt;If a worker process hits a fatal error, such as a process being manually shut down,&lt;br /&gt;then the worker will be restarted a number of times in an attempt to continue processing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Re-use Dump Files&lt;/strong&gt;&lt;br /&gt;You would normally get a fatal error during a Data Pump export if you specify dump files that already exist. This feature allows you to overwrite existing dump files during an export operation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2184702635837829284?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2184702635837829284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2184702635837829284' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2184702635837829284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2184702635837829284'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/05/data-pump-features-in-oracle11g.html' title='Data Pump features in Oracle11g'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-5026792052315032506</id><published>2009-04-15T17:00:00.001-07:00</published><updated>2009-04-15T17:08:52.004-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Guard'/><title type='text'>How to srart or stop Redo apply on physical Standby database</title><content type='html'>Start Redo Apply on Physical Standby database:&lt;br /&gt;&lt;br /&gt;To start log apply services on a physical standby database, ensure the physical standby database is started and mounted and then start Redo Apply using the SQL&lt;br /&gt;&lt;br /&gt;- To start a foreground session that recovers a database using the archived redo&lt;br /&gt;log on  the physical standby database, issue the SQL statement:&lt;br /&gt;SQL&gt; ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;&lt;br /&gt;&lt;br /&gt;Note: If you started a foreground session, by default, control is not returned to the&lt;br /&gt;command prompt until recovery is canceled by another session.&lt;br /&gt;&lt;br /&gt;- To start a background process that recovers a database using the archived redo log on the physical standby database, you must use the DISCONNECT keyword on the SQL statement&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-5026792052315032506?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/5026792052315032506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=5026792052315032506' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5026792052315032506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5026792052315032506'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/04/how-to-srart-or-stop-redo-apply-on.html' title='How to srart or stop Redo apply on physical Standby database'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-3313165677885743143</id><published>2009-04-15T16:46:00.000-07:00</published><updated>2009-04-15T17:40:48.773-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Guard'/><title type='text'>Data Guard Switchover/Failover Scenarios</title><content type='html'>&lt;strong&gt;Switchovers Involving a Physical Standby Database:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Step 1. On primary database check the status:&lt;br /&gt;SQL&gt; SELECT SWITCHOVER_STATUS FROM V$DATABASE;SWITCHOVER_STATUS;&lt;br /&gt;-----------------&lt;br /&gt;TO STANDBY&lt;br /&gt;1 row selected&lt;br /&gt;&lt;br /&gt;It should give: TO STANDBY or SESSION ACTIVE&lt;br /&gt;&lt;br /&gt;Step 2. Initiate the switchover on the primary database.&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY;&lt;br /&gt;(If Switchover_status is to_standby)&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;&lt;br /&gt;(If Switchover_status is session active)&lt;br /&gt;&lt;br /&gt;Step 3. Shut down the former primary instance, and restart and mount the database:&lt;br /&gt;&lt;br /&gt;SQL&gt; SHUTDOWN IMMEDIATE;SQL&gt; STARTUP MOUNT;&lt;br /&gt;At this point in the switchover process, both databases are configured as standby databases&lt;br /&gt;&lt;br /&gt;On the target physical standby database:&lt;br /&gt;&lt;br /&gt;Step 4.&lt;br /&gt;On standby database check the status:&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT SWITCHOVER_STATUS FROM V$DATABASE;&lt;br /&gt;&lt;br /&gt;It should give:&lt;br /&gt;TO PRIMARY or SESSION ACTIVE&lt;br /&gt;&lt;br /&gt;Step 5.&lt;br /&gt;Switch the target physical standby database role to the primary role.&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;&lt;br /&gt;(If Switchover_status is to_primary)&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY WITH SESSION SHUTDOWN;&lt;br /&gt;(If Switchover_status is session active)&lt;br /&gt;&lt;br /&gt;Step 6.&lt;br /&gt;If the standby database has never been opened before in readonly mode then open the database:&lt;br /&gt;SQL&gt; Alter database open; (10gR2)&lt;br /&gt;&lt;br /&gt;Or else: (10gR1)&lt;br /&gt;SQL&gt; Shutdown immediate;&lt;br /&gt;SQL&gt; Startup;&lt;br /&gt;&lt;br /&gt;Step7. If necessary, restart redo apply service on standby database( if you need details check How to start or stop redo apply heading)&lt;br /&gt;&lt;br /&gt;Step 8. Perform a log switch on primary database&lt;br /&gt;&lt;br /&gt;SQl&gt; Alter system switch logfile;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Failovers Involving a Physical Standby Database:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;Step 1: &lt;br /&gt;Identify and resolve any gaps in the archived redo log files.&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;&lt;br /&gt;THREAD# LOW_SEQUENCE# HIGH_SEQUENCE#&lt;br /&gt;---------- ------------- --------------&lt;br /&gt;1               90                      92&lt;br /&gt;&lt;br /&gt;In this example the gap compressed in the seq# 90,91 and 92.&lt;br /&gt;&lt;br /&gt;Copy all the missing archived redo log files from primary and register it to the standby.&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE REGISTER PHYSICAL LOGFILE 'filespec1';&lt;br /&gt;&lt;br /&gt;- Repeate the step until all gaps are resolved&lt;br /&gt;&lt;br /&gt;Step 2&lt;br /&gt;Copy any other missing archived redo log files and register it to standby database.&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT UNIQUE THREAD# AS THREAD, MAX(SEQUENCE#)&lt;br /&gt;2&gt; OVER (PARTITION BY thread#) AS LAST from V$ARCHIVED_LOG;&lt;br /&gt;THREAD    LAST&lt;br /&gt;---------- ----------&lt;br /&gt;1                 100&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE REGISTER PHYSICAL LOGFILE 'filespec1';&lt;br /&gt;&lt;br /&gt;After all available archived redo log files have been registered, query the&lt;br /&gt;V$ARCHIVE_GAP to verify no additional gaps were introduced&lt;br /&gt;&lt;br /&gt;Step 3&lt;br /&gt;Initiate a failover on the target physical standby database.&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE;&lt;br /&gt;&lt;br /&gt;Step4&lt;br /&gt;Convert the physical standby database to the primary role.&lt;br /&gt;&lt;br /&gt;SQL&gt;ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;&lt;br /&gt;&lt;br /&gt;Step 5&lt;br /&gt;If the standby database has never been opened before in readonly mode then open the database:&lt;br /&gt;SQL&gt; Alter database open;&lt;br /&gt;Or else:&lt;br /&gt;SQL&gt; Shutdown immediate;&lt;br /&gt;SQL&gt; Startup;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3313165677885743143?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3313165677885743143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3313165677885743143' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3313165677885743143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3313165677885743143'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/04/how-to-switchover-physical-standby.html' title='Data Guard Switchover/Failover Scenarios'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-453613900049532413</id><published>2009-04-07T19:09:00.000-07:00</published><updated>2009-04-07T19:19:59.029-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Backup and Recovery'/><title type='text'>How to Recover Controlfile</title><content type='html'>&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;Recover controlfile in Archive log mode:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;1. connect the database and verify contfile names&lt;br /&gt;SQL&gt; select name from v$controlfile;&lt;br /&gt;NAME&lt;br /&gt;-------------------------------------------------------------&lt;br /&gt;D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\CONTROL01.CTL&lt;br /&gt;D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\CONTROL02.CTL&lt;br /&gt;D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\CONTROL03.CTL&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;2. Remove one controlfile: CONTROL01.CTL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;3. SQL&gt; startup&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;ORACLE instance started.&lt;br /&gt;Total System Global Area 432013312 bytes&lt;br /&gt;Fixed Size 1249392 bytes&lt;br /&gt;Variable Size 155193232 bytes&lt;br /&gt;Database Buffers 268435456 bytes&lt;br /&gt;Redo Buffers 7135232 bytes&lt;br /&gt;ORA-00205: error in identifying control file, check alert log for more info&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;4. Verify in alert log:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;ORA-00202: control file: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\CONTROL01.CTL'&lt;br /&gt;ORA-27041: unable to open file&lt;br /&gt;OSD-04002: unable to open file&lt;br /&gt;O/S-Error: (OS 2) The system cannot find the file specified.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;5. Copy other controlfile adn rename is as orignal ,becuase database is using multiple controlfiles.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;cp CONTROL02.CTL and rename it to CONTROL01.CTL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;6. Create a "create control file script". This can be obtained using "Alter database backup controlfile to trace" command if used some time back. Its a good practice to backup the control file to trace regularly when ever the structure if changed (Example when ever a datafile is added). other waise take from&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;control_file.sql:&lt;br /&gt;&lt;/strong&gt;STARTUP NOMOUNT&lt;br /&gt;CREATE CONTROLFILE REUSE DATABASE "PRIM" RESETLOGS ARCHIVELOG&lt;br /&gt;MAXLOGFILES 16&lt;br /&gt;MAXLOGMEMBERS 3&lt;br /&gt;MAXDATAFILES 100&lt;br /&gt;MAXINSTANCES 8&lt;br /&gt;MAXLOGHISTORY 292&lt;br /&gt;LOGFILE&lt;br /&gt;GROUP 1 (&lt;br /&gt;'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\REDO01.LOG',&lt;br /&gt;'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\REDO01B.LOG'&lt;br /&gt;) SIZE 50M,&lt;br /&gt;GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\REDO02.LOG' SIZE 50M,&lt;br /&gt;GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\REDO03.LOG' SIZE 50M&lt;br /&gt;-- STANDBY LOGFILE&lt;br /&gt;DATAFILE&lt;br /&gt;'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\SYSTEM01.DBF',&lt;br /&gt;'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\UNDOTBS01.DBF',&lt;br /&gt;'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\SYSAUX01.DBF',&lt;br /&gt;'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\USERS01.DBF',&lt;br /&gt;'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PRIM\USERS02.DBF'&lt;br /&gt;CHARACTER SET WE8MSWIN1252&lt;br /&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;7. Run the created control_file.sql&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;SQL&gt; @control_file.sql&lt;br /&gt;ORACLE instance started.&lt;br /&gt;Total System Global Area 432013312 bytes&lt;br /&gt;Fixed Size 1249392 bytes&lt;br /&gt;Variable Size 155193232 bytes&lt;br /&gt;Database Buffers 268435456 bytes&lt;br /&gt;Redo Buffers 7135232 bytes&lt;br /&gt;Control file created.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;8. Open the database resetlogs&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;SQL&gt; ALTER DATABASE OPEN RESETLOGS;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;9. The add the tempfile&lt;br /&gt;SQL&gt; ALTER TABLESPACE TEMP ADD TEMPFILE 'D:\ORACLE\PRODUCT\10.2.0 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;\ORADATA\PRIM\TEMP01.DBF' SIZE 20971520 &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;Tablespace altered.&lt;br /&gt;&lt;br /&gt;We are done. Database is now up and running. There is no loss of data, because all the data files and redo log files were intact.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Note:&lt;/strong&gt; if all the controlfiles are corrupted,follow same procedures except step 5. &lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-453613900049532413?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/453613900049532413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=453613900049532413' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/453613900049532413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/453613900049532413'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/04/how-to-recover-controlfile.html' title='How to Recover Controlfile'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-6309808104689975682</id><published>2009-03-23T13:33:00.000-07:00</published><updated>2009-03-23T14:00:35.564-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>Create Recovery Catalog in RMAN</title><content type='html'>&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name="Registering the Target Database"&gt;&lt;span style="font-size:85%;"&gt;Setting up the Recovery Catalog &lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;----------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;To use RMAN, a recovery catalog is not necessary. Remember that RMAN will always use the control file of the target database to store backup and recovery operations. To use a recovery catalog, you will first need to create a recovery catalog database and create a schema for it. The catalog (database objects) will be located in the default tablespace of the schema owner. Please note that the owner of the catalog cannot be the SYS user. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;The recovery catalog database should be created on a different host, on different disks, and in a different database from the target databse you will be backing up. If you do not, the benefits of using a recovery catalog are lost if you loose the database and need to restore. &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;The first step is to create a database for the recovery catalog. DB name: CATDB. The database has the following installed: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;- You have access to the SYS password for the database.&lt;br /&gt;- A temporary tablespace named TEMP already exists.&lt;br /&gt;- A normal tablespace named TOOLS exists and will be used to store the recovery catalog.&lt;br /&gt;- The database is configured in the same way as all normal databases, for example, catalog.sql and catproc.sql have been successfully run. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Now, let's create the recovery catalog:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;1. Start SQL*Plus and then connect with SYSDBA privileges to the database containing the recovery catalog: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;% sqlplus "sys/pwd as sysdba"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;2. Create a user and schema for the recovery catalog: SQL&gt; CREATE USER rman IDENTIFIED BY rman&lt;br /&gt;2 DEFAULT TABLESPACE tools&lt;br /&gt;3 TEMPORARY TABLESPACE temp&lt;br /&gt;4 QUOTA UNLIMITED ON tools;&lt;br /&gt;    User created.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;3. Grant the RECOVERY_CATALOG_OWNER role to the schema owner. This role provides the user with privileges to maintain and query the recovery catalog: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;SQL&gt; GRANT RECOVERY_CATALOG_OWNER TO rman;&lt;br /&gt;           Grant succeeded.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;4. Grant other desired privileges to teh RMAN user: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;SQL&gt; GRANT CONNECT, RESOURCE TO rman;&lt;br /&gt;           Grant succeeded.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;5. After creating the catalog owner you should now create the catalog itself by using the CREATE CATALOG command within the RMAN interface. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;This command will create the catalog in the default tablespace of the catalog owner. you will need to connect to the database that will contain the catalog as teh catalog owner as follows: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;% rman catalog &lt;/span&gt;&lt;a href="mailto:rman/rman@catdb"&gt;&lt;span style="font-size:85%;"&gt;rman/rman@catdb&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Recovery Manager: Release 9.2.0.1.0 - Production&lt;br /&gt;Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;connected to recovery catalog database&lt;br /&gt;recovery catalog is not installed&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;6. Now, run the CREATE CATALOG command to create the catalog. Note that this process can take several minutes to complete. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;RMAN&gt; create catalog;&lt;br /&gt;recovery catalog created&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name="Registering the Target Database"&gt;&lt;span style="font-size:85%;"&gt;Registering the Target Database &lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;---------------------------------&lt;br /&gt;Before using RMAN using a recovery catalog, you will need to register the taget database(s) in the recovery catalog. RMAN will obtain all information it needs to register the target database from the database itself. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;As long as each target database has a distinct DBID, you can register more than one target database in the same recovery catalog. Each database registered in a given catalog must have a unique database identifier (DBID), but not necessarily a unique database name. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;You can use either the command-line utilities provided by RMAN or the Oracle Enterprise Manager GUI to register the target database. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;For example, the command-line utilities. Register a database name as TARGDB to a recovery catalog within a database named CATDB. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;The target database must be either mounted or opened in order to register it. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;% . oraenv&lt;br /&gt;ORACLE_SID = [TARGDB] ? TARGDB&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;% rman target backup_admin/backup_admin catalog &lt;/span&gt;&lt;a href="mailto:rman/rman@catdb"&gt;&lt;span style="font-size:85%;"&gt;rman/rman@catdb&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Recovery Manager: Release 9.2.0.1.0 - Production&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.&lt;br /&gt;connected to target database: TARGDB (DBID=2457750772)&lt;br /&gt;connected to recovery catalog database&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;RMAN&gt; register database;&lt;br /&gt;database registered in recovery catalog&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;full resync complete&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name="Unregister a Database From the Recovery Catalog"&gt;&lt;span style="font-size:85%;"&gt;Unregister a Database From the Recovery Catalog &lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;---------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;This section describes the steps on how to remove (unregister) a database (the target database) from the recovery catalog. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;You can unregister a database by running the following procedure from the while logged into the recovery catalog: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;SQL&gt; execute dbms_rcvcat.unregisterdatabase(db_key, db_id)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;To unregister a database, do the following: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;NOTE: If the target database does not exists anymore, the only steps to execute are (1) and (3). Because the backupsets cannot be deleted from the catalog (requires to connect to the target database) they are not be deleted from disk or tape either. So you have to remove these backupsets manually. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;A list of the related backupsets are: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;SQL&gt; select handle from rc_backup_piece where db_id = &lt;see&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;1. Identify the database that you want to unregister. Run the following query from the recovery catalog using Server Manager or SQL*Plus (connected as the RMAN user): &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;SQL&gt; select * from rc_database;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;DB_KEY     DBINC_KEY  DBID       NAME     RESETLOGS_CHANGE# RESETLOGS&lt;br /&gt;---------- ---------- ---------- -------- ----------------- ---------&lt;br /&gt;1   2   2498101982 TARGDB 1 15-JAN-04&lt;br /&gt;105 106 2457750772 OIDDB 1 14-DEC-03&lt;br /&gt;128 129 2351019032 OMSDB 1 15-JAN-04&lt;br /&gt;301 302 2498937635 TARGDB 140831 25-JAN-04&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;For Example: Unregister all databases with this catalog. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;2.Remove the backupsets that belong to the database that you want to unregister.&lt;br /&gt; 1.Find the backupsets of the database that you want to unregister. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;   RMAN&gt; list backupset of database;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;  2. Remove the backupsets that belongs only to the database you want to unregister.    &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;    RMAN&gt; allocate channel for delete type disk;&lt;br /&gt;    RMAN&gt; change backupset XXX delete;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;NOTE: You need to allocate a channel for the delete. In this example a disk drive is being used and not a tape. The procedure for a backup done to tape is the same except you have to allocate a different channel for tape. Example: RMAN&gt; allocate channel for delete type 'sbt_tape';The XXX value is the 'list of key' value from the 'list backupset of database' command &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;3. Unregister the database by executing the following procedure from the recovery catalog: &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;SQL&gt; execute dbms_rcvcat.unregisterdatabase(db_key, db_id)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;The "db_key" and "db_id" values you will get by running the following query from the recovery catalog: &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;SQL&gt; select * from rc_database;&lt;br /&gt;DB_KEY DBINC_KEY DBID NAME RESETLOGS_CHANGE# RESETLOGS&lt;br /&gt;---------- ---------- ---------- -------- ----------------- ---------&lt;br /&gt;1 2 2498101982 TARGDB 1 15-JAN-04&lt;br /&gt;105 106 2457750772 OIDDB 1 14-DEC-03&lt;br /&gt;128 129 2351019032 OMSDB 1 15-JAN-04&lt;br /&gt;301 302 2498937635 TARGDB 140831 25-JAN-04&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;Make sure you are using the correct values by looking at the 'NAME' column of the "rc_database" table. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;For example of how to unregister all databases within this catalog: &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;SQL&gt; execute dbms_rcvcat.unregisterdatabase(1, 2498101982)&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;SQL&gt; execute dbms_rcvcat.unregisterdatabase(105, 2457750772)&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;SQL&gt; execute dbms_rcvcat.unregisterdatabase(128, 2351019032)&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-size:85%;"&gt;SQL&gt; execute dbms_rcvcat.unregisterdatabase(301, 2498937635)&lt;br /&gt;PL/SQL procedure successfully completed.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;Reference: Oracle metalink Id: Note:1058332.6&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-6309808104689975682?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/6309808104689975682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=6309808104689975682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6309808104689975682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6309808104689975682'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/03/create-recovery-catalog-in-rman.html' title='Create Recovery Catalog in RMAN'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-34261334386490101</id><published>2009-03-17T18:29:00.000-07:00</published><updated>2009-03-17T18:49:56.451-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>How to create duplicate database using RMAN</title><content type='html'>&lt;strong&gt;DUPLICATE database using RMAN( i.e: we can not use clone steps through RMAN)&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step-by-step instructions on how to using RMAN DUPLICATE to restore/duplicate a database.&lt;br /&gt;Below the instructions on how to using RMAN DUPLICATE to restore/duplicate a database on Windows and UNIX servers, either on a new machine or local machine.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;My settings in this case are:&lt;br /&gt;&lt;/strong&gt;- The Database version is 10.2.0.3;&lt;br /&gt;- The production database (the target database) is called TARG and the testing database (the duplicate database) is called DUPL;&lt;br /&gt;- Archive log mode is enabled on TARG. Weekly hot whole database backup of TARG is taken to - disk by RMAN and then copied to tape. The archive log files are also backed up and deleted with the weekly backup.&lt;br /&gt;- The Tape backup and archived log files on disk are used for restore/recovery in this example;&lt;br /&gt;- I use Flash Recovery Area to store backup related files;&lt;br /&gt;- The directory structure of two systems are identical;&lt;br /&gt;- No recovery catalog is used.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1. Before you get started:&lt;br /&gt;&lt;/strong&gt;1) Make sure the operating system on the target and duplicate systems are the same.&lt;br /&gt;2) Make sure the same Oracle software release is used on the target and duplicate databases.&lt;br /&gt;3) Make sure you have the necessary backups of the target database. Ensure sure the backups, and the archived redo logs if needed, are accessible from the duplicate site.&lt;br /&gt;4) Exam your RMAN configuration. Login to target database as a user with sysdba privileges.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;$rman target &lt;user&gt;/&lt;password&gt;@TARG&lt;br /&gt;RMAN&gt; show all;&lt;br /&gt;RMAN configuration parameters are:&lt;br /&gt;CONFIGURE RETENTION POLICY TO REDUNDANCY 2;&lt;br /&gt;CONFIGURE BACKUP OPTIMIZATION OFF; # default&lt;br /&gt;CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default&lt;br /&gt;CONFIGURE CONTROLFILE AUTOBACKUP ON;&lt;br /&gt;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default&lt;br /&gt;CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 1;&lt;br /&gt;CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default&lt;br /&gt;CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default&lt;br /&gt;CONFIGURE MAXSETSIZE TO UNLIMITED; # default&lt;br /&gt;CONFIGURE ENCRYPTION FOR DATABASE OFF; # default&lt;br /&gt;CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default&lt;br /&gt;CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default&lt;br /&gt;CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\SNCFTARG.ORA'; # default&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2. Delete the testing database using Oracle DBCA.&lt;br /&gt;&lt;/strong&gt;Retain a backup of the testing database in case the duplicate fails and you need to restore the original testing database.&lt;br /&gt;If you want to restore/duplicate the database to a new server, install Oracle Database software without the starter database, and then patch it if needed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;3. Copy the appropriate tape backup files to Target database backup location using your &lt;span style="color:#000099;"&gt;tape management tool. &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;I renamed the original disk backup of TARG instead of overwriting it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;4. Create a password file for the testing database DUPL. The password for SYS must be identical on both databases.&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;- On Windows:&lt;br /&gt;&lt;/span&gt;$cd %ORACLE_HOME%\database&lt;br /&gt;$orapwd file=pwdDUPL.ora password=xxxxxxxx force=y&lt;br /&gt;(Note: Replace xxxxxxxxx with your actual password for the SYS user.)&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;- On UNIX:&lt;/span&gt;&lt;br /&gt;$cd $ORACLE_HOME/dbs&lt;br /&gt;$Orapwd file=pwdDUPL.ora password=xxxxxxxx force=y&lt;br /&gt;(Note: Replace xxxxxxxxx with your actual password for the SYS user.)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;5. Update tnsnames.ora and listener.ora of the Target database to add the duplicate database entries.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;6. Create an Initialization parameter for the duplicate database.&lt;br /&gt;On Target database TARG, issue the following command:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;- On Windows:&lt;br /&gt;&lt;/span&gt;SQL&gt;create pfile=’&lt;oracle_home&gt;\database\pfileDUPL.ora’ from spfile;&lt;br /&gt;(Note- specify your Oracle home path to replace ‘&lt;oracle_home&gt;’).&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;- On UNIX:&lt;/span&gt;&lt;br /&gt;SQL&gt;create pfile=’&lt;oracle_home&gt;/dbs/pfileDUPL.ora’ from spfile;&lt;br /&gt;(Note- specify your Oracle home path to replace ‘&lt;oracle_home&gt;’).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;7. Copy pfileDUPL.ora to duplicate database site and edit it.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;1) Copy it to &lt;oracle_home&gt;\database directory on Windows or &lt;oracle_home&gt;/dbs directory on UNIX.&lt;br /&gt;&lt;br /&gt;2) Modify the init file to include parameters DB_NAME, CONTROL_FILES, DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT. For example (here the file paths are from a windows system. For UNIX system, specify the path accordingly):&lt;br /&gt;&lt;br /&gt;db_name='DUPL'&lt;br /&gt;control_files='E:\ORACLE\PRODUCT\10.2.0\ORADATA\DUPL\CONTROLFILE\CONTROL01.CTL', 'F:\ORACLE\FLASH_RECOVERY_AREA\DEVL\CONTROLFILE\CONTROL02.CTL'&lt;br /&gt;# Specify the location of the target DB datafiles followed by the duplicate location&lt;br /&gt;db_file_name_convert='E:\oracle\product\10.2.0\oradata\TARG\DATAFILE', 'E:\oracle\Product\10.2.0\oradata\DUPL\DATAFILE'&lt;br /&gt;# Specify the location of the target DB online redo log files followed by the duplicate location&lt;br /&gt;log_file_name_convert='E:\oracle\product\10.2.0\oradata\TARG\ONLINELOG', 'E:\oracle\product\10.2.0\oradata\DUPL\ONLINELOG', 'F:\oracle\flash_recovery_area\TARG\ONLINELOG','F:\oracle\flash_recovery_area\DUPL\ONLINELOG'&lt;br /&gt;Modify some other parameters for DUPL such as adump, bdump, cdump, udump, and dpdump.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;8. Create following dump directories for the duplicate database.&lt;br /&gt;Create adump, bdump, cdump, udump, dpdump directories.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;9. Create data directories where you want to store new data files.&lt;br /&gt;Create directories for controlfile, datafile and onlinelog.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;10. On Windows start the Oracle Services.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;$oradim –new –sid DUPL –startmode auto&lt;br /&gt;Now go to control panel&gt;administrative tools, open services and see whether oracle services for DUPL is running.&lt;br /&gt;Change the Oracle DB Server account from local system to a user with administrative account. After the change, stop and start Oracle DB Services.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;11. Startup nomount the Duplicate instance and generate a spfile.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;- On Windows:&lt;br /&gt;&lt;/span&gt;SQL&gt;shutdown immediate&lt;br /&gt;SQL&gt;startup nomount pfile=’&lt;oracle_home&gt;\database\initDUPL.ora’;&lt;br /&gt;SQL&gt; create spfile from pfile=’&lt;oracle_home&gt;\database\initDUPL.ora';&lt;br /&gt;-- Restart the duplicate instance using the newly created SPFILE.&lt;br /&gt;SQL&gt;shutdown immediate;&lt;br /&gt;SQL&gt;startup nomount;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;- On UNIX: &lt;/span&gt;&lt;br /&gt;SQL&gt;shutdown immediate&lt;br /&gt;SQL&gt;startup nomount pfile=’&lt;oracle_home&gt;/dbs/initDUPL.ora’;&lt;br /&gt;SQL&gt; create spfile from pfile=’&lt;oracle_home&gt;/dbs/initDUPL.ora';&lt;br /&gt;-- Restart the duplicate instance using the newly created SPFILE.&lt;br /&gt;SQL&gt;shutdown immediate;&lt;br /&gt;SQL&gt;startup nomount;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; before we use rman duplicate command, dupl db must be in nomount status, not mount&lt;br /&gt;status. because rman will create control files from backup.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;12. Mount or open the target database TARG if it is not already mount or open.&lt;br /&gt;&lt;br /&gt;13. Ensure you have the necessary backups and archived redo logs.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;$rman target &lt;user&gt;/&lt;password&gt;@TARG&lt;br /&gt;RMAN&gt;list backup summary&lt;br /&gt;RMAN&gt;exit&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;14. Restore/Duplicate the database using RMAN DUPLICATE command.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;1) Login to the target and duplicate database&lt;br /&gt;$rman target &lt;user&gt;/&lt;password&gt;@TARG auxiliary &lt;user&gt;/&lt;password&gt;@DUPL&lt;br /&gt;&lt;br /&gt;2) Run the RMAN duplicate command:&lt;br /&gt;RMAN&gt;run {&lt;br /&gt;allocate auxiliary channel ch1 type disk;&lt;br /&gt;duplicate target database to DUPL;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;15. Create DB console for the duplicate database.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;- On Windows&lt;br /&gt;&lt;/span&gt;$cd %ORACLE_HOME%\bin&lt;br /&gt;$emca –config dbcontrol db&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;- On UNIX&lt;/span&gt;&lt;br /&gt;$cd $ORACLE_HOME/bin&lt;br /&gt;$emca –config dbcontrol db&lt;br /&gt;Enter SID, password for users sys, sysman, dbsnmp when prompted.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;16. Modify settings in Application and the DUPL database to reflect the changes if necessary.&lt;br /&gt;&lt;br /&gt;17. Test the duplicate database through Oracle tools and through the front-end application.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Reference:&lt;br /&gt;&lt;/strong&gt;Oracle® Database Backup and Recovery Advanced User’s Guide,&lt;br /&gt;10g Release 2 (10.2), B14191-02&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-34261334386490101?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/34261334386490101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=34261334386490101' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/34261334386490101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/34261334386490101'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/03/how-to-create-duplicate-database-using.html' title='How to create duplicate database using RMAN'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-4278001931347132996</id><published>2009-03-08T20:07:00.000-07:00</published><updated>2009-03-08T20:24:49.375-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Basic DBA Questions'/><title type='text'>What is Parsing</title><content type='html'>Two type of Parsing: Hard Parse and Soft Parse&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Hard Parse:&lt;/strong&gt;&lt;br /&gt;If a session executes SQL statement that does not exist in the shared pool. A hard parse is expensive in both terms of CPU used and number of shared pool latch and library cache latch, it needs to release.&lt;br /&gt;&lt;br /&gt;Oracle SQL is parsed before execution and hard parse includes these steps:&lt;br /&gt;&lt;br /&gt;1. Load into Shared Pool: The sql source code is loaded into RAM for parsing.&lt;br /&gt;&lt;br /&gt;2. Syntax Parse: To check any missspelled sql keywards&lt;br /&gt;&lt;br /&gt;3. Semantic Parse: Oracle verifies all tables and column names for the dictionary and checks privileges to access the data&lt;br /&gt;&lt;br /&gt;4. Optimization: Creates an execution plan based on your schema statistics.&lt;br /&gt;&lt;br /&gt;5. Create executable: Oracle build executable files with negative files calls to service sql query.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Soft Parse:&lt;/strong&gt;&lt;br /&gt;If a session executes SQL statements, that exists in the Shared Pool (i.e : does not require a shared pool reload again).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-4278001931347132996?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/4278001931347132996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=4278001931347132996' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/4278001931347132996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/4278001931347132996'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/03/what-is-parsing.html' title='What is Parsing'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-3287848951691637820</id><published>2009-03-04T09:48:00.000-08:00</published><updated>2009-03-08T20:04:33.389-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle 10g Specific'/><title type='text'>Upgrade oracle patch  from 10.2.0.1 to 10.2.0.4</title><content type='html'>1. Patch Set Overview&lt;br /&gt;&lt;br /&gt;Patch set release 10.2.0.4. Before installing this patch set you must be need 10.2.0.1 version.&lt;br /&gt;&lt;br /&gt;2. Requirements&lt;br /&gt;&lt;br /&gt;Oracle DB : Oracle 10.2.0.1 (later)&lt;br /&gt;Operating System: Windows&lt;br /&gt;&lt;br /&gt;3. Pre - Installation Tasks&lt;br /&gt;&lt;br /&gt;1. Identify prior installation&lt;br /&gt;Before installing this patch you must verify oracle version 10.2.0.1 (or later version)&lt;br /&gt;sql&gt; select * from v$version;&lt;br /&gt;BANNER----------------------------------------------------------------&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod&lt;br /&gt;PL/SQL Release 10.2.0.1.0 - Production&lt;br /&gt;CORE 10.2.0.1.0 Production&lt;br /&gt;TNS for 32-bit Windows: Version 10.2.0.1.0 - Production&lt;br /&gt;NLSRTL Version 10.2.0.1.0 - Production&lt;br /&gt;&lt;br /&gt;2. Download Patch set&lt;br /&gt;Download &lt;a href="https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=6810189&amp;amp;release=80102040&amp;amp;plat_lang=912P&amp;amp;patch_num_id=939957&amp;amp;email=sam.roy%40toshiba-teg.com&amp;amp;userid=ml-roysam&amp;amp;"&gt;6810189&lt;/a&gt; patch set installation archive to a directory that is not the Oracle home directory or under the Oracle home directory.&lt;br /&gt;Note: required metalink userid/pwd to download patch&lt;br /&gt;&lt;br /&gt;3. Shutdown oracle database.&lt;br /&gt;C:\&gt;set oracle_sid= TEST&lt;br /&gt;&lt;br /&gt;C:\&gt;sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on Tue Nov 13 10:49:26 2007 Copyright (c) 1982, 2002, Oracle Corporation.&lt;br /&gt;All rights reserved.&lt;br /&gt;&lt;br /&gt;SQL&gt; connect &lt;a href="mailto:sys@test"&gt;sys@test&lt;/a&gt; as sysdba&lt;br /&gt;Enter password: xxx&lt;br /&gt;Connected.&lt;br /&gt;&lt;br /&gt;SQL&gt; shutdown immediate&lt;br /&gt;Database closed.&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;&lt;br /&gt;4. Stop all services&lt;br /&gt;C:\&gt;set oracle_sid=TEST&lt;br /&gt;&lt;br /&gt;C:\&gt;net stop OracleDBConsoleTEST&lt;br /&gt;The OracleDBConsoleTEST service is stopping................&lt;br /&gt;The OracleDBConsoleTEST service was stopped successfully.&lt;br /&gt;&lt;br /&gt;C:\&gt;net stop OracleServiceTEST&lt;br /&gt;The OracleServiceTEST service is stopping.&lt;br /&gt;The OracleServiceTEST service was stopped successfully.&lt;br /&gt;&lt;br /&gt;C:\&gt;net stop OracleOraDB10g_Home1iSQL*Plus..&lt;br /&gt;The OracleOraDb10g_home1iSQL*Plus service was stopped successfully.&lt;br /&gt;&lt;br /&gt;C:\&gt;net stop OracleOraDB10g_Home1TNSListener&lt;br /&gt;The OracleOraDb10g_home1TNSListener service is stopping.&lt;br /&gt;The OracleOraDb10g_home1TNSListener service was stopped successfully.&lt;br /&gt;&lt;br /&gt;4. Backup your database.&lt;br /&gt;Oracle recommends that you create a backup of the Oracle 10g installation before you install the patch set.&lt;br /&gt;&lt;br /&gt;5. Check Tablespace Sizes and Set Parameter Values&lt;br /&gt;&lt;br /&gt;8. Upgrade the Database&lt;br /&gt;&lt;br /&gt;After you install the patch set, you must perform the following steps on every database associated with the upgraded Oracle home:&lt;br /&gt;&lt;br /&gt;1. Start all services&lt;br /&gt;2. Connect sys user&lt;br /&gt;C:\&gt; sqlplus /NOLOG&lt;br /&gt;SQL&gt; CONNECT SYS/SYS_password AS SYSDBA&lt;br /&gt;&lt;br /&gt;3. Enter the following SQL*Plus commands:&lt;br /&gt;&lt;br /&gt;SQL&gt; STARTUP UPGRADE&lt;br /&gt;SQL&gt; SPOOL patch.log&lt;br /&gt;SQL&gt; @ORACLE_BASE\ORACLE_HOME\rdbms\admin\catupgrd.sql&lt;br /&gt;SQL&gt; SPOOL OFF&lt;br /&gt;&lt;br /&gt;Review the patch.log file for errors and inspect the list of components that is displayed at the end of catupgrd.sql script.&lt;br /&gt;&lt;br /&gt;This list provides the version and status of each SERVER component in the database. If necessary, rerun the catupgrd.sql script after correcting any problems.&lt;br /&gt;&lt;br /&gt;4. Shutdown and Restart the database:&lt;br /&gt;&lt;br /&gt;5. Compile Invalid Objects&lt;br /&gt;Run the utlrp.sql script to recompile all invalid PL/SQL packages now instead of when the packages are accessed for the first time.&lt;br /&gt;This step is optional but recommended.&lt;br /&gt;SQL&gt; @ORACLE_BASE\ORACLE_HOME\rdbms\admin\utlrp.sql&lt;br /&gt;&lt;br /&gt;SQL&gt; select * from v$version;&lt;br /&gt;BANNER ----------------------------------------------------------------&lt;br /&gt;Oracle Database 10g Release 10.2.0.4.0 - Production&lt;br /&gt;PL/SQL Release 10.2.0.4.0 - Production&lt;br /&gt;CORE 10.2.0.4.0 Production&lt;br /&gt;TNS for 32-bit Windows: Version 10.2.0.4.0 - Production&lt;br /&gt;NLSRTL Version 10.2.0.4.0 - Production&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3287848951691637820?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3287848951691637820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3287848951691637820' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3287848951691637820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3287848951691637820'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/03/upgrade-oracle-patch-from-10201-to.html' title='Upgrade oracle patch  from 10.2.0.1 to 10.2.0.4'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-6409637313318958215</id><published>2009-03-04T09:26:00.000-08:00</published><updated>2009-03-04T09:48:44.090-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Senior Oracle DBA Questions'/><title type='text'>What is Active Session History (ASH)</title><content type='html'>&lt;span style="font-size:85%;"&gt;Oracle 10gr2 Introduce new option for capture performance problem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a name="KonaLink2"&gt;&lt;/a&gt;&lt;a name="KonaLink3"&gt;&lt;/a&gt;&lt;a name="KonaLink4"&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;What is ASH ?&lt;/strong&gt;&lt;br /&gt;Whenever you want to know information about blocker and waiter identifiers and their associated transaction IDs and SQL.&lt;br /&gt;About V$ACTIVE_SESSION_HISTORY&lt;br /&gt;&lt;br /&gt;1. The V$ACTIVE_SESSION_HISTORY view provides sampled session activity in the instance.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt; 2. Active sessions are sampled every second and are stored in a circular buffer in SGA.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;3. Any session that is connected to the database and is waiting for an event that does not belong to the Idle wait class is considered as an active session.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;4. This includes any session that was on the CPU at the time of sampling.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;5. Each session sample is a set of rows and the V$ACTIVE_SESSION_HISTORY view returns one row for each active session per sample, returning the latest session sample rows first. Because the active session samples are stored in a circular buffer in SGA, the greater the system activity, the smaller the number of seconds of session activity that can be stored in the circular buffer. This means that the duration for which a session sample appears in the V$ view, or the number of seconds of session activity that is displayed in the V$ view, is completely dependent on the database activity.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;6. Using the Active Session History enables you to examine and perform detailed analysis on both current data in the V$ACTIVE_SESSION_HISTORY view 7. Historical data in the DBA_HIST_ACTIVE_SESS_HISTORY view, SQL identifier of SQL statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What information provide ASH view ?&lt;/strong&gt;&lt;br /&gt;1. Object number, file number, and block number&lt;br /&gt;2. Wait event identifier and parameters&lt;br /&gt;3. Session identifier and session serial number&lt;br /&gt;4. Module and action name&lt;br /&gt;5. Client identifier of the session&lt;br /&gt;6. Service hash identifier&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to generate ASH report ?&lt;/strong&gt;&lt;br /&gt;It is New feature of 10GR2(10.2.0.1.0)For report creation we have to use ASHRPT.SQL script.&lt;br /&gt;&lt;br /&gt;Located: In &lt;strong&gt;$ORACLE_HOME/rdbms/admin directoryHow to run ASHRPT.SQL&lt;/strong&gt; script&lt;br /&gt;&lt;br /&gt;To generate a text report of ASH information, run the ashrpt.sql script at the SQL prompt:&lt;br /&gt;&lt;strong&gt;@$ORACLE_HOME/rdbms/admin/ashrpt.sql&lt;/strong&gt;&lt;br /&gt;First, you need to specify whether you want an HTML or a text report.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Enter value for report_type: text&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Specify the time frame to collect ASH information by first specifying the begin time in minutes prior to the system date.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Enter value for begin_time: -10&lt;/strong&gt;&lt;br /&gt;Note: here you have to just put number in minutes eg: 10 for 10 minutesNext, enter the duration in minutes that the report for which you want to capture ASH information from the begin time. The default duration of system date minus begin time is accepted in the following example:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Enter value for duration:&lt;/strong&gt;&lt;br /&gt;Note: left blank for default value. Default value is SYSDATE&lt;br /&gt;&lt;br /&gt;The report in this example will gather ASH information beginning from 10 minutes before the current time and ending at the current time. Next, accept the default report name or enter a report name.&lt;br /&gt;The default name is accepted in the following example:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Enter value for report_name:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Using the report name ashrpt_1_0310_0131.txt&lt;/strong&gt;&lt;br /&gt;Note: Left it blank for default value.The session history report is generated&lt;br /&gt;&lt;/span&gt;&lt;a name="outer-wrapper"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Further details, please check metalink note: 243132.1&lt;br /&gt;&lt;br /&gt;Reference: http://dbataj.blogspot.com/2007/10/active-session-history-ash.html&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-6409637313318958215?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/6409637313318958215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=6409637313318958215' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6409637313318958215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6409637313318958215'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/03/what-is-active-session-history-ash.html' title='What is Active Session History (ASH)'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-5972195642172427285</id><published>2009-02-26T23:50:00.000-08:00</published><updated>2009-02-26T23:50:00.429-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Uncategorised'/><title type='text'>Part-3</title><content type='html'>&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=25"&gt;When a query is sent to the database and an index is not being used, what type of execution is taking place?&lt;/a&gt; -&lt;br /&gt;Full Table Scan(FTS)&lt;a href="http://www.dbapool.com/interviewq.php?q=24"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=21"&gt;How do you measure table fragmentation?&lt;/a&gt; -&lt;br /&gt;To find the table level fragmentation:The first thing we have to do is, we have to analyze the table by using ANALYZE TABLE&lt;tname&gt; COMPUTE STATISTICS; After that we have to check thetable name called dba_tables column called chain_cnt if the value of chain_cnt&gt;0 the table is fragmented.keep in mind that we came to know this only after analyzing the particular table by using ANALYZE.. cmd. before go to the analyzing we check when the corresponding table has analyzed by the table dba_tables column is last_analyzed.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=20"&gt;Difference between lock and latches?&lt;/a&gt; -&lt;br /&gt;locks are used to protect the data or resourses from the simulteneous use of them by multiple sessions which might set them in inconsistant state... Locks are external mechanism, means user can also set locks on objects by using various oracle statementsWhile latches are for the same purpose but &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink1" onmouseover="adlinkMouseOver(event,this,1);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,1);" onmouseout="adlinkMouseOut(event,this,1);" href="http://dbapool.com/interviewq.php?q=20#" target="_top"&gt;works&lt;/a&gt; at internal level. Latches are used to Protect and control access to internal data structres like various SGA buffers.They are handled and maintained by oracle and we can't access or set it.. this is the main difference&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=16"&gt;why do we switch from pfile to spfile and when do we use spfile&lt;/a&gt; -&lt;br /&gt;We switch from pfile to spfile when we want to change some parameters in init.ora dynamically (ie. when the database is up and running ) .In case of pfile if we change the value of some parameters while the db is running , it will take effect on next time the db starts .&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=15"&gt;what is checkpoint?&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;At checkpoint the background process CKPT does the following1)signalling the DBWR(Background process) at checkpoints2)Updating the datafile headers with checkpoint information3)Updating controlfiles with checkpoint information.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=14"&gt;Can you use a commit statement within a database trigger?&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;Yes we can, using pragma autonomous_transaction&lt;br /&gt;CREATE OR REPLACE TRIGGER t_trigger&lt;br /&gt;AFTER INSERT ON t1 FOR EACH ROW&lt;br /&gt;DECLAREPRAGMA AUTONOMOUS_TRANSACTION;i PLS_INTEGER;&lt;br /&gt;BEGIN&lt;br /&gt;SELECT COUNT(*)INTO iFROM t1;&lt;br /&gt;INSERT INTO t2VALUES(i);&lt;br /&gt;COMMIT;END;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=13"&gt;What is the difference between TRUNCATE and DELETE?&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;The Delete command will log the data changes in the log file where as the truncate will simply remove the data without it. Hence Data removed by Delete command can be rolled back but not the data removed by TRUNCATE. Truncate is a DDL statement whereas DELETE is a DML statement. &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=9"&gt;What is written in Redo Log Files?&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;redolog gets written by the background process lgwr in the following circumfstances1. at commits2. redo log bufer becomes 1/3 full3. when there is more thana 1Mb of changed records in the redo log bufer4. when a timeout occurs (every 3 seconds)5. before the DBWn writes modified blocks in the databse buffer cache to the data files&lt;a href="http://www.dbapool.com/interviewq.php?q=8"&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=8"&gt;How many maximum Redo Logfiles one can have in a Database?&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;Maximum number of log files a database can accomodate depends on the parameter "MAXLOGMEMBERS" specificed during database creation. &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=7"&gt;Is it possible to disable the parameter while running reports?&lt;/a&gt; -Yes&lt;a href="http://www.dbapool.com/interviewq.php?q=6"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=6"&gt;Where would you look for errors from the database engine?&lt;/a&gt; -In the alert log.&lt;a href="http://www.dbapool.com/interviewq.php?q=5"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=5"&gt;How do you switch from an init.ora file to a spfile?&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;Issue the create spfile from pfile command&lt;a href="http://www.dbapool.com/interviewq.php?q=4"&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=4"&gt;What is a request Sets? How to create a request Set?&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;Request set is a group of requests.It is made to perform the request in a certain sequence.Request se can be created from &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink0" onmouseover="adlinkMouseOver(event,this,0);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,0);" onmouseout="adlinkMouseOut(event,this,0);" href="http://dbapool.com/interviewq.php?q=4#" target="_top"&gt;system&lt;/a&gt; admin responsibility.&lt;a href="http://www.dbapool.com/interviewq.php?q=3"&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=3"&gt;How to register a table or view or synonym from backend?&lt;/a&gt; -&lt;br /&gt;Use AD_DD.Register_Table procedure to register the table.&lt;a href="http://www.dbapool.com/interviewq.php?q=2"&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=2"&gt;Where does the SCN resides (system change number) ?&lt;/a&gt;&lt;br /&gt;It resides in control files, datafile headers, and redo records,alert log file.&lt;a class="kLink" oncontextmenu="return false;" id="KonaLink1" onmouseover="adlinkMouseOver(event,this,1);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,1);" onmouseout="adlinkMouseOut(event,this,1);" href="http://dbapool.com/interviewq.php?q=2#" target="_top"&gt; &lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=1"&gt;What is mutating trigger? How do you avoid mutating trigger?&lt;/a&gt; -&lt;br /&gt;The 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 said to be mutating. &lt;a href="http://www.dbapool.com/interviewq.php?q=0"&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-5972195642172427285?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/5972195642172427285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=5972195642172427285' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5972195642172427285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5972195642172427285'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-3_26.html' title='Part-3'/><author><name>Rita</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-2935838856065298774.post-7005200836967763478</id><published>2009-02-24T23:46:00.000-08:00</published><updated>2009-02-24T23:46:00.401-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Uncategorised'/><title type='text'>Part-2</title><content type='html'>&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=39"&gt;Can anyone tell me the main difference between the Checkpoint and SCN. How does that work in reality&lt;/a&gt; -&lt;a href="http://www.dbapool.com/interviewq.php?q=38"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Checkpoint&lt;/p&gt;&lt;p&gt;Checkpoint in &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink1" onmouseover="adlinkMouseOver(event,this,1);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,1);" onmouseout="adlinkMouseOut(event,this,1);" href="http://dbapool.com/interviewq.php?q=39#" target="_top"&gt;database&lt;/a&gt; is used to reduce the amount of the time for &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink2" onmouseover="adlinkMouseOver(event,this,2);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,2);" onmouseout="adlinkMouseOut(event,this,2);" href="http://dbapool.com/interviewq.php?q=39#" target="_top"&gt;recovery&lt;/a&gt;. It is a background process in oracle(CKPT), which cause DBWR to write all the data blocks that have been modified since the last checkpoint to the datafile.Checkpoint is responsible for-&gt;Signaling DBWn-&gt;Updating datafile headers with checkpoint info. (i.e. SCN)-&gt;Updating Control file with checkpoint info. (i.e. scn)&lt;/p&gt;&lt;p&gt;SCN&lt;/p&gt;&lt;p&gt;SCN is the ever increasing number to determine the age of database.it's &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink3" onmouseover="adlinkMouseOver(event,this,3);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,3);" onmouseout="adlinkMouseOut(event,this,3);" href="http://dbapool.com/interviewq.php?q=39#" target="_top"&gt;System&lt;/a&gt; Change Number / System Commint Number...It's used to determine the consistancy of database..It's stored at various places like control file, data files, redo &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink4" onmouseover="adlinkMouseOver(event,this,4);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,4);" onmouseout="adlinkMouseOut(event,this,4);" href="http://dbapool.com/interviewq.php?q=39#" target="_top"&gt;log files&lt;/a&gt;.If it doesn't match, that means inconsistancy..&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=38"&gt;why do we add online redo group and when do we do it in real time .&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;we add redolog group to give the checkpoint(CKPT) enough time to write the scn on the control and the data file header. this happens wen the redolog group is full and a log switch is occurs. to avoid the logwriter(LGWR) to overwrite the redolog groups before the scn's and the LSN's(log sequence number) are writen on the header of the controlfile and the data file by the CKPT. &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=37"&gt;&lt;/a&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=36"&gt;&lt;/a&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=36"&gt;Compare and contrast TRUNCATE and DELETE for a table. &lt;/a&gt;-&lt;/p&gt;&lt;p&gt;TRUNCATE:will remove the rows permanently from table without deleting the table structure. And will free up the space occupied by the data. Data can't be ROLLBACKDELETEwill remove the data from table but will not release the space occupied by rows. Can be retrieved by ROLLBACK command. &lt;a href="http://www.dbapool.com/interviewq.php?q=35"&gt;&lt;/a&gt;Both are used to remove data from the table.But the difference between their work is:-&gt;Delete is DML statement, While Truncate is DDL statement.-&gt; The changes done by Delete commmand are stored in redo &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink2" onmouseover="adlinkMouseOver(event,this,2);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,2);" onmouseout="adlinkMouseOut(event,this,2);" href="http://dbapool.com/interviewq.php?q=36#" target="_top"&gt;log files&lt;/a&gt;, while those by Truncate, are not logged.-&gt; So, the changes made by Delete command can be rolled back, but the Changes made by Truncate are Permanent...-&gt; Moreover, Because of this nature, Truncate works faster than Delete command&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=33"&gt;why oracle returns the error snapshot too old?&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;with the help of a example we can understand snapshot to old error .suppose scott run's a script where lot's of updation is performed. mean's lot's of undo is generated. and if your undo tablespace is small then it flush out the old values within it.And suppose there is another &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink0" onmouseover="adlinkMouseOver(event,this,0);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,0);" onmouseout="adlinkMouseOut(event,this,0);" href="http://dbapool.com/interviewq.php?q=33#" target="_top"&gt;user&lt;/a&gt; try to see the value that is updated by the scott.in this case because that value is flushed by the scott so if other user is try to see the value oracle &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink1" onmouseover="adlinkMouseOver(event,this,1);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,1);" onmouseout="adlinkMouseOut(event,this,1);" href="http://dbapool.com/interviewq.php?q=33#" target="_top"&gt;server&lt;/a&gt; prompt's a message "SNAPSHOT TO OLD"the solution is:-1. increase the size of undo tablespace2. check your undo retention policy.&lt;a href="http://www.dbapool.com/interviewq.php?q=32"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=32"&gt;what is the use of maxlogfiles parameter?&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;MAXLOGFILES--&gt;This parameter specifis the maximum number of redo &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink0" onmouseover="adlinkMouseOver(event,this,0);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,0);" onmouseout="adlinkMouseOut(event,this,0);" href="http://dbapool.com/interviewq.php?q=32#" target="_top"&gt;log file&lt;/a&gt; groups that can ever be created for the &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink1" onmouseover="adlinkMouseOver(event,this,1);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,1);" onmouseout="adlinkMouseOut(event,this,1);" href="http://dbapool.com/interviewq.php?q=32#" target="_top"&gt;database&lt;/a&gt;. Oracle Database uses this value to determine how much space to allocate in the control file for the names of redo log files. The default, minimum, and maximum values depend on your operating &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink2" onmouseover="adlinkMouseOver(event,this,2);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,2);" onmouseout="adlinkMouseOut(event,this,2);" href="http://dbapool.com/interviewq.php?q=32#" target="_top"&gt;system&lt;/a&gt;.This value must be at least 2.&lt;a href="http://www.dbapool.com/interviewq.php?q=31"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=31"&gt;What is the difference between Hot and Cold backup?&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;Hot backup is done when &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink0" onmouseover="adlinkMouseOver(event,this,0);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,0);" onmouseout="adlinkMouseOut(event,this,0);" href="http://dbapool.com/interviewq.php?q=31#" target="_top"&gt;database&lt;/a&gt; is online while cold backup is done when database is offline. &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=30"&gt;&lt;/a&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=28"&gt;&lt;/a&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=28"&gt;how do we create data dictionary&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;catalog.sql or catproc.sql script create all data dictionary views.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=27"&gt;the use of control file&lt;/a&gt; -&lt;/p&gt;&lt;p&gt;It maintains the consistency and integrity of database physical files. It keeps track of the present state of database structure. It is opened in Mount state.&lt;a href="http://www.dbapool.com/interviewq.php?q=26"&gt;&lt;/a&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=25"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=0"&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7005200836967763478?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7005200836967763478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7005200836967763478' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7005200836967763478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7005200836967763478'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-2_24.html' title='Part-2'/><author><name>Rita</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-2935838856065298774.post-632244814793063568</id><published>2009-02-22T23:44:00.000-08:00</published><updated>2009-02-22T23:46:25.607-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Uncategorised'/><title type='text'>Part-1</title><content type='html'>&lt;a href="http://www.dbapool.com/interviewq.php?q=57"&gt;How we can switch Database Read only to Read/write with out shutdown the database&lt;/a&gt; -&lt;br /&gt;alter database startup readonly (for read only mode)&lt;br /&gt;alter databse startup read/write (without shutting it down)&lt;a href="http://www.dbapool.com/interviewq.php?q=56"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=56"&gt;how can we know that which file we r using in a database SPFILE R PFILE?&lt;/a&gt; -&lt;br /&gt;If your init.ora is in format initSID.ora that means you are using pfile.&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=55"&gt;&lt;/a&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=55"&gt;if ARCn process is not working properly and our database is in archievelog mode, then what will happen to our database? it will run r not? Give reason ?&lt;/a&gt;&lt;br /&gt;-if arc n fails for any reason after transation activity filled all the rodologs ,oracle &lt;a class="kLink" oncontextmenu="return false;" id="KonaLink1" onmouseover="adlinkMouseOver(event,this,1);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,1);" onmouseout="adlinkMouseOut(event,this,1);" href="http://dbapool.com/interviewq.php?q=55#" target="_top"&gt;server&lt;/a&gt; hangs.it is a legal hang becuase when we set the database in arh mode oracle server must not overwrite redo logs unless they are archived.&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=54"&gt;&lt;/a&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=54"&gt;If any of our back-ground process(mandatory) is not working properly then what will happen to our database? Can we use our database?&lt;/a&gt;&lt;br /&gt;-With ORACLE 10g,all six mandatory background process has to run in order to start the database and run it.The instance even will not start,forget about database.This u can check out in alert_SID.&lt;a class="kLink" oncontextmenu="return false;" id="KonaLink1" onmouseover="adlinkMouseOver(event,this,1);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,1);" onmouseout="adlinkMouseOut(event,this,1);" href="http://dbapool.com/interviewq.php?q=54#" target="_top"&gt;log file &lt;/a&gt;at OS level(without starting the database).All mandatory background process have to be up and running in order to have a Up n running DB.&lt;a href="http://www.dbapool.com/interviewq.php?q=53"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=53"&gt;Can we use Non-standard block size in temporary tales?&lt;/a&gt; -no&lt;a href="http://www.dbapool.com/interviewq.php?q=52"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=48"&gt;what is high water mark in oracle&lt;/a&gt; -&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=47"&gt;&lt;/a&gt;The high water mark is divides a segment into used blocks free blocks. Blocks below the high water mark (used blocks) have at least once contained data. This data might have been deleted. Since Oracle knows that blocks beyond the high water mark don't have data, it only reads blocks up to the high water mark in a full table scan. Oracle keeps track of the high water mark for a segment in the segment header. It acts as the boundary between used and unused space. As the amount of data grows due to row inserts and updates, the segment's high water mark grows accordingly. But as row deletes and updates shrink the amount of data in the object, the high water mark is not altered to reflect the segment's new characteristics.&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=46"&gt;&lt;/a&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=46"&gt;when do we use list partitioning on tables. can we use indexes in temp tables&lt;/a&gt; -&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=45"&gt;&lt;/a&gt;by making the table as a partitions internally headers will be created for the table partitions.so that data will be retrieved faster than we use the indexes.ex:if we want 2 retrieve 1,00,000 records of the same table without table partioninng it will take 30 minutes.for this only one header will be used.now divide the table into 4 partitions,than 4 headers will be created and 4,00,000 records will be retrieved in the same 30 mins time.this is the added advantage of table partioning.indexes will be slower than this table partitioning.indexes are helpful if the table contains less number of records only.&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=43"&gt;Why do we need Virtual IP in Oracle 10G RAC?&lt;/a&gt; -&lt;br /&gt;For the internal comunication of all the nodes of RAC.Each nodes have his own vertual IP.&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=42"&gt;&lt;/a&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=42"&gt;How recyclebin works in Oracle 10G? how long an database objects remain in recyclebin?&lt;/a&gt; -&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=41"&gt;&lt;/a&gt;The object in the recycle bin will remain until the space used by it is not reused.Once Oracle wants the space for newer objects or newer rows, it will be reused and we cannot get back the object from recycle bin.&lt;a href="http://www.dbapool.com/interviewq.php?q=40"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=40"&gt;What is the simplest command to create a database&lt;/a&gt; -&lt;br /&gt;create database&lt;br /&gt;&lt;a href="http://www.dbapool.com/interviewq.php?q=0"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-632244814793063568?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/632244814793063568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=632244814793063568' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/632244814793063568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/632244814793063568'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-1.html' title='Part-1'/><author><name>Rita</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-2935838856065298774.post-8591294625716071314</id><published>2009-02-21T01:51:00.000-08:00</published><updated>2009-02-21T01:51:00.253-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Grid control'/><title type='text'>Part-3</title><content type='html'>&lt;span style="color:#cc0000;"&gt;How can I install the Oracle OMA component?&lt;/span&gt;&lt;br /&gt;The OMA – Oracle management Agent connects the OMS to managed targets. We should install the OMA on every managed target host. There are three ways to install the OMA.&lt;br /&gt;1- Using the Oracle Product CDs (Interactively). It is the same is regular Oracle installation. $ /stage/Disk1/runInstaller.&lt;br /&gt;2- Using the batch process (Silent Installation). It is the same as above but in silence no interaction.&lt;br /&gt;$ /stage/Disk1/runInstaller –responseFile ./agent.rsp –silent doDiscovery=True startAgent=TRUE (you can find the sample response file in the $ORALCE_HOME/install directory.&lt;br /&gt;3- Using the OMS process (On Demand). You don’t need the Oracle product CDs. Go to each server and use its browser and type: http://oms-servername:4889/agent_download and then select the OMA. Make sure that the wget utilize is in /usr/local/bin/wget. If not, then make a link for it. For example: $ ln –s /usr/bin/wget /usr/local/bin/wget. You should make a new directory for the OMA before doing anything. Then run root.sh&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the Key Configuration files for the OMA?&lt;/span&gt;&lt;br /&gt;The key configuration files for the OMA are:&lt;br /&gt;1. ./sysman/emd/targets.xml&lt;br /&gt;2. ./sysman/config/emd.properties&lt;br /&gt;3. ./sysman/config/emagentlogging.properties&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is Blackouts?&lt;/span&gt;&lt;br /&gt;We use blackouts to suspend target monitoring, schedule maintenance periods for these targets. This will prevents unnecessary alerts from being sent while a target is down for maintenance.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the differences between Application Server Control and Grid Control?&lt;/span&gt; -&lt;br /&gt;Grid control needs to be installed separately but Application Server control will be installed the same time that you install OracleAS. - Grid has the OMS and the Oracle Application Server control has no OMS. - Grid has may target type but the Oracle Server Control only has OracleAS. - With the Oracle Application Server Control, you can do server configuration but you can not do this with the Grid Control. - Both can do application configuration. - The application server control is Farm/cluster aware but not Grid. - With Grid control you can do Group, Historical Monitoring and Alerts, Application Service Level management, Job system, Configuration management, Mobil access via EM2GO. But you can not do any of the above function by Application Server Control.&lt;br /&gt;&lt;br /&gt; &lt;span style="color:#cc0000;"&gt;How do we access to Grid control and Application Server control?&lt;/span&gt;&lt;br /&gt;- to access to Grid control: http://oms-server:7777/em - to access to Application Server control: &lt;a href="http://application-server:1810/"&gt;http://application-server:1810/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are J2EE and OC4J?&lt;/span&gt;&lt;br /&gt;Think of J2EE as an application and OC4J as an instance. You deploy the J2EE applications to the OC4J instance.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the Oracle configurations Infrastructure Services?&lt;/span&gt; - Identity Management: It provides Internet Directory (OID) and Single Sign-On capabilities. - Central Management: It centrally manages an application server instance with a separately installed Oracle management Agent (OMA). - Oracle Application Server Clusters: It manages multiple instances using one database repository. You can configure a J2EE and Web Cache instance to use a metadata repository.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can I access to the Oracle Application Server Topology?&lt;/span&gt;&lt;br /&gt; http://application-server:1810/emd/console/ias/topology/topologyjsp - or - &lt;a href="http://application-server:1810/emd/console/ias/topology/topologyapplet"&gt;http://application-server:1810/emd/console/ias/topology/topologyapplet&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can I deploy an OC4J Application?&lt;/span&gt;&lt;br /&gt;1- Create an OC4J instance: On the Application Server Control Home page, click create OC4J instance. Then enter instance name, and click Create.&lt;br /&gt;2- Add a data source: Select the create instance. Click the Administration tab; and under Application Defaults, select Data Sources and click Create. Enter the application data source information, and then click Create.&lt;br /&gt;3- Deploy a J2EE application: Click Application, from the created instance. Click Deploy EAR file. Click browse and select the .ear file of the application you want to deploy. Enter an application name and then click Continue.&lt;br /&gt;4- Now, we can monitor the OC4J application from the Application Server control.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is ASLM – Application Service Level Management&lt;/span&gt;?&lt;br /&gt;With ASLM, you manage application availability, monitor application performance, and diagnose application response-time issues.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are beacons?&lt;/span&gt;&lt;br /&gt;Beacons are a function of the Management Agent. It has responsibility of replaying transactions at specified time and measure the performance and response times of the transaction. To create it, click Management system, agents, and select the agent you want to configure as a beacon. Select it from the drop-down and then click Go. Once you give it a name and proxy information, click OK.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How to configure Web Applications for monitoring an application?&lt;/span&gt;&lt;br /&gt;Do the following steps to configure Web application for monitoring.&lt;br /&gt;1- Create the Web application.&lt;br /&gt;2- Create transactions.&lt;br /&gt;3- Create and assign beacons to Web applications.&lt;br /&gt;4- Define availability.&lt;br /&gt;5- Configure end-user response-time monitoring.&lt;br /&gt;6- Configure middle-tier performance monitoring.&lt;br /&gt;Basic commands an Oracle Database Administrator must know (using default port). Use the http://:7777 URL with your Web browser to connect to HTTP Server. Use the ias_admin username to connect to the OMS. Use the iSQL*Plus tool if was installed by using the http://:5560/isqlpus URL to connect iSQL*Plus. Make sure that you have started the iSQL*Plus on the database server (# isqlplusctl start). Reference: &lt;a href="http://www.iselfschooling.com/FREE_Oracle_Training/04_Advanced/02_Grid/lesson01.html"&gt;http://www.iselfschooling.com/FREE_Oracle_Training/04_Advanced/02_Grid/lesson01.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-8591294625716071314?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/8591294625716071314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=8591294625716071314' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8591294625716071314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8591294625716071314'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-3.html' title='Part-3'/><author><name>Rita</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-2935838856065298774.post-5914668045546097598</id><published>2009-02-19T01:48:00.000-08:00</published><updated>2009-08-16T20:41:48.428-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Grid control'/><title type='text'>Part-2</title><content type='html'>&lt;p&gt;&lt;span style="color:#cc0000;"&gt;How to start and stop the OMA?&lt;/span&gt; &lt;/p&gt;&lt;p&gt;- to start: # $AGENT_HOME/bin/emctl start agent &lt;/p&gt;&lt;p&gt;- to stop: # $AGENT_HOME/bin/emctl stop agent &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is opmnctl?&lt;/span&gt; &lt;/p&gt;&lt;p&gt;It is command line utility to control the OMS. It stands for Oracle Process Monitor and Notification control. &lt;/p&gt;&lt;p&gt;The following are some of examples of how to manipulate the OMS components. &lt;/p&gt;&lt;p&gt;# opmnctl startall -- starts all components of OMS. &lt;/p&gt;&lt;p&gt;# opmnctl stopall -- stops all components of OMS. &lt;/p&gt;&lt;p&gt;# opmnctl startproc ias-component=OC4J -- starts OC4J component &lt;/p&gt;&lt;p&gt;# opmnctl stopproc ias-component=OC4J -- stops OC4J component &lt;/p&gt;&lt;p&gt;# opmnctl status – l – show OMS status components. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is emclt?&lt;/span&gt; &lt;/p&gt;&lt;p&gt;It is the Enterprise Manger Control Utility (emctl). Like opmnctl, it starts and stops the OMS components. Notice that emctl does not start or stop OracleAS Web Cache. If OracleAS Web Cache is on then you can access to OEM by: http://oms-server:7777/em and with no OracleAS Web Cache, you need to directly connect to the OHS: &lt;a href="http://oms-server:7778/em"&gt;http://oms-server:7778/em&lt;/a&gt;. &lt;/p&gt;&lt;p&gt;The following are some of examples of how to manipulate the OMS components using emctl. &lt;/p&gt;&lt;p&gt;# emctl start oms -- start oms components except web cache.&lt;/p&gt;&lt;p&gt;# emctl stop oms -- stop … &lt;/p&gt;&lt;p&gt;# emctl status oms -- show the status of oms components &lt;/p&gt;&lt;p&gt;# emctl start iasconsole – starts an individual component # emctl stop iasconsole -- stop and … &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is EM2GO?&lt;/span&gt; &lt;/p&gt;&lt;p&gt;It is a wireless device for Oracle database administrators to perform their task remotely. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;How can I customize my Grid Control posts by using a static ports file?&lt;/span&gt; &lt;/p&gt;&lt;p&gt;You can use the staticports.ini file to customize your ports when you install OEM. $ /stage/disk1/runInstaller oracle.sysman.top.em_seed:s_staticPorts=/../staticports.ini Port Numbers and Ranges (Grouped by Component) &lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;a href="http://dbareview.blogspot.com/2009/02/part-3.html"&gt;Part 3: Grid Control&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-5914668045546097598?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/5914668045546097598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=5914668045546097598' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5914668045546097598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5914668045546097598'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-2.html' title='Part-2'/><author><name>Rita</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-2935838856065298774.post-4974736282799337659</id><published>2009-02-10T17:00:00.000-08:00</published><updated>2009-02-19T09:02:49.345-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Guard'/><title type='text'>Data Guard Related Questions</title><content type='html'>&lt;span style="color:#ff0000;"&gt;1. What is the difference between LGWR SYNC and ASYNC in Oracle DataGuard configuraton?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;LGWR is an attribute of the LOG_ARCHIVE_DEST_n parameter which is used to specify the network transmission mode.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Specifying the SYNC attribute (which is the default), tells the LGWR process to synchronously archive to the local online redo log files at the same time it transmits redo data to archival destinations.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Specifically, the SYNC atrribute performs all network I/O synchornously in conjunction with each write operation to the online redo log file. Transactions are not committed on the primary database until the redo data necessary to recover the transactions is received by the destination.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The ASYNC attribute perfoms all network I/O asynchronously and control is returned to the executing application or user immediately. When this attribute is specified, the LGWR process archives to the local online redo log file and submits the network I/O request to the network server (LNSn process for that destination, and the LGWR process continues processing the next request without waiting for the network I/O to complete.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;2. What happens if the network between the Primary and Standby [database] is lost with LGWR SYNC and ASYNC?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is dependent upon the database mode you have set. If you have set &lt;em&gt;&lt;strong&gt;Maximum Protection&lt;/strong&gt;&lt;/em&gt;, you have chosen a configuration that guarantees that no data loss will occur. You have set this up by specifying the LWGR, SYNC, and AFFIRM attributes of the LOG_ARCHIVE_DEST_n parameter for at least one standby database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This mode provides the highest level of data protection possible and to achieve this the redo data needed to reocver each transaction must be written to both the local online redo log and the standby redo log on at least one standby database before the transaction commits. To ensure data loss cannot occur, the primary database shuts down if a fault (such as the network going down) prevents it from writing its redo stream to at least one remote standby redo log.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you have set the &lt;strong&gt;&lt;em&gt;Maximum Availability mode&lt;/em&gt;&lt;/strong&gt;, you have chosen a configuration that provides the highest level of data protection that is possible without compromising the availablity of the primary database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Like the maximum protection mode, a transaction will not commit until the redo needed to recover that transaction is written to the local online redo log and to at least one remote standby redo log. Unlike maximum protection mode, the primary database does not shut down if a fault prevents it from writing its redo stream to a remote standby redo log. Instead, the primary database operates in maximum performance mode until the fault is corrected and all gaps in redo log files are resolved. When all gaps are resolved, the primary database automatically resumes operating in maximum availabitly mode. This guarantees that no data loss will occur if the primary database fails, but only if a second fault does not complete set of redo data being sent from the primary database to at least one standby database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you have set the &lt;em&gt;&lt;strong&gt;Maximum Performance mode&lt;/strong&gt;&lt;/em&gt; (the default), you have chosen a mode that provides the highest level of data protection that is possible without affecting the performance of the primary database. This is accomplished by allowing a transaction to commit as soon as the redo data needed to recover the transaction is written to the local online redo log. The primary database's redo data stream is also written to at least one standby database, bu that the redo stream is written asynchronously with respect to the commitment of the transactions that create the redo data.&lt;br /&gt;The maximum performance mode enables you to either set the LGWR and AYSNC attributes, or set the ARCH attribute on the LOG_ARCHIVE_DEST_n parameter for the standby database destination. If the primary database fails, you can reduce the amount of data that is not received on the standby destination by setting the LGWR and ASYNC attributes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;2. What happens if the standby database is shutdown with LGWR SYNC and ASYNC?&lt;br /&gt;&lt;/span&gt;This goes back to what mode you have chosen. See the answer to question 2 for the details&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;3. If LGWR SYNC or ASYNC is deployed, what process(es) bring(s) the standby database back into sync with the primary [database] if the network is lost and is then restored? How does it do it?&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Again, this is dependent upon the mode you have chosen for you database. The LGWR process (and possibly the LNSn process if you have multiple standby databases) is responsible for closing the gap.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#cc0000;"&gt;When the network to the standby is lost with SYNC or ASYNC, where is the information queued and how is it retransmitted once the network has been re-established?&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This implies that your database has been set to either &lt;em&gt;maximum availability or maximum performance mode. &lt;/em&gt;You cannot use the ASYNC attribute with &lt;em&gt;maximum protection mode&lt;/em&gt;. The information is queued in the local online redo log and the LGWR (and the LNSn) process will transmit the data to the standby database's online redo log file to close the gap once the network connectivity has been re-established.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Gap recovery is handled through the polling mechanism. For physical and logical standby databases, Oracle Change Data Capture, and Oracle Streams, Data Guard performs gap detection and resolution by automatically retrieving missing archived redo log files from the primary database. No extra configuration settings are required to poll the standby database(s) to detect any gaps or to resolve the gaps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The important consideration here is that automatic &lt;em&gt;gap recovery&lt;/em&gt; is contingent upon the availability of the primary database. If the &lt;em&gt;primary database&lt;/em&gt; is not available and you have a configuration with multiple physical standby databases, you can set up additional initialization parameters so that the Redo Apply can resolve archive gaps from another standby database.&lt;br /&gt;It is possible to manually determine if a gap exists and to resolve those archive gaps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To manually determine if a gap exists, query the V$ARCHIVE_GAP view on your physical standby database. If a gap is found, you will then need to locate the archived log files on your primary database, copy them to your standby database, and register them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-4974736282799337659?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/4974736282799337659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=4974736282799337659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/4974736282799337659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/4974736282799337659'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/data-guard-related-questions.html' title='Data Guard Related Questions'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-2549070987135931418</id><published>2009-02-10T01:51:00.000-08:00</published><updated>2009-02-10T01:51:00.315-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-25</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What is a record group? -&lt;/span&gt;&lt;br /&gt;A record group is an internal Oracle Forms that structure that has a column/row framework similar to a database table. However, unlike database tables, record groups are separate objects that belong to the form module which they are defined.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How many number of columns a record group can have? -&lt;/span&gt;&lt;br /&gt;A record group can have an unlimited number of columns of type CHAR, LONG, NUMBER, or DATE provided that the total number of column does not exceed 64K.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a Query Record Group? -&lt;/span&gt;&lt;br /&gt;A query record group is a record group that has an associated SELECT statement. The columns in a query record group derive their default names, data types, had lengths from the database columns referenced in the SELECT statement. The records in query record group are the rows retrieved by the query associated with that record group.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a property clause? -&lt;/span&gt;&lt;br /&gt;A property clause is a named object that contains a list of properties and their settings. Once you create a property clause you can base other object on it. An object based on a property can inherit the setting of any property in the clause that makes sense for that object.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a physical page? What is a logical page? -&lt;/span&gt;&lt;br /&gt;A physical page is a size of a page. That is output by the printer. The logical page is the size of one page of the actual report as seen in the Previewer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What does the term panel refer to with regarda to pages? -&lt;/span&gt;&lt;br /&gt;A panel is the number of physical pages needed to print one logical page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a master detail relationship? -&lt;/span&gt;&lt;br /&gt;A master detail relationship is an association between two base table blocks- a master block and a detail block. The relationship between the blocks reflects a primary key to foreign key relationship between the tables on which the blocks are based.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a library? -&lt;/span&gt;&lt;br /&gt;A library is a collection of subprograms including user named procedures, functions and packages.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can a group in a cross products be visually distinguished from a group that does not form a cross product? -&lt;/span&gt;&lt;br /&gt;A group that forms part of a cross product will have a thicker border.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the frame &amp;amp; repeating frame? -&lt;/span&gt;&lt;br /&gt;A frame is a holder for a group of fields. A repeating frame is used to display a set of records when the number of records that are to displayed is not known before.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a combo box? -&lt;/span&gt;&lt;br /&gt;A combo box style list item combines the features found in list and text item. Unlike the pop list or the text list style list items, the combo box style list item will both display fixed values and accept one operator entered value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are three panes that appear in the run time pl/SQL interpreter?&lt;/span&gt; - Source pane, interpreter pane, navigator pane.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the two ways by which data can be generated for a parameters list of values?&lt;/span&gt; -&lt;br /&gt;Using static values, writing select statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the various methods of performing a calculation in a report? -&lt;/span&gt;&lt;br /&gt;Perform the calculation in the SQL statements itself, use a calculated / summary column in the data model.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the default extensions of the files created by menu module?&lt;/span&gt; - .mmb, .mmx&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the default extensions of the files created by forms modules?&lt;/span&gt; -.fmb - form module binary .fmx - form module executable&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;It is possible to use raw devices as data files and what is the advantages over file system files? -&lt;/span&gt; Yes. The advantages over file system files. I/O will be improved because Oracle is bypassing the kernel when writing to disk. Disk Corruption will decrease.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are disadvantages of having raw devices? -&lt;/span&gt;&lt;br /&gt;We should depend on export/import utility for backup/recovery (fully reliable) The tar command cannot be used for physical file backup, instead we can use dd command which is less flexible and has limited recoveries.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the significance of having storage clause? - &lt;/span&gt;&lt;br /&gt;We can plan the storage for a table as how much initial extents are required, how much can be extended next, how much % should leave free for managing row updations etc.,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the use of INCTYPE option in EXP command? -&lt;/span&gt;&lt;br /&gt;Type export should be performed COMPLETE, CUMULATIVE, INCREMENTAL. List the sequence of events when a large transaction that exceeds beyond its optimal value when an entry wraps and causes the rollback segment to expand into a notion Completes. e. will be written. What is the use of FILE option in IMP command? -The name of the file from which import should be performed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a Shared SQL pool? - &lt;/span&gt;&lt;br /&gt;The data dictionary cache is stored in an area in SGA called the Shared SQL Pool. This will allow sharing of parsed SQL statements among concurrent users.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is hot backup and how it can be taken? - &lt;/span&gt;&lt;br /&gt;Taking backup of archive log files when database is open. For this the ARCHIVELOG mode should be enabled. The following files need to be backed up. All data files. All Archive log, redo log files. All control files.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can we organize the tablespaces in Oracle database to have maximum performance? &lt;/span&gt;SYSTEM - Data dictionary tables. DATA - Standard operational tables. DATA2- Static tables used for standard operations INDEXES - Indexes for Standard operational tables. INDEXES1 - Indexes of static tables used for standard operations. TOOLS - Tools table. TOOLS1 - Indexes for tools table. RBS - Standard Operations Rollback Segments, RBS1,RBS2 - Additional/Special Rollback segments. TEMP - Temporary purpose tablespace TEMP_USER - Temporary tablespace for users. USERS - User tablespace.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How to implement the multiple control files for an existing database? &lt;/span&gt;&lt;br /&gt;Shutdown the database Copy one of the existing control file to new location Edit Config ora file by adding new control filename Restart the database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is advantage of having disk shadowing/ Mirroring? - &lt;/span&gt;&lt;br /&gt;Shadow set of disks save as a backup in the event of disk failure. In most Operating System if any disk failure occurs it automatically switches over to a working disk. Improved performance because most OS support volume shadowing can direct file I/O request to use the shadow set of files instead of the main set of files. This reduces I/O load on the main set of disks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How will you force database to use particular rollback segment?&lt;/span&gt; -SET TRANSACTION USE ROLLBACK S4&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2549070987135931418?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2549070987135931418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2549070987135931418' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2549070987135931418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2549070987135931418'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-25.html' title='Part-25'/><author><name>Rita</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-2935838856065298774.post-7333037340821735505</id><published>2009-02-10T01:48:00.000-08:00</published><updated>2009-02-10T01:48:00.993-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-24</title><content type='html'>&lt;span style="color:#cc0000;"&gt;Why is it preferable to create a fewer no. of queries in the data model? - &lt;/span&gt;&lt;br /&gt;Because for each query, report has to open a separate cursor and has to rebind, execute and fetch data.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Where is the external query executed at the client or the server? -&lt;/span&gt;&lt;br /&gt;At the server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Where is a procedure return in an external pl/SQL library executed at the client or at the server? -&lt;/span&gt; At the client.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is coordination Event? -&lt;/span&gt;&lt;br /&gt;Any event that makes a different record in the master block the current record is a coordination causing event.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the difference between OLE Server &amp;amp; OLE Container? -&lt;/span&gt;&lt;br /&gt;An Ole server application creates ole Objects that are embedded or linked in ole Containers ex. Ole servers are ms_word &amp;amp; ms_excel. OLE containers provide a place to store, display and manipulate objects that are created by ole server applications. Ex. oracle forms is an example of an ole Container.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is an object group? -&lt;/span&gt;&lt;br /&gt;An object group is a container for a group of objects; you define an object group when you want to package related objects, so that you copy or reference them in other modules.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is an LOV? -&lt;/span&gt;&lt;br /&gt;An LOV is a scrollable popup window that provides the operator with either a single or multi column selection list.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;At what point of report execution is the before Report trigger fired? - &lt;/span&gt;&lt;br /&gt;After the query is executed but before the report is executed and the records are displayed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the built -ins used for Modifying a groups structure? -&lt;/span&gt; ADD-GROUP_COLUMN (function) ADD_GROUP_ROW (procedure) DELETE_GROUP_ROW(procedure)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is an user exit used for?&lt;/span&gt; -&lt;br /&gt;A way in which to pass control (and possibly arguments ) form Oracle report to another Oracle products of 3 GL and then return control ( and ) back to Oracle reports.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the User-Named Editor? -&lt;/span&gt;&lt;br /&gt;A user named editor has the same text editing functionality as the default editor, but, because it is a named object, you can specify editor attributes such as windows display size, position, and title.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the Built-ins to display the user-named editor? -&lt;/span&gt;&lt;br /&gt;A user named editor can be displayed programmatically with the built in procedure SHOW-EDITOR, EDIT_TETITEM independent of any particular text item.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a Static Record Group? - &lt;/span&gt;&lt;br /&gt;A static record group is not associated with a query, rather, you define its structure and row values at design time, and they remain fixed at runtime.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7333037340821735505?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7333037340821735505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7333037340821735505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7333037340821735505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7333037340821735505'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-24.html' title='Part-24'/><author><name>Rita</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-2935838856065298774.post-8005785706413082526</id><published>2009-02-09T13:45:00.000-08:00</published><updated>2009-02-09T13:45:00.727-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-23</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What is relation between the window and canvas views? -&lt;/span&gt;&lt;br /&gt;Canvas views are the back ground objects on which you place the interface items (Text items), check boxes, radio groups etc.,) and boilerplate objects (boxes, lines, images etc.,) that operators interact with us they run your form . Each canvas views displayed in a window.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a User_exit? - &lt;/span&gt;&lt;br /&gt;Calls the user exit named in the user_exit_string. Invokes a 3Gl program by name which has been properly linked into your current oracle forms executable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How is it possible to select generate a select set for the query in the query property sheet? -&lt;/span&gt;&lt;br /&gt;By using the tables/columns button and then specifying the table and the column names.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can values be passed between precompiler exits &amp;amp; Oracle call interface?&lt;/span&gt; - By using the statement EXECIAFGET &amp;amp; EXECIAFPUT.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can a square be drawn in the layout editor of the report writer? &lt;/span&gt;- By using the rectangle tool while pressing the (Constraint) key.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can a text file be attached to a report while creating in the report writer? -&lt;/span&gt; By using the link file property in the layout boiler plate property sheet.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can I message to passed to the user from reports? &lt;/span&gt;- By using SRW.MESSAGE function.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How is possible to restrict the user to a list of values while entering values for parameters? &lt;/span&gt;- By setting the Restrict To List property to true in the parameter property sheet.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can a button be used in a report to give a drill down facility?&lt;/span&gt; - By setting the action associated with button to Execute pl/SQL option and using the SRW.Run_report function.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can a cross product be created? &lt;/span&gt;- By selecting the cross products tool and drawing a new group surrounding the base group of the cross products.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are different types of images?&lt;/span&gt; - Boiler plate images, Image Items&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the difference between boiler plat images and image items? - &lt;/span&gt;&lt;br /&gt;Boiler plate Images are static images (Either vector or bit map) that you import from the file system or database to use a graphical elements in your form, such as company logos and maps. Image items are special types of interface controls that store and display either vector or bitmap images. Like other items that store values, image items can be either base table items (items that relate directly to database columns) or control items. The definition of an image item is stored as part of the form module FMB and FMX files, but no image file is actually associated with an image item until the item is populate at run time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is bind reference and how can it be created? - &lt;/span&gt;&lt;br /&gt;Bind reference are used to replace the single value in sql, pl/sql statements a bind reference can be created using a (:) before a column or a parameter name.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the triggers available in the reports? &lt;/span&gt;- Before report, Before form, After form , Between page, After report.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Give the sequence of execution of the various report triggers? -&lt;/span&gt; Before form , After form , Before report, Between page, After report.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Why is a Where clause faster than a group filter or a format trigger?&lt;/span&gt; - Because in a where clause the condition is applied during data retrieval, then after retrieving the data.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-8005785706413082526?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/8005785706413082526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=8005785706413082526' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8005785706413082526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8005785706413082526'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-23.html' title='Part-23'/><author><name>Rita</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-2935838856065298774.post-1994256183669861841</id><published>2009-02-09T06:41:00.000-08:00</published><updated>2009-02-09T06:41:01.326-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-22</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What is WHEN-Database-record trigger?&lt;/span&gt; -&lt;br /&gt;Fires when oracle forms first marks a record as an insert or an update. The trigger fires as soon as oracle forms determines through validation that the record should be processed by the next post or commit as an insert or update. Generally occurs only when the operators modifies the first item in the record, and after the operator attempts to navigate out of the item.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a difference between pre-select and pre-query? -&lt;/span&gt;&lt;br /&gt;Fires during the execute query and count query processing after oracle forms constructs the select statement to be issued, but before the statement is actually issued. The pre-query trigger fires just before oracle forms issues the select statement to the database after the operator as define the example records by entering the query criteria in enter query mode. Pre-query trigger fires before pre-select trigger.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are built-ins associated with timers? -&lt;/span&gt;&lt;br /&gt;find_timer ,create_timer, delete_timer&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the built-ins used for finding Object ID function? -&lt;/span&gt;&lt;br /&gt;FIND_GROUP(function) FIND_COLUMN(function)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Any attempt to navigate programmatically to disabled form in a call_form stack is allowed? &lt;/span&gt;- False&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use the Add_group_row procedure to add a row to a static record group 1. true or false? - False&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use the add_group_column function to add a column to record group that was created at a design time? - False&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the various sub events a mouse double click event involves? -&lt;/span&gt;&lt;br /&gt;Double clicking the mouse consists of the mouse down, mouse up, mouse click, mouse down &amp;amp; mouse up events.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can a break order be created on a column in an existing group? -&lt;/span&gt; By dragging the column outside the group.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the use of place holder column? -&lt;/span&gt; -&lt;br /&gt;A placeholder column is used to hold calculated values at a specified place rather than allowing is to appear in the actual row where it has to appear.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the use of hidden column? &lt;/span&gt;&lt;br /&gt;A hidden column is used to when a column has to embed into boilerplate text.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the use of break group? -&lt;/span&gt;&lt;br /&gt;A break group is used to display one record for one group ones. While multiple related records in other group can be displayed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is an anchoring object &amp;amp; what is its use?&lt;/span&gt; -&lt;br /&gt;An anchoring object is a print condition object which used to explicitly or implicitly anchor other objects to itself.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the various sub events a mouse double click event involves? -&lt;/span&gt;&lt;br /&gt;Double clicking the mouse consists of the mouse down, mouse up, mouse click, mouse down &amp;amp; mouse up events.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the default parameter that appear at run time in the parameter screen?&lt;/span&gt; - Destype and Desname.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the built-ins used for Creating and deleting groups? &lt;/span&gt;- CREATE-GROUP (function) CREATE_GROUP_FROM_QUERY(function) DELETE_GROUP(procedure)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are different types of canvas views?&lt;/span&gt; -Content canvas views Stacked canvas views Horizontal toolbar vertical toolbar.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different types of Delete details we can establish in Master-Details? &lt;/span&gt;- Cascade Isolate Non-isolate&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-1994256183669861841?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/1994256183669861841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=1994256183669861841' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1994256183669861841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1994256183669861841'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-22.html' title='Part-22'/><author><name>Rita</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-2935838856065298774.post-1329477812792539095</id><published>2009-02-09T01:38:00.000-08:00</published><updated>2009-02-09T01:38:00.982-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-21</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What is a Text_io Package? -&lt;/span&gt;&lt;br /&gt;It allows you to read and write information to a file in the file system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is forms_DDL? -&lt;/span&gt;&lt;br /&gt;Issues dynamic Sql statements at run time, including server side pl/SQl and DDL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How is link tool operation different bet. reports 2 &amp;amp; 2.5? - &lt;/span&gt;&lt;br /&gt;In Reports 2.0 the link tool has to be selected and then two fields to be linked are selected and the link is automatically created. In 2.5 the first field is selected and the link tool is then used to link the first field to the second field.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different styles of activation of ole Objects? - &lt;/span&gt;&lt;br /&gt;In place activation, External activation&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How do you reference a Parameter? -&lt;/span&gt;&lt;br /&gt;In Pl/SQL, You can reference and set the values of form parameters using bind variables syntax. Ex. PARAMETER name = ‘’ or :block.item = PARAMETER Parameter name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the difference between object embedding &amp;amp; linking in Oracle forms? -&lt;/span&gt;&lt;br /&gt;In Oracle forms, Embedded objects become part of the form module, and linked objects are references from a form module to a linked source file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Name of the functions used to get/set canvas properties? -&lt;/span&gt;&lt;br /&gt;Get_view_property, Set_view_property&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the built-ins that are used for setting the LOV properties at runtime? - &lt;/span&gt;get_lov_property set_lov_property&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are built-ins used for Processing rows?&lt;/span&gt; -&lt;br /&gt;GET_GROUP_ROW_COUNT(function) GET_GROUP_SELECTION_COUNT(function) GET_GROUP_SELECTION(function) RESET_GROUP_SELECTION(procedure) SET_GROUP_SELECTION(procedure) UNSET_GROUP_SELECTION(procedure) What are the built-ins used for Getting cell values? - GET_GROUP_CHAR_CELL (function) GET_GROUPCELL(function) GET_GROUP_NUMBET_CELL(function)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;A tleast how many set of data must a data model have before a data model can be base on it? -&lt;/span&gt; Four&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;To execute row from being displayed that still use column in the row which property can be used?&lt;/span&gt; - Format trigger.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are different types of modules available in oracle form? -&lt;/span&gt;&lt;br /&gt;Form module - a collection of objects and code routines&lt;br /&gt;&lt;br /&gt;Menu modules - a collection of menus and menu item commands that together make up an application menu library module - a collection of user named procedures, functions and packages that can be called from other modules in the application&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the remove on exit property? -&lt;/span&gt;&lt;br /&gt;For a modeless window, it determines whether oracle forms hides the window automatically when the operators navigates to an item in the another window.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-1329477812792539095?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/1329477812792539095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=1329477812792539095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1329477812792539095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1329477812792539095'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-21.html' title='Part-21'/><author><name>Rita</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-2935838856065298774.post-8914011970601720401</id><published>2009-02-08T23:35:00.000-08:00</published><updated>2009-02-08T23:35:00.522-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-20</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What are the different default triggers created when Master Deletes Property is set to Non-isolated? -&lt;/span&gt;&lt;br /&gt;Master Deletes Property Resulting Triggers: Non-Isolated (the default) On-Check-Delete-Master On-Clear-Details On-Populate-Details&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different default triggers created when Master Deletes Property is set to isolated?&lt;/span&gt; - Master Deletes Property Resulting Triggers: Isolated On-Clear-Details On-Populate-Details&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different default triggers created when Master Deletes Property is set to Cascade?&lt;/span&gt; - Master Deletes Property Resulting Triggers: Cascading On-Clear-Details On-Populate-Details Pre-delete&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the diff. bet. setting up of parameters in reports 2.0 reports2.5?&lt;/span&gt; -&lt;br /&gt;LOVs can be attached to parameters in the reports 2.5 parameter form.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the difference between lov &amp;amp; list item? -&lt;/span&gt;&lt;br /&gt;Lov is a property where as list item is an item. A list item can have only one column, lov can have one or more columns.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the advantage of the library? -&lt;/span&gt;&lt;br /&gt;Libraries provide a convenient means of storing client-side program units and sharing them among multiple applications. Once you create a library, you can attach it to any other form, menu, or library modules. When you can call library program units from triggers menu items commands and user named routine, you write in the modules to which you have attach the library. When a library attaches another library, program units in the first library can reference program units in the attached library. Library support dynamic loading-that is library program units are loaded into an application only when needed. This can significantly reduce the run-time memory requirements of applications.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is lexical reference? - How can it be created? -&lt;/span&gt;&lt;br /&gt;Lexical reference is place_holder for text that can be embedded in a SQL statements. A lexical reference can be created using &amp;amp; before the column or parameter name.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is system.coordination_operation? -&lt;/span&gt;&lt;br /&gt;It represents the coordination causing event that occur on the master block in master-detail relation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is synchronize? -&lt;/span&gt;&lt;br /&gt;It is a terminal screen with the internal state of the form. It updates the screen display to reflect the information that oracle forms has in its internal representation of the screen.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What use of command line parameter cmd file? - &lt;/span&gt;&lt;br /&gt;It is a command line argument that allows you to specify a file that contain a set of arguments for r20run.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-8914011970601720401?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/8914011970601720401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=8914011970601720401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8914011970601720401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8914011970601720401'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-20.html' title='Part-20'/><author><name>Rita</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-2935838856065298774.post-2563785095770703485</id><published>2009-02-08T01:31:00.000-08:00</published><updated>2009-02-08T01:31:00.248-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-19</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What are parameters? -&lt;/span&gt;&lt;br /&gt;Parameters provide a simple mechanism for defining and setting the values of inputs that are required by a form at startup. Form parameters are variables of type char, number, date that you define at design time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the three types of user exits available? -&lt;/span&gt;&lt;br /&gt;Oracle Precompiler exits, Oracle call interface, NonOracle user exits.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How many windows in a form can have console? -&lt;/span&gt;&lt;br /&gt;Only one window in a form can display the console, and you cannot change the console assignment at runtime&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;If the maximum record retrieved property of the query is set to 10 then a summary value will be calculated?&lt;/span&gt; - Only for 10 records.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the two repeating frame always associated with matrix object?&lt;/span&gt; - One down repeating frame below one across repeating frame.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the master-detail triggers?&lt;/span&gt; - On-Check_delete_master, On_clear_details, On_populate_details&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different objects that you cannot copy or reference in object groups?&lt;/span&gt; -&lt;br /&gt;Objects of different modules Another object groups Individual block dependent items Program units.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is an OLE? -&lt;br /&gt;&lt;/span&gt;Object Linking &amp;amp; Embedding provides you with the capability to integrate objects from many Windows applications into a single compound document creating integrated applications enables you to use the features form.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Is it possible to modify an external query in a report which contains it?&lt;/span&gt; - No.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Does a grouping done for objects in the layout editor affect the grouping done in the data model editor?&lt;/span&gt; - No.&lt;br /&gt;&lt;br /&gt;Can a repeating frame be created without a data group as a base? - No&lt;br /&gt;&lt;br /&gt;If a break order is set on a column would it affect columns which are under the column? - No&lt;br /&gt;&lt;br /&gt;Is it possible to set a filter condition in a cross product group in matrix reports? - No&lt;br /&gt;&lt;br /&gt;Do user parameters appear in the data modal editor in 2.5? - No&lt;br /&gt;&lt;br /&gt;Can you pass data parameters to forms? - No&lt;br /&gt;&lt;br /&gt;Is it possible to link two groups inside a cross products after the cross products group has been created? - no&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different modals of windows?&lt;/span&gt; - Modeless windows ,Modal windows&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are modal windows?&lt;/span&gt; -&lt;br /&gt;Modal windows are usually used as dialogs, and have restricted functionality compared to modeless windows. On some platforms for example operators cannot resize, scroll or iconify a modal window.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2563785095770703485?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2563785095770703485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2563785095770703485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2563785095770703485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2563785095770703485'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-19.html' title='Part-19'/><author><name>Rita</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-2935838856065298774.post-5962793111078874073</id><published>2009-02-07T22:45:00.000-08:00</published><updated>2009-02-07T22:45:00.643-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-18</title><content type='html'>&lt;span style="color:#cc0000;"&gt;How do you call other Oracle Products from Oracle Forms? -&lt;br /&gt;&lt;/span&gt;Run_product is a built-in, Used to invoke one of the supported oracle tools products and specifies the name of the document or module to be run. If the called product is unavailable at the time of the call, Oracle Forms returns a message to the operator.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the main diff. bet. Reports 2.0 &amp;amp; Reports 2.5?&lt;/span&gt; - Report 2.5 is object oriented.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different file extensions that are created by oracle reports? &lt;/span&gt;- Rep file and Rdf file.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is strip sources generate options? - &lt;/span&gt;&lt;br /&gt;Removes the source code from the library file and generates a library files that contains only pcode. The resulting file can be used for final deployment, but can not be subsequently edited in the designer.ex. f45gen module=old_lib.pll userid=scott/tiger strip_source YES output_file&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the basic data structure that is required for creating an LOV?&lt;/span&gt; - Record Group.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the Maximum allowed length of Record group Column?&lt;/span&gt; - Record group column names cannot exceed 30 characters.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different types of Record Groups? &lt;/span&gt;- Query Record Groups, NonQuery Record Groups ,State Record Groups&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;From which designation is it preferred to send the output to the printed?&lt;/span&gt; - Previewer&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;what are difference between post database commit and post-form commit? -&lt;/span&gt;&lt;br /&gt;Post-form commit fires once during the post and commit transactions process, after the database commit occurs. The post-form-commit trigger fires after inserts, updates and deletes have been posted to the database but before the transactions have been finalized in the issuing the command. The post-database-commit trigger fires after oracle forms issues the commit to finalized transactions.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different display styles of list items? -&lt;/span&gt;&lt;br /&gt;Pop_list ,Text_list, Combo box&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;With which function of summary item is the compute at options required? -&lt;br /&gt;&lt;/span&gt;percentage of total functions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-5962793111078874073?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/5962793111078874073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=5962793111078874073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5962793111078874073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5962793111078874073'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-18.html' title='Part-18'/><author><name>Rita</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-2935838856065298774.post-1616030224229194574</id><published>2009-02-07T10:39:00.000-08:00</published><updated>2009-02-07T10:39:00.650-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-17</title><content type='html'>&lt;p&gt;&lt;span style="color:#cc0000;"&gt;How do you display console on a window? -&lt;br /&gt;&lt;/span&gt;The console includes the status line and message line, and is displayed at the bottom of the window to which it is assigned. To specify that the console should be displayed, set the console window form property to the name of any window in the form. To include the console, set console window to Null.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different Parameter types?&lt;/span&gt; -Text Parameters Data Parameters&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;color:#cc0000;"&gt;State any three mouse events system variables? -&lt;/span&gt; System.mouse_button_pressedSystem.mouse_button_shift&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the types of calculated columns available? -&lt;/span&gt; Summary, Formula, Placeholder column.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Explain about stacked canvas views? -&lt;br /&gt;&lt;/span&gt;Stacked canvas view is displayed in a window on top of, or “stacked” on the content canvas view assigned to that same window. Stacked canvas views obscure some part of the underlying content canvas view, and or often shown and hidden programmatically.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the built_ins used the display the LOV?&lt;/span&gt; - Show_lov List_values&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the difference between SHOW_EDITOR and EDIT_TEXTITEM? -&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Show editor is the generic built-in which accepts any editor name and takes some input string and returns modified output string. Whereas the edit_textitem built-in needs the input focus to be in the text item before the built-in is executed. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Wh&lt;/span&gt;&lt;span style="color:#cc0000;"&gt;at are the built-ins that are used to Attach an LOV programmatically to an item? -&lt;/span&gt; set_item_property get_item_property (by setting the LOV_NAME property) &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-1616030224229194574?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/1616030224229194574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=1616030224229194574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1616030224229194574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1616030224229194574'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-17.html' title='Part-17'/><author><name>Rita</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-2935838856065298774.post-3485088247800869371</id><published>2009-02-06T22:36:00.000-08:00</published><updated>2009-02-06T22:36:00.367-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-16</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What are Most Common types of Complex master-detail relationships? -&lt;/span&gt;&lt;br /&gt;There are three most common types of complex master-detail relationships: master with dependent details master with independent details detail with two masters&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a text list? -&lt;br /&gt;&lt;/span&gt;The text list style list item appears as a rectangular box which displays the fixed number of values. When the text list contains values that can not be displayed, a vertical scroll bar appears, allowing the operator to view and select values that are not displayed.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is term? -&lt;br /&gt;&lt;/span&gt;The term is terminal definition file that describes the terminal form which you are using r20run.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is use of term? -&lt;br /&gt;&lt;/span&gt;The term file which key is correspond to which oracle report functions.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is pop list? -&lt;br /&gt;&lt;/span&gt;The pop list style list item appears initially as a single field (similar to a text item field). When the operator selects the list icon, a list of available choices appears.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the maximum no of chars the parameter can store? -&lt;/span&gt;&lt;br /&gt;The maximum no of chars the parameter can store is only valid for char parameters, which can be up to 64K. No parameters default to 23 Bytes and Date parameter default to 7 Bytes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the default extensions of the files created by library module? -&lt;/span&gt;&lt;br /&gt;The default file extensions indicate the library module type and storage format .pll - pl/sql library module binary&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the Coordination Properties in a Master-Detail relationship? -&lt;/span&gt;&lt;br /&gt;The coordination properties are Deferred Auto-Query These Properties determine when the population phase of block coordination should occur.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3485088247800869371?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3485088247800869371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3485088247800869371' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3485088247800869371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3485088247800869371'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-16.html' title='Part-16'/><author><name>Rita</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-2935838856065298774.post-2934967375589022864</id><published>2009-02-06T10:32:00.000-08:00</published><updated>2009-02-06T10:32:00.796-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-15</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What is the use of transactional triggers? -&lt;/span&gt;&lt;br /&gt;Using transactional triggers we can control or modify the default functionality of the oracle forms.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How do you create a new session while open a new form? -&lt;br /&gt;&lt;/span&gt;Using open_form built-in setting the session option Ex. Open_form (’Stocks ‘,active,session).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the ways to monitor the performance of the report? -&lt;/span&gt;&lt;br /&gt;Use reports profile executable statement. Use SQL trace facility.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;If two groups are not linked in the data model editor, What is the hierarchy between them? -&lt;/span&gt; Two group that is above are the left most rank higher than the group that is to right or below it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;An open form can not be execute the call_form procedure if you chain of called forms has been initiated by another open form? -&lt;/span&gt; True&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Explain about horizontal, Vertical tool bar canvas views? -&lt;/span&gt;&lt;br /&gt;Tool bar canvas views are used to create tool bars for individual windows. Horizontal tool bars are display at the top of a window, just under its menu bar. Vertical Tool bars are displayed along the left side of a window&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the purpose of the product order option in the column property sheet? -&lt;/span&gt;&lt;br /&gt;To specify the order of individual group evaluation in a cross products.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the use of image_zoom built-in? -&lt;/span&gt;&lt;br /&gt;To manipulate images in image items.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How do you reference a parameter indirectly? -&lt;/span&gt;&lt;br /&gt;To indirectly reference a parameter use the NAME IN, COPY ‘built-ins to indirectly set and reference the parameters value’ Example name_in (’capital parameter my param’), Copy (’SURESH’,'Parameter my_param’)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a timer? -&lt;/span&gt;&lt;br /&gt;Timer is an “internal time clock” that you can programmatically create to perform an action each time the times.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the two phases of block coordination? -&lt;/span&gt;&lt;br /&gt;There are two phases of block coordination: the clear phase and the population phase. During, the clear phase, Oracle Forms navigates internally to the detail block and flushes the obsolete detail records. During the population phase, Oracle Forms issues a SELECT statement to repopulate the detail block with detail records associated with the new master record. These operations are accomplished through the execution of triggers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2934967375589022864?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2934967375589022864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2934967375589022864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2934967375589022864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2934967375589022864'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-15.html' title='Part-15'/><author><name>Rita</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-2935838856065298774.post-8965567542438878273</id><published>2009-02-05T22:22:00.000-08:00</published><updated>2009-02-05T22:22:01.157-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-14</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What are the trigger associated with image items? -&lt;/span&gt;&lt;br /&gt;When-image-activated fires when the operators double clicks on an image itemwhen-image-pressed fires when an operator clicks or double clicks on an image item&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different windows events activated at runtimes? -&lt;/span&gt;&lt;br /&gt;When_window_activated When_window_closed When_window_deactivated When_window_resized Within this triggers, you can examine the built in system variable system. event_window to determine the name of the window for which the trigger fired.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;When do you use data parameter type? -&lt;/span&gt;&lt;br /&gt;When the value of a data parameter being passed to a called product is always the name of the record group defined in the current form. Data parameters are used to pass data to produts invoked with the run_product built-in subprogram.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is difference between open_form and call_form? -&lt;/span&gt;&lt;br /&gt;when one form invokes another form by executing open_form the first form remains displayed, and operators can navigate between the forms as desired. when one form invokes another form by executing call_form, the called form is modal with respect to the calling form. That is, any windows that belong to the calling form are disabled, and operators cannot navigate to them until they first exit the called form.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is new_form built-in? -&lt;/span&gt;&lt;br /&gt;When one form invokes another form by executing new_form oracle form exits the first form and releases its memory before loading the new form calling new form completely replace the first with the second. If there are changes pending in the first form, the operator will be prompted to save them before the new form is loaded.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the “LOV of Validation” Property of an item? - What is the use of it? -&lt;/span&gt;&lt;br /&gt;When LOV for Validation is set to True, Oracle Forms compares the current value of the text item to the values in the first column displayed in the LOV. Whenever the validation event occurs. If the value in the text item matches one of the values in the first column of the LOV, validation succeeds, the LOV is not displayed, and processing continues normally. If the value in the text item does not match one of the values in the first column of the LOV, Oracle Forms displays the LOV and uses the text item value as the search criteria to automatically reduce the list.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the diff. when Flex mode is mode on and when it is off? -&lt;/span&gt;&lt;br /&gt;When flex mode is on, reports automatically resizes the parent when the child is resized.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the diff. when confine mode is on and when it is off? -&lt;/span&gt;&lt;br /&gt;When confine mode is on, an object cannot be moved outside its parent in the layout.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are visual attributes? -&lt;/span&gt;&lt;br /&gt;Visual attributes are the font, color, pattern proprieties that you set for form and menu objects that appear in your application interface.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Which of the two views should objects according to possession?&lt;/span&gt; - view by structure.&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the two types of views available in the object navigator (specific to report 2.5)? -&lt;/span&gt;&lt;br /&gt;View by structure and view by type .&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the vbx controls? -&lt;/span&gt;&lt;br /&gt;Vbx control provide a simple method of building and enhancing user interfaces. The controls can use to obtain user inputs and display program outputs.vbx control where originally develop as extensions for the ms visual basic environments and include such items as sliders, rides and knobs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-8965567542438878273?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/8965567542438878273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=8965567542438878273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8965567542438878273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8965567542438878273'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-14.html' title='Part-14'/><author><name>Rita</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-2935838856065298774.post-700037915889917479</id><published>2009-02-05T10:18:00.000-08:00</published><updated>2009-02-05T10:18:00.733-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-13</title><content type='html'>&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is Distributed database? -&lt;/span&gt; &lt;/p&gt;&lt;p&gt;A distributed database is a network of databases managed by multiple database servers that appears to a user as single logical database. The data of all databases in the distributed database can be simultaneously accessed and modified.&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can we reduce the network traffic? -&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Replication of data in distributed environment. - Using snapshots to replicate data. - Using remote procedure calls. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Differentiate simple and complex, snapshots? -&lt;/span&gt; &lt;/p&gt;&lt;p&gt;A simple snapshot is based on a query thaat does not contains GROUP BY clauses, CONNECT BY clauses, JOINs, sub-query or snapshot of operations. - A complex snapshots contain at least any one of the above. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are the Built-ins used for sending Parameters to forms? -&lt;/span&gt; &lt;/p&gt;&lt;p&gt;You can pass parameter values to a form when an application executes the call_form, New_form, Open_form or Run_product. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Can you have more than one content canvas view attached with a window? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Yes. Each window you create must have at least one content canvas view assigned to it. You can also create a window that has manipulated content canvas view. At run time only one of the content canvas views assign to a window is displayed at a time &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Is the After report trigger fired if the report execution fails?&lt;/span&gt; - Yes. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Does a Before form trigger fire when the parameter form is suppressed?&lt;/span&gt; - Yes. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Is it possible to split the print reviewer into more than one region?&lt;/span&gt; - Yes &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size?&lt;/span&gt; - Yes &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame?&lt;/span&gt; - Yes &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Can a field be used in a report without it appearing in any data group?&lt;/span&gt; - Yes &lt;/p&gt;&lt;p&gt;The join defined by the default data link is an outer join yes or no? - Yes &lt;/p&gt;&lt;p&gt;Can a formula column referred to columns in higher group? - Yes &lt;/p&gt;&lt;p&gt;Can a formula column be obtained through a select statement? - Yes &lt;/p&gt;&lt;p&gt;Is it possible to insert comments into sql statements return in the data model editor? - Yes &lt;/p&gt;&lt;p&gt;Is it possible to disable the parameter from while running the report? - Yes &lt;/p&gt;&lt;p&gt;When a form is invoked with call_form, Does oracle forms issues a save point? - Yes &lt;/p&gt;&lt;p&gt;Can a property clause itself be based on a property clause? - Yes &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;If a parameter is used in a query without being previously defined, what diff. exist between report 2.0 and 2.5 when the query is applied?&lt;/span&gt; - While both reports 2.0 and 2.5 create the parameter, report 2.5 gives a message that a bind parameter has been created. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-700037915889917479?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/700037915889917479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=700037915889917479' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/700037915889917479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/700037915889917479'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-13.html' title='Part-13'/><author><name>Rita</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-2935838856065298774.post-5344524087343677564</id><published>2009-02-04T23:13:00.000-08:00</published><updated>2009-02-04T23:13:01.076-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-12 Snapshot</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What is user Account in Oracle database? -&lt;/span&gt;&lt;br /&gt;An user account is not a physical structure in Database but it is having important relationship to the objects in the database and will be having certain privileges. 95.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;When will the data in the snapshot log be used? -&lt;/span&gt;&lt;br /&gt;We must be able to create a after row trigger on table (i.e., it should be not be already available) After giving table privileges. We cannot specify snapshot log name because oracle uses the name of the master table in the name of the database objects that support its snapshot log. The master table name should be less than or equal to 23 characters. (The table name created will be MLOGS_tablename, and trigger name will be TLOGS name).&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What dynamic data replication? -&lt;/span&gt;&lt;br /&gt;Updating or Inserting records in remote database through database triggers. It may fail if remote database is having any problem.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is Two-Phase Commit? -&lt;/span&gt;&lt;br /&gt;Two-phase commit is mechanism that guarantees a distributed transaction either commits on all involved nodes or rolls back on all involved nodes to maintain data consistency across the global distributed database. It has two phase, a Prepare Phase and a Commit Phase.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can you Enforce Referential Integrity in snapshots? -&lt;/span&gt;&lt;br /&gt;Time the references to occur when master tables are not in use. Peform the reference the manually immdiately locking the master tables. We can join tables in snopshots by creating a complex snapshots that will based on the master tables.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a SQL * NET? -&lt;/span&gt;&lt;br /&gt;SQL *NET is ORACLE’s mechanism for interfacing with the communication protocols used by the networks that facilitate distributed processing and distributed databases. It is used in Clint-Server and Server-Server communications.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is a SNAPSHOT? -&lt;/span&gt;&lt;br /&gt;Snapshots are read-only copies of a master table located on a remote node which is periodically refreshed to reflect changes made to the master table.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the mechanism provided by ORACLE for table replication? -&lt;/span&gt;&lt;br /&gt;Snapshots and SNAPSHOT LOGs&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is snapshots? -&lt;/span&gt;&lt;br /&gt;Snapshot is an object used to dynamically replicate data between distribute database at specified time intervals. In ver 7.0 they are read only.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the various type of snapshots? -&lt;/span&gt;&lt;br /&gt;Simple and Complex.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Describe two phases of Two-phase commit? -&lt;/span&gt;&lt;br /&gt;Prepare phase - The global coordinator (initiating node) ask a participants to prepare (to promise to commit or rollback the transaction, even if there is a failure) Commit - Phase - If all participants respond to the coordinator that they are prepared, the coordinator asks all nodes to commit the transaction, if all participants cannot prepare, the coordinator asks all nodes to roll back the transaction.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is snapshot log? -&lt;/span&gt;&lt;br /&gt;It is a table that maintains a record of modifications to the master table in a snapshot. It is stored in the same database as master table and is only available for simple snapshots. It should be created before creating snapshots.ORACLE uses a snapshot log to track the rows that have been updated in the master table. Snapshot logs are used in updating the snapshots based on the master table.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the benefits of distributed options in databases? -&lt;/span&gt;&lt;br /&gt;Database on other servers can be updated and those transactions can be grouped together with others in a logical unit. Database uses a two phase commit.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the options available to refresh snapshots?&lt;/span&gt; -&lt;br /&gt;COMPLETE - Tables are completely regenerated using the snapshots query and the master tables every time the snapshot referenced. FAST - If simple snapshot used then a snapshot log can be used to send the changes to the snapshot tables. FORCE - Default value. If possible it performs a FAST refresh; Otherwise it will perform a complete refresh.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-5344524087343677564?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/5344524087343677564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=5344524087343677564' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5344524087343677564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5344524087343677564'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-12-snapshot.html' title='Part-12 Snapshot'/><author><name>Rita</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-2935838856065298774.post-6823821316056472853</id><published>2009-02-04T22:09:00.000-08:00</published><updated>2009-02-04T22:09:00.566-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-11</title><content type='html'>&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are the responsibilities of a Database Administrator?&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Installing and upgrading the Oracle Server and application tools. &lt;/p&gt;&lt;p&gt;Allocating system storage and planning future storage requirements for the database system. Managing primary database structures (tablespaces) &lt;/p&gt;&lt;p&gt;Managing primary objects (table, views, indexes) &lt;/p&gt;&lt;p&gt;Enrolling users and maintaining system security. &lt;/p&gt;&lt;p&gt;Ensuring compliance with Oracle license agreement Controlling and monitoring user access to the database. &lt;/p&gt;&lt;p&gt;Monitoring and optimizing the performance of the database. &lt;/p&gt;&lt;p&gt;Planning for backup and recovery of database information. &lt;/p&gt;&lt;p&gt;Maintain archived data on tape Backing up and restoring the database. &lt;/p&gt;&lt;p&gt;Contacting Oracle Corporation for technical support. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is a trace file and how is it created? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Each server and background process can write an associated trace file. When an internal error is detected by a process or user process, it dumps information about the error to its trace. This can be used for tuning the database. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is a profile? -&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Each database user is assigned a Profile that specifies limitations on various system resources available to the user. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;How will you enforce security using stored procedures? -&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Don’t grant user access directly to tables within the application. Instead grant the ability to access the procedures that access the tables. When procedure executed it will execute the privilege of procedures owner. Users cannot access tables except via the procedure. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are the dictionary tables used to monitor a database spaces?&lt;/span&gt; -&lt;/p&gt;&lt;p&gt;DBA_FREE_SPACE DBA_SEGMENTS DBA_DATA_FILES. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are the roles and user accounts created automatically with the database? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt;DBA - role Contains all database system privileges. SYS user account - The DBA role will be assigned to this account. All of the base tables and views for the database’s dictionary are store in this schema and are manipulated only by ORACLE. SYSTEM user account - It has all the system privileges for the database and additional tables and views that display administrative information and internal tables and views used by oracle tools are created using this username. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are the minimum parameters should exist in the parameter file (init.ora)? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt;DB NAME - Must set to a text string of no more than 8 characters and it will be stored inside the datafiles, redo log files and control files and control file while database creation. &lt;/p&gt;&lt;p&gt;DB_DOMAIN - It is string that specifies the network domain where the database is created. The global database name is identified by setting these parameters (DB_NAME &amp;amp; DB_DOMAIN) CONTORL FILES - List of control filenames of the database. If name is not mentioned then default name will be used. &lt;/p&gt;&lt;p&gt;DB_BLOCK_BUFFERS - To determine the no of buffers in the buffer cache in SGA. PROCESSES - To determine number of operating system processes that can be connected to ORACLE concurrently. The value should be 5 (background process) and additional 1 for each user. &lt;/p&gt;&lt;p&gt;ROLLBACK_SEGMENTS - List of rollback segments an ORACLE instance acquires at database startup. Also optionally LICENSE_MAX_SESSIONS,LICENSE_SESSION_WARNING and LICENSE_MAX_USERS. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;How can we specify the Archived log file name format and destination? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt;By setting the following values in init.ora file. LOG_ARCHIVE_FORMAT = arch %S/s/T/tarc (%S - Log sequence number and is zero left padded, %s - Log sequence number not padded. %T - Thread number left-zero- padded and %t - Thread number not padded). The file name created is arch 0001 are if %S is used. LOG_ARCHIVE_DEST = path. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-6823821316056472853?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/6823821316056472853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=6823821316056472853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6823821316056472853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6823821316056472853'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/01/part-11.html' title='Part-11'/><author><name>Rita</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-2935838856065298774.post-7812912739895042833</id><published>2009-02-03T22:01:00.000-08:00</published><updated>2009-02-03T22:01:00.513-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-9</title><content type='html'>&lt;div&gt;&lt;span style="color:#cc0000;"&gt;Define Transaction? -&lt;br /&gt;&lt;/span&gt;A Transaction is a logical unit of work that comprises one or more SQL statements executed by a single user. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;What is Read-Only Transaction? -&lt;/span&gt;&lt;br /&gt;A Read-Only transaction ensures that the results of each query executed in the transaction are consistent with respect to the same point in time. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;What is a deadlock? -Explain .&lt;/span&gt;&lt;br /&gt;Two processes waiting to update the rows of a table which are locked by the other process then deadlock arises. In a database environment this will often happen because of not issuing proper row lock commands. Poor design of front-end application may cause this situation and the performance of server will reduce drastically. These locks will be released automatically when a commit/rollback operation performed or any one of this processes being killed externally. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;What is a Schema? -&lt;/span&gt;&lt;br /&gt;The set of objects owned by user account is called the schema. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;What is a cluster Key? -&lt;br /&gt;&lt;/span&gt;The related columns of the tables are called the cluster key. The cluster key is indexed using a cluster index and its value is stored only once for multiple tables in the cluster. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;What is Parallel Server? -&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Multiple instances accessing the same database (Only In Multi-CPU environments) &lt;/div&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the basic element of Base configuration of an oracle Database? -&lt;/span&gt;&lt;br /&gt;&lt;div&gt;It consists of one or more data files. one or more control files. two or more redo log files. The Database contains multiple users/schemas one or more rollback segments one or more tablespaces Data dictionary tables User objects (table, indexes, views etc.,) The server that access the database consists of SGA (Database buffer, Dictionary Cache Buffers, Redo log buffers, Shared SQL pool) SMON (System MONito) PMON (Process MONitor) LGWR (LoG Write) DBWR (Data Base Write) ARCH (ARCHiver) CKPT (Check Point) RECO Dispatcher User Process with associated PGS &lt;/div&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is clusters? -&lt;/span&gt;&lt;br /&gt;&lt;div&gt;Group of tables physically stored together because they share common columns and are often used together is called Cluster. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7812912739895042833?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7812912739895042833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7812912739895042833' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7812912739895042833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7812912739895042833'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-9.html' title='Part-9'/><author><name>Rita</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-2935838856065298774.post-7446784501113994953</id><published>2009-02-02T23:06:00.000-08:00</published><updated>2009-02-02T23:01:53.405-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-10 Auditing,Roles</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What are the different Levels of Auditing? -&lt;/span&gt;&lt;br /&gt;Statement Auditing, Privilege Auditing and Object Auditing.&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is Statement Auditing? -&lt;/span&gt;&lt;br /&gt;Statement auditing is the auditing of the powerful system privileges without regard to specifically named objects &lt;/p&gt;&lt;span style="color:#cc0000;"&gt;What are the database administrators utilities available? -&lt;/span&gt;&lt;br /&gt;SQL * DBA - This allows DBA to monitor and control an ORACLE database.&lt;br /&gt;SQL * Loader - It loads data from standard operating system files (Flat files) into ORACLE database tables.&lt;br /&gt;Export (EXP) and Import (imp) utilities allow you to move existing data in ORACLE format to and from ORACLE database.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can you enable automatic archiving? -&lt;/span&gt;&lt;br /&gt;Shut the database Backup the database Modify/Include LOG_ARCHIVE_START_TRUE in init.ora file. Start up the database.&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are roles? - How can we implement roles? -&lt;/span&gt;&lt;/p&gt;Roles are the easiest way to grant and manage common privileges needed by different groups of database users. Creating roles and assigning provides to roles. Assign each role to group of users. This will simplify the job of assigning privileges to individual users.&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are Roles? -&lt;/span&gt; &lt;/p&gt;Roles are named groups of related privileges that are granted to users or other roles.&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are the use of Roles? -&lt;/span&gt; &lt;/p&gt;REDUCED GRANTING OF PRIVILEGES - Rather than explicitly granting the same set of privileges to many users a database administrator can grant the privileges for a group of related users granted to a role and then grant only the role to each member of the group.&lt;br /&gt;&lt;p&gt;DYNAMIC PRIVILEGE MANAGEMENT - When the privileges of a group must change, only the privileges of the role need to be modified. The security domains of all users granted the group’s role automatically reflect the changes made to the role. &lt;/p&gt;SELECTIVE AVAILABILITY OF PRIVILEGES - The roles granted to a user can be selectively enable (available for use) or disabled (not available for use). This allows specific control of a user’s privileges in any given situation.&lt;br /&gt;&lt;p&gt;APPLICATION AWARENESS - A database application can be designed to automatically enable and disable selective roles when a user attempts to use the application. &lt;/p&gt;&lt;span style="color:#cc0000;"&gt;What is Privilege Auditing?&lt;/span&gt; - Privilege auditing is the auditing of the use of powerful system privileges without regard to specifically named objects.&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is Object Auditing? -&lt;/span&gt; &lt;/p&gt;Object auditing is the auditing of accesses to specific schema objects without regard to user.&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is Auditing? -&lt;/span&gt;&lt;/p&gt;Monitoring of user access to aid in the investigation of database use.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7446784501113994953?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7446784501113994953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7446784501113994953' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7446784501113994953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7446784501113994953'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/01/part-10-auditingroles.html' title='Part-10 Auditing,Roles'/><author><name>Rita</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-2935838856065298774.post-7614626456125242062</id><published>2009-02-01T21:45:00.000-08:00</published><updated>2009-02-01T21:45:01.161-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-8</title><content type='html'>&lt;span style="color:#cc0000;"&gt;What is Execution Plan? -&lt;/span&gt;&lt;br /&gt;&lt;p&gt;The combinations of the steps the optimizer chooses to execute a statement is called an execution plan. &lt;/p&gt;&lt;span style="color:#cc0000;"&gt;What are the different approaches used by Optimizer in choosing an execution plan? -&lt;/span&gt;&lt;br /&gt;&lt;p&gt;Rule-based and Cost-based.&lt;/p&gt;&lt;span style="color:#cc0000;"&gt;What does ROLLBACK do? -&lt;/span&gt;&lt;br /&gt;&lt;p&gt;ROLLBACK retracts any of the changes resulting from the SQL statements in the transaction. &lt;/p&gt;&lt;span style="color:#cc0000;"&gt;What is SAVE POINT? -&lt;/span&gt;&lt;br /&gt;&lt;p&gt;For long transactions that contain many SQL statements, intermediate markers or savepoints can be declared which can be used to divide a transaction into smaller parts. This allows the option of later rolling back all work performed from the current point in the transaction to a declared savepoint within the transaction. &lt;/p&gt;&lt;span style="color:#cc0000;"&gt;What are the values that can be specified for OPTIMIZER MODE Parameter? -&lt;/span&gt;&lt;br /&gt;&lt;p&gt;COST and RULE. &lt;/p&gt;&lt;span style="color:#cc0000;"&gt;What is COST-based approach to optimization? -&lt;/span&gt;&lt;br /&gt;&lt;p&gt;Considering available access paths and determining the most efficient execution plan based on statistics in the data dictionary for the tables accessed by the statement and their associated clusters and indexes. &lt;/p&gt;&lt;span style="color:#cc0000;"&gt;What does COMMIT do? -&lt;/span&gt;&lt;br /&gt;&lt;p&gt;COMMIT makes permanent the changes resulting from all SQL statements in the transaction. The changes made by the SQL statements of a transaction become visible to other user sessions transactions that start only after transaction is committed. &lt;/p&gt;&lt;span style="color:#cc0000;"&gt;What is RULE-based approach to optimization?&lt;/span&gt; -&lt;br /&gt;&lt;p&gt;Choosing an executing plan based on the access paths available and the ranks of these access paths. &lt;/p&gt;&lt;span style="color:#cc0000;"&gt;What are the values that can be specified for OPTIMIZER_GOAL parameter of the ALTER SESSION Command? -&lt;/span&gt;&lt;br /&gt;&lt;p&gt;CHOOSE,ALL_ROWS,FIRST_ROWS and RULE. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7614626456125242062?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7614626456125242062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7614626456125242062' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7614626456125242062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7614626456125242062'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/02/part-8.html' title='Part-8'/><author><name>Rita</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-2935838856065298774.post-7172812504018679085</id><published>2009-01-30T21:43:00.000-08:00</published><updated>2009-01-31T21:41:27.385-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-7</title><content type='html'>&lt;p&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What are the Characteristics of Data Files? -&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;A data file can be associated with only one database. Once created a data file can’t change size. One or more data files form a logical unit of database storage called a tablespace.&lt;/p&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;How to define Data Block size? -&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;A data block size is specified for each ORACLE database when the database is created. A database users and allocated free database space in ORACLE datablocks. Block size is specified in INIT.ORA file and can’t be changed latter.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What does a Control file Contain? -&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;A Control file records the physical structure of the database. It contains the following information. Database Name Names and locations of a database’s files and redolog files. Time stamp of database creation.&lt;/p&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What is difference between UNIQUE constraint and PRIMARY KEY constraint? -&lt;/span&gt;&lt;br /&gt;A column defined as UNIQUE can contain Nulls while a column defined as PRIMARY KEY can’t contain Nulls.&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What is Index Cluster? -&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;A Cluster with an index on the Cluster Key&lt;br /&gt;&lt;p&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;When does a Transaction end? -&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;When it is committed or Rollbacked.&lt;br /&gt;&lt;p&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What is the effect of setting the value “ALL_ROWS” for OPTIMIZER_GOAL parameter of the ALTER SESSION command? -&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What are the factors that affect OPTIMIZER in choosing an Optimization approach?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;The OPTIMIZER_MODE initialization parameter Statistics in the Data Dictionary the OPTIMIZER_GOAL parameter of the ALTER SESSION command hints in the statement.&lt;/p&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What is the effect of setting the value “CHOOSE” for OPTIMIZER_GOAL, parameter of the ALTER SESSION Command? -&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;The Optimizer chooses Cost_based approach and optimizes with the goal of best throughput if statistics for atleast one of the tables accessed by the SQL statement exist in the data dictionary. Otherwise the OPTIMIZER chooses RULE_based approach.&lt;/p&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What is the function of Optimizer? -&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;The goal of the optimizer is to choose the most efficient way to execute a SQL statement. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7172812504018679085?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7172812504018679085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7172812504018679085' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7172812504018679085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7172812504018679085'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/01/part-7.html' title='Part-7'/><author><name>Rita</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-2935838856065298774.post-7433584394308596240</id><published>2009-01-30T21:40:00.000-08:00</published><updated>2009-01-31T21:42:29.621-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-6</title><content type='html'>&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Describe Referential Integrity? &lt;/span&gt;-&lt;/p&gt;A rule defined on a column (or set of columns) in one table that allows the insert or update of a row only if the value for the column or set of columns (the dependent value) matches a value in a column of a related table (the referenced value). It also specifies the type of data manipulation allowed on referenced data and the action to be performed on dependent data as a result of any action on referenced data.&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is Hash Cluster? -&lt;/span&gt; &lt;/p&gt;A row is stored in a hash cluster based on the result of applying a hash function to the row’s cluster key value. All rows with the same hash key value are stores together on disk.&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is a Private Synonyms? -&lt;/span&gt;&lt;/p&gt;A Private Synonyms can be accessed only by the owner.&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is Database Link? -&lt;/span&gt;&lt;/p&gt;A database link is a named object that describes a “path” from one database to another.&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is a Tablespace? -&lt;/span&gt;&lt;/p&gt;A database is divided into Logical Storage Unit called tablespaces. A tablespace is used to grouped related logical structures together&lt;br /&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is Rollback Segment? -&lt;/span&gt; &lt;/p&gt;A Database contains one or more Rollback Segments to temporarily store “undo” information.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7433584394308596240?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7433584394308596240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7433584394308596240' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7433584394308596240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7433584394308596240'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/01/part-6.html' title='Part-6'/><author><name>Rita</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-2935838856065298774.post-6678762010275466209</id><published>2009-01-29T22:04:00.000-08:00</published><updated>2009-01-31T21:43:29.902-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-5</title><content type='html'>&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What is an Index? - How it is implemented in Oracle Database? -&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;An index is a database structure used by the server to have direct access of a row in a table. An index is automatically created when a unique of primary key constraint clause is specified in create table command (Ver 7.0)&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What is a Database instance? -Explain&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A database instance (Server) is a set of memory structure and background processes that access a set of database files. The process can be shared by all users. The memory structure that are used to store most queried data from database. This helps up to improve database performance by decreasing the amount of I/O performed against data file.&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;br /&gt;&lt;span&gt;What is the use of ANALYZE command? -&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To perform one of these function on an index, table, or cluster:&lt;br /&gt;&lt;br /&gt;- To collect statistics about object used by the optimizer and store them in the data dictionary.&lt;br /&gt;&lt;br /&gt;- To delete statistics about the object used by object from the data dictionary.&lt;br /&gt;&lt;br /&gt;- To validate the structure of the object..&lt;br /&gt;&lt;br /&gt;- To identify migrated and chained rows off the table or cluster.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What is default tablespace? -&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Tablespace to contain schema objects created without specifying a tablespace name.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What are the system resources that can be controlled through Profile?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- The number of concurrent sessions the user can establish the CPU processing time available to the user’s session the CPU processing time available to a single call to ORACLE made by a SQL statement the amount of logical I/O available to the user’s session the amount of logical I/O available to a single call to ORACLE made by a SQL statement the allowed amount of idle time for the user’s session the allowed amount of connect time for the user’s session.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="color:#cc0000;"&gt;What is Tablespace Quota? -&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The collective amount of disk space available to the objects in a schema on a particular tablespace.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-6678762010275466209?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/6678762010275466209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=6678762010275466209' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6678762010275466209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6678762010275466209'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/01/part-5.html' title='Part-5'/><author><name>Rita</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-2935838856065298774.post-1986994924984892431</id><published>2009-01-28T21:36:00.000-08:00</published><updated>2009-01-28T21:39:06.898-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-4</title><content type='html'>&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are the type of Synonyms? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt;There are two types of Synonyms Private and Public &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is a Redo Log? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt; The set of Redo Log files YSDATE,UID,USER or USERENV SQL functions, or the pseudo columns LEVEL or ROWNUM. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is an Index Segment? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Each Index has an Index segment that stores all of its data. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Explain the relationship among Database, Tablespace and Data file.? -&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Each databases logically divided into one or more tablespaces one or more data files are explicitly created for each tablespace &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are the different type of Segments? -&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Data Segment, Index Segment, Rollback Segment and Temporary Segment. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are Clusters? -&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Clusters are groups of one or more tables physically stores together to share common columns and are often used together. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is an Integrity Constrains? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt; An integrity constraint is a declarative way to define a business rule for a column of a table.&lt;/p&gt;&lt;p&gt; &lt;span style="color:#cc0000;"&gt;What is an Index? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt; An Index is an optional structure associated with a table to have direct access to rows, which can be created to increase the performance of data retrieval. Index can be created on one or more columns of a table. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is an Extent?&lt;/span&gt; - An Extent is a specific number of contiguous data blocks, obtained in a single allocation, and used to store a specific type of information. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is a View?&lt;/span&gt; - A view is a virtual table. Every view has a Query attached to it. (The Query is a SELECT statement that identifies the columns and rows of the table(s) the view uses.) &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is Table?&lt;/span&gt; - A table is the basic unit of data storage in an ORACLE database. The tables of a database hold all of the user accessible data. Table data is stored in rows and columns.&lt;/p&gt;&lt;p&gt; &lt;span style="color:#cc0000;"&gt;What is a Synonym?&lt;/span&gt; - A synonym is an alias for a table, view, sequence or program unit.&lt;/p&gt;&lt;p&gt; &lt;span style="color:#cc0000;"&gt;What is a Sequence?&lt;/span&gt; - A sequence generates a serial list of unique numbers for numerical columns of a database’s tables. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is a Segment?&lt;/span&gt; - A segment is a set of extents allocated for a certain logical structure. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is schema?&lt;/span&gt; - A schema is collection of database objects of a User. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-1986994924984892431?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/1986994924984892431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=1986994924984892431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1986994924984892431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1986994924984892431'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/01/part-4.html' title='Part-4'/><author><name>Rita</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-2935838856065298774.post-1091926968997916056</id><published>2009-01-28T21:34:00.000-08:00</published><updated>2009-01-28T21:56:09.832-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-3</title><content type='html'>&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What is Full Backup? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt;A full backup is an operating system backup of all data files, on- line redo log files and control file that constitute ORACLE database and the parameter. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Can a View based on another View?-&lt;/span&gt; Yes. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Can a Tablespace hold objects from different Schemes?&lt;/span&gt; - Yes. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Can objects of the same Schema reside in different tablespaces?&lt;/span&gt; - Yes. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the use of Control File? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt;When an instance of an ORACLE database is started, its control file is used to identify the database and redo log files that must be opened for database operation to proceed. It is also used in database recovery. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Does View contain Data?&lt;/span&gt; -&lt;/p&gt;&lt;p&gt;Views do not contain or store data. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the Referential actions supported by FOREIGN KEY integrity constraint? -&lt;/span&gt;&lt;/p&gt;&lt;p&gt;UPDATE and DELETE Restrict - A referential integrity rule that disallows the update or deletion of referenced data. &lt;/p&gt;&lt;p&gt;DELETE Cascade - When a referenced row is deleted all associated dependent rows are deleted.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;Junior DBA Questions : &lt;a href="http://dbareview.blogspot.com/2009/01/part-2.html"&gt;Part 2&lt;/a&gt;, &lt;a href="http://dbareview.blogspot.com/2009/01/part-4.html"&gt;Part 4&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-1091926968997916056?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/1091926968997916056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=1091926968997916056' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1091926968997916056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1091926968997916056'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/01/part-3.html' title='Part-3'/><author><name>Rita</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-2935838856065298774.post-8614444513617818067</id><published>2009-01-28T21:32:00.000-08:00</published><updated>2009-01-28T21:53:41.078-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Junior DBA Questions'/><title type='text'>Part-2</title><content type='html'>&lt;p&gt;&lt;span style="color:#cc0000;"&gt;What are the advantages of operating a database in ARCHIVELOG mode over operating it in NO ARCHIVELOG mode? -&lt;/span&gt;&lt;br /&gt;Complete database recovery from disk failure is possible only in ARCHIVELOG mode. Online database backup is possible only in ARCHIVELOG mode. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the steps involved in Database Shutdown? -&lt;/span&gt;&lt;br /&gt;Close the Database, Dismount the Database and Shutdown the Instance. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is Archived Redo Log? -&lt;/span&gt;&lt;br /&gt;Archived Redo Log consists of Redo Log files that have archived before being reused. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is Restricted Mode of Instance Startup? -&lt;/span&gt;&lt;br /&gt;An instance can be started in (or later altered to be in) restricted mode so that when the database is open connections are limited only to those whose user accounts have been granted the RESTRICTED SESSION system privilege. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is Partial Backup? -&lt;br /&gt;&lt;/span&gt;A Partial Backup is any operating system backup short of a full backup, taken while the database is open or shut down. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is Mirrored on-line Redo Log? -&lt;br /&gt;&lt;/span&gt;A mirrored on-line redo log consists of copies of on-line redo log files physically located on separate disks, changes made to one member of the group are made to all members. &lt;/p&gt;&lt;p&gt;Junior DBA Questions &lt;a href="http://dbareview.blogspot.com/2009/01/part-3.html"&gt;Part 3&lt;/a&gt;, &lt;a href="http://dbareview.blogspot.com/2009/01/part-4.html"&gt;Part 4&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-8614444513617818067?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/8614444513617818067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=8614444513617818067' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8614444513617818067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8614444513617818067'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/01/part-2.html' title='Part-2'/><author><name>Rita</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-2935838856065298774.post-2855610202183535363</id><published>2009-01-26T20:22:00.000-08:00</published><updated>2009-01-26T20:53:25.183-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>Oeacle10g RAC Background Processes</title><content type='html'>RAC:&lt;br /&gt;-----&lt;br /&gt;Cluster: - Interconnected nodes act as a Single Server&lt;br /&gt;&lt;br /&gt;- A cluster consists of multiple interconnected servers that appears to end users and applications as if they are one single server&lt;br /&gt;&lt;br /&gt;- Multiple instances on different nodes access database files in Shared Storage&lt;br /&gt;&lt;br /&gt;- Instances communicate through private interconnect(s).&lt;br /&gt;&lt;br /&gt;Benefits of RAC:&lt;br /&gt;-----------------&lt;br /&gt;High Availability :- If one node failure, other nodes in the cluster can continue to operate and availability of database&lt;br /&gt;&lt;br /&gt;Scalability:- Multiple instances allows clustered database to scale&lt;br /&gt;&lt;br /&gt;Manageability:- Multiple legacy database can be consolidated into a single RAC database reducing management complexity&lt;br /&gt;&lt;br /&gt;Cost of ownership:- RAC can be deployed on industry standard,reducing cost of purchasing maintenance and support&lt;br /&gt;&lt;br /&gt;RAC Background Process:&lt;br /&gt;--------------------------&lt;br /&gt;These background processes are supporting the multi-instance coordination:&lt;br /&gt;&lt;br /&gt;LMON: Global Enqueue Service Monitor&lt;br /&gt;Monitor entire cluster to manage the global enqueues and resources&lt;br /&gt;LMON provided services are also known as Cluster Group Services(CGS)&lt;br /&gt;&lt;br /&gt;LMDx: Global Enqueue Service Daemon(LMD)&lt;br /&gt;lock agent process that manages for Global Cache Service enqueues to control access to global enqueues and resources&lt;br /&gt;&lt;br /&gt;LMSx: Global Chase Service Processes, Handled remote(GCS). Upto 10 GCS cluster software provides&lt;br /&gt;&lt;br /&gt;LCKx: Lock Process, Manages the global enqueue requests and the cross-instance broadcast(workload automatically shared and balanced when there are multiple Global Cache Service Process(LMSx)&lt;br /&gt;&lt;br /&gt;DIAG: Diagnosibility Daemon&lt;br /&gt;Monitoring the health of the instance and capture the data for instance failure process&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2855610202183535363?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2855610202183535363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2855610202183535363' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2855610202183535363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2855610202183535363'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/01/oeacle10g-rac-background-process.html' title='Oeacle10g RAC Background Processes'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-6282118854732011660</id><published>2009-01-02T15:50:00.000-08:00</published><updated>2009-01-02T16:10:35.722-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flash Recovery Area'/><title type='text'>What is a Flash Recovery Area and how to configure it</title><content type='html'>&lt;a name="aref1"&gt;&lt;/a&gt;&lt;br /&gt;1. What is a Flash Recovery Area ?&lt;br /&gt;The flash recovery area is an Oracle-managed directory, file system, or Automatic Storage Management disk group that provides a centralized disk location for backup and recovery files.&lt;br /&gt;&lt;br /&gt;All the files you need to completely recover a database from a media failure are part of the Flash Recovery Area. Oracle creates archived logs and flashback logs in the flash recovery area. RMAN can store its backup sets and image copies in the flash recovery area, and it uses it when restoring files during media recovery.&lt;br /&gt;&lt;br /&gt;The flash recovery area also acts as a disk cache for tape.&lt;br /&gt;&lt;br /&gt;Flash recovery extends the functionality of Oracle Managed Files to all recovery related files (backup sets, image copies, and archived logs). Oracle Database automatically manages this storage, deleting files that are no longer needed. The user specifies only the location of a Flash Recovery Area, and the amount of disk space that Oracle is allowed to use for recovery related files. This feature is integrated with the 10G MMON feature, so that out of space conditions can be handled through the standard Oracle monitoring framework.&lt;br /&gt;&lt;br /&gt;Periodically copying backups to tape frees space in the flash recovery area for other files. Oracle recommends that you enable a recovery area to simplify backup management.&lt;br /&gt;&lt;br /&gt;The following recovery-related files are stored in the flash recovery area:&lt;br /&gt;-- Current control file&lt;br /&gt;-- Online redo logs&lt;br /&gt;-- Archived redo logs&lt;br /&gt;-- Flashback logs&lt;br /&gt;-- Control file autobackups&lt;br /&gt;-- Datafile and control file copies&lt;br /&gt;-- Backup pieces&lt;br /&gt;-- Foreign archived redo log ( An archived redo log received by a logical standby database for a LogMiner session.)&lt;br /&gt;&lt;br /&gt;&lt;a name="aref2"&gt;&lt;/a&gt;2. Why should we use a Flash Recovery Area?&lt;br /&gt;As disk storage media is now competitive to tape with respect to purchase costs, disk-based backup is an optimal and preferable storage mechanism. By using disks for storage purposes, you gain significant benefits in terms of mass storage,and you can randomly access your data in milliseconds rather than hours. The previously expensive downtime in traditional recovery is exchanged for rapid data access and recovery times using cheap disk space. The advantage that we have over tape is that tape is a sequential access device and disk is a random access device. Hence the amount of time needed for restoring from the tape is eliminated or reduced.&lt;br /&gt;&lt;a name="aref3"&gt;&lt;/a&gt;&lt;br /&gt;3. What should be the location of Flash Recovery Area ?&lt;br /&gt;The flash recovery area should place on a separate disk from the working set of database files. Otherwise, the disk becomes a single point of failure for your database.&lt;br /&gt;&lt;br /&gt;&lt;a name="aref4"&gt;&lt;/a&gt;4. What should be the size of Flash Recovery Area ?&lt;br /&gt;The larger the flash recovery area is, the more useful it becomes. Ideally, the flash recovery area should be large enough to contain the required files. The recovery area should be able to contain a copy of all datafiles in the database and the incremental backups used by your chosen backup strategy. If providing this much space is impractical, then it is best to create an area large enough to keep a backup of the most important tablespaces and all the archived logs not yet on tape. At an absolute minimum, the flash recovery area must be large enough to contain the archived redo logs not yet on tape. If the recovery area has insufficient space to store flashback logs and meet other backup retention requirements, then the recovery area may delete flashback logs to make room.&lt;br /&gt;&lt;br /&gt;Formulas for estimating a useful flash recovery area size depend on whether:&lt;br /&gt;-- Your database has a small or large number of data blocks that change frequently .&lt;br /&gt;-- You store backups only on disk, or on disk and tape.&lt;br /&gt;-- You use a redundancy-based backup retention policy, or a recovery window-based retention policy .&lt;br /&gt;-- You plan to use Flashback Database or a guaranteed restore point as alternatives to point-in-time recovery.&lt;br /&gt;&lt;br /&gt;If you plan to enable flashback logging, then note that the volume of flashback log generation is approximately the same order of magnitude as redo log generation.&lt;br /&gt;&lt;br /&gt;For example, if you intend to set DB_FLASHBACK_RETENTION_TARGET to 24 hours, and if the database generates 20 GB of redo in a day, then a rule of thumb is to allow 20 GB to 30 GB disk space for the flashback logs. The same rule applies to guaranteed restore points when flashback logging is enabled.&lt;br /&gt;&lt;br /&gt;For example, if the database generates 20 GB redo every day, and if the guaranteed restore point will be kept for a day, then plan to allocate 20 to 30 GB.&lt;br /&gt;&lt;br /&gt;For an example suppose that you want to determine the size of a flash recovery when the backup retention policy is set to REDUNDANCY 1 and you intend to follow the Oracle Suggested Strategy of using an incrementally updated backup. You use the following formula to estimate the disk quota&lt;br /&gt;&lt;br /&gt;Disk Quota =&lt;br /&gt;Size of a copy of database +&lt;br /&gt;Size of an incremental backup +&lt;br /&gt;Size of (n+1) days of archived redo logs +&lt;br /&gt;Size of (y+1) days of foreign archived redo logs (for logical standby) +&lt;br /&gt;Size of control file +&lt;br /&gt;Size of an online redo log member * number of log groups +&lt;br /&gt;Size of flashback logs (based on DB_FLASHBACK_RETENTION_TARGET value)&lt;br /&gt;&lt;br /&gt;Where n is the interval in days between incremental updates and y is the delay in applying the foreign archived redo logs on a logical standby database:&lt;br /&gt;&lt;br /&gt;For Oracle suggested backup kindly refer Note.303861.1 Incrementally Updated Backup In 10G&lt;br /&gt;&lt;br /&gt;&lt;a name="aref5"&gt;&lt;/a&gt;5. Can I have same Flashback Recovery Area for multiple database ?&lt;br /&gt;&lt;br /&gt;Multiple databases can have the same value for DB_RECOVERY_FILE_DEST, but one of the following must be true:&lt;br /&gt;-- No two databases for which the DB_UNIQUE_NAME initialization parameters are specified have the same value for DB_UNIQUE_NAME.&lt;br /&gt;-- For those databases where no DB_UNIQUE_NAME is provided, no two databases have the same value for DB_NAME.&lt;br /&gt; When databases share a single recovery area in this way, the location should be large enough to hold the files for all databases. Add the values for DB_RECOVERY_FILE_DEST_SIZE for the databases, then allow for overhead such as mirroring or compression.&lt;br /&gt;&lt;br /&gt;&lt;a name="aref6"&gt;&lt;/a&gt;6. ASM (Automatic Storage Management) support for Flash Recovery Area :&lt;br /&gt;The Flash Recovery Area can be an ASM disk group. RMAN can back up and restore files that are stored in ASM disk groups.In fact, RMAN is the only way to back up and restore ASM files. Backup sets and image copies can be created in ASM, either by automatically creating them in the Flash Recovery Area, or by explicitly specifying an ASM disk group for their location.&lt;br /&gt;&lt;a name="aref7"&gt;&lt;/a&gt;&lt;br /&gt;7. OMF (Oracle Managed Files) support for Flash Recovery Area :&lt;br /&gt;Backup/Restore of OMF files is easier with RMAN as RMAN does not use the long OMF file names in any commands. Backup sets and image copies can be created as OMF files by creating them in the Flash Recovery Area. RMAN can be used to migrate existing files to OMF.&lt;br /&gt;&lt;br /&gt;&lt;a name="aref8"&gt;&lt;/a&gt;8. Flash Recovery Area for RAC :&lt;br /&gt;For RAC database the location and disk quota must be the same on all instances. To accomplish this, Oracle recommends that you place the flash recovery area on the shared ASM disks.&lt;br /&gt;In addition, you must set the DB_RECOVERY_FILE_DEST and DB_RECOVERY_FILE_DEST_SIZE parameters to the same values on all instances.&lt;br /&gt;To use the Flash Recovery feature, you must first configure the flash recovery area for each instance in your Oracle RAC cluster.&lt;br /&gt;&lt;a name="aref9"&gt;&lt;/a&gt;&lt;br /&gt;9. What type of files can be stored in  Flash Recovery Area ?&lt;br /&gt;The files in Flash Recovery Area are classified as permanent or transient.&lt;br /&gt;&lt;br /&gt;-- Permanent Files&lt;br /&gt;The permanent files (assuming these are configured to be stored in the recovery area) are multiplexed copies of the current control file and online redo logs. These cannot be deleted without causing the instance to fail.&lt;br /&gt;&lt;br /&gt;-- Transient Files&lt;br /&gt;Transient files include archived redo logs, datafile copies, control file copies, control file autobackups, backup pieces and flashback logs. Oracle manages these files automatically for deletion whenever space is required in the Flash Recovery Area. They are deleted once they become obsolete under the retention policy or have been backed up to tape. Any transient file in the flash recovery area once backed up to tape even if not deleted are internally placed on a file can be deleted list. Until there is a backup of the file on disk made to a teriary storage device it cannot be obsolete.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name="aref10"&gt;&lt;/a&gt;9. Initialization Parameters required for Flash Recovery Area&lt;br /&gt;To enable the Flash Recovery Area, you must set the two initialization parameters:&lt;br /&gt;-- DB_RECOVERY_FILE_DEST_SIZE :&lt;br /&gt;It is the disk limit, which is the amount of space the flash recovery area is permitted to use. The minimum size of the Flash Recovery Area should be at least large enough to contain archive logs that have not been copied to tape.&lt;br /&gt;&lt;br /&gt;Note: This value does not include certain kinds of disk overhead:&lt;br /&gt;-Block 0 or the OS block header of each Oracle file is not included in this size, so make sure to allow an extra 10% for this data when computing the actual disk usage required for the Flash Recovery Area.&lt;br /&gt;-DB_RECOVERY_FILE_DEST_SIZE does not indicate the real size occupied on disk when the underlying filesystem is mirrored, compressed, or in some other way affected by overhead not known to Oracle.&lt;br /&gt;-- DB_RECOVERY_FILE_DEST: This initialization parameter is a valid destination to create the Flash Recovery Area. The destination can be defined as a directory, file system, or ASM disk group.&lt;br /&gt;&lt;br /&gt;Note1: The Flash Recovery Area cannot be stored on a raw file system.&lt;br /&gt;Note2 : DB_RECOVERY_FILE_DEST_SIZE must be set before DB_RECOVERY_FILE_DEST.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;10. Restrictions on Initialization Parameters for Flash Recovery Area&lt;br /&gt;- You cannot use the LOG_ARCHIVE_DEST and LOG_ARCHIVE_DUPLEX_DEST parameters to specify redo log archive destinations. You must always use the LOG_ARCHIVE_DEST_n parameters in case you have configured flash recovery area.&lt;br /&gt;&lt;br /&gt;- LOG_ARCHIVE_DEST_10 is implicitly set to USE_DB_RECOVERY_FILE_DEST if you create a recovery area and do not set any other local archiving destinations.&lt;br /&gt;&lt;br /&gt;- Multiple database can have the same DB_RECOVERY_FILE_DEST only if the DB_NAME are different or if the DB_NAME is same (example the primary and standby database) then the DB_UNIQUE_NAME parameter must be different for the databases.&lt;br /&gt;&lt;br /&gt;- For RAC the location of Flash Recovery Area must be on a cluster file system, ASM or a shared directory configured through NFS. The location and disk quota must be the same on all instances.&lt;br /&gt;&lt;br /&gt;Refre Oracle metalink- Doc Id:  305648.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-6282118854732011660?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/6282118854732011660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=6282118854732011660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6282118854732011660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6282118854732011660'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2009/01/what-is-flash-recovery-area-and-how-to.html' title='What is a Flash Recovery Area and how to configure it'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-5996145449713763026</id><published>2008-12-22T19:18:00.000-08:00</published><updated>2008-12-22T19:19:41.854-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Find ASM Files - Script</title><content type='html'>SET LINESIZE 145&lt;br /&gt;SET PAGESIZE 9999&lt;br /&gt;SET VERIFY off&lt;br /&gt;&lt;br /&gt;COLUMN full_alias_path FORMAT a65 HEAD 'File Name'&lt;br /&gt;COLUMN system_created FORMAT a8 HEAD 'SystemCreated?'&lt;br /&gt;COLUMN bytes FORMAT 999,999 HEAD 'MBytes'&lt;br /&gt;COLUMN space FORMAT 999,999 HEAD 'MSpace'&lt;br /&gt;COLUMN type FORMAT a18 HEAD 'File Type'&lt;br /&gt;COLUMN redundancy FORMAT a12 HEAD 'Redundancy'&lt;br /&gt;COLUMN striped FORMAT a8 HEAD 'Striped'&lt;br /&gt;COLUMN creation_date FORMAT a20 HEAD 'Creation Date'&lt;br /&gt;COLUMN disk_group_name noprint&lt;br /&gt;BREAK ON report ON disk_group_name SKIP 1&lt;br /&gt;compute sum label "" of bytes space on disk_group_name&lt;br /&gt;compute sum label "Grand Total: " of bytes space on report&lt;br /&gt;&lt;br /&gt;SELECT&lt;br /&gt;CONCAT('+'  disk_group_name, SYS_CONNECT_BY_PATH(alias_name, '/')) full_alias_path&lt;br /&gt;, round(bytes/1024/1024)&lt;br /&gt;, space/1024/1024&lt;br /&gt;, NVL(LPAD(type, 18), '&lt;directory&gt;') type&lt;br /&gt;-- , creation_date&lt;br /&gt;, disk_group_name&lt;br /&gt;, LPAD(system_created, 4) system_created&lt;br /&gt;FROM&lt;br /&gt;( SELECT&lt;br /&gt;g.name disk_group_name&lt;br /&gt;, a.parent_index pindex&lt;br /&gt;, a.name alias_name&lt;br /&gt;, a.reference_index rindex&lt;br /&gt;, a.system_created system_created&lt;br /&gt;, f.bytes bytes&lt;br /&gt;, f.space space&lt;br /&gt;, f.type type&lt;br /&gt;, TO_CHAR(f.creation_date, 'DD-MON-YYYY HH24:MI:SS') creation_date&lt;br /&gt;FROM&lt;br /&gt;v$asm_file f RIGHT OUTER JOIN v$asm_alias a USING (group_number, file_number)&lt;br /&gt;JOIN v$asm_diskgroup g USING (group_number)&lt;br /&gt;)&lt;br /&gt;WHERE type IS NOT NULL&lt;br /&gt;START WITH (MOD(pindex, POWER(2, 24))) = 0&lt;br /&gt;CONNECT BY PRIOR rindex = pindex&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-5996145449713763026?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/5996145449713763026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=5996145449713763026' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5996145449713763026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5996145449713763026'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/12/find-asm-files-script.html' title='Find ASM Files - Script'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-5571584077291938369</id><published>2008-12-22T19:14:00.000-08:00</published><updated>2008-12-22T19:17:00.884-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>How to find ASM Diskgroup - Script</title><content type='html'>SET LINESIZE 145&lt;br /&gt;SET PAGESIZE 9999&lt;br /&gt;SET VERIFY off&lt;br /&gt;&lt;br /&gt;COLUMN  group_name    FORMAT a16 HEAD 'Disk GroupName'&lt;br /&gt;COLUMN sector_size FORMAT 99,999 HEAD 'SectorSize'&lt;br /&gt;COLUMN block_size FORMAT 99,999 HEAD 'BlockSize'&lt;br /&gt;COLUMN allocation_unit_size FORMAT 999,999,999 HEAD 'AllocationUnit Size'&lt;br /&gt;COLUMN state FORMAT a11 HEAD 'State'&lt;br /&gt;COLUMN type FORMAT a6 HEAD 'Type'&lt;br /&gt;COLUMN total_mb FORMAT 999,999,999 HEAD 'Total Size (MB)'&lt;br /&gt;COLUMN used_mb FORMAT 999,999,999 HEAD 'Used Size (MB)'&lt;br /&gt;COLUMN pct_used FORMAT 999.99 HEAD 'Pct. Used'&lt;br /&gt;break on report on disk_group_name skip 1&lt;br /&gt;compute sum label "Grand Total: " of total_mb used_mb on report&lt;br /&gt;&lt;br /&gt;SELECT&lt;br /&gt;name group_name&lt;br /&gt;, sector_size sector_size&lt;br /&gt;, block_size block_size&lt;br /&gt;, allocation_unit_size allocation_unit_size&lt;br /&gt;, state state&lt;br /&gt;, type type&lt;br /&gt;, total_mb total_mb&lt;br /&gt;, (total_mb - free_mb) used_mb&lt;br /&gt;, ROUND((1- (free_mb / total_mb))*100, 2) pct_used&lt;br /&gt;FROM&lt;br /&gt;v$asm_diskgroup&lt;br /&gt;ORDER BY&lt;br /&gt;name&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-5571584077291938369?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/5571584077291938369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=5571584077291938369' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5571584077291938369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5571584077291938369'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/12/how-to-find-asm-diskgroup-script.html' title='How to find ASM Diskgroup - Script'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-1297580484664976024</id><published>2008-12-13T13:56:00.000-08:00</published><updated>2008-12-13T14:08:26.477-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle 10g Specific'/><title type='text'>RESUMABLE SPACE ALLOCATION in Oracle 10g</title><content type='html'>This article describes a useful feature in 10G which allows the user to resume a session from where it hung for reasons of space or other constraints.&lt;br /&gt;&lt;br /&gt;RESUMABLE SPACE ALLOCATION AND AFTER SUSPEND TRIGGER&lt;br /&gt;A resumable statement allows you to :&lt;br /&gt;1. Suspend large operations instead of receiving an error2. Allows you to fix the problem while the operation is suspended, rather than start from scratch.&lt;br /&gt;&lt;br /&gt;A session remains suspended for the following reasons&lt;br /&gt;&lt;br /&gt;1. Tablespace runs out of space&lt;br /&gt;&lt;br /&gt;2. Max extents reached.&lt;br /&gt;&lt;br /&gt;3. Space quota exceeded on tablespace.&lt;br /&gt;&lt;br /&gt;Pre-requisites:&lt;br /&gt;1. INIT.ORA prameter : RESUMBABLE_TIMEOUT=3600( 1 HOUR) , default is 7200 seconds or 2 hours. This parameter can be changed&lt;br /&gt;&lt;br /&gt;dynamically with an 'alter system set resumable_timeout=3600'&lt;br /&gt;&lt;br /&gt;2. Grant RESUMABLE system privilege to schema owner/user.&lt;br /&gt;&lt;br /&gt;3. User has to issue ' alter session enable resumable' before running the transaction.&lt;br /&gt;&lt;br /&gt;EXAMPLE:&lt;br /&gt;Table test in arjun schema.&lt;br /&gt;SQL&gt; create table test (col_1 number(10),col_2 date);&lt;br /&gt;Table created.&lt;br /&gt;&lt;br /&gt;Create a script called loop.sql which is created in this manner..&lt;br /&gt;vi loop.sql in unix .&lt;br /&gt;declarex number;&lt;br /&gt;begin&lt;br /&gt;x:= 0;&lt;br /&gt;for i in 1 .. 5000&lt;br /&gt;loop&lt;br /&gt;insert into testvalues(x,sysdate);&lt;br /&gt;x := x+1;&lt;br /&gt;commit;&lt;br /&gt;end loop;&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;save the file as loop.sql&lt;br /&gt;Now set the Resumable_timeout parameter to 0&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system set resumable_timeout=0 scope=both;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; @loop&lt;br /&gt;declare&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-01653: unable to extend table ARJUN.TEST by 128 in tablespace ARJUN&lt;br /&gt;ORA-06512: at line 7&lt;br /&gt;&lt;br /&gt;Now issue command as sysdba.&lt;br /&gt;Sql&gt; alter system set resumable_timeout=3600 scope=both;&lt;br /&gt;&lt;br /&gt;Conn arjun/arjun&lt;br /&gt;&lt;br /&gt;@loop&lt;br /&gt;Session hangs after sometime but no error message is thrown( see below the use of after suspend trigger to throw an error message when the session hangs)&lt;br /&gt;From another session.&lt;br /&gt;&lt;br /&gt;SQL&gt; select count(*) from arjun.test;&lt;br /&gt;COUNT(*)&lt;br /&gt;----------&lt;br /&gt;98900&lt;br /&gt;SQL&gt; /&lt;br /&gt;COUNT(*)&lt;br /&gt;----------&lt;br /&gt;98900&lt;br /&gt;SQL&gt; /&lt;br /&gt;COUNT(*)&lt;br /&gt;----------&lt;br /&gt;98900&lt;br /&gt;Although space has run out tablespace arjun, the first session does not throw an error but allows you to increase space in the tablespace from another session.&lt;br /&gt;The first session will wait for 1 hour - the time set by you in the resumable_timeout=3600 parameter. If you do not take corrective action, ie add space within that period, an error is thrown and transaction rolled back.&lt;br /&gt;&lt;br /&gt;SQL&gt; select sum(bytes/1048576) from dba_free_space where tablespace_name='ARJUN';&lt;br /&gt;SUM(BYTES/1048576)&lt;br /&gt;------------------&lt;br /&gt;.9375&lt;br /&gt;&lt;br /&gt;Add space to tablespace..&lt;br /&gt;SQL&gt; Alter database datafile '/u03/ORACLE/test9/arjun.dbf' resize 5m;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;As soon as you add space the table begins to get populated again..&lt;br /&gt;SQL&gt; select count(*) from arjun.test;&lt;br /&gt;COUNT(*)&lt;br /&gt;----------&lt;br /&gt;119097&lt;br /&gt;&lt;br /&gt;SQL&gt; /&lt;br /&gt;COUNT(*)&lt;br /&gt;----------&lt;br /&gt;136680&lt;br /&gt;SQL&gt; /&lt;br /&gt;COUNT(*)&lt;br /&gt;----------&lt;br /&gt;145413&lt;br /&gt;&lt;br /&gt;USAGE OF AFTER SUSPEND TRIGGER IN RELATION TO RESUMABLE SPACE ALLOCATION:&lt;br /&gt;Another very useful feature is the usage of the AFTER SUSPEND trigger which results in an error message appearing in the session, rather than the session hanging( in which case the DBA or USER will never know there is an error unless he checks from another session.)&lt;br /&gt;This helps the DBA to take corrective action once the error message is thrown.&lt;br /&gt;Once corrective action is taken , the original session can be restarted.&lt;br /&gt;&lt;br /&gt;Firstly create the trigger as SYS user.&lt;br /&gt;CREATE OR REPLACE TRIGGER ARJUN_RESUMABLEAFTER SUSPEND ON DATABASEBEGINDBMS_RESUMABLE.SET_TIMEOUT(60);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;This creates a trigger which sets the RESUMABLE_TIMEOUT to 60 seconds or 1 minute if there is a situation where a session is stuck. This is the time allowed to take corrective action before oracle aborts the transaction.&lt;br /&gt;Begin inserting into the TEST table..&lt;br /&gt;&lt;br /&gt;@loop&lt;br /&gt;Hangs after sometime...&lt;br /&gt;&lt;br /&gt;To check if a session is hanging and the error message---&lt;br /&gt;From another session just select error_msg from the dba_resumable view.&lt;br /&gt;SQL&gt; select error_msg from dba_resumable;&lt;br /&gt;ERROR_MSG&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;ORA-01653: unable to extend table ARJUN.TEST by 128 in tablespace ARJUN&lt;br /&gt;&lt;br /&gt;SQL&gt; select count(*) from arjun.test;&lt;br /&gt;COUNT(*)&lt;br /&gt;----------&lt;br /&gt;353926&lt;br /&gt;Now the original session that was running the insert hangs for 1 minute and then throws the error.&lt;br /&gt;declare&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-30032: the suspended (resumable) statement has timed out&lt;br /&gt;ORA-01653: unable to extend table ARJUN.TEST by 128 in tablespace ARJUNORA-06512: at line 7&lt;br /&gt;&lt;br /&gt;Take corrective action(increase size of tablespace,etc) and then rerun the insert&lt;br /&gt;&lt;br /&gt;@loop..&lt;br /&gt;SQL&gt; select count(*) from arjun.test;&lt;br /&gt;/* Notice the session has resumed and count increases. */&lt;br /&gt;COUNT(*)&lt;br /&gt;----------&lt;br /&gt;416321&lt;br /&gt;&lt;br /&gt;SQL&gt; /&lt;br /&gt;COUNT(*)&lt;br /&gt;----------&lt;br /&gt;421232&lt;br /&gt;&lt;br /&gt;SQL&gt; /&lt;br /&gt;COUNT(*)&lt;br /&gt;----------&lt;br /&gt;425740&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference:  &lt;a href="http://www.dbapool.com/articles/122705.html"&gt;http://www.dbapool.com/articles/122705.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-1297580484664976024?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/1297580484664976024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=1297580484664976024' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1297580484664976024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1297580484664976024'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/12/resumable-space-allocation-in-oracle.html' title='RESUMABLE SPACE ALLOCATION in Oracle 10g'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-400291251421182806</id><published>2008-12-09T19:24:00.001-08:00</published><updated>2008-12-09T20:09:32.780-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General DBA Questions'/><title type='text'>How to shrink sgement in Oracle10g</title><content type='html'>In Oracle10g, we have the option to shrink a segment, which will help DBAs to manage the space in better way.This feature also help for better performance for query.&lt;br /&gt;&lt;br /&gt;Oracle 10g Segment shrink&lt;br /&gt;=========================&lt;br /&gt;Mandatory&lt;br /&gt;=========&lt;br /&gt;Init.ora parameter 'Compatible' must be &gt;=10.0&lt;br /&gt;Shrink operations can be performed only on segments in locally managed tablespaces with automatic segment space management (ASSM).&lt;br /&gt;&lt;br /&gt;How it works&lt;br /&gt;============&lt;br /&gt;1. Enable row movement for the table.&lt;br /&gt;SQL&gt; ALTER TABLE scott.emp ENABLE ROW MOVEMENT;&lt;br /&gt;&lt;br /&gt;2. Shrink table but don't want to shrink HWM (High Water Mark).&lt;br /&gt;SQL&gt; ALTER TABLE scott.emp SHRINK SPACE COMPACT;&lt;br /&gt;&lt;br /&gt;3. Shrink table and HWM too.&lt;br /&gt;SQL&gt; ALTER TABLE scott.emp SHRINK SPACE;&lt;br /&gt;&lt;br /&gt;4. Shrink table and all dependent index too.&lt;br /&gt;SQL&gt; ALTER TABLE scott.emp SHRINK SPACE CASCADE;&lt;br /&gt;&lt;br /&gt;5. Shrink table under MView.&lt;br /&gt;SQL&gt; ALTER TABLE table_name SHRINK SPACE;&lt;br /&gt;&lt;br /&gt;6. Shrink Index only.&lt;br /&gt;SQL&gt; ALTER INDEX table_name SHRINK SPACE;&lt;br /&gt;&lt;br /&gt;Restrictions on the shrink_clause, 10gR1&lt;br /&gt;========================================&lt;br /&gt;1. You cannot specify this clause for a cluster, a clustered table, or any object with a LONG column.&lt;br /&gt;&lt;br /&gt;2. Segment shrink is not supported for LOB segments even if CASCADE is specified.&lt;br /&gt;&lt;br /&gt;3. Segment shrink is not supported for tables with function-based indexes.&lt;br /&gt;&lt;br /&gt;4. This clause does not shrink mapping tables or overflow segments of index-organized tables, even if you specify CASCADE.&lt;br /&gt;&lt;br /&gt;5. You cannot shrink a table that is the master table of an ON COMMIT materialized view. Rowid materialized views must be rebuilt after the shrink operation.&lt;br /&gt;&lt;br /&gt;6. Table with a domain index is not supported.&lt;br /&gt;&lt;br /&gt;Restrictions on the shrink_clause, 10gR2&lt;br /&gt;========================================&lt;br /&gt;1. You cannot specify this clause for a cluster, a clustered table, or any object with a LONG column.&lt;br /&gt;&lt;br /&gt;2. Segment shrink is not supported for tables with function-based indexes or bitmap join indexes.&lt;br /&gt;&lt;br /&gt;3. This clause does not shrink mapping tables of index-organized tables, even if you specify CASCADE.&lt;br /&gt;&lt;br /&gt;4. You cannot specify this clause for a compressed table.&lt;br /&gt;&lt;br /&gt;5. You cannot shrink a table that is the master table of an ON COMMIT materialized view. Rowid materialized views must be rebuilt after the shrink operation.&lt;br /&gt;&lt;br /&gt;6. Table with a domain index is not supported.&lt;br /&gt;&lt;br /&gt;Query/DML Concurrency&lt;br /&gt;=======================&lt;br /&gt;The online phase of segment shrink is done with DML-compatible locks. Hence DMLs can coexist during this phase. During the space-release/HWM adjustment phase, incompatible locks will be acquired on the table, hence, DMLs will block on shrink.&lt;br /&gt;&lt;br /&gt;There are no user visible errors that shrink will cause on DMLs.&lt;br /&gt;&lt;br /&gt;Queries cache the segment HWM. Oracle guarantees that the HWM always moves forward,hence CR is not required on segment header and extent map blocks. The only operationsthat cause the segment HWM to move backward are drop and truncate.&lt;br /&gt;&lt;br /&gt;We allow queries to coexist with drop/truncate DDLs since queries do not acquire locks. If after the drop/truncate, the space gets reused in some other segment, then the queries get "8103 - object does not exist" external error message.&lt;br /&gt;&lt;br /&gt;During segment shrink, the segment’s incarnation number is changed in the bitmap blocks and segment header when the segment HWM is adjusted. Subsequent data block news happen at this newer incarnation number.&lt;br /&gt;&lt;br /&gt;Queries that span this phase can die with an external error "10632 - invalid rowid" if&lt;br /&gt;&lt;br /&gt;1) They read the updated bitmap blocks (that have new inc#). Note that this failure happens if the space is not reused&lt;br /&gt;&lt;br /&gt;2) The space got reused for some other object or the same object.&lt;br /&gt;&lt;br /&gt;Limitations on Online Segment Shrink, 10gR2:&lt;br /&gt;============================================&lt;br /&gt;Within an ASSM tablespace, all segment types are eligible for online segment shrink except these:&lt;br /&gt;- IOT mapping tables- Tables with rowid based materialized views- Tables with function-based indexes&lt;br /&gt;Dependency Maintenance and Restrictions on Shrink&lt;br /&gt;==========================================&lt;br /&gt;The only dependency that will be taken care of during segment shrink is the index. The indexes will not be in an unusable state after shrink.&lt;br /&gt;&lt;br /&gt;The compaction phase of segment shrink will be done as insert/delete pairs. The DML triggers will not be fired during data movement phase. Since the data does not change, it is not required to fire the triggers.&lt;br /&gt;&lt;br /&gt;ROWID based triggers should be disabled before issuing a shrink since it will not fire during shrink.&lt;br /&gt;&lt;br /&gt;Segment shrink cannot be done on objects with on-commit materialized views. Materialized views that are based on primary key need not be refreshed or rebuilt after shrink.&lt;br /&gt;However, it is the DBA’s responsibility to refresh/rebuild the materialized views that are rowid based.&lt;br /&gt;&lt;br /&gt;Availability&lt;br /&gt;============&lt;br /&gt;Segment shrink is done online, thereby it increases the availability of the object. While conventional DML operations can coexist with segment shrink, parallel DMLs cannot.&lt;br /&gt;&lt;br /&gt;During segment shrink, data will be moved as part of the compaction phase. During compaction locks will be held on individual rows and/or blocks containing the data. This will cause the concurrent DMLs like updates and deletes to serialize on the locks. The compaction will be done in units of smaller transactions, so the availability of the object will not be impacted significantly.&lt;br /&gt;However during certain phases of segment shrink (when the HWM is adjusted), the segment will have to be locked in exclusive mode.&lt;br /&gt;&lt;br /&gt;This phase is for a very short duration and should impact the availability of the object less significantly.&lt;br /&gt;&lt;br /&gt;Security&lt;br /&gt;========&lt;br /&gt;The privileges required to execute segment shrink on an object will be the same as that for ALTER object.&lt;br /&gt;&lt;br /&gt;Detail Example&lt;br /&gt;===============&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER TABLE t_shrink ENABLE ROW MOVEMENT;&lt;br /&gt;Table altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER TABLE t_shrink SHRINK SPACE COMPACT;&lt;br /&gt;Table altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; set serveroutput on&lt;br /&gt;SQL&gt; declare&lt;br /&gt;2 v_unformatted_blocks number;&lt;br /&gt;3 v_unformatted_bytes number;&lt;br /&gt;4 v_fs1_blocks number;&lt;br /&gt;5 v_fs1_bytes number;&lt;br /&gt;6 v_fs2_blocks number;&lt;br /&gt;7 v_fs2_bytes number;&lt;br /&gt;8 v_fs3_blocks number;&lt;br /&gt;9 v_fs3_bytes number;&lt;br /&gt;10 v_fs4_blocks number;&lt;br /&gt;11 v_fs4_bytes number;&lt;br /&gt;12 v_full_blocks number;&lt;br /&gt;13 v_full_bytes number;&lt;br /&gt;14 begin&lt;br /&gt;15 dbms_space.space_usage ('SYSTEM', 'T_SHRINK', 'TABLE', v_unformatted_blocks,&lt;br /&gt;16 v_unformatted_bytes, v_fs1_blocks, v_fs1_bytes, v_fs2_blocks, v_fs2_bytes,&lt;br /&gt;17 v_fs3_blocks, v_fs3_bytes, v_fs4_blocks, v_fs4_bytes, v_full_blocks, v_full_bytes);&lt;br /&gt;18 dbms_output.put_line('Unformatted Blocks = 'v_unformatted_blocks);&lt;br /&gt;19 dbms_output.put_line('FS1 Blocks = 'v_fs1_blocks);&lt;br /&gt;20 dbms_output.put_line('FS2 Blocks = 'v_fs2_blocks);&lt;br /&gt;21 dbms_output.put_line('FS3 Blocks = 'v_fs3_blocks);&lt;br /&gt;22 dbms_output.put_line('FS4 Blocks = 'v_fs4_blocks);&lt;br /&gt;23 dbms_output.put_line('Full Blocks = 'v_full_blocks);&lt;br /&gt;24 end;&lt;br /&gt;25  /&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Unformatted Blocks = 0&lt;br /&gt;FS1 Blocks = 0&lt;br /&gt;FS2 Blocks = 0&lt;br /&gt;FS3 Blocks = 0&lt;br /&gt;&lt;strong&gt;FS4 Blocks = 2&lt;br /&gt;Full Blocks = 1&lt;br /&gt;&lt;/strong&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER TABLE t_shrink SHRINK SPACE;&lt;br /&gt;Table altered.&lt;br /&gt;&lt;br /&gt;SQL&gt;  run the above anonymos block again,&lt;br /&gt;&lt;br /&gt;Unformatted Blocks = 0&lt;br /&gt;FS1 Blocks = 0&lt;br /&gt;FS2 Blocks = 0&lt;br /&gt;FS3 Blocks = 0&lt;br /&gt;&lt;strong&gt;FS4 Blocks = 1 &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Full Blocks = 1 &lt;/strong&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;QL Reference Manual, 10.1 and 10.2&lt;br /&gt;Oracle® Database Administrator's Guide10g Release 1 and 2&lt;br /&gt;Doc ID: 242090.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-400291251421182806?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/400291251421182806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=400291251421182806' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/400291251421182806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/400291251421182806'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/12/how-to-shrink-sgement-in-oracle10g.html' title='How to shrink sgement in Oracle10g'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-787295531366636772</id><published>2008-12-09T16:50:00.000-08:00</published><updated>2008-12-09T17:27:13.339-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PL SQL Interview Questions'/><title type='text'>PL/SQL Interview Questions</title><content type='html'>1. What is PL/SQL ?&lt;br /&gt;PL/SQL  is  a  procedural  language  that  has  both  interactive  SQL  and procedural  programming  language constructs such as iteration, conditional branching.&lt;br /&gt;&lt;br /&gt;2. What does Opening a cursor do ?&lt;br /&gt;- It executes the query and identifies the Result set&lt;br /&gt;&lt;br /&gt;3. What does Fetching a cursor do ?&lt;br /&gt;- It reads the Result Set row by row.&lt;br /&gt;&lt;br /&gt;4. What does Closing a cursor do ?&lt;br /&gt;- It clears the private SQL area and de-allocates the memory.&lt;br /&gt;&lt;br /&gt;5. What are Cursor Variables ?&lt;br /&gt;- Also called REF CURSORS.&lt;br /&gt;- They are not tied to a single SQL. They point to any SQL area dynamically.&lt;br /&gt;- Advantage is : You can declare variables at Client side and open them Server side. You can thus centralize data retrieval.&lt;br /&gt;&lt;br /&gt;6. Why use Cursor Variables?&lt;br /&gt;- You can pass cursor RESULT SETS between PL/SQL stored programs and clients.&lt;br /&gt;&lt;br /&gt;7. What are SQLCODE and SQLERRM ?&lt;br /&gt;- Oracle Error code and detailed error message&lt;br /&gt;- They are actually functions with no arguments, that can be used only in procedural statements ( not SQL)&lt;br /&gt;&lt;br /&gt;8. What are Pseudocolumns ?&lt;br /&gt;- They are not actual columns. They are like Functions without arguments.&lt;br /&gt;- They typically give a different value for each row.&lt;br /&gt;- Examples: ROWNUM, NEXTVAL, ROWID, VERSION_STARTTIME&lt;br /&gt;&lt;br /&gt;9. Why use Truncate over Delete while deleting all rows ?&lt;br /&gt;- Truncate is efficient. Triggers are not fired.&lt;br /&gt;- It deallocates space (Unless REUSE STORAGE is given).&lt;br /&gt;&lt;br /&gt;10. What is a ROWID composed of ?&lt;br /&gt;- It's a hexadecimal string representing the address of a row. Prior to Oracle 8, it's a restricted rowid comprising block.row.file. Extended rowid ( the default on higher releases) comprises data object number as well ( comprising the segment number ).&lt;br /&gt;&lt;br /&gt;11. What is the use of a ROWID ?&lt;br /&gt;- Retrieve data faster with ROWID.&lt;br /&gt;- Shows you the physical arrangement of rows in the table.&lt;br /&gt;- Also unique identifier for each row.&lt;br /&gt;&lt;br /&gt;12. Can rows from two different tables have the same ROWID?&lt;br /&gt;- Possible, if they are in a Cluster&lt;br /&gt;&lt;br /&gt;13. What is ROWNUM and ROW_NUMBER ?&lt;br /&gt;- ROWNUM is a pseudocolumn which is the number assigned to each row retrieved.&lt;br /&gt;- ROW_NUMBER is an analytic function which does something similar, but has all the capabilities of PARTITION BY and ORDER BY clauses..&lt;br /&gt;&lt;br /&gt;14. What is an inline view?&lt;br /&gt;- It's not a schema object&lt;br /&gt;- It's a subquery in the FROM clause with an alias that can be used as a view within the SQL statement.&lt;br /&gt;&lt;br /&gt;15. What are Nested and Correlated subqueries ?&lt;br /&gt;- The subquery used in WHERE clause is a nested subquery.&lt;br /&gt;- If this subquery refers to any column in the parent statement, it becomes a correlated subquery.&lt;br /&gt;&lt;br /&gt;16. How do you retrieve a dropped table in 10g?&lt;br /&gt;- FLASHBACK table &lt;tabname&gt; to BEFORE DROP&lt;br /&gt;&lt;br /&gt;17. What are PSPs?&lt;br /&gt;- PL/SQL Server Pages. Web pages developed in PL/SQL&lt;br /&gt;&lt;br /&gt;18. What is an index-organized table?&lt;br /&gt;- The physical arrangement of rows of this table changes with the indexed column.&lt;br /&gt;- It's. in-short, a table stored like an index itself.&lt;br /&gt;&lt;br /&gt;19. What is an implicit cursor?&lt;br /&gt;- Oracle opens an implicit cursor to process each SQL statement not associated with an explicit cursor.&lt;br /&gt;&lt;br /&gt;20. Name a few implicit cursor attributes.&lt;br /&gt;- %FOUND, %ROWCOUNT, %NOTFOUND, %ISOPEN, %BULK_ROWCOUNT, %BULK_EXCEPTIONS&lt;br /&gt;&lt;br /&gt;The below urls are many PL/SQL Interview Questions:&lt;br /&gt;&lt;br /&gt;Reference1: &lt;a href="http://hubpages.com/hub/oracle_sql_plsql"&gt;http://hubpages.com/hub/oracle_sql_plsql&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Reference2:&lt;a href="http://sql-plsql.blogspot.com/2007/04/sql-plsql-interview-questions.html"&gt;http://sql-plsql.blogspot.com/2007/04/sql-plsql-interview-questions.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Reference3: &lt;a href="http://dev.fyicenter.com/Interview-Questions/SQL/"&gt;http://dev.fyicenter.com/Interview-Questions/SQL/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-787295531366636772?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/787295531366636772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=787295531366636772' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/787295531366636772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/787295531366636772'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/12/plsql-interview-questions.html' title='PL/SQL Interview Questions'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-7471221471741387389</id><published>2008-12-03T17:34:00.001-08:00</published><updated>2008-12-03T17:37:02.133-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle11g'/><title type='text'>ASM New Features in Oracle11g</title><content type='html'>The new features in Automatic Storage Management (ASM) extend the storagemanagement automation, improve scalability, and further simplify management forOracle Database files.&lt;br /&gt;&lt;br /&gt;■ ASM Fast Mirror Resync A new SQL statement, ALTER DISKGROUP ... DISK ONLINE, can be executedafter a failed disk has been repaired. The command first brings the disk online forwrites so that no new writes are missed. Subsequently, it initiates a copy of all extentsmarked as stale on a disk from their redundant copies.This feature significantly reduces the time it takes to repair a failed diskgroup,potentially from hours to minutes. The repair time is proportional to the number ofextents that have been written to or modified since the failure.&lt;br /&gt;&lt;br /&gt;■ ASM Manageability Enhancements The new storage administration features for ASM manageability include the following:&lt;br /&gt;&lt;br /&gt;■ New attributes for disk group compatibilityTo enable some of the new ASM features, you can&lt;br /&gt;use two new disk groupcompatibility attributes, compatible.rdbms and compatible.asm. Theseattributes specify the minimum software version that is required to use diskgroups for the database and for ASM, respectively. This feature enablesheterogeneous environments with disk groups from both Oracle Database 10g andOracle Database 11g. By default, both attributes are set to 10.1. You must advancethese attributes to take advantage of the new features.&lt;br /&gt;&lt;br /&gt;■ New ASM command-line utility (ASMCMD) commands and options ASMCMD allows ASM disk identification, disk bad block repair, and backup andrestore operations in your ASM environment for faster recovery.&lt;br /&gt;&lt;br /&gt;■ ASM fast rebalance Rebalance operations that occur while a disk group is in RESTRICTED modeeliminate the lock and unlock extent map messaging between ASM instances inOracle RAC environments, thus improving overall rebalance throughput.This collection of ASM management features simplifies and automates storagemanagement for Oracle databases.&lt;br /&gt;&lt;br /&gt;■ ASM Preferred Mirror Read When ASM failure groups are defined, ASM can now read from the extent that isclosest to it, rather than always reading the primary copy. A new initializationparameter, ASM_PREFERRED_READ_FAILURE_GROUPS, lets the ASM administratorspecify a list of failure group names that contain the preferred read disks for each nodein a cluster. In an extended cluster configuration, reading from a local copy provides a greatperformance advantage. Every node can read from its local diskgroup (failure group),resulting in higher efficiency and performance and reduced network traffic.&lt;br /&gt;&lt;br /&gt;■ ASM Rolling Upgrade Rolling upgrade is the ability of clustered software to function when one or more ofthe nodes in the cluster are at different software versions. The various versions of thesoftware can still communicate with each other and provide a single system image.The rolling upgrade capability will be available when upgrading from OracleDatabase 11g Release 1 (11.1). This feature allows independent nodes of an ASM cluster to be migrated or patchedwithout affecting the availability of the database. Rolling upgrade provides higheruptime and graceful migration to new releases.&lt;br /&gt;&lt;br /&gt;■ ASM Scalability and Performance Enhancements This feature increases the maximum data file size that Oracle can support to 128 TB.ASM supports file sizes greater than 128 TB in any redundancy mode. This providesnear unlimited capacity for future growth. The ASM file size limits are:&lt;br /&gt;&lt;br /&gt;■ External redundancy - 140 PB&lt;br /&gt;&lt;br /&gt;■ Normal redundancy - 42 PB&lt;br /&gt;&lt;br /&gt;■ High redundancy - 15 PB Customers can also increase the allocation unit size for a disk group in powers of 2 upto 64 MB.&lt;br /&gt;&lt;br /&gt;■ Convert Single-Instance ASM to Clustered ASM This feature provides support within Enterprise Manager to convert a non-clusteredASM database to a clustered ASM database by implicitly configuring ASM on allnodes. It also extends the single-instance to Oracle RAC conversion utility to supportstandby databases. Simplifying the conversion makes it easier for customers to migrate their databasesand achieve the benefits of scalability and high availability provided by Oracle RAC.&lt;br /&gt;&lt;br /&gt;■ New SYSASM Privilege for ASM Administration This feature introduces the new SYSASM privilege to allow for separation of databasemanagement and storage management responsibilities.The SYSASM privilege allows an administrator to manage the disk groups that can beshared by multiple databases. The SYSASM privilege provides a clear separation ofduties from the SYSDBA privilege. For complete list of 11g ASM New Feature, You can refer the following&lt;br /&gt;&lt;br /&gt;Note: Metalink Id: 551205.1 11g ASM New Features Technical White&lt;br /&gt;&lt;br /&gt;Paperhttp://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/11g-asm.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7471221471741387389?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7471221471741387389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7471221471741387389' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7471221471741387389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7471221471741387389'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/12/asm-new-features-in-oracle11g.html' title='ASM New Features in Oracle11g'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-2386668823518470659</id><published>2008-12-03T17:32:00.000-08:00</published><updated>2008-12-03T17:33:59.537-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle11g'/><title type='text'>Backup &amp; Recovery New Features in Oracle11g</title><content type='html'>* Enhanced configuration of archive deletion policies Archive can be deleted , if it is notneed DG , Streams Flashback etc When you CONFIGURE an archived log deletion policyapplies to all archiving destinations, including the flash recovery area. BACKUP ... DELETEINPUT and DELETE... ARCHIVELOG use this configuration, as does the flash recovery area.When we back up the recovery area, RMAN can fail over to other archived redo logdestinations if the flash recovery area is inaccessible.&lt;br /&gt;&lt;br /&gt;* Configuring backup compression: In 11g can use CONFIGURE command to choose between the BZIP2 and ZLIB compressionalgorithms for RMAN backups.&lt;br /&gt;&lt;br /&gt;* Active Database Duplication: Now DUPLICATE command is network aware i.e.we can create a duplicate or standbydatabase over the network without taking backup or using old backup.&lt;br /&gt;&lt;br /&gt;* Parallel backup and restore for very large files: RMAN Backups of large data files now use multiple parallel server processes to efficientlydistribute theworkload for each file. This features improves the performance of backups.&lt;br /&gt;&lt;br /&gt;* Improved block media recovery performance: RECOVER command can recover individual data blocks.RMAN take older, uncorrupted blocks from flashback and the RMAN can use these blocks,thereby speeding up block media recovery.&lt;br /&gt;&lt;br /&gt;* Fast incremental backups on physical standby database: 11g has included new feature of enable block change tracking on a physical standbydatabase (ALTER DATABASE ENABLE/DISABLE BLOCK CHANGE TRACKING SQL statement).&lt;br /&gt;This new 11g feature enables faster incremental backups on a physical standby databasethan in previous releases.because RMAN identifywe the changed blocks sincethe lastincremental backup.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2386668823518470659?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2386668823518470659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2386668823518470659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2386668823518470659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2386668823518470659'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/12/backup-recovery-new-features-in.html' title='Backup &amp; Recovery New Features in Oracle11g'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-3011705107462484821</id><published>2008-12-03T17:29:00.000-08:00</published><updated>2008-12-03T17:37:59.880-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle11g'/><title type='text'>SQL and PL-SQL New Features in Oracle11g</title><content type='html'>&gt; Fine Grained Dependency Tracking: In 11g we track dependencies at the level of element within unit. so that these changes haveno consequence&lt;br /&gt;• Transparent performance improvement&lt;br /&gt;• Unnecessary recompilation certainly consumes CPU&lt;br /&gt;create table t(a number)&lt;br /&gt;create view v as select a from t&lt;br /&gt;alter table t add(Unheard_Of number)&lt;br /&gt;select status from User_Objectswhere Object_Name = 'V'- -----VALID&lt;br /&gt;No recompilation of dependent objects when Columns added to tables OR Proceduresadded to packages&lt;br /&gt;&lt;br /&gt;&gt; Named and Mixed Notation from SQL:&lt;br /&gt;select fun(P4=&gt;10) from DUAL; In 10g not possible to call function in select statment by passing 4th parameter, but in 11g it is possible&lt;br /&gt;&lt;br /&gt;&gt; PL/SQL "continue" keyword - It is same as we read in c/c++ loop&lt;br /&gt;&lt;br /&gt;&gt; Support for “super”: It is same "super" in Java.&lt;br /&gt;&lt;br /&gt;&gt; Powerfull Regular Expression:&lt;br /&gt;Now we can access data between TAGS like data between tags ......... The new built-in REGEXP_COUNT returns the number of times the pattern is matched in theinput string.&lt;br /&gt;&lt;br /&gt;&gt; New table Data Type "simple_integer"&lt;br /&gt;&lt;br /&gt;&gt; SQL Performance Analyzer(SPA) :&lt;br /&gt;It is same as Database replay except it not capture all transaction.The SQL PerformanceAnalyzer (SPA) leverages existing Oracle Database 10g SQL tuning components. The SPAprovides the ability to capture a specific SQL workload in a SQL Tuning Set, take aperformance baseline before a major database or system change, make the desired changeto the system, and then replay the SQL workload against the modified database orconfiguration. The before and after performance of the SQL workload can then be comparedwith just a few clicks of the mouse. The DBA only needs to isolate any SQL statements thatare now performing poorly and tune them via the SQL Tuning Advisor&lt;br /&gt;&lt;br /&gt;&gt; Caching The Results with /*+ result_cache */ :&lt;br /&gt;select /*+ result_cache */ * from my_table, New for Oracle 11g, the result_cache hint cachesthe result set of a select statement. This is similar to alter table table_name cache,but as youcan adding predicates makes /*+ result_cache */ considerably more powerful by caching asubset of larger tables and common queries.&lt;br /&gt;select /*+ result_cache */ col1, col2, col3 from my_table where colA = :B1&lt;br /&gt;&lt;br /&gt;&gt; The compound trigger : A compound trigger lets you implement actions for each of the table DML timing points in asingle trigger&lt;br /&gt;&lt;br /&gt;&gt; PL/SQL unit source can exceeds 32k characters&lt;br /&gt;&lt;br /&gt;&gt; Easier to execute table DDL operations online: Option to wait for active DML operations instead of aborting&lt;br /&gt;&lt;br /&gt;&gt; Fast add column with default value: Does not need to updateall rows to default value.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3011705107462484821?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3011705107462484821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3011705107462484821' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3011705107462484821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3011705107462484821'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/12/oracle-11g-database-sql-and-pl-sql-new.html' title='SQL and PL-SQL New Features in Oracle11g'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-3368164345567595592</id><published>2008-12-02T17:41:00.000-08:00</published><updated>2008-12-03T17:28:54.064-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle11g'/><title type='text'>Oracle Database 11g New Features</title><content type='html'>1) Automatic Diagnostic Repository [ADR]&lt;br /&gt;2) Database Replay&lt;br /&gt;3) Automatic Memory Tuning&lt;br /&gt;4) Case sensitive password&lt;br /&gt;5) Virtual columns and indexes&lt;br /&gt;6) Interval Partition and System Partition&lt;br /&gt;7) The Result Cache&lt;br /&gt;8) ADDM RAC Enhancements&lt;br /&gt;9) SQL Plan Management and SQL Plan Baselines&lt;br /&gt;10) SQL Access Advisor &amp;amp; Partition Advisor&lt;br /&gt;11) SQL Query Repair Advisor&lt;br /&gt;12) SQL Performance Analyzer (SPA) New&lt;br /&gt;13) DBMS_STATS Enhancements&lt;br /&gt;14) The Result Cache&lt;br /&gt;15) Total Recall (Flashback Data Archive)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: The above are only top new features, there are other features as well introduced in 11g which will be included subsequently&lt;br /&gt;&lt;br /&gt;Oracle 11g Database DBA New Features with brief explanation ==========================================&lt;br /&gt;# Database Capture/replay database workloads :&lt;br /&gt;This allows the total database workload to be captured, transferred to a test database create from a backup or standby database, then replayed to test the affects of an upgrade orsystem change. Currently, these are working to a capture performance overhead of 5%, so this will capture real production workloads&lt;br /&gt;&lt;br /&gt;# Automatic Memory Tuning:&lt;br /&gt;Automatic PGA tuning was introduced in Oracle 9i. Automatic SGA tuning was alreadyintroduced in Oracle 10g. But In 11g, all memory can be tuned automatically by setting oneparameter. We can literally tell Oracle how much memory it has and it determines how much to use for PGA, SGA and OS Processes. Maximum and minimum thresholds can be set.&lt;br /&gt;&lt;br /&gt;# Interval partitioning for tables :&lt;br /&gt;Interval partitions are extensions to range partitioning. These provide automation for equi-sized range partitions. Partitions are created as metadata and only the start partition ismade persistent. The additional segments are allocated as the data arrives. The additionalpartitions and local indexes are automatically created.&lt;br /&gt;&lt;br /&gt;# Feature Based Patching:&lt;br /&gt;All one-off patches will be classified as to which feature they affect. This allows you to easilyidentify which patches are necessary for the features you are using. EM will allow you tosubscribe to a feature based patching service, so EM automatically scans for availablepatches for the features you are using&lt;br /&gt;&lt;br /&gt;# RMAN UNDO bypass :&lt;br /&gt;Rman backup can bypass undo. Undo tablespaces are getting huge, but contain lots ofuseless information. Now rman can bypass those types of tablespace. Great for exporting a tablespace from backup.&lt;br /&gt;&lt;br /&gt;# Virtual columns/indexes :&lt;br /&gt;User can create Virtual index on table. This Virtual index is not visible to optimizer, so it willnot affect performance, Developer can user HINT and see is Index is useful or not.InvisibleIndexesprevent premature use of newly created indexes&lt;br /&gt;&lt;br /&gt;# New default audit settings :&lt;br /&gt;Oracle database where general database auditing was "off" by default, logging is intendedto be enabled by default with the Oracle Database 11g beta secure configuration. Notableperformance improvements are planned to be introduced to reduce the performancedegradation typically associated with auditing.&lt;br /&gt;&lt;br /&gt;# Case sensitive password :&lt;br /&gt;Passwords are expected to also become case sensitive This and other changes should resultin better protection against password guessing scenarios. Forexample, in addition to limiting the number of failed login attempts to 10 (defaultconfiguration in 10gR2), Oracle 11g beta’s planned default settings should expirepasswords every 180 days, and limit to seven the number of times a user can login with anexpired password before disabling access.&lt;br /&gt;&lt;br /&gt;# Faster DML triggers :&lt;br /&gt;Create a disabled trigger; specify trigger firing order&lt;br /&gt;&lt;br /&gt;# Fine grained access control for Utl_TCP:&lt;br /&gt;in 10g all port are available, now it is controlled.&lt;br /&gt;&lt;br /&gt;# Data Guard supports "Flashback Standby"&lt;br /&gt;&lt;br /&gt;# New Trigger features&lt;br /&gt;&lt;br /&gt;# Partitioning by logical object and automated partition creation.&lt;br /&gt;&lt;br /&gt;# LOB's - New high-performance LOB features.&lt;br /&gt;&lt;br /&gt;# New Oracle11g Advisors&lt;br /&gt;&lt;br /&gt;# Enhanced Read only tables&lt;br /&gt;&lt;br /&gt;# Table trigger firing order&lt;br /&gt;&lt;br /&gt;# Enhanced Index rebuild online : - Online index build with NO pause to DML.&lt;br /&gt;&lt;br /&gt;# No recompilation of dependent objects:- When&lt;br /&gt;A) Columns added to tables&lt;br /&gt;B) Procedures added to packages&lt;br /&gt;&lt;br /&gt;# Improved optimizer statistics collection speed&lt;br /&gt;&lt;br /&gt;# Online index build with NO pause to DML&lt;br /&gt;&lt;br /&gt;# Read only table :-&lt;br /&gt;alter table t read only&lt;br /&gt;alter table t read write&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Complete list of 11g New Features, You can refer to the following link&lt;br /&gt;&lt;a href="http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/index.html"&gt;http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/index.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3368164345567595592?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3368164345567595592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3368164345567595592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3368164345567595592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3368164345567595592'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/12/oracle-database-11g-top-new-features.html' title='Oracle Database 11g New Features'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-8369821805500281434</id><published>2008-11-23T19:45:00.001-08:00</published><updated>2008-12-02T21:06:56.854-08:00</updated><title type='text'>How to recreate UNDO and TEMP Tablespace</title><content type='html'>&lt;strong&gt;&lt;span style="font-size:85%;"&gt;UNDO Tablespace&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Follow the below steps, if not resize existing UNDO_TBS1 tablespaces:&lt;br /&gt;&lt;br /&gt;Step 1: Bounce the database, Startup the database or startup restrict mode(any users Should not access the database)&lt;br /&gt;&lt;br /&gt;if database is ON LINE and nobody accesses, then goto step 3.&lt;br /&gt;&lt;br /&gt;Step 2: Verify the current UNDO tablespace using show parameter command&lt;br /&gt;&lt;br /&gt;SQL&gt; show parameter UNDO_TABLESPACE&lt;br /&gt;NAME VALUE&lt;br /&gt;--------------- ---------&lt;br /&gt;undo_tablespace UNDO_TBS1&lt;br /&gt;&lt;br /&gt;Step 3: Create New UNDO_TBS2 tablespace with 2GB size&lt;br /&gt;&lt;br /&gt;SQL&gt; CREATE UNDO TABLESPACE UNDO_TBS2&lt;br /&gt;DATAFILE '/u07/app/oracle/oradata/pconv810/undo_tbs2_1.dbf'&lt;br /&gt;SIZE 2048M AUTOEXTEND ON;&lt;br /&gt;&lt;br /&gt;Step 4: Switch tablespace from UNDO_TBS1 to UNDO_TBS2&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER SYSTEM SET UNDO_TABLESPACE = UNDO_TBS2 SCOPE=BOTH;&lt;br /&gt;&lt;br /&gt;Step 5: Check again current UNDO tablespace. It should be UNDO_TBS2&lt;br /&gt;&lt;br /&gt;SQL&gt; show parameter UNDO_TABLESPACE&lt;br /&gt;NAME VALUE&lt;br /&gt;--------------- ---------&lt;br /&gt;undo_tablespace UNDO_TBS2&lt;br /&gt;&lt;br /&gt;Step 6: Drop existing UNDO_TBS1 tablespace&lt;br /&gt;&lt;br /&gt;SQL&gt; DROP TABLESPACE UNDO_TBS1 INCLUDING CONTENTS AND DATAFILES;&lt;br /&gt;&lt;br /&gt;Step 7: Create new UNDO_TBS1 tablespaces with size 100GB and autoextend off&lt;br /&gt;&lt;br /&gt;SQL&gt; CREATE UNDO TABLESPACE UNDO_TBS1&lt;br /&gt;DATAFILE '/u06/app/oracle/oradata/pconv810/undo_tbs1_1.dbf'&lt;br /&gt;SIZE 2048M;&lt;br /&gt;&lt;br /&gt;Step 8: Switch tablespace from UNDO_TBS2 to UNDO_TBS1&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER SYSTEM SET UNDO_TABLESPACE = UNDO_TBS1 SCOPE=BOTH;&lt;br /&gt;&lt;br /&gt;Step 9: Verify current UNDO tablespace, It should be UNDO_TBS1&lt;br /&gt;&lt;br /&gt;SQL&gt; show parameter UNDO_TABLESPACE&lt;br /&gt;NAME VALUE&lt;br /&gt;--------------- ---------&lt;br /&gt;undo_tablespace UNDO_TBS1&lt;br /&gt;&lt;br /&gt;Step 10: Switch logfile&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER SYSTEM SWITCH LOGFILE;&lt;br /&gt;&lt;br /&gt;Step 11: Open the database,if mount stat&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE OPEN;&lt;br /&gt;&lt;br /&gt;Step 12: Drop existing UNDO_TBS2 tablespace&lt;br /&gt;&lt;br /&gt;SQL&gt; DROP TABLESPACE UNDO_TBS2 INCLUDING CONTENTS AND DATAFILES;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;LAW_TEMP Tablespace:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This is not default tablespace,&lt;br /&gt;Follow the steps if not resize LAW_TEMP tablespace, and this is not default TEMP tablespace.&lt;br /&gt;&lt;br /&gt;STEP 1: To find what are the users are using LAW_TEMP tablespace&lt;br /&gt;&lt;br /&gt;SQL&gt; select username,temporary_tablespace from dba_users order by temporary_tablespace;&lt;br /&gt;USERNAME TEMPORARY_TABLESPACE&lt;br /&gt;------------------------------ ------------------------------&lt;br /&gt;LOGAN LAW_TEMP&lt;br /&gt;LAW_SON LAW_TEMP&lt;br /&gt;COBUPD LAW_TEMP&lt;br /&gt;GEN LAW_TEMP&lt;br /&gt;DBSTATS LAW_TEMP&lt;br /&gt;DSS_LSA LAW_TEMP&lt;br /&gt;&lt;br /&gt;STEP 2: Change the tablespace name above users(point 1) from LAW_TEMP to USER_TEMP&lt;br /&gt;&lt;br /&gt;SQL&gt; select 'ALTER USER 'USERNAME' TEMPORARY TABLESPACE USERS_TEMP ;' FROM DBA_USERS WHERE TEMPORARY_TABLESPACE ='LAW_TEMP'&lt;br /&gt;SQL&gt; /&lt;br /&gt;'ALTERUSER'USERNAME'TEMPORARYTABLESPACE USERS_TEMP;'&lt;br /&gt;---------------------------------------------------------------------------&lt;br /&gt;ALTER USER LOGAN TEMPORARY TABLESPACE USERS_TEMP ;&lt;br /&gt;ALTER USER DSS_LSA TEMPORARY TABLESPACE USERS_TEMP ;&lt;br /&gt;ALTER USER DBSTATS TEMPORARY TABLESPACE USERS_TEMP ;&lt;br /&gt;ALTER USER LAW_SON TEMPORARY TABLESPACE USERS_TEMP ;&lt;br /&gt;ALTER USER COBUPD TEMPORARY TABLESPACE USERS_TEMP ;&lt;br /&gt;ALTER USER GEN TEMPORARY TABLESPACE USERS_TEMP ;&lt;br /&gt;&lt;br /&gt;STEP 3: Verify any users should not using LAW_TEMP&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT USERNAME,TEMPORARY_TABLESPACE FROM DBA_USERS ORDER BY TEMPORARY_TABLESPACE;&lt;br /&gt;&lt;br /&gt;STEP 4: Drop LAW_TEMP tablespace&lt;br /&gt;&lt;br /&gt;SQL&gt; DROP TEMPORARY TABLESPACE law_temp INCLUDING CONTENTS AND DATAFILES;&lt;br /&gt;&lt;br /&gt;STEP 5: Create LAW_TEMP tablespace with 2GB(required space) and autoextend off&lt;br /&gt;&lt;br /&gt;SQL&gt;CREATE SMALLFILE TEMPORARY TABLESPACE "LAW_TEMP" TEMPFILE '/u07/app/oracle/oradata/pconv810/law_temp_01.dbf' SIZE 20000M REUSE;&lt;br /&gt;&lt;br /&gt;STEP 6: Change the users from USERS_TEMP to LAW_TEMP&lt;br /&gt;&lt;br /&gt;ALTER USER LOGAN TEMPORARY TABLESPACE LAW_TEMP ;&lt;br /&gt;ALTER USER DSS_LSA TEMPORARY TABLESPACE LAW_TEMP ;&lt;br /&gt;ALTER USER DBSTATS TEMPORARY TABLESPACE LAW_TEMP ;&lt;br /&gt;ALTER USER LAW_SON TEMPORARY TABLESPACE LAW_TEMP ;&lt;br /&gt;ALTER USER COBUPD TEMPORARY TABLESPACE LAW_TEMP ;&lt;br /&gt;ALTER USER GEN TEMPORARY TABLESPACE LAW_TEMP ;&lt;br /&gt;&lt;br /&gt;STEP 7:Verify again the above point-6 users are using LAW_TEMP&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT USERNAME,TEMPORARY_TABLESPACE FROM DBA_USERS ORDER BY TEMPORARY_TABLESPACE;&lt;br /&gt;&lt;br /&gt;Note: The above LAW_TEMP is not default temporary tablespace, if you want to re create default tablespace, then create new TEMP1 tablespace and assign the users to default temporary tablespace to TEMP1, then follow the above similar steps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-8369821805500281434?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/8369821805500281434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=8369821805500281434' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8369821805500281434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8369821805500281434'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/11/recreation-of-undo-and-temp-tablespace.html' title='How to recreate UNDO and TEMP Tablespace'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-5382307588445976992</id><published>2008-11-19T20:45:00.000-08:00</published><updated>2008-11-20T01:35:51.080-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>RAC learning and download,install links</title><content type='html'>Installing Oracle 10g release RAC on Linux:&lt;br /&gt;http://www.oracle.com/technology/pub/articles/smiley_rac10g_install.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Project Guide for RAC:&lt;br /&gt;http://www.oracle.com/technology/pub/articles/haskins-rac-project-guide.html?rssid=rss_otn_articles&lt;br /&gt;&lt;br /&gt;Oracle RAC best practises(pdf for download):&lt;br /&gt;http://www.pdf-word.net/tutorial-database-oracle/oracle-rac-best-practices-on-linux.html&lt;br /&gt;&lt;br /&gt;Softwares for Oracle DBA (downloadable):&lt;br /&gt;http://www.brothersoft.com/downloads/oracle-dba-tutorial.html&lt;br /&gt;&lt;br /&gt;----------------------------------------------------------------------------------&lt;br /&gt;Instructor led 5-day RAC training course:&lt;br /&gt;http://www.training-classes.com/learn/_k/o/r/a/oracle_10g_rac/_t/ilt/&lt;br /&gt;About(2750 pounds,not sure)&lt;br /&gt;http://www.oracle.com/technology/oramag/oracle/06-nov/o66resources.html&lt;br /&gt;&lt;br /&gt;Davis Burleson RAC courses:&lt;br /&gt;http://www.dba-oracle.com/t_oracle_rac_course.htm&lt;br /&gt;&lt;br /&gt;(about 1500$ in Fermont,usa)&lt;br /&gt;http://www.askedu.net/course/c_79248_ORACLE_9i_RAC.htm&lt;br /&gt;&lt;br /&gt;free ebook and tutorial - Oracle 9i RAC and the Red Hat Global File System:&lt;br /&gt;http://ebook-acrobat-files.blogspot.com/2008/02/free-ebook-and-tutorial-oracle-9i-rac.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RAC tutorials:&lt;br /&gt;http://rapidlibrary.com/index.php?q=oracle+rac+video+tutorial&lt;br /&gt;&lt;br /&gt;Web based learning available for RAC and other Oracle courses(price unknown):&lt;br /&gt;http://www.learnquest.com/CourseOutlineDisplay.asp?coursenumber=DBOR-750&lt;br /&gt;&lt;br /&gt;WEb based and classroom teaching available for RAC,Dataguard and other oracle based (price unknown)&lt;br /&gt;http://www.trubix.com/detail2.php?course_id=215&lt;br /&gt;&lt;br /&gt;400$ course in RAC in orange county,USA:&lt;br /&gt;http://orangecounty.craigslist.org/lss/889646370.html&lt;br /&gt;&lt;br /&gt;RAC seminar(1200$)&lt;br /&gt;http://www.exitcertified.com/training/course/oracle/database_grids/11g/11g-rac-sem/database_11g_rac_concepts_architecture.html&lt;br /&gt;&lt;br /&gt;Online learning from different tutors(price varies from 1000$):&lt;br /&gt;http://www.learnersparadise.com/mentors/cgi-bin/courseProfile.pl?course_id=2128&lt;br /&gt;&lt;br /&gt;TUSC RAC course for 2325$:&lt;br /&gt;http://www.tusc.com/oracle/training/course-rac.html&lt;br /&gt;&lt;br /&gt;Oracle RAc course at 3499$:&lt;br /&gt;http://www.oraclecollege.com/courses.html&lt;br /&gt;&lt;br /&gt;The costs just seem to keep increasing! Anyone knows of a cheaper place to learn RAC, then do send it in.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-5382307588445976992?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/5382307588445976992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=5382307588445976992' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5382307588445976992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/5382307588445976992'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/11/installing-rac-on-oracle.html' title='RAC learning and download,install links'/><author><name>Rita</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-2935838856065298774.post-208045417417247231</id><published>2008-11-19T15:44:00.000-08:00</published><updated>2008-11-19T15:56:39.023-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>How to move a datafile from a file system to ASM</title><content type='html'>Oracle Server - Enterprise Edition - Version: 10.1.0.5.0 to 10.0.2.0.3&lt;br /&gt;--Information in this document applies to any platform.&lt;br /&gt;&lt;br /&gt;Moving a datafile from the file system can be achived in two ways.&lt;br /&gt;&lt;br /&gt;i. While the database is shutdown (in mount stage).&lt;br /&gt;&lt;br /&gt;ii. While the database is running (with the selected tablespace offline).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;i. While the database is shutdown (in mount stage)&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Moving oracle datafile while the database is in mount stage is performed in the following way:&lt;br /&gt;&lt;br /&gt;1. Shutdown and mount the database.&lt;br /&gt;oracle@linux] sqlplus '/as sysdba'&lt;br /&gt;&lt;br /&gt;SQL&gt; shutdown immediate;&lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount;&lt;br /&gt;&lt;br /&gt;2. Ensure you have enough space in the ASM diskgroup to copy the datafile.&lt;br /&gt;First identify the size of the datafile you wish to move.&lt;br /&gt;&lt;br /&gt;SQL&gt; select file#, name, (bytes/1048576) File_Size_MB from v$datafile;&lt;br /&gt;&lt;br /&gt;FILE# NAME FILE_SIZE_MB&lt;br /&gt;----- ---------------------------- --------------&lt;br /&gt;...&lt;br /&gt;4 /oradata/PROD/users01.dbf 2500&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;* In this example we will be moving users01.dbf&lt;br /&gt;&lt;br /&gt;[oracle@linux] export ORACLE_SID=+ASM&lt;br /&gt;&lt;br /&gt;SQL&gt; select NAME, STATE, TOTAL_MB, FREE_MB from v$asm_diskgroup;&lt;br /&gt;NAME STATE TOTAL_MB FREE_MB&lt;br /&gt;------------------------------ ----------- ---------- ----------&lt;br /&gt;DGROUP1 MOUNTED 100 3DGROUP2 MOUNTED 4882 4830&lt;br /&gt;&lt;br /&gt;3. Connect to RMAN and copy the datafile from the filesystem to the select ASM diskgroup.&lt;br /&gt;&lt;br /&gt;[oracle@linux] rman target=/&lt;br /&gt;&lt;br /&gt;RMAN&gt; copy datafile 4 to '+DGROUP2';&lt;br /&gt;Starting backup at 2006/09/05 12:14:23&lt;br /&gt;using target database controlfile instead of recovery catalogallocated&lt;br /&gt;channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=31 devtype=DISK&lt;br /&gt;channel ORA_DISK_1: starting datafile copy&lt;br /&gt;input datafile fno=00004 name=/oradata/PROD/users01.dbf&lt;br /&gt;output filename=+DGROUP2/PROD/datafile/users01.258.600351265 tag=TAG20060905T121424 recid=10 stamp=600351264&lt;br /&gt;channel ORA_DISK_1: datafile copy complete, elapsed time: 00:05:01&lt;br /&gt;Finished backup at 2006/09/05 12:19:24&lt;br /&gt;&lt;br /&gt;4. Update the controlfile with the new location of the datafile.&lt;br /&gt;&lt;br /&gt;[oracle@linux] rman target /&lt;br /&gt;&lt;br /&gt;RMAN&gt; switch datafile 4 to copy;&lt;br /&gt;datafile 4 switched to datafile copy "+DGROUP2/PROD/datafile/users01.258.600351265".&lt;br /&gt;&lt;br /&gt;5. The file is now if the new location.&lt;br /&gt;SQL&gt; select name from v$datafile;&lt;br /&gt;NAME&lt;br /&gt;--------------------------------------------------------------------------------..+DGROUP2/PROD/datafile/users01.258.600351265..&lt;br /&gt;&lt;br /&gt;6. The database may now be opened.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;ii. While the database is running (with the select tablespace offline)&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;In order to move a datafile on a running active database the tablespace where the datafile resides must be placed offline.1. Identify the tablespace which contains the datafile and offline the tablespace.&lt;br /&gt;&lt;br /&gt;SQL&gt; select tablespace_name, file_name from dba_data_files where file_id=4;&lt;br /&gt;TABLESPACE_NAME FILE_NAME&lt;br /&gt;------------------ ------------------------------&lt;br /&gt;USERS /oradata/RMAN/users01.dbfSQL&gt; alter tablespace USERS offline;&lt;br /&gt;&lt;br /&gt;* * * * * Continue with Steps 2 - 5 above. * * * * *&lt;br /&gt;&lt;br /&gt;6. After you have successfully completed the above steps (2 -5) place the tablespace online;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter tablespace USERS online;&lt;br /&gt;&lt;br /&gt;The datafile has now been successfully moved to the ASM diskgroup.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-208045417417247231?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/208045417417247231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=208045417417247231' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/208045417417247231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/208045417417247231'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/11/how-to-move-datafile-from-file-system.html' title='How to move a datafile from a file system to ASM'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-4119465302180813726</id><published>2008-11-19T15:00:00.000-08:00</published><updated>2008-12-03T17:40:37.168-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>How to Recreate ASM Diskgroups in Oracle10g</title><content type='html'>&lt;strong&gt;&lt;span style="font-size:130%;"&gt;ASM:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Automatic Storage Management (ASM) is a feature in Oracle Database 10g/11g that provides the database administrator with a simple storage management interface that is consistent across all server and storage platforms. As a vertically integrated file system and volume manager, purpose-built for Oracle database files, ASM provides the performance of async I/O with the easy management of a file system. ASM provides capability that saves the DBAs time and provides flexibility to manage a dynamic database environment with increased efficiency.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Steps to Re-Create ASM Diskgroups&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In the event you cannot mount your ASM disk groups, you will be unable to start any databases using those disk groups. Here is a possible error reported when mounting ASM disk groups:&lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount&lt;br /&gt;ORA-15032: not all alterations performed&lt;br /&gt;ORA-15063: diskgroup "&lt;disk&gt;" lacks quorum of 2 PST disks; 0 found&lt;br /&gt;This error may occur if:&lt;br /&gt;a) ASM disk(s) is not visible on the operating system.&lt;br /&gt;b) asm_diskstring parameter is not set correctly on ASM instance(s)&lt;br /&gt;c) ASM metadata in disk is overwritten or corrupted&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you have seen this error or another error indicating ASM metadata corruption and have verified that the disk(s) is visable with correct permissions on the operating system and that the asm_diskstring parameter is set correctly, your ASM metadata may be corrupted. If this is the case, you may need to re-create your ASM instance(s) and disk group(s).&lt;br /&gt;The steps are:&lt;br /&gt;1. Ensure that you have a prior RMAN backup of all databases using ASM&lt;br /&gt;2. Shut down your ASM instance(s)&lt;br /&gt;3. Use dd to clear the metadata from ASM disks&lt;br /&gt;4. Re-create your ASM disk group(s)&lt;br /&gt;5. Restore databases&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;Step 1: Ensure that you have a prior RMAN backup of all databases using ASM&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The only way you can recover from ASM metadata corruption is to have a prior RMAN backup of the database in an area that would not be affected by an ASM instance outage. As part of your recovery strategy, you should consider integrating tape or other tertiary storage to safeguard your backups.&lt;br /&gt;&lt;br /&gt;Example of RMAN backup:&lt;br /&gt;1. Connect RMAN to the target database for backup&lt;br /&gt;&lt;br /&gt;rman nocatalog target /&lt;br /&gt;&lt;br /&gt;2. Now Backup your Database, Archive logs and Control files.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;RMAN&gt; backup device type disk format '/u03/backup/%U' database plus archivelog;&lt;br /&gt;RMAN&gt; backup device type disk format '/u03/backup/ctrlf_%U' current controlfile;&lt;br /&gt;&lt;br /&gt;3. Manually make copies of your spfiles.&lt;br /&gt;Example:&lt;br /&gt;CREATE PFILE='/u03/app/oracle/product/10.1.0/dbs/init&lt;sid&gt;.ora'&lt;br /&gt;FROM SPFILE='/+DATA/V10FJ/spfile.ora';&lt;br /&gt;&lt;br /&gt;If you do not have a good backup of all databases (datafiles, controlfiles,redo logs, archive logs),&lt;br /&gt;&lt;br /&gt;DO NOT CONTINUE BEYOND STEP 1!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;Step 2: Shutdown your ASM instance(s)&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Stop your database instances and ASM instances with sqlplus or srvctl (RAC)SQLPLUS&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;setenv ORACLE_SID +ASM&lt;br /&gt;&lt;br /&gt;sqlplus '/ as sysdba'&lt;br /&gt;&lt;br /&gt;SQL&gt; shutdown immediate&lt;br /&gt;&lt;br /&gt;setenv ORACLE_SID DBSCOTT&lt;br /&gt;&lt;br /&gt;sqlplus '/ as sysdba'&lt;br /&gt;SQL&gt; shutdown immediate&lt;br /&gt;&lt;br /&gt;SRVCTL (RAC) Example:&lt;br /&gt;srvctl stop asm -n &lt;node&gt;&lt;br /&gt;srvctl stop asm -n &lt;node&gt;&lt;br /&gt;srvctl stop database -d &lt;db_name&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;Step3: Use DD to clear the metadata from ASM disks&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;All ASM metadata must be cleared before attempting to re-create ASM instances and diskgroups.&lt;br /&gt;&lt;br /&gt;Example Command:&lt;br /&gt;dd if=/dev/zero of=/dev/rdsk/c1t4d0s4 bs=8192 count=12800&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;Step 4: Re-create your ASM disk group(s)&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Set your ORACLE_SID to your ASM instance and create a new diskgroup.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;setenv ORACLE_SID +ASM&lt;br /&gt;&lt;br /&gt;sqlplus '/ as sysdba'&lt;br /&gt;&lt;br /&gt;SQL&gt; startup nomount&lt;br /&gt;&lt;br /&gt;SQL&gt; create diskgroup data disk '/dev/rdsk/c1t4d0s4';&lt;br /&gt;&lt;br /&gt;SQL&gt; shutdown immediate&lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;Step 5: Restore database&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;1. Start instance using the local copy of your pfile from step 1.&lt;br /&gt;&lt;br /&gt;setenv ORACLE_SID DBSCOTT&lt;br /&gt;&lt;br /&gt;sqlplus '/ as sysdba'&lt;br /&gt;&lt;br /&gt;SQL&gt; startup nomount pfile=init&lt;sid&gt;.ora&lt;br /&gt;&lt;br /&gt;2. Use RMAN to restore the controlfiles and database.&lt;br /&gt;Example:&lt;br /&gt;rman target /RMAN&gt; restore controlfile from '/u03/backup/ctrlf_&lt;string&gt;'; -- where &lt;string&gt;is the unique string generated by %U.&lt;br /&gt;&lt;br /&gt;RMAN&gt; alter database mount;&lt;br /&gt;&lt;br /&gt;RMAN&gt; restore database;&lt;br /&gt;&lt;br /&gt;RMAN&gt; recover database;&lt;br /&gt;&lt;br /&gt;RMAN&gt; alter database open resetlogs;&lt;br /&gt;&lt;br /&gt;3. Connect to the ASM instance and get the controlfile name.&lt;br /&gt;Example:&lt;br /&gt;setenv ORACLE_SID +ASM&lt;br /&gt;&lt;br /&gt;sqlplus '/ as sysdba'&lt;br /&gt;&lt;br /&gt;SQL&gt; select name, alias_directory from v$asm_alias;&lt;br /&gt;&lt;br /&gt;Look for the controlfile name under the CONTROLFILE directory eg: Current.256.1&lt;br /&gt;&lt;br /&gt;4. Edit the init&lt;sid&gt;.ora and change the control_files parameter to point to the one identified from the ASM v$asm_alias view.&lt;br /&gt;&lt;br /&gt;5. Re-create the spfile. Example:&lt;br /&gt;&lt;br /&gt;SQL&gt; create spfile='+DATA/V10FJ/spfileV10FJ.ora' from pfile='/u03/app/oracle/product/10.1.0/dbs/pfile.out';&lt;br /&gt;&lt;br /&gt;6. Shutdown and restart the instance to use the newly created spfile.&lt;br /&gt;&lt;br /&gt;7. Repeat the "STEP 5" section for additional databases.&lt;br /&gt;&lt;br /&gt;Keywords&lt;br /&gt;ASM ; V$ASM_ALIAS ; V$ASM_ALIAS ; V$ASM_DISK ; V$ASM_DISKGROUP ;&lt;br /&gt;&lt;br /&gt;Reference: Oracle metalink ID:268481.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-4119465302180813726?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/4119465302180813726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=4119465302180813726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/4119465302180813726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/4119465302180813726'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/11/asm.html' title='How to Recreate ASM Diskgroups in Oracle10g'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-7056333996220767903</id><published>2008-11-19T14:41:00.000-08:00</published><updated>2008-11-19T14:50:52.423-08:00</updated><title type='text'>MATERIALIZED VIEW  Sample Scripts</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Creating Primary Key Materialized Views: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Example The following statement creates the primary-key materialized view catalog on the sample table oe.product_information:&lt;br /&gt;     CREATE MATERIALIZED VIEW catalog&lt;br /&gt;     REFRESH FAST START WITH SYSDATE NEXT SYSDATE + 1/4096&lt;br /&gt;     WITH PRIMARY KEY&lt;br /&gt;     AS SELECT * FROM product_information;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Creating Rowid Materialized Views: Example The following statement creates a rowid materialized view on the sample table oe.orders:&lt;br /&gt;    CREATE MATERIALIZED VIEW order_data REFRESH WITH ROWID&lt;br /&gt;    AS SELECT * FROM orders;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Periodic Refresh of Materialized Views:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Example The following statement creates the primary key materialized view emp_data and populates it with data from the sample table hr.employees:&lt;br /&gt;     CREATE MATERIALIZED VIEW LOG ON employees&lt;br /&gt;     WITH PRIMARY KEY&lt;br /&gt;     INCLUDING NEW VALUES;&lt;br /&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;    CREATE MATERIALIZED VIEW emp_data&lt;br /&gt;    PCTFREE 5 PCTUSED 60&lt;br /&gt;    TABLESPACE example&lt;br /&gt;    STORAGE (INITIAL 50K NEXT 50K)&lt;br /&gt;    REFRESH FAST NEXT sysdate + 7&lt;br /&gt;    AS SELECT * FROM employees;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;The statement does not include a START WITH parameter, so Oracle determines the first automatic refresh time by evaluating the NEXT value using the current SYSDATE. A materialized view log was created for the employee table, so Oracle performs a fast refresh of the materialized view every 7 days, beginning 7 days after the materialized view is created.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Because the materialized view conforms to the conditions for fast refresh, Oracle will perform a fast refresh. The preceding statement also establishes storage characteristics that Oracle uses to maintain the materialized view.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Automatic Refresh Times for Materialized Views: Example The following statement creates the complex materialized view all_customers that queries the employee tables on the remote and local databases:&lt;br /&gt;    CREATE MATERIALIZED VIEW all_customers&lt;br /&gt;    PCTFREE 5 PCTUSED 60&lt;br /&gt;    TABLESPACE example&lt;br /&gt;    STORAGE (INITIAL 50K NEXT 50K)&lt;br /&gt;    USING INDEX STORAGE (INITIAL 25K NEXT 25K)&lt;br /&gt;    REFRESH START WITH ROUND(SYSDATE + 1) + 11/24&lt;br /&gt;    NEXT NEXT_DAY(TRUNC(SYSDATE), ’MONDAY’) + 15/24&lt;br /&gt;    AS SELECT * FROM sh.customers@remote&lt;br /&gt;    UNION&lt;br /&gt;   SELECT * FROM &lt;/span&gt;&lt;a href="mailto:sh.customers@local"&gt;&lt;span style="font-size:85%;"&gt;sh.customers@local&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Oracle automatically refreshes this materialized view tomorrow at 11:00 a.m. and subsequently every Monday at 3:00 p.m.. The default refresh method is FORCE. all_emps contains a UNION operator, which is not supported for fast refresh, so Oracle will automatically perform a complete refresh.&lt;br /&gt;The preceding statement also establishes storage characteristics for both the materialized view and the index that Oracle uses to maintain it: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;n The first establishes the sizes of the first and second extents of the materialized view as 50 kilobytes each.&lt;br /&gt;n The second (appearing with the USING INDEX clause) establishes the sizes of the first and second extents of the index as 25 kilobytes each.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Creating a Fast Refreshable Materialized View: Example The following statement creates a fast-refreshable materialized view that selects columns from the order_items table in the sample oe schema,&lt;br /&gt;using the UNION set operator to restrict the rows returned from the roduct_information and inventories tables using WHERE conditions.&lt;br /&gt;&lt;br /&gt;The materialized view logs for order_items and product_information were created in the "Examples" section of CREATE MATERIALIZED VIEW LOG.&lt;br /&gt;&lt;br /&gt;This example requires a materialized view log on oe.inventories.&lt;br /&gt;   CREATE MATERIALIZED VIEW LOG ON inventories&lt;br /&gt;   WITH (quantity_on_hand);&lt;br /&gt;  &lt;br /&gt;   CREATE MATERIALIZED VIEW warranty_orders REFRESH FAST AS&lt;br /&gt;   SELECT order_id, line_item_id, product_id FROM order_items o&lt;br /&gt;   WHERE EXISTS&lt;br /&gt;   (SELECT * FROM inventories i WHERE o.product_id = i.product_id&lt;br /&gt;   AND i.quantity_on_hand IS NOT NULL)&lt;br /&gt;   UNION&lt;br /&gt;  SELECT order_id, line_item_id, product_id FROM order_items&lt;br /&gt;  WHERE quantity &gt; 5;&lt;br /&gt;&lt;br /&gt;This materialized view requires that materialized view logs be defined on order_items (with product_id as a join column) and on inventories (with quantity_on_hand as a filter column).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7056333996220767903?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7056333996220767903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7056333996220767903' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7056333996220767903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7056333996220767903'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/11/materialized-view-sample-scripts.html' title='MATERIALIZED VIEW  Sample Scripts'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-3753671398448040143</id><published>2008-11-16T19:11:00.000-08:00</published><updated>2008-11-16T19:22:50.919-08:00</updated><title type='text'>Replication at the Schema level using Oracle10g Streams</title><content type='html'>Data to be replicated is not obtained by direct access to OLTP database. Data extraction process interferes with regular database operation. The source of the information is Oracle's archived log files. This is much less intrusive for online users. Streams uses Oracle’s Log Miner infrastructure to read redo logs.&lt;br /&gt;(For an introduction to Streams, basic concepts, list of reference documentation, and an example of a single table one-way replication procedure, please refer to Sanjay Mishra's article,&lt;br /&gt;"Making Data Flow" at&lt;br /&gt; &lt;a href="http://www.oracle.com/technology/oramag/oracle/04-nov/o64streams.html"&gt;http://www.oracle.com/technology/oramag/oracle/04-nov/o64streams.html&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;The single PL/SQL procedure - dbms_streams_adm.maintain_schemas completely sets up basic schema level replication. Certain tasks must be completed, though, before this procedure runs in step 8.&lt;br /&gt;&lt;br /&gt;Step 1. Configure source database to run in archivelog mode&lt;br /&gt;&lt;br /&gt;Step 2. Set up Streams administrator strmadmin on both databases (source and target)&lt;br /&gt;&lt;br /&gt;Step 3. Adjust initialization parameters on both databases for Streams replication&lt;br /&gt;&lt;br /&gt;Step 4. Create database link from source (ORCLA.WORLD) to target (ORCLB.WORLD)&lt;br /&gt;database&lt;br /&gt;&lt;br /&gt;Step 5. Create database link from target (ORCLB.WORLD) to source (ORCLA.WORLD) database&lt;br /&gt;(This link is needed because I will use the network Data Pump export/import which is not using an export dump file; standard export/import using dump file is also possible )&lt;br /&gt;&lt;br /&gt;Step 6. (Recommended) Create directory on source machine (It will contain generated replication script.)&lt;br /&gt;&lt;br /&gt;Step 7.( Recommended) Run dbms_streams_adm.maintain_schemas with perform_actions parameter set to false on source database to generate the replication script. This is a dry run to verify the script’s correctness and avoid time-consuming replication cleanup (in case the replication setup script fails.)&lt;br /&gt;&lt;br /&gt;Step 8. Run dbms_streams_adm.maintain_schemas procedure on the source database with perform_actions parameter set to true. This will startt the replication setup.&lt;br /&gt;&lt;br /&gt;Step 9. Verify that DDL and DML changes on ORCLA.WORLD are propagated to ORCLB.WORLD&lt;br /&gt;&lt;br /&gt;Steps in detail&lt;br /&gt;For steps 1 – 4,&lt;br /&gt; please refer to the Mishra's article mentioned above. They are identical.&lt;br /&gt;&lt;br /&gt;Step 5. Create a database link on target database:&lt;br /&gt;connect strmadmin/strmadmin@ORCLB.world&lt;br /&gt;CREATE DATABASE LINK ORCLA.WORLD&lt;br /&gt;CONNECT TO STRMADMIN&lt;br /&gt;IDENTIFIED BY STRMADMIN&lt;br /&gt;USING ‘ORCLA.WORLD’;&lt;br /&gt;&lt;br /&gt;Step 6. Create a directory on the source database where the script generated by dbms_streams_adm.maintain_schemas will be stored:&lt;br /&gt;CONNECT strmadmin/strmadmin@orcla.world&lt;br /&gt;CREATE OR REPLACE DIRECTORY ADMIN AS '/home/oracle/Streams';&lt;br /&gt;&lt;br /&gt;Step 7. Generate script schema_replication.sql in Oracle admin directory&lt;br /&gt;(/home/oracle/Streams on Linux):&lt;br /&gt;CONN strmadmin/strmadmin@orcla.world&lt;br /&gt;BEGIN&lt;br /&gt;DBMS_STREAMS_ADM.MAINTAIN_SCHEMAS(&lt;br /&gt;schema_names =&gt; 'scott',&lt;br /&gt;source_database =&gt; 'orcla.world',&lt;br /&gt;destination_database =&gt; 'orclb.world',&lt;br /&gt;capture_name =&gt; 'capture_scott',&lt;br /&gt;capture_queue_table =&gt; 'rep_capture_queue_table',&lt;br /&gt;capture_queue_name =&gt; 'rep_capture_queue',&lt;br /&gt;capture_queue_user =&gt; null,&lt;br /&gt;apply_name =&gt; 'apply_scott',&lt;br /&gt;apply_queue_table =&gt; 'rep_dest_queue_table',&lt;br /&gt;apply_queue_name =&gt; 'rep_dest_queue',&lt;br /&gt;apply_queue_user =&gt; null,&lt;br /&gt;propagation_name =&gt; 'prop_scott',&lt;br /&gt;log_file =&gt; 'exp.log',&lt;br /&gt;bi_directional =&gt; false,&lt;br /&gt;include_ddl =&gt; true,&lt;br /&gt;instantiation =&gt; dbms_streams_adm.instantiation_schema_network,&lt;br /&gt;perform_actions =&gt; false,&lt;br /&gt;script_name =&gt; 'schema_replication.sql',&lt;br /&gt;script_directory_object =&gt; 'admin'&lt;br /&gt;);&lt;br /&gt;END;&lt;br /&gt;The /home/oracle/Streams/schema_replication.sql script now contains commands to completely configure SCOTT schema replication. A brief description of scripts contents follows:&lt;br /&gt;- Supplemental logging data is added for all tables in the SCOTT schema; it is required to log additional data to redo logs if you want Streams to work properly&lt;br /&gt;- dbms_streams_adm.set_up_queue procedure is run to create capture queue and capture table&lt;br /&gt;- dbms_streams_adm.add_schema_propagation_rules is run to add rules to the positive rule set for propagation; this is queue-to-queue propagation&lt;br /&gt;- Propagation is temporarily disabled&lt;br /&gt;- dbms_streams_adm.add_schema_rules is run to add rules to capture process&lt;br /&gt;- Datapump schema mode import (network) is run from ORCLB.WORLD database ( SCOTT schema is exported from ORCLA.WORLD and imported into ORCLB.WORLD; DBMS_DATAPUMP package is used for this purpose)&lt;br /&gt;- Capture process is started on ORCLA.WORLD database&lt;br /&gt;- Apply queue rep_dest_queue on the target database is configured using the dbms_streams_adm.set_up_queue procedure&lt;br /&gt;- Schema rules for the apply process are added (dbms_streams_adm.add_schema_rules procedure is executed )&lt;br /&gt;- A tag is added to apply process and apply process is started&lt;br /&gt;- Propagation is enabled&lt;br /&gt;&lt;br /&gt;Step 8. We will now execute maintain_schemas procedure; perform_actions parameter is changed to true.&lt;br /&gt;BEGIN&lt;br /&gt;DBMS_STREAMS_ADM.MAINTAIN_SCHEMAS(&lt;br /&gt;schema_names =&gt; 'scott',&lt;br /&gt;source_directory_object =&gt; NULL,&lt;br /&gt;destination_directory_object =&gt; NULL,&lt;br /&gt;source_database =&gt; 'orcla.world',&lt;br /&gt;destination_database =&gt; 'orclb.world',&lt;br /&gt;capture_name =&gt; 'capture_scott',&lt;br /&gt;capture_queue_table =&gt; 'rep_capture_queue_table',&lt;br /&gt;capture_queue_name =&gt; 'rep_capture_queue',&lt;br /&gt;capture_queue_user =&gt; null,&lt;br /&gt;apply_name =&gt; 'apply_scott',&lt;br /&gt;apply_queue_table =&gt; 'rep_dest_queue_table',&lt;br /&gt;apply_queue_name =&gt; 'rep_dest_queue',&lt;br /&gt;apply_queue_user =&gt; null,&lt;br /&gt;propagation_name =&gt; 'prop_scott',&lt;br /&gt;log_file =&gt; 'exp.log',&lt;br /&gt;bi_directional =&gt; false,&lt;br /&gt;include_ddl =&gt; true,&lt;br /&gt;instantiation =&gt; dbms_streams_adm.instantiation_schema_network,&lt;br /&gt;perform_actions =&gt; true&lt;br /&gt;);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;The execution of this procedure will take some time, depending on the schema size, number of objects, volume of data etc. When it completes all DML and DDL changes to tables in the SCOTT schema on ORCLA.WORLD, the database will be propagated to ORCLB.WORLD database.&lt;br /&gt;Oracle Streams is relatively new tool primarily designed to help move real time data between databases.&lt;br /&gt;The easy setup, possibility of light data transformation, and good performance make it welcome addition to a DBA's toolset.&lt;br /&gt;&lt;br /&gt;The above Steps are taken from the below url,&lt;br /&gt;Reference: &lt;a href="http://www.jlcomp.demon.co.uk/faq/streams_01.html"&gt;http://www.jlcomp.demon.co.uk/faq/streams_01.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3753671398448040143?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3753671398448040143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3753671398448040143' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3753671398448040143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3753671398448040143'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/11/replication-at-schema-level-using.html' title='Replication at the Schema level using Oracle10g Streams'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-2067716899044712099</id><published>2008-11-13T01:04:00.000-08:00</published><updated>2008-11-16T21:07:47.860-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FAQ'/><title type='text'>Database Support FAQ</title><content type='html'>&lt;span style="color:#cc0000;"&gt;1.How to identify the sid using Server Process id?&lt;/span&gt;&lt;br /&gt;&lt;a name="Identifysidusingspid"&gt;&lt;/a&gt;&lt;br /&gt;select sid&lt;br /&gt;from v$session&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;where paddr in (select addr &lt;/p&gt;&lt;p&gt;from v$process&lt;br /&gt;where background is null&lt;br /&gt;and spid=&amp;amp;Server_process_id);&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;span style="color:#cc0000;"&gt;2.How to identify the sid using Server Process id?&lt;br /&gt;&lt;/span&gt;&lt;a name="Identifysidusingspid1"&gt;&lt;/a&gt;&lt;br /&gt;select sid&lt;br /&gt;from v$session&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;where paddr in (select addr &lt;/p&gt;&lt;p&gt;from v$process&lt;br /&gt;&lt;br /&gt;where background is null&lt;br /&gt;&lt;br /&gt;and spid=&amp;amp;Server_process_id);&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;a name="Identifyinactivesession"&gt;&lt;span style="color:#cc0000;"&gt;3.How to identify the sessions which are INACTIVE for more than 1 hour?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;select sid&lt;br /&gt;from v$session&lt;br /&gt;&lt;blockquote&gt;where paddr in (select addr&lt;br /&gt;&lt;br /&gt;from v$process&lt;br /&gt;&lt;br /&gt;where background is null)&lt;/blockquote&gt;&lt;br /&gt;and status='INACTIVE'&lt;br /&gt;and last_call_et/60/60&gt;1;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;4. How to identify the sql used by a session?&lt;br /&gt;&lt;/span&gt;&lt;a name="Identifysqlusingsid"&gt;&lt;/a&gt;select sql.sql_text&lt;br /&gt;from v$session ses, v$sqltext sql&lt;br /&gt;where sql.address=ses.sql_address&lt;br /&gt;and sql.hash_value=ses.sql_hash_value&lt;br /&gt;and sid=&amp;amp;session_id&lt;br /&gt;order by piece;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;5.How to identify the rollback/Undo segments used by a session?&lt;/span&gt;&lt;br /&gt;&lt;a name="Identifyundousingsid"&gt;&lt;/a&gt;&lt;br /&gt;select *&lt;br /&gt;from v$rollname&lt;br /&gt;&lt;blockquote&gt;where usn = (select xidusn&lt;br /&gt;&lt;br /&gt;from v$transaction&lt;br /&gt;&lt;br /&gt;where addr in (select taddr&lt;br /&gt;&lt;br /&gt;from v$session&lt;br /&gt;&lt;br /&gt;where sid=&amp;amp;session_id));&lt;/blockquote&gt;&lt;br /&gt;&lt;a name="Identifyfreespaceinundo"&gt;&lt;span style="color:#cc0000;"&gt;6.How to identify the free space in undo tablespaces?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;select sum(bytes/1024/1024/1024) GB, status, tablespace_name&lt;br /&gt;from dba_undo_extents&lt;br /&gt;group by status, tablespace_name;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;7.Definition of Transaction Status:&lt;/span&gt;&lt;br /&gt;a. ACTIVE means that this undo segment contains active transactions&lt;br /&gt;b. EXPIRED means that this segment is not required at all (as per undo_retention).&lt;br /&gt;c. UNEXPIRED means that this segment does not contain any active transactions but it contains transactions which are still required for Flashback option (as per Undo_retention).&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;8.How to identify the wait events for a Session?&lt;br /&gt;&lt;/span&gt;&lt;a name="Identifywaitevents"&gt;&lt;/a&gt;&lt;br /&gt;select p1, p2, p3, event&lt;br /&gt;from v$session_wait&lt;br /&gt;where sid=&amp;amp;session_id;&lt;br /&gt;&lt;br /&gt;Also check the following:&lt;br /&gt;&lt;br /&gt;select count(*), event&lt;br /&gt;from v$session_wait&lt;br /&gt;group by event;&lt;br /&gt;&lt;br /&gt;&lt;a name="Troubleshootsession"&gt;&lt;span style="color:#cc0000;"&gt;9.Why the session is taking more time than normal?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;Step 1: Check the Alert log for errors&lt;br /&gt;Step 2: Check with the end user on how long the session used to take to complete.&lt;br /&gt;Step 3: Check with user whether any increase in the volume of data being&lt;br /&gt;Processed.&lt;br /&gt;Step 4: Check the wait events for this sessions by using the query given in Point&lt;br /&gt;No.10.&lt;br /&gt;Step 5: Identify the tables begin accessed by that session using the Point No.18.&lt;br /&gt;Step 6: Check whether Statistics have been generated for these tables identified&lt;br /&gt;in Step 4 using the following query:&lt;br /&gt;&lt;br /&gt;select last_analyzed, num_rows&lt;br /&gt;from dba_tables&lt;br /&gt;where owner='&amp;amp;table_owner'&lt;br /&gt;and table_name='&amp;amp;object_name';&lt;br /&gt;&lt;br /&gt;Note: If the table is partitioned, check in dba_tab_partitions also and&lt;br /&gt;for subpartitions check in dba_tab_subpartitions.&lt;br /&gt;&lt;br /&gt;Step 7: Check whether Statistics have been generated for the indexes of the tables&lt;br /&gt;Identified in Step 4 Using the following query:&lt;br /&gt;&lt;br /&gt;select last_analyzed, num_rows&lt;br /&gt;from dba_indexes&lt;br /&gt;where table_owner='&amp;amp;table_owner'&lt;br /&gt;and table_name='&amp;amp;table_name';&lt;br /&gt;&lt;br /&gt;Note: If the table is partitioned, check in dba_ind_partitions and for&lt;br /&gt;subpartitions check in dba_ind_subpartitions.&lt;br /&gt;&lt;br /&gt;Step 8: If Statistics is not up-to-date, Generate stats using dbms_stats package.&lt;br /&gt;Step 9: Follow the Query Tuning approach&lt;br /&gt;&lt;br /&gt;&lt;a name="sessionhanging"&gt;&lt;span style="color:#cc0000;"&gt;10.Is the session hanging or running fine&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#cc0000;"&gt;?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;select last_call_et/60/60, status&lt;br /&gt;from v$session&lt;br /&gt;where sid=&amp;amp;session_id;&lt;br /&gt;&lt;br /&gt;If the Status in the above query is “ACTIVE', then the current sql being executed by the session is running for so many hours(last_call_et/60/60).&lt;br /&gt;&lt;br /&gt;If the time taken by the current sql is too high, then trouble shoot using the steps mentioned in Point No. 7&lt;br /&gt;&lt;br /&gt;If the Status in the above query is “INACTIVE', then the session is “INACTIVE” for so many hours(last_call_et/60/60). Then get the long running query, or find out the query using mentioned in Point No. 3, You may not get any sql. Then you can discuss with the end user and you can kill this session and re-start the job.&lt;br /&gt;&lt;br /&gt;&lt;a name="dbfilesequentialread"&gt;&lt;span style="color:#cc0000;"&gt;11.How to handle “db file sequential Read” wait event?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;db file sequential Read wait event signify time waited for I/O read requests to&lt;br /&gt;complete. Time is reported in 1000's of a second.&lt;br /&gt;&lt;br /&gt;A db file sequential read operation reads data into contiguous memory&lt;br /&gt;(usually a single-block read with p3=1, but can be multiple blocks).&lt;br /&gt;Single block I/Os are usually the result of using indexes.&lt;br /&gt;This event is also used for rebuilding the control file and&lt;br /&gt;reading datafile headers (P2=1). In general, this event is indicative of&lt;br /&gt;disk contention on index reads.&lt;br /&gt;&lt;br /&gt;Find out the P1, P2, and P3 for this Wait event using the query mentioned in Point&lt;br /&gt;No 6.&lt;br /&gt;In this case:&lt;br /&gt;P1 = file#&lt;br /&gt;P2 = block#&lt;br /&gt;P3 = blocks&lt;br /&gt;&lt;br /&gt;To find out the Segment on which it is doing the db file sequential read, Use the&lt;br /&gt;following query:&lt;br /&gt;&lt;br /&gt;select segment_name&lt;br /&gt;from dba_extents&lt;br /&gt;where file_id=&amp;amp;p1&lt;br /&gt;and p2 between block_id and block_id+blocks-1;&lt;br /&gt;&lt;br /&gt;Follow the Steps Mentioned in Point No. 7 to troubleshoot it further.&lt;br /&gt;&lt;br /&gt;&lt;a name="dbfilescatteredread"&gt;&lt;span style="color:#cc0000;"&gt;12.How to handle “db file scattered Read” wait event?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A db file scattered read is the same type of event as "db file sequential read",&lt;br /&gt;Except that Oracle will read multiple data blocks. Multi-block reads are&lt;br /&gt;typically used on full table scans. The name "scattered read" may seem&lt;br /&gt;misleading but it refers to the fact that multiple blocks are read into DB block&lt;br /&gt;buffers that are 'scattered' throughout memory.&lt;br /&gt;&lt;br /&gt;Find out the P1, P2 and P3 for this Wait event using the query mentioned in Point&lt;br /&gt;No 6.&lt;br /&gt;In this case:&lt;br /&gt;&lt;br /&gt;P1 = file#&lt;br /&gt;P2 = block#&lt;br /&gt;P3 = blocks&lt;br /&gt;&lt;br /&gt;To find out the Segment on which it is doing the db file sequential read, Use the&lt;br /&gt;following query:&lt;br /&gt;&lt;br /&gt;select segment_name&lt;br /&gt;from dba_extents&lt;br /&gt;where file_id=&amp;amp;p1&lt;br /&gt;and p2 between block_id and block_id+blocks-1;&lt;br /&gt;&lt;br /&gt;Follow the Steps Mentioned in Point No. 7 to troubleshoot it further.&lt;br /&gt;&lt;br /&gt;&lt;a name="Highcpuload"&gt;&lt;span style="color:#cc0000;"&gt;13.What should we do if the CPU load on the server is high?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Use the top command to identify the top 5 sessions. Identify the process id of these top sessions.&lt;br /&gt;Identify the Oracle Session id using the query given in Point No. 2.&lt;br /&gt;Identify the SQL used by this session using the query given in Point No. 4&lt;br /&gt;&lt;br /&gt;Follow the Steps mentioned in the Point No 7 to Troubleshoot it further.&lt;br /&gt;&lt;br /&gt;&lt;a name="Identifysidinremote"&gt;&lt;span style="color:#cc0000;"&gt;14.How to identify the sid of the session in the remote database?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;Step 1: Identify the spid of the Session in the local database:&lt;br /&gt;&lt;br /&gt;select spid&lt;br /&gt;from v$process&lt;br /&gt;where background is null&lt;br /&gt;and addr in (select paddr&lt;br /&gt;from v$session&lt;br /&gt;where sid=&amp;amp;session_id);&lt;br /&gt;&lt;br /&gt;Step 2: Identify the Session id in the Remote Database:&lt;br /&gt;&lt;br /&gt;select sid&lt;br /&gt;from v$session&lt;br /&gt;where process='&amp;amp;SPID_IDENTIFIED_IN_STEP 1';&lt;br /&gt;&lt;br /&gt;&lt;a name="Objectaccessedbysess"&gt;&lt;span style="color:#cc0000;"&gt;15.How to identify the objects accessed by a session?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;select owner, object, type&lt;br /&gt;from v$access&lt;br /&gt;where sid=&amp;amp;session_id&lt;br /&gt;and owner not in ('SYS','SYSTEM');&lt;br /&gt;&lt;br /&gt;&lt;a name="Identifyparallelsessusingsid"&gt;&lt;span style="color:#cc0000;"&gt;16.How to identify the parallel sessions for any oracle session id?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Select qcsid, sid&lt;br /&gt;from v$px_session&lt;br /&gt;where qcsid=&amp;amp;session_id;&lt;br /&gt;&lt;br /&gt;&lt;a name="sqltuningapproach"&gt;&lt;span style="color:#cc0000;"&gt;17.What is the best approach for Tuning an Oracle Sql Query?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Avoid Using the Following:&lt;br /&gt;a. Boolean Operators, Is null &amp;amp; Is not Null.&lt;br /&gt;b. not in, != Operators&lt;br /&gt;c. like '%patterns', not exists&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Do's:&lt;br /&gt;&lt;br /&gt;a. Enable aliases to prefix all columns.&lt;br /&gt;b. Use sql joins instead of sub-queries&lt;br /&gt;c. Make the tables with the least number of rows as the driving table by keeping them first in the FROM clause.&lt;br /&gt;d. Use concatenated indexes wherever appropriate.&lt;br /&gt;e. Pick up the Best Join method.&lt;br /&gt;f. Nested loops joins are best for indexed joins of subsets.&lt;br /&gt;g. Hash joins are usually the best choice for "big" joins&lt;br /&gt;h. Pick the best "driving" table&lt;br /&gt;i. Use bind variables. Bind variables are key to application scalability.&lt;br /&gt;j. Use Oracle hints wherever appropriate&lt;br /&gt;k. Compare performance between alternative syntax for your SQL statement&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use Explain Plan to Identify the Access path being used by the query.&lt;br /&gt;Syntax is explain plan for actual_sql_statement;&lt;br /&gt;&lt;br /&gt;You can see the output of the explain plan by running the following sql:&lt;br /&gt;$ORACLE_HOME/rdbms/admin/utlxplp.sql&lt;br /&gt;&lt;br /&gt;Alternatively, You can also trace the session by using the&lt;br /&gt;following Command:&lt;br /&gt;&lt;br /&gt;alter session set events '10046 trace name context forever,level 12';&lt;br /&gt;Run the sql Query. This will generate the trace file in udump directory.&lt;br /&gt;&lt;br /&gt;Use tkprof utility to get the readable output of this trace file. Use the&lt;br /&gt;following Syntax:&lt;br /&gt;&lt;br /&gt;tkprof trace_file_name trace_file_name.out sys=no explain=userid/pwd&lt;br /&gt;&lt;br /&gt;This tkprof output file trace_file_name.out will have the access path&lt;br /&gt;Used by the queries and as well the various timed statistics like&lt;br /&gt;cpu time, elapsed time etc.&lt;br /&gt;&lt;br /&gt;• sort – Sorts the SQL statements in the trace file by the criteria deemed most important by the DBA. This option allows the DBA to view the SQL statements that consume the most resources at the top of the file, rather than searching the entire file contents for the poor performers. The following are the data elements available for sorting:&lt;br /&gt;• prscnt – The number of times the SQL was parsed.&lt;br /&gt;• prscpu – The CPU time spent parsing.&lt;br /&gt;• prsela – The elapsed time spent parsing the SQL.&lt;br /&gt;• prsdsk – The number of physical reads required for the parse.&lt;br /&gt;• prsmis – The number of consistent block reads required for the parse.&lt;br /&gt;• prscu - The number of current block reads required for the parse.&lt;br /&gt;• execnt – The number of times the SQL statement was executed.&lt;br /&gt;• execpu – The CPU time spent executing the SQL.&lt;br /&gt;• exeela – The elapsed time spent executing the SQL.&lt;br /&gt;• exedsk – The number of physical reads during execution.&lt;br /&gt;• exeqry – The number of consistent block reads during execution.&lt;br /&gt;• execu – The number of current block reads during execution.&lt;br /&gt;• exerow – The number of rows processed during execution.&lt;br /&gt;• exemis – The number of library cache misses during execution.&lt;br /&gt;• fchcnt – The number of fetches performed.&lt;br /&gt;• fchcpu – The CPU time spent fetching rows.&lt;br /&gt;• fchela – The elapsed time spent fetching rows.&lt;br /&gt;• fchdsk – The number of physical disk reads during the fetch.&lt;br /&gt;• fchqry – The number of consistent block reads during the fetch.&lt;br /&gt;• fchcu – The number of current block reads during the fetch.&lt;br /&gt;• fchrow – The number of rows fetched for the query.&lt;br /&gt;For example: sort=exeela,fchela&lt;br /&gt;&lt;br /&gt;&lt;a name="dbsize"&gt;&lt;span style="color:#cc0000;"&gt;18.How do you determine the size of the database?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;set serveroutput on;&lt;br /&gt;declare&lt;br /&gt;v_data_files_size number :=0;&lt;br /&gt;v_temp_files_size number :=0;&lt;br /&gt;v_redo_log_size number :=0;&lt;br /&gt;v_total_db_size number :=0;&lt;br /&gt;begin&lt;br /&gt;select sum(bytes)/1024/1024/1024&lt;br /&gt;into v_data_files_size&lt;br /&gt;from dba_data_files;&lt;br /&gt;--&lt;br /&gt;select sum(bytes)/1024/1024/1024&lt;br /&gt;into v_temp_files_size&lt;br /&gt;from dba_temp_files;&lt;br /&gt;--&lt;br /&gt;select sum(bytes)/1024/1024/1024&lt;br /&gt;into v_redo_log_size&lt;br /&gt;from v$log;&lt;br /&gt;--&lt;br /&gt;v_total_db_size := v_data_files_size +v_temp_files_size + v_redo_log_size;&lt;br /&gt;dbms_output.put_line('Total Database Size is 'v_total_db_size'GB');&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;a name="freespace"&gt;&lt;span style="color:#cc0000;"&gt;19.How do you determine the free space in a tablespace&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#cc0000;"&gt;?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;select sum(bytes)/1024/1024/1024&lt;br /&gt;from dba_free_space&lt;br /&gt;where tablespace_name='&amp;amp;tablespace_name';&lt;br /&gt;&lt;br /&gt;&lt;a name="addspace"&gt;&lt;span style="color:#cc0000;"&gt;20.How to add space to tablespaces?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;alter tablespace tbs_name add datafile '/u01/oracle/oradata/tbs_name_01.dbf'&lt;br /&gt;size 10g autoextend on next 1g maxsize 30g;&lt;br /&gt;&lt;br /&gt;We can also resize a data file using the following syntax:&lt;br /&gt;alter database datafile '/u01/oracle/oradata/tbs_name_01.dbf' resize 15g;&lt;br /&gt;&lt;br /&gt;&lt;a name="monitorspace"&gt;&lt;span style="color:#cc0000;"&gt;21.How to monitor space in udump, bdump, cdump?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Find out the udump, bdump &amp;amp; cdump directory by logging into sqlplus:&lt;br /&gt;show parameter user_dump%&lt;br /&gt;show parameter background_dump%&lt;br /&gt;show parameter core_dump_dest%&lt;br /&gt;&lt;br /&gt;Log out of sqlplus and go to the respective directories and do&lt;br /&gt;df –k .&lt;br /&gt;&lt;br /&gt;This command will give the free space available in the file system.&lt;br /&gt;&lt;br /&gt;&lt;a name="findcommand"&gt;&lt;span style="color:#cc0000;"&gt;22.How to use OS command to find out the files which are greater than certain &lt;/span&gt;&lt;/a&gt;&lt;span style="color:#cc0000;"&gt;size?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;find . –size +10000 –exec ls –lt {} \;&lt;br /&gt;In the above command, 10000 is the number of OS blocks.&lt;br /&gt;&lt;br /&gt;&lt;a name="listenerstatus"&gt;&lt;span style="color:#cc0000;"&gt;23.How to check the Status of the listener?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;lsnrctl status LISTENER_NAME&lt;br /&gt;&lt;br /&gt;&lt;a name="startstoplistener"&gt;&lt;span style="color:#cc0000;"&gt;24.How to start and stop the Listener?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;lsnrctl start LISTENER_NAME&lt;br /&gt;lsnrctl stop LISTENER_NAME&lt;br /&gt;&lt;br /&gt;&lt;a name="sysprivtouser"&gt;&lt;span style="color:#cc0000;"&gt;25.How to Find out the system privileges assigned to a user?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;select * from dba_sys_privs&lt;br /&gt;where grantee='&amp;amp;username or role_name';&lt;br /&gt;&lt;br /&gt;&lt;a name="sysprivtorole"&gt;&lt;span style="color:#cc0000;"&gt;26.How to Find out the system privileges assigned to a role?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;select * from role_sys_privs&lt;br /&gt;where role='&amp;amp;role_name';&lt;br /&gt;&lt;br /&gt;&lt;a name="rolegrantedtorole"&gt;&lt;span style="color:#cc0000;"&gt;27.How to find out the roles granted to other roles?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;select * from role_role_privs&lt;br /&gt;where role='&amp;amp;role_name';&lt;br /&gt;&lt;br /&gt;&lt;a name="rolestouser"&gt;&lt;span style="color:#cc0000;"&gt;28.How to find out the roles assigned to a user?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;select * from dba_role_privs&lt;br /&gt;where grantee='&amp;amp;username or role_name';&lt;br /&gt;&lt;br /&gt;&lt;a name="objprivstouser"&gt;&lt;span style="color:#cc0000;"&gt;29.How to Find out the object privileges granted to a user?&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;select * from dba_tab_privs&lt;br /&gt;where grantee='&amp;amp;username or role_name';&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2067716899044712099?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2067716899044712099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2067716899044712099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2067716899044712099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2067716899044712099'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/11/database-support-faq.html' title='Database Support FAQ'/><author><name>Rita</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-2935838856065298774.post-770387171932717584</id><published>2008-11-03T10:29:00.000-08:00</published><updated>2008-11-03T11:29:05.579-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN Commands &amp; SQL Plus</title><content type='html'>&lt;span style="font-size:85%;"&gt;Reference:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;color:#3366ff;"&gt;&lt;a href="http://saifulaziz.wordpress.com/2007/03/12/mynote-about-rman-command-reference/"&gt;http://saifulaziz.wordpress.com/2007/03/12/mynote-about-rman-command-reference/&lt;/a&gt;&lt;/span&gt;&lt;a href="http://saifulaziz.wordpress.com/2007/03/12/mynote-about-rman-command-reference"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-770387171932717584?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/770387171932717584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=770387171932717584' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/770387171932717584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/770387171932717584'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/11/rman-commands-sql-plus.html' title='RMAN Commands &amp; SQL Plus'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-605688473025308505</id><published>2008-10-27T15:42:00.000-07:00</published><updated>2008-11-11T19:49:29.212-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle 10g Specific'/><title type='text'>Calcualte SGA and PGA</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color:#ff0000;"&gt;PGA memory from 4g to 8g:&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="font-size:85%;"&gt;The below formual is mention as per Oracle metalink: &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;PGA_Aggregate_target can be calculated base on the formula given by Oracle :&lt;br /&gt;PGA_AGGREGATE_TARGET = (&lt;total&gt; * 80%) * 20%.&lt;br /&gt;&lt;br /&gt;This value is derived for OLTP databases and desired formula for DSS environment is&lt;br /&gt;PGA_AGGREGATE_TARGET = (&lt;total&gt; * 80%) * 50%.&lt;br /&gt;&lt;br /&gt;We would continue with scenario where the host server has 54G of physical Ram.&lt;br /&gt;&lt;br /&gt;PGA = (54 * 80%) * 20%&lt;br /&gt;= 43.2 * 20%&lt;br /&gt;= 8.64&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:times new roman;font-size:85%;"&gt;&lt;span style="color:#ff0000;"&gt;SGA : Implemented auto-tune SGA&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Serious issues of parsing at different intervals during conversion cycle of data from development to production. Hence we introduce auto tune sga which adjust different pools during workload.&lt;br /&gt;&lt;br /&gt;We set sga_target=10g (earlier sga was set to 10g) and set remaining memory parameters to 0, for e.g.&lt;br /&gt;&lt;br /&gt;db_cache_size =0&lt;br /&gt;Java_pool_size=0&lt;br /&gt;Large_pool_size=0&lt;br /&gt;Shared_pool_sze= 0&lt;br /&gt;Java_pool_size=0&lt;br /&gt;&lt;br /&gt;Also we have set sga_max_size to 20g (earlier sga_max_size was set to 10g), hence we have 10g of memory in hand to increase at runtime on need basis.&lt;br /&gt;&lt;br /&gt;Parameter sga_max_size is set to 20g as because physical ram on server is 54G.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-605688473025308505?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/605688473025308505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=605688473025308505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/605688473025308505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/605688473025308505'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/10/calcualte-sga-and-pga.html' title='Calcualte SGA and PGA'/><author><name>Bharat</name><uri>http://www.blogger.com/profile/14132610335209861747</uri><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-2935838856065298774.post-7178952757721020914</id><published>2008-10-24T19:04:00.000-07:00</published><updated>2008-10-24T19:42:35.859-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Introduction'/><title type='text'></title><content type='html'>&lt;p&gt;The DBA review blog was started to be a one-stop source for a collection of interview questions for Oracle DBAs. &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Based on level of expertise:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I have included the questions based on level of expertise.Wherever possible, the reference pages have been mentioned.&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Basic%20DBA%20Questions"&gt;Basic DBA Questions&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Junior%20DBA%20Questions"&gt;Junior level DBA Questions&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Mid%20level%20DBA"&gt;Mid level DBA Questions&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Senior%20Oracle%20DBA%20Questions"&gt;Senior level DBA Questions&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Personal%20Questions"&gt;Personal Questions&lt;/a&gt; asked in interviews&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/General%20DBA%20Questions"&gt;General DBA Questions&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Real%20DBA%20Interview"&gt;Real DBA Interview&lt;/a&gt; encountered. Also some interesting interview snippets are &lt;a href="http://dbareview.blogspot.com/search/label/Interesting%Read"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Some questions which do not have answers are listed &lt;a href="http://dbareview.blogspot.com/search/label/Unanswered%20questions"&gt;here&lt;/a&gt;, and some questions which are not of a particular category are &lt;a href="http://dbareview.blogspot.com/search/label/Uncategorised"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Based on topics:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;As the blog posts progressed I decided to add links for resources and tutorials, based on topics related to Oracle.&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Backup%20and%20Recovery"&gt;Backup and Recovery&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Data%20Guard"&gt;Data Guard&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Disaster%20Recovery"&gt;Disaster Recovery&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Grid%20control"&gt;Grid Control&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Legato"&gt;Legato&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Oracle%2010g%20Specific"&gt;Oracle 10g specific&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Oracle%20Net%20Services"&gt;Oracle Net Services&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/RAC"&gt;RAC&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/RMAN"&gt;RMAN&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://dbareview.blogspot.com/search/label/Scenarios"&gt;Oracle Scenarios&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I have added reference for &lt;a href="http://dbareview.blogspot.com/search/label/Scripts"&gt;scripts&lt;/a&gt; and other &lt;a href="http://dbareview.blogspot.com/search/label/Useful%20links"&gt;references&lt;/a&gt; like forums.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Note:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;If anyone wants to post a question, you may write it in a comment. Hope this blog is useful to you, as much as I use it for reference. You can use the &lt;span style="color:#cc0000;"&gt;search &lt;/span&gt;feature on the left, to search for questions in this blog.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7178952757721020914?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7178952757721020914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7178952757721020914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7178952757721020914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7178952757721020914'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/10/dba-review-blog-was-started-to-be-one.html' title=''/><author><name>Rita</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-2935838856065298774.post-3971485847900884811</id><published>2008-10-24T14:23:00.000-07:00</published><updated>2008-10-24T14:29:30.083-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Backup and Recovery'/><title type='text'>Backup and Recovery interview questions</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is Restricted Mode of Instance &lt;/span&gt;&lt;span style="color:#cc0000;"&gt;Startup&lt;/span&gt;&lt;span style="color:#cc0000;"&gt; ?&lt;br /&gt;&lt;/span&gt;To Enable Restricted SessionAlter system enable restricted session;To Disable Restricted SessionAlter system disable restricted session;To Start the Database in Restricted ModeSTARTUP RESTRICT&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the disk migration?what is the steps involved in disk migration?&lt;br /&gt;&lt;/span&gt;Disk migration is noting but, migration of data from one OS dependent database to another Dependent database. The steps involved in this are- first go to your target database and export all your data into flat files-next in the destination database during the installation of the database, it asks for data source ,instead of giving the data of the oracle provided , give the path of the flat file you exported previously .&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What do you mean by MEDIA RECOVERY..?&lt;/span&gt;&lt;br /&gt;When physical disk fail, physical database file corrupt then media recovery required &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the difference between media recovery &amp;amp; &lt;/span&gt;&lt;span style="color:#cc0000;"&gt;crash recovery&lt;/span&gt;&lt;span style="color:#cc0000;"&gt;..?&lt;br /&gt;&lt;/span&gt;Media recovery is a process to recover database from backup when physical disk failure occure.crash recovery is a automated process take care by oracle when instance failure occure.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different tools available for hot backups. Is it preferable to take it manually all the time or it depends on the size of the &lt;/span&gt;&lt;span style="color:#cc0000;"&gt;database&lt;/span&gt;&lt;span style="color:#cc0000;"&gt;.&lt;/span&gt;&lt;br /&gt;See A hot backup can be done by either RMAN,User Managed Backups by puting tablespace in backup mode my OEM which does the same as the user managed backup.But the Backup depends upon the size of the database you are using . if the database size in TB the RMAN backup will take more than 10 hours to complete and if the database is critical you can' wait for long to go for so long in this case their are special backup techniques which are given by vendors like TIVOLI and Netbackup they provide BC Vol backup called Business content Volumn Sync which copies a snapshot of the primary data to another place and backsup the database from one SAN to another with in 15 min for 2 TB of database and is the preferable method for big companies.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the difference between recovery and restoring of the &lt;/span&gt;&lt;span style="color:#cc0000;"&gt;database&lt;/span&gt;&lt;span style="color:#cc0000;"&gt;.&lt;br /&gt;&lt;/span&gt;Here is a scenario to understand Restore &amp;amp; Recovery&lt;/p&gt;&lt;p&gt;Sunday 10pm : Database is backed up. and is running fine. Monday 11am : Went down / crashed due to some reason. To bring up the database, we have 2 options:1. Simple Restore : copying files from backup taken sunday night and open the database. Here, we loose all the changes that are done since sunday night.2. Restore and Recovery: Copying files from backup taken sunday night and applying all the archivelog and redo log files to bring up the database to the point of failure. Here you dont loose the changes done until monday 11 am.Restore : copying files from the backup overwriting the existing database filesRecovery: applying the changes to the database till point of failure. these changes are recorded in online redolog and archivelog ( which are the backups of redolog) files.&lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;In &lt;/span&gt;&lt;span style="color:#cc0000;"&gt;Microstrategy&lt;/span&gt;&lt;span style="color:#cc0000;"&gt;, how can you direct the sql generated to use a specifc table. I know of using ApplySimple, but there are other ways too...&lt;/span&gt;&lt;br /&gt;If you need to use a specific table , we need to play with the logical size of that table. Whenever MSTR frames a query it retrieves data from the table that has the least logical size and hence when you set the logical size of your table to be least compared to the other base table, MSTR will retrieve data from this specified table.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3971485847900884811?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3971485847900884811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3971485847900884811' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3971485847900884811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3971485847900884811'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/10/backup-and-recovery-interview-questions.html' title='Backup and Recovery interview questions'/><author><name>Rita</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-2935838856065298774.post-1265113064163466873</id><published>2008-10-24T13:59:00.000-07:00</published><updated>2008-10-24T14:19:33.536-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Scenarios'/><title type='text'>Oracle Scenario Questions</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;em&gt;Note: Most of the answers are for reference, and maynot be exact.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;1. Tell me the total process of eim?&lt;/span&gt;&lt;br /&gt;after you get the legacy data thorugh exl format&lt;br /&gt;1. You identify the which base table and which base column suitable for legacy data.&lt;br /&gt;2.After that you have to use control file or dts processing to load the lagacy to eim table.&lt;br /&gt;3. After that by using IFB file from eim to base table store the data.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is the process of po requisation interface what are the the interface table and basetables and what are validations&lt;/span&gt;&lt;br /&gt;interface tables: PO_REQUISITIONS_INTERFACE_ALLbase tables: PO_REQUISITIONS_HEADERS_ALL PO_REQUISITION_LINES_ALL PO_REQ_DISTRIBUTIONS_ALL&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is mutated trigger, is it the problem of locks. In single user mode we got mutated error, as a DBA how you will resolve it ?&lt;/span&gt;&lt;br /&gt;Mutated Trigger: example:Table A has an insert trigger.In that Trigger: There is a statement like insert into Table A, which caues mutated trigger.Avoid to have those kind of triggers in the database&lt;a class="kLink" oncontextmenu="return false;" id="KonaLink2" onmouseover="adlinkMouseOver(event,this,2);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,2);" onmouseout="adlinkMouseOut(event,this,2);" href="http://www.newinterviewquestions.com/interview/3425/#" target="_top"&gt; &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;In exception handling we have some NOT_FOUND and OTHERS. In inner layer we have some NOT_FOUND and OTHERS. While executing which one whether outer layer or inner layer will check first ?&lt;/span&gt;&lt;br /&gt;Inner layer. execution carry on furthur without going to outer exception blocks.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Dual table explain. Is any data internally storing in dual table. Lot of users are accessing select sysdate from dual and they getting some millisecond differences. If we execute SELECT SYSDATE FROM EMP; what error will we get. Why ?&lt;/span&gt;&lt;br /&gt;The built-in function SYSDATE returns a DATE value containing the current date and time on your system. DUAL is built-in relation in Oracle which serves as a dummy relation to put in the FROM clause when nothing else is appropriate. For example, try "select 1+2 from dual;".So "select sysdate from EMP" won't generate the desired result. Will return sysdate for each record in the emp table&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How can you see the source code of the package ?&lt;/span&gt;&lt;br /&gt;SELECT TEXT FROM USER_SOURCE/ALL_SOURCE/DBA_SOURCEWHERE NAME=&lt;name&gt; AND TYPE='PACKAGE';HERE THE TYPE MAY BE PACKAGE,PROCEDURE,....&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;You are regularly changing the package body part. How will you create or what will you do before creating that package ?&lt;/span&gt;&lt;br /&gt;Create package specifications before creatin package body.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How do you increase the performance of %LIKE operator.&lt;/span&gt;&lt;br /&gt;The wildcard char % can be placed in one of three ways: %searchwordhere% searchwordhere% %searchwordhere The searchwordhere% is the fastest because it can use an index if one is specified on that column. The other two %searchwordhere%, and %searchwordhere would never use the index even if one is specified and thus result in slow table scans.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Shall we create procedures to fetch more than one record.&lt;/span&gt;&lt;br /&gt;You can create a procedure to return REF cursor&lt;a class="kLink" oncontextmenu="return false;" id="KonaLink2" onmouseover="adlinkMouseOver(event,this,2);" style="POSITION: static; TEXT-DECORATION: underline! important" onclick="adlinkMouseClick(event,this,2);" onmouseout="adlinkMouseOut(event,this,2);" href="http://www.newinterviewquestions.com/interview/3419/#" target="_top"&gt;&lt;br /&gt;&lt;/a&gt;or VARRAY or PL/SQL Table type out parameters which can return more than one value&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;If the SQL * Plus hangs for a long time, what is the reason.&lt;/span&gt;&lt;br /&gt;You are running a cartisian query, typically by mistake. Make sure every table has a join criteria specified for it. You are working on a table with 100+million rows. The database server is busy doing a backup. Check the disk IO for the process that appears hung and if the disk IO is increasing every 5-10 seconds then the job is not hung, it is just taking a while to complete.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;All the users are complaining that their application is hanging. How you will resolve this situation in OLTP&lt;/span&gt;&lt;br /&gt;If the user is complaining the hang problem.Then the experience of a dba reflects the work style that he is going to perform and basically as the rule suggest first try to connect to the database itself and fire some query to check whethere you are allowed to connect or not if you are connected then check for any locked_objects by checking v$locked_object and dba_waiters and dba_blockers.then you have to eliminate the things which are working properly and targetting yourself to the weaker place and then check at os level that which process is consuming the most of the time and then analyze the problem if the problem relates to a single user process then check what that user is doing by checking the sql statement he is firing and so on.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;In which situation whether peak time or off peak time you will execute the ANALYZE TABLE command. Why&lt;/span&gt;&lt;br /&gt;You have to run the analyze command during off peak time only because it actually performs full table scan.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;If the large table contains thousands of records and the application is accessing 35% of the table which method to use: index searching or full table scan&lt;/span&gt;&lt;br /&gt;Index is more useful in this situation since it retrive rows faster than fts. fts read all blocks and since table contain thousands or rows .&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the differences between database designing and database modeling ?&lt;/span&gt;&lt;br /&gt;refer http://www.aisintl.com/case/library/R-Theory_vs_ER/r-theory_vs_er.html It says, database modeling comprises: discovery, design, documentation, communication, DDL generation, re engineering&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the differences you have seen while installing Oracle on NT and Unix platform ?&lt;/span&gt;&lt;br /&gt;Oracle Server = Oracle Instance + Oracle Database Oracle instance comprises of Background Process and memory structures in Unix all background processes are treated as independent processes but in windows all are combined together within oracle.Exe in unix when a user logins he is dedicated to the server via an independed process so if require you can kill a process through os level. This is one of the major advantage of using oracle on unix based system rather then windows system bcoz in case database stucks or hangs an independent process causing the problem can be killed and database will be made resumable immediately.And one more diffrence is in windows you are require to create a service to start the instance by using oradim but in unix its not required .You can start the instance.In windows unique service name is required but in unix diffrent user can have the same service name started by them but its not advisable.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;How to do the scheduled task/jobs in Unix platform?&lt;/span&gt;&lt;br /&gt;cron job feature in unix.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What is bulk SQL ?&lt;/span&gt;&lt;br /&gt;Bulk sql are forall and bulk collect INTO statement,For performence reason the bulk bind is used to eleminate the context switching between two sql and pl/sql eng.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;If the entire disk is corrupted how will you and what are the steps to recover the database&lt;/span&gt;&lt;br /&gt;If the entire disk is corrupted and no backup is there don nothing sit and relax their is no possibility of recovery. A backup is required for restoration and for recovery redo log and archive logs.Once if you have theses than think of recovering. A dba should always plan for the recovery scenario depending upon the criticality of the database.oracle provides 0% data loss facilty through data guard and online backup. Its dba who has to decide.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;What are the different types of PL/SQL program units that can be defined and stored in ORACLE database ?&lt;/span&gt;&lt;br /&gt;Procedures and Functions,Packages and Database Triggers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-1265113064163466873?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/1265113064163466873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=1265113064163466873' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1265113064163466873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1265113064163466873'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/10/oracle-scenario-questions.html' title='Oracle Scenario Questions'/><author><name>Rita</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-2935838856065298774.post-4981488420689052037</id><published>2008-10-17T06:05:00.000-07:00</published><updated>2008-10-17T06:09:29.825-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Scribd'/><category scheme='http://www.blogger.com/atom/ns#' term='Statspack'/><title type='text'>Analysing statspack reports</title><content type='html'>&lt;object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_587425953095668" name="doc_587425953095668" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle" height="500" width="100%"&gt;  &lt;param name="movie" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2585390&amp;access_key=key-9kfldflq5ypailmbz5o&amp;page=&amp;version=1&amp;auto_size=true&amp;viewMode="&gt;   &lt;param name="quality" value="high"&gt;   &lt;param name="play" value="true"&gt;  &lt;param name="loop" value="true"&gt;   &lt;param name="scale" value="showall"&gt;  &lt;param name="wmode" value="opaque"&gt;   &lt;param name="devicefont" value="false"&gt;  &lt;param name="bgcolor" value="#ffffff"&gt;   &lt;param name="menu" value="true"&gt;  &lt;param name="allowFullScreen" value="true"&gt;   &lt;param name="allowScriptAccess" value="always"&gt;   &lt;param name="salign" value=""&gt;      &lt;embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=2585390&amp;access_key=key-9kfldflq5ypailmbz5o&amp;page=&amp;version=1&amp;auto_size=true&amp;viewMode=" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_587425953095668_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle"  height="500" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;div style="font-size:10px;text-align:center;width:100%"&gt;&lt;a href="http://www.scribd.com/doc/2585390/analyzing-statspack-report-good-oracle-9i"&gt;analyzing statspack report good  oracle 9i&lt;/a&gt; - &lt;a href="http://www.scribd.com/upload"&gt;Upload a Document to Scribd&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-4981488420689052037?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/4981488420689052037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=4981488420689052037' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/4981488420689052037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/4981488420689052037'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/10/analysing-statspack-reports.html' title='Analysing statspack reports'/><author><name>Rita</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-2935838856065298774.post-1881639899114620350</id><published>2008-10-17T05:58:00.000-07:00</published><updated>2008-10-17T06:03:15.633-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General DBA Questions'/><title type='text'>Oracle DBA Questions- All topics</title><content type='html'>&lt;object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_4772775285934" name="doc_4772775285934" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle" height="500" width="100%"&gt;  &lt;param name="movie" value="http://documents.scribd.com/ScribdViewer.swf?document_id=5010687&amp;access_key=key-1pn58bpuainfv1jemle8&amp;page=&amp;version=1&amp;auto_size=true&amp;viewMode="&gt;   &lt;param name="quality" value="high"&gt;   &lt;param name="play" value="true"&gt;  &lt;param name="loop" value="true"&gt;   &lt;param name="scale" value="showall"&gt;  &lt;param name="wmode" value="opaque"&gt;   &lt;param name="devicefont" value="false"&gt;  &lt;param name="bgcolor" value="#ffffff"&gt;   &lt;param name="menu" value="true"&gt;  &lt;param name="allowFullScreen" value="true"&gt;   &lt;param name="allowScriptAccess" value="always"&gt;   &lt;param name="salign" value=""&gt;      &lt;embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=5010687&amp;access_key=key-1pn58bpuainfv1jemle8&amp;page=&amp;version=1&amp;auto_size=true&amp;viewMode=" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_4772775285934_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle"  height="500" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;div style="font-size:10px;text-align:center;width:100%"&gt;&lt;a href="http://www.scribd.com/doc/5010687/Oracle-DBA-interview-questions"&gt;Oracle DBA  interview questions&lt;/a&gt; - &lt;a href="http://www.scribd.com/upload"&gt;Upload a Document to Scribd&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-1881639899114620350?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/1881639899114620350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=1881639899114620350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1881639899114620350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1881639899114620350'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/10/oracle-dba-questions-all-topics.html' title='Oracle DBA Questions- All topics'/><author><name>Rita</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-2935838856065298774.post-9143988668193693400</id><published>2008-10-03T17:55:00.000-07:00</published><updated>2008-10-24T14:33:54.273-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Useful links'/><title type='text'>DBA Interview Questions - check out</title><content type='html'>&lt;p&gt;You can check out  &lt;a href="http://www.geocities.com/oracle_interviewquestion/"&gt;http://www.geocities.com/oracle_interviewquestion/&lt;/a&gt; for lots of interview questions.There are 95 pages having about 10 questions in each page.&lt;/p&gt;&lt;p&gt;Another site to check out is: &lt;a href="http://www.newinterviewquestions.com/"&gt;http://www.newinterviewquestions.com/&lt;/a&gt; &lt;/p&gt;&lt;p&gt;It has a few questions on each topic, the links are left intact if you wish to check out each section.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Oracle-Apps-interview-questions/"&gt;Oracle Apps Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/AOL-interview-questions/"&gt;AOL Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/AR-interview-questions/"&gt;AR Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/D2K-interview-questions/"&gt;D2K Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Flexfields-interview-questions/"&gt;Flexfields Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/GL-interview-questions/"&gt;GL Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/ONT-interview-questions/"&gt;ONT Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Oracle-Apps-Basics-interview-questions/"&gt;Oracle Apps Basics Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Oracle-Apps-Security-interview-questions/"&gt;Oracle Apps Security Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Oracle-Apps-Technical-interview-questions/"&gt;Oracle Apps Technical Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Oracle-Forms-interview-questions/"&gt;Oracle Forms Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Scope-and-Application-interview-questions/"&gt;Scope and Application Interview Questions&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Oracle-interview-questions/"&gt;Oracle Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Backup-and-Recovery-interview-questions/"&gt;Backup and Recovery Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Concepts-and-Architecture-interview-questions/"&gt;Concepts and Architecture Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Data-Access-interview-questions/"&gt;Data Access Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Database-Administration-interview-questions/"&gt;Database Administration Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Database-Security-interview-questions/"&gt;Database Security Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Distributed-Processing-interview-questions/"&gt;Distributed Processing Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/General-Oracle-interview-questions/"&gt;General Oracle Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Memory-Management-interview-questions/"&gt;Memory Management Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/ONT-interview-questions/"&gt;ONT Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Oracle-Architecture-interview-questions/"&gt;Oracle Architecture Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Oracle-Backup-and-Recovery-interview-questions/"&gt;Oracle Backup and Recovery Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Oracle-Forms-3.0-interview-questions/"&gt;Oracle Forms 3.0 Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Oracle-Forms-4.0-interview-questions/"&gt;Oracle Forms 4.0 Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/PL-SQL-interview-questions/"&gt;PL-SQL Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Programmatic-Constructs-interview-questions/"&gt;Programmatic Constructs Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/Scenarios-interview-questions/"&gt;Scenarios Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/SQL-In-Oracle-interview-questions/"&gt;SQL In Oracle Interview Questions&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newinterviewquestions.com/cat/SQL-Plus-interview-questions/"&gt;SQL Plus Interview Questions&lt;/a&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-9143988668193693400?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/9143988668193693400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=9143988668193693400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/9143988668193693400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/9143988668193693400'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/10/dba-interview-questions-check-out.html' title='DBA Interview Questions - check out'/><author><name>Rita</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-2935838856065298774.post-3022946915807126083</id><published>2008-10-03T17:47:00.000-07:00</published><updated>2008-10-03T17:51:43.910-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Real DBA interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Interesting Read'/><title type='text'>Interviewer Scenario</title><content type='html'>&lt;span style="color:#cc0000;"&gt;From an interviewer:&lt;/span&gt;&lt;br /&gt;I tend more towards trying to determine if the candidate has honest to goodness real world experience or is it all book knowledge and passed the OCP.&lt;br /&gt;&lt;br /&gt;An OCP is good (don't get me wrong) but I'd almost rather considersomeone that has actually "been there done that".&lt;br /&gt;&lt;br /&gt;Did an interview for a contractor once. Some pretty tough questions. Inoticed she kept glancing towards a spiral notebook she had carried in.I asked her if the answers I was looking for were in the book.When she told me they were, I told her to find them and answer myquestion.The fact that she had made a note of the problem and the 'fix' told meshe had indeed run in that problem and thought enough about it to makesnotes of the fix.Told her to use her notes the remainder of the interview if she wanted.&lt;br /&gt;&lt;br /&gt;I am a firm believer that you don't try to remember everything....you'll never do it ...especially as you get a little further along in age. You just MIGHT remember it incorrectly and cause yourself more pain than gain.Books exist for more than lining your shelves.&lt;br /&gt;&lt;br /&gt;As far as the individual not knowing what RAC was/is.....maybe theyhaven't had the 'privilege' of working on 9i yet and their world iscentered still in 8i or even V7. Did they know what OPS was/is?&lt;br /&gt;How often do you REALLY get in to histograms on a daily basis?&lt;br /&gt;I'd much rather a DBA know how to backup and be able to restore and recover a database than give me a stock/pat answer on what a histogramis and how it is used.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3022946915807126083?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3022946915807126083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3022946915807126083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3022946915807126083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3022946915807126083'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/10/interviewer-scenario.html' title='Interviewer Scenario'/><author><name>Rita</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-2935838856065298774.post-8151671519672921240</id><published>2008-10-02T10:21:00.000-07:00</published><updated>2008-10-02T10:29:36.240-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Legato'/><title type='text'>Legato Certification questions</title><content type='html'>&lt;p&gt;&lt;br /&gt;1. Describe the functionality of an AAM Sensor?&lt;br /&gt;A Sensor returns the value of the data point to a trigger.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2. When is it appropriate to configure node-specific isolation detection IP addresses instead of domain-specific isolation detection IP&lt;br /&gt;addresses?&lt;br /&gt;when isolation detection IP addresses are not common to all nodes&lt;/p&gt;&lt;p&gt;&lt;br /&gt;3. Which statement is true when creating a new service resource?&lt;br /&gt;AAM discovers all services on all nodes when selecting the service to run.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;4. What are three elements of a Resource Group? (Choose three.)&lt;br /&gt;delays&lt;br /&gt;Utility Processes&lt;br /&gt;event messages&lt;/p&gt;&lt;p&gt;&lt;br /&gt;5. A three-node domain is configured with each of the nodes connected to two networks. A network cable attached to node A's&lt;br /&gt;Network Interface Card (NIC) is accidentally detached. Later that evening, the maintenance crew unplugs power to the hub on node&lt;br /&gt;A's remaining working network.&lt;br /&gt;Is this statement true?&lt;br /&gt; The node is considered isolated. &lt;/p&gt;&lt;p&gt;True&lt;/p&gt;&lt;p&gt;&lt;br /&gt;6. Which is a valid IP address for private non-routed network use?&lt;br /&gt;A. 37.16.256.4&lt;br /&gt;B. 117.24.103.40&lt;br /&gt;C. 127.0.0.1&lt;br /&gt;D. 192.168.7.69&lt;br /&gt;Answer: D&lt;/p&gt;&lt;p&gt;&lt;br /&gt;7. Which two networking statements are correct? (Choose two.)&lt;br /&gt;A. Routing is the same on all operating systems.&lt;br /&gt;B. Routing is the same on UNIX operating systems.&lt;br /&gt;C. Not all switches will route multicast traffic by default.&lt;br /&gt;D. To observe the routing table on a UNIX or Windows server, you should use the netstat -nr command.&lt;br /&gt;Answer: CD&lt;/p&gt;&lt;p&gt;&lt;br /&gt;8. Which three options should you consider when performing a failover in a WAN environment? (Choose three.)&lt;br /&gt; isolation detection&lt;br /&gt; location of DNS servers&lt;br /&gt; transfer of IP addresses&lt;/p&gt;&lt;p&gt;&lt;br /&gt;9. Which two are clustering topologies? (Choose two.)&lt;br /&gt;A. ring&lt;br /&gt;B. star&lt;br /&gt;C. one to one&lt;br /&gt;D. one to none&lt;br /&gt;E. many to one&lt;br /&gt;Answer: CE&lt;/p&gt;&lt;p&gt;&lt;br /&gt;10. Which two statements are true about the AAM isolation detection feature? (Choose two.)&lt;br /&gt;A. All agents are responsible for isolation detection.&lt;br /&gt;B. Only primary agents are responsible for isolation detection.&lt;br /&gt;C. If, within half of the minimum detection time, no heartbeats are received, a ping is sent to each isolation address.&lt;br /&gt;D. If, within half of the minimum detection time, no heartbeats are received, a ping is sent across the verification line.&lt;/p&gt;&lt;p&gt;Answer: AC&lt;/p&gt;&lt;p&gt;&lt;br /&gt;11. An administrator creates five Resource Groups in AAM. What is the number of ftPerl processes running by default?&lt;br /&gt; 3&lt;/p&gt;&lt;p&gt;&lt;br /&gt;12. Which two tasks can occur on a secondary agent? &lt;/p&gt;&lt;p&gt;host a Resource Group&lt;br /&gt;monitor the AAM domain&lt;/p&gt;&lt;p&gt;&lt;br /&gt;13. Which statement about AAM's Network Interface Card (NIC)-to-NIC feature is true?&lt;br /&gt;A. If one NIC fails, another will be configured to take its place.&lt;br /&gt;B. Communications can be routed from one NIC to another NIC.&lt;br /&gt;C. If one NIC is overloaded, another NIC will be configured to assist with traffic.&lt;br /&gt;D. Two NICs are paired together as a single logical NIC with twice the capacity and function.&lt;br /&gt;Answer: A&lt;/p&gt;&lt;p&gt;&lt;br /&gt;14. When considering the use of a dedicated Mirroring Network, which two statements are true? (Choose two.)&lt;br /&gt;A. You must set the duplex mode for the adapter to AutoSelect.&lt;br /&gt;B. The NetBEUI protocol must be enabled for the mirroring network.&lt;br /&gt;C. You must ensure that TCP/IP is the only network protocol on that link and all other protocols are disabled.&lt;br /&gt;D. The Network Interface Card (NIC) used for mirroring must appear before the NICs used for the public network.&lt;br /&gt;E. You must assign a static IP address for the dedicated link that is on a separate subnet from any domain network or public network.&lt;br /&gt;Answer: CE&lt;/p&gt;&lt;p&gt;&lt;br /&gt;15. Which statement is true about AAM secondary nodes?&lt;br /&gt;A. Secondary nodes provide backbone fault tolerance.&lt;br /&gt;B. Secondary nodes can be the last running node in an AAM domain.&lt;br /&gt;C. Secondary nodes can be the preferred node to run a Resource Group.&lt;br /&gt;D. Secondary Rule Interpreters can run rules for any node on the domain.&lt;br /&gt;Answer: C&lt;/p&gt;&lt;p&gt;&lt;br /&gt;16. Node alias names must _____. (Choose two.)&lt;br /&gt;A. be unique&lt;br /&gt;B. be listed in DNS&lt;br /&gt;C. be fewer than 16 characters&lt;br /&gt;D. disable NetBIOS over TCP/IP&lt;br /&gt;E. be assigned to a Resource Group&lt;br /&gt;Answer: AC&lt;/p&gt;&lt;p&gt;&lt;br /&gt;17. What does the mirroring for Windows 2000 Data Source require?&lt;br /&gt;A. a dynamic disk&lt;br /&gt;B. a private network&lt;br /&gt;C. a shared disk array&lt;br /&gt;D. a hardware RAID controller&lt;br /&gt;Answer: B&lt;/p&gt;&lt;p&gt;&lt;br /&gt;18. Which three resource objects can be contained within a Resource Group? (Choose three.)&lt;br /&gt;A. rule&lt;br /&gt;B. process&lt;br /&gt;C. IP address&lt;br /&gt;D. Utility process&lt;br /&gt;E. Network Interface Card (NIC)&lt;br /&gt;Answer: BCD&lt;/p&gt;&lt;p&gt;&lt;br /&gt;19. Which three options can only be defined in a Resource Group? (Choose three.)&lt;br /&gt;A. delays&lt;br /&gt;B. scripts&lt;br /&gt;C. event messages&lt;br /&gt;D. environment variables&lt;br /&gt;E. Network Interface Cards (NICs)&lt;br /&gt;Answer: ABC&lt;/p&gt;&lt;p&gt;&lt;br /&gt;20. Which statement describes an AAM Utility Process?&lt;br /&gt;A. A Utility Process runs using the account of the user that started it.&lt;br /&gt;B. A Utility Process can transition to the failed state if its existence monitor is incorrectly written.&lt;br /&gt;C. A Utility Process is an unmanaged process that can be started from the Management Console, from a Resource Group, or from a&lt;br /&gt;rule.&lt;br /&gt;D. When contained within a Resource Group, a Utility Process will typically run while the group is brought online, and be stopped&lt;br /&gt;when the resource group is taken offline.&lt;br /&gt;Answer: C&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-8151671519672921240?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/8151671519672921240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=8151671519672921240' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8151671519672921240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8151671519672921240'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/10/legato-certification-questions.html' title='Legato Certification questions'/><author><name>Rita</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-2935838856065298774.post-2804802138066930002</id><published>2008-10-02T09:58:00.000-07:00</published><updated>2008-10-02T10:08:44.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Legato'/><title type='text'>Legato - Install</title><content type='html'>&lt;p&gt;Reference: &lt;a href="http://www.oracle-base.com/articles/10g/LegatoRman10gTru64.php"&gt;http://www.oracle-base.com/articles/10g/LegatoRman10gTru64.php&lt;/a&gt; - by Tim&lt;/p&gt;&lt;p&gt;Legato Single Server Version (LSSV) 7.1 and RMAN on Tru64 5.1bLegato Single Server Version (LSSV) 7.1 is shipped on the Oracle Database 10g Companion CD, allowing RMAN to write to tape as well as disk.&lt;br /&gt;&lt;a href="http://www.oracle-base.com/articles/10g/LegatoRman10gTru64.php#oui_install"&gt;OUI Install&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.oracle-base.com/articles/10g/LegatoRman10gTru64.php#manual_install"&gt;Manual Install&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.oracle-base.com/articles/10g/LegatoRman10gTru64.php#manual_uninstall"&gt;Manual Uninstall&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.oracle-base.com/articles/10g/LegatoRman10gTru64.php#networker"&gt;Networker&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.oracle-base.com/articles/10g/LegatoRman10gTru64.php#rman_tape_backups"&gt;RMAN Tape Backups&lt;/a&gt; &lt;a id="oui_install"&gt;&lt;/a&gt;&lt;br /&gt;OUI InstallAs the Oracle software owner move to the "Oracle Database 10g Companion CD" staging area, export the DISPLAY variable if necessary and start the installer.&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;cd /ccd/Disk1&lt;br /&gt;export DISPLAY=clientpc:0.0&lt;br /&gt;./runInstaller&lt;/blockquote&gt;&lt;p&gt;Install the companion products into an existing database ORACLE_HOME. When prompted run the $ORACLE_HOME/root.sh script as root which installs the LSSV software.Add "/usr/opt/networker/bin" to the PATH variable in the root .profile file.&lt;a id="manual_install"&gt;&lt;/a&gt;&lt;br /&gt;Manual InstallAs the root user move to the "Oracle Database 10g Companion CD" staging area, find the appropriate lsminst script and run it as follows.&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;su - root&lt;br /&gt;cd /ccd&lt;br /&gt;find . -name lsminst&lt;br /&gt;-print&lt;br /&gt;./Disk1/lgto/lsminst&lt;br /&gt;./Disk1/stage/Components/oracle.rdbms.lsm/6.1.0.0.0/1/DataFiles/Expanded/lsm/lsminst&lt;br /&gt;./Disk1/stage/Components/oracle.rdbms.lsm/6.1.0.0.0/1/DataFiles/Expanded/lsminst&lt;br /&gt;./Disk1/stage/Components/oracle.rdbms.lsm/6.1.0.0.0/1/DataFiles/Expanded/lsminst/rdbms/install/lgto/lsminst&lt;br /&gt;cd&lt;br /&gt;./Disk1/stage/Components/oracle.rdbms.lsm/6.1.0.0.0/1/DataFiles/Expanded/lsm/&lt;br /&gt;./lsminst ./stage_tmp/lsm&lt;/blockquote&gt;&lt;p&gt;During the installation you will be asked several questions, most of which can be answered with the defaults with the exception of the following: &lt;/p&gt;&lt;blockquote&gt;Select option 2 (Install LSSV Software)&lt;br /&gt; Select option 5 (Install all&lt;br /&gt;subsets)&lt;br /&gt; Enter the server name to backup. &lt;/blockquote&gt;&lt;p&gt;Only move on to the next stage if the installation was completed successfully.As the Oracle software owner find the liblsm.so library in the staging area, copy it to the appropriate location and create a symbolic link to it.&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;su - oracle&lt;br /&gt;cd /ora/install/db/10.1.0/ccd&lt;br /&gt;find . -name liblsm.so&lt;br /&gt;-print&lt;br /&gt;./Disk1/stage/Components/oracle.rdbms.lsm/6.1.0.0.0/1/DataFiles/Expanded/lsminst/lib/liblsm.so&lt;br /&gt;cd&lt;br /&gt;./Disk1/stage/Components/oracle.rdbms.lsm/6.1.0.0.0/1/DataFiles/Expanded/lsminst/lib/&lt;br /&gt;cp&lt;br /&gt;liblsm.so $ORACLE_HOME/lib/liblsm.so&lt;br /&gt;ln -s $ORACLE_HOME/lib/liblsm.so&lt;br /&gt;$ORACLE_HOME/lib/libobk.so&lt;/blockquote&gt;&lt;p&gt;Add "/usr/opt/networker/bin" to the PATH variable in the root .profile file.&lt;a id="manual_uninstall"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Manual Uninstall&lt;/span&gt;&lt;/p&gt;&lt;p&gt;To manually uninstall the Legato software do the following.&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;su - oracle&lt;br /&gt;cd $ORACLE_HOME/lib&lt;br /&gt;rm liblsm.so&lt;br /&gt;rm libobk.so&lt;br /&gt;su -&lt;br /&gt;root&lt;br /&gt;nsr_shutdown&lt;br /&gt;# Select the appropriate line depending on the&lt;br /&gt;version.&lt;br /&gt;#setld -d ORCLSERV610 ORCLNODE610 ORCLCLNT610 ORCLMAN610&lt;br /&gt;#setld&lt;br /&gt;-d LGTOCLNT611 LGTOMAN611 LGTONODE611 LGTOSERV611&lt;br /&gt;setld -d LGTOSERV710&lt;br /&gt;LGTONODE710 LGTOCLNT710 LGTOMAN710&lt;a id="networker"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color:#cc0000;"&gt;Networker&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The Networker software can be accessed by issuing the following command as the root user.&lt;/p&gt;&lt;blockquote&gt;export DISPLAY=clientpc:0.0&lt;br /&gt;networker&lt;br /&gt;&lt;/blockquote&gt;&lt;p&gt;Once the GUI has run you can use it to define devices, label and mount tapes etc. The scripts used later assume that the necessary tape devices have been defined and the tape being mounted is already labelled.&lt;a id="rman_tape_backups"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;RMAN Tape Backups&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Once the LSSV software is installed RMAN backups to tape can be done by defining the default device type as follows.&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;su - oracle&lt;br /&gt;rman target=/&lt;br /&gt;Recovery Manager: Release 10.1.0.2.0 -&lt;br /&gt;Production&lt;br /&gt;Copyright (c) 1995, 2004, Oracle. All rights&lt;br /&gt;reserved.&lt;br /&gt;connected to target database: DEV (DBID=3608529853)&lt;br /&gt;RMAN&gt;&lt;br /&gt;CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';&lt;br /&gt;old RMAN configuration&lt;br /&gt;parameters:&lt;br /&gt;CONFIGURE DEFAULT DEVICE TYPE TO DISK;&lt;br /&gt;new RMAN configuration&lt;br /&gt;parameters:&lt;br /&gt;CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';&lt;br /&gt;new RMAN&lt;br /&gt;configuration parameters are successfully stored&lt;/blockquote&gt;&lt;p&gt;Once this parameter is defined RMAN uses the libobk.so library as the media manager by default. In this way RMAN is able to work with any supported third party media manager by simply creating a symbolic link called libobk.so which points to the vendors media management library, in this case liblsm.so.A tape backup can be done using a script like the following which is run from root.&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;#!/bin/ksh&lt;br /&gt;PATH=$PATH:/usr/bin:/usr/sbin/:/sbin:/bin:/usr/opt/networker/bin;&lt;br /&gt;export PATH&lt;br /&gt;ORACLE_BASE=/u01/app/oracle; export&lt;br /&gt;ORACLE_BASE&lt;br /&gt;LOGPATH=$ORACLE_BASE/dba/logs; export&lt;br /&gt;LOGPATH&lt;br /&gt;LOGFILE=$LOGPATH/daily_backup.0.log; export LOGFILE&lt;br /&gt;# Rotate&lt;br /&gt;logs.&lt;br /&gt;rm $LOGPATH/daily_backup.9.log&lt;br /&gt;mv $LOGPATH/daily_backup.8.log&lt;br /&gt;$LOGPATH/daily_backup.9.log&lt;br /&gt;mv $LOGPATH/daily_backup.7.log&lt;br /&gt;$LOGPATH/daily_backup.8.log&lt;br /&gt;mv $LOGPATH/daily_backup.6.log&lt;br /&gt;$LOGPATH/daily_backup.7.log&lt;br /&gt;mv $LOGPATH/daily_backup.5.log&lt;br /&gt;$LOGPATH/daily_backup.6.log&lt;br /&gt;mv $LOGPATH/daily_backup.4.log&lt;br /&gt;$LOGPATH/daily_backup.5.log&lt;br /&gt;mv $LOGPATH/daily_backup.3.log&lt;br /&gt;$LOGPATH/daily_backup.4.log&lt;br /&gt;mv $LOGPATH/daily_backup.2.log&lt;br /&gt;$LOGPATH/daily_backup.3.log&lt;br /&gt;mv $LOGPATH/daily_backup.1.log&lt;br /&gt;$LOGPATH/daily_backup.2.log&lt;br /&gt;mv $LOGPATH/daily_backup.0.log&lt;br /&gt;$LOGPATH/daily_backup.1.log&lt;br /&gt;echo "Log rotate complete" &gt;&gt; $LOGFILE&lt;br /&gt;2&gt;&amp;amp;1&lt;br /&gt;echo Start: `date +"%d/%m/%y %H:%M"` &gt;&gt; $LOGFILE&lt;br /&gt;2&gt;&amp;amp;1&lt;br /&gt;chmod 777 $LOGFILE&lt;br /&gt;# Mount the tape&lt;br /&gt;nsrmm -m -f&lt;br /&gt;/dev/ntape/tape0_d1 &gt;&gt; $LOGFILE 2&gt;&amp;amp;1&lt;br /&gt;sleep 240&lt;br /&gt;su - oracle&lt;br /&gt;&lt;&lt;EOF&lt;br /&gt;ORACLE_SID=DEV1; export ORACLE_SID&lt;br /&gt;rman target=/&lt;br /&gt;cmdfile='$ORACLE_BASE/dba/cmdfile' log='$LOGFILE' append&lt;br /&gt;EOF&lt;br /&gt;# Unmount the&lt;br /&gt;tape&lt;br /&gt;nsrmm -u &gt;&gt; $LOGFILE 2&gt;&amp;amp;1&lt;br /&gt;echo End: `date +"%d/%m/%y&lt;br /&gt;%H:%M"` &gt;&gt; $LOGFILE 2&gt;&amp;amp;1&lt;/blockquote&gt;&lt;p&gt;The "cmdfile" referenced by this script constains the following RMAN script.&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;run {&lt;br /&gt;backup database plus archivelog;&lt;br /&gt;delete force noprompt&lt;br /&gt;obsolete;&lt;br /&gt;}&lt;br /&gt;exit;&lt;br /&gt;&lt;/blockquote&gt;&lt;p&gt;Obviosuly you will need to adjust any path and device names appropriately.For further information see:&lt;br /&gt;&lt;a href="http://www.legato.com/lssv/lssvig_7.1.pdf"&gt;Legato Single Server Version Release 7.1&lt;/a&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2804802138066930002?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2804802138066930002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2804802138066930002' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2804802138066930002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2804802138066930002'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/10/legato-install.html' title='Legato - Install'/><author><name>Rita</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-2935838856065298774.post-997619549690924874</id><published>2008-09-30T05:20:00.001-07:00</published><updated>2008-09-30T05:26:39.171-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><category scheme='http://www.blogger.com/atom/ns#' term='Disaster Recovery'/><title type='text'>Links</title><content type='html'>Reference: &lt;a href="http://appsdbablog.com/blog/2007/03/setting_up_disaster_recovery_w.html"&gt;http://appsdbablog.com/blog/2007/03/setting_up_disaster_recovery_w.html&lt;/a&gt;&lt;br /&gt;This site has the steps for "&lt;span style="color:#cc0000;"&gt;Setting up Disaster Recovery with Oracle Applications&lt;/span&gt;"&lt;br /&gt;Also has "&lt;span style="color:#cc0000;"&gt;Converting Oracle Applications to RAC with ASM&lt;/span&gt;"&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Reference:&lt;a href="http://download-uk.oracle.com/docs/cd/B14099_19/core.1012/b14003/drupgrade.htm"&gt;http://download-uk.oracle.com/docs/cd/B14099_19/core.1012/b14003/drupgrade.htm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This site has the extracts of the book "&lt;span style="color:#cc0000;"&gt;Oracle® Application Server High Availability Guide10g Release 2 (10.1.2)&lt;/span&gt; " and chapter title is "&lt;span style="color:#cc0000;"&gt;OracleAS Disaster Recovery Site Upgrade Procedure&lt;/span&gt;"&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;Reference:&lt;a href="http://stanford.edu/dept/itss/docs/oracle/10g/server.101/b10734/rcmrecov.htm"&gt;http://stanford.edu/dept/itss/docs/oracle/10g/server.101/b10734/rcmrecov.htm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This site has the book : "Oracle® Database Backup and Recovery Advanced User's Guide10g Release 1 (10.1)" and chapter &lt;span style="color:#cc0000;"&gt;"&lt;/span&gt;&lt;a name="BRADV008"&gt;&lt;span style="color:#cc0000;"&gt;Advanced RMAN Recovery Techniques&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#cc0000;"&gt;"&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-997619549690924874?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/997619549690924874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=997619549690924874' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/997619549690924874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/997619549690924874'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/links.html' title='Links'/><author><name>Rita</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-2935838856065298774.post-3537542715029003562</id><published>2008-09-30T05:12:00.000-07:00</published><updated>2008-09-30T05:18:26.736-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Disaster Recovery'/><title type='text'>Backup and Disaster Recovery Scenario</title><content type='html'>Reference: &lt;a href="http://www.uaex.edu/srea/bkupreco.htm"&gt;http://www.uaex.edu/srea/bkupreco.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Contents are listed below.Click the link to check out:&lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Bulletproofing"&gt;Bulletproofing&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Shutting_Down_and_Starting_Up_Your_Database"&gt;Shutting Down and Starting Up Your Database&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Notes"&gt;Notes&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Enabling_Archiving"&gt;Enabling Archiving&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Moving_Datafiles"&gt;Moving Datafiles&lt;/a&gt;  &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Adding_Redo_Log_Members"&gt;Adding Redo Log Members&lt;/a&gt;  &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Adding_Redo_Log_Groups"&gt;Adding Redo Log Groups&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Multiplexing_Control_Files"&gt;Multiplexing Control Files&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Multiplexing_Archive_Log_Files"&gt;Multiplexing Archive Log Files&lt;/a&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Backups"&gt;Backups&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#What_To_Back_Up"&gt;What To Back Up&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Cold_Backups"&gt;Cold Backups&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Hot_Backups"&gt;Hot Backups&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Other_Nightly_Processing"&gt;Other Nightly Processing&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Archiving_To_Tape"&gt;Archiving To Tape&lt;/a&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Disaster_Recovery_Scenarios"&gt;Disaster Recovery Scenarios&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Things_To_Check"&gt;Things To Check&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#What_To_Restore"&gt;What To Restore&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Backup_Restore_Using_Unix_cpio_Command"&gt;Backup/Restore Using Unix cpio Command&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Disaster_Recovery_Overview"&gt;Disaster Recovery Overview&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Basic_Recover_Database_Recovery_Option"&gt;Basic Recover Database Recovery Option&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Basic_Recover_Datafile_Recovery_Option"&gt;Basic Recover Datafile Recovery Option&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Basic_Recover_Tablespace_Recovery_Option"&gt;Basic Recover Tablespace Recovery Option&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Archivelogs_Disk_Volume_Filled_Up"&gt;Archivelogs Disk Volume Filled Up&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Loss_of_Control_Files"&gt;Loss of Control Files&lt;/a&gt;  &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Loss_of_TEMP_Datafile"&gt;Loss of TEMP Datafile&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#TEMP_Datafile_Offline"&gt;TEMP Datafile Offline&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Loss_of_INACTIVE_Online_Redo_Log_Group"&gt;Loss of INACTIVE Online Redo Log Group&lt;/a&gt;  &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Loss_of_CURRENT_Online_Redo_Log_Group"&gt;Loss of CURRENT Online Redo Log Group&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Failure_During_Hot_Backup"&gt;Failure During Hot Backup&lt;/a&gt;  &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Loss_of_Server_Parameter_File"&gt;Loss of Server Parameter File (spfile)&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Bonus_Topics"&gt;Bonus Topics&lt;/a&gt;   &lt;br /&gt; &lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Who_is_Toon_Koppelaars"&gt;Who is Toon Koppelaars, and why should I care?&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#The_Ultimate_Disaster"&gt;The Ultimate Disaster&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#If_All_Else_Fails"&gt;If All Else Fails&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#The_Resolution"&gt;The Resolution&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Summary"&gt;Summary&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Contributors"&gt;Contributors&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#References_and_Sources"&gt;References and Sources&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Appendix"&gt;Appendix&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Sample_Textual_Control_File"&gt;Sample Textual Control File&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Cloning_a_Database"&gt;Cloning a Database&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Sample_SQL_and_Unix_Shell_Scripts"&gt;Sample SQL and Unix Shell Scripts&lt;/a&gt; &lt;br /&gt; &lt;a href="http://www.uaex.edu/srea/bkupreco.htm#Our_Backup_Scripts"&gt;Our Backup Scripts&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3537542715029003562?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3537542715029003562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3537542715029003562' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3537542715029003562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3537542715029003562'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/backup-and-disaster-recovery-scenario.html' title='Backup and Disaster Recovery Scenario'/><author><name>Rita</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-2935838856065298774.post-1038174644343682710</id><published>2008-09-29T11:39:00.000-07:00</published><updated>2008-09-29T11:44:25.605-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Net Services'/><title type='text'>RMAN, Backup, Oracle Net Services - video tutorial</title><content type='html'>Reference: &lt;a href="http://www.hyperteach.com/products/oracleadminfund2-video-cd.htm"&gt;http://www.hyperteach.com/products/oracleadminfund2-video-cd.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This site has some free video tutorials for :&lt;br /&gt;&lt;br /&gt;Oracle net services&lt;br /&gt;Different Backup and Recovery Options&lt;br /&gt;Import and Export&lt;br /&gt;Cold Backups (Offline)&lt;br /&gt;Hot Tablespace Backups (Online)&lt;br /&gt;RMAN or Recovery Manager&lt;br /&gt;Recovery&lt;br /&gt;Standby Databases&lt;br /&gt;Physical Standby Databases&lt;br /&gt;Logical Standby Databases&lt;br /&gt;Replication&lt;br /&gt;Replication by Other Means&lt;br /&gt;What are Transportable Tablespaces?&lt;br /&gt;What is SQL*Loader?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-1038174644343682710?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/1038174644343682710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=1038174644343682710' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1038174644343682710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1038174644343682710'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/rman-logical-and-physical-database.html' title='RMAN, Backup, Oracle Net Services - video tutorial'/><author><name>Rita</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-2935838856065298774.post-2188708596580098941</id><published>2008-09-29T06:02:00.000-07:00</published><updated>2008-09-29T06:03:37.977-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Guard'/><title type='text'>Data Guard Introduction for 9i - tutorial presentation</title><content type='html'>&lt;object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_639185967572949" name="doc_639185967572949" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle" height="500" width="100%"&gt;  &lt;param name="movie" value="http://documents.scribd.com/ScribdViewer.swf?document_id=3104875&amp;access_key=key-2ifqcylecr0965ctuea6&amp;page=&amp;version=1&amp;auto_size=true&amp;viewMode="&gt;   &lt;param name="quality" value="high"&gt;   &lt;param name="play" value="true"&gt;  &lt;param name="loop" value="true"&gt;   &lt;param name="scale" value="showall"&gt;  &lt;param name="wmode" value="opaque"&gt;   &lt;param name="devicefont" value="false"&gt;  &lt;param name="bgcolor" value="#ffffff"&gt;   &lt;param name="menu" value="true"&gt;  &lt;param name="allowFullScreen" value="true"&gt;   &lt;param name="allowScriptAccess" value="always"&gt;   &lt;param name="salign" value=""&gt;      &lt;embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=3104875&amp;access_key=key-2ifqcylecr0965ctuea6&amp;page=&amp;version=1&amp;auto_size=true&amp;viewMode=" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_639185967572949_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle"  height="500" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;div style="font-size:10px;text-align:center;width:100%"&gt;&lt;a href="http://www.scribd.com/doc/3104875/datagaurd-intro-9i-oracle"&gt;datagaurd intro 9i oracle&lt;/a&gt; - &lt;a href="http://www.scribd.com/upload"&gt;Upload a Document to Scribd&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2188708596580098941?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2188708596580098941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2188708596580098941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2188708596580098941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2188708596580098941'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/data-guard-tutorial-presentation.html' title='Data Guard Introduction for 9i - tutorial presentation'/><author><name>Rita</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-2935838856065298774.post-2067010693839414752</id><published>2008-09-29T05:59:00.000-07:00</published><updated>2008-09-29T06:00:15.117-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Guard'/><title type='text'>Data Guard config on Sun cluster</title><content type='html'>Reference: &lt;a href="http://all-about-oracle.blogspot.com/2006/10/creating-data-guard-configuration-on.html"&gt;http://all-about-oracle.blogspot.com/2006/10/creating-data-guard-configuration-on.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2067010693839414752?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2067010693839414752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2067010693839414752' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2067010693839414752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2067010693839414752'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/data-guard-config-on-sun-cluster.html' title='Data Guard config on Sun cluster'/><author><name>Rita</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-2935838856065298774.post-8886797946679591740</id><published>2008-09-29T05:45:00.000-07:00</published><updated>2008-09-29T05:51:55.049-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Guard'/><title type='text'>Oracle9i Data Guard Switchover/Failover Best Practices</title><content type='html'>Reference: &lt;a href="http://whitepapers.zdnet.com/abstract.aspx?docid=115061"&gt;http://whitepapers.zdnet.com/abstract.aspx?docid=115061&lt;/a&gt;&lt;br /&gt;&lt;p&gt;( White paper : pdf Available for download )&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-8886797946679591740?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/8886797946679591740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=8886797946679591740' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8886797946679591740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8886797946679591740'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/oracle9i-data-guard-switchoverfailover.html' title='Oracle9i Data Guard Switchover/Failover Best Practices'/><author><name>Rita</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-2935838856065298774.post-2744810832710968626</id><published>2008-09-29T05:32:00.000-07:00</published><updated>2009-08-16T20:49:22.463-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Guard'/><title type='text'>Data Guard - Standby Database Failover</title><content type='html'>Reference: &lt;a href="http://www.rampant-books.com/art_kumar_dg_broker_architiecture.htm"&gt;http://www.rampant-books.com/art_kumar_dg_broker_architiecture.htm&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_7fZPHDaaMA0/SODMAFz5qcI/AAAAAAAAAGU/xLsLrwW4X_M/s1600-h/Dataguard2.jpg"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_7fZPHDaaMA0/SODLnql-LfI/AAAAAAAAAGM/s8zNcW9bY0M/s1600-h/Dataguard1.jpg"&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; DISPLAY: block; CURSOR: hand" id="BLOGGER_PHOTO_ID_5251421047822888434" border="0" alt="" src="http://3.bp.blogspot.com/_7fZPHDaaMA0/SODLnql-LfI/AAAAAAAAAGM/s8zNcW9bY0M/s320/Dataguard1.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Figure1: Diagram showing relation between layers of Broker Management model. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; DISPLAY: block; CURSOR: hand" id="BLOGGER_PHOTO_ID_5251422426343036242" border="0" alt="" src="http://4.bp.blogspot.com/_7fZPHDaaMA0/SODM35-yVVI/AAAAAAAAAGk/2Y-OS2UGpdo/s320/Dataguard2.jpg" /&gt; &lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div align="center"&gt;Figure 2: Diagram showing server side components of Data Guard Broker.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Data Guard Broker Architecture&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;This article is an excerpt from &lt;a href="http://www.rampant-books.com/book_2004_2_dataguard.htm"&gt;Oracle Dataguard — Standby Database Failover Handbook&lt;/a&gt; by Rampant TechPress. - By Bipul KumarDBAzine&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Data Guard Broker is an assisting utility provided with Oracle Database Server software to facilitate the creation and management of data guard configurations. (Note: Data Guard Broker is available with Oracle 9i Release 2 or later.) Data Guard broker consists of server side and client side components implementing a distributed computing architecture. The server side component includes a Data Guard Monitor (DMON) process and configuration files. The client side component includes Data Guard Manager and Command Line interface. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;Data Guard Broker manages a data guard configuration using a broker management model. The broker management model is a hierarchal structure comprised of Configuration, Site and Database resources. Broker can manage all three layers of the management model. We will see more about the broker management model later in this section.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Data Guard Broker can manage the primary database and up to nine standby databases in one configuration. These nine standby databases can be a mixture of physical and logical standby databases. You can create a standby database using Data Guard broker, or add an existing standby database to a configuration. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;When you create a standby database using broker, broker takes care of the entire set of supporting files; e.g., SPFILE, Oracle Net configuration files, and so on. If you need to add an existing standby database to a data guard configuration, you must configure the SPFILE and Oracle Net files manually before adding the standby database to a configuration. If you plan to use Data Guard Broker for the management of standby databases, you must use the persistent server parameter file (SPFILE) to hold the initialization parameters on all the participating databases.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Some advantages of using Data Guard broker are as follows:&lt;br /&gt;* It is a centralized management tool that can be used to manage the entire configuration using a GUI or CLI interface.&lt;br /&gt;* It provides an extensive health check mechanism for the primary database, standby databases and supporting services in the configuration.&lt;br /&gt;* It reduces the complexity of role management services. Switchover and Failover operations can be performed from a centralized console.&lt;br /&gt;* It can be used to gather useful statistics to fine tune the log transfer and log apply services.&lt;br /&gt;(Note: In Oracle 9i, Data Guard Broker cannot be used with Oracle Real Application Cluster. RAC support is provided with Oracle 10g.)&lt;br /&gt;* The following subsections will explain the broker management model and the broker components in brief.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;Configuration, Sites and Resources&lt;br /&gt;&lt;/span&gt;Broker management model is a three layer hierarchical framework. The logical units of the management model are Configuration, Site and Database Resources. These three layers bear a parent-child relationship as shown in the fig 1. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;A Database resource is the smallest unit managed by Data Guard Broker. In the broker management model, a database resource represents an instance of the primary or standby database. In addition, a service; e.g., log apply service can be classified as a database resource in context of a management model. Site in this model is a collection of database resources. In other words, a site is equivalent to a host machine on which a database instance is running. Configuration is the largest unit in the broker management model consisting of the primary site and one or more standby sites. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;Data Guard Broker can manage all three layers of the management model. Any operation performed on a higher level of the model is applicable to all the child objects of that layer. For example, if the status of a site is changed to offline, then all the resources under that site will be offline. We will learn more about the management model in Chapter 7. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Server Side Components of the Broker&lt;/span&gt;&lt;br /&gt;The server side component of Data Guard Broker includes the Data Guard Monitor (DMON) process and a configuration file. The Data Guard Monitor is a background process that runs on each of the sites managed by Data Guard Broker. The configuration file is a binary file that contains the properties and status of all the sites in a configuration. The DMON process is responsible for managing a consistent copy of the configuration file across the entire configuration. The DMON processes in a configuration communicate over Oracle Net to manage the role management and log management services. In addition, the DMON process gathers statistics about the health of a site that can be used for monitoring and fine-tuning. The following diagram shows a sample data guard configuration managed by data guard broker. &lt;/div&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;Client Side Components of the Broker&lt;br /&gt;&lt;/span&gt;The Data Guard Manager and Command Line Interface (DGMGRL) make up the client side components of Data Guard Broker. Data Guard Manager is a graphical user interface integrated with Oracle Enterprise Manager. It contains several wizards to ease the management of a data guard configuration. DGMGRL or Command Line Interface provides most of the functionalities of Data Guard Manager and can be very useful to write custom scripts to automate data guard tasks. Chapter 7 provides the practical details of data guard broker. You will learn more about the server side and client side components in that chapter. &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;-- Bipul Kumar is a Senior Oracle Database Administrator and Database Architect for an Electronic Media Company based in London, United Kingdom. His responsibilities include Oracle architectural design, defining policies and best practices, administering and maintaining the database, supervising oracle development and implementing new database technologies. He has more than seven years of experience in creating and managing Oracle Databases of varying sizes, primarily on UNIX operating systems.&lt;br /&gt;Mr. Kumar has a Masters degree in Science from the Indian Institute of Technology (IIT), Kharagpur, India and nearly ten years of experience in computing. In addition, he has acquired Oracle DBA certification for 7.3, 8.0, and 8i. His most recent book is &lt;a style="COLOR: blue; TEXT-DECORATION: underline; text-underline: single" href="http://www.rampant-books.com/book_2004_2_dataguard.htm"&gt;Oracle Dataguard — Standby Database Failover Handbook&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;&lt;a href="http://dbareview.blogspot.com/2009/02/data-guard-related-questions.html"&gt;Questions related to Data Guard&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2744810832710968626?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2744810832710968626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2744810832710968626' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2744810832710968626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2744810832710968626'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/data-guard-standby-database-failover.html' title='Data Guard - Standby Database Failover'/><author><name>Rita</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/_7fZPHDaaMA0/SODLnql-LfI/AAAAAAAAAGM/s8zNcW9bY0M/s72-c/Dataguard1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2935838856065298774.post-7872052176288267358</id><published>2008-09-29T05:26:00.000-07:00</published><updated>2009-08-16T20:46:27.252-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Guard'/><title type='text'>Data Guard Failure case</title><content type='html'>Reference: &lt;span style="color:#cc0000;"&gt;&lt;span style="color:#6600cc;"&gt;http://neworacledba.blogspot.com/2008/09/dataguard-failover-to-logical-standby.html&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Data Guard failure to a logical database&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;br /&gt;Failover involves role transitioning the standby database to take up the primary role.It basically involves the steps:By failover we recover data as much as possible and do role transition.&lt;br /&gt;1) Initialization parameter file on the target standby database must be updated with the logical standby database as the archival destinations. Physical standby databases must be disabled.&lt;br /&gt;2) DBMS_LOGSTDBY might have set the lag value for the log apply services. Remove itIdentify gap using find_gap.sql script.&lt;br /&gt;3) Manually copy files from primary/physical standby database archival destinations.&lt;br /&gt;4) Register the archivelogs as follows:sql&gt;alter database register logical logfile 'file';&lt;br /&gt;5) Copy the online redo log of primary database to logical standby database manually and register them.&lt;br /&gt;6) Verify log apply code progress using log_progress.sql.Once apply is over, stop recovery process on standby site and make it primarysql&gt;alter database stop logical standby apply;sql&gt;alter database activate logical standby database;&lt;br /&gt;7) Configure oracle net to send all requests to the new primary database&lt;br /&gt;8) Create database links to other logical standby databases to support future switchover operations.&lt;br /&gt;&lt;p&gt;&lt;em&gt;&lt;a href="http://dbareview.blogspot.com/2009/02/data-guard-related-questions.html"&gt;Questions related to Data Guard&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-7872052176288267358?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/7872052176288267358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=7872052176288267358' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7872052176288267358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/7872052176288267358'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/data-guard-failure-case.html' title='Data Guard Failure case'/><author><name>Rita</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-2935838856065298774.post-3896496223463443865</id><published>2008-09-28T12:44:00.000-07:00</published><updated>2009-08-16T20:45:28.451-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Guard'/><title type='text'>Data Guard - Introduction and Setting up</title><content type='html'>Reference: &lt;a href="http://advait.wordpress.com/2007/06/12/setting-up-oracle-dataguard-for-10g/"&gt;http://advait.wordpress.com/2007/06/12/setting-up-oracle-dataguard-for-10g/&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Reference: &lt;a href="http://onlineappsdba.com/index.php/2008/05/19/configugre-oracle-data-guard-part-ii/"&gt;http://onlineappsdba.com/index.php/2008/05/19/configugre-oracle-data-guard-part-ii/&lt;/a&gt; - Two parts for configuring oracle data guard&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;Also check out: &lt;em&gt;&lt;a href="http://dbareview.blogspot.com/2009/02/data-guard-related-questions.html"&gt;Questions related to Data Guard&lt;/a&gt;&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3896496223463443865?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3896496223463443865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3896496223463443865' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3896496223463443865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3896496223463443865'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/data-guard-introduction-and-setting-up.html' title='Data Guard - Introduction and Setting up'/><author><name>Rita</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-2935838856065298774.post-433154367571485693</id><published>2008-09-28T12:41:00.000-07:00</published><updated>2008-09-28T12:42:42.147-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>RAC 10g- Introduction, Installation</title><content type='html'>Reference: &lt;a href="http://advait.wordpress.com/oracle-real-application-cluster-10g/"&gt;http://advait.wordpress.com/oracle-real-application-cluster-10g/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-433154367571485693?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/433154367571485693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=433154367571485693' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/433154367571485693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/433154367571485693'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/rac-10g-introduction-installation.html' title='RAC 10g- Introduction, Installation'/><author><name>Rita</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-2935838856065298774.post-2569369976812798052</id><published>2008-09-28T12:39:00.000-07:00</published><updated>2008-09-29T05:53:37.849-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>RAC - Introduction, Installation</title><content type='html'>Reference: &lt;a href="http://advait.wordpress.com/oracle-real-application-cluster-10g/"&gt;http://advait.wordpress.com/oracle-real-application-cluster-10g/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-2569369976812798052?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/2569369976812798052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=2569369976812798052' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2569369976812798052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/2569369976812798052'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/rac-introduction-installation.html' title='RAC - Introduction, Installation'/><author><name>Rita</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-2935838856065298774.post-117837896013447019</id><published>2008-09-27T20:13:00.000-07:00</published><updated>2008-09-27T20:21:48.803-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Real DBA interview'/><title type='text'></title><content type='html'>Reference: &lt;a href="http://uni-base.com/ArticleContainer.aspx?articleId=10&amp;amp;ArticleTypeId=2"&gt;http://uni-base.com/ArticleContainer.aspx?articleId=10&amp;amp;ArticleTypeId=2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Why is a UNION ALL faster than a UNION?&lt;br /&gt;The union operation, you will recall, brings two sets of data together. It will *NOT* however produce duplicate or redundant rows. To perform this feat of magic, a SORT operation is done on both tables. This is obviously computationally intensive, and uses significant memory as well. A UNION ALL conversely just dumps collection of both sets together in random order, not worrying about duplicates.&lt;br /&gt;&lt;br /&gt;2. What are some advantages to using Oracle's CREATE DATABASE statement to create a new database manually?&lt;br /&gt;You can script the process to include it in a set of install scripts you deliver with a product.&lt;br /&gt;You can put your create database script in CVS for version control, so as you make changes or adjustments to it, you can track them like you do changes to software code.&lt;br /&gt;You can log the output and review it for errors.&lt;br /&gt;You learn more about the process of database creation, such as what options are available and why.&lt;br /&gt;&lt;br /&gt;3. What are three rules of thumb to create good passwords? How would a DBA enforce those rules in Oracle? What business challenges might you encounter?&lt;br /&gt;Typical password cracking software uses a dictionary in the local language, as well as a list of proper names, and combinations thereof to attempt to guess unknown passwords. Since computers can churn through 10's of thousands of attempts quickly, this can be a very affective way to break into a database. A good password therefore should not be a dictionary word, it should not be a proper name, birthday, or other obvious guessable information. It should also be of sufficient length, such as eight to ten characters, including upper and lowercase, special characters, and even alternate characters if possible.&lt;br /&gt;Oracle has a facility called password security profiles. When installed they can enforce complexity, and length rules as well as other password related security measures.&lt;br /&gt;In the security arena, passwords can be made better, and it is a fairly solvable problem. However, what about in the real-world? Often the biggest challenge is in implementing a set of rules like this in the enterprise. There will likely be a lot of resistance to this, as it creates additional hassles for users of the system who may not be used to thinking about security seriously. Educating business folks about the real risks, by coming up with real stories of vulnerabilities and break-ins you've encountered on the job, or those discussed on the internet goes a long way towards emphasizing what is at stake.&lt;br /&gt;&lt;br /&gt;4. Describe the Oracle Wait Interface, how it works, and what it provides. What are some limitations? What do the db_file_sequential_read and db_file_scattered_read events indicate?&lt;br /&gt;The Oracle Wait Interface refers to Oracle's data dictionary for managing wait events. Selecting from tables such as v$system_event and v$session_event give you event totals through the life of the database (or session). The former are totals for the whole system, and latter on a per session basis. The event db_file_sequential_read refers to single block reads, and table accesses by rowid. db_file_scattered_read conversely refers to full table scans. It is so named because the blocks are read, and scattered into the buffer cache.&lt;br /&gt;&lt;br /&gt;5. How do you return the top-N results of a query in Oracle? Why doesn't the obvious method work?&lt;br /&gt;Most people think of using the ROWNUM pseudocolumn with ORDER BY. Unfortunately the ROWNUM is determined *before* the ORDER BY so you don't get the results you want. The answer is to use a subquery to do the ORDER BY first. For example to return the top-5 employees by salary:&lt;br /&gt;SELECT * FROM (SELECT * FROM employees ORDER BY salary) WHERE ROWNUM &lt; 5;&lt;br /&gt;&lt;br /&gt;6. Can Oracle's Data Guard be used on Standard Edition, and if so how? How can you test that the standby database is in sync?&lt;br /&gt;Oracle's Data Guard technology is a layer of software and automation built on top of the standby database facility. In Oracle Standard Edition it is possible to be a standby database, and update it *manually*. Roughly, put your production database in archivelog mode. Create a hotbackup of the database and move it to the standby machine. Then create a standby controlfile on the production machine, and ship that file, along with all the archived redolog files to the standby server. Once you have all these files assembled, place them in their proper locations, recover the standby database, and you're ready to roll. From this point on, you must manually ship, and manually apply those archived redologs to stay in sync with production.&lt;br /&gt;To test your standby database, make a change to a table on the production server, and commit the change. Then manually switch a logfile so those changes are archived. Manually ship the newest archived redolog file, and manually apply it on the standby database. Then open your standby database in read-only mode, and select from your changed table to verify those changes are available. Once you're done, shutdown your standby and startup again in standby mode.&lt;br /&gt;&lt;br /&gt;7. What is a database link? What is the difference between a public and a private database link? What is a fixed user database link?&lt;br /&gt;A database link allows you to make a connection with a remote database, Oracle or not, and query tables from it, even incorporating those accesses with joins to local tables.&lt;br /&gt;A private database link only works for, and is accessible to the user/schema that owns it. A global one can be accessed by any user in the database.&lt;br /&gt;A fixed user link specifies that you will connect to the remote db as one and only one user that is defined in the link. Alternatively, a current user database link will connect as the current user you are logged in as.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-117837896013447019?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/117837896013447019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=117837896013447019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/117837896013447019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/117837896013447019'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/reference-httpuni-base.html' title=''/><author><name>Rita</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-2935838856065298774.post-6714901409537640864</id><published>2008-09-24T06:40:00.000-07:00</published><updated>2008-09-24T06:51:11.025-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN - video tutorial</title><content type='html'>Reference:&lt;br /&gt;&lt;a href="http://www.youtube.com/watch?v=MOoUFIS-uoQ"&gt;http://www.youtube.com/watch?v=MOoUFIS-uoQ&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="425" height="349"&gt;&lt;param name="movie" value="http://www.youtube.com/v/MOoUFIS-uoQ&amp;hl=en&amp;fs=1&amp;rel=0&amp;border=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/MOoUFIS-uoQ&amp;hl=en&amp;fs=1&amp;rel=0&amp;border=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="349"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-6714901409537640864?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/6714901409537640864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=6714901409537640864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6714901409537640864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/6714901409537640864'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/rman-video-tutorial.html' title='RMAN - video tutorial'/><author><name>Rita</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-2935838856065298774.post-3193006058331771042</id><published>2008-09-24T06:39:00.001-07:00</published><updated>2008-09-24T06:39:32.512-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN - book</title><content type='html'>Oracle® Database Backup and Recovery User's Guide11g Release 1 (11.1)&lt;br /&gt;Reference: &lt;a href="http://www.filibeto.org/sun/lib/nonsun/oracle/11.1.0.6.0/B28359_01/backup.111/b28270/rcmcncpt.htm"&gt;http://www.filibeto.org/sun/lib/nonsun/oracle/11.1.0.6.0/B28359_01/backup.111/b28270/rcmcncpt.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-3193006058331771042?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/3193006058331771042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=3193006058331771042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3193006058331771042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/3193006058331771042'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/rman-book.html' title='RMAN - book'/><author><name>Rita</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-2935838856065298774.post-1978166825908335591</id><published>2008-09-24T06:36:00.000-07:00</published><updated>2008-09-24T06:37:03.522-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN -  scripts</title><content type='html'>Reference: &lt;a href="http://www.dbasupport.com/oracle/scripts/Backup_Recovery/RMAN_Backup/"&gt;http://www.dbasupport.com/oracle/scripts/Backup_Recovery/RMAN_Backup/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-1978166825908335591?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/1978166825908335591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=1978166825908335591' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1978166825908335591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/1978166825908335591'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/rman-scripts.html' title='RMAN -  scripts'/><author><name>Rita</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-2935838856065298774.post-8012048007859601849</id><published>2008-09-24T06:35:00.001-07:00</published><updated>2008-09-24T06:35:48.899-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN Questions</title><content type='html'>Reference: &lt;a href="http://www.orafaq.com/wiki/Oracle_database_Backup_and_Recovery_FAQ"&gt;http://www.orafaq.com/wiki/Oracle_database_Backup_and_Recovery_FAQ&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2935838856065298774-8012048007859601849?l=dbareview.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dbareview.blogspot.com/feeds/8012048007859601849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2935838856065298774&amp;postID=8012048007859601849' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8012048007859601849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2935838856065298774/posts/default/8012048007859601849'/><link rel='alternate' type='text/html' href='http://dbareview.blogspot.com/2008/09/rman-questions.html' title='RMAN Questions'/><author><name>Rita</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-2935838856065298774.post-8263385234320751453</id><published>2008-09-24T06:25:00.000-07:00</published><updated>2008-09-24T06:33:35.289-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN tutorial</title><content type='html'>Reference: &lt;a href="http://www.cuddletech.com/articles/oracle/node57.html"&gt;http://www.cuddletech.com/articles/oracle/node57.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Using RMAN&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Why would a sysadmin like RMAN?&lt;br /&gt;&lt;br /&gt;RMAN can perform online (hot) backups&lt;br /&gt;RMAN can allow for partial or complete recovery&lt;br /&gt;No fear of incomplete backups&lt;br /&gt;DBA initiated backups and recovery without the interaction of the SA&lt;br /&gt;Intigration with existing backup infistructure&lt;br /&gt;The problem with backing up Oracle using traditional methods is similar to the problems with backing up filesystems, unless you shutdown the database and perform a cold backup there is no way to know that all the transactions and changes have been written to datafiles. The SGA maintans a huge amount of data in active memory which can cause a problem. It's alittle like editing a configuration file on the system and then halting the system and wondering where your changes went. In order to ensure consistance of the database we need a hot backup method. If we restore a filesystem backup of the database that was taken while Oracle was running we run the risk of lossing database changes at best or having a corrupt database at worst.&lt;br /&gt;&lt;br /&gt;&lt;a name="SECTION001210000000000000000"&gt;&lt;span style="color:#cc0000;"&gt;Enabling ARCHIVELOG Mode&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#cc0000;"&gt;&lt;br /&gt;&lt;/span&gt;Most of the High Availability features of Oracle require you to enable ARCHIVELOG mode for your database. When you enable this mode redo logs will be archived instead of overwritten. The archivelogs are stored in a seperate place usually can backed up regularly by your standard filesystem backup system (NetBackup or whatever). Archive logs are utilized by RMAN, Data Guard, Flashback and many others.&lt;br /&gt;If your going to enable archivelog mode on a real database thats important to you, I would recommend shutting down the database and doing a cold backup just in case. Keeping a "final noarchivelog mode backup" seems to be a good and excepted practice.&lt;br /&gt;Enabling archive mode is simple, just connect to your database in mounted but closed mode (startup mount) and alter the database. But if you don't tune alittle you'll run into problems down the road, so lets specify some parameters too. Namely, consider LOG_ARCHIVE_DEST.&lt;br /&gt;Lets start by checking the current archive mode.&lt;br /&gt;SQL&gt; SELECT LOG_MODE FROM SYS.V$DATABASE;&lt;br /&gt;LOG_MODE&lt;br /&gt;------------&lt;br /&gt;NOARCHIVELOG&lt;br /&gt;So we're in NOARCHIVELOG mode and we need to change. We can use a database alter statement, but that won't be perminant, so lets just update the pfile directly. The pfile should be in either $ORACLE_BASE/admin/SID/pfile or $ORACLE_HOME/admin/SID/pfile. I'll add the following lines to the end of the file:&lt;br /&gt;############################&lt;br /&gt;# Archive Log Destinations -benr(10/15/04)&lt;br /&gt;############################&lt;br /&gt;log_archive_dest_1='location=/u02/oradata/cuddle/archive'&lt;br /&gt;log_archive_start=TRUE&lt;br /&gt;Note that we're not actually required to specify the location of the log destination, but if you don't it'll end up in strange places (in my test it went to $ORACLE_HOME/dbs making a mess). You can specify as many as 10 diffrent archive log destinations by using the paramters log_archive_dest_1 through log_archive_dest_10. Remember, if you run out of space in your archive log destination the database will shut down!&lt;br /&gt;Now we can startup the database in mount mode and put it in archivelog mode.&lt;br /&gt;[oracle@vixen pfile]$sqlplus sys/passwd as sysdba;&lt;br /&gt;SQL*Plus: Release 10.1.0.2.0 - Production on Fri Oct 15 16:00:58 2004&lt;br /&gt;Copyright (c) 1982, 2004, Oracle. All rights reserved.&lt;br /&gt;Connected to an idle instance.&lt;br /&gt;SQL&gt; startup mount&lt;br /&gt;ORACLE instance started.&lt;br /&gt;Total System Global Area 184549376 bytes&lt;br /&gt;Fixed Size 1300928 bytes&lt;br /&gt;Variable Size 157820480 bytes&lt;br /&gt;Database Buffers 25165824 bytes&lt;br /&gt;Redo Buffers 262144 bytes&lt;br /&gt;Database mounted.&lt;br /&gt;SQL&gt; alter database archivelog;&lt;br /&gt;Database altered.&lt;br /&gt;SQL&gt; alter database open;&lt;br /&gt;Database altered.&lt;br /&gt;You can see here that we put the database in ARCHIVELOG mode by using the SQL statement "alter database archivelog", but Oracle won't let us do this unless the instance is mounted but not open. To make the change we shutdown the instance, and then startup the instance again but this time with the "mount" option which will mount the instance but not open it. Then we can enable ARCHIVELOG mode and open the database fully with the "alter database open" statement.&lt;br /&gt;There are several system views that can provide us with information reguarding archives, such as:&lt;br /&gt;V$DATABASE&lt;br /&gt;Identifies whether the database is in ARCHIVELOG or NOARCHIVELOG mode and whether MANUAL (archiving mode) has been specified.&lt;br /&gt;V$ARCHIVED_LOG&lt;br /&gt;Displays historical archived log information from the control file. If you use a recovery catalog, the RC_ARCHIVED_LOG view contains similar information.&lt;br /&gt;V$ARCHIVE_DEST&lt;br /&gt;Describes the current instance, all archive destinations, and the current value, mode, and status of these destinations.&lt;br /&gt;V$ARCHIVE_PROCESSES&lt;br /&gt;Displays information about the state of the various archive processes for an instance.&lt;br /&gt;V$BACKUP_REDOLOG&lt;br /&gt;Contains information about any backups of archived logs. If you use a recovery catalog, the RC_BACKUP_REDOLOG contains similar information.&lt;br /&gt;V$LOG&lt;br /&gt;Displays all redo log groups for the database and indicates which need to be archived.&lt;br /&gt;V$LOG_HISTORY&lt;br /&gt;Contains log history information such as which logs have been archived and the SCN range for each archived log.&lt;br /&gt;Using these tables we can verify that we are infact in ARCHIVELOG mode:&lt;br /&gt;SQL&gt; select log_mode from v$database;&lt;br /&gt;LOG_MODE&lt;br /&gt;------------&lt;br /&gt;ARCHIVELOG&lt;br /&gt;SQL&gt; select DEST_NAME,STATUS,DESTINATION from V$ARCHIVE_DEST;&lt;br /&gt;&lt;br /&gt;&lt;a name="SECTION001220000000000000000"&gt;&lt;span style="color:#cc0000;"&gt;Basic RMAN Backup&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;Lets do a real simple backup using RMAN that writes it's output to a local file instead of the tape subsystem just to see how it works. In this case, we've got our database (SID: cuddle) up and running.&lt;br /&gt;[oracle@vixen oracle]$ echo $ORACLE_SID&lt;br /&gt;cuddle&lt;br /&gt;[oracle@vixen oracle]$ rman nocatalog target /&lt;br /&gt;Recovery Manager: Release 10.1.0.2.0 - 64bit Production&lt;br /&gt;Copyright (c) 1995, 2004, Oracle. All rights reserved.&lt;br /&gt;connected to target database: CUDDLE (DBID=251015092)&lt;br /&gt;using target database controlfile instead of recovery catalog&lt;br /&gt;RMAN&gt; backup database;&lt;br /&gt;Starting backup at 02-NOV-04&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=162 devtype=DISK&lt;br /&gt;channel ORA_DISK_1: starting full datafile backupset&lt;br /&gt;channel ORA_DISK_1: specifying datafile(s) in backupset&lt;br /&gt;input datafile fno=00001 name=/u02/oradata/cuddle/system01.dbf&lt;br /&gt;input datafile fno=00003 name=/u02/oradata/cuddle/sysaux01.dbf&lt;br /&gt;input datafile fno=00002 name=/u02/oradata/cuddle/undotbs01.dbf&lt;br /&gt;input datafile fno=00004 name=/u02/oradata/cuddle/users01.dbf&lt;br /&gt;channel ORA_DISK_1: starting piece 1 at 02-NOV-04&lt;br /&gt;channel ORA_DISK_1: finished piece 1 at 02-NOV-04&lt;br /&gt;piece handle=/u01/app/oracle/product/10.1.0/db_1/dbs/05g438u6_1_1 comment=NONE&lt;br /&gt;channel ORA_DISK_1: backup set complete, elapsed time: 00:01:45&lt;br /&gt;channel ORA_DISK_1: starting full datafile backupset&lt;br /&gt;channel ORA_DISK_1: specifying datafile(s) in backupset&lt;br /&gt;including current controlfile in backupset&lt;br /&gt;including current SPFILE in backupset&lt;br /&gt;channel ORA_DISK_1: starting piece 1 at 02-NOV-04&lt;br /&gt;channel ORA_DISK_1: finished piece 1 at 02-NOV-04&lt;br /&gt;piece handle=/u01/app/oracle/product/10.1.0/db_1/dbs/06g4391f_1_1 comment=NONE&lt;br /&gt;channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03&lt;br /&gt;Finished backup at 02-NOV-04&lt;br /&gt;RMAN&gt; quit&lt;br /&gt;Recovery Manager complete.&lt;br /&gt;[oracle@vixen oracle]$&lt;br /&gt;This is the most basic backup you can do with RMAN. We didn't tell RMAN how or where to backup the database, just simply to do it.&lt;br /&gt;The rman command is passed 2 arguments: the first "nocatalog" tells RMAN that we aren't using a recovery catalog database and the second "target /" is similar to a SQL*Plus connect statement, with information that RMAN requires to connect to the target database. The target is the database we wish to backup.&lt;br /&gt;Notice that RMAN returns some interesting information prior to giving us a prompt. It confirms that RMAN is connected to the target and lists that target. The DBID seen after the target database SID can be very important for later recoveries and it is recommend that you write it down somewhere for future use. RMAN then confirms that because we aren't using a recovery catalog to store backup metadata that it will instead store the data in the target databases control files.&lt;br /&gt;The RMAN command backup database; sends RMAN on its merry way backing up the database. Notice that we didn't tell it where or how to backup the data. By default the backup peices will be placed in the $ORACLE_HOME/dbs directory. This can get very messy since your system PFILES are in there too, and therefore we recommend that you don't use this location for your normal backups.&lt;br /&gt;Two backup peices were created. The first contains the datafiles holding the tablespaces including the undo tablespace. The second backup peice contains the current SPFILE and curent controlfile.&lt;br /&gt;Lets stop and think carefully for just a moment. Now, we've opted to use ARCHIVELOG mode which means we can do hot backups. However, we didn't want the hassle and administrative overhead of maintaining a recovery catalog. So here is the rub: recall that you need a PFILE/SPFILE to start an instance and you need the controlfile to point to all the files to be mounted. If the database were completely destroyed we would certainly need both the SPFILE and the Controlfile to access the backup peices made by RMAN.... but they are inside the backup we just made! Nice little loop of confusion huh? We'll talk about this later, but for now just keep it in mind.&lt;br /&gt;&lt;br /&gt;&lt;a name="SECTION001230000000000000000"&gt;&lt;span style="color:#cc0000;"&gt;Basic Recovery&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;To see how RMAN can be useful for recovery, lets take a database and damage it. Lets simulate a tablespace being deleted because of a bad script or stupid DBA and then try to recover the database.&lt;br /&gt;[oracle@vixen oracle]$ mv /u02/oradata/cuddle/users01.dbf /u02/oradata/cuddle/users01.dbf.oops&lt;br /&gt;Okey, there is our disaster. Lets connect to RMAN and look for suitable backups to recover.&lt;br /&gt;[oracle@vixen oracle]$ rman nocatalog target /&lt;br /&gt;Recovery Manager: Release 10.1.0.2.0 - 64bit Production&lt;br /&gt;Copyright (c) 1995, 2004, Oracle. All rights reserved.&lt;br /&gt;connected to target database: CUDDLE (DBID=251015092)&lt;br /&gt;using target database controlfile instead of recovery catalog&lt;br /&gt;RMAN&gt; list backup;&lt;br /&gt;List of Backup Sets&lt;br /&gt;===================&lt;br /&gt;.........&lt;br /&gt;BS Key Type LV Size Device Type Elapsed Time Completion Time&lt;br /&gt;------- ---- -- ---------- ----------- ------------ ---------------&lt;br /&gt;5 Full 528M DISK 00:01:43 02-NOV-04&lt;br /&gt;BP Key: 5 Status: AVAILABLE Compressed: NO Tag: TAG20041102T134437&lt;br /&gt;Piece Name: /u01/app/oracle/product/10.1.0/db_1/dbs/05g438u6_1_1&lt;br /&gt;List of Datafiles in backup set 5&lt;br /&gt;File LV Type Ckp SCN Ckp Time Name&lt;br /&gt;---- -- ---- ---------- --------- ----&lt;br /&gt;1 Full 1267667 02-NOV-04 /u02/oradata/cuddle/system01.dbf&lt;br /&gt;2 Full 1267667 02-NOV-04 /u02/oradata/cuddle/undotbs01.dbf&lt;br /&gt;3 Full 1267667 02-NOV-04 /u02/oradata/cuddle/sysaux01.dbf&lt;br /&gt;4 Full 1267667 02-NOV-04 /u02/oradata/cuddle/users01.dbf&lt;br /&gt;BS Key Type LV Size Device Type Elapsed Time Completion Time&lt;br /&gt;------- ---- -- ---------- ----------- ------------ ---------------&lt;br /&gt;6 Full 2M DISK 00:00:03 02-NOV-04&lt;br /&gt;BP Key: 6 Status: AVAILABLE Compressed: NO Tag: TAG20041102T134437&lt;br /&gt;Piece Name: /u01/app/oracle/product/10.1.0/db_1/dbs/06g4391f_1_1&lt;br /&gt;Controlfile Included: Ckp SCN: 1267704 Ckp time: 02-NOV-04&lt;br /&gt;SPFILE Included: Modification time: 15-OCT-04&lt;br /&gt;RMAN&gt;&lt;br /&gt;We can see that we have good and current backups of this database avalible. Lets now try to recover in the basic way.&lt;br /&gt;MAN&gt; restore datafile '/u02/oradata/cuddle/users01.dbf';&lt;br /&gt;Starting restore at 02-NOV-04&lt;br /&gt;using channel ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: starting datafile backupset restore&lt;br /&gt;channel ORA_DISK_1: specifying datafile(s) to restore from backup set&lt;br /&gt;restoring datafile 00004 to /u02/oradata/cuddle/users01.dbf&lt;br /&gt;channel ORA_DISK_1: restored backup piece 1&lt;br /&gt;piece handle=/u01/app/oracle/product/10.1.0/db_1/dbs/05g438u6_1_1 tag=TAG20041102T134437&lt;br /&gt;channel ORA_DISK_1: restore complete&lt;br /&gt;Finished restore at 02-NOV-04&lt;br /&gt;RMAN&gt; recover datafile '/u02/oradata/cuddle/users01.dbf';&lt;br /&gt;Starting recover at 02-NOV-04&lt;br /&gt;using channel ORA_DISK_1&lt;br /&gt;starting media recovery&lt;br /&gt;media recovery complete&lt;br /&gt;Finished recover at 02-NOV-04&lt;br /&gt;RMAN&gt;&lt;br /&gt;Here, because the controlfiles and spfile are in tact, we can simply tell RMAN to restore the missing datafile, specifying which datafile by it's fully qualified path (which you can also see in your "list backup;").&lt;br /&gt;Once the datafile is restored, we can recover it to ensure it's consistant.&lt;br /&gt;Once your done, you'll either want to bring the datafile and tablespaces online using alter statements, or at the very least use SQL*Plus to verify that the tablespaces are online by looking at the Oracle data dictionary.&lt;br /&gt;SQL&gt; select TABLESPACE_NAME,STATUS from dba_tablespaces;&lt;br /&gt;TABLESPACE_NAME STATUS&lt;br /&gt;------------------------------ ---------&lt;br /&gt;SYSTEM ONLINE&lt;br /&gt;UNDOTBS1 ONLINE&lt;br /&gt;SYSAUX ONLINE&lt;br /&gt;TEMP ONLINE&lt;br /&gt;USERS ONLINE&lt;br /&gt;SQL&gt; select FILE#,STATUS,ENABLED,NAME from v$datafile;&lt;br /&gt;FILE# STATUS ENABLED&lt;br /&gt;---------- ------- ----------&lt;br /&gt;NAME&lt;br /&gt;---------------------------------&lt;br /&gt;1 SYSTEM READ WRITE&lt;br /&gt;/u02/oradata/cuddle/system01.dbf&lt;br /&gt;2 ONLINE READ WRITE&lt;br /&gt;/u02/oradata/cuddle/undotbs01.dbf&lt;br /&gt;3 ONLINE READ WRITE&lt;br /&gt;/u02/oradata/cuddle/sysaux01.dbf&lt;br /&gt;4 OFFLINE READ WRITE&lt;br /&gt;/u02/oradata/cuddle/users01.dbf&lt;br /&gt;In this above case the tablespace is online but we find the datafile is offline. Lets just fix that up by using an alter statement:&lt;br /&gt;SQL&gt; alter database datafile '/u02/oradata/cuddle/users01.dbf' online;&lt;br /&gt;Database altered.&lt;br /&gt;SQL&gt; alter tablespace USERS online;&lt;br /&gt;Tablespace altered.&lt;br /&gt;We didn't need to alter the tablespace because it was already online, but I did it any way to demonstrate. Once you've successfully altered the database to bring both the datafile and the tablespaces online you'll want to run the queries above again to double check.&lt;br /&gt;&lt;br /&gt;&lt;a name="SECTION001240000000000000000"&gt;&lt;span style="color:#cc0000;"&gt;Listing Backups&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;Lets spend just a minute looking alittle more at the history of backups using the "list" RMAN command. Using the "list backup" RMAN statement we can list the backups we've made.&lt;br /&gt;[oracle@vixen oracle]$echo $ORACLE_SID&lt;br /&gt;cuddle&lt;br /&gt;[oracle@vixen oracle]$rman nocatalog&lt;br /&gt;Recovery Manager: Release 10.1.0.2.0 - 64bit Production&lt;br /&gt;Copyright (c) 1995, 2004, Oracle. All rights reserved.&lt;br /&gt;RMAN&gt; connect target /&lt;br /&gt;connected to target database: CUDDLE (DBID=251015092)&lt;br /&gt;using target database controlfile instead of recovery catalog&lt;br /&gt;RMAN&gt; list backup;&lt;br /&gt;List of Backup Sets&lt;br /&gt;===================&lt;br /&gt;BS Key Type LV Size Device Type Elapsed Time Completion Time&lt;br /&gt;------- ---- -- ---------- ----------- ------------ ---------------&lt;br /&gt;1 Full 441M DISK 00:01:23 15-OCT-04&lt;br /&gt;BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20041015T175207&lt;br /&gt;Piece Name: /export/rman/rman_CUDDLE_01g2k8m8_1_1.bus&lt;br /&gt;List of Datafiles in backup set 1&lt;br /&gt;File LV Type Ckp SCN Ckp Time Name&lt;br /&gt;---- -- ---- ---------- --------- ----&lt;br /&gt;1 Full 396472 15-OCT-04 /u02/oradata/cuddle/system01.dbf&lt;br /&gt;2 Full 396472 15-OCT-04 /u02/oradata/cuddle/undotbs01.dbf&lt;br /&gt;3 Full 396472 15-OCT-04 /u02/oradata/cuddle/sysaux01.dbf&lt;br /&gt;4 Full 396472 15-OCT-04 /u02/oradata/cuddle/users01.dbf&lt;br /&gt;BS Key Type LV Size Device Type Elapsed Time Completion Time&lt;br /&gt;------- ---- -- ---------- ----------- ------------ ---------------&lt;br /&gt;2 Full 2M DISK 00:00:02 15-OCT-04&lt;br /&gt;BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20041015T175207&lt;br /&gt;Piece Name: /export/rman/rman_CUDDLE_02g2k8ou_1_1.bus&lt;br /&gt;Controlfile Included: Ckp SCN: 396502 Ckp time: 15-OCT-04&lt;br /&gt;SPFILE Included: Modification time: 15-OCT-04&lt;br /&gt;RMAN&gt;&lt;br /&gt;Here we can see 2 backup pieces, the first contains the datafiles for the "cuddle" database, is 441MB in side, was made to disk and took 1 minute and 23 seconds to make. We aslo see the peices tag (notice the tag is the same for both peices). Notice also that each datafile in the backup peice has a Checkpoint System Change Number (Ckp SCN) associated with it (SCNs were covered earlier). The second peice is 2MB in size, took 2 seconds to backup and was done to disk. Notice that the second peice lists the modification time for the SPFILE and the SCN for the Controlfile.&lt;br /&gt;The list command has a number of argument that can allow you to tailor the output to just about any way you want to see it. A nice and consice output is seen using "list backup summary".&lt;br /&gt;See a complete list of options to the RMAN list command in the Oracle Database Recovery Manager Reference manual:&lt;br /&gt;&lt;a href="http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10770/toc.htm"&gt;http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10770/toc.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name="SECTION001250000000000000000"&gt;&lt;span style="color:#cc0000;"&gt;Advanced Backup&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#cc0000;"&gt; &lt;/span&gt;&lt;br /&gt;The method we used for a basic RMAN backup shows how to use RMAN but it doesn't provide an efficient way to automate the proccess using traditional tools like the cron. Using alittle RMAN scripting the proccess can easily be controlled from a script and run from cron or any other schedualling method you'd like.&lt;br /&gt;The foundation of this method of using RMAN is built on the run block. Within the block are a list of RMAN commands to be sequentually run. When the block is handled by RMAN it will first verify that each of the input lines in the block are valid and proper, it will then execute each statement line by line sequentually. This is as close a method as possible to ensure the operation is atomic.&lt;br /&gt;Here is a simple RMAN run block (the backup_full.rman we'll use in a minute):&lt;br /&gt;run {&lt;br /&gt;allocate channel d1 type disk;&lt;br /&gt;backup full database format '/export/rman/rman_%n_%T_%s_%p.bus';&lt;br /&gt;}&lt;br /&gt;In this run block we're simply allocating a disk channel and preforming a backup to the /export/rman directory using a specific naming convension for the output backup set.&lt;br /&gt;This run block can be run directly from the RMAN prompt by entering it line by line or calling the script. However, the more appropriate way to execute it is from a standard command line where it can be wrapped in a script and/or controlled from cron.&lt;br /&gt;[oracle@vixen RMAN]$ rman nocatalog target / \&lt;br /&gt;&gt; cmdfile='backup_full.rman' log='/export/rman/rman.log'&lt;br /&gt;RMAN&gt; 2&gt; 3&gt; 4&gt; 5&gt;&lt;br /&gt;[oracle@vixen RMAN]$&lt;br /&gt;Here the rman executable is called as it would normally be, but we supply the location of an RMAN script to run with the cmdfile argument and a place to output the logging information with the log argument.&lt;br /&gt;When RMAN is executing it will output the RMAN prompts but nothing else. This can be useful for debugging, but should probly be redirected for cleanliness when used from a script or cron.&lt;br /&gt;Comments can be put in RMAN scripts using a hash (#).&lt;br /&gt;More details on command line options can synatex for run blocks can be found in the Oracle Database Recovery Manager Reference:&lt;br /&gt;&lt;a href="http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10770/"&gt;http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10770/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name="SECTION001260000000000000000"&gt;&lt;span style="color:#cc0000;"&gt;Advanced Recovery&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#cc0000;"&gt; &lt;/span&gt;&lt;br /&gt;If you've spent any time with RMAN previous to reading this book you'll have noticed that it's not really built for complete disaster recovery. As a sysadmin, I'm concerned about what I do when the entire enviroment is in ruin and I can't depend on any other system being avalible. So, for the advanced recovery we're going to examine how you would recover a database is the only thing you have avalible is the backup pieces. In this case, I'm going to use my 2 backup peices from the advanced RMAN backup we just did to recover the database after destroying every trace of the database.&lt;br /&gt;Lets review an important point first. RMAN can be utilized using a recovery catalog. When used, this database is updated by RMAN with information pertaining to backup peices and RMAN metadata. One recovery catalog database can be utilized by multiple databases on diffrent systems, possibly a "small" installation of Oracle on your backup server. If we don't use a recovery catalog we're forced to put backup information in some other place... the controlfiles. Storing backup information inside the database controlfile is a real touchy subject. On one hand it makes perfect sense because your store information about all the other resources of your database in there anyway. On the other hand, its an insanely stupid idea because the controlfile is one of the files your backing up! Therefore, if you have to use a controlfile to store backup information you'll need to keep some things in mind. Particularlly, if you want to restore the database you'll need to recover the controlfiles first either from the RMAN backup peices (the hard way) or even possibly recover it from a file system backup of the system before recovering the backup peices made by Oracle. All this goes away if you have a recovery catalog because when you start a database restore RMAN can simply ask the recovery catalog for the peice containing the control file and restore it first.&lt;br /&gt;In the following example we will not be using a recovery catalog, and we are using an SPFILE instead of a regular PFILE, since SPFILEs are default in 10g.&lt;br /&gt;So, to start off we need to double check the location of the backup pieces, set the ORACLE_SID (even though there is no database, you must still have a SID) and use RMAN to
