Run the query with multiple parameters
Dear
Motion code below for the data is of per_all_people_f, who works for only one setting, when I pass 2 parameters, then is to take the last of them fail times two, could you pls advice how it both join in where clause.
================================================================================
--------------------------------control file ----------------------------------
================================================================================
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);
Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
OAApplicationModule am = pageContext.getRootApplicationModule ();
String model = pageContext.getParameter ("ALL");
String pempno = pageContext.getParameter ("paramEmpNo");
String phiredt = pageContext.getParameter ("paramHireDate");
System.out.println ("control controller exucution");
If (pageContext.getParameter ("GetData")! = null)
{
System.out.println ("controller exucution");
Boolean ExecuteQuery = BooleanUtils.getBoolean (false);
[Serializable] parameters = {pempno, phiredt, model, executeQuery};
Class [] paramTypes = {String.class, String.class, String.class, Boolean.class};
am.invokeMethod ("initSummary", parameters, paramTypes);
OAAdvancedTableBean = table
(OAAdvancedTableBean) webBean.findChildRecursive ("ResultsTable");
When a user of handling started looking, we always need to run
the query, so we move on 'false' to queryData().
table.queryData (pageContext, false);
}
}
================================================================================
-Request module file-
================================================================================
public void initSummary (string model,
String ParmEmpNum,
String ParmHireDt,
String created,
String showMyOrders,
Boolean ExecuteQuery)
{
xxEmployeeVOImpl vo = getxxEmployeeVO1();
If (vo is nothing)
{
Tokens [] MessageToken = {new MessageToken ("parameter", "xxEmployeeVO")};
throw new OAException ("AK", "FWK_TBX_OBJECT_NOT_FOUND", chips);
}
vo.initQuery (model, ParmEmpNum, ParmHireDt, executeQuery);
System.out.println ("calling vo...");
}
================================================================================
-xxEmployeeVOImpl-
================================================================================
public void initQuery (String, String ParamEmpNum, String ParmHireDt, Boolean executeQuery model)
{
StringBuffer whereClause = new StringBuffer (100);
Whole CheckWhere;
Vector of parameters = new Vector (3);
setWhereClause (null);
setWhereClauseParams (null);
Integer bindCount = 0;
String WhereClause = null;
If ((ParamEmpNum! = null) & & (!("".)) Equals (ParamEmpNum.Trim ()))
{
setWhereClause (null);
setWhereClauseParams (null);
setWhereClause ("EMPLOYEE_NUMBER =:" + CheckWhere);
setWhereClauseParam(0,ParamEmpNum);
System.out.println ("request" + this.getQuery ());
System.out.println ("ParamEmpNum" + ParamEmpNum);
CheckWhere = CheckWhere ++;
}
If ((ParmHireDt! = null) & & (!("".)) Equals (ParmHireDt.Trim ()))
{
CheckWhere = CheckWhere ++;
If (CheckWhere > 1)
{
setWhereClause (null);
setWhereClauseParams (null);
setWhereClause ("AND START_DATE =:" + CheckWhere);
setWhereClauseParam(0,ParmHireDt);
System.out.println ("request" + this.getQuery ());
}
on the other
{
{setWhereClause (null);
setWhereClauseParams (null);
setWhereClause ("START_DATE =:"+ CheckWhere ");
setWhereClauseParam(0,ParmHireDt);
System.out.println ("request" + this.getQuery ()) ;}
}
System.out.println ("ParamEmpNum" + ParmHireDt);
}
System.out.println ("request" + this.getQuery ());
executeQuery();
Try this:
public void initQuery(String dummy,String ParamEmpNum,String ParmHireDt, Boolean executeQuery) { System.out.println("ParamEmpNum: "+ ParamEmpNum); System.out.println("ParmHireDt : "+ ParmHireDt); setWhereClause(null); setWhereClauseParams(null); String WhereClause = null; int bindCount = 0; HashMap paramMap = new HashMap(); if ( (ParamEmpNum != null) && (!("".equals(ParamEmpNum.trim()))) ) { paramMap.put(bindCount,ParamEmpNum); WhereClause = "EMPLOYEE_NUMBER = :"+ (++bindCount) + " AND "; } if ( (ParmHireDt != null) && (!("".equals(ParmHireDt.trim()))) ) { paramMap.put(bindCount,ParmHireDt); WhereClause = WhereClause + ("START_DATE = :"+ (++bindCount) + " AND "); } if(bindCount > 0) { // Remove the AND at the end WhereClause = WhereClause.substring(0, WhereClause.length()-5); setWhereClause(WhereClause); for(int i = 0; i < bindCount; i ++) { setWhereClauseParam(i,paramMap.get(i)); } } System.out.println("Query "+ this.getQuery()); executeQuery(); }
You may need to change the START_DATE whereclause as below:
WhereClause = WhereClause + ("START_DATE = TO_DATE (:" + (++ bindCount) + ', "MON-DD-YYYY" ") AND" ' ");
Note:-need to specify the correct format.
See you soon
AJ
Tags: Oracle Applications
Similar Questions
-
Run the query in accordance with condition
Oracle 10g version
Hi gurus
I have the following data
Examples of data
SELECT DeptNo FROM scott.emp
UNION ALL
SELECT EmpNo FROM scott.emp
;
Now what I want is I want to execute conditionally of those surveyed, something like below:
If list_item = 'I', then run below
SELECT DeptNo FROM scott.emp
otherwise run below
SELECT EmpNo FROM scott.emp
End if;
------
I want to keep the union all and run the query under the terms...
Set a long tank (max 4000)
L_WHERE_CLAUSE
Use it in your application as a substitution variable by prefixing with &
WHERE & L_WHERE_CLAUSE
Assign the value into a pl/sql block (trigger, formula column)
IF condition THEN
L_WHERE_CLAUSE: = '1 = 1';
ON THE OTHER
L_WHERE_CLAUSE: = '1 = 2';
END IF;
Now, among the options that have been suggested to you and the information you provided, I think the solution of Solomon should be easier. Just refer to the column list_item has a link within your query variable (assuming that this and the query where list_item belongs are related, for example, there is a join between them)
SELECT DeptNo FROM scott.emp, t
WHERE: list_item = 'l '.
UNION ALL
SELECT EmpNo FROM scott.emp, t
WHERE nvl(:list_item,'x')! = « l »
-
Structure of the query with parameters
Hello
Consume the web service, the results in a file xml with complex structures.
The function below the structure of the query
< TemplateName CcResultItems = "CgrInfo_1" >
My question is how to reorganize the query to obtain the results of the structure
< TemplateName CcResultItems = "CgrOwners_4" >
which should return three rows.Kind regards
Kostadincreate or replace
FUNCTION WS_SELECT_XML RETURN VARCHAR2 AS
XML_VAR XMLTYPE: = XMLTYPE)
"" ' < soap envelope: xmlns:soap = 'http://www.w3.org/2003/05/soap-envelope"" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" container = "http://www.w3.org/2001/XMLSchema" >. "
< soap: Header >
"< XmlSoapHeader xmlns ="https://test.wstestx.com/XWS2/ "/>"
< / soap: Header >
< soap: Body >
"< ProcessRequestResponse xmlns ="https://test.wstestx.com/XWS2/">."
< ProcessRequestResult > <! [CDATA [< CcResponse >
< TemplateName CcResultItems = "CgrInfo_1" >
< CcResultItem > < InfoMessage > < / InfoMessage > < IsitTerminated > 0 < / IsitTerminated > < IdObject > 365124 < / IdObject > < sanctuary ObjectlName > < / ObjectlName > < ObjectTaxNumber > 305089321502 < / ObjectTaxNumber > < / CcResultItem >
< / CcResultItems >
< TemplateName CcResultItems = "CgrUnits_2" >
< / CcResultItems >
< TemplateName CcResultItems = "CgrActors_3" >
< CcResultItem > < IdObject > 365124 < / IdObject > < UnitNo > 0 < / UnitNo > < EntityTYPEcode > 1 < / EntityTYPEcode > < EntityTYPEdesc > person < / EntityTYPEdesc > < / CcResultItem >
< / CcResultItems >
< TemplateName CcResultItems = "CgrOwners_4" >
< CcResultItem > < IdObject > 365124 < / IdObject > < EntityTYPEcode > 1 < / EntityTYPEcode > < EntityTYPEdesc > person < / EntityTYPEdesc > < OwnerID > 610697843014 < / OwnerID > < OwnerName > ALEX < / OwnerName > < / CcResultItem >
< CcResultItem > < IdObject > 365124 < / IdObject > < EntityTYPEcode > 1 < / EntityTYPEcode > < EntityTYPEdesc > person < / EntityTYPEdesc > < OwnerID > 840645947005 < / OwnerID > < OwnerName > JOHN < / OwnerName > < / CcResultItem >
< CcResultItem > < IdObject > 365124 < / IdObject > < EntityTYPEcode > 2 < / EntityTYPEcode > < company EntityTYPEdesc > < / EntityTYPEdesc > < OwnerID > 703454 < / OwnerID > < OwnerName > BROWN < / OwnerName > < / CcResultItem >
< / CcResultItems >
< TemplateName CcResultItems = "CgrActivities_5" >
< / CcResultItems >
< TemplateName CcResultItems = "CgrMembership_6" >
< / CcResultItems >
< TemplateName CcResultItems = "CgrFounding_7" >
< CcResultItem > < IdObject > 365124 < / IdObject > < FoundingDate > 2007-08-16 13:53 < / FoundingDate > < Total > 146701.00 < / Total > < / CcResultItem >
< / CcResultItems >
[[< / CcResponse >]] > < / ProcessRequestResult >
< / ProcessRequestResponse >
< / soap: Body >
< / envelope soap: >
');
BEGIN
FOR R IN)
WITH T AS (SELECT (XML_VAR) DOUBLE COLLAR)
SELECT x2.*
FROM XMLTable)
XMLNamespaces)
' http://www.w3.org/2003/05/soap-envelope ' LIKE 'SOAP'
, by default ' https://test.wstestx.com/XWS2/ '
)
, ': soap envelope / soap: Body/ProcessRequestResponse/ProcessRequestResult '
by the way XML_VAR
path of CcResponse clob columns '.'
) x 1
XMLTABLE)
' / CcResponse/CcResultItems.
XMLPARSE PASSAGE (DOCUMENT X 1.) CCRESPONSE)
COLUMNS
TemplateName VARCHAR2 (140) path "@TemplateName"
, IDOBJECT VARCHAR2 (140) PATH "CcResultItem/IdObject.
, PATH of VARCHAR2 (340) OBJECTLNAME ' CcResultItem/ObjectlName '.
, PATH of VARCHAR2 (140) VRSKA 'CcResultItem '.
) X 2
WHERE X 2. TemplateName = "CgrInfo_1."
-WHERE X 2. TemplateName = "CgrActors_3."
-WHERE X 2. TemplateName = "CgrOwners_4."
) LOOP
DBMS_OUTPUT. Put_line (' IdObject: ' |) R.IDOBJECT | ' ObjectlName: ' | R.ObjectlName | "TemplateName ' |" R.TemplateName);
END LOOP;
DBMS_OUTPUT. Put_line ("- end -");
RETURNS A NULL VALUE.
END WS_SELECT_XML;Based on your query, I'll assume that you started with
Extract data from webservice response
In my opinion, it comes of the change you are looking for
FOR R IN ( SELECT x2.TemplateName, x3.idobject, x3.OWNERID FROM XMLTable( XMLNamespaces( 'http://www.w3.org/2003/05/soap-envelope' AS "soap" , default 'https://test.wstestx.com/XWS2/' ) , 'soap:Envelope/soap:Body/ProcessRequestResponse/ProcessRequestResult' passing XML_VAR columns CcResponse clob path '.' ) x1 , XMLTABLE( '/CcResponse/CcResultItems[@TemplateName="CgrOwners_4"]' PASSING XMLPARSE(DOCUMENT X1.CCRESPONSE) COLUMNS TemplateName VARCHAR2(20) PATH '@TemplateName' , ItemXML XMLTYPE PATH 'CcResultItem' ) X2 , XMLTABLE( '/CcResultItem' PASSING x2.itemXML COLUMNS IDOBJECT VARCHAR2(20) PATH 'IdObject' , OWNERID VARCHAR2(20) PATH 'OwnerID' ) X3 )
As Odie post pointed out. The first (x 1) XMLTable retrieves the content of ProcessRequestRequest and by doing this, delete the CDATA tag. We now have a CLOB that resembles XML. The second XMLTable (x 2) converts this CLOB into an XMLType and looking for the node that matches the XPath expression. It's where I've hardcoded in your query to search for a specific node. As you want node has a repeated structure that you want to retrieve each row, I spent structures repeatedly in the third XMLTable (x 3) so he could analyze. You could combine x 2 and x 3 using XQuery, but I suggest starting by this method I found that it's easier to understand what is happening.
To test out your code, simply replace the line
by the way XML_VAR
with
from XMLTYPE ("... the content of the SOAP Message...")
and run the query. You can do this to debug the query as you and just do a SELECT * to see what all went from XMLTable to XMLTable, so went to check the correct data.
-
Hello
I want to run the table several queries. I have 4 tables. Table 1 is to have relatively in table 2, but table 3 & 4 is not related with table 1. wherever I want to extract the data from table 1, table 4. My current query works well but it miss the Chronogram of table 1, which records do not exist in table 2, where, from table 2 of table 4 its working fine.
SELECT z.productcode, fabqty z.productionadviceno, sum (z.fabricatedqty).
Fabqtynoms Round (Sum(z.fabricatedqty*.015) + Sum (z.fabricatedqty)),
w.workorderno, ons min (w.ons).
((SOMME (w.qtyinsheets) * min (ons))) PCS,
(SELECT SUM (NVL (mrnqty, 0)))
OF CANMRN
WHERE workorderno = w.workorderno) mrnqty;
(SELECT ROUND (SUM (NVL (ptnqty, 0))))
OF CANPTN
WHERE workorderno = w.workorderno
) ptnqty
OF CANWORKORDER w, productionadvice z
where w.productionadviceno = z.productionadviceno
and w.productcode = 501001
GROUP BY w.workorderno, z.productionadviceno, z.productcode
PRODUCTCODE PRODUCTIONADVICENO FABQTY FABQTYNOMS WORKORDERNO ONS SCP MRNQTY PTNQTY
----------- ------------------ --------- ---------- ----------- --------- --------- --------- ------
501001 20004182 250000 253750 20001805 15 253755 16917 253755
501001 20004229 200000 203000 20001817 15 202995 13533 202995
501001 20004251 130000 131950 20001829 15 131955 8797 131955
501001 20004256 200000 203000 20001839 15 202995 13533 202995
501001 20004277 500000 507500 20001844 15 507495 33833 507495
501001 20004411 500000 507500 20001918 15 507495 31619 474285
501001 20004904 230000 233450 20002150 15 233445
I want to get this record also is missing after you run the query, as I had mentioned w.productionadviceno = z.productionadviceno due to which its does not, how, in a delicate way, we can use this relationship.
501001 20004905 10000 10150
Sandy
use of EXTERNAL JOINS as follows
where w.productionadviceno = z.productionadviceno (+)
above is a left outer join. A LEFT OUTER JOIN is a JOIN operations that allow you to specify a join clause. He keeps the lines without correspondence of the first (left) table, join them with a NULL row in the form of the second table (right).
More details: LEFT OUTER JOIN operation
-
PL/SQL to run the exe with the DB settings
Hi all
I have a little problem.
I'm in the need to write that all connection, disconnection and connection fail data to the Windows application log. To do this, I already tried various solutions, but with my configuration (EE Oracle 10.2.0.4) and Windows Server 2003 R2 X 64 the only possible solution is (apparently) the following.
I create a Table with the information I need:
--------------------------------------
CREATE TABLE logonaudittable
(
event VARCHAR2 (15).
SID NUMBER,
series # NUMBER,
time DATE,
name VARCHAR2 (30),
osuserid VARCHAR2 (30),
MachineName VARCHAR2 (64)
)
/
--------------------------------------
I have create a trigger for the connection data, one for logging for the logon fails:
------------------------------------------------
LOGON trigger.
Database of logonauditing AFTER logon ON CREATE OR REPLACE TRIGGER
DECLARE
MachineName VARCHAR2 (64);
osuserid VARCHAR2 (30);
v_sid NUMBER (10);
v_serial NUMBER (10);
CURSOR c1 IS
SELECT sid, serial #, osuser, machine
FROM v$ session WHERE audsid = userenv ('sessionid');
BEGIN
OPEN c1;
EXTRACT the c1 IN v_sid, v_serial, osuserid, machinename;
INSERT INTO logonaudittable VALUES ('CONNECT', v_sid, v_serial, sysdate,
user, osuserid, machinename);
CLOSE c1;
END;
/
-----------------------------------------------
Logoff trigger
CREATE OR REPLACE TRIGGER logoffauditing
BEFORE logoff ON database
DECLARE
MachineName VARCHAR2 (64);
osuserid VARCHAR2 (30);
v_sid NUMBER (10);
v_serial NUMBER (10);
CURSOR c1 IS
SELECT sid, serial #, osuser, machine
FROM v$ session WHERE audsid = userenv ('sessionid');
BEGIN
OPEN c1;
EXTRACT the c1 IN v_sid, v_serial, osuserid, machinename;
INSERT INTO logonaudittable VALUES ('LOGOUT', v_sid, v_serial, sysdate,
user, osuserid, machinename);
CLOSE c1;
END;
/
-------------------------------------------------------
Logon trigger FAILS
CREATE OR REPLACE TRIGGER logonfailauditing
AFTER ON SERVERERROR database
DECLARE
MachineName VARCHAR2 (64);
osuserid VARCHAR2 (30);
v_sid NUMBER (10);
v_serial NUMBER (10);
CURSOR c1 IS
SELECT sid, serial #, osuser, machine
FROM v$ session WHERE audsid = userenv ('sessionid');
BEGIN
IF (IS_SERVERERROR (1017)) THEN
OPEN c1;
EXTRACT the c1 IN v_sid, v_serial, osuserid, machinename;
INSERT INTO logonaudittable VALUES ('FAILLOGON', v_sid, v_serial, sysdate,
user, osuserid, machinename);
CLOSE c1;
END IF;
END;
/
-------------------------------------------
The I create a trigger that starts each time something is written on the table.
This trigger must start an EXE file which writes the last data written on the table in the Windows application log.
So I need a trigger that executes my WRITELOG. EXE file adding parameters. For example:
Run WRITELOG. Event time username sid EXE
So my program will write a journal in Windows with these data:
Event: opening of SESSION
SID: 2938473
Time: 12/12/2011 11:45:32
User name: Scott
And so on.
I already have the program that does this, I need to run the program with the right data directly from trigger or procedure performed by my trigger.
Hope that I was clear and REALLY hope that someone can help me!
Thanks to you all!So practically I should create a job something like this:
BEGIN
() dbms_scheduler.create_job
job_name-online "CONNECTION."
job_type-online "EXECUTABLE."
job_action => ' c:\yourdirectory\FILE. LOGON EXE ' | v_sid | » '|| v_serial | » '|| to_char(sysdate,'MM/DD/YYYY') | » '|| the user | » '|| osuserid | » '|| MachineName |';
number_of_arguments-online 1
start_date => SYSTIMESTAMP,
enabled-FALSE, online
comments => ' SQL * Loader jobs Demo');
END;
/and then I need to start this work every time that the LOGON trigger fires and it must be the trigger that inserts into the work, the arguments v_sid, v_serial, etc..
... I don't know how I can do this. What I need to create a procedure that creates jobs and the procedure is executed by the trigger? and how do you know the procedure to create the job with the data provided by the trigger. Sorry I ask much for the help, but I need this thing made in a time which is not compatible with me studying how to do it by myself. I will look at it, I want to know exactly how these things work, but now I need to speed things up a bit!
Thank you for all the valuable assistance tfor!
-
Call Service, run a query with a LimitFilter and a comparator, extend
I have a lot of difficulties running an InvocationService. I'm relatively new to coherence, please excuse my ignorance
Basically, I'm trying to get a web client access to a cluster of consistency (which uses * extend) and run a query with a LimitFilter and a comparator.
It looks that I implement the PortableObject interface on the comparator. I don't know how to be honest, and I'm getting an exception
: java.io.NotSerializableException:com.tangosol.util.internal.ConcurrentCounter
Do I need to apply the laptop on the comparator? I have to add the Group of comparison in a pof config XML? I have configuration errors?
Java code:
InvocationService service = (InvocationService) CacheFactory.getConfigurableCacheFactory().ensureService("ExtendTcpInvocationService"); Map map = service.query(new LatestContentAgent(), null); Set result = (Set) map.get(service.getCluster().getLocalMember());
public class LatestContentAgent extends AbstractInvocable { private static final long serialVersionUID = 5121824227545845101L; @Override public void run() { final Filter filter = new EqualsFilter("getStatusId", Status.LIVE); final LimitFilter limitFilter = new LimitFilter(filter,200); NamedCache cacheInstance = CacheFactory.getCache("dist-extend-cache"); setResult(cacheInstance.entrySet(limitFilter, new ActivityContentVOComparator())); } }
public class ActivityContentVO extends AbstractEvolvable implements Serializable, Cacheable { private static final long serialVersionUID = 1282169603551341131L; private static final int VERSION = 2; private static final int WHEN_IDX = 2; private Date when; public ActivityContentVO() { // hibernate needs this constructor } public Date getWhen() { return when; } public void setWhen(Date when) { this.when = when; } public void readExternal(PofReader reader) throws IOException { setWhen((Date) reader.readObject(WHEN_IDX)); } public void writeExternal(PofWriter writer) throws IOException { writer.writeObject(WHEN_IDX, getWhen()); } @Override public int getImplVersion() { return VERSION; } }
POF configuration filepublic class ActivityContentVOComparator implements Comparator<ActivityContentVO>, Serializable,PortableObject { private static final long serialVersionUID = -8536328258251728594L; @Override public int compare(ActivityContentVO a1, ActivityContentVO a2) { if ( a1 == null) { return a2 == null ? 0 : 1; } if (a2 == null) { return -1; } final Date d1 = a1.getWhen(); final Date d2 = a2.getWhen(); if (d1 == null) { return d2 == null ? 0 : 1; } else if (d2 == null) { return -1; } return d2.compareTo(d1); } @Override public void readExternal(PofReader arg0) throws IOException { // TODO Auto-generated method stub } @Override public void writeExternal(PofWriter arg0) throws IOException { // TODO Auto-generated method stub } }
Configuration consistency client-side:<pof-config> <user-type-list> <!-- coherence POF user types --> <include>coherence-pof-config.xml</include> <user-type> <type-id>1004</type-id> <class-name>net.tm.ActivityContentVO</class-name> </user-type> .... <user-type> <type-id>1009</type-id> <class-name>net.tm.ActivityContentVOComparator</class-name> </user-type> </user-type-list> <allow-interfaces>true</allow-interfaces> <allow-subclasses>true</allow-subclasses> </pof-config>
Consistent server configuration<remote-invocation-scheme> <scheme-name>extend-invocation</scheme-name> <service-name>ExtendTcpInvocationService</service-name> <initiator-config> <tcp-initiator> <remote-addresses> <socket-address> <address system-property="tangosol.coherence.extend.remote.node1"></address> <port system-property="tangosol.coherence.extend.invocation.remote.port1">9094</port> </socket-address> <socket-address> <address system-property="tangosol.coherence.extend.remote.node2"></address> <port system-property="tangosol.coherence.extend.invocation.remote.port1">9094</port> </socket-address> </remote-addresses> <connect-timeout>10s</connect-timeout> </tcp-initiator> <outgoing-message-handler> <request-timeout>5s</request-timeout> </outgoing-message-handler> </initiator-config> <serializer> <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name> <init-params> <init-param> <param-type>String</param-type> <param-value system-property="tangosol.pof.config">app-pof-config.xml</param-value> </init-param> </init-params> </serializer> </remote-invocation-scheme>
It's filling stack trace<proxy-scheme> <scheme-name>extend-proxy</scheme-name> <service-name>ExtendTcpProxyService</service-name> <thread-count>5</thread-count> <acceptor-config> <tcp-acceptor> <local-address> <address>localhost</address> <port system-property="tangosol.coherence.extend.port">9094</port> </local-address> </tcp-acceptor> </acceptor-config> <proxy-config> <cache-service-proxy> <lock-enabled>true</lock-enabled> </cache-service-proxy> </proxy-config> <autostart system-property="tangosol.coherence.extend.enabled"> false </autostart> </proxy-scheme>
Published by: user6122052 on June 28, 2010 09:46TcpConnection(Id=0x000001297F449E980A640BB49B3E90457BFBA97FDB268F4DCF95962206C4C35D, Open=true, LocalAddress=10.100.11.180:90 94, RemoteAddress=10.100.130.22:4989) 2010-06-28 16:54:50.398/277.593 Oracle Coherence GE 3.5.3/465 <D6> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=3): Opened: Channel(Id=1588644627, Open=true, Connection=0x000001297F449E980A640BB49B3E90457BFBA97FDB268F4DCF95962206C4C35D) 2010-06-28 16:54:50.528/277.723 Oracle Coherence GE 3.5.3/465 <Error> (thread=Proxy:ExtendTcpProxyService:TcpAcceptorWorker:3, member=3): An exception occurred while encoding a Response for Service=Proxy:ExtendTcpProxyService:TcpAcceptor: java.io.NotSerializableException: com.tangosol.util.internal.ConcurrentCounter at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) .... at com.tangosol.io.pof.PofBufferWriter$UserTypeWriter.writeObject(PofBufferWriter.java:2092) at com.tangosol.coherence.component.net.extend.message.Response.writeExternal(Response.CDB:15) at com.tangosol.coherence.component.net.extend.Codec.encode(Codec.CDB:23) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.encodeMessage(Peer.CDB:23) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor.encodeMessage(TcpAcceptor .CDB:8) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:16) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.post(Peer.CDB:23) at com.tangosol.coherence.component.net.extend.Channel.post(Channel.CDB:25) at com.tangosol.coherence.component.net.extend.Channel.send(Channel.CDB:6) at com.tangosol.coherence.component.net.extend.Channel.receive(Channel.CDB:55) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer$DaemonPool$WrapperTask.run(Peer.CDB:9) at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32) at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63) at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42) at java.lang.Thread.run(Thread.java:619)
Hi user6122052,
The problem is that you try to return the result of a query:
setResult(cacheInstance.entrySet(limitFilter, new ActivityContentVOComparator()));
and this set is an instance of com.tangosol.util.ConverterCollections$ ConverterEntrySet, which is not serializable. So, you can either convert it, for example:
Set setResults = cacheInstance.entrySet(limitFilter, new ActivityContentVOComparator()); Set setConverted = new HashSet(setResults.size()); for (Iterator iter = setResults.iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); setConverted.add(entry.getValue()); } setResult(setConverted);
or better yet - query the cache directly from your customer Extend.
Kind regards
Dimitri -
How can I close Firefox (closed) if properly run two windows with multiple tabs in each and I want to save them all? I tried to close each window by clicking the X in the top right, and then restart Firefox only loads the last closed window. Is it possible to close Firefox so it restarts with both windows?
Hi osenochen, some additions to the first response:
- You can display the classic menu temporarily bar by pressing Alt or F10 to access the file menu
- There is also an icon of 'power' at the bottom of the graphic application menu (the one which is displayed by the button "3-bar" menu) If you prefer
- If you closed a window and you want to re - open, go to the history menu and see a list of recently closed windows (by default, up to 3 windows closed are stored and can be re-opened - not applicable to windows private)
-
Functions defined by the user with several parameters
I set features three following user using "Define."
UF1 takes a single patameter;
UF2 takes two parameters;
and UFX takes two parameters - with the second is 'X' in the definition.
Œuvres F1. F2 is the EVAL of F1 version and it works too. User functions only seem to work fine.
F3, a function of two user settings, produces a graph of NaN.
F4 is the EVAL of F3 version. Note that 'B 'is not replaced by 1'. Also produces a NaN chart.
F5 produces a graph of NaN.
F6 is EVAL of F5. The 'X' is not replaced (even with the ' B' above), and even if it looks like 'X * X', it also produces a graph of NaN.
Is it possible to get defined by the user, with several parameters, features work by tracing the curve?
Hi!, Fortin:
If you download and install the ultimate Firmware with the version of the software: 2015 6 17 (8151), with the number of Version: 1.1.2 - 11, you can trace your examples of definition of the function, with curves and values, without NaN.
-
use F8 &; F10 keys on the keyboard to run the query and save a form
I created a screen. Here I can save by pressing CTRL + S (written a validation key trigger) or the button Save, I placed.
Now the user want to F10 to save & key F8 to run the query.
How can I do? Should what trigger I write the code...
I use oracle 10g and oracle developer suite 10 g.
I have fmrweb.res as follows:-
9: 0: 'Tab': 1: "then on the ground."
9: 2: "Ctrl + Tab": 1: "then on the ground."
9: 1: "Shift + Tab": 2: "previous field.
9: 3: 'Shift + Ctrl + Tab': 2: "previous field.
85: 2: "Ctrl + U": 3: "clear the field".
38: 0: 'Up': 6: 'Up '.
40: 0: 'Down': 7: "Down".
33: 0: 'PG': 12: "scroll to top".
34: 0: "PageDown": 13: "scroll."
69: 2: 'Ctrl + E': 22: 'Edit '.
10: 0: "Enter": 27: «Back»
120: 0: 'F9': 29: "list of values".
76: 2: "Ctrl + L": 29: "list of values".
81: 2: 'Ctrl + Q': 32: "Exit".
75: 2: "Ctrl + K": 35: 'display keys '.
112: 2: 'Ctrl + F1': 35: 'display keys '.
83: 2: 'Ctrl + S': 36: 'engage '.
121: 2: "F10": 36: 'engage '.
114: 1: 'SHIFT + F3': 61: 'next primary key '.
115: 1: "SHIFT + F4": 62: "delete folder".
117: 1: "SHIFT + F6": 63: 'delete folder '.
115: 0: "F4": 64: "Double registration".
117: 0: 'F6': 65: "insert record".
119: 1: "SHIFT + F8": 66: "a next Recordset.
1005: 0: 'Down': 67: "then save.
1004: 0: 'Up': 68: "history".
40: 1: 'Shift + down': 67: "then save.
38: 1: "shift + up": 68: "history".
116: 1: "Shift + F5": 69: 'clear the block '.
116: 0: 'F5': 70: "block the Menu."
34: 1: "shift + page down": 71: 'then block '.
33: 1: ' shift + Pg. Prev ': 72: "previous block.
34: 2: "Ctrl + PG. Next": 71: 'then block '.
33: 2: "Ctrl + PG. Prev': 72: "previous block.
114: 0: "F3": 73: "duplicate field '.
118: 1: "Shift + F7": 74: 'clear form '.
118: 0: "F7": 76: "enter the query."
119: 0: 'F8': 77: 'execute the query. "
122: 0: 'F11': 76: "enter the query."
122: 2: "Ctrl + F11": 77: 'execute the query. "
112: 1: "SHIFT + F1": 78: "error to display.
80: 2: 'Ctrl + P': 79: 'print '.
113: 1: "SHIFT + F2": 80: "request Count".
123: 0: "F12": 81: "update file".
121: 3: 'Shift + Ctrl + F10': 82: "function 0".
112: 3: 'Shift + Ctrl + F1': 83: «Function 1"»
113: 3: 'Shift + Ctrl + F2': 84: «Function 2"»
114: 3: 'Ctrl + Shift + F3': 85: «function 3"»
115: 3: 'Shift + Ctrl + F4': 86: «function 4"»
116: 3: 'Shift + Ctrl + F5': 87: «Function 5"»
117: 3: 'Shift + Ctrl + F6': 88: «function 6"»
118: 3: 'Shift + Ctrl + F7': 89: «Function 7"»
119: 3: 'Shift + Ctrl + F8': 90: «Function 8"»
120: 3: 'Shift + Ctrl + F9': 91: «Function 9"»
113: 0: 'F2': 95: "list of tab Pages.
72: 2: "Ctrl + H": 30: "Help".
112: 0: 'F1': 30: "Help".
Please suggest...Hello.
First of all check that you have set "term" among others in the variable 'otherparams' in formsweb.cfg
For example:
otherparams = expression = term %
Then make sure that you put the correct path for the keyboard mapping file in the variable "term" as I wrote in the previous post.
Things should work as I did several times.
Best regards.
-
Rewrite the query with joins, and group by
Hello
It's an interview question.
Table names: bookshelf_checkout
virtual library
And the join condition between these two tables is title
We need to rewrite under request without using the join condition and group by clause?
When I was in College, I read most of SELECT statements can be replaced by operations base SQL (DEFINE the OPERATORS). Now, I am rewriting the query with SET operators, but not able to get the exact result.SELECT b.title,max(bc.returned_date - bc.checkout_date) "Most Days Out" FROM bookshelf_checkout bc,bookshelf b WHERE bc.title(+)=b.title GROUP BY b.title;
Kindly help me on this.
Thank you
SuriSomething like that?
1 WITH books AS ( 2 SELECT 'title 1' title FROM dual UNION ALL 3 SELECT 'title 2' FROM dual UNION ALL 4 SELECT 'title 3' FROM dual ), 5 bookshelf AS ( 6 SELECT 'title 1' title, DATE '2012-05-01' checkout_date, DATE '2012-05-15' returned_date FROM dual UNION ALL 7 SELECT 'title 1' title, DATE '2012-05-16' checkout_date, DATE '2012-05-20' returned_date FROM dual UNION ALL 8 SELECT 'title 2' title, DATE '2012-04-01' checkout_date, DATE '2012-05-15' returned_date FROM dual ) 9 SELECT bs.title, MAX(bs.returned_date - bs.checkout_date) OVER (PARTITION BY title) FROM bookshelf bs 10 UNION 11 (SELECT b.title, NULL FROM books b 12 MINUS 13* SELECT bs.title, NULL FROM bookshelf bs) SQL> / TITLE MAX(BS.RETURNED_DATE-BS.CHECKOUT_DATE)OVER(PARTITIONBYTITLE) ------- ------------------------------------------------------------ title 1 14 title 2 44 title 3
Lukasz
-
Run the query according to the transaction.
Hi all
I am able to run the query, but I want to run query award date.
I created the timer for shape and I want when user update the record for the same registration date must run, do not run the query from the previous day.
is this possible?
can someone help me?
SarahSee other thread
-
Hello
I have a form based on the table that store only 1 card. I have created a form page, but may not know how to run the query and display the record in the table. If there is no record in the table, I want that the user can use this page to create a record.
Thanks in advance
NRIHello Nri,
What value does P18_SCHOOL_ID?
If you look at the State of Session (toolbar) developer. If that does not have a value, it's your problem.You can create a calculation before the process that gives the correct value. (In one case more often, you have a report and when you click on the link change that id is activated and you see the recording in your form)
Dimitri
-
Report with the query with union and parameters
Hello
We have an obligation to create a report with the request, which is the union and parameters.
I intend to create a database for the report based on a query. But the problem here is that the way to pass parameters in the query.
Request is something like that
Select x.a, x.b, x.c
x
where x.year =: para1
and x.status = 'A '.
Union of all the
Select x.a, x.b, x.c
x
where x.year =: para1 - 1
and (x.status = 'c' and x.date =: para2 or x.status = 'I' and x.date < =: para2)
Here x.year in the first select statement must be equal to: para1 and second select statement, it should be: para - 1.
How this requirement can be achieved?
Client don't want to separate worksheet, a parameter and another for the actual data that I tried with sys_context and it worked. But the client wants the result in a single sheet only... So I need to change their approach.
Help, please.
Thank youHello
Another option is to convert the request so that you will have the items from the selection
for example on the query you provided that you can use:Select 'Curr' rec_type, x.a, x.b, x.c, x.year, x.date, x.status
x
where x.status = "A".
Union of all the
Select 'Prev' rec_type, x.a, x.b, x.c, x.year, x.date, x.status
x
where x.status in ('c', 'I')then, in the workbook, you will be able to create conditions such as:
rec_type = 'Curr' and year =: para1rec_type = 'Prev' and year =: para1-1
rec_type = 'Prev' and (status = 'c' and date =: para2 or status = 'I' and date)<=>=>Tamir
-
Run the report with parameters when, select the Radio button
HelloW Guys
I run my report with the report parameter form now, I want to when I select a radio button and then check if my only the list value = 1 then run A report if my only the list value = 2 then launch report B
Report A and B contain the same parameter
What can I do?
I am writing this trigger button
DECLARE+.
al_button NUMBER; +
pl_id PARAMLIST; +
pl_id2 PARAMLIST; +
START to+.
IF: type = 'A' THEN+.
IF: RepType = "1" THEN+.
* pl_id: = Get_parameter_list ('repPara'); -create a parameter list * +.
IF not Id_null (pl_id) THEN+.
Destroy_parameter_list (pl_id); +
END IF; +
pl_id: = Create_parameter_list ('repPara'); +
Add_parameter(pl_id,'PARAMFORM',text_parameter,'NO'); +
* Add_parameter(pl_id,'style_from',text_parameter,:style_from); -passing style ano parameter * +.
* Add_parameter(pl_id,'style_to',text_parameter,:style_to); -passing style not as parameter * +.
* Add_parameter(pl_id,'date_from',text_parameter,:date_from); -passing date as parameter * +.
* Add_parameter(pl_id,'date_to',text_parameter,:date_to); -by the way that date as parameter * +.
* Add_parameter(pl_id,'category',text_parameter,:category); -passing as the parameter category * +.
Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Stitching_report.rdf ',+)
asynchronous, runtime, the file system, pl_id, NULL); +
ELSIF: Reptype = "2" THEN+.
pl_id2: = Create_parameter_list ('repPara2'); +
Add_parameter(pl_id2,'PARAMFORM',text_parameter,'NO'); +
* Add_parameter(pl_id2,'style_from',text_parameter,:style_from); -passing style not as parameter * +.
* Add_parameter(pl_id2,'style_to',text_parameter,:style_to); -passing style not as parameter * +.
* Add_parameter(pl_id2,'date_from',text_parameter,:date_from); -passing date as parameter * +.
* Add_parameter(pl_id2,'date_to',text_parameter,:date_to); -by the way that date as parameter * +.
* Add_parameter(pl_id2,'category',text_parameter,:category); -passing as the parameter category * +.
Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Delivery_report.rdf ',+)
asynchronous, runtime, the file system, pl_id, NULL); +
END IF; +
END IF; +
END; +
Need help
Concerning
Wasim IsmailDear Shahzab,
As the parameters except a report type are the same, you can accomplish this task by comparing the type of report just before Run_product.
You need to re - write the code as below:
DECLARE
al_button NUMBER;
pl_id PARAMLIST;BEGIN
IF: type = 'A' THEN
IF: RepType = "1" THEN
* pl_id: = Get_parameter_list ('repPara'); -create a parameter list *.IF this is Id_null (pl_id) THEN
Destroy_parameter_list (pl_id);
END IF;pl_id: = Create_parameter_list ('repPara');
Add_parameter (pl_id, 'PARAMFORM', text_parameter, 'NO');
Add_parameter(pl_id,'style_from',text_parameter,:style_from);
Add_parameter(pl_id,'style_to',text_parameter,:style_to);
Add_parameter(pl_id,'date_from',text_parameter,:date_from);
Add_parameter(pl_id,'date_to',text_parameter,:date_to);
Add_parameter(pl_id,'category',text_parameter,:Category);IF: type = 'A' THEN
IF: RepType = "1" THEN
Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Stitching_report.rdf ',)
asynchronous, NULL to run, the file system, pl_id,);
ELSIF: Reptype = '2'
Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Delivery_report.rdf ',)
asynchronous, NULL to run, the file system, pl_id,);
END IF;
END IF;
END;Concerning
Fassi Fihri -
How to run the script with parameters such as alarm action .ps1
Hello
I know not how to configure alarms, I know that I can point to monitor cluster for changes (via the GUI), but... I have different groups and I would like to set an alarm by vCenter which monitors cluster for changes. Let's call it "RefreshCapacityInfoOnExternalDB".
So, lets just say. I would like to run my script whenever a virtual computer is added, Reconfigured or ESX host are removed, added in a Cluster. The alarm would launch the .ps1 script written in turn the ability to update external db cluster info.
Shortly said: ability to cluster values are changed
What I need is this: run the script-> CapacityInfoRefresher.ps1 < Cluster_name_where_ReconfigEventsTookPlace >
I guess that, first I need an environment variable (if it exists) that can be used as a parameter for the < Cluster_name_where_ReconfigEventsTookPlace > placeholder script. Right?
Chapter 16 of the book of LucD & Friends "PowerCli reference" mentions some environment vars but I'm stuck. Anyone using these options?
THX
A.S.
You can set your alarm on the node above in your vCenter tree, this way it will be active for all collections in the vCenter.
These alarm environment variables are automatically available for your alarm script when it is triggered.
These environment variables, you will be able to determine to which cluster the alarm was pulled.
So I don't think that you need to pass this information as a parameter to the script.
Perrhaps you could share what exactly alarm you want to set and what looks like the script which should trigger alarm.
And Yes, I use these environment variables in scripts of alarm
Maybe you are looking for
-
HP Compaq desktop and dell monitor analog compatibility
Windows XP-I have a desktop hp compaq dc5750 small form and an analog e193fp dell monitor. I save mode only on the monitor of power and we have tried resetting the bios, disable the monitor works as well as the computer. The monitor worked on anoth
-
Downloaded magazines are not stored in the newsstand app
After the upgrade to the new ios, downloaded magazines not stored in the kiosk application to newspapers, but on the home screen. Why this is happening and how can I ensure that magazines stored in the application? Also, is it possible to see the cur
-
Aspire feature TUBA 5739G with Windows 8
Hello I have improved my Aspire 5739 G to Windows 8 Pro/w WMC When I was on youtube I noticed that something was wrong with my sound. The internal subwoofer is not not more work. The speakers work, but it is a triple of razorsharp (sounds of shit) I'
-
Can I switch from FAT32 to NTFS
Hello My current file system is FAT32. My XP is installed on the C drive. Now, I've heard that NTFS is better than FAT32. So I intend to change my file system during my next XP Reinstall. Issues related to the: 1. If I have NTFS in lecteurC so can I
-
Windows Vista installation disc: Black screen with a cursor and then nothing happens
A blue screen appears when I try to start Windows and I'm trying to fix the computer through my installation disc I have. But when I try to run my Vista disk installation happening by loading the files fine. It then shows a black screen with a mouse