0% found this document useful (0 votes)
3 views23 pages

Interview Questions and Answers

Uploaded by

Mohammad Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views23 pages

Interview Questions and Answers

Uploaded by

Mohammad Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

1.​What are the responsibilities of the database administrator’s tasks?

Answer:
--- DB/Listener monitoring and making sure 24/7 database availability
--- Database Daily Backups (Restore and Recovery)
--- Monitoring user access and Database health checks
--- Tablespace available space and database growth
--- Performance tuning and many more

2.​Differentiate between Oracle DBA and Oracle Developer?


Answer:
--- DBA roles are design, implementation, maintenance, and repair
--- Developer roles are Requirement gatherings, Application Development, Application Debug, Testing,
Deployment

3.​ You want to find out how many users are defined in the password file and what privileges those
users have. How would you accomplish this?
Answer:
SQL> desc v$pwfile_users;
Name Null? Type
----------------------------------------- -------- ----------------------------
USERNAME VARCHAR2(128)
SYSDBA VARCHAR2(5)
SYSOPER VARCHAR2(5)
SYSASM VARCHAR2(5)
SYSBACKUP VARCHAR2(5)
SYSDG VARCHAR2(5)
SYSKM VARCHAR2(5)
ACCOUNT_STATUS VARCHAR2(30)
PASSWORD_PROFILE VARCHAR2(128)
LAST_LOGIN TIMESTAMP(9) WITH TIME ZONE
LOCK_DATE DATE
EXPIRY_DATE DATE
EXTERNAL_NAME VARCHAR2(1024)
AUTHENTICATION_TYPE VARCHAR2(8)
COMMON VARCHAR2(3)
CON_ID NUMBER
SQL>
SQL> select USERNAME, SYSDBA,SYSOPER,SYSASM,SYSBACKUP,SYSDG,SYSKM,ACCOUNT_STATUS from v$pwfile_users;

USERNAME SYSDB SYSOP SYSAS SYSBA SYSDG SYSKM ACCOUNT_STATUS


---------- ----- ----- ----- ----- ----- ----- ------------------------------
SYS TRUE TRUE FALSE FALSE FALSE FALSE OPEN

SQL>

4.​What is the use of password file?


Answer:
--- If the DBA wants to start up an Oracle or ASM instance there must be a way for Oracle to
authenticate the DBA. Obviously, DBA password cannot be stored in the database, because Oracle cannot
access the database before the instance is started up. Therefore, the authentication of the DBA must
happen outside of the database.
--- Password file is needed for remote administration activities from your sysdba user.

5.​What is REMOTE_LOGIN_PASSWORDFILE parameter?


Answer:
--- The init parameter REMOTE_LOGIN_PASSWORDFILE specifies if a password file is used to authenticate
the Oracle DBA or not. If it is set either to SHARED or EXCLUSIVE, password file will be used.
--- In case if there is no password file then REMOTE_LOGIN_PASSWORDFILE=NONE

6.​How to create password file? What is the tool or utility?


Answer:
--- orapwd is utility or tool

Example: [
oracle@oraclelab3 dbs]$ orapwd file=orapwTESTDB entries=5 force=y
Enter password for SYS:
[oracle@oraclelab3 dbs]$
[oracle@oraclelab3 dbs]$ ll ora*
-rw-r-----. 1 oracle oinstall 6144 Nov 24 08:38 orapwTESTDB
[oracle@oraclelab3 dbs]$
7.​What is the default location of password file? What I use the custom/other location for password
file?
Answer:
--- Location of password $ORACLE_HOME/dbs
--- We can change the location of password file in case if we use ASM using srvctl and keep under Disk
group

Example:
srvctl modify database -db dbname -pwfile location
srvctl modify database -db RAC12C -pwfile '+DATA/RAC12C/PASSWORD/orapwRAC12C'

8.​What are the roles of DBA?


