Vous êtes sur la page 1sur 9

All the users are complaining that their application is hanging.

How you will


resolve this situation in OLTP
Asked by: Interview Candidate | Asked on: Aug 17th, 2005

First

Previous

Next

Last

Return back to Scenarios


Answer Question
Showing Answers 1 - 7 of 7 Answers
ganesh parab
Answered On : Aug 17th, 2005

By increasing memory to process simutanous access.


Answer Question
1 User has rated as useful.
Login to rate this answer.
pandish
Answered On : Apr 30th, 2006
View all questions by pandish

View all answers by pandish

it may be one of the solution. You gotta check the alert logs & see exactly what it the reason for hanging
the database.
Answer Question
Login to rate this answer.
Ritesh Singh
Answered On : Jul 7th, 2006

If the user is complaining the hang problem ..then the experience of a dba reflects the work style that he
is going to perform and basically as the rule suggest first try to connect to the database itself and fire
some query to check whethere you are allowed to connect or not if you are connected then check for any
locked_objects by checking v$locked_object and dba_waiters and dba_blockers.then you have to
eliminate the things which are working properly and targetting yourself to the weaker place and then
check at os level that which process is consuming the most of the time and then analyze the problem if

the problem relates to a single user process then check what that user is doing by checking the sql
statement he is firing.than so on
Answer Question
2 Users have rated as useful.
Login to rate this answer.
Chiranjeevi Manne
Answered On : Mar 30th, 2007

1. Check whether the execution plan of various SQL statements have been changed which may happen
due to Bulk inserts and updates.
2. Try to gather statistics on regular basis.
3. Check the server side resources using top, vmstat, iostat, sar utilities.
4. Check the storage side
5. Check the network side
Answer Question
1 User has rated as useful.
Login to rate this answer.
singh.neerajin
Answered On : May 27th, 2008
View all answers by singh.neerajin

If problem is pertaining to database & a user dont have acess to database level . One can check the
process ( taking long time ) through the enterprise manager.
Answer Question
Login to rate this answer.
Kunal Mishra
Answered On : Oct 10th, 2011

First check the Alert log file if any error related to hang issue such. Then I would like to suggest one
important step, that is please check archive log destination whether it has enough space, some times
when archive log destination got 100% full the database will be hanged and no one can connect to the
database apart from dba.
Answer Question
Login to rate this answer.
Kunal Mishra
Answered On : Oct 10th, 2011

Please check archive log destination has enough space, 100% full archivelog destination makes database
hanged.

What is mutated trigger, is it the problem of locks. In single user mode we got
mutated error, as a DBA how you will resolve it

Return back to Scenarios


Answer Question
Showing Answers 1 - 2 of 2 Answers
Raja
Answered On : Mar 15th, 2005

mutated trigger: example:Table A has an insert trigger.In that Trigger: There is a statement like insert
into Table A, which caues mutated trigger.Avoid to have those kind of triggers in the database .
Answer Question
1 User has rated as useful.
Login to rate this answer.
naren
Answered On : Aug 30th, 2005

A trigger is said to be mutated when the table on which the trigger is written, is being used inside trigger
for DML operation.

Very next day on the prodction box It looks some procedres/packages got
invlidated. What command I should give to know how many packges are
invalidated. If suppose thousands are the packages invalidated then what
command I should Issut to get then validated.
Asked by: agarwalk_2000 | Member Since Mar-2006 | Asked on: Mar 17th, 2006
View all questions by agarwalk_2000

View all answers by agarwalk_2000

Return back to Scenarios


Answer Question
Showing Answers 1 - 8 of 8 Answers
Parveeb Ahuja
Answered On : Mar 29th, 2006

First

Previous

Next

Last

Use dbms_utility.compile_schema procedure to compile all the functions,procedure and packages for a
schema.exec dbms_utility.compile_schema('schema_name');
Answer Question
1 User has rated as useful.
Login to rate this answer.
pandish
Answered On : Apr 30th, 2006
View all questions by pandish

and use following sql


'INVALID' ;

View all answers by pandish

to find the invalid objects.select * from all_objects or dba_objects where status =

Answer Question
Login to rate this answer.
Ritesh Singh
Answered On : Jul 7th, 2006

select object_name,object_type,status from dba_objects


where status='INVALID';
you can run utlrp.sql residing in $ORACLE_HOME/rdbms/admin
and it will try to validate all the objects
Answer Question
1 User has rated as useful.
Login to rate this answer.
GIGI GEORGE
Answered On : Oct 3rd, 2006

select 'alter '|| DECODE(object_type, 'PACKAGE BODY', 'PACKAGE', object_type)||' '||object_name||'


compile;' from user_objects where status<>'VALID' order by object_type try ot this...  then
copy and paste on sql prompt..cheersbye
Answer Question
1 User has rated as useful.
Login to rate this answer.
Chiranjeevi Manne
Answered On : Mar 30th, 2007

