0% found this document useful (0 votes)
25 views2 pages

Oracle Linux Interview Questions Guide

The document contains a series of technical questions related to Oracle databases and UNIX operating systems. It covers topics such as RMAN catalog queries, database recovery options, troubleshooting errors, and various commands and views used for system monitoring and management. The questions are aimed at assessing knowledge and skills in database administration and UNIX command-line usage.

Uploaded by

Venkata Lokendra
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)
25 views2 pages

Oracle Linux Interview Questions Guide

The document contains a series of technical questions related to Oracle databases and UNIX operating systems. It covers topics such as RMAN catalog queries, database recovery options, troubleshooting errors, and various commands and views used for system monitoring and management. The questions are aimed at assessing knowledge and skills in database administration and UNIX command-line usage.

Uploaded by

Venkata Lokendra
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

1. How do you find out from the RMAN catalog if a particular archive log has been backed-up?

2. How can you tell how much space is left on a given file system and how much space each of the file
system’s subdirectories take-up?
3. How do you tell what your machine name is and what is its IP address?
4. How would you go about verifying the network name that the local_listener is currently using?
5. What view do you use to associate a user’s SQLPLUS session with his o/s process?
6. In which dictionary table or view would you look to determine at which time a snapshot or MVIEW
last successfully refreshed?
7. How would you begin to troubleshoot an ORA-3113 error?
8. Which dictionary tables and/or views would you look at to diagnose a locking issue?
9. What query tells you how much space a tablespace named “test” is taking up, and how much space is
remaining?
10. Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS
SQLPLUS session is able to connect.
11. Database crashes. Corruption is found scattered among the file system neither of your doing nor of
Oracle’s. What database recovery options are available? Database is in archive log mode.
12. Explain how you would restore a database using RMAN to Point in Time?
13. How does Oracle guarantee data integrity of data changes?
14. Which environment variables are absolutely critical in order to run the OUI?
15. What SQL query from v$session can you run to show how many sessions are logged in as a particular
user account?
16. What is hotbackup?
17. which views is used to finding the locking in the database?
18. What is difference between the hotbackup taken through RMAN and Manual?
19. What is library cache lock?
20. How do you recover the database if you lost one of the controlfile in the database?
21. How do you recover the database if you lost all of the controlfile in the database?
22. What is flashback database?
23. What is High Water Mark in Oracle?
24. What parameters are used to set parallelism in the database?
25. What view would you use to determine free space in a tablespace?
26. How do you switch from an [Link] file to a spfile?
27. How to kill the database session?
28. How to check Oracle database version?
29. What is Shell Script?
30. What are different type of shell available?
31. How will you find which operating system your system is running on in UNIX?
32. How do you find which processes are using a particular file?
33. What is the use of “$?” sign in shell script ?
34. How to make a shell script executable ?
35. How to put comments in your shell script ?
36. How do you find which process is taking how much CPU?
37. How to find the last 10 lines of the files?
38. How do you find the IP address of the Unix machine or if the IP address is given ,the name
of the machine
39. How do you check if a particular process is listening on a particular port on remote host?
40. How to list the files in the directory?

1
41. How to find the filesystem size,user space, free space?
42. How to search for the file in Unix operating system?
43. What is nohup in UNIX.
44. What is tnsping?
45. What is a table Cluster ?
46. What is Save Points in Oracle database?
47. How do you find current date and time in oracle?
48. How does a Query executes in Oracle? Can you list steps involved?
49. Difference between varchar and varchar2 data types?

Common questions

Powered by AI

Shell scripts are programs written to automate tasks in Unix-like operating systems, employing built-in shell commands and syntax. Distinct types of shells include the Bourne shell (sh), known for its simplicity and portability; the C shell (csh), which offers a C-like syntax; the Bourne Again Shell (bash), an enhanced sh version with added functionality; and the Korn shell (ksh), known for combining features of other shells. Each shell type provides unique features, affecting the selection based on scripting needs such as syntax preferences, built-in commands, and efficiency .

The Oracle Universal Installer (OUI) requires several environment variables to run successfully. Key variables include ORACLE_HOME, which specifies the directory path for Oracle binaries, and ORACLE_SID, which designates the Oracle instance name. Additionally, PATH should include the directory of the Oracle binaries for command access, and LD_LIBRARY_PATH is crucial on UNIX-based systems for locating shared libraries. These variables ensure that the installer references correct paths and configurations necessary for the installation process .

To diagnose locking issues in Oracle, you would primarily consult the v$lock and dba_locks views. The v$lock view provides real-time information on all current locks in the system, including lock types, modes, and states, which are crucial for identifying blocking situations. Additionally, dba_locks offers details on the locks held by each session, aiding in troubleshooting and resolution of conflicts by helping trace which sessions or transactions are contributing to specific locking scenarios .

Oracle ensures data integrity through a combination of several mechanisms, including transactions, constraints, locks, and integrity constraints. Transactions ensure atomicity, meaning a series of operations either all occur or none occur, maintaining consistency. Constraints such as foreign keys and unique keys enforce relational integrity rules. Locks manage concurrency by ensuring that data remains consistent when accessed by multiple processes, while triggers and auditing further ensure data conforms to business rules and compliance .

A hot backup taken through RMAN allows for backing up the database while it's in use, without needing to put tablespaces in backup mode. RMAN handles inconsistent data blocks and synchronized SCN with minimal space overhead and no impact on operations. Manual hot backups require tablespaces to be put into BEGIN BACKUP mode, during which a copy of datafiles is made. This approach risks 'fractured' blocks if any changes occur during copying, leading to recovery complexities. RMAN offers advanced features like block change tracking and incremental backups, providing more efficient and reliable solutions .

When a database crash occurs with filesystem corruption and the database is in archive log mode, Oracle provides several recovery options. You can use RMAN to restore the database to a consistent state. This involves restoring the corrupted files from a backup and applying the archive logs to recover to the desired point in time. This ensures that all committed data is restored up to the point of failure or corruption .

In Oracle databases, a 'high water mark' refers to the maximum level of written data blocks or the highest point data has been used in a tablespace. High water marks influence database performance as they represent a threshold for full scans. If the high water mark is significantly above the current data usage, full table scans will read these unused blocks, potentially degrading performance. Effective space management, such as reorganization to reset unused high water marks, can optimize database scan operations .

To troubleshoot an ORA-3113 error, which indicates a 'end-of-file on communication channel' issue, begin by checking the alert log for any detailed Oracle errors that precede the ORA-3113 message. This helps identify underlying causes such as network issues, server crashes, or resource limitations. Follow up by assessing system logs and verifying network connectivity and configurations. Additionally, examining trace files and determining whether specific queries or operations trigger the error can lead to targeted diagnostics and resolutions .

To associate a user's SQLPLUS session with their OS process, you can use Oracle's v$session view. By joining v$session with v$process, you can retrieve the operating system process ID (SPID) alongside Oracle session details like SID and username. This linkage helps identify which database session corresponds to which server-side process, facilitating session management and troubleshooting .

To restore a database to a specific point in time using RMAN, initiate a point-in-time recovery by performing the following steps: 1) Identify the target time point by use of a SCN, timestamp, or log sequence. 2) Shutdown and mount the database. 3) Use RMAN to restore backup sets up to that point, stopping immediately before applying logs beyond the chosen sequence or SCN. 4) Apply archived logs up to, but not exceeding, the target SCN for consistency. This process requires careful planning and understanding of backup logs and sequences to prevent unintended data loss or recovery inconsistency .

You might also like