You are on page 1of 12

1)Advisory component used to determine the required size of the database buffer cache ans:memory advisor 2)In order

to minimise the waits for log file paralle write are ans:place redo log files on different disks. 3)U have recreated the control file in u r database what action would u take af ter recreating the control file and opening the database ans:rename the read only datafiles to their correct file names. 4)U are performing a block media recivery on the tools01.dbf datafile in the SA LES database using RMAN ANS: U Must ensure that the database is mounted or open U can perform only complete media recovery of indivigual blocks, point in time recovery of individual block is not supported. 5)In u r database online redolog files are multiplexed and one of the members in a group is lost due to media failure what would u do to recover the lost redo log member? ans:-drop the lost member from the database and add new member to the group. 6)In oracle 10g u donot need to perform full database backup after the RESETLOGS operation. 7)For an application the user session requires time zone to be set to the local OS timezone without affecting other user sessions ans:use ALTER SESSION command to change the time zone. Set the value for OS varaiable ORASDTZ on the client machine. 8)When one of the block gets corrupted in u r datafile and u want to recover it without affecting other user as well as archived logs are inaccesible ans:use the RMAN block recover command. 9)flasback logs are not archived and they are maintained in the flash recovery area. 10)select operation,undo_sql,tablename from flashback_transection_query ans:above query would return active andcommited transections in all undo segm ents in the dataabse. 11)In order to make the task to be genric i.e. it allows to modify it's attribut e at run time without affecting the original task which component of the orac le scheduler must u define to achive this ans:program 12)In oredr to maintain consistant performance of the database while adding or r emoving the disks in ASM ans:*Define POWER option while adding or removing the disks. *Increase the number of ASM rebalance processes by setting up higher valu e for ASM_POWER_LIMIT during addtion or removal. 13)When the lost tablespace is read/write and it was read only when backup was t aken how would u recover the tablespace

ans:restore the tablespace from backup and then recover the tablespace.all th e redo information from the point when tablespace was made read/write is applied . 14)An RMAN backup fails displaying hte error that ORA-19809limit exceeded for recovery files which action could u take ans:change the backup retension policy to retain backups for smaller period o f time. --increase the value for DB_RECOVERY_FILE_DEST_SIZE initialisation parame ter. 15)In which situation would the following recovery be required SQL>RECOVER DATABASE 2>UNTILL TIME'2004-08-05:12:10:03' 3>USING BACKUP CONTROL FILE; ans:the current control file doesnot match the physical structure of the data base at intended time of recovery. 14)u have been asked to design a table to facilitate monthly bill generation,the bill would include details of cutomer calls arranged in chronological order whi ch method would u follow? ans:create a sorted hash cluster to store the data. 15) In which scenario wpuld u rebuild an index *when u need to change storage option. *when u need to move the in gex to another tablespace. questio no. 28),66),119),139)? 16)The change tracking writer background process (CTWR) records the physical loc ation of all the changes that are made to database in the change tracking file. 17)RMAN>RESTORE CONTROLFILE; which two operations do u need to perform after restoring the control file fr om backup ans:*add new temp file to temporary tablespace after recovery *perform the media recovery and open the dataabse with resetlogs option. 18)In order to create a bitmap index on IOT which task must have been completed? ans:A mapping table must have been created. 19)In order to add a new disk group in ASM instance without causing an impact on the currently connected users ans:mount new disk group in the ASM instance. 20)When DB_BLOCK_CHECKING initialisation parameter is set to TRUE what would be the result? ans:The oracle database will check all datablocks by going through the data on each block,making sure that the data is self consistant. 21)Which option would u use to migrate datafiles from non-ASM instance to ASM in stance ans:RMAN 22)Using ORACLE SCHEDULER U nave created two jobs JOB1 and JOB2 both of them sho uld run at 9:00 p.m. every friday and both should use a single resource plan, WEEKEND_PALN. ANS:A job class must be created with the WEEKEND_PLAN resource plan. 23)In order to increase the memory available for the SQL work areas.

