Custom Search . . .

Showing posts with label Oracle Troubleshooting. Show all posts
Showing posts with label Oracle Troubleshooting. Show all posts

Saturday, December 25, 2010

ORA-01157: cannot identify/lock data file 37 - see DBWR trace file

Greeting!!! One of our RAC environment getting the below error

ORA-01157: cannot identify/lock data file 37 - see DBWR trace file
ORA-01110: data file 37: '+D02/datafile/01_data.306


This error means only one instance mounted to ASM others are DISMOUNTED. Even when we try to mount the ASM Instance getting the above message.

All the RAC services up but still getting same error .

Work Around:

ALTER SYSTEM CHECK DATAFILES.

After execute this command the one of cluster sync process released from hung stage. We’re able to connect the instance.

Welcome your comments and suggestion, Thanks

Monday, February 22, 2010

ORA-30079: cannot alter database timezone when database has TIMESTAMP WITH LOCAL TIME ZONE columns

Hello,

Today when i try to change database time zone setting i got the below error message.


SQL> ALTER DATABASE SET TIME_ZONE = '+00:00';
ALTER DATABASE SET TIME_ZONE = '+00:00'
*
ERROR at line 1:
ORA-30079: cannot alter database timezone when database has TIMESTAMP WITH
LOCAL TIME ZONE columns

To avoid the above issues; follow the Document ID: 230099.1


Thanks, share with me your feedback/comments...

Saturday, October 3, 2009

An unexpected error has been detected by HotSpot Virtual Machine


When i Try to open "netca" in my guest vmware operating system i got the below error message.

netca

Oracle Net Services Configuration:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x00a1c303, pid=31162, tid=4160608480
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_14-b05 mixed mode)
# Problematic frame:
# C [libc.so.6+0x69303] index+0x63
#
# An error report file with more information is saved as hs_err_pid31162.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp

Work Around:

Basically this error comes hostname/ip does't exist in /etc/hosts files.

[oracle@Babu admin]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.200.49 Babu ------------> Newly added this entry.

Thanks.

Fell free write your comments here.....

Wednesday, February 25, 2009

ORA-06553 : PLS-213 : Package Standard Not acesible

ORA-06553 : PLS-213 : Package Standard Not acesible

Error acessing pacakate DBMS_Application_info

Today we got this error in produciton box; User not able connect database.

Action for this error:

This error occur in-proper database/server goes down; Once database comes up; some of sys package goes to invalid; You many need to compile all invaild objects.

Using..

$ORACLE_HOME$/rdbms/admin/utlrp.sql

Or

You may need to compile STANDARD package.

Alter package sys.standard compile;

If you not able to compile; take a backup for standard packge/body; Try to create using..

sqplus sys/ @$ORACLE_HOME/rdbms/admin/standard.sql

Thursday, November 13, 2008

ORA-06502: PL/SQL: numeric or value error

Hello,

Database Version: 10.2.0.3
Os: Sun Solaris 5.9

Recently we upgrated our production database 9.2 to 10.2.0.3 & I got below error in my production environment.

On the Application builder page, when attempting to click details to view the applications, the following error occurs:

ORA-06502: PL/SQL: numeric or value error: NULL index table key value

Permanent solution:Upgrade database to 10.2.0.4 or above


OR


Download and apply database
Patch 5705795. If the version for your database is not available , create a new Service request from metalink under product RDBMS to request for a patch

Wednesday, September 10, 2008

ORA-00600: internal error code, arguments: [kxspoac : EXL 1]

Today we are faced the below error in our one of production database.


ORA-00600: internal error code, arguments: [kxspoac : EXL 1]


Database Version: 10.2.0.1

OS Version: Windows


This is database bug in 10.2.0.1 to 10.2.0.3. Due to this error if a SQL statement fails with Ora-600 [kxspoac : EXL 1] when executed by a parallel execution slave and that SQL statement has numeric binds then you are probably seeing this bug.


Solution:


This bug fixed in oracle 10.2.0.4 & 11.1

Refer more details in : Metalink document: 389438.1

Wednesday, February 20, 2008

ORA-00600: internal error code, arguments: [krbrckhr_fail]

