PL/SQL :: Cursor Went To Exception When It Got Error / No Data Found

Jul 7, 2012

My cursor went to the exception when its got the error " ORA-01403: no data found"

But my cursor need to run even though it got the error " ORA-01403: no data found"...This is my exception part

EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line (c1rec);
DBMS_OUTPUT.put_line (SQLCODE);
DBMS_OUTPUT.put_line (SQLERRM);
--  RETURN NULL;
-- code change added as part of GCA642 -- END
END get_geo_test1;

View 14 Replies


ADVERTISEMENT

Change Code To Make Exception Print When No Data Is Found?

Feb 28, 2011

I have the following chunk of code, which could return no rows, one row or many rows. When it returns one or many rows the DBMS_OUTPUT.PUT_LINE prints out my values. When no data is found 'Hello' is not printed?

Suggest a way I can change the code to make the exception print when no data is found?

SET SERVEROUTPUT ON;
BEGIN
FOR prec IN ( select * from xxx.part_maint where drop_partition = 'Y' )
LOOP
DBMS_OUTPUT.PUT_LINE (prec.SCHEMA_NAME || ' ' || prec.OBJECT_NAME);
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE ('hello');
END;

View 1 Replies View Related

PL/SQL :: 01403 Data Not Found With Cursor / Array?

Feb 7, 2013

have a cursor populating an array displaying data not found. As usual with these things, a few displays normally show the offending row but in this case, the display is showing data so I dont understand it. Ive inherited this and shortened it a bit to display whats going on.

declare
v_errno   number;
cursor c1 is <really big sql statement>;

[Code]...

now we come to run it, I tried first to see was it data and then I outputted the iteration itself. the first iteration is fine, the second iteration shows the column in the array has data but Im still getting the 01403.

the error can be generated even displaying the array value. If the array wasnt populated I wouldnt expect the col value to display in the error.

exec my_proc;
iteration : 1, col1 value : 43
Error iteration : 2, col1 value : 43);
*
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "my_proc", line 34
ORA-06512: at line 1

View 1 Replies View Related

SQL & PL/SQL :: No Data Found Error In Trigger (After Or Before)?

May 10, 2013

We have the following trigger in database, whenever we try to insert the record in WIP_OPERATIONS , NO DATA FOUND exception has been thrown, when we debugged, we did not find any issue. The first select statement is getting failed even though there is the value coming for :NEW.wip_entity_id and when we execute the query separately in database with the :NEW.WIP_ENTITY_ID, its getting the value. What could be the reason? Can't we use SELECT Statement in AFTER or BEFORE INSERT trigger?why its throwing NO_DATA_FOUND Exception?

CREATE OR REPLACE TRIGGER sdm_brasil_wj_ops_iface_trg
BEFORE INSERT OR DELETE
ON WIP_OPERATIONS
REFERENCING