The best way to check for the number of invalid objects is using the "UTLRP.SQL" which compiles all the
objects source code and lists the number of invalid objects. One after getting the number of invalid
objects query v$BH table to get the name of all the invalid objects
Answer Question
Login to rate this answer.
samareshp
Answered On : Apr 20th, 2009

View all answers by samareshp

select * from all_objects where object_type='PACKAGE' and status= 'INVALID' ;


Answer Question
1 User has rated as useful.
Login to rate this answer.
vaddapalli
Answered On : May 2nd, 2009
View all answers by vaddapalli

we can use the @?/rdbms/admin/utlrp.sql


The below listed are the scripts that were executed to valid the DBMS_STAT on particular databses.
@?/rdbms/admin/dbmsstat.sql
@?/rdbms/admin/prvtstas.plb
@?/rdbms/admin/prvtstat.plb

How to do the scheduled task/jobs in Unix platform


Asked by: Interview Candidate | Asked on: Mar 15th, 2005

Return back to Scenarios


Answer Question
Showing Answers 1 - 4 of 4 Answers
raja
Answered On : Mar 15th, 2005

cron job feature in unix.


Answer Question

First

Previous

Next

Last

Login to rate this answer.


Chiranjeevi Manne
Answered On : Mar 30th, 2007

The two available options are


1. CRONTAB
2. AT (One time scheduling)
Answer Question
1 User has rated as useful.
Login to rate this answer.
matabrez
Answered On : Jan 15th, 2011
View all answers by matabrez

Using crontab we can schedule task/jobs to run at particular time, date, day
basis.
steps.
1. Login to unix
2. At $prompt 'crontab -l' use this command to check what jobs are already
scheduled.
3. To edit or configure a job use " crontab -e" it will open crontab file which
is same like editing file in vi editor. Now schedule the jobs as per your
requirement.
It look like this
02***
The above file will be executed daily at 2 am
1 2 3 4 5 = specific time tags
- where 1 = Minute (of hour) to activate [0-59]
2 = Hour (of day) to activate [0-23]
3 = Day (of month) to activate [1-31 ... 29,30,31 may not activate during all
months]
4 = Month (of year) to activate [1-12 or 3-letter names "Jan,Feb,Mar"]

5 = Weekday to activate [0-7 or 3-letter names "Mon,Tue,Wed"]

Very next day on the prodction box It looks some procedres/packages got
invlidated. What command I should give to know how many packges are
invalidated. If suppose thousands are the packages invalidated then what
command I should Issut to get then validated.
Asked by: agarwalk_2000 | Member Since Mar-2006 | Asked on: Mar 17th, 2006
View all questions by agarwalk_2000

View all answers by agarwalk_2000

First

Previous

Next

Last

Return back to Scenarios


Answer Question
Showing Answers 1 - 8 of 8 Answers
Parveeb Ahuja
Answered On : Mar 29th, 2006

Use dbms_utility.compile_schema procedure to compile all the functions,procedure and packages for a
schema.exec dbms_utility.compile_schema('schema_name');
Answer Question
1 User has rated as useful.
Login to rate this answer.
pandish
Answered On : Apr 30th, 2006
View all questions by pandish

and use following sql


'INVALID' ;
Answer Question

View all answers by pandish

to find the invalid objects.select * from all_objects or dba_objects where status =

Login to rate this answer.


Ritesh Singh
Answered On : Jul 7th, 2006

select object_name,object_type,status from dba_objects


where status='INVALID';
you can run utlrp.sql residing in $ORACLE_HOME/rdbms/admin
and it will try to validate all the objects
Answer Question
1 User has rated as useful.
Login to rate this answer.
GIGI GEORGE
Answered On : Oct 3rd, 2006

select 'alter '|| DECODE(object_type, 'PACKAGE BODY', 'PACKAGE', object_type)||' '||object_name||'


compile;' from user_objects where status<>'VALID' order by object_type try ot this...  then
copy and paste on sql prompt..cheersbye
Answer Question
1 User has rated as useful.
Login to rate this answer.
Chiranjeevi Manne
Answered On : Mar 30th, 2007

The best way to check for the number of invalid objects is using the "UTLRP.SQL" which compiles all the
objects source code and lists the number of invalid objects. One after getting the number of invalid
objects query v$BH table to get the name of all the invalid objects
Answer Question
Login to rate this answer.
samareshp
Answered On : Apr 20th, 2009
View all answers by samareshp

select * from all_objects where object_type='PACKAGE' and status= 'INVALID' ;


Answer Question
1 User has rated as useful.
Login to rate this answer.
vaddapalli
Answered On : May 2nd, 2009
View all answers by vaddapalli

we can use the @?/rdbms/admin/utlrp.sql


The below listed are the scripts that were executed to valid the DBMS_STAT on particular databses.

@?/rdbms/admin/dbmsstat.sql
@?/rdbms/admin/prvtstas.plb
@?/rdbms/admin/prvtstat.plb
Answer Question
Login to rate this answer.
Sharath
Answered On : Jul 27th, 2011

you just validate it.. by using validate procedure and validate package commands.. ok don't worry

Vous aimerez peut-être aussi