ORACLE EXP/IMP & DATAPUMP INTERVIEW QUESTIONS
- How can i make export faster?
- By using DIRECT=Y and BUFFER parameters
- Which process is responsible for writing data into dumpfile?
- Which process is responsible for writing data into dumpfile?
- What is the use of consistent=y parameter in export?
- It will take consistent values while taking export of a table
- What the parameter COMPRESS will do during export?
- During import, It will put entire data in a single extent
- How can we confirm that export dumpfile is valid?
- By using SHOW=Y option during import
- If you got a dumpfile to import and don’t know the fromuser, how you will get that information?
- We can check that in export log file. If not, we can do import with SHOW=Y which generates a log file. Fromuser will be there in that log file
- What precautions you will take t perform a schema exp/imp between a prod and dev database?
- We need to check if already user existing in dev database
- If so, drop the user (take DDL and permissions info well before) or drop all the objects
- What are the advantages of datapump over exp/imp?
- It is faster than exp/imp as we can use parallel and other options
- List all other from your class notes
- Can we import a 11g dumpfile into 10g database using datapump? If so, is it also possible between 10g and 9i?
- Yes we can import from 11g to 10g using VERSION option. This is not possible between 10g and 9i as datapump is not there in 9i
- We exported a table and imported into dev database. After checking we found table is residing in SYSTEM tablespace. What could be the reason?
- The user is having RESOURCE role assigned. If we assign RESOURCE role, it will give some quota on SYSTEM tablespace which is dangerous
- What you will do when export is running slow?
- We need to skip taking export of indexes, use BUFFER and DIRECT parameters
- Import process is running slow, what can you do now to make it faster?
- We can skip importing indexes as it is the most time taking job during import
- You are observing undo tablespace error during import, how you will avoid it?
- We can use COMMIT=Y option
ORACLE NETWORKING INTERVIEW QUESTIONS
- What is the importance of SQLNET.ORA file?
- It helps in choosing the type of connection to be established from client to server
- What is the difference between TNSNAMES.ORA and SQLNET.ORA file?
- Tnsnames.ora will specify the entries on to which database to connect where as sqlnet.ora will tell which type of connection can be established
- How to ensure users are connecting to shared server architecture?
- By specifying SERVER=SHARED in TNS entry
- While user trying to connect as sysdba on windows machine, he is getting “insufficient privileges” error. What could be the reason?
- The OS username is not added to ORA_DBA group5.In a server, we have 12 oracle 10g databases. How many listeners will be created by default?
- Only one. But it is always preferred to have separate listeners
- How to check listener status at OS level?a.ps –ef | grep tns
- What are the troubleshoot steps you follow when user complains about database connectivity problem?
- Checking tns entry
- Checking listener status
- Do tnsping from client
- Based on the above results, we can analyze where the problem is
- 100 users connected to the database. At that time DBA stopped listener, what happens to those connections?
- Nothing will happen as they are already connected
- How will you check if a port number can be used or not while configuring a listener?
- Netstat
- What is database link and what is its use?
- It is a object used to pull remote database’s data to local database
- What is the difference between snapshot and materialized views?
- Snapshot won’t have log mechanism by which refresh time will increase day by day which is avoided inmaterialized views
- What is the difference between normal view and materialized view?
- Normal view is just a stored query and it doesn’t contain any data. Materialized view will store the data
- If a user complains that MV refresh is running slow, how you will react to that problem?
- First we will check if MV log size is more than the table. If so, we need to drop and recreate only MV log
- Sometimes it may happen due to many materialized views on a single table, in such case we need to identify which are not in use
- Which background process helps in MV refresh?
- Job queue cordinator (CJQ)
- What is distributed database management system?
- Having data in multiple databases and combining them into a pool is called DDMS
- What is two phase commit? Which env will use it?
- It is used in DDMS by which a transaction should be commited on both the databases, if not transaction will be rolled back
- When to use database triggers?
- In case we want to track some changes in the database
Explain the steps of installing oracle 10g on a linux machine
Refer to the installation guide in class notes
What is the purpose of adding oinstall and dba groups?
oinstall – to provide the user to install any oracle software
dba – allows to administer the database
Is it compulsory that we need to give group names as oinstall and dba? Or can we give any other name?
We can give any name, but those are oracle standards
What are kernel parameters and why to set them?
They will define the memory allocation from physical memory to Oracle database
What is the difference in installing 10g and 11g on linux?
11g allows to set kernel parameter later whereas in 10g we need to do it before
What is Oracle inventory?
It is a location which provides the oracle product information which are installed on a particular host
Why to run orainstRoot.sh and root.sh scripts at the end of installation?
orainstRoot.sh will change the permissions for oraInventory and root.sh will create oratab file
When I am trying SQLPLUS, its throwing command not found error. How you will handle it?
We need to set oracle bin directory in PATH environment variable
Where you will set environment variables in linux? Why to set them?
We need to set in .bash_profile file. Setting them will help in easy access to commands
How you will set environment variables in windows?
We can set in advanced tab in mycomputer properties
When trying to connect to the database, I am getting “net service name is incorrectly specified” error. What is the reason?
ORACLE_SID is not set
How to check how many databases are up and running at OS level?
ps –ef | grep smon. Even though this is the generic command that is used, this is not the perfect answer as it will give output even if instance is started. So the correct answer would be ps –ef | grep oracle. In the output, we need to see for processes which says LOCAL=NO which means someone connected to the database from remote machine
How to check the version and bit version of oracle software?
SQL> select * from v$version;
How to check how many databases are existing on the server?
Using oratab file. But this may not give perfect answer if manually created databases are not updated
How many databases can we create on a single server?
Unlimited until cpu and memory configuration are supported
How many databases are there in your environment and categorize them?
Tell any value between 70 to 100. Out of that say 35 are prod and rest are dev and test
What is the highest size of the databases you are maintaining?
Tell any value between 400 to 700 GB
How many servers are there in your project? Which platforms you are comfortable to work in?
Tell any value between 30 to 50. Platforms are all unix and windows flavours
Can we change the block size after database creation?
No, we cannot
What are the 3 important steps after database created manually?
Executing catalog.sql script
Updating oratab file
Executing catproc.sql script
How to see background process at DB level?
SQL> select program from v$session;
How to start the database if pfile is not in default location?
SQL> startup pfile=’location of pfile’
I am creating a database manually and while executing script, I am getting “ORACLE INSTANCE TERMINATED, DISCONNECTION FORCED” error. What went wrong and how you will troubleshoot?
This is due to UNDO tablespace name mismatch between create database script and pfile. Once fixed, problem will be resolved
What is the difference between ORACLE_BASE and ORACLE_HOME?
ORACLE_BASE is the location where we can install oracle software and ORACLE_HOME is the database home location
How to automate database startup during linux bootupbshut and dbstart scripts
25.What is your strategy to delete old traces?
We will delete them every 3 months except alert log. We will take backup of alertlog and will trim the file
26.How to check RAM size at OS level?
We can user free or top command
27.How to check the size of a single directory?
- du –sk*
It is used to know the IO and memory statistics
28.While starting the database, I am getting “END OF FILE ON COMMUNICATION CHANNEL” error. You are the only user connected to the database. What could be the reason for this?
- If a particular mount point is full, in that case we will get that error
29.What are different types of SCN available?
- We have TOP, START, STOP, BLOCK SCN etc
- 30.How many types of checkpoints are there?
- We have nearly 10 checkpoints which helps in making data permanent in different stages of transaction
- 31.What is the use of oratab file?
- To identify how many databases existing on a server
32.How do you check if oracle installed on a server?
- By checking orainventory location
- 33.If I have 5 databases on a server, how to find which version they are?
- By checking oratab file
No comments:
Post a Comment