0% found this document useful (0 votes)
35 views

Interview Questions

interview questions
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Interview Questions

interview questions
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Sr.No.

Company Name Location Remark


1 UBS Business Solutions (India) Pvt. Ltd. Navi Mumbai
2 eClerx
3 Capgemini Navi Mumbai
4 L&T Infotech
5 Datamatics Global services Ltd.
6 Accenture
7 Future Retail Office
8 MMS.IND (Micro Marketing Service India Pvt. Ltd.) Lower Parel
9 Hexaware
10 Ness Technologies Navi Mumbai
11 MindCraft Software Pvt. Ltd. Andheri Chakala
12 Newgen Software Technologies Ltd. Navi Mumbai
13 Cognizant Technology Solutions India Pvt Ltd
14 Intelliswift Software India Private Limited Andheri
15 FSS Tech
16 ThinkApps Solutions Private Limited
17 Sportz Interactive
18 Institutional Shareholder Services, Inc.
19 Clever Tap Data Analytics
20 Travelex India
Sr. No. Questions

1 Differece Between nvl,nvl2,coalesce

2 decode and case statement?


3 Does parallel query take lock?
4 What is primary key and Use of primary key
5 Method of calling function
6 What is null in SQL

7 What is constraint and types of constraint in SQL


8 What is indexes and types of indexes

9 What normalization and denormalization and it's benefits and demirits?


10 Differece between procedure and function?

11 How check if table has duplicate records?

12 How to find top three salary if have table of emloyee contains salary
13 Aggregate function in sql
14 Type of joins In sql
15 What is equi join
16 If indexes are for fast retrival of data in database then can create index on all columns
17 differece between primary and unique constraint
18 How many primary key can be created on a table?

19 What is difference between rownum and rowid?


What is materialized view in oracle?
20
21 How to remove duplicate from table?

22 What is temporary table?

23 What is hint?

24 What Explain plan in oracle ?


25 Diff between isnull and nullif
26 If there is foreign key in table then how to drop parent table ?
27 Diff between view and materialized view.
28 diff between Union and Union All
29 diff truncate and delete
30 Group by quries

31 EXISTS and NOT EXISTS Conditions

32 correlated subquery
33 cardinality

34 Windowing function

35 user,all,dba
Answer

1.nvl(expr, expr ):converts a null value to an actual value and data type should be same
2.nvl2(expr1,expr2,expr3): if first expr null then return 3rd and if not null then return second
3.coalesce(exp1,expr2,…….) :return first not null value
4.nullif(expr1,expr2): it return null if both value are same and if not then it return first expr

1.Case is statement while decode is funcation


2.Case work with logical operator other than '='
3. decode perform only equality checks only ,case is capable for =,<,> and between , like
operator, in
4. case can work as PLSQL construct and decode used in SQL statement

Primary key unique indentifaction in table , it used to identify row uniquely in tables
in SQL Statement and PLSQL
null is nothing and null is not equal another null

constraint is enforcing business rule


1.primary key
2.unique key
3.foreign key
4.Check
5.not null
6.default
An index is a performance-tuning method of allowing faster retrieval of records

1.Normalization is used to minimize the redundancy from a relation or set of relations.


2.Normalization divides the larger table into the smaller table and links them using relationship

1.Denormalization is a database optimization technique where we add redundant data in the


database to get rid of the complex join operations
2. It has less number of join since data is already desired format

select count(*),employee_id from employees


group by employee_id
having count(*) >1
select salary from (select distinct salary from employees order by salary desc)
where rownum <=3
calculate on a group of rows and return a single value for each group
IMMEDIATE : The materialized view is populated immediately.
DEFERRED : The materialized view is populated on the first requested refresh.
The following refresh types are available.

FAST : A fast refresh is attempted. If materialized view logs are not present against the source
tables in advance, the creation fails.
COMPLETE : The tableunique
rowid is a permanent segment supporting
identifier the materialized
for that row. However,view
theisrownum
truncated and repopulated
is temporary
completely using the associated
AAABQM is the data object number query.
FORCE
• AAF: A is fast refresh is
the relative attempted.
file number If one is not possible a complete refresh is performed.
A refresh can be triggered
• AAAAA6 is the block number in one of two ways.
• AAA is the row number for the department with ID = 10
ON COMMIT : The refresh is triggered by a committed data change in one of the dependent
tables.
ON DEMAND : The refresh is initiated by a manual request or a scheduled task.