Answer:
--- DBA roles are design, implementation, maintenance, and repair

9.​What are the common Oracle DBA tasks?


Answer:
--- DBA task are Monitoring, Health Check performance tuning, Backup and Recovery, High Availability
maintenance, and repair

10.​ Name the various Oracle database objects?


Answer:
--- Schema Object:
​ Index, Tables, view, Synonyms, function, procedure Many more
--- Nonschema Object:
​ Profiles, Roles, Users, Tablespaces Many more

11.​ What are database startup modes?


Answer:
--- Normal startup modes: nomount >>> Mount >>> Open
--- Others (exclusive, restrict & upgrade)

12.​ Which files are needed on each stages of my database startup sequence?
Answer:
Nomount – We need spfile or pfile
Mount – We need control file
Open – We need datafiles and Redolog files

13.​ What is spfile and pfile?


Answer:
spfile – Is binary files, you can not modify this file and you can not read this file
pfile – text file, you can edit this file & read this file.

14.​ In case if we have both spfile and pfile, which one will be used during instance startup?
Answer:
--- First it will read spfile in case if no spfile found then it will fall back to pfile and try to
read pfile.
--- If both spfile and pfile are not available then instance will not start it will trough an error
message saying “parameter file not found”

15.​ What is the default location of spfile/pfile? Can I keep spfile in other than default location?
Answer:
--- spfile/pfile location: $ORACLE_HOME/dbs
--- We can change the location of spfile in case if we use ASM using srvctl and keep under Disk group

Example:
srvctl modify database -db dbname -spfile location
srvctl modify database -db RAC12C -spfile '+DATA/RAC12C/PARAMETER/spfileRAC12C.ora'

16.​ In case if we lose both spfile and pfile then how to restore spfile or pfile?
Answer:
--- Connect to recovery catalog and restore spfile
startup nomount
rman target / catalog=rman_cat/Welcome2020@CATDB
startup nomount
set dbid=953267200;
restore spfile;
startup force;

--- In case no recovery catalog


rman target /
set dbid 953267200;
startup force nomount;
restore spfile from
‘/u01/app/oracle/fast_recovery_area/DEVDB/autobackup/2020_10_11/o1_mf_s_1053556312_hr6gn080_.bkp′;
startup force;

--- In case if you don’t have any valid backups then we have only option to restore pfile and there is
no way we can restore spfile
--- Read the content of alert log and look for previous instance startup time and collect default
parameter and create new pfile out of it.
--- In case if you don’t have alert log as well then create a new pfile with minimal parameters.

Answer:What are the contents of the control file?

--- The database name.


--- Names and locations of associated datafiles and online redo log files.
--- The timestamp of the database creation.
--- The current log sequence number.
--- Checkpoint information Other information too

17.​ In case if you lost the control file then how to restore?
Answer:
LOST ONLY ONE CONTROL FILE - MULTIPLEXED CONTROL FILE
--- copy from existing control file

LOST ALL CONTROL FILES


--- Restore using autobackup or any latest valid backup
rman target /
startup nomount;
restore controlfile from autobackup
alter database mount;
recover database;
alter database open resetlogs;

18.​ List out the tools for administering the database?


Answer:
--- OEM, sqlplus, expdp, Impdp, sqlldr, sqldeveloper, toad many more
19.​ What are the dictionary tables or view?
Answer:
--- Data Dictionary is a read-only set of tables that provides information about the database.
A data dictionary contains:
The definitions of all schema objects in the database (tables, views, indexes, clusters, synonyms,
sequences, procedures, functions, packages, triggers, and so on)
--- All the data dictionary tables and views for a given database are stored in that
database's SYSTEM tablespace.
--- Data Dictionary consists of Base Tables and User-Accessible Views. There are own by sys user.
--- Oracle provides scripts to modify the data dictionary tables when a database is upgraded or
downgraded.
--- Base tables stars with DWB_* and dictionary view start with user_*, all_*, dba_*

