FGEN script abort via trigger
I am currently employing NI-FGEN 2.9.5 and creating an output waveform script for my PXIe-5451 ARB. The script is shown below. What I want to do is change the "Repeat Forever" to a counted repeat or a repeat until or a break on trigger, but all of these issue scripting errors. I've read the new FGEN 14.0 release notes, but nothing is mentioned with regard to changes in the scripting language. Note that I'm currently using the hardware script triggers 0,1,2 so I could use hardware trigger #3 or employ a software trigger. I'm unaware of other options.
Thanks.
script scriptName
generate waveform0
wait 24
repeat forever
wait 24
if scripttrigger1
wait until scripttrigger0
generate wfmA
else
wait until scripttrigger0
generate wfmB
end if
wait until scripttrigger0
generate wfmC
end repeat
end script
The repeat until issues error -1074116598
Possible reason: "If-Else" blocks are not allowed in "Repeat Until" loops.
The repeat on fixed count issues error -1074116599
Possible reason: "If-Else" blocks are not allowed in "Finite Repeat" loops
And the break issues error -201218
Possible reason: "If-Else" block not allowed in "break" block
What options exist?
Similar Messages
-
Trying to access the java script files via jar file in WEB SERVER
hi all,
I am trying to access the java script files via jar file ,which is present in Apache webserver in order to minimise the number of hits to app server.some thing like cache ...
in jsp the code goes like this...
<script type="text/javascript" archive="http://localhost:14000/dojo.jar!" src="dojo.jar/parser.js" " ></script>{code}
But i am not able to access the js file which is put in jar file present in the webserver.Hi,
You can use DWR (Direct Web remoting) for that. It is easy AJAX for java. ou can directly call the java script function from java class and also java class from javaScripts..
Regards,
Hardik -
How to display the status of script sent via fax?
Hi Experts,
I am beginner in ABAP....I am sending a script(complaint) via fax to the user who posts the complaints. But is there any way that I can display whether the fax was succesfully sent/failed.
The applications is a module pool program which in turn call an executable program where we have the logic for the form to be sent via fax.The report of this fax is saved in the SAP outbox but we want to display it to the user as well.
Thanks in advance.....Hua,
I have attached an example in which a front panel boolean indicator is toggled in the subvi. Also, a front panel stop button is used to stop the loop execution in the subvi. References are passed to the subvi instead of the actual control values.
Without seeing your code I'm not sure what was going on with the globals, but you had to have a data dependency somewhere which was keeping the code from running until after the execution of the subvi. The code must be totally independent of the subvi in order to run. Also, in order for the update to work it would have to be operating in a loop.
Attachments:
Main.vi 13 KB
subvi.vi 20 KB -
Do I run a shell script (bsh) via PL/SQL stored procedure?
Hello guys,
Do I run a shell script (bsh) via PL/SQL stored procedure?
For example:
procedure X is
(variables)
begin
-- Read file data
vFileHandle := utl_file.fopen('/mnt/novell/', 'file.txt','r');
exception
when 'INVALID READ FILE' then
(I've to try running script to mount a Novell partition.);
end;
I've to installed Oracle 9.0.1 on Suse Linux.
Please, any ideas or hints ...
Thx and regards.You might be able to us the HOST command, I think you'd have to run it via dbms_sql, check this page for more details, not sure if it'll be of help but its worth a try..
http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/server.817/a82950/ch8.htm
Cheers
Rob -
Submitting multiple job on teh same table via trigger
Hi All,
I have a trigger that run multiple jobs using dbms_job on the same table. I am trying to refresh two materialized views complete via dbms_job.
Issue is when data is inserted into NET_CAB table , the trigger kicks off the bothe procedures but only the first materialized view is refreshed and not the other one.
Attached is the trigger, the procedure and materialized view
<pre>
create or replace
TRIGGER NET_CAB_TRG
AFTER INSERT OR UPDATE OR DELETE ON NET_CAB
DECLARE
pbl NUMBER;
pbl1 number;
BEGIN
SYS.DBMS_JOB.SUBMIT( JOB => pbl,what => 'P_CAB_PROC;' ) ;
SYS.DBMS_JOB.SUBMIT( JOB => pbl1,what => 'P_CABAS_PROC;') ;
END;
</pre>
<pre>
create or replace
procedure P_CAB_PROC
is
BEGIN
dbms_mview.REFRESH('P_CAB','C');
COMMIT;
END;
</pre>
<pre>
create or replace
procedure P_CABAS_PROC
is
BEGIN
dbms_mview.REFRESH('P_CABAS','C');
COMMIT;
END;
</pre>
<pre>
CREATE MATERIALIZED VIEW P_CAB
BUILD DEFERRED
USING INDEX
REFRESH COMPLETE ON DEMAND
USING DEFAULT LOCAL ROLLBACK SEGMENT
DISABLE QUERY REWRITE
AS
SELECT
seq_nextval AS ID,
NAME,
SEGMENT_ID,
reproject(geometry) AS GEOMETRY
FROM NET_CAB
where sdo_geom.validate_geometry(geometry,0.005) = 'TRUE'
</pre>
<pre>
CREATE MATERIALIZED VIEW P_CABAS
BUILD DEFERRED
USING INDEX
REFRESH COMPLETE ON DEMAND
USING DEFAULT LOCAL ROLLBACK SEGMENT
DISABLE QUERY REWRITE
AS
SELECT
seq_nextval AS ID,
NAME,
SEGMENT_ID,
reproject(geometry) AS GEOMETRY
FROM NET_CAB
where sdo_geom.validate_geometry(geometry,0.005) = 'TRUE'
AND cis > 4;
</pre>
Edited by: CrackerJack on May 22, 2012 8:58 PMI can run many procedures in a job:
BEGIN
SYS.DBMS_SCHEDULER.CREATE_JOB
job_name => 'JOB_REPORT_FPD'
,start_date => TO_TIMESTAMP_TZ('2012/05/31 23:30:00.000000 +07:00','yyyy/mm/dd hh24:mi:ss.ff tzh:tzm')
,repeat_interval => 'FREQ=MONTHLY;BYMONTHDAY=-1'
,end_date => NULL
,job_class => 'DEFAULT_JOB_CLASS'
,job_type => 'PLSQL_BLOCK'
,job_action => '
DECLARE
BEGIN
ibox_file.fpd_nbot_report;
ibox_file.fpd_nbot_report(''NBOT'');
ibox_file.order_report;
COMMIT;
EXCEPTION
WHEN OTHERS THEN ROLLBACK;
END;
,comments => 'USED FOR REPORTING FPD'
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
( name => 'JOB_REPORT_FPD'
,attribute => 'RESTARTABLE'
,value => FALSE);
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
( name => 'JOB_REPORT_FPD'
,attribute => 'LOGGING_LEVEL'
,value => SYS.DBMS_SCHEDULER.LOGGING_RUNS);
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
( name => 'JOB_REPORT_FPD'
,attribute => 'MAX_FAILURES');
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
( name => 'JOB_REPORT_FPD'
,attribute => 'MAX_RUNS');
BEGIN
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
( name => 'JOB_REPORT_FPD'
,attribute => 'STOP_ON_WINDOW_CLOSE'
,value => FALSE);
EXCEPTION
-- could fail if program is of type EXECUTABLE...
WHEN OTHERS THEN
NULL;
END;
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
( name => 'JOB_REPORT_FPD'
,attribute => 'JOB_PRIORITY'
,value => 3);
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
( name => 'JOB_REPORT_FPD'
,attribute => 'SCHEDULE_LIMIT');
SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
( name => 'JOB_REPORT_FPD'
,attribute => 'AUTO_DROP'
,value => FALSE);
SYS.DBMS_SCHEDULER.ENABLE
(name => 'JOB_REPORT_FPD');
END;
/ -
Please trace what is wrong in TRIGGER script , doesnt create trigger.
Hi Oracle Gurus,
Please help me, in finding what is wrong in trigger statement. It doesn not create trigger, instead it displays line numbers..like 1 2 3 4 ....after pressing the enter key,
I am attaching the full script, where it alters table, then creates new table, the creates sequence..lastly it fails in creating the trigger.
==================================================================================
SQL> ALTER TABLE MOBILE.MOBILE_USER ADD (LAST_LOGIN TIMESTAMP);
Table altered.
SQL> CREATE TABLE "MOBILE"."AUDIT_LOG"
2 3 "AUDIT_LOG_ID" NUMBER(16,0) NOT NULL ENABLE,
4 "DATE_CREATED" TIMESTAMP (6) NOT NULL ENABLE,
5 "AUDIT_TYPE" VARCHAR2(20 BYTE) NOT NULL ENABLE,
6 "AUDIT_DATA" CLOB,
7 CONSTRAINT "AUDIT_LOG_PK" PRIMARY KEY ("AUDIT_LOG_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "SERVICES_DATA" ENABLE
8 )
9 PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
10 11 12 )
TABLESPACE "SERVICES_DATA" LOB
13 14 (
15 "AUDIT_DATA"
16 )
17 STORE AS
18 (
19 TABLESPACE "SERVICES_DATA" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10 NOCACHE LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
20 ) ;
Table created.
SQL> CREATE SEQUENCE "MOBILE"."AUDIT_LOG_SEQ" INCREMENT BY 1 START WITH 1000 CACHE 20 NOCYCLE ;
Sequence created.
SQL> create or replace
TRIGGER "MOBILE"."AUDIT_LOG_TRGR" before
INSERT ON "AUDIT_LOG" FOR EACH row BEGIN IF inserting THEN IF :NEW."AUDIT_LOG_ID" IS NULL THEN
SELECT AUDIT_LOG_SEQ.nextval
INTO :NEW."AUDIT_LOG_ID"
FROM dual;
END IF;
END IF;
END;Ok great..but it gives the same error, we have already checked that AUDIT_LOG does exist.
Is it checking something else..or it shoud be INSERT INTO instead of INSERT ON.
Please help.
create or replace
TRIGGER "MOBILE"."AUDIT_LOG_TRGR" before
INSERT ON "AUDIT_LOG" FOR EACH row BEGIN IF inserting THEN IF :NEW."AUDIT_LOG_ID" IS NULL THEN
SELECT AUDIT_LOG_SEQ.nextval
INTO :NEW."AUDIT_LOG_ID"
FROM dual;
END IF;
END IF;
END; /
INSERT ON "AUDIT_LOG" FOR EACH row BEGIN IF inserting THEN IF :NEW."AUDIT_LOG_ID" IS NULL THEN
ERROR at line 3:
ORA-00942: table or view does not exist -
Executing a shell script from a Trigger
All,
I have to write a script to do the following requirement.
There is a file called BUSINESS_DATE.TXT.
This file get updated once the oracle partition created. In Oracle, Partition will be created every day. There is a seperate script scheduled to take care ORACLE partition creation.
The above file will have only one row. i.e
03092012
If Oracle partition creation job failed, the above file won't be updated.
My requirement is,
I have to check whether the BUSINESS_DATE file is updated today or not. If yes, I will have to move the files from common area to input file directory to process those files.
All file name will amend with current date.
i.e
LIDDIFD03092012.TXT
The key part is to check the BUSINESS_DATE.TXT file is updated properly or not.
We don't know what time the file will get updated. So we are planning to schedule the new script to run for every 15 mins to check whether the file is updated or not
But...I just thougt instead of writing a shell script to do the above one, Why shouldn't I capture the date in a table (New table needs to be created) and use ORACLE TRIGGER to run the shell script to move the files from common area to input file directory to process those files?
My Proposal in ORACLE :
Create table business_date
rep_date varchar(15),
curr_timestamp timestamp
Once the oracle partition created , one row will be inserted into the above table. This adjustment needs to be implemented partition script.
Once this table get record, TRIGGER should call SHELL SCRIPT to move the files from common area to input area.
If I implement ORACLE TRIGGER, The script which will check whether the file got updated or not for 15 mins is not required. Right? Inputs from experts are welcome!>
But...I just thougt instead of writing a shell script to do the above one, Why shouldn't I capture the date in a table (New table needs to be created) and use ORACLE TRIGGER to run the shell script to move the files from common area to input file directory to process those files?
>
Triggers should not be used to do transactional work. There is no COMMIT in a trigger. What happens if the trigger runs the shell script and then a ROLLBACK occurs? You will have run the shell script when it shouldn't run.
Create a stored procedure to run the shell script. Call the stored procedure when the partition is created.
If you were using 11g and interval paritioning you wouldn't need to create the partitions manually. Oracle could create the partitions automatically. -
How To Track Changes to Scripts Made via UCCE AWS
Hi there
Does anyone know how to produce an audit trail/sql query which would display who had made changes to scripts or config, via the aw??
I have a customer who has had unauthourised modifications made to some scripts which have caused operational difficulties and we need to find out how made these changes pronto.
many thanksHi,
yes, there's a database table named Config_Message_Log. It contains all the information that might be useful in such cases: the date and time, the user's login name and what information (more precisely: which database table) has been changed. It must be noted, however, that the "what has been changed" is not stored in a human readable form, you need to extract it using the Log viewer functionality of icmdba tool (which is a friendly GUI alternative/wrapper to the dumpcfg command line tool).
Issue the icmdba command on the command line of your AW machine. Expand Servers > [the server where a Logger resides]. Click [instancename]_sideA (or [instancename]_sideB). From the menu bar, select View > Log. A new window appears. Set the from and to dates to a desired value, then click View. It might take some time while a new window appears, containing the list of changes.
Example output:
[ 610672580481.0, Add, Nov 1 2011 7:49AM ]
PID: 4172
MachineName: AWSA
UserDomain: IPCC
UserName: administrator
ProcessName: conicrList(upcc)
SQLServerUserName: DBO
[ 610672580482.0, Delete, t_Agent_Team_Member, Nov 1 2011 7:49AM ]
[1 of 3]
AgentTeamID: 5000
SkillTargetID: 5138
ChangeStamp: 171
[2 of 3]
AgentTeamID: 5014
SkillTargetID: 5385
ChangeStamp: 83
[3 of 3]
AgentTeamID: 5020
SkillTargetID: 5066
ChangeStamp: 86
This means on 1st November 2011 at 7:49 somebody with the IPCC\administrator login on the AWSA machine removed three agents (with SkillTargetID 5138, 5385 and 5066) from the Agent Team with AgentTeamID 5000.
Script changes are not so easy to explain, however, since each save generates a new version of a script, you'll see a new record in the t_Script table. Feel free to post the output here, I might be able to help you or at least show you the right direction.
It must be noted, however, that the Config_Message_Log table can be truncated (erased) with the icmdba tool too. So if the customer knows this, they might just perform an unauthorized change and then destroy all traces, unfortunately.
G.
P.S.: you can also use the dumpcfg tool from the command line, it's faster - just make sure you read the instructions (do dumpcfg /?) and redirect the output to a text file. -
Help required: Splitting up complex script logic via *LOGIC_BY
Hello experts,
I have a very long and complex logic which I am trying to split up into different sections. I am using *LOGIC_BY within the default logic whereas the ACCOUNT dimension is my trigger. Hence I have created a new property called "LOGIC" for every base level account.
I am using BPC MS 7.0 (release 7.0.110)
Simple example to explain:
ACCOUNT description - LOGIC property
PRICE1 - LOGIC_DEMAND
PRICE2 - LOGIC_DEMAND
AMOUNT1 - LOGIC_DEMAND
AMOUNT2 - LOGIC_DEMAND
REVENUE1 - LOGIC_DUMMY (is calculated via LOGIC_DEMAND by =PRICE1 * AMOUNT1)
REVENUE2 - LOGIC_DUMMY (is calculated via LOGIC_DEMAND by =PRICE2 * AMOUNT2)
REVENUE_PL - LOGIC_DUMMY (is calculated via LOGIC_DEMAND by =REVENUE1 + REVENUE2)
Default logic (default.lgf) just contains the following:
*LOGIC_MODE = 2
*LOGIC_BY = ACCOUNT
Data entry:
PRICE1 = 10
PRICE2 = 20
AMOUNT1 = 10
AMOUNT2 = 20
REVENUE1 (to be calculated/expected) = 100
REVENUE2 (to be calculated/expected) = 400
REVENUE_PL (to be calculated/expected) = 500
Result:
As I am sending data, all revenue accounts are calculated to ZERO.
If I change my default logic manually to
*INCLUDE LOGIC_DEMAND
then everything works. REVENUE1 and REVENUE2 are calculated to 100 / 400, and REVENUE_PL is 500.
What did I do wrong? Can anybody help? If there is someone who can post a short example, I would be very grateful.
Best regards,
StefanHi BI,
hmm i guess there is no tools to debug line by line is SAP BPC.. guys is there any third party software that can do this??
Thanks, hope helps -
Problem with Place call in a script with HTTP trigger
Hi!
I'm trying to develop a sample script, associated to an application that has an HTTP trigger. I'm working with UCCX Premium 8.5.1
The trigger is working OK, but the place call output is allways "unsuccessful". The number to call and the redirect number are extensions of the same IPT platform.
Below you will find print-screen of the script. Besides, I'm attaching the .aef file.
Any help would be appreciated. Thanks in advance.
Roy.The value in your "Call Control Group" must match the "Group ID" in your CM Telephony Call Control Group Configuration
This is from my lab system so the "AgentsLoggedIn" variable would need to contain 1 or 3. You are telling the script which CTI port group to make the call with. You have a 0 in your AgentsLoggedIn so do you have a Group ID of 0?
Your CTI group must be able to make the call so must have the correct partition/Calling Search Space
Graham -
Change indicator via trigger (Date/Timestamp)
I have set up triggers on all my tables to update the 'TIME_STAMP' field whenever a change is made to the row. It works flawlessly in sql*plus as well as in TOAD. However,if I insert a record using a ADF client I can view the record and the trigger provided value using sql*plus. If I update it using the ADF client the data becomes corrupted. I get a "ORA-01877: string is too long for internal buffer" when trying to view it with sql*plus or TOAD and if I dump() the column I get "Typ=180 Len=11: 0,0,0,0,0,0,0,0,0,0,0" (note: this is a dump when I had reset the datatype in my table and entity to a DATE).
The xml file for my entity follows:
Any Ideas?????
<?xml version='1.0' encoding='windows-1252' ?>
<!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
<Entity
Name="WbsUsers"
DBObjectType="synonym"
DBObjectName="WBS_USERS"
AliasName="WbsUsers"
BindingStyle="Oracle"
UseGlueCode="false"
RowClass="wbs.model.entity.WbsUsersImpl"
CollClass="wbs.framework.entity.EntityObjectCollImpl"
MsgBundleClass="wbs.model.entity.common.WbsUsersImplMsgBundle" >
<DesignTime>
<Attr Name="_isCodegen" Value="true" />
<Attr Name="_version" Value="10.1.2.17.96" />
<Attr Name="_codeGenFlag2" Value="Init|Access|Msg" />
<Attr Name="_superClass" Value="wbs.framework.entity.EntityObjectImpl" />
<Attr Name="_collSuperClass" Value="wbs.framework.entity.EntityObjectCollImpl" />
<AttrArray Name="_publishEvents">
</AttrArray>
</DesignTime>
<Attribute
Name="Id"
IsUpdateable="false"
Precision="32"
ColumnName="ID"
Type="java.lang.String"
ColumnType="CHAR"
SQLType="CHAR"
TableName="WBS_USERS"
PrimaryKey="true"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="32" />
</DesignTime>
</Attribute>
<Attribute
Name="Username"
IsNotNull="true"
Precision="30"
ColumnName="USERNAME"
Type="java.lang.String"
ColumnType="VARCHAR2"
SQLType="VARCHAR"
TableName="WBS_USERS"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="30" />
</DesignTime>
</Attribute>
<Attribute
Name="Fname"
IsNotNull="true"
Precision="50"
ColumnName="FNAME"
Type="java.lang.String"
ColumnType="VARCHAR2"
SQLType="VARCHAR"
TableName="WBS_USERS"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="50" />
</DesignTime>
</Attribute>
<Attribute
Name="Lname"
IsNotNull="true"
Precision="50"
ColumnName="LNAME"
Type="java.lang.String"
ColumnType="VARCHAR2"
SQLType="VARCHAR"
TableName="WBS_USERS"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="50" />
</DesignTime>
</Attribute>
<Attribute
Name="WbsRoleId"
IsNotNull="true"
Precision="32"
ColumnName="WBS_ROLE_ID"
Type="java.lang.String"
ColumnType="CHAR"
SQLType="CHAR"
TableName="WBS_USERS"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="32" />
</DesignTime>
</Attribute>
<Attribute
Name="Email"
IsNotNull="true"
Precision="255"
ColumnName="EMAIL"
Domain="wbs.model.entity.emailDomain"
Type="wbs.model.entity.common.emailDomain"
ColumnType="VARCHAR2"
SQLType="VARCHAR"
TableName="WBS_USERS"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="100" />
</DesignTime>
</Attribute>
<Attribute
Name="TimeStamp"
IsUpdateable="false"
ColumnName="TIME_STAMP"
Type="oracle.jbo.domain.Date"
ColumnType="DATE"
SQLType="TIMESTAMP"
TableName="WBS_USERS"
ChangeIndicator="true"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="11" />
</DesignTime>
</Attribute>
<AccessorAttribute
Name="WbsRoles"
Association="wbs.model.entity.WbsUserRoleFkAssoc"
AssociationEnd="wbs.model.entity.WbsUserRoleFkAssoc.WbsRoles"
AssociationOtherEnd="wbs.model.entity.WbsUserRoleFkAssoc.WbsUsers"
Type="wbs.model.entity.WbsRolesImpl" >
</AccessorAttribute>
<AccessorAttribute
Name="WbsUserPeriods"
Association="wbs.model.entity.WbsUpUFkAssoc"
AssociationEnd="wbs.model.entity.WbsUpUFkAssoc.WbsUserPeriods"
AssociationOtherEnd="wbs.model.entity.WbsUpUFkAssoc.WbsUsers"
Type="oracle.jbo.RowIterator"
IsUpdateable="false" >
</AccessorAttribute>
<Key
Name="SysC0012735" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Id" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012735" />
<Attr Name="_checkCondition" Value=""ID" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012736" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Username" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012736" />
<Attr Name="_checkCondition" Value=""USERNAME" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012737" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Fname" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012737" />
<Attr Name="_checkCondition" Value=""FNAME" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012738" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Lname" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012738" />
<Attr Name="_checkCondition" Value=""LNAME" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012739" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.WbsRoleId" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012739" />
<Attr Name="_checkCondition" Value=""WBS_ROLE_ID" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012740" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Email" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012740" />
<Attr Name="_checkCondition" Value=""EMAIL" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012741" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.TimeStamp" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012741" />
<Attr Name="_checkCondition" Value=""TIME_STAMP" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="WbsUsersEmailCheck" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Email" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="WBS_USERS_EMAIL_CHECK" />
<Attr Name="_checkCondition" Value=""EMAIL" IS NOT NULL" />
<Attr Name="_isNotNull" Value="true" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="WbsUsersPk" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Id" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="WBS_USERS_PK" />
<Attr Name="_isPrimary" Value="true" />
<Attr Name="_isDeferrableConstraint" Value="true" />
<Attr Name="_isInitiallyDeferredConstraint" Value="true" />
</DesignTime>
</Key>
<Key
Name="WbsUserRoleFk" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.WbsRoleId" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="WBS_USER_ROLE_FK" />
<Attr Name="_referencedKey" Value="WBS_ROLES_PK" />
<Attr Name="_isForeign" Value="true" />
<Attr Name="_isDeferrableConstraint" Value="true" />
<Attr Name="_isInitiallyDeferredConstraint" Value="true" />
</DesignTime>
</Key>
</Entity>Hi all,
I am a dope. I was having so may problems with the TIMESTAMP datatype in ADF and in TOAD I decided to just go with a DATE datatype for a change indicator. I did all the changes in the build scripts and model but forgot to run the build script so the errors I was getting were based on the old datatype.
BTW, Steve Muench had published a workaround to the issue in October that I found after I did all my changes. (http://radio.weblogs.com/0118231/2004/10/07.html#a394) -
Urgent!!!----Update a field of Long data type via trigger
While it is obvious that it is no way for an Oracle trigger to update a field of a Long data type, is it a feasible way to call a java stored procedure from the trigger to achieve that purpose? If not, can you suggest any good solution to this?
Thanks so much.Scripter -
When you try to do a Set and Put, it is always good to explicitly set the statement's cursor type to something other than forward only, like keyset, and the lock type to something other than read-only. See if that helps...
Scott Richardson
National Instruments -
I want to create a trigger on all dba_tables.
I want to do a select in a trigger but i don't know how to do.
Here are my trigger and my select
CREATE OR REPLACE TRIGGER SIGTASAD.TRG_dba_tables_BEF_INSUPD
BEFORE INSERT OR UPDATE
ON dba_tables
FOR EACH ROW
DECLARE
v_ird_employee_no IRD_EMPLOYEE.ird_employee_no%TYPE;
BEGIN
v_ird_employee_no := PCK_UTIL.get_ird_employee_no( USER );
IF INSERTING THEN
:NEW.enter_user := v_ird_employee_no;
:NEW.enter_date := SYSDATE;
ELSIF UPDATING THEN
:NEW.update_user := v_ird_employee_no;
:NEW.update_date := SYSDATE;
END IF;
END;
Select *
from dba_tables
where owner = 'SIGTASAD'
order by table_name;
ThanksOk
Before I was a system administartor, but our dba was off, and now i assume this function before.
So
we have a new data base
and i created a script to add column in dba_tables.
And here is this script:
select 'ALTER TABLE ',substr(table_name,1,40),' add(enter_user number(6)
,update_user number(6)
,enter_date date
,update_date date); '
from dba_tables
where owner = 'SIGTASAD'
order by table_name;
And i use a script (give me by some one) to create a trigger in main table but one by one; and here is this script:
CREATE OR REPLACE TRIGGER SIGTASAD.TRG_payment_loc_BEF_INSUPD BEFORE INSERT OR UPDATE
ON payment_loc
FOR EACH ROW
DECLARE
v_ird_employee_no IRD_EMPLOYEE.ird_employee_no%TYPE;
BEGIN
v_ird_employee_no := PCK_UTIL.get_ird_employee_no( USER );
IF INSERTING THEN
:NEW.enter_user := v_ird_employee_no;
:NEW.enter_date := SYSDATE;
ELSIF UPDATING THEN
:NEW.update_user := v_ird_employee_no;
:NEW.update_date := SYSDATE;
END IF;
END;
Now after column in all tables of dba_tables, i want to create trigger in all tables of dba_tables.
But i don't how tio do it, i think i explained more now.
thanks -
Email CSQ status script for http trigger
Hello,
I have an email csq and need http trigger to monitor the emails, agents, calls etc
Does anyone have a basic script for it
Please let me know.
Thanks
KadsHi!
Can you please tell us who the initiator and the target for this call would be! You can of course have a UCCX script that initiates the call to a specific destination!
Also, please attach a screenshot of the script! Or at least the relevant part of it!
Thanks!
G! -
Hello,
My question is on Script Applications in
Service Templates:
In VM Templates, in the Application Configuration tab, one can add a Script Application. This can be a PowerShell script, a batch script, etc.
For each Script Application, it is possible (via the Advanced options) to make the
machine reboot when the script exits with one of three
exit codes: 1641, 3010 and 3011.
Problem:
For PowerShell or PS scripts, if I use ‘exit 3010’, the machine should reboot but it doesn’t…
Bad workaround:
Use a batch script which calls the PS script. Then, exit out of the batch script using ‘exit $LASTEXITCODE’. This works. The machine reboots.
I can’t use the workaround. Is there a way to do this using just the PS script?
-Rohan.In fact yes.
You actually want SCVMM to orchestrate the reboot by sending the proper exit code. Otherwise SCVMM gets all weird about things.
It is in the advanced settings for the script and / or command.
You need to make sure that your script tosses the 3011 or 3010 on exit.
I do it with the 3011:
# Exit 3011
[Environment]::Exit(“3011”)
In the XML you will find this:
<vmmst:RebootExitCodeRegex>{1641}|{3010}|{3011}</vmmst:RebootExitCodeRegex>
But you do not want to enable restarting the script on each reboot or you will find yourself in a loop.
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.
Maybe you are looking for
-
In Visual Composer Can we Pass a whole Table to a Bapi
I have a Bapi which takes a table as input and stores the values in SAP-Database. But in Visual Composer i am not able to do it.When i fetching the Bapi into Storyboard its not showing the Input field for passing the table. Is it a limitation of Visu
-
Why Mozilla does not create a website like this: https://www.mozilla.org/en-US/firefox/all/ but with nightly versions? I'm interested on it :D
-
Hi friends, we are having batch split in delivery.Now when we create the invoice we get three line items,one with zero quantity and other two with the batch split quantities. we have tried maintaining the billing relevance as G as well as M for item
-
My iPad set it's applications in French
I just bought an iPad air, and there is a problem with the set up. All the interfaces are in English, but when I open up iTunes or the App Store or Newsstand, it's all in French. I don't really speak much french, so it's a little difficult. Anyone kn
-
P67A GD55 Rev B - Upgrade Bios Question
To be honest, this post supposed to be a private message to Svet, but turned out a newbie like me who just joining the forum is not allowed to send PM...so apology if this questions are being asked so many times already: Dear svet, Really need your h