This is a DBA tool that is invaluable where complex calculations are involved. The session-
specific table is used to store temporary data which cannot be shared with other sessions. In
essence, the data in the table is valid only for the session hence the term temporary.
An Oracle hint is an optimizer directive that is embedded into an SQL statement to suggest to
Oracle how the statement should be executed

Oracle explain plan is a tool that can be used to get Oracle to tell you how it plans on executing
a query. Clearly, this makes the explain plan a valuable tool for tuning.
Select * from table(DBMS_XPLAN.DISPLAY())

A materialized view in Oracle is a database object that contains the results of a query.

1.The EXISTS condition evaluates to TRUE if the subquery returns one or more rows.
2.The NOT EXISTS condition evaluates to TRUE if the subquery returns zero rows.
A correlated SQL subquery is just a subquery that is executed many times—once for each
record (row) returned by the outer (main) query.
Number of distict value /total number of rows in table

a window function or analytic function is a function which uses values from one or multiple
rows to return a value for each row. Window functions have an OVER clause; any function
without an OVER clause is not a window function

1.All views that start with USER only sees the information that owned by same user.
2.The ALL views allow you to see all objects that you have access to.(Access,owned object)
3.They are only accessible by DBA's,if user has access to dba role then user will get unrestricted
access to oracle data dictionary.
CREATE GLOBAL
TEMPORARY TABLE
my_temp_table (
CREATE GLOBAL TEMPORARY id NUMBER,
TABLE my_temp_table ( description
id NUMBER, VARCHAR2(20)
description VARCHAR2(20) )
) ON COMMIT preserve
ON COMMIT DELETE ROWS; ROWS;
Sr. No. Questions
1 Types of Trigger
2 What is table of function
Answer

Table functions are functions that produce a collection of rows (either a nested table or a varray) that can be queried like a ph
rray) that can be queried like a physical database table
Sr. No. Questions

1 How to delete blank line in file?


2 if we are logged in server which file get read?
3 which file or folder occupied more space in a particular directory
4 Diff between scp and winscp

5 Delete older than 10 days file


6 How to delete files older than 4hrs and less than 10 days?
7 List the file which are modified between 1:00 PM to 2:00 PM
8 how to display line between from specific line to another number of line?
9 diff free and df
10 how to bring process from banground to foreground?
11 how to move process from foreground to banground?
12 how to schedule cron after server reboot?
13 Remove duplicate line in linux

14 Display only duplicate lines


15 Display count of duplicate lines
16 print line Before and after line by specific grep word
17 How to check CPU utilization?
18 How to check memory utilization

If you are searchin error message in log file you got error in log file now you want
to print 10 line before and 10 lines after that error then how you are going to fetch
19 this lines?

20 how to read zgipped compressed log in linux?


21 How to count number of line in file?
22 What is cronjob?

23 Display the top 5 process which are consuming high MEM and high CPU
24 Display the last date of every month of year
25 Display the last column threee field in file
26 Find file whose size is more than 100M
27 How to copy the file from one server another server
28 cut command
29 create tar
30 extract tar
31 Show content in tar
32 crontab file location
33 $#
34 $@
35 $*
36 $$
37 $!

38 nohup
39 How to debug shell script

40 what is swap
41 Zombie process

Hard Links
41

42 Soft Links
43 Why we use export
44 What is fuser command

45 what tee command


46 what is lsof
47 what is nl number
48 Last updated patch on linux
49 w
50 who
51 ps $$
52 $SHELL

53 := in shell script

