Monday, October 19, 2009

New 10g Background Process

MMAN:

It acts as the coordinator for sizing the SGA memory components. It keeps track
of the size of components and any resizing needs.

CTWR:

It record the changing blocks of database so that at time of incremental backup
full datafile need not to be scanned for changed blocks.

RBAL:

It checks the rebalacing of disks controlled by ASM.


ARBALx:

This process does the actual reblalacing of ASM disks and ASM_POWER_LIMIT parameter
tells how many slave process will be used for rebalacing.


ASMB:

This is used to communicate with cluster synchronization service used by ASM.


CJQn:

This is job queue monitoring process which is started by parameter JOB_QUEUE_PROCESSES.


MMON:

This process for Automatic Workload Repository.

Thursday, January 15, 2009

ORA-02800 when use_current_session=False in DBMS_SCHEDULER.RUN_JOB

You have written following block to schedule a job in 10g

BEGIN
-- PL/SQL Block.
DBMS_SCHEDULER.create_program (
program_name => 'ins_test',
program_type => 'PLSQL_BLOCK',
program_action => 'BEGIN insert into test values(to_char(sysdate,''hh24:mi:ss'')); commit; END;',
enabled => TRUE,
comments => 'Program to gather SCOTT''s statistics using a PL/SQL block.');
END;

BEGIN
DBMS_SCHEDULER.create_job (
job_name => 'test_prog_job_definition',
program_name => 'ins_test',
start_date => SYSTIMESTAMP,
repeat_interval => 'freq=minutely; byminute=1',
end_date => NULL,
enabled => TRUE,
comments => 'Job defined by existing program and inline schedule.');
END;


When you try to run the job :

BEGIN
-- Run job asynchronously.
DBMS_SCHEDULER.run_job (job_name => 'test_prog_job_definition',
use_current_session => TRUE);
END;


You got the error:

ORA-6512: at line 1
ERROR at line 1: ORA-2800: Requests timed out
ORA-6512: at "SYS.DBMS_ISCHED", line 150
ORA-6512: at "SYS.DBMS_SCHEDULER", line 441

This is because the timezone patches are not installed on database server.
Please verify that you have installed the correct patched.

Sunday, January 4, 2009

ORA-28575: unable to open RPC connection to external procedure agent

When you are getting "ORA-28575: unable to open RPC connection to externa
procedure agent" error when using external procedure call in your PL/SQL code,
please check that you have following entries (in bold & italics) in your listener.ora
file and tnsnames.ora file:

Listener.ora

LISTENER_L1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROCL1))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = 172.10.1.1)(PORT = 1526))
)
)
)
SID_LIST_LISTENER_L1 =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /software/ora9)
(PROGRAM = extproc)
)
(SID_DESC =
(ORACLE_HOME = /software/ora9/)
(SID_NAME = testdb)
)
)

Tnsnames.ora

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROCL1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)