20.​ What are Dynamic performance tables and views?


Answer:
--- Oracle maintains a set of virtual tables that record current database activity. These tables are
called dynamic performance tables.
--- Dynamic performance tables are not true tables, and they should not be accessed by most users.
However, database administrators can query and create views on the tables and grant access to those
views to other users.
--- SYS owns the dynamic performance tables, their names all begin with V$.
--- V$FIXED_TABLE view contains information about all of the dynamic performance tables and views in the
database.

21.​ What is Database Object Metadata?


Answer:
--- The DBMS_METADATA package provides interfaces for extracting complete definitions of database
objects.

22.​ What are fixed objects in database?


Answer:
--- Fixed objects are the X$ tables and their indexes. V$ performance views are defined
through X$ tables.
--- Gathering fixed object statistics is valuable for database performance, because these statistics
help the optimizer generate good execution plans
Example:
SQL> execute dbms_stats.gather_fixed_objects_stats;

--- How to check dictionary and fixed objects statistics (Doc ID 1474937.1)

23.​ Explain Database architecture?


Answer:
--- Briefly explain database architecture
Memory
Background process
Database files

24.​ What is SGA?


Answer:
--- System Global Area or Shared Global Area
--- is a group of shared memory structures that contain data and control information for one Oracle
Database instance. The SGA is shared by all server and background processes.

25.​ What are SGA components?


