Compiler error (error 0 statement ignored)
I developped a library (.pll) under forms 4.5. I tried to
convert it to forms 6i. The conversion process is fine but when
I recompile all functions & procedures where I used a select
statement failed(error 0, statement ignored).
Thanks for any help. Lami Said
First, please post your exact version of Oracle Forms (eg; 11.1.1.3.0).
Second, can you please post the code that is causing you trouble. It would be helpful to see the full code, not just a sample as we can see how your SELECT statement is being used. Most likely, you are dealing with a Syntax issue, but we need to see your code to confirm this.
Lastly, as most of you are new to the Oracle Forums, it would be helpful for you to review the following:
<ul>
<li>Oracle Forums FAQ
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>How to ask questions the smart way
</ul>
Following these simple guidelines will ensure you have a positive experience in any forum; not just this one! ;-)
Craig...
Similar Messages
-
I'm migrating from Reports 10.xxx to 11.1.2.0, and I run into something very strange. Any select statement on any trigger on Reports 11.xxx returns Error 0 at line x, column x SQL statement ignored.
The reports have been and are still running on Reports 10xxx with no problems.
Below one of those triggers:
function BeforeReport return boolean is
begin
select rv_low_value
into :cp_name
from cg_ref_codes
where rv_domain = 'COMPANY';
return (TRUE);
end;
Any help will be appreciated,
LuisWhat is that :cp_name. Is it a parameter?
-
Cursor Error in trigger - Statement Ignored/identifier must be declared PLS
I have been asked to implement a trigger and believe I have the code complete but am getting a final error on the compile. I have been running in circles for a day trying to resolve my issue. I have no PL/SQL knowlege so have been pulling from a book and google. I have three Cursors defined and the third compiles fine, the first two give the below error though I can't see a significant difference between the three. I can't help but think it is something stupid I am not seeing but I am at a loss.
If I comment out the reference to the cursor it will compile with the cursor definition but as soon as I add the Open statement the errors below appear.
Any help would be greatly appreciated as my head is getting sore.
Thanks
Mike
Error(30,13): PL/SQL: Statement ignored
Error(30,20): PLS-00201: identifier 'CURSORGETFROMDISTMAKRERS' must be declared
Error(51,13): PL/SQL: Statement ignored
Error(51,20): PLS-00201: identifier 'CURSORGETTODISTMAKRERS' must be declared
-- Table I am writing to
create table IMSV7.CTRANSWODISTMARK (
WORKORDERKEY INTEGER,
DISTMARKFROM NUMBER (9,4),
DISTMARKFROMATTRIBUTE VARCHAR (10),
DISTMARKTO NUMBER (9,4),
DISTMARKTOATTRIBUTE VARCHAR (10)
-- Excerpt from the HISTORY table I am placing the trigger against
COMPKEY NUMBER (9,0)
DISTFROMFT FLOAT
DISTTOFT FLOAT
HISTKEY NUMBER (9,0)
-- Trigger code
CREATE OR REPLACE TRIGGER MaintainCTRANSWODISTMARK
AFTER INSERT or UPDATE of DISTFROMFT, DISTTOFT ON IMSV7.HISTORY
REFERENCING NEW as NewWO
FOR EACH ROW
BEGIN
DECLARE
-- Declare cursors
CURSOR CursorGetFromDistMarkers (WOCompKey IN NUMBER, WODistFromFT IN FLOAT) IS
SELECT ATTRCODE, DISTFROMFT, MARKERFROM from RWATTRDF DF, RWATTR A
where WOCompkey = A.COMPKEY AND DF.ATTRKEY = A.ATTRKEY and DF.ATTRTYPE = 'DISTMARK'
and WODistFromFT >= DISTFROMFT and WODistFromFT <= DISTTOFT
order by A.EFFDATE DESC, DISTFROMFT DESC;
FromDistanceMarker CursorGetFromDistMarkers%ROWTYPE;
CURSOR CursorGetToDistMarkers (WOCompKey IN NUMBER, WODistToFT IN FLOAT) IS
SELECT ATTRCODE, DISTFROMFT, MARKERFROM from RWATTRDF DF, RWATTR A
where WOCompkey = A.COMPKEY AND DF.ATTRKEY = A.ATTRKEY and DF.ATTRTYPE = 'DISTMARK'
and WODistToFT >= DISTFROMFT and WODistToFT <= DISTTOFT
order by A.EFFDATE DESC, DISTFROMFT DESC;
ToDistanceMarker CursorGetToDistMarkers%ROWTYPE;
CURSOR CursorGetCTRANSWODistMark (WOHistKey IN NUMBER) IS
SELECT WORKORDERKEY from CTRANSWODISTMARK
where WORKORDERKEY = WOHistKey;
CTRANSWODistMark CursorGetCTRANSWODistMark%ROWTYPE;
varDistmarkFrom NUMBER;
varDistmarkFromAttribute VARCHAR2(10);
varDistmarkTo NUMBER;
varDistmarkToAttribute VARCHAR2(10);
BEGIN
-- Process From measurement
IF NOT CursorGetFromDistMakrers%ISOPEN
THEN
OPEN CursorGetFromDistMarkers(:NewWO.COMPKEY, :NewWO.DISTFROMFT);
END IF;
FETCH CursorGetFromDistMarkers INTO FromDistanceMarker;
IF CursorGetFromDistMarkers%NOTFOUND
THEN
-- No distance markers found, use MILES
varDistmarkFrom := :NewWO.DISTFROMFT / 5280;
varDistmarkFromAttribute := 'MILES';
ELSE
-- Found a distance marker, convert to its units and use those
-- Distance is the Marker start distance plus the offset from that start of the marker
varDistmarkFrom := FromDistanceMarker.MARKERFROM + :NewWO.DISTFROMFT - FromDistanceMarker.DISTFROMFT;
varDistmarkFromAttribute := FromDistanceMarker.ATTRCODE;
END IF;
CLOSE CursorGetFromDistMarkers;
-- Process To measurement
IF NOT CursorGetToDistMakrers%ISOPEN
THEN
OPEN CursorGetToDistMarkers(:NewWO.COMPKEY, :NewWO.DISTTOFT);
END IF;
FETCH CursorGetToDistMarkers INTO ToDistanceMarker;
IF CursorGetToDistMarkers%NOTFOUND
THEN
-- No distance markers found, use MILES
varDistmarkTo := :NewWO.DISTTOFT / 5280;
varDistmarkToAttribute := 'MILES';
ELSE
-- Found a distance marker, convert to its units and use those
-- Distance is the Marker start distance plus the offset from that start of the marker
varDistmarkTo := ToDistanceMarker.MARKERFROM + :NewWO.DISTTOFT - ToDistanceMarker.DISTFROMFT;
varDistmarkToAttribute := ToDistanceMarker.ATTRCODE;
END IF;
CLOSE CursorGetToDistMarkers;
-- Check for existing record to know if we should add or update
IF NOT CursorGetCTRANSWODistMark%ISOPEN
THEN
OPEN CursorGetCTRANSWODistMark(:NewWO.HISTKEY);
END IF;
FETCH CursorGetCTRANSWODistMark INTO CTRANSWODistMark;
IF CursorGetCTRANSWODistMark%NOTFOUND
THEN
-- Record does not exist, add one
Insert into CTRANSWODISTMARK (WORKORDERKEY, DISTMARKFROM, DISTMARKFROMATTRIBUTE, DISTMARKTO, DISTMARKTOATTRIBUTE)
values (:NewWO.HISTKEY, varDistmarkFrom, varDistmarkFromAttribute, varDistmarkTo, varDistmarkToAttribute);
ELSE
-- Existing record, update it
Update CTRANSWODISTMARK set DISTMARKFROM = varDistmarkFrom, DISTMARKFROMATTRIBUTE = varDistmarkFromAttribute,
DISTMARKTO = varDistmarkTo, DISTMARKTOATTRIBUTE = varDistmarkToAttribute
Where WORKORDERKEY = :NewWO.HISTKEY;
END IF;
END;
END;
run;
show errors trigger MaintainCTRANSWODISTMARK;the cursor is mispelled
IF NOT CursorGetFromDistMakrers%ISOPENchange it to:
IF NOT CursorGetFromDistMarkers%ISOPEN -
Error: PL/SQL statement ignored
In the code below i am getting 3 errors:
a. PL/SQL statement ignored
b. PLS-00201
c. PL/SQL: ORA-00904 : invalid identifier
please help. thank you
=========================================
Package body:
=========================================
create or replace package BODY manage_students
as
procedure find_sname
(i_student_id IN student.student_id%TYPE,
o_first_name OUT student.first_name%TYPE,
o_last_name OUT student.last_name%TYPE)
IS
v_student_id student.student_id%TYPE;
BEGIN
select first_name, last_name
into o_first_name, o_last_name
from student
where student_id = i_student_id;
exception
when others
then
DBMS_OUTPUT.PUT_LINE('Error in finding student_id: '||v_student_id);
end find_sname;
function id_is_good
(i_student_id in student.student_id%TYPE)
return BOOLEAN
IS
v_id_cnt number;
begin
select count(*)
into v_in_cnt
from student
where student_id = i_student_id;
return 1 = v_id_cnt;
EXCEPTION
when others then
return FALSE;
end id_is_good;
END manage_students;
=========================
Package specification:
=========================
set serveroutput on
create or replace package manage_students
as
procedure find_sname
(i_student_id IN student.student_id%TYPE,
o_first_name OUT student.first_name%TYPE,
o_last_name OUT student.last_name%TYPE
function id_is_good
(i_student_id IN student.student_id%TYPE)
RETURN BOOLEAN;
END manage_students;
Edited by: [email protected] on Mar 19, 2009 6:03 AM
Edited by: [email protected] on Mar 19, 2009 6:03 AMCongrats, someonElse! ;-)
And about the when others: read about it on asktom why it's a bad practice, here's an example:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1509245700346768268#1535781400346575552
I've spent myself way too much time on finding and fixing bugs caused by 'when others', so I always comment about it too ;-)
Edited by: hoek on Mar 19, 2009 2:14 PM
Edited by: hoek on Mar 19, 2009 2:18 PM -
Error message "SQL Statement ignored" while try to run an Funtion in APEX
Hello All,
In order to creating an application in APEX from CSV format i need to run below funtion.
CREATE OR REPLACE FUNCTION bcl_custom_auth (
p_username IN VARCHAR2,
p_password IN VARCHAR2)
RETURN BOOLEAN IS
BEGIN
FOR c1 IN (SELECT 1
FROM bcl_employees
WHERE UPPER(userid) = UPPER(p_username)
AND UPPER(last_name) = UPPER(p_password))
LOOP
RETURN TRUE;
END LOOP;
RETURN FALSE;
END;
but i am getting below error message:
Error at line 6: PL/SQL: SQL Statement ignored
4. RETURN BOOLEAN IS
5. BEGIN
6. FOR c1 IN (SELECT 1
7. FROM bcl_employees
8. WHERE UPPER(userid) = UPPER(p_username)
Could some body please check as i am new to PLSQL.
Thanks & regards,
Souvik Ghosh843873 wrote:
Hello Edstevens,
I did not understand your answer .Could you please elaborate.
Thanks & regards,
Souvik Ghosh
Edited by: 843873 on Jul 8, 2011 11:43 PMNotice that the message had been edited? I changed my mind from my original, shot-from-the-hip, mesage, and simply deleted the entire content. would have preferred to delete the entire message but can't. -
Error in Trigger (PL/SQL: SQL Statement Ignored)
Here is the trigger:
CREATE OR REPLACE TRIGGER DRUGREPLACEMENT
AFTER INSERT ON PHARMACEUTICALS
REFERENCING NEW AS newDrugs
FOR EACH ROW
WHEN (newDrugs.drugname = newDrugs.genericname)
BEGIN
UPDATE prescription
SET pharmaceuticalid = newDrugs.drugID
WHERE pharmaceuticalid IN(SELECT pharmaceuticalid FROM prescription, pharmaceuticals WHERE drugid = pharmaceuticalid AND newDrugs.genericname = pharmaceutical.genericname);
END;
Error is:
Error(2,1): PL/SQL: SQL Statement ignored
Error(3,24): PL/SQL: ORA-00904: "NEWDRUGS"."DRUGID": invalid identifier
pharmaceuticalid is a number in my prescription table.
drugid is a number; genericname and drugname are both varchars in my pharmaceuticals table. Any idea why I am getting these errors? (I tried putting quotes around newdrugs.drugid but then it just said "newdrugs.drugid" is invalid. Thanks for your help
-BrianOne more thing. Your trigger is selecting from triggering table. So single row inserts will work, but multiple row inserts into PHARMACEUTICALS will fail with famous "table is mutating" error. There is no need to select from PHARMACEUTICALS. Change:
UPDATE ************
SET pharmaceuticalid = newDrugs.drugID
WHERE pharmaceuticalid IN(SELECT pharmaceuticalid FROM ************, pharmaceuticals WHERE drugid = pharmaceuticalid AND newDrugs.genericname = pharmaceutical.genericname);to
UPDATE ************
SET pharmaceuticalid = newDrugs.drugID
WHERE pharmaceuticalid IN (
SELECT pharmaceuticalid
FROM ************
WHERE drugid = :newDrugs.pharmaceuticalid
AND :newDrugs.genericname = pharmaceutical.genericname
);SY. -
Error compiling EJB-QL statement
I run jboss 3.2.2 with Tomcat.
When I deploy a CMP EJB I get the
error below. Do you have any idea of
what could be the reason of the message?
Thanks.
U.
2003-12-03 15:28:21,437 ERROR [org.jboss.ejb.EntityContainer] Starting failed
org.jboss.deployment.DeploymentException:
Error compiling EJB-QL statement '
select object(o) from myobject o where o.mypro BETWEEN ?1 and ?2
'; - nested throwable:
(org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "BETWEEN" at line 1, column 62.
Was expecting one of:
"=" ...
"<>" ...Well it looks like the word "BETWEEN" is causing the compiler to choke. Instead of "X between 1? and 2?" try "(X > ?1 AND X < ?2) OR (X > ?2 AND X < ?1)"
-
Pro*C compile/runtime errors w/ XMLTYPE
On an Oracle 9iR2 NT machine (Pro*C/C++: Release 9.2.0.1.0)...
1. The following SQL works without error from SQL*Plus:
DECLARE
xml_clob CLOB;
file_name VARCHAR2(200);
BEGIN
file_name := 'rsand.xml';
xml_clob := f_get_xml_document(file_name);
insert into RCTXMLD values(file_name, XMLTYPE(xml_clob));
END;
select extractValue(RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]/@EntityId')
from rctxmld
where rctxmld_docname = 'rsand.xml'
SELECT existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
FROM RCTXMLD
WHERE RCTXMLD_DOCNAME = 'rsand.xml'
SELECT existsNode (RCTXMLD_XMLDOC,'/CommonRecord/ReportingSchl[1]/AttendingSchl[1]')
FROM RCTXMLD
WHERE RCTXMLD_DOCNAME = 'rsand.xml'
SELECT XMLTYPE.existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
FROM RCTXMLD
WHERE RCTXMLD_DOCNAME = 'rsand.xml'
2. The following SQL compiles and works without error from Pro*C:
EXEC SQL DECLARE REPORTING_SCHOOL CURSOR FOR
SELECT XMLTYPE.existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
FROM RCTXMLD
WHERE RCTXMLD_DOCNAME = :file_name_parm;
Note: This only compiles when existsNode is prefixed by "XMLTYPE."
3. The following SQL generates runtime errors from Pro*C:
static void ins_xml_doc(void)
#ifdef SCT_DEBUG
printf("Executing ins_xml_doc\n");
fflush(stdout);
#endif
EXEC SQL EXECUTE
DECLARE
xml_clob CLOB;
BEGIN
xml_clob := f_get_xml_document(:file_name_parm);
INSERT into RCTXMLD VALUES (:file_name_parm, XMLTYPE(xml_clob));
END;
END-EXEC;
POSTORA;
Run Sequence Number....................................:
Processing C:\TEMP\jobsub\finaid\rsand.xml...
Connected.
ORA-22288: file or LOB operation FILEOPEN failed
The process cannot access the file because
it is being used by another process
ORA-06512: at "SYS.DBMS_LOB", line 672
ORA-06512: at "FAISMGR.F_GETñ
WRN-ORACERR: Error occurred in file "d:\banner\finaid\c\rerim04.pc" at line 1318
WRN-ERRSTMT: Following statement was last statement parsed:
declare xml_clob CLOB ; BEGIN xml_clob := f_get_xml_document ( :file_n
Unable to initialize device default
4. The following SQL generates compile errors from Pro*C:
EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]/@EntityId')
INTO :ReportingSchlEntityId
FROM RCTXMLD
WHERE RCTXMLD_DOCNAME = :file_name_parm;
POSTORA;
Processing rerim04, type pc...
Pro*C/C++: Release 9.2.0.1.0 - Production on Thu Feb 6 08:59:46 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
System default option values taken from: D:\oracle\ora92\precomp\admin\pcscfg.cfg
Error at line 1887, column 5 in file d:\banner\finaid\c\rerim04.pc
EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
....1
PLS-S-00302, component 'EXTRACTVALUE' must be declared
Error at line 1887, column 5 in file d:\banner\finaid\c\rerim04.pc
EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
....1
PLS-S-00000, SQL Statement ignored
Semantic error at line 1887, column 5, file d:\banner\finaid\c\rerim04.pc:
EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
....1
PCC-S-02346, PL/SQL found semantic errors
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
rerim04.c
fatal error C1083: Cannot open source file: 'C:\TEMP\rerim04.c': No such file or directoryOn an Oracle 9iR2 NT machine (Pro*C/C++: Release 9.2.0.1.0)...
1. The following SQL works without error from SQL*Plus:
DECLARE
xml_clob CLOB;
file_name VARCHAR2(200);
BEGIN
file_name := 'rsand.xml';
xml_clob := f_get_xml_document(file_name);
insert into RCTXMLD values(file_name, XMLTYPE(xml_clob));
END;
select extractValue(RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]/@EntityId')
from rctxmld
where rctxmld_docname = 'rsand.xml'
SELECT existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
FROM RCTXMLD
WHERE RCTXMLD_DOCNAME = 'rsand.xml'
SELECT existsNode (RCTXMLD_XMLDOC,'/CommonRecord/ReportingSchl[1]/AttendingSchl[1]')
FROM RCTXMLD
WHERE RCTXMLD_DOCNAME = 'rsand.xml'
SELECT XMLTYPE.existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
FROM RCTXMLD
WHERE RCTXMLD_DOCNAME = 'rsand.xml'
2. The following SQL compiles and works without error from Pro*C:
EXEC SQL DECLARE REPORTING_SCHOOL CURSOR FOR
SELECT XMLTYPE.existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
FROM RCTXMLD
WHERE RCTXMLD_DOCNAME = :file_name_parm;
Note: This only compiles when existsNode is prefixed by "XMLTYPE."
3. The following SQL generates runtime errors from Pro*C:
static void ins_xml_doc(void)
#ifdef SCT_DEBUG
printf("Executing ins_xml_doc\n");
fflush(stdout);
#endif
EXEC SQL EXECUTE
DECLARE
xml_clob CLOB;
BEGIN
xml_clob := f_get_xml_document(:file_name_parm);
INSERT into RCTXMLD VALUES (:file_name_parm, XMLTYPE(xml_clob));
END;
END-EXEC;
POSTORA;
Run Sequence Number....................................:
Processing C:\TEMP\jobsub\finaid\rsand.xml...
Connected.
ORA-22288: file or LOB operation FILEOPEN failed
The process cannot access the file because
it is being used by another process
ORA-06512: at "SYS.DBMS_LOB", line 672
ORA-06512: at "FAISMGR.F_GETñ
WRN-ORACERR: Error occurred in file "d:\banner\finaid\c\rerim04.pc" at line 1318
WRN-ERRSTMT: Following statement was last statement parsed:
declare xml_clob CLOB ; BEGIN xml_clob := f_get_xml_document ( :file_n
Unable to initialize device default
4. The following SQL generates compile errors from Pro*C:
EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]/@EntityId')
INTO :ReportingSchlEntityId
FROM RCTXMLD
WHERE RCTXMLD_DOCNAME = :file_name_parm;
POSTORA;
Processing rerim04, type pc...
Pro*C/C++: Release 9.2.0.1.0 - Production on Thu Feb 6 08:59:46 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
System default option values taken from: D:\oracle\ora92\precomp\admin\pcscfg.cfg
Error at line 1887, column 5 in file d:\banner\finaid\c\rerim04.pc
EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
....1
PLS-S-00302, component 'EXTRACTVALUE' must be declared
Error at line 1887, column 5 in file d:\banner\finaid\c\rerim04.pc
EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
....1
PLS-S-00000, SQL Statement ignored
Semantic error at line 1887, column 5, file d:\banner\finaid\c\rerim04.pc:
EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
....1
PCC-S-02346, PL/SQL found semantic errors
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
rerim04.c
fatal error C1083: Cannot open source file: 'C:\TEMP\rerim04.c': No such file or directory -
The Function TRACKIT65.SMSP_CHECKINANSWER has been compiled with errors
I am trying to create a function, as listed below, and when it compiles it compiles with errors. The errors it lists are as follows:
1) Line # = 1 Column # = 187 Error Text = PL/SQL: SQL Statement ignored
2) Line # = 1 Column # = 222 Error Text = PL/SQL: ORA-00906: missing left parenthesis
Here is the create function statement:
CREATE FUNCTION "TRACKIT60"."SMSP_CHECKINANSWER" (p_answer_id NUMBER, p_user_id NUMBER, p_edit_token VARCHAR2, p_wasModified VARCHAR2 := 'N') RETURN NUMBER IS v_chkout VARCHAR(32);
BEGIN
SELECT CAST(checked_out AS VARCHAR2) INTO v_chkout FROM smAnswers
WHERE answer_id = p_answer_id;
IF (v_chkout = p_edit_token) THEN
IF (p_wasModified = 'Y') THEN
UPDATE smAnswers
SET checked_out = NULL, edited_by = p_user_id, published_on = SYSDATE
WHERE answer_id = p_answer_id;
ELSE
UPDATE smAnswers
SET checked_out = NULL
WHERE answer_id = p_answer_id;
END IF;
RETURN 0;
ELSE
RETURN 1;
END IF;
END smsp_CheckInAnswer;
If anyone can see what I am missing I would really appreciate it.
Thank you
ChicagoOne thing your code is missing is formatting, enclosing code in { code } without spaces will allow formatting.
Another is the precision of the VARCHAR2 size in your CAST statement.
ME_XE?select cast('hi' as varchar2) from dual;
select cast('hi' as varchar2) from dual
ERROR at line 1:
ORA-00906: missing left parenthesis
Elapsed: 00:00:00.03
ME_XE?select cast('hi' as varchar2(10)) from dual;
CAST('HI'ASVARCHAR2(10))
hi
1 row selected.
Elapsed: 00:00:00.01 -
DML ERROR LOGGING STATEMENT FAILS FOR MULTITABLE INSERT
When I use a simple expression in my dml error logging statement for a multitable insert I get 'end of file on communication channel' on the compile(in all guis tested). It works fine without the simple expression for the multitable insert. The simple expression works ok with a single table insert.
example:
this works ok for single table insert and blows up on multitable inserts:
LOG ERRORS INTO ERR$_INVOICE (TO_CHAR(SYSDATE,'YYYYMMDD HH:MI:SS')) REJECT LIMIT UNLIMITED;
this works ok for both:
LOG ERRORS INTO ERR$_CINVOICE REJECT LIMIT UNLIMITED;
any ideas?No version number, no DDl, and no DML. No help is possible.
Complete version information and a demo that people can run to duplicate your situation will increase the chance of getting help.
I, for example, have no idea what you intend with the statement multitable insert. Is this a reference to INSERT ALL or INSERT FIRST or some other syntax? -
Itunes document manager pro will not open a document with .cwk extension. It will catch the document then error message states that it cannot open document. Can anyone tell me what Im doing wrong?
Forgive my ignorance but I have never hear of iTunes Document Manager Pro. If you mean Document Manager Pro, i was able to find that. Back to your problem, have you tried opening one of those files in the iOS iWorks apps? Form the quick read that I did about this, .cwk files can be opened by Pages, Numbers or Keynote, depending on what type of document that it is and those files can be read by Document Manager Pro, after properly saving them. I don't see that you can go directly from the .cwk file in Document Manager Pro without converting them first.
I took a very quick look at the app, so I may be a missing something about its capability. -
Formatting Failed: Compiler File Error
Hello...
Yesterday I got my crossgrade disks from Apple, so I upgraded my G4 Powerbook with the full Studio Pro upgrade, then made sure I had all current patches.
When I opened up one of my DVD Studio Pro projects and clicked Burn, It failed with a dailog box that said "Formatting failed, Building was not successful, See log" so I looked at the log and it said in red "Compiler File Error"
This project worked fine before I upgraded... So, for grins, I started from scratch and rebuilt the project and reimported the assets. Now I had just recompressed the video/audio with the new compressor as well... Anyway, same result. Also, when it fails, the OS-X window pops up that you normally get once you insert a blank DVD and you can choose an app or hit ignore.
Can't figure this out... Any help would be greatly appreciated.
Dave
Powerbook G4 Mac OS X (10.4.3)Once I upgraded, I recompressed the video (its about 14 min, and uses Dolby, not AIFF)... When I opened DVD Studio Pro, it prompted me that assets had changed, I said ok, then tried to burn and go the error. I then tried deleting the PAR folder, no help. So, I just closed the project, hit NEW and recreated the project (it was rather simple) and then tried to burn... Same error.
I burned this same DVD two days ago under the old pre-universal version and it worked fine. I only recompressed because I heard that the new version performed much better.
Sorta lost on this one... I don't see any reason why it shouldnt work. The log only says the one line and gives no other help. -
Procedure with recursive query working in 11g compiles with error in 10g
Hi, All,
I have a procedure that recursively selects tree-like table (with ID-ParentID relationship). Query itself works perfectly and exactly like I need in 11g and procedure containing it compiles well. But when I try to create the same procedure in 10g then I get a message that procedure compiled with error. I have no other suspicions but on the WITH part of the procedure.
The exact query is here (destination_tariff_zones is the tree-like table which refers to itself by parent_destination_tariff_zone_id):
+ open dtzl_cur FOR
with dtree (nm, iid, alevel, wldcard, dtzindex)
as (select dtz.iname, dtz.iid, 0, dtz.wildcard, rcdi.iindex
from destination_tariff_zones dtz, rating_cube_dimension_indices rcdi, rating_cube_dimensions rcd
where dtz.parent_tariff_zone_id is null and
dtz."rc_dimension_index_id" = rcdi.iid and
rcdi."rc_dimension_id" = rcd.iid and
rcd.rating_cube_id = rc_id and
rcd.dimension_type_id = dim_type
union all
select dtz.iname, dtz.iid, dtree.alevel + 1,
cast ((dtree.wldcard || dtz.wildcard) as varchar2(20)), rcdi.iindex
from dtree, destination_tariff_zones dtz, rating_cube_dimension_indices rcdi, rating_cube_dimensions rcd
where dtree.iid = dtz.parent_tariff_zone_id and
dtz."rc_dimension_index_id" = rcdi.iid and
rcdi."rc_dimension_id" = rcd.iid and
rcd.rating_cube_id = rc_id and
rcd.dimension_type_id = dim_type)
select iid, nm, wldcard, dtzindex
from dtree
order by wldcard;+
Is there any difference between how 11g and 10g handle WITH statements?
Please advise.
Thank you very much in advance,
MaxMax Afanasiev wrote:
then is there any alternative to implement what I need?You can look at using CONNECT BY to emulate a recursive query. If you can post the following we may be able to help:
1. Sample data in the form of CREATE / INSERT statements.
2. Expected output
3. Explanation of expected output (A.K.A. "business logic")
4. Use \ tags for #2 and #3. See FAQ (Link on top right side) for details. -
Pls suggest a reason for a compile time error
the following program gives a compile time error bcoz of the statement
((State)this).val=this.val. if u could suggest why?
public class Mainc
public static void main(String args[])
State st=new State();
System.out.println(st.getvalue());
State.Memento mem= st.memfunc();
st.altervalue();
System.out.println(st.getvalue());
mem.restore();
System.out.println(st.getvalue());
public static class State
protected int val=11;
int getvalue()
return val;
void altervalue()
val=(val+7)%31;
Memento memfunc()
return new Memento();
class Memento
int val;
Memento()
this.val=state.this.val;
void restore()
((State)this).val=this.val;
}The statement :
((State)this).val
tries to cast Memento into its super class State which is inorrect [former is not latter's subclass]
restore method should be as follows:
void restore()
State.this.val=this.val;
} -
I need help with this code error "unreachable statement"
the error_
F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
int index;
^
F:\Java\Projects\Tools.java:71: missing return statement
}//end delete method
^
F:\Java\Projects\Tools.java:86: missing return statement
}//end getrecod
^
3 errors
import java.util.*;
import javax.swing.*;
import java.awt.*;
public class Tools//tool class
private int numberOfToolItems;
private ToolItems[] toolArray = new ToolItems[10];
public Tools()//array of tool
numberOfToolItems = 0;
for(int i = 0; i < toolArray.length; i++)//for loop to create the array tools
toolArray[i] = new ToolItems();
}//end for loop
}//end of array of tools
public int search(int id)//search mehtod
int index = 0;
while (index < numberOfToolItems)//while and if loop search
if(toolArray[index].getID() == id)
return index;
else
index ++;
}//en while and if loop
return -1;
}//end search method
public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
if(numberOfToolItems >= toolArray.length)
return 0;
int index;
index = search(id); <-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------HERE
if (index == -1)
toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
numberInStock ++;
return 1;
}//end if index
}//end if toolitem array
return -1;
}//end insert method
public int delete(/*int id*/)//delete method
}//end delete method
public void display()//display method
for(int i = 0; i < numberOfToolItems; i++)
//toolArray.display(g,y,x);
}//end display method
public String getRecord(int i)//get record method
// return toolArray[i].getName()+ "ID: "+toolArray[i].getID()
}//end getrecod
}//end class
Edited by: ladsoftware on Oct 9, 2009 6:08 AM
Edited by: ladsoftware on Oct 9, 2009 6:09 AM
Edited by: ladsoftware on Oct 9, 2009 6:10 AM
Edited by: ladsoftware on Oct 9, 2009 6:11 AMladsoftware wrote:
Subject: Re: I need help with this code error "unreachable statement"
F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
int index;
^
F:\Java\Projects\Tools.java:71: missing return statement
}//end delete method
^
F:\Java\Projects\Tools.java:86: missing return statement
}//end getrecod
^
3 errorsThe compiler is telling you exactly what the problems are:
public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
if(numberOfToolItems >= toolArray.length)
return 0; // <<== HERE you return, so everyting in the if block after this is unreachable
int index;
index = search(id); //< -----------------------------------------------------------------------------------------------------------------HERE
if (index == -1)
toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
numberInStock ++;
return 1;
}//end if index
}//end if toolitem array
return -1;
}//end insert method
public int delete(/*int id*/)//delete method
// <<== HERE where is the return statement?
}//end delete method
public String getRecord(int i)//get record method
// return toolArray.getName()+ "ID: "+toolArray[i].getID() <<== HERE you commented out the return statement
}//end getrecod
}//end class
Maybe you are looking for
-
I am having trouble with sleep mode for my macbook pro
My Macbook pro 13" is getting old, about late 2009. Sorry if language confusing you. Ok, Normally when you are turn your screen down osx will automatically get into sleep mode and when you open the screen it will be back as usual. Lately since 2-3 mo
-
External Monitor not working with U430P
I have a U430P laptop and a Dell U2412M external monitor. Both have worked great together until yesterday, all of a sudden my external monitor won't work, the screen is black and my laptop doesn't recognize the device. I have tested the monitor on
-
Sort e-mails by recipient's e-mail in the Sent Items - OWA
Dears, I'd like to know how to sort in sent items folder by recipient's e-mails in Office 365 Outlook Web App? I have a Exchange user account in a Corporate Domain. When I'm using a Outllook Client installed in my desktop I can organize in my Sent It
-
SQL command IN is working whereas NOT IN not working
In application code I have the below code. IF v_service_variant NOT IN(0,1,2,3,4) THEN --Checking whether existing service variant is applicable in 21Cn Fibre. v_service_variant := 3; --If not making it as a standard service UPDATE sspt_sessions_tabl
-
Hello, I've been running the DMV 'sys.event_log', and have noticed that I am getting a lot of errors about connection issues to some of my SQL Azure databases saying "Database could not be opened. May be caused because database does not exist or lack