Ошибка ora 01013

ORA-01013

ORA-01013: пользователь требует отмены текущей операции

Причина:

Пользователь прерывает операцию ORACLE нажатием (CTRL C) или другой отменяющей операцией. Это форсирует операцию к концу. Это только информационное сообщение.

Действие:

Продолжите следующей операцией.

Symptoms

«Error S1T00 Oracle ODBC ORA ORA-01013 — User requested cancel of current operation»This error occurs when generating a report.

Cause

The setting in the Oracle Datasource is incorrectly configured.

Resolution

Check the Oracle ODBC Driver Configuration for the Data Source. Clear the option for Enable Query Timeout.

References

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

What could be the reason and prerequisites for Error: ORA-01013 user requested cancel of current operation?

Instead of waiting for the completion, Oracle provides the option to cancel running SQL statements. If a running statement is terminated, an ORA-01013 return code is issued by the Oracle. This return code is an information or confirmation message and is not an error.

The error is not logged in the system log or as a short dump by the database interface. There is a technically unavoidable exception while the system is processing a recursive statement if an error ORA-01013 is triggered and by an error ORA-00604, the error ORA-01013 is consequently preceded. In this situation, ORA-00604 is only recognized by the database interface which may be more or less critical, depending on the subsequent error, and in the system log the error is logged or as short dump.

In the SAP environment a termination may occur with an ORA-01013 error due to various reasons:

1. A tool with CTRL-C might have been stopped;
2. With «Stop transaction», a transaction might have been stopped explicitly.
3. Due to rdisp/max_wprun_time, a SAP timeout may occur.
4. 0 may be lower than Oracle <= 8.0.6: SQLNET.EXPIRE_TIME.

How can I get this issue fixed?

1. If the explicit or implicit execution of an SQL statement in tools are terminated such as SVRMGRL, SQLPLUS, SAPDBA, BRBACKUP, BRARCHIVE, BRCONNECT, BRRESTORE or BRRECOVER with CTRL+C, an ORA-01013 error is logged by the system logs. This is not an error and this behavior is normal.

2. In current R/3 Releases, in the upper left corner of the window a running transaction with the «Stop transaction» menu option can be terminated. A «Cancel» command is then send command to the Oracle session with this mechanism which with an ORA-01013 error then terminates. Therefore, if an ORA-01013 error has been logged by the system, the circumstances of the termination should be asked to the relevant user to determine if the message was triggered by another event or if the user has canceled the transaction intentionally.

3. In the SAP environment based on the rdisp/max_wprun_time parameter, if a timeout is triggered, a «Cancel» command is send by the R/3 system to the database session that triggers an error ORA-01013. Therefore, it is essential to check in connection with the ORA-01013 whether lengthy SELECTs have occurred. In the trace of the affected work process, the lengthy statement will also be logged, where necessary. The long-running program should be optimized.

Network problems are the most likely cause if the problem cannot be reproduced.

1. In the sqlnet.ora file a period (in minutes) can be specified with the Oracle Net SQLNET.EXPIRE_TIME parameter, after which automatically an inactive link (for example, following a network problem) is closed. This parameter is set to 0 (that is, it is inactive) in the SAP standard system. As a side effect, a long-lasting but still active session may be terminated with an ORA-01013 error if the parameter is set to a value higher than 0. SQLNET.EXPIRE_TIME should be reset to 0.

oracle tutorial webinars

ORA-01013

ORA-01013: user requested cancel of current operation is what is known as an “information error” which gives the user information on the operation performed. The error may be caused by the user himself or in response to other errors. If caused by the user, this error simply acts as a message in which Oracle is providing information on the query performed. Otherwise, the user must find the source of the error in order to correct it. In most cases, ORA-01013: user requested cancel of current operation should not be difficult to resolve with a few changes in Oracle settings.

The Problem

ORA-01013: user requested cancel of current operation occurs when an Oracle operation is interrupted. The following message is what you will see:

ORA -01013: user requested cancel of current operation

This may have been intentional if you decided to cancel running the code mid-operation by pressing Control+C or by some front-end application. Otherwise, it may have been caused by a timeout in a SQL pass through query. To confirm that this error is indeed a result of a timeout, you should identify which function in the BDF script is raising the error. Oracle 8 ODBC driver and SQL*Net both implement a timeout.

The Solution

If the user intentionally shut down the operation, the user simply proceeds to the next operation. If the reason for the error is timeouts, the timeout parameter should be changed to a higher value. If you set the statement timeout to -1, statements should not timeout. This should be default setting.

If you are using open database connectivity (ODBC) in Oracle, you have the option of enabling timeouts so that you do not face this error message again. To enable timeouts, go to your Control Panel and click on Administrative Tools. In the Administrative Tools dialog box, clock data sources (ODBC). Select your ODBC connection. On the configuration page, look for the box next to “Enable ODBC Timeout” and make sure that is box is unchecked. This will prevent further timeouts from occurring.

Moving Forward

If you are using ODBC, changing your timeout settings is a good way to eliminate seeing the error due to a timeout. If you are still facing this error even after taking the necessary steps outlined above, contact your database administrator. Your DBA may be able to identify the problem and help you get past the cancellation error. You may also consider consulting an Oracle professional to resolve this issue as well as meet any other needs you may have with your system. Remember to always check the consulting firm’s credentials and experience level to receive the best possible help for your specific needs.

When I execute a delete storedprocedure I am getting «ORA-01013: user requested cancel of current operation».

And also it takes time (about more than 10 seconds) to throw exception from the application

when I execute this query in Toad it takes more than 30 seconds, when i cancel it, in the output windows, it shows above error.

I think, dataaccess blog is cancels automatically when it exeeds the timeout.

I am wondering why it takes 30 seconds. And when I run the select query alone, there are no records.

When I call delete only it takes time.

DELETE FROM ( SELECT *
       FROM VoyageVesselBunkers a
       JOIN VoyageVessel b
       ON  a.VoyageVesselId = b.Id
       WHERE a.Id    = NVL(null,a.Id)
       AND  b.VoyageId   = NVL('5dd6a8fbb69d4969b27d01e6c6245094',b.VoyageId)
       AND  a.VoyageVesselId = NVL(null,a.VoyageVesselId) );

any suggestion.
anand

Понравилась статья? Поделить с друзьями:
  • Ошибка ora 00980
  • Ошибка ora 00979
  • Ошибка ora 00936 missing expression oracle
  • Ошибка ora 00904 недопустимый идентификатор
  • Ошибка ora 00060