Query compile error.
I know that both these queries work by themselves, yet when i put together, I get this error (i assume on the second query). Any thoughts?
org.apache.jasper.JasperException: Unable to compile class for JSPC:\bin\tomcat\work\www.smweb.cc_8080\_0002fsourcebook_0002fmaster_0002fresults_0005fip_0005fname_0002ejspresults_0005fip_0005fname_jsp_10.java:160: Variable 'rset' is already defined in this method.
ResultSet rset = null;
^
C:\bin\tomcat\work\www.smweb.cc_8080\_0002fsourcebook_0002fmaster_0002fresults_0005fip_0005fname_0002ejspresults_0005fip_0005fname_jsp_10.java:162: Variable 'sql' is already defined in this method.
String sql =
^
2 errors
<%@ include file="dbconnection.jsp" %>
<%-- Run SQL Query --%>
<% String TitleName;
ResultSet rset = null;
String sql =
"SELECT distinct Left(TitleName, 1) AS Title FROM Titles ";
try {
rset = stmt.executeQuery (sql);
catch (SQLException e) {
out.println (e);
return;
while (rset.next ())
TitleName = rset.getString ("Title");
%>
<%
try {
stmt.close();
conn.close();
} catch (Exception ex) {}
%>
<a href="results.jsp?Title=<%= TitleName %>"><%= TitleName %></a>
|
<%
%></td>
</tr>
</table>
<br>
Click on the Publication name to edit or delete a source. Otherwise,
you may go back and search again.</P>
<form method="POST" action="delete.jsp" name="ResultsForm">
<table border="1" cellspacing="0" cellpadding="3" width="600">
<tr bgcolor="#ffffcc">
<td width="239"><b>Information Provider</b></td>
<td width="156"><B>Country</B></td>
<td width="178"><b># of Publications</b></td>
</TR>
<% int IPNumber;
String IPName;
String CountryName;
ResultSet rset = null;
String sql =
"SELECT " +
"IPNumber, IPName, CountryName " +
"FROM " +
"IPs " +
"WHERE " +
"IPName LIKE " +
"'" + request.getParameter("IPName") + "%'";
try {
rset = stmt.executeQuery (sql);
catch (SQLException e) {
out.println (e);
return;
while (rset.next ())
IPNumber = rset.getInt ("IPNumber");
IPName = rset.getString ("IPName");
CountryName = rset.getString ("CountryName");
%>
<tr>
<td width="239" height="20"><a href="ip_edit.jsp?IPNumber="></a></td>
<TD width="156" height="20"> </TD>
<TD width="178" height="20">
NumberOfPubs </TD>
</tr>
<%
%>
</table>
Hi
See a trimmed down version of your code.
org.apache.jasper.JasperException: Unable to compile
class for
JSPC:\bin\tomcat\work\www.smweb.cc_8080\_0002fsourceboo
_0002fmaster_0002fresults_0005fip_0005fname_0002ejspres
lts_0005fip_0005fname_jsp_10.java:160: Variable 'rset'
is already defined in this method.
ResultSet rset = null;
^
C:\bin\tomcat\work\www.smweb.cc_8080\_0002fsourcebook_0
02fmaster_0002fresults_0005fip_0005fname_0002ejspresult
_0005fip_0005fname_jsp_10.java:162: Variable 'sql' is
already defined in this method.
String sql =
^
2 errors
<%@ include file="dbconnection.jsp" %>
<%-- Run SQL Query --%>
<% String TitleName;
ResultSet rset = null;
String sql =
"SELECT distinct Left(TitleName, 1) AS Title
<% int IPNumber;
String IPName;
String CountryName;
ResultSet rset = null;
String sql =
"SELECT " +
"IPNumber, IPName, CountryName " +
"FROM " +
"IPs " +
"WHERE " +
"IPName LIKE " +
"'" + request.getParameter("IPName") + "%'";
try {
rset = stmt.executeQuery (sql);
catch (SQLException e) {
out.println (e);
return;
while (rset.next ())
IPNumber = rset.getInt ("IPNumber");
IPName = rset.getString ("IPName");
CountryName = rset.getString ("CountryName");
%>
<tr>
<td width="239" height="20"><A
"20"><A HREF="ip_edit.jsp?IPNumber=IPNumber">
<a href="ip_edit.jsp?IPNumber="> </A></td>
<TD width="156" height="20"> </TD>
<TD width="178" height="20">
NumberOfPubs </TD>
</tr>
<%
%>
</table>You'll notice that you are redeclaring the varible rset & sql in the same scope. remove the second declaration but you can re-define tham as rset = null and sql = "....."; this should work
Good Luck!
Eshwar Rao
Developer Technical Support
Sun Microsystems inc
http://www.sun.com/developers/support
Similar Messages
-
Query Compilation Error - Function overloaded
I'm trying to use 2 document style web services in a query. When I test the query
I get:
tart server side stack trace:
java.rmi.RemoteException: EJB Exception:; nested exception is:
java.rmi.RemoteException: Query Compilation Error (Type Checks) 1-3-1-3: Function
Employees1:ProcessDocument() is overloaded.
java.rmi.RemoteException: Query Compilation Error (Type Checks) 1-3-1-3: Function
Employees1:ProcessDocument() is overloaded.
at com.bea.ldi.server.QueryBean.execute(Unknown Source)
at com.bea.ldi.server.QueryBean_1ao78o_EOImpl.execute(QueryBean_1ao78o_EOImpl.java:306)
at com.bea.ldi.server.QueryBean_1ao78o_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:821)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
End server side stack trace
Can someone tell me what this error means?
Thank you,
JasonRelease Note Entry:
When designing Workshop web services, you may need to alter the
Targetnamespace for a web service if a method name in this web service
clashes with a method name in another web service that uses the same
Targetnamespace.
"Mike Reiche" <[email protected]> wrote:
>
"A function with the same name has multiple definitions in the configuration.
Check
you configuration"
Check for multiple definitions of Employees1:ProcessDocument() in your
CFLD file(s).
- Mike
"Jason Levine" <[email protected]> wrote:
I'm trying to use 2 document style web services in a query. When I test
the query
I get:
tart server side stack trace:
java.rmi.RemoteException: EJB Exception:; nested exception is:
java.rmi.RemoteException: Query Compilation Error (Type Checks) 1-3-1-3:
Function
Employees1:ProcessDocument() is overloaded.
java.rmi.RemoteException: Query Compilation Error (Type Checks) 1-3-1-3:
Function
Employees1:ProcessDocument() is overloaded.
at com.bea.ldi.server.QueryBean.execute(Unknown Source)
at com.bea.ldi.server.QueryBean_1ao78o_EOImpl.execute(QueryBean_1ao78o_EOImpl.java:306)
at com.bea.ldi.server.QueryBean_1ao78o_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:821)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
End server side stack trace
Can someone tell me what this error means?
Thank you,
Jason -
Hi - I migrated a BPEL process from 10.1.2.1.0 The BPEL diagram is fine. If I open the assign using Jdeveloper, everything looks perfectly fine. I am able to do the Edit Copy operation with no problems. Upon compilation , however, the following error occurs:
Error(201):
[Error ORABPEL-10057]: invalid query
[Description]: in line 201 of "C:\jdeveloper\jdev\mywork\E1Integration\SalesOrderEntry\bpel\SalesOrderEntry.bpel",
query "/ns1:Request/ns1:Header/MessageHeader/MessageType" is invalid, because .
[Potential fix]: Check the XML schema and make sure your query string is valid.
I am using inline schema from the following wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="IntegrationPoints_FlowServices" targetNamespace="http://e1.oracle.com/SOE/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://e1.oracle.com/SOE/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdns1="http://e1.oracle.com/SOE">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/SOEInput1" xmlns:dx4="http://www.oracle.com/SOEInput1" xmlns:dx3="http://www.peoplesoft.com" xmlns:dx2="http://www.oracle.com/SOEInput">
<xsd:import namespace="http://www.peoplesoft.com"/>
<xsd:import namespace="http://www.oracle.com/SOEInput"/>
<xsd:element name="Processing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:actionType"/>
<xsd:element ref="dx3:useConfigurationRule"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Billing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:Pricing"/>
<xsd:element ref="dx3:paymentTermsCode"/>
<xsd:element ref="dx3:paymentInstrumentCode"/>
<xsd:element ref="dx3:taxRateAreaCode"/>
<xsd:element ref="dx3:taxExplanationCode"/>
<xsd:element ref="dx3:taxableCode"/>
<xsd:element ref="dx3:modeOfTransportCode"/>
<xsd:element ref="dx3:printMessageCode"/>
<xsd:element ref="dx2:Carrier"/>
<xsd:element ref="dx3:freightHandlingCode"/>
<xsd:element ref="dx3:subledger"/>
<xsd:element ref="dx3:subledgerTypeCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ShipTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://localhost/IntegrationPoints/FlowServices/SalesOrderEntryMODIFIEDMSG" xmlns:tns="http://localhost/IntegrationPoints/FlowServices/SalesOrderEntryMODIFIEDMSG" xmlns:jde="http://e1.oracle.com/SOE">
<xsd:import namespace="http://e1.oracle.com/SOE"/>
<xsd:complexType name="SalesOrderInput">
<xsd:sequence>
<xsd:element ref="jde:SalesOrderEntry"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="SalesOrderOutput">
<xsd:sequence>
<xsd:element ref="jde:SalesOrderEntry"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/SOEInput" xmlns:dx2="http://www.oracle.com/SOEInput" xmlns:dx3="http://www.peoplesoft.com" xmlns:dx4="http://www.oracle.com/SOEInput1">
<xsd:import namespace="http://www.peoplesoft.com"/>
<xsd:import namespace="http://www.oracle.com/SOEInput1"/>
<xsd:element name="Processing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:actionType"/>
<xsd:element ref="dx3:processingVersion"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="SalesOrderKey">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:documentNumber"/>
<xsd:element ref="dx3:documentTypeCode"/>
<xsd:element ref="dx3:documentCompany"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="SoldTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
<xsd:element ref="dx3:mailingName"/>
<xsd:element ref="dx3:addressLine1"/>
<xsd:element ref="dx3:addressLine2"/>
<xsd:element ref="dx3:addressLine3"/>
<xsd:element ref="dx3:addressLine4"/>
<xsd:element ref="dx3:city"/>
<xsd:element ref="dx3:countyCode"/>
<xsd:element ref="dx3:stateCode"/>
<xsd:element ref="dx3:postalCode"/>
<xsd:element ref="dx3:countryCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ShipTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
<xsd:element ref="dx3:mailingName"/>
<xsd:element ref="dx3:addressLine1"/>
<xsd:element ref="dx3:addressLine2"/>
<xsd:element ref="dx3:addressLine3"/>
<xsd:element ref="dx3:addressLine4"/>
<xsd:element ref="dx3:city"/>
<xsd:element ref="dx3:countyCode"/>
<xsd:element ref="dx3:stateCode"/>
<xsd:element ref="dx3:postalCode"/>
<xsd:element ref="dx3:countryCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Carrier">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Billing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:adjustmentScheduleCode"/>
<xsd:element ref="dx3:customerPriceGroupCode"/>
<xsd:element ref="dx3:percentDiscountTrade"/>
<xsd:element ref="dx3:paymentTermsCode"/>
<xsd:element ref="dx3:paymentInstrumentCode"/>
<xsd:element ref="dx3:printMessageCode"/>
<xsd:element ref="dx2:Carrier"/>
<xsd:element ref="dx3:freightHandlingCode"/>
<xsd:element ref="dx3:deliveryInstruction1"/>
<xsd:element ref="dx3:deliveryInstruction2"/>
<xsd:element ref="dx3:taxRateAreaCode"/>
<xsd:element ref="dx3:taxExplanationCode"/>
<xsd:element ref="dx3:creditCardAccountName"/>
<xsd:element ref="dx3:creditCardAccountNumber"/>
<xsd:element ref="dx3:creditCardTypeCode"/>
<xsd:element ref="dx3:checkNumber"/>
<xsd:element ref="dx3:dateExpiration"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DeliverTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="InvoicedTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PaidBy">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ForwardedTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="UserReservedData">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:userReservedCode"/>
<xsd:element ref="dx3:userReservedDate"/>
<xsd:element ref="dx3:userReservedAmount"/>
<xsd:element ref="dx3:userReservedNumber"/>
<xsd:element ref="dx3:userReservedReference"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Item">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:itemId"/>
<xsd:element ref="dx3:itemProduct"/>
<xsd:element ref="dx3:itemCatalog"/>
<xsd:element ref="dx3:itemCustomer"/>
<xsd:element ref="dx3:itemFreeForm"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ItemParent">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:itemId"/>
<xsd:element ref="dx3:itemProduct"/>
<xsd:element ref="dx3:itemCatalog"/>
<xsd:element ref="dx3:itemCustomer"/>
<xsd:element ref="dx3:itemFreeForm"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Segment">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:segmentNumber"/>
<xsd:element ref="dx3:segmentValue"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Configuration">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:ItemParent"/>
<xsd:element ref="dx2:Item"/>
<xsd:element ref="dx3:businessUnit"/>
<xsd:element ref="dx3:quantityComponent"/>
<xsd:element ref="dx3:unitOfMeasureCodeComponent"/>
<xsd:element ref="dx3:lineTypeCode"/>
<xsd:element ref="dx3:description1"/>
<xsd:element ref="dx2:Segment" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Product">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:Item"/>
<xsd:element ref="dx3:lotNumber"/>
<xsd:element ref="dx3:location"/>
<xsd:element ref="dx3:itemWeight"/>
<xsd:element ref="dx3:unitOfMeasureCodeWeight"/>
<xsd:element ref="dx3:itemVolume"/>
<xsd:element ref="dx3:unitOfMeasureCodeVolume"/>
<xsd:element ref="dx3:description1"/>
<xsd:element ref="dx3:description2"/>
<xsd:element ref="dx2:Configuration" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Pricing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:unitOfMeasureCodePricing"/>
<xsd:element ref="dx3:isZeroPriceOverride"/>
<xsd:element ref="dx3:adjustmentScheduleCode"/>
<xsd:element ref="dx3:datePriceEffective"/>
<xsd:element ref="dx3:priceCode1"/>
<xsd:element ref="dx3:priceCode2"/>
<xsd:element ref="dx3:priceCode3"/>
<xsd:element ref="dx3:priceUnitDomestic"/>
<xsd:element ref="dx3:priceUnitForeign"/>
<xsd:element ref="dx3:priceExtendedDomestic"/>
<xsd:element ref="dx3:priceExtendedForeign"/>
<xsd:element ref="dx3:itemPriceGroupCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="OriginalOrderKey">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:documentNumber"/>
<xsd:element ref="dx3:documentTypeCode"/>
<xsd:element ref="dx3:documentCompany"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="OriginalOrder">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:OriginalOrderKey"/>
<xsd:element ref="dx3:documentLineNumber"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RelatedOrderKey">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:documentNumber"/>
<xsd:element ref="dx3:documentTypeCode"/>
<xsd:element ref="dx3:documentCompany"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RelatedOrder">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:RelatedOrderKey"/>
<xsd:element ref="dx3:documentLineNumber"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Supplier">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="CategoryCodesSales">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:categoryCode001"/>
<xsd:element ref="dx3:categoryCode002"/>
<xsd:element ref="dx3:categoryCode003"/>
<xsd:element ref="dx3:categoryCode004"/>
<xsd:element ref="dx3:categoryCode005"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="CategoryCodesPurchasing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:categoryCode001"/>
<xsd:element ref="dx3:categoryCode002"/>
<xsd:element ref="dx3:categoryCode003"/>
<xsd:element ref="dx3:categoryCode004"/>
<xsd:element ref="dx3:categoryCode005"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Detail">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx4:Processing"/>
<xsd:element ref="dx3:documentLineNumber"/>
<xsd:element ref="dx3:businessUnit"/>
<xsd:element ref="dx3:businessUnitDestination"/>
<xsd:element ref="dx3:customerPO"/>
<xsd:element ref="dx3:reference"/>
<xsd:element ref="dx3:agreementId"/>
<xsd:element ref="dx3:agreementSupplement"/>
<xsd:element ref="dx2:Product"/>
<xsd:element ref="dx4:Billing"/>
<xsd:element ref="dx3:dutyStatusCode"/>
<xsd:element ref="dx2:OriginalOrder"/>
<xsd:element ref="dx2:RelatedOrder"/>
<xsd:element ref="dx4:ShipTo"/>
<xsd:element ref="dx2:Supplier"/>
<xsd:element ref="dx3:quantityOrdered"/>
<xsd:element ref="dx3:quantityShippable"/>
<xsd:element ref="dx3:quantityBackOrdered"/>
<xsd:element ref="dx3:quantityCanceled"/>
<xsd:element ref="dx3:unitOfMeasureCodeTransaction"/>
<xsd:element ref="dx3:lineTypeCode"/>
<xsd:element ref="dx3:lineOfBusinessCode"/>
<xsd:element ref="dx3:endUseCode"/>
<xsd:element ref="dx3:priorityCode"/>
<xsd:element ref="dx3:dateOrdered"/>
<xsd:element ref="dx3:dateRequested"/>
<xsd:element ref="dx3:timeRequested"/>
<xsd:element ref="dx3:dateCancel"/>
<xsd:element ref="dx3:datePromisedShip"/>
<xsd:element ref="dx3:timePromisedShip"/>
<xsd:element ref="dx3:dateScheduledPick"/>
<xsd:element ref="dx3:timeScheduledPick"/>
<xsd:element ref="dx3:datePromisedOriginal"/>
<xsd:element ref="dx3:timePromisedOriginal"/>
<xsd:element ref="dx3:datePromisedDelivery"/>
<xsd:element ref="dx3:timePromisedDelivery"/>
<xsd:element ref="dx3:statusCodeLast"/>
<xsd:element ref="dx3:statusCodeNext"/>
<xsd:element ref="dx2:CategoryCodesSales"/>
<xsd:element ref="dx2:CategoryCodesPurchasing"/>
<xsd:element ref="dx2:UserReservedData"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Header">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="MessageHeader" >
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Environment" type="xsd:string"/>
<xsd:element name="MessageType" type="xsd:string"/>
<xsd:element name="MessageID" type="xsd:string"/>
<xsd:element name="MessageVersion" type="xsd:string"/>
<xsd:element name="MessageReferenceID" type="xsd:string"/>
<xsd:element name="UserID" type="xsd:string"/>
<xsd:element name="UserPassword" type="xsd:string"/>
<xsd:element name="SourceSystemName" type="xsd:string"/>
<xsd:element name="CreationDate" type="xsd:string"/>
<xsd:element name="Operation" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element ref="dx2:Processing"/>
<xsd:element ref="dx2:SalesOrderKey"/>
<xsd:element ref="dx3:businessUnit"/>
<xsd:element ref="dx3:company"/>
<xsd:element ref="dx3:orderedBy"/>
<xsd:element ref="dx3:orderTakenBy"/>
<xsd:element ref="dx3:holdOrderCode"/>
<xsd:element ref="dx3:customerPO"/>
<xsd:element ref="dx3:attachmentText"/>
<xsd:element ref="dx2:SoldTo"/>
<xsd:element ref="dx2:ShipTo"/>
<xsd:element ref="dx3:dateOrdered"/>
<xsd:element ref="dx3:dateRequested"/>
<xsd:element ref="dx3:timeRequested"/>
<xsd:element ref="dx3:dateCancel"/>
<xsd:element ref="dx3:dateScheduledPick"/>
<xsd:element ref="dx3:timeScheduledPick"/>
<xsd:element ref="dx3:currencyCodeTo"/>
<xsd:element ref="dx3:rateExchangeOverride"/>
<xsd:element ref="dx2:Billing"/>
<xsd:element ref="dx2:DeliverTo"/>
<xsd:element ref="dx2:InvoicedTo"/>
<xsd:element ref="dx2:PaidBy"/>
<xsd:element ref="dx2:ForwardedTo"/>
<xsd:element ref="dx2:UserReservedData"/>
<xsd:element ref="dx2:Detail" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Request">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:Header"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/SOEOutput" xmlns:jde2="http://www.oracle.com/SOEOutput" xmlns:dx3="http://www.peoplesoft.com">
<xsd:import namespace="http://www.peoplesoft.com"/>
<xsd:element name="Detail">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:documentLineNumber"/>
<xsd:element ref="dx3:messages" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Header">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:documentNumber"/>
<xsd:element ref="dx3:documentTypeCode"/>
<xsd:element ref="dx3:documentCompany"/>
<xsd:element ref="dx3:messages" maxOccurs="unbounded"/>
<xsd:element ref="jde2:Detail" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Response">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="jde2:Header"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/SOE" xmlns:dx="http://www.oracle.com/SOE" xmlns:dx2="http://www.oracle.com/SOEInput" xmlns:jde2="http://www.oracle.com/SOEOutput">
<xsd:import namespace="http://www.oracle.com/SOEInput"/>
<xsd:import namespace="http://www.oracle.com/SOEOutput"/>
<xsd:element name="ProcessSOE">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:Request"/>
<xsd:element ref="jde2:Response"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://e1.oracle.com/SOE" xmlns:jde="http://e1.oracle.com/SOE" xmlns:dx="http://www.oracle.com/SOE">
<xsd:import namespace="http://www.oracle.com/SOE"/>
<xsd:element name="SalesOrderEntry">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx:ProcessSOE"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.peoplesoft.com" xmlns:dx3="http://www.peoplesoft.com">
<xsd:element name="actionType" type="xsd:string"/>
<xsd:element name="processingVersion" type="xsd:string"/>
<xsd:element name="documentNumber" type="xsd:string"/>
<xsd:element name="documentTypeCode" type="xsd:string"/>
<xsd:element name="documentCompany" type="xsd:string"/>
<xsd:element name="businessUnit" type="xsd:string"/>
<xsd:element name="company" type="xsd:string"/>
<xsd:element name="orderedBy" type="xsd:string"/>
<xsd:element name="orderTakenBy" type="xsd:string"/>
<xsd:element name="holdOrderCode" type="xsd:string"/>
<xsd:element name="customerPO" type="xsd:string"/>
<xsd:element name="attachmentText" type="xsd:string"/>
<xsd:element name="entityId" type="xsd:string"/>
<xsd:element name="entityLongId" type="xsd:string"/>
<xsd:element name="entityTaxId" type="xsd:string"/>
<xsd:element name="mailingName" type="xsd:string"/>
<xsd:element name="addressLine1" type="xsd:string"/>
<xsd:element name="addressLine2" type="xsd:string"/>
<xsd:element name="addressLine3" type="xsd:string"/>
<xsd:element name="addressLine4" type="xsd:string"/>
<xsd:element name="city" type="xsd:string"/>
<xsd:element name="countyCode" type="xsd:string"/>
<xsd:element name="stateCode" type="xsd:string"/>
<xsd:element name="postalCode" type="xsd:string"/>
<xsd:element name="countryCode" type="xsd:string"/>
<xsd:element name="dateOrdered" type="xsd:string"/>
<xsd:element name="dateRequested" type="xsd:string"/>
<xsd:element name="timeRequested" type="xsd:string"/>
<xsd:element name="dateCancel" type="xsd:string"/>
<xsd:element name="dateScheduledPick" type="xsd:string"/>
<xsd:element name="timeScheduledPick" type="xsd:string"/>
<xsd:element name="currencyCodeTo" type="xsd:string"/>
<xsd:element name="rateExchangeOverride" type="xsd:string"/>
<xsd:element name="adjustmentScheduleCode" type="xsd:string"/>
<xsd:element name="customerPriceGroupCode" type="xsd:string"/>
<xsd:element name="percentDiscountTrade" type="xsd:string"/>
<xsd:element name="paymentTermsCode" type="xsd:string"/>
<xsd:element name="paymentInstrumentCode" type="xsd:string"/>
<xsd:element name="printMessageCode" type="xsd:string"/>
<xsd:element name="freightHandlingCode" type="xsd:string"/>
<xsd:element name="deliveryInstruction1" type="xsd:string"/>
<xsd:element name="deliveryInstruction2" type="xsd:string"/>
<xsd:element name="taxRateAreaCode" type="xsd:string"/>
<xsd:element name="taxExplanationCode" type="xsd:string"/>
<xsd:element name="creditCardAccountName" type="xsd:string"/>
<xsd:element name="creditCardAccountNumber" type="xsd:string"/>
<xsd:element name="creditCardTypeCode" type="xsd:string"/>
<xsd:element name="checkNumber" type="xsd:string"/>
<xsd:element name="dateExpiration" type="xsd:string"/>
<xsd:element name="userReservedCode" type="xsd:string"/>
<xsd:element name="userReservedDate" type="xsd:string"/>
<xsd:element name="userReservedAmount" type="xsd:string"/>
<xsd:element name="userReservedNumber" type="xsd:string"/>
<xsd:element name="userReservedReference" type="xsd:string"/>
<xsd:element name="useConfigurationRule" type="xsd:string"/>
<xsd:element name="documentLineNumber" type="xsd:string"/>
<xsd:element name="businessUnitDestination" type="xsd:string"/>
<xsd:element name="reference" type="xsd:string"/>
<xsd:element name="agreementId" type="xsd:string"/>
<xsd:element name="agreementSupplement" type="xsd:string"/>
<xsd:element name="itemId" type="xsd:string"/>
<xsd:element name="itemProduct" type="xsd:string"/>
<xsd:element name="itemCatalog" type="xsd:string"/>
<xsd:element name="itemCustomer" type="xsd:string"/>
<xsd:element name="itemFreeForm" type="xsd:string"/>
<xsd:element name="lotNumber" type="xsd:string"/>
<xsd:element name="location" type="xsd:string"/>
<xsd:element name="itemWeight" type="xsd:string"/>
<xsd:element name="unitOfMeasureCodeWeight" type="xsd:string"/>
<xsd:element name="itemVolume" type="xsd:string"/>
<xsd:element name="unitOfMeasureCodeVolume" type="xsd:string"/>
<xsd:element name="description1" type="xsd:string"/>
<xsd:element name="description2" type="xsd:string"/>
<xsd:element name="quantityComponent" type="xsd:string"/>
<xsd:element name="unitOfMeasureCodeComponent" type="xsd:string"/>
<xsd:element name="lineTypeCode" type="xsd:string"/>
<xsd:element name="segmentNumber" type="xsd:string"/>
<xsd:element name="segmentValue" type="xsd:string"/>
<xsd:element name="unitOfMeasureCodePricing" type="xsd:string"/>
<xsd:element name="isZeroPriceOverride" type="xsd:string"/>
<xsd:element name="datePriceEffective" type="xsd:string"/>
<xsd:element name="priceCode1" type="xsd:string"/>
<xsd:element name="priceCode2" type="xsd:string"/>
<xsd:element name="priceCode3" type="xsd:string"/>
<xsd:element name="priceUnitDomestic" type="xsd:string"/>
<xsd:element name="priceUnitForeign" type="xsd:string"/>
<xsd:element name="priceExtendedDomestic" type="xsd:string"/>
<xsd:element name="priceExtendedForeign" type="xsd:string"/>
<xsd:element name="itemPriceGroupCode" type="xsd:string"/>
<xsd:element name="taxableCode" type="xsd:string"/>
<xsd:element name="modeOfTransportCode" type="xsd:string"/>
<xsd:element name="subledger" type="xsd:string"/>
<xsd:element name="subledgerTypeCode" type="xsd:string"/>
<xsd:element name="dutyStatusCode" type="xsd:string"/>
<xsd:element name="quantityOrdered" type="xsd:string"/>
<xsd:element name="quantityShippable" type="xsd:string"/>
<xsd:element name="quantityBackOrdered" type="xsd:string"/>
<xsd:element name="quantityCanceled" type="xsd:string"/>
<xsd:element name="unitOfMeasureCodeTransaction" type="xsd:string"/>
<xsd:element name="lineOfBusinessCode" type="xsd:string"/>
<xsd:element name="endUseCode" type="xsd:string"/>
<xsd:element name="priorityCode" type="xsd:string"/>
<xsd:element name="datePromisedShip" type="xsd:string"/>
<xsd:element name="timePromisedShip" type="xsd:string"/>
<xsd:element name="datePromisedOriginal" type="xsd:string"/>
<xsd:element name="timePromisedOriginal" type="xsd:string"/>
<xsd:element name="datePromisedDelivery" type="xsd:string"/>
<xsd:element name="timePromisedDelivery" type="xsd:string"/>
<xsd:element name="statusCodeLast" type="xsd:string"/>
<xsd:element name="statusCodeNext" type="xsd:string"/>
<xsd:element name="categoryCode001" type="xsd:string"/>
<xsd:element name="categoryCode002" type="xsd:string"/>
<xsd:element name="categoryCode003" type="xsd:string"/>
<xsd:element name="categoryCode004" type="xsd:string"/>
<xsd:element name="categoryCode005" type="xsd:string"/>
<xsd:element name="messages" type="xsd:string"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="SalesOrderEntry">
<wsdl:part name="SalesOrderEntry" element="wsdns1:SalesOrderEntry"/>
</wsdl:message>
<wsdl:message name="SalesOrderEntryOutput">
<wsdl:part name="SalesOrderEntry" element="wsdns1:SalesOrderEntry"/>
</wsdl:message>
<wsdl:portType name="IntegrationPoints_FlowServicesPortType">
<wsdl:operation name="SalesOrderEntry">
<wsdl:input message="tns:SalesOrderEntry"/>
<wsdl:output message="tns:SalesOrderEntryOutput"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="IntegrationPoints_FlowServicesBinding" type="tns:IntegrationPoints_FlowServicesPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="SalesOrderEntry">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="IntegrationPoints_FlowServicesService">
<wsdl:port name="IntegrationPoints_FlowServicesPort0" binding="tns:IntegrationPoints_FlowServicesBinding">
<soap:address location="http://galileo.wlgore.com:5555/soap/default"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Thanks,
RMWell the problem looks like it is has to do with the Header element and ns1. If I test using the html form, it fails. So I selected "Save Test" to examine the xml. This creates the following xml (only showing the portion of interest):
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://www.oracle.com/SOEInput">
<ns1:Request>
<Header>
<MessageHeader>
<Environment>Development</Environment>
</MessageHeader>
</Header>
</ns1:Request>
</soap:Body>
</soap:Envelope>
As you can see, ns1: is missing from the Header element, which explains why
"/ns1:Request/ns1:Header/MessageHeader/Environment" is failing. If I augment it by adding the ns1: manually it executes correctly:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://www.oracle.com/SOEInput">
<ns1:Request>
<ns1:Header>
<MessageHeader>
<Environment>Development</Environment>
</MessageHeader>
</ns1:Header>
</ns1:Request>
</soap:Body>
</soap:Envelope>
Any idea why this would occur on the BPEL server ? I presumed the HTML form would contain the correct namespaces. -
Query giving compilation error
hi,
i am confused that my query is working fine on back-end sqlplus, but as i put to use it in my form
at pre-form to know count, it gives compilation error;
sqlplus
SELECT COUNT(*) M_CNT1
FROM(
SELECT POH_CODE||'-'||POH_NO CODE,NVL(POH_FREIGHT_lc_amount,0)
-NVL((
SELECT SUM(FTH_LC_AMOUNT)
FROM FIN_TXN_HEADER
WHERE FTH_REF_CODE = POH_CODE
AND FTH_REF_NO = POH_NO
AND FTH_ACNT_CODE = 'AC1009'
GROUP BY FTH_REF_CODE,FTH_REF_NO),0) NET, POH_CODE, POH_NO
FROM PURCHASE_ORDER_HEADEr
WHERE NVL(POH_FREIGHT_LC_AMOUNT,0) > 0);
M_CNT1
1
in pre-form
declare
m_cnt1 number;
BEGIN
SELECT COUNT(*) INTO M_CNT1
FROM(
SELECT NVL(POH_FREIGHT_lc_amount,0)
-NVL((
SELECT SUM(FTH_LC_AMOUNT)
FROM FIN_TXN_HEADER
WHERE FTH_REF_CODE = POH_CODE
AND FTH_REF_NO = POH_NO
AND FTH_ACNT_CODE = 'AC1009'
GROUP BY FTH_REF_CODE,FTH_REF_NO),0) NET
FROM PURCHASE_ORDER_HEADER
WHERE NVL(POH_FREIGHT_LC_AMOUNT,0) > 0);
END;return error;
Error 103 at line 11, column 2
Encountered the symbol "SELECT" when expecting on of the following:
( - + mod not null others<an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
cast<a string literal with character se specification>
<a number> <a single-quoted SQL string>
Error 103 at line 16, column 36
Encountered the symbol "," when expecting on of the following:
) intersect minus union
i think the problem is continuation line or single quote.
what is it can anybody help me please? tyvm.>
Error is in this line.
Use : before M_CNT1hi Navneet,
m_cnt1 is neither a db-or-a-non-db-block item.
so how come i used : sign before m_cnt1.
i guess the problem is below sonewhere may be,
-NVL((
SELECT SUM(FTH_LC_AMOUNT) --- line 11
OR
GROUP BY FTH_REF_CODE,FTH_REF_NO),0) NET --line 16 -
Flex compilation error after adding an additional output port to a query
Hello,
I need to add an additional output port to a query in order to dynamically filter some results. Our version of VC 7.0 (SP16) doesn't support filter components with access to store data.
Just when we add an extra output port to the query and deploy it we run into a flex compilation error.
Has somebody come along with that?
Kind regards
StefanHi
Why exactly you want another output port. With same output port you can drag multiple filters & restrict the output.
Creation of second output port is not required.
If first way is not suitable in your case, then you add that query twice (or multiple times) & pass the same input parameters.
If still it is not serving the purpose then please elaborate your requirement as what dynamic filter you want.
Regards
Sandeep -
Compilation error in PL/SQL
Hi All,
Please find the strange query situation in PLSQL.
If i run the query without PLSQL block (i.e. declar begin end) it runs well and insert data
in table but if put the same query in PLSQL block it gives compilation error.
Following is the spool
SQL> select * from v$version;
BANNER
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
PL/SQL Release 8.1.7.4.0 - Production
CORE 8.1.7.0.0 Production
TNS for IBM/AIX RISC System/6000: Version 8.1.7.4.0 - Production
NLSRTL Version 3.4.1.0.0 - Production
SQL> insert into smcbom_load_hours_temp
2 select data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date) v_period,sum(v_hr),-1,sysdate,-1,sysdate
3 from (
4 select plan_level,sp.data_set_name,
5 sp.value1,smcbom_flex_budget.calculate_period_days(sp.period1),inweight ,
6 usagerate ,operationseq,percent,
7 sbov.group_id,sp.alloy,sp.planner_code,
8 sbov.days,sbov.totaloffsetdays,deptclass,dept,
9 decode(plan_level,1,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate *
10 (SELECT MAX(INWEIGHT)
11 FROM SMCBOM_BOM_OPERATION_VIEW
12 WHERE ALLOY=sbov.alloy
13 AND PLANNER_CODE=sbov.planner_code
14 AND PLAN_LEVEL = 0
15 AND GROUP_ID = sbov.group_id ),
16 0,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate ,
17 1) v_hr,
18 smcbom_flex_budget.get_start_date(sp.period14)+sbov.totaloffsetdays v_date,
19 sum(-sbov.totaloffsetdays)
20 over (partition by sp.alloy,sp.planner_code,sbov.group_id
21 order by plan_level asc,operationseq desc) new_offset
22 from smcbom_bom_operation_view sbov,smcbom_sales_prod_forecasts sp
23 where sbov.alloy= sp.alloy
24 and sbov.planner_code=sp.planner_code
25 and group_id=521136
26 )
27 group by data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date);
23 rows created.
SQL> commit;
Commit complete.
SQL> declare
2 begin
3 insert into smcbom_load_hours_temp
4 select data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date) v_period,sum(v_hr),-1,sysdate,-1,sysdate
5 from (
6 select plan_level,sp.data_set_name,
7 sp.value1,smcbom_flex_budget.calculate_period_days(sp.period1),inweight ,
8 usagerate ,operationseq,percent,
9 sbov.group_id,sp.alloy,sp.planner_code,
10 sbov.days,sbov.totaloffsetdays,deptclass,dept,
11 decode(plan_level,1,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate *
12 (SELECT MAX(INWEIGHT)
13 FROM SMCBOM_BOM_OPERATION_VIEW
14 WHERE ALLOY=sbov.alloy
15 AND PLANNER_CODE=sbov.planner_code
16 AND PLAN_LEVEL = 0
17 AND GROUP_ID = sbov.group_id ),
18 0,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate ,
19 1) v_hr,
20 smcbom_flex_budget.get_start_date(sp.period14)+sbov.totaloffsetdays v_date,
21 sum(-sbov.totaloffsetdays)
22 over (partition by sp.alloy,sp.planner_code,sbov.group_id
23 order by plan_level asc,operationseq desc) new_offset
24 from smcbom_bom_operation_view sbov,smcbom_sales_prod_forecasts sp
25 where sbov.alloy= sp.alloy
26 and sbov.planner_code=sp.planner_code
27 and group_id=521136
28 )
29 group by data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date);
30 end;
31 /
(SELECT MAX(INWEIGHT)
ERROR at line 12:
ORA-06550: line 12, column 2:
PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
( - + mod not null others <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string>
ORA-06550: line 22, column 6:
PLS-00103: Encountered the symbol "(" when expecting one of the following:
, from
SQL> spool off;In some versions of Oracle (certainly all of the 8.x versions and earlier, and possibly some of the earlier 9 versions) the SQL parsers in the SQL engine and in the PL/SQL engine were different. Some features that worked directly in SQL did not work in PL/SQL. Scalar sub-queries were one of those things.
You have three options. You can try to re-write the insert statement to eliminate the PL/SQL unimplemented feature. You can create a view in the database for the SELECT part of the insert statement then use that view in the insert. finally, and least desirable, you can build the whole statment as a string, and use EXECUTE IMMEDIATE to run it in PL/SQL.
HTH
John -
Error while running ejbc. Fatal error from EJB Compiler ---- Error while pr
Hi!
I was deploying a test application for a session bean with sun 1 studio 5 and I started getting this message while deploying.
I had tested the bean previously and I had no problems.
I found this in the sun app server 7 release notes, but I don't understand what I'm supposed to do...
"Deployment of CMP beans fails.
The following error is thrown because there are no <query-params> entries in the container-managed persistence (CMP) bean in sun-ejb-jar.xml file:
Error while running ejbc. Fatal error from EJB Compiler ---- Error while processing CMP beans.
Solution
Even if it isn't necessary for the CMP beans, add the query-params tag for finders in the sun-ejb-jar.xml file with the empty parameters."
Here is my sun-ejb-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 7.0 EJB 2.0//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_0-0.dtd">
<sun-ejb-jar>
<enterprise-beans>
<name>GestorDoBanco_EJBModule</name>
<ejb>
<ejb-name>Cliente</ejb-name>
<jndi-name>ejb/Cliente</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/Cliente.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>ClienteAssociadoAConta</ejb-name>
<jndi-name>ejb/ClienteAssociadoAConta</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/ClienteAssociadoAConta.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>Conta</ejb-name>
<jndi-name>ejb/Conta</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/Conta.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>GestorDoBanco</ejb-name>
<jndi-name>ejb/GestorDoBanco</jndi-name>
<pass-by-reference>false</pass-by-reference>
</ejb>
<ejb>
<ejb-name>MensagemM003</ejb-name>
<jndi-name>ejb/MensagemM003</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM003.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>MensagemM003Rejeitada</ejb-name>
<jndi-name>ejb/MensagemM003Rejeitada</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM003Rejeitada.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>MensagemM012</ejb-name>
<jndi-name>ejb/MensagemM012</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM012.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>MensagemM012Rejeitada</ejb-name>
<jndi-name>ejb/MensagemM012Rejeitada</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM012Rejeitada.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>MensagemM103</ejb-name>
<jndi-name>ejb/MensagemM103</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM103.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>MensagemM112</ejb-name>
<jndi-name>ejb/MensagemM112</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM112.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>Registo</ejb-name>
<jndi-name>ejb/Registo</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/Registo.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>TransaccaoConfirmada</ejb-name>
<jndi-name>ejb/TransaccaoConfirmada</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/TransaccaoConfirmada.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>TransaccaoFinalizada</ejb-name>
<jndi-name>ejb/TransaccaoFinalizada</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/TransaccaoFinalizada.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>TransaccaoIniciada</ejb-name>
<jndi-name>ejb/TransaccaoIniciada</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/TransaccaoIniciada.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<pm-descriptors>
<pm-descriptor>
<pm-identifier>SunONE</pm-identifier>
<pm-version>1.0</pm-version>
<pm-class-generator>com.iplanet.ias.persistence.internal.ejb.ejbc.JDOCodeGenerator</pm-class-generator>
<pm-mapping-factory>com.iplanet.ias.cmp.NullFactory</pm-mapping-factory>
</pm-descriptor>
<pm-inuse>
<pm-identifier>SunONE</pm-identifier>
<pm-version>1.0</pm-version>
</pm-inuse>
</pm-descriptors>
<cmp-resource>
<jndi-name>mysqlpmanager</jndi-name>
<default-resource-principal>
<name>bes</name>
<password>besbes</password>
</default-resource-principal>
</cmp-resource>
</enterprise-beans>
</sun-ejb-jar>
Thanks in advance for any help.
Nunohttp://docs.sun.com/source/817-2175-10/decmp.html
Please go to the above docs and look thru the examples given in it.
Example 2
This query returns all products in a specified price range. It defines two query parameters which are the lower and upper bound for the price: double low, double high. The filter compares the query parameters with the price field:
"low < price && price < high"
The finder element of the sun-ejb-jar.xml file would look like this:
<finder>
<method-name>findInRange</method-name>
<query-params>double low, double high</query-params>
<query-filter>low < price && price <
high</query-filter
</finder>
I hope this hepls. In your case u just have to make it null. -
Why compilation error--when trying to access the table from itcsi schema
Hi,
when querying the table from itcsi.app iam able to see the data but used in proc saying invalid table name. Whats the problem
when declared p_app_i_old app.app_i%type----It is throwing pls-00201 error
1 Create or replace procedure Test_insert(p_app_i_old integer,
2 p_app_i_new integer,
3 p_APP_ISAC_CPT_I varchar2)
4 is
5 cursor c1 is
6 select distinct table_name,owner
7 from all_tab_columns
8 where owner = 'ITCSI' and column_name='APP_I';
9 t_tablename varchar2(25);
10 t_string varchar2(300);
11 t_num number;
12 Begin
13 For c2 in c1 loop
14 t_num := 0;
15 t_string := 'SELECT count(*) FROM ' || c2.owner ||'.'||c2.table_name||' WHERE APP_I = '||p_
16 execute immediate t_string into t_num;
17 if t_num > 0 then
18 -- dbms_output.put_line('The table name is '||c1_rec.table_name);
19 if c2.Table_name = 'APP' Then
20 INSERT INTO itcsi.App
21 SELECT p_app_i_new,
22 app_acrnym_c,
23 app_x,
24 app_desc_t,
25 app_ipads_t,
26 app_prdcn_stat_t,
27 app_prdcn_stat_d,
28 app_isd_tier_c,
29 app_bus_cont_c,
30 app_extnl_cstm_c,
31 app-ecrpt_lvl_c,
32 app_isac_cpt_i,
33 dsw_gpn_i,
34 ed_cntnt_srce_t,
35 usr_upd_uunm_i,
36 ed_upd_m
37 FROM itcsi.APP
38 WHERE app_i = p_app_i_old;
39 elsif c2.Table_name = 'APP_CETRN' Then
40 Insert into itcsi.APP_CETRN
41 select p_app_i_new,
42 app_cetrn_i,
43 app-curr_cmplnc_t,
44 app_rqr_cmplnc_t,
45 dsw_gpn_i,
46 ed_cntnt_srce_t,
47 usr_upd_uunm_i,
48 ed_upd_m
49 FROM itcsi.APP_CETRN
50 WHERE app_i = p_app_i_old;
51 elsif c2.Table_name = 'APP_GPC' Then
52 Insert into itcsi.APP_GPC
53 select p_app_i_new,
54 gpc_dpnt_x,
55 gpc_elemy_x,
56 pro_i,
57 dsw_gpn_i,
58 ed_cntnt_srce_t,
59 usr_usr_upd_uunm
60 FROM itcsi.APP_GPC
61 WHERE app_i = p_app_i_old;
62 End if;
63 End if;
64 End loop;
65 --Commit;
66* End;
SQL> /
Warning: Procedure created with compilation errors.
SQL> show errors
Errors for PROCEDURE TEST_INSERT:
LINE/COL ERROR
20/2 PL/SQL: SQL Statement ignored
37/23 PL/SQL: ORA-00942: table or view does not exist
40/2 PL/SQL: SQL Statement ignored
Thankshow do i check the grant?
if am in my own schema,how do i connect to itcsi
schema?if you are using a schema other than the ITCSI schema, you need to login as ITCSI. or if you have dba user account you can grant a privilege of
GRANT ALL on ITCSI.APPS to <other SCHEMA>; -
Compile error "table or view does not exist"
When I run the following code, I get a compile error:
Error(5,33): PL/SQL: ORA-00942: table or view does not exist
I can run the select statement by itself as an SQL query, so why does this not work in PL/SQL?
CREATE OR REPLACE
PROCEDURE PREPTEST AS
BEGIN
FOR rec IN (SELECT rep_id FROM diag.diag_rep )
LOOP
DBMS_OUTPUT.PUT_LINE(' record ID is ' || rec.rep_id);
END LOOP;
END;Within SQL the permissions can be taken from the Role that the user has.
Within PL/SQL permissions are not taken from Roles and have to be explicitly granted to the user.
GRANT the appropriate permissions to the user and the PL/SQL code will work. -
BUG: Internal compilation error, terminated with a fatal exception
After downloading the new Oracle JDeveloper 10g production, migrating all my projects, everytime I try to make/rebuild any file or package, I get the following error:
Internal compilation error, terminated with a fatal exception
This happens if use either JAVAC or OJC.
Regards,
Yaniv KundaI think the error reporting is wrong, since dbMessages.java is a translated SQLJ file, and the specified method exists in the SQLJ file around that line number - and not in the java file resulting from the translation.
Note that line 2958, in the SQLJ file, was the simple MessageHeader.Iter messageHeaderIter; line.
The definition of this class, is in a SQLJ file, which content is:
package telemessage.db.impl.iterators;
import java.sql.Timestamp;
* Contains an iterator for viewing message headers in folder view.
public class MessageHeader {
#sql public static iterator Iter (
long MESSAGE_ID,
String RANDOM_KEY,
Timestamp DATE_SENT_BY_USER,
short TYPE,
long MESSAGE_SIZE,
int ATTACHMENT_COUNT,
String SUBJECT,
String FROM_DISPLAY,
String TO_DISPLAY,
Long POLLER_ACCOUNT_ID,
long DEVICE_ID,
short DEVICE_STATE,
short DEVICE_BLOCKING,
Integer DEVICE_BLOCKED_FROM,
Integer DEVICE_BLOCKED_UNTIL,
short DEVICE_TYPE,
byte DEVICE_SUB_TYPE,
String DEVICE_VALUE,
String DEVICE_DESCRIPTION,
boolean READ,
String TEXT,
boolean ESCALATING,
int DESCENDANT_COUNT,
short STATUS
}I have pasted the original source of this method, both before and after SQLJ translation.
before:
public static MessageEntries getMessageDescendants(DBThread db, long messageID, boolean isRoot)
throws SQLException, DBException {
List messagesList = new ArrayList();
MessageHeader.Iter messageHeaderIter;
#sql [db.ctx] messageHeaderIter = {
select
m.ID MESSAGE_ID,
m.RANDOM_KEY,
m.DATE_SENT_BY_USER,
m.TYPE,
m.MESSAGE_SIZE,
m.ATTACHMENT_COUNT,
m.SUBJECT,
m.FROM_DISPLAY,
m.TO_DISPLAY,
m.POLLER_ACCOUNT_ID,
-1 DEVICE_ID,
-1 DEVICE_STATE,
-1 DEVICE_BLOCKING,
null DEVICE_BLOCKED_FROM,
null DEVICE_BLOCKED_UNTIL,
-1 DEVICE_TYPE,
-1 DEVICE_SUB_TYPE,
null DEVICE_VALUE,
null DEVICE_DESCRIPTION,
1 READ,
select tm.TEXT
from TEXT_MESSAGES tm
where
tm.MESSAGE_ID = m.ID
and rownum = 1
) TEXT,
0 ESCALATING,
0 DESCENDANT_COUNT,
-1 STATUS
from
MESSAGES m
start with
m.ID = decode(:isRoot,
1,:messageID,
select m2.ID
from MESSAGES m2
where m2.ORIGINAL_MESSAGE_ID is null
start with m2.ID = :messageID
connect by m2.ID = prior m2.ORIGINAL_MESSAGE_ID
connect by
prior m.ID = m.ORIGINAL_MESSAGE_ID
order by
m.DATE_SENT_BY_USER desc
while (messageHeaderIter.next()) {
MessageEntry messageEntry = new MessageEntry(
messageHeaderIter.FROM_DISPLAY(),
messageHeaderIter.TO_DISPLAY(),
messageHeaderIter.SUBJECT(),
messageHeaderIter.MESSAGE_SIZE(),
messageHeaderIter.RANDOM_KEY(),
messageHeaderIter.MESSAGE_ID(),
messageHeaderIter.DATE_SENT_BY_USER(),
messageHeaderIter.TYPE(),
messageHeaderIter.ATTACHMENT_COUNT(),
null, // pollerAccount
0, // senderID
null, // sentFromDevice
messageHeaderIter.READ(),
messageHeaderIter.TEXT(),
messageHeaderIter.ESCALATING(),
0, // descendantsCount - not relevant for this query
messageHeaderIter.STATUS()
messagesList.add(messageEntry);
db.checkTimeout(); // potential time-consuming loop
}//while
messageHeaderIter.close();
long[] allEntriesMessageIDs = new long[messagesList.size()];
for (int i = 0; i < allEntriesMessageIDs.length; i++) {
allEntriesMessageIDs[i] = ((MessageEntry)messagesList.get(i)).getMessageContainerID();
return new MessageEntries(messagesList, 0, allEntriesMessageIDs, null);
} // getMessageDescendants
after:
public static MessageEntries getMessageDescendants(DBThread db, long messageID, boolean isRoot)
throws SQLException, DBException {
List messagesList = new ArrayList();
MessageHeader.Iter messageHeaderIter;
/*@lineinfo:generated-code*//*@lineinfo:2959^3*/
// #sql [db.ctx] messageHeaderIter = { select
// m.ID MESSAGE_ID,
// m.RANDOM_KEY,
// m.DATE_SENT_BY_USER,
// m.TYPE,
// m.MESSAGE_SIZE,
// m.ATTACHMENT_COUNT,
// m.SUBJECT,
// m.FROM_DISPLAY,
// m.TO_DISPLAY,
// m.POLLER_ACCOUNT_ID,
// -1 DEVICE_ID,
// -1 DEVICE_STATE,
// -1 DEVICE_BLOCKING,
// null DEVICE_BLOCKED_FROM,
// null DEVICE_BLOCKED_UNTIL,
// -1 DEVICE_TYPE,
// -1 DEVICE_SUB_TYPE,
// null DEVICE_VALUE,
// null DEVICE_DESCRIPTION,
// 1 READ,
// select tm.TEXT
// from TEXT_MESSAGES tm
// where
// tm.MESSAGE_ID = m.ID
// and rownum = 1
// ) TEXT,
// 0 ESCALATING,
// 0 DESCENDANT_COUNT,
// -1 STATUS
// from
// MESSAGES m
// start with
// m.ID = decode(:isRoot,
// 1,:messageID,
// select m2.ID
// from MESSAGES m2
// where m2.ORIGINAL_MESSAGE_ID is null
// start with m2.ID = :messageID
// connect by m2.ID = prior m2.ORIGINAL_MESSAGE_ID
// connect by
// prior m.ID = m.ORIGINAL_MESSAGE_ID
// order by
// m.DATE_SENT_BY_USER desc
sqlj.runtime.ConnectionContext __sJT_connCtx = db.ctx;
if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
boolean __sJT_1 = isRoot;
long __sJT_2 = messageID;
long __sJT_3 = messageID;
synchronized (__sJT_execCtx) {
sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, dbMessages_SJProfileKeys.getKey(0), 39);
try
__sJT_stmt.setBoolean(1, __sJT_1);
__sJT_stmt.setLong(2, __sJT_2);
__sJT_stmt.setLong(3, __sJT_3);
sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
messageHeaderIter = new MessageHeader.Iter(__sJT_result);
finally
__sJT_execCtx.releaseStatement();
/*@lineinfo:user-code*//*@lineinfo:3008^3*/
while (messageHeaderIter.next()) {
MessageEntry messageEntry = new MessageEntry(
messageHeaderIter.FROM_DISPLAY(),
messageHeaderIter.TO_DISPLAY(),
messageHeaderIter.SUBJECT(),
messageHeaderIter.MESSAGE_SIZE(),
messageHeaderIter.RANDOM_KEY(),
messageHeaderIter.MESSAGE_ID(),
messageHeaderIter.DATE_SENT_BY_USER(),
messageHeaderIter.TYPE(),
messageHeaderIter.ATTACHMENT_COUNT(),
null, // pollerAccount
0, // senderID
null, // sentFromDevice
messageHeaderIter.READ(),
messageHeaderIter.TEXT(),
messageHeaderIter.ESCALATING(),
0, // descendantsCount - not relevant for this query
messageHeaderIter.STATUS()
messagesList.add(messageEntry);
db.checkTimeout(); // potential time-consuming loop
}//while
messageHeaderIter.close();
long[] allEntriesMessageIDs = new long[messagesList.size()];
for (int i = 0; i < allEntriesMessageIDs.length; i++) {
allEntriesMessageIDs[i] = ((MessageEntry)messagesList.get(i)).getMessageContainerID();
return new MessageEntries(messagesList, 0, allEntriesMessageIDs, null);
} // getMessageDescendants -
ORA-24344: Success with compilation error.
Hi, i got the following error notification mail when the DB job [runs only once in a day at 1 AM] tries to execute the following procedure.
The mail reads like this ----
"Condition Raised in: toll_partitions.recompile_invalid_objects
Short Desc: ORA-24344
Long Desc: ORA-24344: Success with compilation error.
Cause: Trigger creation did not successfully complete.
Solution: Check trigger status for all triggers created in this schema and find out which error caused the failure by querying the user_errors table for the named trigger and Trigger type.
--- end of mail ----
=== This is the procedure =====
PROCEDURE recompile_invalid_objects IS
-- Declare variables
v_ins_str VARCHAR2(2000);
cursor_handle NUMBER;
execute_feedback NUMBER;
v_unix_str VARCHAR2(200);
v_object_cnt NUMBER := 0;
-- Declare cursor objects
CURSOR curs_obj IS
SELECT decode( OBJECT_TYPE, 'PACKAGE BODY',
'ALTER PACKAGE ' || OWNER||'.'||OBJECT_NAME || ' COMPILE BODY',
'ALTER ' || OBJECT_TYPE || ' ' || OWNER||'.'||OBJECT_NAME || ' COMPILE' )
"COMP_OBJECT"
FROM dba_objects
WHERE STATUS = 'INVALID'
AND OBJECT_TYPE IN ( 'PACKAGE BODY', 'PACKAGE', 'FUNCTION', 'PROCEDURE',
'TRIGGER', 'VIEW' )
AND OWNER = USER
AND OBJECT_NAME NOT LIKE 'TOAD_PROFILER'
ORDER BY OWNER, OBJECT_TYPE, OBJECT_NAME;
BEGIN
-- Set Package/Procedure Name for email notification.
vFacility := cProcName || '.recompile_invalid_objects';
-- Select invalid object count
BEGIN
SELECT count(*)
INTO v_object_cnt
FROM dba_objects
WHERE STATUS = 'INVALID'
AND OBJECT_TYPE IN ( 'PACKAGE BODY', 'PACKAGE', 'FUNCTION', 'PROCEDURE',
'TRIGGER', 'VIEW' )
AND OWNER = USER
AND OBJECT_NAME NOT LIKE 'TOAD_PROFILER'
ORDER BY OWNER, OBJECT_TYPE, OBJECT_NAME;
-- Recompile invalid objects
IF v_object_cnt > 0 THEN
FOR i in curs_obj
LOOP
v_ins_str := i.COMP_OBJECT;
cursor_handle := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(cursor_handle,
v_ins_str,
DBMS_SQL.V7);
execute_feedback := DBMS_SQL.EXECUTE(cursor_handle);
DBMS_SQL.CLOSE_CURSOR(cursor_handle);
COMMIT;
END LOOP;
END IF;
END;
EXCEPTION
WHEN OTHERS THEN
-- Log error condition and generate email notification if needed.
toll_handle.error_condition(vFacility, toll_handle.get_ora_desc(sqlerrm),vErrorID);
END recompile_invalid_objects;
==== end of procedure ====
I got '0' count when I ran the invalid object count to see the invalid objects. I ran the following code ..and it gave me 0 value.
SELECT count(*)
FROM dba_objects
WHERE STATUS = 'INVALID'
AND OBJECT_TYPE IN ( 'PACKAGE BODY', 'PACKAGE', 'FUNCTION', 'PROCEDURE',
'TRIGGER', 'VIEW' )
AND OWNER = USER
AND OBJECT_NAME NOT LIKE 'TOAD_PROFILER'
ORDER BY OWNER, OBJECT_TYPE, OBJECT_NAME;
--- end of query ---
The count 0 means, there are no invalid objects. But it throws daily the same error notification mail at 1 AM[the time job runs]. I compiled the procedure and it reports no errors. I checked the status of the triggers and all are valid and enabled. Please suggest me. Any help in this regard will be of great help to me. Thanks in advance...Just some hints. I'm not sure if they help solving your problem.
1) Don't COMMIT inside a cursor.
2) Instead of DBMS_SQL you could use DBMS_DDL.ALTER_COMPILE, also see here: http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_ddl2.htm#1000604
3) Check if there are other jobs running during the recompile. Maybe you run into some conflicts.
4) Output the statement that creates the error. It looks like you could try to put this into your exception handler: toll_handle.error_condition(vFacility, v_ins_str,vErrorID); -
Getting compilation error while writing standalone for ddi_get8
Hi All,
I have already posted a thread regarding ddi_regs_map_setup solaris system call guidance.
[Previous Query|https://forums.oracle.com/forums/thread.jspa?threadID=2314211&tstart=0]
I am writing a standalone to use this system call.
Below is my partial standalone where i have only the declaration part:
#include <stdio.h>
#include <sys/dditypes.h>
#include <sys/conf.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
int main()
dev_info_t *dip;
uint_t rnumber;
ushort_t *dev_addr;
offset_t offset;
offset_t len;
ushort_t dev_command;
ddi_device_acc_attr_t dev_attr;
ddi_acc_handle_t handle;
dev_attr.devacc_attr_version = DDI_DEVICE_ATTR_V0;
dev_attr.devacc_attr_endian_flags = DDI_STRUCTURE_LE_ACC;
dev_attr.devacc_attr_dataorder = DDI_STRICTORDER_ACC;
return 0;
The standalone give the following compilation errors:
ddiSystemcall.c: In function `main':
ddiSystemcall.c:15: error: `ddi_device_acc_attr_t' undeclared (first use in this function)
ddiSystemcall.c:15: error: (Each undeclared identifier is reported only once
ddiSystemcall.c:15: error: for each function it appears in.)
ddiSystemcall.c:15: error: syntax error before "dev_attr"
ddiSystemcall.c:16: error: `ddi_acc_handle_t' undeclared (first use in this function)
ddiSystemcall.c:17: error: `dev_attr' undeclared (first use in this function)
ddiSystemcall.c:17: error: `DDI_DEVICE_ATTR_V0' undeclared (first use in this function)
ddiSystemcall.c:18: error: `DDI_STRUCTURE_LE_ACC' undeclared (first use in this function)
ddiSystemcall.c:19: error: `DDI_STRICTORDER_ACC' undeclared (first use in this function)
Please let me know where am i going wrong.
Thanks in advance.Hi,
there is a WebCenter forum for WebCenter releated questions: WebCenter Portal
Frank -
Help with Data Block Based on Procedure--getting compilation error
I am trying to create a datablock based on a procedure , but im getting errors in compilation:
Errors are :
1) identifier 'HSM_WSH_DEL_UTIL.DEL_TBL' must be declared
2)PL/SQL ERROR 320 at line 7, column 27
the declaration of the type of this expression is incomplete or malformed
ANy Help would be appreciated !
Heres my pkg spec and body for the data block:
CREATE OR REPLACE PACKAGE hsm_wsh_del_util IS
TYPE del_record is record
(delivery_id number);
TYPE del_tbl is table of del_record INDEX BY BINARY_INTEGER;
procedure do_query(p_del IN OUT del_tbl);
END hsm_wsh_del_util ;
CREATE OR REPLACE PACKAGE BODY hsm_wsh_del_util IS
procedure do_query(p_del IN OUT del_tbl)
IS
idx number :=1;
CURSOR DELIVERY IS
SELECT DELIVERY_ID
FROM abc_deliveries;
begin
FOR CUR IN DELIVERY LOOP
p_del(idx).delivery_id :=cur.delivery_id;
idx:= idx+1;
END LOOP;
end do_query;
END hsm_wsh_del_util;
Edited by: 981170 on Mar 13, 2013 1:08 PMHi,
Yes I did use the wizard,
I agve it the package.proc name for query.
it pulled up the field delivery ID,
Hit finish, because I do not need update/delete/inserts.
the query data source columns and arguments was defaulted correctly.
THe QUERY-PROCEDURE was built by default.
It is giving me an error though: wrong number or types of arguments in call to POPULATE_BLOCK..
DECLARE
bk_data HSM_WSH_DEL_UTIL.DEL_TBL;
BEGIN
hsm_wsh_del_util.do_query(bk_data);
PLSQL_TABLE.POPULATE_BLOCK(bk_data, 'NEW_DELIVERIES');
END; -
Getting Compilation error when used SET or MULTISET operator on nested tabl
Dear All,
I am getting Compilation error when used SET or MULTISET operator on nested tables inside a procedure.
This is working fine in other DB installations of 10g but does not work in another 10g DB.
it says "wrong number of parameter or datatype used in SET"
Can any one suggest what went wrong here?
Thanks in advance.Can any one suggest what went wrong here?Only if you would post the query and Oracle versions on both databases.
Besides, this forum deals with issues in Oracle product installation. So post this query in SQL PL/SQL forum for better response. -
Db link in trigger causes compilation error
Using Forms 10.1.2.0.2
Post-Query trigger
BEGIN
SELECT item_desc
INTO :block1.item_desc
FROM items@database100
WHERE item_code = :block1.item_code;
EXCEPTION
WHEN NO_DATA_FOUND THEN
item_code := 'No description for this item';
END;
Compilation error
Error 201: Identifier 'items@database100' must be declared.
The select statement works in Toad and Sqlplus, but giving me compilation errors in Forms 10g.
So is this a bug? If yes, is there a patch?
Can somebody please post a link to a metalink where this problem is discussed/solved?
Thanks in advance.Well, yeah, that had been considered as a work-around.
However, at this point, the decision is still to use the db link, and we are still trying to figure out how to make it work.
Edited by: vanilla.villain on May 21, 2009 11:20 AM
Maybe you are looking for
-
Keyboad not working in Safari 5.1
Hi All, There is an issue is that keyboard is not working. I am unable to input any value or interaction with flash through keyboard like arrow key or input value in textbox Currentlly i am using Safari 5.1 and the flash player version is 11.1. Pleas
-
How to make custom icc color profile work as default for all users?
Hi! I've calibrated two monitors for the machine running Mavericks OS X. I've managed to move these custom icc color profiles to ColorSync folder in HDD Library, so that that they are available for all the users. However, I cannot figure out how to m
-
Some questions for ressources provisionning.
Hello people. I'm currently playing around with LDoms on a new brilliant shiny T5520 and I have some questions about. My actual configuration is the following: - 1 T5520 Server with 32 Gb RAM and a 8 cores 64 threads Niagara T2 - 4 SAS 143 Gb disks o
-
JSP 2.0 JSTL in weblogic 8.1
Has anyone successfully using JSP 2.0 & JSTL in weblogic 8.1? We built a project using tomcat 5 and work well. The problem is weblogic 8.1 does seem to support the code. Is there any work around? Thanks
-
Hello, I am on EP7.0 NW04s ECC6.0 and want to modify the ESS Service Open Enrollment ...and I am looking for the ESS Webdynpro Application service corresponding to it. Any help would be highly appreciated.