ans:modify PGA_AGGREGATE_TARGET initialisation parameter. 24)When a redo log file is corrupted when the database is open and because of th is it's operations are stopped as it cannot continue the archiving which action to be taken? ans:clear the redo log group. 25)ALTER SESSION ENABLE RESUMABLE TIMEOUT 60; The impact of above statement is that the suspended statement error out if th e problem is not rectified between 60 seconds. 26)when u enable BLOCK CHANGE TRACKING FEATURE for the database which statement regarding the change tracking file is true? ans:one change tracking file is created for the database and by defaukt it i s created in DB_CREATE_FILE_DEST. 27)U want to use SQL Tuning Advisor to generate recommendations for badly writte n SQL statements which three sources can u select for an advisor to analyse? ans:top sql sql tuning sets index access path 28)u use DBVERIFY utility to create a report for any corruptions found within th e database. 29)when a segment space management is not auto u cannot shrink any table blongin g to that tablespace. 30)Four types of files which can be backed up with RMAN BACKUP command 1)datafile 2)archived redo log file 3)current control file 4)current server parameter file. 31)To findout weather listener naned L1 is password protected or not ans:by using STATUS LI command of the listener control utility. 32)when u lost temporary file belonging to temporary tablespace in u r database what action would u take to solve the problem? ans:create a new temporary tablespace ,make it a default temporary tablespace and then drop the old temporary tablespace. 33)recycle bin exists only for the tables which belongs to non-SYSTEM localy man aged tablespace. 34)the two sources u can use to determine the optimal size of redo log files are : 1.v$INSTANCE_RECOVERY view. 2.oracle enterprise manager database control 35)which step must be performed before u start using the resource plan? ans:assign users to consumer group. 36)%rman target/ what would be the impact of the above command ans:RMAN would use control file of the taeget database to maintain the backup metadata.

37)when the flashback database feature is disabled by the command SQL>ALTER DATABASE FLASHBACK OFF; the flahback logs are deleted automaticaly. 38)some of the initialisation parameters are changed when the database was runni ng u are supposed to find the parameter when the instance was started ans:use alert log file. 39)ALTER DISKGROUP dgroup1 ADD TEMPLATE my_temp ATTRIBUTES(MIRROR_FINE); What is the result of above command? ans:when the file is created with dgroup1 with the template, it would have tw o way mirroring and file striping. 40)A datafile becomes corrupted in u r database due to bad sectors on the disk w hich method would u use for recovery? ans:restore datafile to new location and perform media recovery. 41)what purpose would u achie by enabling block change tracking feature? ans:perform optimised incremental backups. 42)BACKUP VALIDATION DATABASE; BLOCK RECOVER CORRUPTION LIST; What would be the impact of the above command? ans:run a backup validation to populate V$DATABASE_BLOCK_CORRUPTION view.and th en repair any corrupted block recorded in the view. 43)how would u configure database to ensure that each department generates its r eports using the most recent report format everyday? ans:by creating a program using DBMS_SCHEDULER that accepts one or more varia bles and creating the job that calls this program by using DBMS_SCHEDULER. 44)Which statement is true regarding the creation of nested plans using resource manager? ans:each nested plans get proportion of CPU resources assigned to its parent group. 45)In oreder to make the listner password protected and accomplish the task whi le the listner is functional ans:use the commands CHANGE_PASSWORD and SAVE_CONFIG of the listener control utility. 46)to check for the corrupt partition of any table use ANALYZE command. 47)The in-memory statistics gathered at regular interval are stored in ans: Oracle 10g Enterpirse Manager Grid Control. 48)the system identifier of the instance is set to '+ASM' what is the purpose of this instance? ans:this instance is being used to manage the background processes of other instances. 49)which two backup u would be able to perform by RMAN when the database is bein g accesed by the users? *backup of ofline tablespaces *backup of read only tablespaces. 50)in u r production database u have multiple plan directives that refers to con sumer

group DB_GRP which two statemets are correct? ans:*the parallel degree limit for DB_GRP will be minimum for all incoming va lues. *if session switch from DB_GRP group to another consumer group because it if the exceeded the prescribed switch time then the session would execute even active session pool for the new consumer group was full.

51)how does RMAN find the control file autobackup? ans:by using database ID By using the autobackup format configuration. 52)which statement is true while creating sub plans using resource management? ans:u can use resource plan instead of consumer group to implement priority r anking within the plan. 53)In which two situation would u perform cancel based recovery? 1)u find that the current redo log group is damaged and is not available for ] recovery. 2)u realised that while performing a recovery an archived redo log file neede d for recovery is lost. 54)maping table in an IOT is fragmented and which option would u use to defragme nt it without affecting the original tabledata? ans:drop and recreate the mapping table. 55)the location set by $ORACLE_BASE would be used as the default location flash recovery area. 56)the united Job Schedular occupant cannot be relocated. 57)CTWR is the background process which writes to the change tracking file. 58)which two types of policies can be assigned to the policy_type argument in t he dbms_rls.add_policy procedure to enforce company's buisness policy on severa l objects? ans:1)DBMS_RLS.SHARED_STATIC The policy function execute once,then the predicate is cached in the S GA and is shared across multiple objects. 2)DBMS_RLS.SHARED_CONTEXT_SENSITIVE The policy function executes firest time and the object is referenced database session Ppridicates are cached in private session memory

