Oracle SQL Questions
1. List out 10 memory level parameters?
2. Which commands leads to sorting? What memory area is used for sorting? How will you increase the performance of sorting? Name the parameters?
3. What will happen if you give commit? What are the wait events that affect log buffer?
4. How will you increase the size of library cache? What is hard and soft parse?
5. What is checkpoint? How will reduce the checkpoint frequency?
6. Explain the steps that involved when bringing up the database? How to drop the database? how to change the mode of database?
7. Explain instance recovery? Who does instance recvoery? Where will you check whether the instance recovery happened or not? What files were involved in the Instance recovery?
8. Who read the data into memory? How will you increaase the performance of write from DBBC to datafiles?
9. What is inittrans, maxtrans. what is the default values for table and index?
10. What is logging ad nologging? What is use of pctfree/pctused and pct increase?
11. How will you find fragmentation? How will you rectify it?
12. What is row chain and row migration? How will you find it and rectify it?
13. Why we should analyze a table?How to check if the table/index is analyzed? What is the command to gather stats/analyze?
14. What is differnce between?
spfile/pfile
pinned buffer/dirty buffer
latch /enqueue
LMT/DMT
btree/bitmap?
15. When and how to rebuild index?
16. What are the types of partitions? Explain composit partitons?
17. What is different between system/hash partition?
18. What is partiton PRUNING?
19. Explain instance recovery? Who does instance recvoery? Where will you check whether the instance recovery happened or not? What files were involved in the Instance recovery?
20. How will you check the following?
- Table/index/view size
- Free space in database/tablespace
- Used space in database/tablespace
- How many indexes present for a table? check indexes columns and its positon? On what function the index is created?
- How many constraints are there in the table and on what columns? What are the constraint types?
21. What are the types of grants? Difference between GRANT/ADMIN Option?
22. What is password verification function? Steps to implement it?
23. Will discuss about profiles? Try to learn Password Resources?
24. What is snapshot too old error?
25. What is different between lock and deadlock?
26. How will you multiplex controlfile and logfile? How to increase the size of logfiles and datafiles?
27. What is the use of UNDO tablespace? How to hange the name of undo tablespace and location?
28. What is the use of temp tablespcae? how to change the location of temp tablespace?
29. What are the steps to create dbms scheduler? How to check the failed job / status?
30. What is use of flashback query /version/transaction/table?
31. What is UMASK?
32. How will find available port?
33. How to delete files that are older than 10 days?
34. Explain the logic for monitoring alert log, file system check?
35. How will you pass arguments to a shell scrits? How will you call them inside the shell?
How to check how many number of arguments passed and list out them?
36. How to check the previous command that was execute is successful?
37. How to check the following?
- IpAddress
- Server Name
- OS release
- CPU count
- RAM size
- Users GroupName
- CPU Utilization
- IO Utilization
- Virtual Memory Utilization
38. Which command is used to find the process that was locking/using the file?
39. Which command is used to find the user who is using the file?
40. How to change the ownership of a file?
41. Prerequisite to install oracle on Linux? Expain kernel parameters?
42. Steps to configure silent mode installation?
43. Expain PATH, ORACLE_HOME,ORACLE_BASE,DISPLAY variables?
44. How to create database using dbca using putty with GUI terminal?
45. What is OMF? How will you use it?
46. What is oratab? What is the use of it?
47. Steps to configure automatic start and shut options? What is the use of chkconfig command?
48. What will happen if you execute root.sh?
49. What is rpm? How will you install rpm? How to check the existance of rpm?
50. Explain all the linux compression commands?
51. Explain crontab and its parameters?
52. What is Logical and Physical backup? Hot and Cold backup?
53. Explain the internals of hot backup in UMB?
54. Explain the steps to take hot backup in UMB?
55. How to recover a system datafile/non system datafile that is running in a production env?
56. How to recover a UNDO datafile/ tempfile that is running in a Production env?
57. How to recover a corrupted logfile,controlfile,spfile?
58. How to take a backup using rman and location should be in "/backup"?
59. How to increase the performance of RMan backup and explain it advantages over UMB?
60. What is the use of crosscheck, obsolete, expired commands?
61. Difference between differential and cumulative backup?
62. What is the use of BCT?
63. How to increase the performance of RMAN nackup?
64. How will recover a table sing RMAN? Explain the stepswith commands?
65. What is schema refresh?what are the post refresh activities after schema refresh?
66. Given a exp/expdp full dump (with out export logfile) how will you create a database with it?
67. What is the use of compress , consistent for exp?
68. What is teh performance parameters for exp/imp/expdp/impdp?
69. What are the performance parameters for SQL loader?
70. How will you take export of 20 tables? explain steps with commands?
71. Given a 100gb table dump, but having 5 gb of undo, how will you import the table?
72. On which oracle utility you will get snapshot too old error?
73. What is use of resumable_timeout parameter in DB as well as EXP/expdp?
74. How will you do schema refresh without removing grants from target schema?
75. How to export set of record from a table?
76. A datapump export is running with parllel=2.
Now you are asked to increase the parallel=4 from another terminal, How will you do it?
77. Having the DB size ad 600GB. How will you take a database dumpfiles and copy that to another server.
Explain the steps?
78. Is it possible to do a schema copy to another db with out dumpfile?
79. Explain the steps to transport tablespace?
80. What is the advantage of datapump over exp/imp?
81. Need to export a database using exp from putty even we get a network issue?$_COOKIE
82. Import a schema which is in tablespace USERS to another schema which is in tablespace USERS2?
83. how to goback to client mode from interactive mode in datapump?
84. How will you trouble shoot a client server connetion issue? Expplain all the possible issues?
85. If listerner is down, what will happen to the existeing connetion? what will happen to new connection?
86. How to check how many listeners are running on the server? How tio check their status?
87. Is it possible to change the listener and tnsnames location ? If so how to do that?
88. Expain the steps to recover a database using a backup from a location?
89. Explain the steps Rman cloning and active cloning?
90. Can we have 2 listeners for a single database and 1 listener for multiple database? If so How?
91.How to register a database to a listener?
92. How to setup a recover catalog?explain with steps?
93. Find the user who is locking a table?
94. How to find if a query is using index?
95. What are the possible chances that a index is not used by a query?How to force a index to be used?
96. How to intrepret execution pan?
97. If a user reports that a query hangs, how will you trouble shoot?
98. If a query run yesterday for 2 mins and it takes more tha 1 hr, what might be the possible issue?
99. How will you kill a session even after it marked for killing in DB?
100. How will you check how many plans exists for a query?
101. How to check the duration of current running SQLS?
102. How to get the execution plan for a Query?
103. How will you trace a session? explain the steps? What will you check in it?
104. What is AWR? When will you go for AWR? how to take it and what will you look in to it?
105. Name some wait events (atleast 10) and explain hot to resolve it?
106. What is ASH? Give the views related to ASH?
107. Explain joining methods with examples?
108. Name some hints (10 hints)and explain when that will be used?
109. How to make the query not to a the index?
110. What is the prerequisite to do upgrade / patching?
111. How to check the conflict of a patch?
112. How to install / rollback a patch?
113. How to list the patches installed? What does ./datapatch -verbose do?
114. What are the type of patches?
115. What is opatch and opatch auto?
116. How will you monitor while patching? Where the logs will be stored?
117. How to check how many users are connect to database from linux command?
118. How will remove kernal memory (shared/semaphores) from unix?
119. How will estimate the remaining time of running rman backup / gather stats?