Databas: 10g R2
OS : Windows 2003 R2

While createing database using DBCA, I got below error. I can't able to create database using dbca and manually also

ORA-00600: internal error code, arguments: [krbrckhr_fail]

Solution:

I think it's bug, that's why i installed patch set 10.2.0.3. After installing patch set i can able to create database.

Thursday, February 14, 2008

ORA-24324 & ORA-24323

Oralce 10g: 10.2.0.1
OS : Windows 2000 SP4

During database creation time(DBCA) i got the follow error message.

ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-28547: connection to server failed, probable Oracle Net admin error

There is no problem in my database. Finally i change the below parameter after only i can able to create database.

Solution:

SQLNET.AUTHENTICATION_SERVICES = (NONE)

Wednesday, February 13, 2008

Memory Notification: Library Cache Object loaded into SGA

Memory Notification: Library Cache Object loaded into SGA

In 10g we have a new undocumented parameter that sets the KGL heap size warning threshold. This parameter was not present in 10gR1. Warnings are written if heap size exceeds this threshold.

Set _kgl_large_heap_warning_threshold to a reasonable high value or zero to prevent these warning messages. Value needs to be set in bytes.

If you want to set this to 8192 (8192 * 1024) and are using an spfile:

(logged in as "/ as sysdba")

SQL> alter system set "_kgl_large_heap_warning_threshold"=8388608 scope=spfile ;

SQL> shutdown immediate SQL> startup

SQL> show parameter _kgl_large_heap_warning_threshold
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
_kgl_large_heap_warning_threshold integer 8388608

If using an "old-style" init parameter,

Edit the init parameter file and add

_kgl_large_heap_warning_threshold=8388608

NOTE: The default threshold in 10.2.0.1 is 2M. So these messages could show up frequently in some application environments.

In 10.2.0.2, the threshold was increased to 50MB after regression tests, so this should be a reasonable and recommended value. If you continue to see the these warning messages in the alert log after applying 10.2.0.2 or higher, an SR may be in order to investigate if you are encountering a bug in the Shared Pool.


Sunday, December 23, 2007

Replication Troubleshooting

While transferring data from materialized view site end. I was faced the below error message.

ORA-12012: error on auto execute of job 2
ORA-23402: refresh was aborted because of conflicts caused by deferred txns
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 820
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 877
ORA-06512: at "SYS.DBMS_IREFRESH", line 683
ORA-06512: at "SYS.DBMS_REFRESH", line 195
ORA-06512: at line 1

Oracle suggest to fix this error automatically using “refresh_after_errors= true

MviewAdmin@Materialized view site.

BEGIN

