Wednesday, July 6, 2011

ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [0x7C81BD02]

ksedmp: internal or fatal error
ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [0x7C81BD02] [] [] [] []
Current SQL information unavailable - no SGA.

It`s a OS dependent error.You can contact oracle support for more details and patches.

Also

Also check these memory parameters.


1) Increase SGA_MAX_SIZE and SGA_TARGET so that you can accommodate following pools.

2) Restart the instance.

3) Increase INIT.ORA memory parameters and make sure following pools are set to recommended value i.e. 200M.

a) SHARED_POOL_SIZE

b) JAVA_POOL_SIZE

c) STREAMS_POOL_SIZE


Cheers!!!

ORA-01123: cannot start online backup; media recovery not enabled.

alter tablespace users begin backup;

ORA-01123: cannot start online backup; media recovery not enabled.

Check whether the database in archive log by SYS user

SQL> ARCHIVE LOG LIST;

Database is in non archive mode

We need to change archive mode

SQL>shutdown immediate;

SQL>startup mount;

SQL>alter database archivelog;

SQL>Alter database open;

then you can BEGIN BACKUP command

Cheers!!!

Sunday, July 3, 2011

ORA-19809: limit exceeded for recovery files

RMAN-03002: failure of backup plus archivelog command at 07/04/2011 10:58:39
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 1530219520 bytes disk space from 4039114752 limit

Got this error.

You need to increase your flashback recovery area by

SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE=4G scope=both;

Also you can delete old backup from recovery area.


Cheers!!!

Friday, July 1, 2011

KILL UNNECESSARY SESSION

You want to kill unnecessary session in oracle.
check this



SQL> ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE;


You will get sid,serial# from v$session view.

Cheers!!!

ora-12638 credential retrieval failed

ora-12638 credential retrieval failed


got this error?

sometimes you will get that error from oracle client

at that time you need to change SQLNET AUTHENTICATION service on SQLNET.ORA file



SQLNET.AUTHENTICATION_SERVICES = (NTS)

TO

SQLNET.AUTHENTICATION_SERVICES = (NONE)

Cheers!!!

Tuesday, June 28, 2011

INDEX creation on versioned tables.

In the below example table name is "TEST"


EXEC DBMS_WM.enableVersioning('TEST');


exec dbms_wm.beginddl('TEST');

create index index_name on test_lts(ID);

you can drop index on same condition.

drop index index_name;

exec dbms_wm.commitddl('TEST');


Cheers!!!

Tuesday, June 21, 2011

ORACLE WORKSPACE INTEGRATION-IMPORTANT DBMS PACKAGES

ORACLE WORKSPACE INTEGRATION

We can create a workspace simply

SQL>exec dbms_wm.createworkspace('WORKSPACE_NAME');

grant workspace privileges to a particular user:
SQL>exec dbms_wm.grantworkspacepriv('ACCESS_WORKSPACE','WORKSPACE_NAME','username');

We can find out current workspaces associated with users

wmsys.wm$workspace_sessions_view

We can resolve conflit of a particular workspace

SQL>exec dbms_wm.SetConflictWorkspace('WORKSPACE_NAME');

After that conflit we need to commit
by

SQL>exec dbms_wm.commitresolve('WORKSPACE_NAME');

We can find out Current workspace

SQL>SELECT DBMS_WM.getworkspace FROM DUAL;

We can connect to a particular workspace

SQL>EXEC dbms_wm.gotoworkspace('WORKSPACE_NAME');

We can merge that particular workspace to parent

SQL>EXEC dbms_wm.mergeworkspace('WORKSPACE_NAME');

We can freeze a workspace to disallow changes to rows in the version-enabled tables

SQL>dbms_wm.freezeworkspace('WORKSPACE_NAME');

reverse this process
by

SQL>exec dbms_wm.unfreezeworkspace('WORKSPACE_NAME');

we can refresh workspace..if we have any conflint,we can find out after refreshing workspace:

SQL> exec dbms_wm.refreshworkspace(' WORKSPACE_NAME');

We can remove a workspace

by

SQL> exec dbms_wm.removeworkspace(' WORKSPACE_NAME');