Trigger problem
CREATE OR REPLACE TRIGGER xx_fsd_seiban_update
AFTER UPDATE OF flow_status_code ON oe_order_headers_all
FOR EACH ROW
WHEN(NEW.flow_status_code = 'BOOKED')
DECLARE
PRAGMA AUTONOMOUS_TRANSACTION;
v_pa_proj_seq_nxtval NUMBER;
v_default_cost_group_id mtl_parameters_view.default_cost_group_id%TYPE;
v_cost_group cst_cost_groups.cost_group%TYPE;
-- v_header_id oe_order_headers_all.header_id%TYPE;
flag_update oe_order_lines_all.booked_flag%type;
CURSOR C1 IS SELECT BOOKED_FLAG,HEADER_ID,LINE_ID,ORG_ID
FROM OE_ORDER_LINES_ALL WHERE HEADER_ID=:OLD.HEADER_ID
AND ORG_ID=121;
BEGIN
SELECT pa_projects_s.nextval
INTO v_pa_proj_seq_nxtval
FROM DUAL;
SELECT header_id
INTO v_header_id
FROM oe_order_headers_all
WHERE order_number = :OLD.order_number
AND org_id = 121;
SELECT default_cost_group_id, ccg.cost_group
INTO v_default_cost_group_id, v_cost_group
FROM mtl_parameters_view mp, cst_cost_groups ccg
WHERE mp.default_cost_group_id = ccg.cost_group_id
AND mp.organization_id = :OLD.ship_from_org_id;
INSERT INTO pjm_seiban_numbers
( project_id
, project_number
, project_name
, operating_unit
, creation_date
, created_by
, last_update_date
, last_updated_by
, last_update_login
) VALUES
( v_pa_proj_seq_nxtval
, :OLD.order_number
, :OLD.order_number
, :OLD.org_id
, SYSDATE
, FND_GLOBAL.USER_ID
, SYSDATE
, FND_GLOBAL.USER_ID
, FND_GLOBAL.LOGIN_ID
INSERT INTO PJM_PROJECT_PARAMETERS
( project_id
, organization_id
, creation_date
, created_by
, last_update_date
, last_updated_by
, last_update_login
, seiban_number_flag
, costing_group_id
) VALUES
( v_pa_proj_seq_nxtval
, :OLD.ship_from_org_id
, SYSDATE
, FND_GLOBAL.USER_ID
, SYSDATE
, FND_GLOBAL.USER_ID
, FND_GLOBAL.LOGIN_ID
, 1
, v_default_cost_group_id
commit;
BEGIN
FOR I IN C1 LOOP
SAVEPOINT A;
select booked_flag into flag_update from
oe_order_lines_all
where header_id=i.header_id
AND ORG_ID=121 for update wait 10;
if flag_update='Y' then
UPDATE oe_order_lines_all
SET project_id = v_pa_proj_seq_nxtval
WHERE header_id = I.header_id
AND org_id = 121;
COMMIT;
ELSE
UPDATE oe_order_lines_all
SET BOOKED_FLAG ='Y'
WHERE header_id = I.header_id
AND org_id = 121;
ROLLBACK TO A;
END IF;
END LOOP;
END;
END;
This trigger when exected giving resource busyy dead lock
ORA-00060: deadlock detected while waiting for resource
ORA-06512: at "APPS.XX_FSD_SEIBAN_UPDATE", line 73
ORA-04088: error during execution of trigger 'APPS.XX_FSD_SEIBAN_UPDATE' in Package OE_ORDER_BOOK_UTIL Procedure Update_Booked_Flag
Edited by: |SN| on Sep 22, 2009 10:42 PM
Hi,
Pls try -- remove your below code from trigger-
and use in a procedure...I feel you are going wrong in using for "update clause".
Pls go through the docs of how to use "for update" clause with "current of" clause in cursor.
BEGIN
FOR i IN C1 LOOP
SAVEPOINT a;
SELECT Booked_Flag
INTO Flag_Update
FROM Oe_Order_Lines_All
WHERE Header_Id = i.Header_Id
AND Org_Id = 121
FOR UPDATE Wait 10;
IF Flag_Update = 'Y' THEN
UPDATE Oe_Order_Lines_All
SET Project_Id = v_Pa_Proj_Seq_Nxtval
WHERE Header_Id = i.Header_Id
AND Org_Id = 121;
COMMIT;
ELSE
UPDATE Oe_Order_Lines_All
SET Booked_Flag = 'Y'
WHERE Header_Id = i.Header_Id
AND Org_Id = 121;
ROLLBACK TO a;
END IF;
END LOOP;
END;
Similar Messages
-
Hi,
I have some trigger problems. I created a trigger to update a certain column each time a new record is inserted or an existent record is updated. I use Oracle 10g. If I create the trigger and execute an insert query via the XE client everything works fine. However, when I use a spring 3.1 setup with Hibernate and OJDBC driver, I get an
java.sql.SQLException: ORA-04098: trigger 'LOCALUSER_PROP_TRIG' is invalid and failed re-validation
And if I execute a show error trigger query I get an invalid SQL query error.
I can easily activate Hibernate debugging and I can see that the prepared statement by Hibernate is just fine, but I was wondering if I could see the full sql sent by the JDBC driver to the server. Maybe seeing the actual query sent to the server would provide new insight of what could be wrong in the Hibernate setup. Does any one what could be wrong and eventually how could setup jdbc to output debug info? Thanks a lot,
CristianWhich platform is the database running on ??
Other things you should check -
when debugging the EJB, JDev
3.1 looks through your IIOP connections to find the one to use.
Make sure that the IIOP connection that JDev is using for the debugging matches the IIOP connection that the EJB client application is using.
raghu
null -
Hello all, i have a ' Mutating DB Trigger Problem' for the following Trigger :
=============================================
CREATE OR REPLACE TRIGGER ASSIUT.EMP_ATTENDANCEE_MONA
AFTER INSERT
ON ASSIUT.ACCESSLOG
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
V_COUNT CHAR(2);
--V_COUNT_OUT CHAR(2);
BEGIN
IF :NEW.INOUT = 'IN' THEN
INSERT INTO EMP_ATTENDANCEE (EMP_ID, DATE_IN ,DATE_OUT ,TIME_IN ,TIME_OUT)
VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_IN
NULL,
TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_IN
NULL ); -- TIME_OUT
SELECT COUNT(employeeid )
INTO V_COUNT
FROM ACCESSLOG
WHERE employeeid =:NEW.employeeid
AND LOGDATE =:NEW.LOGDATE
AND LOGTIME =:NEW.LOGTIME
AND INOUT ='IN';
IF V_COUNT > 0 THEN
INSERT INTO ATT_INCOMPLETE ( EMP_ID , ATT_DATE , ATT_TIME , ATT_FLAG)
VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_IN
TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_IN
1); -- check in
END IF;
ELSIF :NEW.INOUT = 'OUT' THEN
UPDATE EMP_ATTENDANCEE
SET DATE_OUT = TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_OUT,
TIME_OUT = TO_DATE(:NEW.LOGTIME,'HH24:MI:SS') -- TIME_OUT
WHERE EMP_ID = TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
AND DATE_IN = (SELECT MAX (DATE_IN )
FROM EMP_ATTENDANCEE
WHERE EMP_ID = EMP_ID
AND DATE_OUT IS NULL
AND TIME_OUT IS NULL ) ;
SELECT COUNT(employeeid )
INTO V_COUNT
FROM ACCESSLOG
WHERE employeeid =:NEW.employeeid
AND LOGDATE =:NEW.LOGDATE
AND LOGTIME =:NEW.LOGTIME
AND INOUT ='OUT';
IF V_COUNT > 0 THEN
INSERT INTO ATT_INCOMPLETE ( EMP_ID , ATT_DATE , ATT_TIME , ATT_FLAG)
VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_IN
TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_IN
0); -- check in
END IF;
END IF;
EXCEPTION
WHEN OTHERS THEN RAISE;
END EMP_ATTENDANCEE_MONA ;The above Trigger generates the following error:
ORA-04091: table ASSIUT.ACCESSLOG is mutating, trigger/function may not see it
ORA-06512: at "ASSIUT.EMP_ATTENDANCEE_MONA'", line 65
ORA-04088: error during execution of trigger 'ASSIUT.EMP_ATTENDANCEE_MONA'i want an easy and a straight forward solution to this problem which occured on selecting or manipulating from the same table i triggered it.
Best regards,
Abdetu..Create a package
CREATE OR REPLACE PACKAGE PK_TRIGGER IS
PROCEDURE PR_BS;
PROCEDURE PR_ARIU(i_vcType IN TABLE.COLUM%TYPE, i_nEmpId TABLE.COLUM%TYPE, i_vcLogDate IN TABLE.COLUMN%TYPE, i_vcLogTime IN TABLE.COLUMN%TYPE);
PROCEDURE PR_AS;
END;
CREATE OR REPLACE PACKAGE BODY IS
TYPE tData IS RECORD (
vcType TABLE.COLUMN%TYPE,
nEmpid TABLE.COLUMN%TYPE,
vcLogDate TABLE.COLUMN%TYPE,
vcLogTime TABLE.COLUMN%TYPE
TYPE tDataList IS TABLE OF tData INDEX BY BINARY_INTEGER;
lData tData;
PROCEDURE PR_BS IS
BEGIN
lData.DELETE;
END;
PROCEDURE PR_ARIU(i_vcType IN TABLE.COLUM%TYPE, i_nEmpId TABLE.COLUM%TYPE, i_vcLogDate IN TABLE.COLUMN%TYPE, i_vcLogTime IN TABLE.COLUMN%TYPE) IS
iPos PLS_INTEGER:=lData.COUNT+1;
BEGIN
lData(iPos).vcType:=i_vcType;
lData(iPos).nEmpId:=i_nEmpId;
lData(iPos).vcLogDate:=i_vcLogDate;
lData(iPos).vcLogTime:=i_vcLogTime;
END;
PROCEDURE PR_AS IS
CURSOR crCheck(i_nIdentnum IN NUMBER) IS
SELECT 1
FROM <YOURTABLE> A,
<YOURTABLE> B
WHERE A.IDEN_NUM=B.IDENT_NUM
AND ( A.BEGIN_DATE BETWEEN B.BEGIN_DATE AND B.END_DATE
OR A.END_DATE BETWEEN B.BEGIN_DATE AND B.END_DATE
iPos PLS_INTEGER;
nDummy NUMBER;
BEGIN
iPos:=lData.FIRST;
LOOP
EXIT WHEN iPos IS NULL;
-- Do whatever you want with the data in the record
-- Process next record
iPos:=lIds.NEXT(iPos);
END LOOP;
lIds.DELETE;
END;
END;replace TABLE.COLUM%TYPE with appropiate table and column
Now create a
- Before Statement trigger on your table calling PK_TRIGGER.PR_BS;
- After Insert on Update for each row Trigger calling PK_TRIGGER.PR_ARIU(...values...);
- After Statement trigger on your table calling PK_TRIGGER.PR_AS;
Hope the code compiles for i have no database at hand.
Andreas -
Post query trigger problem in master detail oracle forms
Hello experts,
I am new in oracle forms n using Fission middleware 10g with oracle forms 11g at windows 7 platform.
I have made a master detail form using a tab canvas.There is a database column STUDENTID and it is in my student tab with a TBL_STUDENTENTRY data block.Now I Have an another tab named previous_education with TBL_STUDENT_PREVIOU_EDU datablock here there is also a database column STUDENTID and corresponding field in my previous_education TAB under TBL_STUDENT_PREVIOU_EDU datablock.Now i want to add a display item to show student name corresponding to STUDENTID.For this I have tried to make a select query in TBL_STUDENT_PREVIOU_EDU data block POPST_QUERY TRIGGER.
begin
select STUDENTNAME into :TBL_STUDENT_PREVIOU_EDU.STD_NM from TBL_STUDENTENTRY where STUDENTID=:TBL_STUDENTENTRY.STUDENTID;
end;
But, This trigger is not fired at runtime,Please suggest me what is going wrong and give me the solution.
Thank You
AADITYA.http://www.club-oracle.com/forums/post_query-problem-in-oracle-forms-t9751/#post23794 , This is the link at where I have tried to show my problem with the help of an image,Please get the link:
thanx
regards Aaditya. -
Trigger Problem, need help in 8i
SQL> Create table a (sno char(3), kkk varchar2(30));
SQL> Create or replace trigger T$a before insert on a
for each row
begin
if :new.sno = 'FFF' then select nvl(max(sno),0)+1 into :new.sno from a;
end;
SQL> insert into a select 'FFF', cont_no from gcmis.cont_rent;
insert into a select 'FFF', cont_no from gcmis.cont_rent
ERROR at line 1:
ORA-04091: table TR.A is mutating, trigger/function may not see it
ORA-06512: at "TR.T$A", line 2
ORA-04088: error during execution of trigger 'TR.T$A'
Why & How?It happens because you read the table that was in the middle of being modified by your trigger...
The only way to proceed is to rewrite your statement so it does not read the table.
For example, you can store the maxvalue of your field in another table...
But don't forget that if sno is a unique key, you'll probably have problems when working with a mutli-users app...
SQL> Create table a (sno char(3), kkk varchar2(30));
SQL> Create or replace trigger T$a before insert on a
for each row
begin
if :new.sno = 'FFF' then select nvl(max(sno),0)+1 into :new.sno from a;
end;
SQL> insert into a select 'FFF', cont_no from gcmis.cont_rent;
insert into a select 'FFF', cont_no from gcmis.cont_rent
ERROR at line 1:
ORA-04091: table TR.A is mutating, trigger/function may not see it
ORA-06512: at "TR.T$A", line 2
ORA-04088: error during execution of trigger 'TR.T$A'
Why & How? -
Post-trigger problem in master detail form.
I have designed a master detail form having two data blocks.
in detail data block there is a post-query.
when i tried delete one record in master block
an error occurred ie
'frm-40654. Record is updated by another user
re-query to see changes'.
in detail block there are 3 non database items.
when i delete the post-query trigger the record is deleting properly.but the post-query trigger is also needed to display the non database item values. please give me a solution to tackle this problem.Hi,
Even though yout items are non-database items, when you assign a value to them forms sets the block status to "CHANGED".
Add the following lines add the end of your post-query trigger to reset the block status to "QUERY"
set_record_property (GET_BLOCK_PROPERTY('YOUR_BLOCK_NAME',CURRENT_RECORD)
,name_in('system.cursor_block')
,STATUS
,QUERY_STATUS
Hope this helps,
Hugo -
Enterprise Manager 10g & trigger problem
Hi.
Trying to create a trigger using Enterprise manager 10g WEB Console and trigger creating "wizard" without success.
Example: I've added a simple trigger using SQL+ (this works ockey):
CREATE OR REPLACE TRIGGER "SRECKO".TESTNA_TRIG BEFORE
INSERT ON "SRECKO"."TESTNA" REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW begin
select testna_seq.nextval into :new.kljuc from dual;
end;
If I use Enterprise's Manager feature and I construct this trigger with (General/Event/Advanced) tabs it just doesn't work. I allways get the same SQL Error (missing IN or OUT parameters -> PreparedStatement bug ???).
Has anybody had any similar experiences ?
matev¾I am having the same problem. Unfortunately, it looks like no one else is or no one else has an answer. I will check back again later. Right now I am going to try and google and answer. Hope someone responds here.
-
I have problem with post-change trigger, i'm using Forms 10g
I have two block, one is database block and the other is non-database block for example A is Nondatabase block and B is Database block, I have written commit_form built-in in Key-Next-Item of a item in B(database) block. When it is getting executed commit_form built-in firing the post-change trigger of a item in A(Non-database) block. I dont know why it is firing and I dont want the post-change trigger to fire (we are not assigning any value to that item in A block during commit_form).
Can anybody help me on this..
Regards
Radhawhen you issue a commit_form, forms will validate all items in all blocks which re not valid at that moment. This also occurs for non-database-block.
The question is why is the item not valid ? Are you putting something in it in some other trigger? If so, you could explicitly set the itemstate to valid with a
SET_ITEM_PROPERTY('BLOCK.ITEM', ITEM_IS_VALID, PROPETY_TRUE);btw.. you should not use the POST-CHANGE-trigger for validations etc. its better to use the WHEN-VALIDATE-ITEM-trigger. -
Trigger problem on Sql Server with linked server to Oracle
Hi All,
I have a simple insert trigger on Sql Server 2005, it uses linked server to Oracle.
like that ;
USE [YTM08]
GO
SET QUOTED_IDENTIFIER ON
GO
ANSI_NULLS ON
go
ANSI_WARNINGS ON
CEATE TRIGGER [dbo].[YTM_TBLSTSABIT_I]
ON [dbo].[TBLSTSABIT] FOR INSERT
AS
BEGIN
INSERT INTO YTM_ORACLE..SECTOR.STOCKS
stock_name,
stock_code,
insert_date
SELECT
SBT.STOCKNAME,
SBT.STOCKCODE,
GETDATE()
FROM INSERTED SBT
END
The YTM_ORACLE is a linked server and it's provider is OraOLEDB.Oracle.
Trigger does not works for that linked server but other triggers for local
sql server works fine...
I get this error from sql server
'Heterogeneous queries require the ANSI_NULLS and
ANSI_WARNINGS options to be set for the connection. This ensures consistent query semantics. Enable these options and then reissue your query.'
Does someone know how to solve this issue the right way?
Thanks in advance.
Thanks !
AdamHi Lars,
Thanks for the data. I've already read this note and configure all this parameters. But when I'm executing the Create Source System in the BI system the process dies.
If I look into the logs I see this:
M call semaphore clean-up function ...
M ***LOG Q0E=> DpSigGenHandler, Exception (c06d007e) [dpnttool.c 432]
That's the reason why I start guessing about other possible problem.
Regards -
DB Trigger Problem??
Hi ,
I have one problem :
By using database trigger on EMP table I have to update the salary of all the subordinates by 10% if their Manager's Salary is incremented by 5%.
I did it by using a package -that contains PL/SQL Table to store the Manager's Emp No those got increment and their old & new Salary.
Before Update Trigger(Row-Level Trigger) to assign the values in the PL/SQL table. and
After Update(statement Level Trigger)-That reads the manager's empno,old salary & new salary from PL/SQL table and update the EMP table for their Subordinates.
But It gives me the Recursive SQl error.
Pls Help Me ASAP
Regards.
SuneelThere is a good reason for this behaviour. You are trying to automate something that probably shouldn't be automated. Consider:
SELECT * FROM my_emp
ID JOB MGR_FLAG MGR SAL
1 PRESIDENT Y 5000
2 SALESMAN Y 1 2500
3 GRUNT N 2 1400If I issue the following SQL :
UPDATE my_emp
SET sal = sal*1.05
WHERE mgr_flag = 'Y'
/ what should happen? Well, employees 1 and 2 should get a 5% pay rise because they are managers. And employee 3 gets a 10% pay rise, because her manager got 5%. So far so cool. But hang on a moment, employee 2 is managed by employee 1 so, as employee 1 got a 5% pay rise, employee 2 is entitled to a 10% pay rise.
Now, which order do these things get processed in? Because that might make a difference. As it happens, ((2500 * 1.05) * 1.10) = 2887.5 whereas ((2500 * 1.10) * 1.05) = 2887.5. So it doesn't make a difference, in this case.
But Oracle doesn't know that. With a more complicated algorithm e.g.
IF sal < 2700
THEN sal := sal+100;
ELSE sal := sal * 1.05;
END IF;the order the rows are processed in will make a difference. And because it is impossible to forecast beforehand in which order rows will get processed Oracle baulks. It only allows SQL which has predictable results.
Furthermore, the logic is dubious. Is it right for employee 2 to receive two pay rises? Is it right for employee 3 to receive two pay rises as well?
Sure, using AUTONOMOUS TRANSACTION will suppress the error message. But the logic of the design remains flawed. I hope you now understand why this is not a good idea.
Cheers, APC -
hi,
I am using Oracle 9i Forms on windows 2000 Server.
My Form [32 bit] Builder Version is : 9.0.2.7.0
I am facing a problem using the WHEN-MOUSE-LEAVE Trigger.
I have applied this trigger on an ITEM in a DATA BLOCK but the Trigger is not fired when i leave the item using the mouse.
Can any one guide me, as i may be missing something important.
Thanks.
Samir Farooq.Are you running on the web ? Mouse movement triggers are disabled on web forms as they generate too much network traffic.
-
BAPI inside WF event trigger problem
Hi Guys,
Here's my problem:
I'm triggering a WF from the Business objects BUS2032, event CHANGED (for sales orders). But the first step in the workflow is to block the order for delivery, so I'm using the BAPI BAPI_SALESORDER_CHANGE to modify the field delivery block of that sales order.
The problem is that when the BAPI is executed, the event CHANGED from the BO BUS2032 is triggered, so the WF is triggered again, and so on...it's like a loop.
So my question is, is there a way to modify the sales order inside the WF without triggering any event inside the WF?
Thanks!Hi MatiasAZ,
Change standard code to not trigger the event is not recommended.
Alternatively,You can put a check in your workflow to complete itself if there is another workflow is running for the same sales order.
Or you can also put filter function module on the event linkage via transaction SWETYPV not to trigger the event if there is a workflow running for that sales order.
Transaction SWI6 can tell you that any workflow with specific object is running.
Chaiphon -
Photoshop rollover in Lightbox Widget Trigger Problem
Hi all
I've got a lovely photoshop button with a nice rollover effect and it looks great. I've been trying to use it in the trigger of a Lightbox Widget as per the instruction in this thread:
http://forums.adobe.com/message/4768861#4768861
The problem is that the rollover isn't triggered when rolled over. The rollover state of the trigger changes but the PSD doesn't.
Can anyone help?You seem to have missed something there.
Please check the result of following the steps in that forum post: http://testpsmuse.businesscatalyst.com/index.html
The third trigger is the one that contains the Photoshop Button. Could you confirm that you imported the PSD using File > Place Photoshop Button... and not File > Place...
Cheers,
Vikas -
Adf template partial trigger problem
Hi,
With a button in the template want to change text field in the page (created with this template)
Partial trigger is okay but old calculated values assign to text field.
Normally, the calculated value assign text field but assign old calculated value
When button in the page, assigned the new calculated values
How I can solved tihs problem?
help me please..I guess I am not clear.. could you try again to describe the issue?
Amit -
Lexical & beforereport trigger problem
Using BI Publisher 10.1.3.2. Trying to get the lexical to work for the sql statement where clause having problems. My beforereport trigger is supposed to set the value of the lexical &g_where_one_up. To keep it simple, the where clause should be "where 1=1". Once I get this working, then I can use parameters, etc.
But when I run the report, I get the following error message: ORA-00933: SQL command not properly ended.
Not sure what I am missing. I don't know if there is a way to view how BIP is building the sql.
Appreciate your help. Must be something simple.
Todd
The Data Template is:
<dataTemplate name="ROW" description="Accept Letter" dataSourceRef="SIS_QA" defaultPackage="SZRLETR_BIP">
<properties>
<property name="debug_mode" value="on"/>
</properties>
<parameters/>
<dataQuery>
<sqlStatement name="ACC">
<![CDATA[select * from szvletr &g_where_one_up ]]></sqlStatement>
</dataQuery>
<dataTrigger name="beforeReport" source="szrletr_bip.f_set_bip_where('ACC','LETTER')"/>
<dataStructure>
<group name="ROW" source="ACC">
<element name="ACT" value="ACT"/>
<element name="ZIP5" value="ZIP5"/>
</group>
</dataStructure>
</dataTemplate>
Package Spec:
CREATE OR REPLACE PACKAGE ithaca.szrletr_bip
AS
FUNCTION f_set_bip_where (
p_letter_code IN VARCHAR2
,p_component_code IN VARCHAR2
RETURN BOOLEAN;
END szrletr_bip;
CREATE OR REPLACE PACKAGE BODY ithaca.szrletr_bip
AS
g_where_one_up VARCHAR2 (100);
FUNCTION f_set_bip_where (
p_letter_code IN VARCHAR2
,p_component_code IN VARCHAR2
RETURN BOOLEAN
IS
v_one_up VARCHAR2(100);
BEGIN
g_where_one_up := 'where 1=1';
RETURN TRUE;
EXCEPTION
WHEN OTHERS
THEN
END f_set_bip_where;
END szrletr_bip;Ike,
I really appreciate your suggestions. But this also did not help and resulted in same error ORA-00920: invalid relational operator.
Todd
The revised package spec is:
CREATE OR REPLACE PACKAGE ithaca.szrletr_bip
AS
g_where_one_up VARCHAR2 (100);
FUNCTION f_set_bip_where (
p_letter_code IN VARCHAR2
,p_component_code IN VARCHAR2
RETURN BOOLEAN;
END szrletr_bip;
The revised package body is:
CREATE OR REPLACE PACKAGE BODY ITHACA.szrletr_bip
AS
FUNCTION f_set_bip_where (
p_letter_code IN VARCHAR2
,p_component_code IN VARCHAR2
RETURN BOOLEAN
IS
BEGIN
g_where_one_up := ' 1 = 1';
RETURN TRUE;
END f_set_bip_where;
END szrletr_bip; -
BFFA0020; Trigger problem?
I am using labview to acquire a waveform generated by a function generator. I connect the function generator to the Tektroniks TDS 784D scope and connect the scope via GPIB to my computer. Somehow I cannot acquire the waveform. The error that I get is:
Tktds7x4 Configure Channel.vi<ERR>
Driver Status: (Hex 0xBFFA0020) Unknown channel or repeated capability name.
Secondary Error: (Hex 0xBFFC0006) Parameter 6 out of range, or error occurred while setting Parameter 6.
Elaboration: Probe Attenuation
I have no idea how I can solve this error/problem. I know that it goes wrong in the triggering but it should have a trigger.
The program I use worked before, but then I was using a GPIB to USB connector.
Attached I send the block diagram of the program I use.
Hope that someone can help me.
Attachments:
Lbvw Block diagram.PNG 71 KBIt sounds like there is a configuration setting mistake, as the driver is giving the error. It sounds like the probe value in your control is not in the range of accepted values.
Which version of LabVIEW are you using? I'm using LabVIEW 2011 SP1 and when I installed the driver for your scope, it installed three example VI's:
"TKTDS 7XX Getting Started.vi"
"TKTDS 7XX Application Function.vi"
"TKTDS 7XX Application Statistics.vi"
Try running those examples and see if the error still occurs. You could also try updating the scope driver, if its not the latest version.
Product Support Engineer
National Instruments
Maybe you are looking for
-
How to install adobe #11 flashplayer
how to insatll adobe #11flashplayer
-
Link to download Text to Speech for Captivate 4
I have Captivate 4 and would like to download Text to speech but I can't find the link on the website. Could someone help me figure this out? Thank you, Celine
-
Maverick worked great, then suddenly SLOW after installed WebRoot virus software
When I first upgraded to Mavericks my system was super fast! Then I downloaded a trial version of WebRoot security software & then full version. Then started to have the screen freeze (sometimes seemed to be associated with the mouse cursor and some
-
My G5 died a few weeks ago but luckily all my music was saved via Time machine. I imported it back into iTunes but it didn't have info such as play count, dated added. My ipod still has all that info on it as it was was synced with my old G5. If I hi
-
What is the logical use of defining Dimension Object Relationships in DBI?
Hi! I am reading the Oracle Daily Business Intelligence Implementation Guide and as I am following the guide on how to extend DBI, I saw a section which discusses how to create dimension object relationships. Until now, I could not fully realize what