in UGA so

policy function can be shared among objects. 59)When the DB_BLOCK_CHECKING parameter is set to FALSE fhich type of block ch ecking is performed? ans:the Oracle database will perform block checking only for SYSTEM tablesp ace. 60)Which method can u use to recreate the indexexs? --SQL script

--DATA PUMP 61)If u want ot drop the non empty diskgroup in ASM instance the command will eturn an error as the group is non empty. 62)when the database is in the ARCHIVELOG mode and all the tablespaces are onl ine which two steps to be performed in order to perform incomplete recovery ? --open the databse with RESETLOGS option. --recover all the datfiles to the same SCN. he 63)U have recreated the control file in u r database and found that some of t datafiles are named as MISSIMDnnnn what could be the possible reason? ans:there is a read only tablespace in u r database.

64)the block change tracking feature is automaticaly used by RMAN if it is enab led. 65)when u configure Large Pool for Oracle backup and restoration operation Shared Pool will require less memory. 66)U need to check if the table is effected by block corruption found in the tablespace where the table is residing ans:use ANALYZE command. 67)A media failure has occured and all the member of next log group being rende red inaccesible to LGWR process at a log switch how does this failure affect the operational database? ans:The database returns an error and the database instance shuts down. 68)u want to perform media recovery and the tablespace is read only right now b ut the media recovery is to be done with control file and it shows that the tab le space was read write when the backup of control file was taken which step to be taken before performing media recovery? ans:take data files from the read only tablespace offline before performing a recovery. 69)in which two sources would u find DBID which is used for control file ecover y from autobackup? ans:the formatted name of control file autobackup an RMAN session log file. *redo log files include every change made to the database while the alert log fi le contains information regarding any change made to the database structure. 70)The RMAN command CONFIGURE CONTROL FILE AUTOBACKUP ON is used to configure RMAN to perform ba ckup of control file and spfile in one of the following situations 1)whenever successfull backup is recorded in the rman repository. 2)whenever structural change is made into the database. 71)the MAXSETSIZE parameter is used to set the maximum size of each backup set.u shoud ensure that the value of the MAXSETSIZE parameter is larger than the size of largest datafile in u r database. 72)which command is used to establish a connection between RMAN and RMAN reposit

ory to if u r database is using password file authentication? ans:rman TARGET sys/password 73)CONTROL_FILE_KEEP_TIME parameter is used to specify minmum duration for which the information about backup that can be used by RMAN will be stored in the control file of the target database.the default value is 7 days and if it is made 0 it mea ns that the reusable circular section never expands and the records are reused as req uired. 74)the system change number is written in hte control file and is used by RMAN t o determine the blocks that were backed up in an incremental backup. 75)The control file and the spfile contains the information such as database name,locations of the datafiles and onlinr redo log file,the scn number,the log sequence number and the date and time of the creation of the database. 76)when OMF is not configured in u r database u must specify the file name with the command enabling block change tracking commnd as when the OMF is configur e the block change tracking file will automaticaly locate in the directory specifie d by DB_CREATE_FILE_DEST parameter. ALTER DATABASE ENEBLE BLOCK CHANGE TRACKING USING PATH<path>; 77) u cannnot space a temporary tablespace offline regardless a user is using a temporary tablespace for sorting. 78)before recreating the indexes in a new index tablespace perform the following steps: 1)start the database in a mount mode as database can't be opened unless u perf orm media recovery on lost index tablespace. 2)drop the existing index tablespace from the database to ensure that the corresponding entry from control file. 3)open the dataabse and create a new tablespace. 79)when u place members of redo log groups across different hard disks,only the member of the group stored on failed disk becomes unavilable.all the other me mbers are accesible and the database functions normaly. 80)a tablespace recovery is required when recovering a lost read-only tablespace from read-write tablespace backup when database is running in archivelog mode.when a table space status is changed from read-write to read-only or from read-only to rea d-write the current SCN stamped in the datafile of the tablespace and in the control file. when u restore datafile or lost tablespace,ORACLE varifies SCN stored in data file with control file, if this SCN's are different recovery is required for the tablespace.

