Nitin Singh,AAO/EDP,RTI Allahabad1 Troubleshooting.

Slides:



Advertisements
Similar presentations
CHAPTER 4 Tablespaces and Datafiles. Introduction After installing the binaries, creating a database, and configuring your environment, the next logical.
Advertisements

The Architecture of Oracle
Introduction to Oracle
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
3 Managing an Oracle Instance. Objectives Setting up operating system and password file authentication Creating the parameter file Starting up an instance.
Oracle Architecture. Instances and Databases (1/2)
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Managing an Oracle Instance
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
Oracle Database Instance Management Oracle 10g. Ebtisam Alabdulqader Outline Management Framework. Managing Oracle instance through the Enterprise Manager.
RMAN Restore and Recovery
Backup and Recovery Part 1.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
13 Copyright © 2004, Oracle. All rights reserved. Oracle Shared Servers.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Managing the Oracle RDBMS Today you will look at the basics, including: –Setting up Enterprise Manager –Using Enterprise Manager –Using Server Manager.
5 Copyright © 2008, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Database Administration TableSpace & Data File Management
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Basic Oracle Architecture
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
7202ICT Database Administration Lecture 7 Managing Database Storage Part 2 Orale Concept Manuel Chapter 3 & 4.
Extents, segments and blocks in detail. Database structure Database Table spaces Segment Extent Oracle block O/S block Data file logical physical.
4 Copyright © 2006, Oracle. All rights reserved. Recovering from Noncritical Losses.
Database Systems Slide 1 Database Systems Lecture 5 Overview of Oracle Database Architecture - Concept Manual : Chapters 1,8 Lecturer : Dr Bela Stantic.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
7202ICT – Database Administration
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
An Oracle server:  Is a database management system that provides an open, comprehensive, integrated approach to information management.  Consists.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
A Guide to Oracle9i1 Database Instance startup and shutdown.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
By Lecturer / Aisha Dawood 1.  Dedicated and Shared Server Processes  Configuring Oracle Database for Shared Server  Oracle Database Background Processes.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
IT Database Administration SECTION 01. Starting Up and Shutting Down the Database Database Administration Facilities – A number of tools are available.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
10 Managing Rollback Segments Objectives Planning the number and size of rollback segments Creating rollback segments using appropriate storage.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
E Copyright © 2006, Oracle. All rights reserved. Oracle Shared Servers.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Usage and Configuration of the Oracle Shared Server Supinfo Oracle Lab. 5.
IT Database Administration Section 05. Rollback Segments: An Introduction  What are they?  Space within a database used to store “before” images.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
Oracle Database Architectural Components
 Database Administration Oracle Database Instance Management Starting Up and Shutting Down أ. ندى الغامدي, أ. ندى الطوالة.
3 Copyright © Oracle Corporation, All rights reserved. 管理数据库事例.
Database structure and space Management
Is 221: Database Administration
Recovering from Noncritical Losses
Managing Tablespaces and Data Files
ISYS366, Oracle Disk Internals
Database administration
Presentation transcript:

Nitin Singh,AAO/EDP,RTI Allahabad1 Troubleshooting

Nitin Singh,AAO/EDP,RTI Allahabad2 Trace Files Each server and background process can write to an associated trace file When an internal error is detected by a process, it dumps information about the error to its trace file. One special trace file is the ALERT file. It Keeps the information all internal errors (ORA-600), block corruption errors (ORA-1578), and deadlock errors (ORA-60) that occur

Nitin Singh,AAO/EDP,RTI Allahabad3 Administrative operations, such as CREATE/ALTER/DROP DATABASE/TABLESPACE/ROLLBACK SEGMENT SQL statements and STARTUP, SHUTDOWN, ARCHIVE LOG, and RECOVER SQL*DBA statements Several messages and errors relating to the functions of shared server and dispatcher processes The values of all initialization parameters when the database and instance start

Nitin Singh,AAO/EDP,RTI Allahabad4 Specifying the Location of Trace Files All trace files for background processes and the ALERT file are written to the destination specified by the initialization parameter BACKGROUND_DUMP_DEST. All trace files for server processes are written to the destination specified by the initialization parameter USER_DUMP_DEST

Nitin Singh,AAO/EDP,RTI Allahabad5 ORA-00604error occurred at recursive SQL level num Cause:An error occurred while processing a recursive SQL statement (a statement applying to internal dictionary tables). Action: If the situation described in the next message on the stack can be corrected, do so; otherwise, contact Worldwide Customer Support. Such problem is accompanied by some Secondary errors like ora Also this error with secondary error will be written to trace

Nitin Singh,AAO/EDP,RTI Allahabad6 Common Oracle Errors that DBA face on day-to -day basis

Nitin Singh,AAO/EDP,RTI Allahabad7 ORA-01000maximum open cursors exceeded Cause:A host language program attempted to open too many cursors. The maximum number of cursors per user is determined by the initialization parameter OPEN_CURSORS. Action:Modify the program to use fewer cursors. If this error occurs often, shut down ORACLE, increase the value of OPEN_CURSORS, and then restart ORACLE. This problem is generally encountered in Pro *C programs,VB,D2K applications etc change the OPEN_CURSORS parameter for init.ora file

Nitin Singh,AAO/EDP,RTI Allahabad8 ORA-01122data file name - failed verification check Cause:The information in the data file is inconsistent with information from the control file. This could be because the control file is from a time earlier than the data files, or the data file size does not match the size specified in the control file, or the data file is corrupted. Action:Make certain that the data files and control files are the correct files for this database, then retry the operation. This error is accompanied with other messages and are encountered during the startup of the Database. These errors are reported when we attempt to recover from a backup.

