This action might not be possible to undo. Are you sure you want to continue?
1.What is an Oracle Instance? Instance is a combination of memory structure and process structure. Memory structure is SGA and Process structure is background processes. 2. What information is stored in Control File? Ans) The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace information Datafile offline ranges The log history Archived log information Backup set and backup piece information Backup datafile and go back over log information Datafile copy information The current log sequence number 3. When you start an Oracle DB which file is accessed first? Ans) If it has First read init.ora file otherwise spfile.ora 4. What is the Job of SMON, PMON processes? SMON :- System monitor process recovers after an instance failure and monitors temporary segments and extents.
This process is called cache recovery. When there are enough data in the database buffer cache.Process monitor process cleans up processes and releases locks and resources after an abnormal termination of a process. 5. Oracle uses the data recorded in the online redo log files to recover the lost data when the associated database is re-started. Oracle rolls back all uncommitted transactions when the associated database is re-started. Transaction recovery: When a transaction modifies data in a database. Oracle uses the undo data stored in undo segments to accomplish this. At the time of an instance failure. the database may have uncommitted transactions. 6. Instance recovery occurs in two steps: Cache recovery: Changes being made to a database are recorded in the database buffer cache. To maintain read consistency. If an Oracle instance fails before the data in the database buffer cache are written to data files. This process is called transaction recovery.Oracle performs an instance recovery when the associated database is re-started. These changes are also recorded in online redo log files simultaneously. The data stored in the undo segment is used to restore the original values in case a transaction is rolled back. What is written in Redo Log Files? . the before image of the modified data is stored in an undo segment. It is possible that changes made by these uncommitted transactions have gotten saved in data files. What is Instance Recovery? When an Oracle instance fails.PMON :. they are written to data files.
10. What is a Checkpoint? 13. What is a Tablespace? Ans) A database is divided into Logical Storage Unit called tablespaces. Log writer does this every three seconds. 12.Log writer (LGWR) writes redo log buffer contents Into Redo Log FIles. Can you make a Datafile auto extendible. (else DBWR) 15. the database's parameter file indicates the amount of SGA space to reserve for datafile information. 8. This limit applies only for the life of the instance.. Which Process reads data from Datafiles? Ans) Server process. T always advisable to have two or more redo log files and keep them in a separate disk So you can recover the data during the system crash. when the redo log buffer is 1/3 full and immediately before the Database Writer (DBWn) writes its changed buffers into the datafile. 11. Which Process writes data in Datafiles? Ans) Server Processes. Which default Database roles are created when you create a Database? Ans) Connect . 7. What is the purpose of Redo Log files? Ans) The purpose of redo log file is to record all changes made to the data during the recovery of database. 14. A tablespace is used to grouped related logical structures together. 9. the maximum number of datafiles is controlled by the DB_FILES parameter. resource and dba are three default roles. how? .If yes. How do you control number of Datafiles one can have in an Oracle database? When starting an Oracle instance. How many Maximum Datafiles can there be in an Oracle Database? Ans) Max datafiles in oracle is 65536 or 65546.
Text version. Of redo log files" with DBCA. 17. Buffer Cache is shared memory structure and it is concurrently accessed by all server processes.To maximize the performance of the system internal operation.Binary version. You can check the current max with: 19. What is difference between PFile and SPFile? Ans) Server Parameter Files . 18. Persistent. What is a Shared Pool? Ans) Shared Pool compromises of Library Cache and Dictionary Cache. Database Buffer Cache is the place where data blocks are copied from datafiles to perform SQL operations. What is PGA_AGGREGRATE_TARGET parameter? Ans) 21. Initialization Parameter Files .Library Cache stores and shares sql stmts where as plsql stmts in memory. Dictionary Cache: Oracle continously request and update information in the data dictionary of the db. What is kept in the Database Buffer Cache? Ans) Database Buffer cache is one of the most important components of System Global Area (SGA). How many maximum Redo Logfiles one can have in a Database? Ans) Depends on what you specified for MAXLOGFILES during database creation (manually) or what you specified for "Maximum no. 20. Not persistent.16.Data Dictionary cache holds dictionary information. Large Pool is used for what? Ans) Large Pool is an optional memory structure used for the following purposes :(1) Session information for shared server .
Hence Large pool also reduces overhead of Shared pool. 25.it work for third or subsequent extent. Similarly Pct Used is used to denote the percentage of the used space that is to be used when creating a table eg. Third extent size last extent size+ pctincrease of last extent size. What is 01555 . What is Row Migration and Row Chaining? Ans) Row Chaining:-The row is too large to fit into an EMPTY data block. 22.Snapshot Too Old error and how do you avoid it? Ans) he SNAPSHOT_TOO_OLD erro will come . What is PCTFREE and PCTUSED Setting? Ans) Pct Free is used to denote the percentage of the free space that is to be left when creating a table.Row chaining in such cases is Unavoidable.Oracle keeps the original Row piece of a Migrated row row to POINT to the NEW BLOCK containing the actual row. CHAINING occurs when row is INSERTED or UPDATED Row chaining can happen for very large rows such as rows that contain LOB. . The role of Large Pool is important because otherwise memory would be allocated from the Shared pool. Row Migration:-An UPDATE statement increases the amount of DATA in a ROW so that the Row NO LONGER FITS in to its DATA BLOCK...INDEXES are not updated and they point to the ORIGINAL row LOCATION.:: Pctfree 20. What is PCT Increase setting? Ans) PCTINCREASE: It take place when two extent are already allocated. Pctused 40 24. the query will goves into cartesion product or infinite loop . Oracle tries to find another Blockwith enough free space to hold the entire row.In this Oracle stores the DATA for the row in a CHAIN of one or more Data BLOCKS.(2) I/O server processes (3) Parallel queries (4) Backup and recovery if using through RMAN. 23.The ROWID of the MIGRATED rows does not change.If such block is available Oracle moves the entire ROW to the NEW BLOCK.
contact ur DBA to check for Undo retention period. In this case u can use commit statement for every 500 records then u can avoid this problam. . ----------Snapshot_too_old exception is thrown when ur performing very large DML operation without commiting this can be resolved by increasing undo retention period.Other case is suppose ur updated loarge no of rows at atime without saveing the records . Or ask DBA to extend the table space for this segment.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue listening from where you left off, or restart the preview.