81)A temporary tablespace is not mendatory when the database is started it is us ed for queries involving join condition,order by clause and group by clause a nd index building.in this scenario u should create a new temporary tablesp ace and assign it as default temporary tablespace for the database,later the temporary teblespace with the missing datafile can be droped.the DBWn process writes to alert log and the DBWn trace file indicates that the temporary tab lespace is missing.the database user might not be able to run queries or crea te indexes untill they have been assigned a new tablespace. 82)u should not remove or modify the password file when the database is mounted or open. if u recreate the password file when the database is open u can connect to th e database using password file. 83)if the active redo group is lost in a database running in no archivelog mode because of media failure u can recover the database by performing the followi ng steps *restore the current datafiles and control file from most recent consistent w hole database backup. *mount the database *perform cancel based recovery *open the database with resetlogs option. 84)user cannot be granted the SYSDBA or SYSOPER privilege if REMOTE_LOGIN_PASSWO RDFILE parameter is set to SHARED. 85)u can recover the table from recyclebin by FLASHBACK DROP feature. u can recover the dreoped and multiplexed member of redo log group by coping the multiplexed image to the desired location. 86)before restoring the control file from autobackup, u r requied to specify dat abase id. RMAN>SET DBID database_id; RMAN>BACKUP DATABASE; 87)Cancel based recovery is performed when u r performing user managed recovery. when u have only RMAN backup of u r dataabse u perform RMAN based incopmlete recovery. 88)incopmlete recovery is required when *all the members of redo log groups are lost. *when all control files are lost. *when a table is droped and perged from recyclebin. 89)cancel based recovery is performed if u have droped a tablespace and u have o nly use managed backup of the database. 90)after performing an incomplete recovery u should open the database with RESET LOGS option.if u have offline ablespace then u can bring them online after RE SETLOGS because there are no transectional changes for the files stored in redo logs . 91)the SYSTEM tablespace is the permanent online tablespace that contains fixed tables critical to the database. 92)when a table is droped it is stored in the recyclebin which can be recoverred

by flashback drop feature but if the table is purged from the recyclebin then u must restore all the datafile from last backup and perform an incomplete re covery. 93)when u open the database with RESETLOGS option after performing an incomplete recovery,the current redo logs are archived and the contents of the redol og file are erased and the information about the log sequence number is written to th e control file and the online datafile headers.The full database backup ta ken from a previous incarnation can be used in future. 94)rman based incomplete recovery doesnot have CANCEL based option.The UNTILL CA NCEL clause is used while performing user managed incomplete recovery. 95)if all the members of a redolog group are lost, u must determine the amount o f data that can be recovered.for that u should start the database in mount mode and query the V$LOG view.u wil fiND AN SCN that enables u to recover the data.the first SCN stamped in the missing log is the FIRST_CHANGE#,this implies that the last SC N stamped in the previous log is FIRST_CHANGE#-1.This is the hifhest SCN that u can recover to.u must restore all the datafiles to this SCN and then perform data base recovery upto this SCN. 96)A complete recovery is used to recover one or more datafiles from the last ba ckup if the database is in archivelog mode. 97)If all the control files are missing and only a binary backup of the control file exists u will recover the control file by the following command RECOVER DATABASE UNTILL TIME USING BACKUP CONTROL FILE; and u will run a script the statement to re-create the control file. 98)If you are recovering a dropped table that is purged from the Recycle Bin, you must restore all the datafiles from the last backup and perform an incomplete recovery. 99)When you enable Flashback Database, the Recovery Writer (RVWR) process is sta rted. This background process sequentially writes Flashback Database data from the flashback buffer to the Flashback Databa se logs. The Recoverer (RECO) background process is used for automatically resolving fail ures involving distributed transactions in a distributed database environment. 100)ALTER SYSTEM SET DB_RECOVER_FILE_DEST = '+disk2' SCOPE = BOTH; The SCOPE = BOTH clause specifies that the new location of the flash recovery fi les are written in the control file and the spfile. 101)Automatic PGA Memory Management (APMM) functionality is implemented by using the PGA_AGGREEGATE_TARGET initialization parameter. The memory allocated to APPM by this parameter is dynamically managed and allocated by Oracle to meet the SQL work area requirements of all the Oracle sessions.