Answer:
--- Shared pool, DB buffer cache(nk buffer, keep and recycle, Log buffer cache, large pool, java pool,
stream pool.

26.​ What is PGA?


Answer:
--- Program Global Area or Private Global Area
--- is a memory region that contains data and control information for a server process.
--- It is nonshared memory created by Oracle Database when a server process is started

27.​ What is database buffer cache?


Answer:
--- Oracle Database uses the buffer cache to store data blocks read from disk
--- DB_CHCHE_SIZE is the parameter to define this and this is dynamic parameter.
28.​ How to clear buffer cache?
Answer:
--- alter system flush buffer_cache

29.​ What is dirty buffer?


Answer:
--- A dirty buffer is a buffer whose contents have been modified and not yet written to datafile.

30.​ What are pinned buffer?


Answer:
--- Pinned buffers are currently being accessed and are currently on LRU list

31.​ What are free buffer?


Answer:
--- Free buffers do not contain any useful data and are available for use/write.

32.​ What is cache hit and cache miss?


Answer:
--- User query find the block from buffer cache then it’s a buffer hit, it directly read from the
memory.
--- User query did not find the block from buffer then it’s a buffer miss, it must copy the data block
from a datafile on disk into a buffer in the cache before accessing the data

33.​ What is log buffer?


Answer:
--- The Log Buffer is a circular buffer which contain the change records or change vector when server
process modified the blocks on buffer cache.
--- These log buffer can be flushed to online redo logs regularly
--- LOG_BUFFER is the parameter we can set it, this is static parameter.

34.​ What is shared pool?


Answer:
--- The shared pool portion of the SGA contains the library cache, the data dictionary cache.
--- SHARED_POOL_SIZE is a parameter to set it, this is dynamic parameter

35.​ What is library cache in shared pool?


Answer:
--- The Library Cache is a piece of memory within the SGA that Oracle uses in order to store SQL
Statements.
--- Library cache holds the parsed representation of sqls.

36.​ What is data dictionary cache in shared pool?


Answer:
--- The data dictionary cache also stores descriptive information, or metadata, about schema objects
which are accessed during query execution.
--- Oracle Database accesses the data dictionary frequently during SQL statement parsing, these access
data dictionary objects are kept under this data dictionary cache.

37.​ What is large pool?


Answer:
--- large pool to provide large memory allocations for I/O, RMAN backup and recoveries
--- LARGE_POOL_SIZE is a parameter to set it, this is dynamic parameter

38.​ What are java pool and stream pool?


Answer:
--- Java pool memory is used in server memory for all session-specific Java code and data within the
JVM
--- Stream pool will be used for oracle stream process. If a Streams pool is not defined, then one is
created automatically when Streams is first used.
--- JAVA_POOL_SIZE is a parameter to set it, this is dynamic parameter
--- STREAMS_POOL_SIZE is a parameter to set it, this is dynamic parameter

39.​ What is Oracle Database Server?


Answer:
--- Instance + Database

40.​ What is Oracle Database Instance?


Answer:
--- Memory + Background Process

41.​ How to find how many database are running on a server?


Answer:
--- ps -ef|grep smon
Example:
[root@oracledb ~]# ps -ef|grep smon
root 8378 25232 0 22:29 pts/2 00:00:00 grep --color=auto smon
oracle 22561 1 0 Jun25 ? 00:00:23 ora_smon_ORCL
oradev 26000 1 0 Jun04 ? 00:01:01 ora_smon_ORACDB
[root@oracledb ~]#

42.​ What are mandatory Background process


Answer:
--- Mandatory background process are dbWn, lgwr, pmon, smon, ckpt etc

43.​ What is database writer?


Answer:
--- Writes modified (dirty) buffers in the database buffer cache to disk:

44.​ Can I have multiple dbwn (DB writer)?


Answer:
--- Yes. We can have DBW0 to DBW9 and DBWa to DBWz multiple DB writer
--- SELECT spid, pname, username, program, tracefile FROM v$process WHERE pname LIKE 'DBW%';
SQL> show parameters db_writer

45.​ What is user process or server process?


Answer:
--- Oracle Database creates server processes to handle the requests of user processes connected to an
instance
--- The user process represents a user's session in the database.

46.​ When DB writer writes?


Answer:
--- DBWn writes when ckpoint occurs, dirty buffers reach threshold and there are no free buffers and
many other scenarios.

47.​ Which background process writes from redo buffer cache to online redo log files?
Answer:
--- lgwr (Log writer)
48.​ Can I have multiple lgwr (log writer)?
Answer:
--- No we can not have multiple log writer but we can have multiple dbWn (DB writer)

49.​ When log writer writes to online redo log files?


Answer:
--- Below are the few scenario where
When a user process commits a transaction
When the redo log buffer is one-third full
Before a DBWn process writes modified buffers to disk
Every 3 seconds

50.​ What pmon does?


Answer:
--- Performs recovery at instance startup by making use if online redo-logs (role-forward and rollback)
--- Cleans up unused temporary segments

51.​ What smon does?


Answer:
--- Performs process recovery when a user process fails
--- Monitors sessions for idle session timeout
--- Dynamically registers database services with listeners

52.​ What is check pint CKPT process?


Answer:
--- A checkpoint is a data structure that defines a system change number (SCN) in the redo thread of a
database. Checkpoints are recorded in the control file and in each data file header

53.​ What is arch process and is this mandatory process?


Answer:
--- Archive process is not a mandatory process.
--- If the database is in archive log mode, then the archive process will be started, Archive process
is responsible for generating the archive logs (copying the online redo logs as a separate backup file)
--- This arch process is responsible to transferring these arched redo logs from PROD to DR in case of
DataGuard setup.
54.​ What is archive log mode and no-archive log mode? How can I change these modes?
Answer:
--- These are 2 database modes where you can open your database in archive log or noarchive log mode.
--- Most of the Production DBs are in archive log mode.
--- In Archivelog mode database will help in copying online redo logs files as backups files called
archived log files. Online redo logs will be copied as archived redo logs before it overwritten.
--- In noarchive log modes redo log files will not be copied as archived redo log and these online redo
logs will be overwritten.
--- We can switch the database mode from Archivelog mode to noarchivelog mode or vice versa in database
mount state

startup mount;
alter database archivelog; or alter database noarchivelog;
alter database open;

55.​ How to connect to oracle database - ORCL?


Answer: set the environment variable to ORCL by exporting ORACLE_SID and ORACLE_HOME as a oracle owner
(sysdba owner) and use sqlplus utility to connect to database

Example:
[oracle@oracledb ~]$ . oraenv
ORACLE_SID = [oracle] ? ORCL
The Oracle base has been set to /u01/app/oracle
[oracle@oracledb ~]$
[oracle@oracledb ~]$ env |grep ORA
ORACLE_SID=ORCL
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/19.0.0.0/dbhome_1
[oracle@oracledb ~]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Fri Jul 16 22:34:25 2021
Version 19.11.0.0.0
Copyright (c) 1982, 2020, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.11.0.0.0
SQL>

56.​ 5After connecting to database how to verify the database name?


Answer:
--- query “select name, open_mode from v$database;”
Example:
[oracle@oracledb ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Fri Jul 16 22:34:25 2021


Version 19.11.0.0.0

Copyright (c) 1982, 2020, Oracle. All rights reserved.

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.11.0.0.0

SQL> select name, open_mode from v$database;

NAME OPEN_MODE
--------- --------------------
ORCL READ WRITE
SQL>

57.​ What is Oracle Home ?


Answer:
--- Oracle Home is software/libraries/executable installed on the host/server in order to create your
Oracle Database and support your database Instance Operation

Example:
[oracle@oracledb dbhome]$ cd $ORACLE_HOME
[oracle@oracledb dbhome_1]$ pwd
/u01/app/oracle/product/19.0.0.0/dbhome_1
[oracle@oracledb dbhome_1]$

58.​ How many databases/Instances I can create on each single Oracle Home?
Answer:
--- You can create N number of database/Instances on each single Oracle Home

59.​ How many database servers we can install on a server?


Answer:
--- As long as you have enough server memory and cpu, you can Install N number of databases. There is
no limit.

60.​ Can I have Instance and database on different servers?


Answer:
--- Yes you can install database Instance on a Server A and you can place you database/Datafiles on the
remote server via NFS mount
--- Most of the customer will go for 3rd part storage and they will mount storage as NFS mount point on
host/Server where you can place/store database(Datafiles) ​

Example: NFS, NetApp, Isilon, VMware

61.​ Can I map Multiple database and single instance?


Answer:
--- No this is not possible where as you can create/map multiple instance to same database.

62.​ How to find how many database are installed on a server irrespective of database instance is
running or not?
Answer:
--- You can check /etc/oratab file which contains all the database installed or configures on that
server irrespective of whether database instance running or not on the server

63.​ What are the different database file systems or storage files in oracle?
Answer:
--- spfile/pfile, Controlfile, datafiles, online redo logs, archive log files, password file, temp
files, undo files, alert log and trace files.

64.​ Is there any limit to No of database files in a Database and how to find the No of datafiles on
a Database?
Answer:
--- No there is no limit to No of datafiles in a database
--- Below query will provide No datafile on a database.
select count(*) from dba_data_files;

65.​ Is there any limit to Size of each datafile and how to find the current used size of a
datafile?
Answer:
--- Yes maximum 32G you have each datafile size, It will not grow more than 32 GB (Default datafile
size in case 8K block size)
--- Datafile size varies based on database block size.

66.​ Is there any limit to total size of the database and how to find the total size of a database?
Answer:
--- There is no limit to size of a database, Database can grow as big as it can.
--- Below is the query to find the total size of a database:
SELECT SUM (bytes) / 1024 / 1024 / 1024 AS GB FROM dba_data_files;

10. What are the differences between EBU and RMAN?


11. What is the logical structure of the disk resources?
12. How do you find the total database size in the database?
13. What are the different levels of auditing?
14. Why is performance tuning a menacing area for DBA's?
15. What are the dynamic performance views? Who has the access to these views?
16. What is an ASM instance?
17. What is an ASM Disk Group?
18. Explain the procedure of restoring RMAN for the recovery if all the instances are down.
19. What is instance recovery?
20. Which files must be backed up?
21. What is a backup set?
22. What are the architectural components of RMAN?
23. What does RMAN backup consist of?
24. What do you mean by recovery catalog?
25. What are the uses of a database Resource Manager?
26. What is a Resource Plan?
27. Which components of your database environment can be protected by an “Oracle Restart”
configuration?
28. Which tools can you use to start up an Oracle database?
29. What are the main aspects of oracle database security management?
30. How can you improve the performance of Sql*loader?
31. What Is Oracle Database?
32. Explain Oracle Grid Architecture?
33. What Is The Difference Between Large Dedicated Server And Oracle Grid?
34. What Are The Computing Components Of Oracle Grid?
35. What Is Recoverer Process?
36. What Are Job Queue Processes?
37. What Are Archiver Processes?
38. What Is Rollback Segment ?
39. What Is A Segment?
40. What Is A Synonyms?
41. What Is Server Virtualization?
42. What Is Storage Virtualization?
43. What Is Grid Management Feature?
44. What Is An Extent?
45. What Are Data Blocks?
46. When Oracle Allocates An Sga?
47. What Is An Oracle Instance?
48. What Are The Several Tools For Interacting With The Oracle Database Using Sql?
49. How Views Are Used?
50. How Oracle Works?
51. What Contains Oracle Physical Database Structure?
52. What Is A Tablespace?
53. What Is A Dimension?
54. Explain Sequence Generator In Oracle?
55. What Is A Control File?
56. What Is An Index?
57. Explain Briefly Shared Server Architecture?

1. How to find the Linux Server Installation date and Time?


2. How to find the database creation date and Time?
3. How remotely can connect to Linux Server which is somewhere in datacenter?
4. Which port and which service will be used for remote connection to my Linux Server?
5. What are the tools used for remote connection to my Linux Server?
6. How remotely can connect to my windows Server?
7. Which port and which service will be used for remote connection to my Windows Server?
8. What are the tools used for remote connection to my Windows Server?
9. How can I copy files from Windows to Linux?
10. How can I copy files from Windows to Windows?
11. How can I copy files from Linux to Linux?
12. Where I can download OEL iso image files?
13. Where I can download Database Software(11g/12c/19c/21c)?
14. What are Oracle Software and Oracle Patches?
15. What is WMware workstation or Oracle Virtual Box?
16. What is yum repository? and How can I setup yum repository? which location my yum repository files
resides?
17. How to verify the newly added disks on Linus server?
18. How to verify the whether disk is portioned or not?
19. Which tool is used for disk portioning?
20. What is /etc/fstab?
21. How to verify whether rpm is installed on my server or not?
21. How to removed rpm from Linux server and How to manually install or upgrade rpm on Linux server?

1.​ When check point happens? And when check point happens which files hear it will update?
>>> Checkpoint happens on the below few scenarios:
Checkpoint automatically occurs at a log switch.​
When we will specify the parameter fast_start_mttr_target=<No of Seconds>.​
When Normally forced by the Database Administrator.​
If the datafile is offline checkpoint will occur.​
Consistent database shutdown​
ALTER SYSTEM CHECKPOINT statement​
ALTER DATABASE BEGIN BACKUP statement.

>>> Basically when check point happens CKPT process updates SCN (system change number) to Controlfile and datafile header
2.​ Will CKPT update all datafile header when checkpoint happens?
>>> No it will not update all datafile hear for every checkpoint operation.

3.​ When you are creating the database for the first time either using dbca or manual or using rman do you use pfile or Spfile? Which file is needed?
>>> for dbca you no need specify the pfile / Spfile while creating database it will manages internally
>>> For manual database creation you need to crease pfile or Spfile first before creating database
>>> Using RMAN clone, you either need pfile or Spfile before clone
1. How to find the Linux Server Installation date and Time?
2. Hoe to find the database creation date and Time?
3. How remotely can connect to Linux Server which is somewhere in datacenter?
4. Which port and which service will be used for remote connection to my Linux Server?
5. What are the tools used for remote connection to my Linux Server?
6. How remotely can connect to my windows Server?
7. Which port and which service will be used for remote connection to my Windows Server?
8. What are the tools used for remote connection to my Windows Server?
9. How can I copy files from Windows to Linux?
10. How can I copy files from Windows to Windows?
11. How can I copy files from Linux to Linux?
12. Where I can download OEL iso image files?
13. Where I can download Database Software(11g/12c/19c/21c)?
14. What are Oracle Software and Oracle Patches?
15. What is WMware workstation or Oracle Virtual Box?
16. What is yum repository? and How can I setup yum repository? which location my yum repository files resides?
17. How to verify the newly added disks on Linus server?
18. How to verify the whether disk is portioned or not?
19. Which tool is used for disk portioning?
20. What is /etc/fstab?
21. How to verify whether rpm is installed on my server or not?
21. How to removed rpm from Linux server and How to manually install or upgrade rpm on Linux server?

22. What is DNS and DHCP and Nameserver?


23. What is forward name resolution and reverse name resolution?

No LGWR process?
--- There is only 1 LGWR and you can not have more than 1 LGWR

checkpoint timing?
--- There is no specific timing for checkpointing, Checkpointing occurs based on the certain events.
--- Only LGWR has timing and every 3 seconds it will happens
--- DBWR and CKPT both does not have specific timing

is buffer_pool keep persistent after DB restart?


--- Yes this is persistent after DB restart

DBWR process?
--- We can 1 to 100 DBWR processes per DB

1. user came to saying receiving no temp file..how do you recover sencario?


>>> Temp file will be created automatically whenever needed, Need to do any recovery

2. undo datafile got lost..it contains active segments ..how to retify this? how to bring backup the db?
>>> start DB in mount mode and offile drop the datafile and open the database and recreate the undo TS/datafile
>>> smon will take care of the rollback/rollfarword based on the commited and uncommited trasaction

3. user acidently deleted few rows from table..he need earliest..how we restore those rows?
>>> You can use flashback table

4. started upgrade after 4 andd 5 hours still running ..how do you start debuging this? and where do check?
>>> Upgrade time depends on the number of jobjects in your database and also number of invalid objects at the time of
DB upgrade.
>>> Defore DB upgrade we need to make sure pre-upgrade script ran and all actions are taken care before upgrade

5. one of component inavlid after upgarde..how to debug this?


>>> There are seperate MOS notes to debung and upgrae individual componets, You have to follow the certain steps
mentioned on those documents.
>>> There are not generic steps for all componets, each componets has its MOS documents you need to follow them
6. you want to know what are all patches applied to OH without opatch lsinventory..can we get what all applied?
>>> At OS level you can use OPATCH
>>> you can check on you cntral inventory context.xml file
>>> you can check on OH local inventory context.xml file
>>> you can check #ORACLE_HOME/.patch_strage

7. i applied CPU patch on instance..next quater can i apply DB patch instead of CPU?
>>> You can applt but oracle strongly recomends to applt CPU patches

8. your sheduled schedular jobs but it was not running and there is no error in alert log and what is the basci reason?
>>> you have to check many parameter like job_ques, slaves, process, sessions
>>> you have to check on you resource plans
>>> you have to check your DB load

9. table have recent stats or not up to date stats how we can judge?
>>> you can check your stale tables
>>> you have to check last_analyzed column to check stats of a table

10. how to export only db links from one database to another database?
>>> Use expdp with NETWORK_LINK options

11. while resizing big file tablespace datafile...what we need to take precautions?
>>> blob and clob

You might also like