54 rsync
Answer
grep -v '^$' small.txt
sed -n '/^$/!p' sample.csvac
/etc/profile and .bash_profile
ls -lhrS
both are secure file copying tool , scp is for linux and winscp for windows
find /home/oracle -type f -mtime +10 -maxdepth 1
find /home/oracle -type f -mtime +10 -maxdepth 1 -exec rm {} \;
find /home/oracle -maxdepth 1 -type f -mmin +240 -mtime -10 -exec rm {} \;
find . -newermt "2021-07-11 13:00:00" ! -newermt "2021-07-11 14:02:00"
sed -n '10,20p' sample.csv
free for memory usage and df disk space usage
check the process running in shell with jobs command and execute fg 2 command with jobs number
CTL+Z and bg 2
"@reboot sh /home/apache/shell_script.sh"
sort -u small.txt
sort small.txt |uniq -d display distinct lines of duplicates
sort small.txt |uniq -D --Display duplicate all duplicate line
sort small.txt |uniq -c
grep 'Error' -B 10 -A 10 sample.csv
top
free and top

grep 'Error' -B 10 -A 10 sample.csv


zgrep
zcat
wc -l
cronjob is scheduling tool in linux and unix
ps -eo pid,uid,ppid,cmd,%cpu,%mem --sort -%mem|head -5
ps -eo pid,uid,ppid,cmd,%cpu,%mem --sort -%cpu|head -5
cal 2 2023 |tr -d '\n'|awk '{print $NF}'
awk -F ',' '{print NR,$1,$(NF-3),$(NF-2),$(NF-1),$NF}' blank.csv
find . -maxdepth 1 -type f size +100M
scp oracle@localhost:~/blank.csv oracle@localhost:/home/oracle/Documents/blank.csv
grep 'Angeles' blank.csv |cut -d ',' -f 1-4
tar -cvf backup.tar /data/file
tar -xvf backup.tar
tar -tf backup.tar
/var/spool/cron/
number of argument supplied to shell script
All parameter passed to script
All parameter passed to script
Process id of currently executing process
it gives the process id of recently went to backgroud

nohup (No Hang Up) is a command in Linux systems that runs the process even after logging out
from the shell/terminal
Nohup command prevents the process from receiving this signal upon closing or exiting the
terminal/shell
sh -x script_name.sh

Swap space in Linux is used when the amount of physical memory (RAM) is full. If the system
needs more memory resources and the RAM is full, inactive pages in memory are moved to the
swap space
A zombie process is a process whose execution is completed but it still has an entry in the process table

hard linked file is assigned the same Inode value as the original,therefore they reference the
same physical file location
therefore they reference the same physical file location
If original file is removed then the link will still show the content of the file.

A soft link is similar to the file shortcut feature which is used in Windows Operating systems.
Each soft linked file contains a separate Inode value that points to the original file
if the original file is deleted or moved, the soft linked file will not work correctly
Makes variable public in subshells
utility used to find which process is using a file, a directory or a socket.

If you want to display the stadard output to the terminal and redirect to the files at same time
is used to find out which files are open by which process.
To display a file with line numbers
rpm -qa –last
Who is logged in the linux system and what are they currently doing
Who is logged in the linux system
process id of currently logged in shell instance
default system shell
":=", which sets the variable to the default if it is undefined: echo "Your name is : $
{myname:=John Doe}"

rsync or remote synchronization is a software utility for Unix-Like systems


Files that do not exist on the remote-host are copied.
Files that have been updated will be synced, rsync will copy only the changed parts of files to the
remote host.
rsync local-file user@remote-host:remote-file
Sr.No. Question

1 What is ITIL?

2 Problem

3 Problem Mangament

4 Incident Management
Answer

The ITIL (Information Technology Infrastructure Library) is a framework designed to standardize the selection, planning, delive
overall lifecycle of IT (information technology) services within a business. The goal is to improve efficiency and achieve predict
The ITIL framework enables IT administrators to be business service partners, rather than just back-end support. ITIL guideline
align IT department actions and expenses to business needs and change them as the business grows or shifts direction.
A problem is the cause or potential cause of multiple incidents. Problems can arise from major incidents affecting many users,
incidents. Further, problems can be identified in infrastructure diagnostic systems before users are affected.
Problem management is a procedural way to minimize incidents, It includes finding root causes and fixes, and also reduce the
incidents through suitable documentation of existing issues and providing workarounds.
In ITIL, we define an incident as unplanned interruption to a service or reduction in the quality of a service. Each incident shou
managed to ensure that it is resolved in a time that meets the expectations of the customer and user
Sr. No. Questions
Answer
Sr. No. Questions
Answer

You might also like