Presentation is loading. Please wait.

Presentation is loading. Please wait.

Nitin Singh,AAO/EDP,RTI Allahabad1 Troubleshooting.

Similar presentations


Presentation on theme: "Nitin Singh,AAO/EDP,RTI Allahabad1 Troubleshooting."— Presentation transcript:

1 Nitin Singh,AAO/EDP,RTI Allahabad1 Troubleshooting

2 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

3 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

4 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

5 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-01652. Also this error with secondary error will be written to trace

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

7 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

8 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.

9 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.

10 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.

11 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..

12 Nitin Singh,AAO/EDP,RTI Allahabad12 ORA-1652 to 1654 01652-- No More space for temporary segment 01653-- No More space to allocate for table 01654-- No More space to allocate index 01652 -00000, "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.

13 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

14 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 1630- for temp segment in tablespace 1631- for extents in table 1632- For extents in index

15 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.

16 Nitin Singh,AAO/EDP,RTI Allahabad16 ORA-04031 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.

17 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

18 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

19 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

20 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

21 Nitin Singh,AAO/EDP,RTI Allahabad21 12203, 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

22 Nitin Singh,AAO/EDP,RTI Allahabad22 12154, 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.

23 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.

24 Nitin Singh,AAO/EDP,RTI Allahabad24 12500, 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


Download ppt "Nitin Singh,AAO/EDP,RTI Allahabad1 Troubleshooting."

Similar presentations


Ads by Google