[code...

View 15 Replies View Related

SQL & PL/SQL :: Error In Trigger ORA-01403 - No Data Found

Apr 4, 2011

I got this error on the code below when i insert for example a record in a table "pedidos_teste" (insert into sgc_supergestor.pedidos_teste select * from sgc_supergestor.pedidos where IDPC=181 and IDPEDIDO=48 )

Below is the error: ORA-1403: ORA-01403: no data found

CREATE OR REPLACE TRIGGER SGC_SUPERGESTOR.pedidos_teste_I_U_D
after INSERT OR DELETE OR UPDATE ON SGC_SUPERGESTOR.PEDIDOS_TESTE
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
[code]....

View 6 Replies View Related

Application Express :: No Data Found Error When Trying To Import CSV File To Table?

Oct 16, 2012

Not able to understand what's wrong with the code. I am trying to import data to a table using a CSV file. I have exported the data (CSV) from the interactive report and I am just trying to insert the same data to the table, through a process. When, I tried to do so; its throwing an error message saying NO_DATA_FOUND and file is not getting inserted into wwv_flow_files table.

But when I removed the data from the CSV file for the comments field and then tried importing the file, the process worked. I don't understand whats the problem with the code.

I have a sample app setup in my workspace for this weird problem.

[URL]

Workspace details:

CSV file with comments field and data in it - when trying to import - throws an error message NO_DATA_FOUND

CSV file with comments field and without data in it - tried importing - this worked

View 2 Replies View Related

Application Express :: Display Not-found.png For Image Type When Data Not Found?

May 22, 2013

I have an Image Type on a forum page. I want a default "not-found" image to display if the BLOB column value is null or if there is no data for that search value. The image is stored with the app: #APP_IMAGES#not-found.png

APEX 4.2 (with listener) on Oracle 11gR2

View 10 Replies View Related

SQL & PL/SQL :: Error In Reading Data From Collection Variable For Ref Cursor

Jun 19, 2013

While reading data from collection variable using ref cursor . I am getting the below two errors.

PLS-00382:Expression is of wrong type
ORA-22905 Cannot access rows from a non-nested table item.

CREATE OR REPLACE PACKAGE APPS_GLOBAL.GIIOMEGAORDERLIST
AS
TYPE BU_LIST_TYPE IS TABLE OF VARCHAR(50);
TYPE OFFER_DETAIL IS RECORD
(
GII_BU VARCHAR(50),
GII_OFFER NUMBER,
[code]........

View 4 Replies View Related

Forms :: Ora-06511 - Cursor Already Open - Trigger Raised Unhandled Exception

Apr 13, 2012

I getting a error Ora-06511 when-new-item-instance trigger raised unhandled exception.

below is the coding for the trigger when-new-item-instance : where the cursor is open? how to close it?

if :blk_master.action_status = 'A' then
declare
doc_slno number;

[Code].....

View 3 Replies View Related

SQL & PL/SQL :: How To Get Exception Name And Error Text

Aug 21, 2012

I'm inserting to a table through a procedure, I want to log the rejected records to a log table with the execption / reason.How can I get the exception name and error text in PL/SQL ?

View 20 Replies View Related

Exception Error ORA - 7445 On Solaris X64

Jul 22, 2010

I am getting following error in my alert log file of my database

ORA-07445: exception encountered [kduget () +1032][sigbus]

as i can perform some of my database activity but from some of the users i cannot login.

i tried to search out and found that some Memory needs to be flushed out so restarting of database is only action to be taken?

View 6 Replies View Related

Forms :: Getting Error 404 Not Found

Nov 20, 2012

i use weblogic and forms11g on windows xp

when i run my from in ie8 or google chorom this error apeared:

Quote:

Error 404--not found
from RFC 2068 Hypertext transfer protocol -- HTTP/1.1 :
10.4.5 404 not found

The server has not found anything matching the rewuest-IRI . no indication is given of whether the condition is temporary or permanent.

View 2 Replies View Related

EMCA Error - Database Unavailable Exception?

Jun 7, 2012

I have installed Oracle 11gR2 on Windows 7 professional. I created a DB and a listener also.No issues there; I can connect to the DB with sqlplus and SQL Developer.when I try to configure dbcontrol on this DB, it fires errors;

--------------------------------------------------------------------------------------------
C:Windowssystem32>emca -config dbcontrol db

STARTED EMCA at Jun 7, 2012 2:20:15 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:
Database SID: ORA112
Exception in thread "main" oracle.sysman.emcp.exception.DatabaseUnavailableExcep

[code]...

How this can happen?

View 3 Replies View Related

Oracle 10g - Error (Server Not Found)?

Jan 23, 2010

i have installed oracle 10g. normally with that URL address

we can navigate to this URL in our browser and log in as the SYS user with the associated password, and connect as SYSDBA. Enterprise Manager can be used to perform common database administration tasks... but..,in my system when this procedure is run i'm receiving an error stating that the server cannot be found...

View 5 Replies View Related

RAC 10g Error Found In Trace File?

Nov 19, 2011

after apply patch 10.2.0.4 for 2 10gr2 node i tried to start asm on 2 node but i found that the 1st node (master node)
can not started but the second node is ok and this error found in trace file for lmon.trc

kjxgmpoll: terminate the CGS reconfig.
Error: KGXGN polling error (15)
error 29702 detected in background process
ORA-29702: error occurred in Cluster Group Service operation
ksuitm: waiting up to [5] seconds before killing DIAG

View 3 Replies View Related

Forms :: Error - Trigger Raised Unhandled Exception ORA-6508

Jul 8, 2011

I am trying to build one custom 10g form from TEMPLATE.fmb. when i try to compile my form in desktop it is giving error as Error FRM-40735: ON-ERROR trigger raised unhandled exception ORA-6508.

View 1 Replies View Related

Enterprise Manager :: Getting Exception In Sending Request / Null Error

Mar 18, 2010

I am using Oracle 10.2.0.1.0. My intention is to create a new database instance.

Here are the steps I have taken,

1. Using DBCA, I created a new database instance, oracle sid = MYORCL0318

2. I created the tablespaces for this instance.(I obviously have not imported any data into this database yet.)

then, I went to Enterprise Manager,

Login = sys
password = xxxxxxx
role = SYSDBA

After I login, I would get an Error like this

java.lang.Exception: Exception in sending Request :: null

View 3 Replies View Related

Exception String - Error In Invoking Target Install Of Makefile

Jul 9, 2013

I am getting error message while installing oracle database gateway 11.2 on linux el6 64 bit machine

Error in invoking target 'install of makefile dg4mqs.mk'...if we ignore the error and continue...after installation we can see missing executable files .

View 5 Replies View Related

SQL & PL/SQL :: FRM-40735 - On-error Trigger Raised Unhanded Exception Ora-06508?

Aug 7, 2012

when ever the developer connecting to database to generate froms or While trying to create inventory categories below error is appearing.

FRM-40735: On-error trigger raised unhandled exception ora-06508..

View 9 Replies View Related

Forms :: FRM-40735 / ON-ERROR Trigger Raised Unhandled Exception

Dec 21, 2010

I am using forms 10g developer suite, AIX in appl server.

When I run the form on my local drive through web I am getting error that,FRM-40735:ON-ERROR trigger raised unhandled exception ORA-06508.

My fmbs & fmxs are in e:fmb, libraries are in d:applicationlib.

FORMS_PATH in Registry is C:DevSuiteHome_1cgenf61admin;C:DevSuiteHome_1forms;e:fmb;d:applicationlib

I have set the same path in default.env also.What should I update, to run the form successfully.

View 3 Replies View Related

Forms :: ON-ERROR Trigger Raised Unhandled Exception ORA-06508

Jan 18, 2007

I am in process of migrating Oracle 6i Forms to Oracle 10g Forms.

In 6i, the Form compiles and runs without any giving any error.

In 10g it does complie without any error but gives following Runtime Error Message -

FRM-40735: ON-ERROR trigger raised unhandled exception ORA-06508

View 15 Replies View Related

Windows :: Error / Test Failed / Provider Cannot Be Found

Feb 25, 2013

We just upgraded one of our databases to 11g on a new server. The 3rd party application that accesses the db is 32 bit. The software needs to be running on the db server in order for some transactions to occur. Since the oracle client on the db server is 64bit do we need to install a 32 bit client as well. As of right now we are getting an error in the software when trying to connect to the db that says "Test failed. provider cannot be found. it may not be properly installed." This is a live production server so uninstalling and reinstalling oracle is not really an option at this time (unless absolutely necessary). How will installing a 32 bit oracle client effect everything (if that is the route we need to take).

View 3 Replies View Related

Forms :: FRM-40735 Or Error Trigger Raised Unhandled Exception ORA-03114

Jun 13, 2010

I am using database 10g and Form 6i. We are working under client server technology. Frequently we are receiving the following error to every user at randomly when they are idle few seconds/minutes.

FRM-40735 or error trigger raised unhandled exception ora-03114

View 5 Replies View Related

Server Utilities :: Error - An Unhandled Win32 Exception Occurred In Ctxhx.exe

Mar 15, 2011

I have importing a dump file which is of size upto 6GB, its working fine. At the last step after the import of all the tables when it enables constraints , indexed and everything a pop-up window with the above mentioned error in the subject pops-up.

I am not able to mention the error exactly so find the screen shot as attachment.

View 4 Replies View Related

Application Express :: Exception Handling Pl Packages And APEX Exception Handler

Oct 7, 2013

APEX 4.2Oracle 11g Database We are using the standard exception handler that was introduced in APEX 4.1, and we have code in packages & procedures in the database (following proper processes of keeping code in the database where possible).  When an exception is found in the procedures/ packages/functions, should the APEX application level exception handler catch any errors that occur or should they be handled in the package/procedure/function they occurred in? Why I ask if, we right now have exception handling code in the pl/code bodies BUT they write their errors to the same table that Apex's Exception handler does, but the errors are NOT presented to the user using the APEX exception handling mechanism.

View 2 Replies View Related

Forms :: Implement Exception Handling In Exception Block Of A Trigger

Oct 10, 2011

I have to implement exception handling in the exception block of a trigger, Quote:exception

when ora_java.java_error then
message( 'Unable to call out to java, ' || ora_java.last_error );
ORA_JAVA.CLEAR_EXCEPTION;

when ORA_JAVA.EXCEPTION_THROWN then
ex := ORA_JAVA.LAST_EXCEPTION;
message( Exception_.toString(ex));
-- lv_exception := Exception_.getMessage(ex);

I get an error for the line: 'message( Exception_.toString(ex));'I have imported the java classes FException et IObject with their methods.

I have to create a Web Service Client, so I wonder if the paragraph Quote:when ORA_JAVA.EXCEPTION_THROWN then ex := ORA_ JAVA. LAST_ EXCEPTION; is mandatory.

View 2 Replies View Related

Oracle Installation Error On Ubuntu-sqlplus / Command Not Found

Mar 5, 2011

tried installing oracle 10g in ubuntu. i am successful with the oracle installation.i am able to login to sqlplus using oracle OEM,but when i try to login through command prompt , i get the following error:

rakesh@ubuntu:/$ sqlplus "/ as sysdba"
bash: sqlplus: command not found
[color="#000000"][/color]
rakesh@ubuntu:/$ sqlplus
bash: sqlplus: command not found

i have also tried to set the oracle_home, oracle path & oracle SID.

find the below configuration parameters which i have set to.

root@ubuntu:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin# more oracle_env.sh
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_HOME
ORACLE_SID=XE
export ORACLE_SID
#NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`

[code]....

View 4 Replies View Related

SQL & PL/SQL :: ORA-01403 / No Data Found

Aug 10, 2010

I have a problem with a package that generate reports.

ORA-01403: no data found

This is the first error rule.

p_pte_tab( r_sales.product_type ).shipped_units := p_pte_tab( r_sales.product_type ).shipped_units + r_sales.shipped_units;

From the next procedure (the whole package is a bit too large to post) :

procedure sales_report_2hnd( p_running_date date )
is
cn_procname constant varchar2(61) := 'sales_report_2hnd';
t_error_rec bol_exceptions.error_rec_type;
cursor c_rpt
is

[code]....

I thought there was a NULL record for shipping units but thats not the case.

View 5 Replies View Related

PL/SQL :: ORA-01403 / No Data Found

Aug 3, 2012

I'm using Oracle database10g.

I have a table called T1 with column C1

ORA-01403: no data found.

I know when I create a trigger I reference the new and old values using :NEW.C1 & :OLD.C1.

What about of the value is not changed and I still want access it what is the syntax.

View 2 Replies View Related

SQL & PL/SQL :: Null Value - No Data Found

Dec 8, 2011

I'm making PL/SQL function. Slice of

dbms_lob.append(temp_clob,to_clob(' <property>'||crlf));
fol:=lb_folios.get_chap1_sec1(folioid);
fetch fol into recid,rec_nr,text,shares,obj_size,monetary_sum,rec_status;
if fol%found then
dbms_lob.append(temp_clob,to_clob(' <chap1_sec1>'||crlf));

[Code]....

And I have error on "select jnl_id into jid" this line. And the error text is "no data found". And I know that there is no data in the table column jnl_id.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved