Friday, December 4, 2009

internal error while parsing spatial parameters

internal error while parsing spatial parameters

Its a common error while running query to oracle table

Here is the cause and actions to be taken to avoid this error

Reason


An internal error was encountered while parsing the spatial parameters.


Actions

Check that the parameters passed in the parameter string are all valid.

session references process private memory; cannot detach session

session references process private memory; cannot detach session

This error is comming as usual to oracle DBA in everytime

Here is the cause and ways to avoid this error


Reason

An attempt was made to detach the current session when it contains
references to process private memory.


Action

A session may contain references to process memory (PGA) if it has
an open network connection, a very large context area, or operating
system privileges. To allow the detach, it may be necessary to
close the session's database links and/or cursors. Detaching a
session with operating system privileges is always disallowed.

Tuesday, November 3, 2009

maximum number of processes (string) exceeded

ORA-00020: maximum number of processes (%s) exceeded


This means that you have too many database connections basically. Unfortunately since the demise of svrctl, it also means that you as a DBA cannot connect internal to do something about it!

You need to either ask a couple of users to log out, or you need to kill some sessions at the OS level. Once you managed to connect, see if you can spot anyone making abnormal numbers of connections. If you can't find anything you will need to increase the init parameter 'processes'. Unfortunately, this will require a restart of the database to take effect:


SQL> show parameter processes

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
processes integer 150

SQL> select count(*) from v$process;

COUNT(*)
----------
149

SQL> alter system set processes=300 scope=spfile;

System altered.

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

SQL> startup
ORACLE instance started.

SQL> show parameter processes

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
processes integer 300



Note. The maximum allowed processes is one less than the init parameter 'processes'

Note. When connecting via TNS, you may get this error when the database is out of processes:

Cardline Saudi is a leading supplier of badge printers and security systems in Riyadh, Dammam, and other regions. They offer high-quality printers, encoders, and biometric facial recognition systems. Learn more about their products and services.