Nitin Singh,AAO/EDP,RTI Allahabad9 ORA-01545rollback segment #'name' was not available Cause: Either: 1) A non-existent rollback segment was specified. 2) An instance tried to acquire a rollback segment that is in use or offline. 3) An attempt was made to drop a rollback segment that contains active transactions. Action:Either: 1) Check spelling and specify a valid rollback segment name. If the name of the rollback segment to be changed is unknown, reopen the database and query the data dictionary for the names of existing rollback segments.

Nitin Singh,AAO/EDP,RTI Allahabad10 2) To start up an instance that tried to acquire this rollback segment, specify another rollback segment in the initialization parameter ROLLBACK_SEGMENTS or bring the tablespace containing the rollback segment online. To drop a rollback segment that is in use, shut down the instance using it; or if it needs recovery, find out the errors that are preventing the rolling back of the transactions, and take appropriate actions.

Nitin Singh,AAO/EDP,RTI Allahabad11 By simply taking the rollback name from the ROLLBACK_SEGMENTS parameter we can start the Database. Most probable reason is that the tablespace must be taken offline with IMMEDAITE option..

Nitin Singh,AAO/EDP,RTI Allahabad12 ORA-1652 to No More space for temporary segment No More space to allocate for table No More space to allocate index , "unable to extend temp segment by %s in tablespace %s" // *Cause: Failed to allocate an extent for temp segment in tablespace. // *Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated.

Nitin Singh,AAO/EDP,RTI Allahabad13 The ORA-165X error is possible the most encountered errors by the DBA’s. It provides 2 parameters SIZE and TABLESPACE_NAME If the SYSTEM tablespace has space problem than this error will be accompanied by ORA-604

Nitin Singh,AAO/EDP,RTI Allahabad14 ORA-01628max # of extents (number) reached for rollback segment number Cause:An attempt was made to extend a rollback segment that already has reached its maximum size. Action:If possible, increase the value of either the MAXEXTENTS or PCTINCREASE initialization parameters. Related errors 163X for temp segment in tablespace for extents in table For extents in index

Nitin Singh,AAO/EDP,RTI Allahabad15 ORA-03113end-of-file on communication channel This error is always followed by ORA-03114not connected to ORACLE Cause: A call to ORACLE was attempted when no connection was established. Usually this happens because a user-written program has not logged on. It may also happen if communication trouble causes a disconnection. Action:Try again. If the message recurs and the program is user-written, check the program For such type of errors Alert log on server should be looked into.

Nitin Singh,AAO/EDP,RTI Allahabad16 ORA Out of shared memory when trying to allocate num bytes(str) Cause:More shared memory is needed than was allocated in the SGA. Action:Reduce use of shared memory, or increase the amount of available shared memory by increasing the value of the initialization parameter SHARED_POOL_SIZE. Fragmentation of shared pool memory is common problem.This is faced when trying to load a big size packages,procedures so on.

Nitin Singh,AAO/EDP,RTI Allahabad17 ORA-01045user name lacks CREATE SESSION privilege; logon denied Cause:An attempt was made to connect to a userid that does not have create session privilege. Action:If required, GRANT the user the CREATE SESSION privilege. Connect as system and give the grants required

Nitin Singh,AAO/EDP,RTI Allahabad18 ORA-01950no privileges on tablespace 'name' Cause:The attempt to give the user a tablespace quota failed because the user does not have the necessary system privileges. Action:Either grant the user the system privileges needed to create objects in the specified tablespace, or grant the user a specific space resource in the tablespace. Alter user quota 10M on

Nitin Singh,AAO/EDP,RTI Allahabad19 SQL>Drop user username ORA-01922CASCADE must be specified to drop 'name' Cause:The user owns objects that need to be dropped along with the user. Action:Use the CASCADE command. Use cascade to drop user and all objects owned by user permanently

Nitin Singh,AAO/EDP,RTI Allahabad20 Connectivity Errors All connections to ORACLE on different computer require listener process running on the server Example listener.ora and TNSnames.ora Path is OS dependent usually located at $ORACLE_HOME/network/admin

Nitin Singh,AAO/EDP,RTI Allahabad , 00000, "TNS:unable to connect to destination" // *Cause: Invalid TNS address supplied or destination is not listening. This error can also occur because of underlying network transport // problems. // *Action: Verify that the service name you entered on the command line was correct. Ensure that the listener is running at the remote node and that the ADDRESS parameters specified in TNSNAMES.ORA are correct. Finally, check that all Interchanges needed to make the connection are up and running Start listener on the Server

Nitin Singh,AAO/EDP,RTI Allahabad , 00000, "TNS:could not resolve service name" // *Cause: The service name specified is not defined correctly in the // TNSNAMES.ORA file. Enter/Update the entry for the SID for which connection is sought 12545, 00000, "Connect failed because target host or object does not exist" // *Cause: The address specified is not valid, or the program being connected to does not exist. Update the host connection entry in the TCP/IP alias.

Nitin Singh,AAO/EDP,RTI Allahabad23 ERROR: ORA-12505: TNS:listener could not resolve SID given in connect descriptor // *Action: Check to make sure that the SID specified is correct. The SIDs that are currently registered with the listener can be obtained by typing "LSNRCTL SERVICES ". These SIDs correspond to SID_NAMEs in TNSNAMES.ORA, or db_names in INIT.ORA. // *Comment: This error will be returned if the database instance has not registered with the listener; the instance may need to be started.

Nitin Singh,AAO/EDP,RTI Allahabad , 00000, "TNS:listener failed to start a dedicated server process" // *Cause: The process of starting up a dedicated server process failed. The executable could not be found or the environment may be set up incorrectly. This is a O/S error. Such problem arises only when the number of oracle sessions exhaust. In SCO Unix The increasing MAXUP process solves the problem