DBMS_REFRESH.CHANGE(
name => '"MVIEWADMIN"."MIS_REFG"',
next_date => to_date('
01-01-2020 06:06:08','DD-MM-YYYY HH24:MI:SS'),
interval => 'SYSDATE + 1 + (1/24)',
implicit_destroy => FALSE,
rollback_seg => 'NULL',
push_deferred_rpc => TRUE,
refresh_after_errors => TRUE,
purge_option => 1,
parallelism => 0,
heap_size => 0);

END;

By logically it’s not good. You should be find why data’s not transfer? Any problem in your database?

Sys@MasterSite

Here you can find out those problems using the following data dictionary views,

SQL> select deferred_tran_id, destination, error_number, error_msg from deferror;

Using deferred transaction id, you can find out which transaction not updated in materialized view site. Fix those errors. After that only transfer your data’s.

Please post your comments.

Saturday, November 24, 2007

ORA-01788

Oracle Server - Enterprise Edition - Version: 10.2.0.3
This problem can occur on any platform.
After upgrading to Oracle 10g, started getting an ORA-1788 error for a query that includes the LEVEL pseudo column. This query was running fine on 9i.

Example:

On 9i:

SQL> select level from dual;

LEVEL
----------
0

On 10g:

SQL> select level from dual;
select level from dual
*
ERROR at line 1:
ORA-01788: CONNECT BY clause required in this query block

Solution:

SQL> alter system set "_allow_level_without_connect_by"=true scope=spfile;

or if using a pfile add the line

_allow_level_without_connect_by=true

at the beginning of the pfile.


Both cases will require a restart of the database to take effect.

Monday, October 22, 2007

ORA-12012: error on auto execute of job

Version: 10.2.0.2.0
OS : Windows

I am facing auto execute job failure in my developer's database. Metalink suggest it's bug in oracle 10.2.0.2.0. This bug fixied in 10.2.0.3.0.

References:
343795.1

But manually you can able to solve this issue.


SQL> connect sys@devdb as sysdba
Enter password:
Connected.

SQL> exec dbms_space.auto_space_advisor_job_proc

Errors in file d:\oracle\admin\devdb\bdump\devdb_j001_329716.trc:
ORA-12012: error on auto execute of job 91056
ORA-20000: ORA-20000: Content of the tablespace specified is not permanent or tablespace name is invalid
ORA-06512: at "SYS.PRVT_ADVISOR", line 1624
ORA-06512: at "SYS.DBMS_ADVISOR", line 186
ORA-06512: at "SYS.DBMS_SPACE", line 1344
ORA-06512: at "SYS.DBMS_SPACE", line 1560

SQL> SELECT DISTINCT(TABLESPACE_NAME) FROM DBA_AUTO_SEGADV_CTL;

TABLESPACE_NAME
------------------------------
SAMIDCR
SAMIHRD
SYSAUX
SAMIFINANCE
SAMIPRODUCTION
FORAUDIT
TRADINGUSA
EXAMPLE
SAMIINVENTORY
SAMIPURCHASE
SAMISALES

11 rows selected.

SQL> SELECT TABLESPACE_NAME FROM DBA_TABLESPACES WHERE TABLESPACE_NAME IN ( SELECT TABLESPACE_NAME FROM DBA_AUTO_SEGADV_CTL);

TABLESPACE_NAME
------------------------------
SAMIDCR
SAMIHRD
SYSAUX
SAMIFINANCE
SAMIPRODUCTION
FORAUDIT
TRADINGUSA
SAMIINVENTORY
SAMIPURCHASE
SAMISALES

10 rows selected.

Here "Example" - Tablespace not available. Manually create this tablespace..

SQL> CREATE TABLESPACE EXAMPLE DATAFILE 'D:\ORACLE\ORADATA\DEVDB\EXAMPLE01.DBF' SIZE 10M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE 50M;

Tablespace created.

SQL> exec dbms_space.auto_space_advisor_job_proc

PL/SQL procedure successfully completed.


Or.

1. Connect sys as sysdba
2. Execute “prvtspcu.plb” and “prvtadv.plb” from your oracle home directory.
3. exec dbms_space.auto_space_advisor_job_proc

Friday, August 17, 2007

ORA-12154

C:\> sqlplus

SQL*Plus: Release 10.1.0.2.0 - Production on Fri Aug 17 12:46:18 2007

Copyright (c) 1982, 2004, Oracle. All rights reserved.

Enter user-name: system/abc@devdb
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified

Action:

1. The “net service name” must exist in the tnsnames.ora file. This file is used by clients and database servers to identify server destinations. It stores the service names and database addresses. The “count” parameter is optional and will show the number of times the command should try to connect to the specified service name

2. If tnsping is working well. So there is no problem in your network side.

3. Check out service name.


Thanks & Regards

Babu B

Friday, June 22, 2007

ORA-12541

C:\>sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 22 16:04:06 2007

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Enter user-name: sys/babu@keystone as sysdba
ERROR:
ORA-12541: TNS:no listener

C:> Set ORACLE_SID=KEYSTONE

C:\>sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 22 16:04:24 2007

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL>

Friday, May 25, 2007

Troubleshooting

If you receive the below error message.

* ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

You must configure your service name in

$ ORACLE_HOME/NETWORK/ADMIN/ tnsnames.ora.

Examle :

ADAPTIME =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = adaptime75)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ADAP)
)
)

* ORA-00257:archiver error. Connect internal only, until freed.


Solution : Check archiver trace file for a detailed description of the problem. Also verify that the device specified in the initialization parameter ARCHIVE_LOG_DEST is set up properly for archiving.