Wednesday, April 3, 2013

SMON: Restarting fast_start parallel rollback in alert log


Error:
Today morning I check the Our Production Database Alert Log   and I found some message are shown 

Thu Apr 04 10:54:33 2013
SMON: Restarting fast_start parallel rollback
SMON: Parallel transaction recovery tried





Applies to:
Oracle Server - Enterprise Edition - Version 10.2.0.2 to 11.2.0.2 [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 24-Apr-2012***
Symptoms
After canceling a delete operation, then, physically killing the OS process and performing a truncate on the same table, the following is reported in the alert.log and trace file:
ALERT LOG
"SMON: Restarting fast_start parallel rollback"

TRACE
Parallel transaction recovery caught exception 12801
Parallel transaction recovery caught exception 30317
NOTE: Trace files are SMON traces found in bdump directory.
Cause
Parallel UNDO operation cannot find record previously deleted.

The error indicates that Oracle is trying to apply some parallel undo and checks to see if the object or record exists, if not, this error is raised.
This generally occurs when a truncate or a delete has taken place and the transaction is canceled.
If another delete or truncate then is issued, if the record is no longer in the UNDO, then you will receive this error.
Solution
No action is required. No corruption applies unless the error is followed by other internal errors on the object.

Thanks.
Happy Reading...
 

Wednesday, October 3, 2012

ORA-00018 maximum number of sessions exceeded

ORA-00018 maximum number of sessions exceeded
Cause: All session state objects are in used.
Action: Increase the value of the SESSIONS initialization parameter.

ORA-00018 comes under Oracle Database Server Messages. These messages are generated
by the Oracle database server when running any Oracle program.

How to increase SESSION initialization parameter ? Here Given it below

1. Login as sysdba
 C:\>sqlplus /nolog
 SQL> conn / as sysdba


2. Check Current Setting of Parameters
SQL> show parameter sessions
 SQL> show parameter processes
SQL> show parameter transactions


3. If you are planning to increase "sessions" parameter you should also plan to increase
"processes and "transactions" parameters.
A basic formula for determining  these parameter values is as follows:
   
  processes=x
  sessions=x*1.1+5
  transactions=sessions*1.1

 
4. These paramters can't be modified in memory. You have to modify the spfile only
(scope=spfile) and bounce the instance.
SQL> alter system set processes=500 scope=spfile;
 

SQL> alter system set sessions=555 scope=spfile;
 

 SQL> alter system set transactions=610 scope=spfile;
 

SQL> Shutdown immediate;

If Database shutdown taken longtime  then you can apply shutdown abort command
SQL> shutdown abort
 

SQL> startup
After successful database open then again check the above modified parameter value are update yes or not. If parameter value are updated then create new pfile  on oracle home pfile location for last updated modified oracle initialization parameter .

5. Create pfile on oracle home pfile location
SQL> create pfile ='d:\pfilelocation' from spfile;

Enjoy.........

Tuesday, May 29, 2012

Different Date Format show command on Linux

Display the date in mm-dd-yy format
$date +"%m-%d-%y"

Output:
02-29-12

Dispaly the date in mm-dd-yyyy format
$date +"%m-%d-%Y"

Output:
02-29-2012

display date as mm/dd/yy format:
$date +"%D"

Output:
02/29/12

OR

display date as mm/dd/yyyy format:
$date +"%m/%d/%Y"

Output:
02/29/2012

Wednesday, June 22, 2011

Oracle Enterprise Manager (emctl Utility) Command in Windows XP


Oracle Enterprise Manager (emctl Utility) Command
=====================================

Command line utility of Oracle Enterprise Manager Console called Enterprise Manager Control. Using emctl command Enterprise Manager Control utility invoked. For managing Oracle Enterprise Manager emctl command is very useful. We are able to start & stop Oracle Enterprise Manager console. We are able to start & stop Oracle Management Server as well as Oracle Management Agent. Even we are able to start and stop Oracle Application server control using Enterprise Manager Control utility.
Oracle Management Agent is managing and administrating Oracle database in Grid environment.  Using Oracle Management Agent you can run jobs, start listener, start instance, stop listener, stop instances.  Oracle Management Agent resides at every Oracle instances, application servers. Hence Management Agent is key feature of Oracle Enterprise Manager Grid.
Usage of Enterprise Manager Control utility:
Emctl {start | stop| status}  (dbconsole | oms | agent | iasconsole)
Using start; you can start dbconsole, oms, agent, iasconsole
Using stop; you can stop dbconsole, oms, agent, iasconsole
Using status; you can check status of dbconsole, oms, agent, iasconsole.
Terminology:
Dbconsole is Database Control console.
OMS is Oracle Management Server.
Agent is Oracle Management Agent.
IASCONSOLE is Oracle Application Server Control console.
Example of Enterprise Manager Control utility:
# To start dbconsole
emctl start dbconsole
C:\>emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
http://it_mamun:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...The OracleDBConsoleORCL service is starting................
The OracleDBConsoleORCL service was started successfully.

# To Check status of dbconsole
emctl status dbconsole
C:\>emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
http://it_mamun:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory E:\oracle\product\10.2.0\db_1/it_mamun_orcl/sysman/log
C:\>

# To stop dbconsole
emctl stop dbconsole
C:\>emctl stop dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
http://it_mamun:1158/em/console/aboutApplication
The OracleDBConsoleORCL service is stopping........
The OracleDBConsoleORCL service was stopped successfully.
C:\>
# To start Management Agent
emctl start agent
 ** To start  Management Agent in command line , it will may be not start  and show given below following  message:
C:\>emctl start agent
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
The service name is invalid.

More help is available by typing NET HELPMSG 2185.
So you can do tricks for  to start the dbconsole  i.e start  the dbconsole with managent agent
# To Check status of Management Agent
emctl status agent
C:\>emctl status agent
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.1.0.5.1
OMS Version       : 10.1.0.5.0
Protocol Version  : 10.1.0.2.0
Agent Home        : E:\oracle\product\10.2.0\db_1\it_mamun_ORCL
Agent binaries    : E:\oracle\product\10.2.0\db_1
Agent Process ID  : 4720
Agent Process ID  : 4720
Agent URL         : http://it_mamun:3938/emd/main
Started at        : 2011-06-22 18:37:23
Started by user   : SYSTEM
Last Reload       : 2011-06-22 18:37:23
Last successful upload                       : 2011-06-22 18:37:41
Total Megabytes of XML files uploaded so far :     0.03
Number of XML files pending upload           :        1
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :     8.43%
---------------------------------------------------------------
Agent is Running and Ready

#  To stop Management Agent
emctl stop agent
C:\>emctl stop agent
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
This will stop the Oracle Enterprise Manager 10g Database Control process. Continue [y/n] :y
The OracleDBConsoleORCL service is stopping............
The OracleDBConsoleORCL service was stopped successfully.


C:\>

# To start Oracle Application Server control console
emctl start iasconsole
# To Check status of  iasconsole
emctl status iasconsole
# To stop Oracle Application Server control console
emctl stop iasconsole
EMCTL is very useful command line of Oracle Enterprise Manager to manage all Oracle Enterprise Manager services. Specially when we are working in Remote Oracle Support and Remote database Monitoring and managing large number of critical production Oracle databases.


Tuesday, August 18, 2009