ORA-00054: resource busy and acquire with NOWAIT specified
November 23, 2010 by Nauman · Leave a Comment
A you are working on a busy database than you will often see this error.
Description
It means that your session is trying to update an ob
Informatica Admin Console not working.
After installation of Power Center 8.xxx Cannot start Admin Console. It hangs on the following local address. http://localhost:6001/adminconsole. and after sometime it shows the annoying error of “Page not found”. I have checked the Informatica Services are up and running but my admin console does not come up. What to do now? [...]
Calculating difference of dates in Oracle
November 18, 2009 by Nauman · Leave a Comment
How to calculate difference between two dates in oracle, as subtraction of dates returns numeric value as difference. With some slight changes/enhancements we can track back the subtraction values to some readable date formats: Here are some examples, these can also be amended for user convenience: SQL> SELECT floor(((date1-date2)*24*60*60)/3600) 2 || ‘ HOURS ‘ || [...]
ORA-38029 : object statistics are locked Recently
November 5, 2009 by Nauman · Leave a Comment
This error comes when analyzing tables in oracle. Basic issue in this error is when you import table without data i.e structure/schema only, oracle will lock table statistics. You can view all the locked tables in schema by executing following query: select table_name, stattype_locked from dba_tab_statistics where owner = ‘MBS’ and stattype_locked is not null; [...]
Creating Table dynamically in Oracle Procedure
November 5, 2009 by Nauman · Leave a Comment
How can we create a table inside an Oracle procedure. "CREATE TABLE tableName AS". We cannot execute this statement in procedures because upon creation of procedure it would give syntax error. We can implement this with the help of EXECUTE IMMEDIATE command and then dynamically create table. create or replace procedure Proc1 as begin execute [...]
Killing Locked Sessions in Oracle
November 5, 2009 by Nauman · 2 Comments
Many a times user sessions are locked in some DML/DDL operation, than how to unlock those sessions because a new step or operation could not be done on the specific object that is locked. Some really easy steps to unlock an object or kill a session in oracle are as follows: To view locked sessions [...]
Creating Custom Functions in Oracle
November 5, 2009 by Nauman · Leave a Comment
Here it is a simple procedure to create and call a custom function in Oracle. A custom function is a simple PL/SQL subprogram that is used to calculate a value. It creation syntax is almost same as of procedure except it has a RETURN clause that is used to return the computed value. Syntax of [...]
How to check Numeric value in Oracle
November 5, 2009 by Nauman · Leave a Comment
Currently i could not find any suitable function for checking numeric value on some column. There are many workarounds to achieve this functionality, either cast the column value in Numeric and check, but this can create an exception if not properly coded. Another workaround for this problem is by using the combination of LENGTH and [...]