102)the DB_CREATE_FILE_DEST parameter is used to specify the location of the datafiles. If the names and locations of the datafiles are n ot specified at tablespace creation, then the datafiles are stored in th e location specified by the value of the DB_CREATE_FILE_DEST parameter. 103)the DB_CREATE_ONLINE_LOG_DEST_n parameter is used to specify the default loc ations of the control files and online redo log files. 104)the FLASHBACK_DATABASE_LOG view allows u to determine the space required in the recovery area to support flashback activities generated by the changes in th e database.the FLASHBACK_DATABASE_STAT view is used to estimate the amount o f flashback generated since the dataabse was opened and it is also used to m onitor overhead of maintaining the data in the flashback database logs. 105)Flashback Database logs are new type of files that contain a before image of physical database blocks. The RVWR process writes the Flashback Database lo gs in the flash recovery area. 106)The MMON, known as Manageability Monitor, process is responsible for filteri ng and transferring the memory statistics to the disk every hour.The MMON pr ocess makes the snapshots and stores the information in the Automatic Workload Repository. The default interval is one hour or the duration over which the i n-memory area becomes full. 107)You will query the FLASHBACK_TRANSACTION_QUERY view to identify the changes made to the database tables by the batch job. The DBA_PENDING_TRANSACTIONS v iew is used to identify unresolved transactions. The DBA_AUDIT_STATEMENT v iew is used to display the audit trail records related to the GRANT,REVOKE, A UDIT, and ALTER SYSTEM statements. The V$FLASHBACK_DATABASE_STAT view is used to display the bytes of the flashb ack data logged to the database. 108)V$DATABASE dynamic performance view is used to verify whether the flashback data is enabled in the database.You cannot use the V$UNDOSTAT dynamic performance vi ew to determine the availability of the necessary flashback data. This view is used to display the statistics about the undo data, such as undo spa ce consumption, transaction concurrency, and length of queries execute d in the instance. You can use this view to help in tuning the undo usag e in your database. 109)SHUTDOWN STARTUP MOUNT EXCLUSIVE ALTER DATABASE FLASHBACK OFF; When you disable Flashback Database using the ALTER DATABASE FLASHBACK OFF state ment, the flashback logs will be automatically deleted from the flash recovery a rea. 110)if OMF is configured in u r database and u do not specify name or sizes and names of the datafiles while tablespace crearion,oracle it self assigns names and sizes to the datafiles associated with the tablespace.It is used to specify the de

fault location of datafiles,control files and online redolog files.DB_CREATE _FILE_DEST is the default location for datafiles and DB_CREATE_ONLINE_LOG_DESTn is the defult location for the online redo log files. 111)to use FLASHBACK TRANSECTION QURY FEATURE u must use automatic undo manageme nt in u r database as TRANSECTION query is based on undo data. 112)ASM is used to enhance the performance because it automaticaly spreads objec ts over multiple devices.it increases the availibility by allowing new disk devices to be added to be added to the database without shutting down the database. 113)the FLASHBACK_TRANSECTION_QUERY view can be used to identify the operations that are performed on a table. 114)in oreder to perform FLASHBACK TABLE feature u must enable the ROW MOVEMENT on the ORDERS table SQL>ALTER TABLE ORDERS ENABLE ROW MOVEMENT; 115)The DROP USER command by passes the recycle bin and all the objects belongin g to the schema of the user are immediately droped from the database. 116)The VERSIONS_OPERATION pseudocolumn is used to display the operation perform ed by the transaction. In this pseudocolumn, I indicates insertion, D ind icates deletion, and U indicates update. 117)The Block Media Recovery (BMR) is an RMAN feature that is used to recover an individual block or a group of corrupt blocks in a datafile.BMR can only be performed using full RMAN backups. RMAN>BLOCKRECOVER DATAFILE 6 BLOCK 54; 118)You will use the DBMS_REPAIR package to rebuild a free list in the free list s of the EMPLOYEE table in the Scott schema.DBMS_REPAIR package is a set of procedures that enables you to detect and fix corrupt blocks in tables and i ndexes. BEGIN DBMS_REPAIR.REBUILD_FREELISTS ( SCHEMA_NAME => 'SCOTT', OBJECT_NAME => 'EMPLOYEE', OBJECT_TYPE => dbms_repair.table_object); END; / 119)SQL statistics contains auxilary statistics that are specific to a single qu ery that help optimiser to generate an optimal execution plan.it is stored in a datadictio nary.optimiser includes a profile while performing an analysis and after this it generates

an execution plan.the SQL TUNING ADVISOR will analyse the profile created by the followin g code. DECLARE sqlprofile_name varchar2(30); BEGIN sqlprofile_name := DBMS_SQLTUNE.ACCEPT_SQL_PROFILE( task_name => 'my_task', profile_name => 'my_profile'); END;

You might also like