Facing error 'client_ole2.object_type must be declare'
Hi All,
I have a form in 6i which generate data in MS-Excel and I have migrated that form into 10g,
I have configure Webutil also and attached that on my form
and it is working fine on client machine but when I try to run that form on application server
then it is not runing.
Then I search that problem on oracle below site.
http://www.oracle.com/technology/products/forms/htdocs/webutil/howto_ole.html
according to that site, I have to replace all OLE2 with CLIENT_OLE2
I have done that but it is showing an error "CLIENT_OLE2.OBJECT_TYPE" must be declared.
One of my friend send me a Excel generate 10g form, he is using that form in his company,
but there is a canvas by name WEBUTIL, I am unable to understand why is he using that.
So Please help me to solve that problem.
Thanks
hi Mohan
for the first qusetion to use client_ole2 in your code you need
1- configure webutil
if you are working on forms 10g you can find the configuration on this link
http://www.4shared.com/document/CYNnISHe/webutil_final.html
2- attach webutil.pll in your form
3- attach webutil object in your form
for the second question
we use client_ole2 instead of ole2 because client_ole2 open the file at the client machine not at the application server
for example
if you want to generate excel\word file by ole2 the code will work and the file wil be generated on the application server
but when you use the clinet_ole2 and you push the button at the client mashine the file will generated at the client machine.
that's the diffrence
Respectfully
Khaled Farouk
Similar Messages
-
I'am trying to use the WF's JAVA API to initiate a workflow process but every time I execute my class I get the same error "'WF_ENGINE.CREATEPROCESS' must be declared". I declared the selector procedure manually in the WF_REQ... PL/SQL package to return from an external JAVA class to WF and I guess that this is the right place to add the CREATEPROCESS(). My questions are - what should the WF_ENGINE.CREATEPROCESS() include? Are there any easier or automatical ways to overcome these missing packages problems? Why is the JAVA API an API when I have to add manually PL/SQL packages? Thank you.
It seems that I found the solution to my problem. The answer lies in the missing xmlplsql.jar, xmlparserv2.jar and sql files, which were not installed to database during the initial installation. Loadjava-d them and everything seems to work fine.
-
Hello!
I'm upgrading from EMGC 10.2.0.1.0 to 10.2.0.3.0. When applying the patch for Linux x86, the upgrade process works fine, but some errors appears at the "alert" log.
The errors are something like "MGMT_CNRT_TT.CLEAN_UP_OLD_TICKETS_RECS must be declared". Does anybody know why this errors appear, and what does they mean?
Thanks a lot in advance form your help!!!
HeCSa.I've got 18 jobs in dba_jobs:
SQL> select job, log_user, schema_user, broken from dba_jobs;
JOB LOG_USER SCHEMA_USER B
102 SYSMAN SYSMAN N
103 SYSMAN SYSMAN N
104 SYSMAN SYSMAN N
105 SYSMAN SYSMAN N
106 SYSMAN SYSMAN N
107 SYSMAN SYSMAN N
108 SYSMAN SYSMAN N
109 SYSMAN SYSMAN N
110 SYSMAN SYSMAN N
111 SYSMAN SYSMAN N
112 SYSMAN SYSMAN N
78 SYS SYSMAN Y
96 SYSMAN SYSMAN N
97 SYSMAN SYSMAN N
98 SYSMAN SYSMAN N
99 SYSMAN SYSMAN N
100 SYSMAN SYSMAN N
101 SYSMAN SYSMAN N
18 rows selected.
I've seen other threads mention between 16 + 20 ish.
I'll have a look at the doc you suggest.
Thanks.
Ric. -
Import Workspace Error - WWV_FLOW_API#G_ID_OFFSET' must be declared
Whenever I try to import a Workspace from an dos export file I get the following error. Any ideas?
Application Express 4.2.2.00.11
Oracle Database EE 11.2.0.2
Execution of the statement was unsuccessful. ORA-06550: line 3, column 4: PLS-00201: identifier
'WWV_FLOW_API#G_ID_OFFSET' must be declared ORA-06550: line 3, column 4: PL/SQL: Statement ignored
begin
wwv_flow_api#g_id_offset := 0;
wwv_flow_hint.g_schema := 'MYUSER';
wwv_flow_hint.check_schema_privs
end;
ORA-06550: line 3, column 4: PLS-00201: identifier 'WWV_FLOW_API#G_ID_OFFSET' must be declared ORA-06550: line 3, column 4: PL/SQL: Statement ignoredIs there a certain user that the script needs to be run as. When I just ran the script as SYS I get the following error:
SQL> @storepage.sql
WORKSPACE 2146208538698704
Creating workspace STOREPAGE...
Creating Groups...
Creating Users...
Check Compatibility...
wwv_flow_team_api.check_version(p_version_yyyy_mm_dd=>'2010.05.13');
ERROR at line 3:
ORA-06550: line 3, column 1:
PLS-00201: identifier 'WWV_FLOW_TEAM_API.CHECK_VERSION' must be declared
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64
bit Production
With the Partitioning option -
DBMS_XMLSCHEMA.REGISTERSCHEMA' must be declared
Hi,
I'm new to Oracle XMLDB. I tried to register a schema but got this error:
DBMS_XMLSCHEMA.REGISTERSCHEMA' must be declared
I installed 9.2.0.4.0 patch just last week.
Please advise. Thank you!$ sqlplus scott/tiger
SQL*Plus: Release 9.2.0.6.0 - Production on Tue Sep 12 07:52:13 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
SQL> select 1 from all_users where username = 'XDB';
1
1
SQL> select 1 from all_users where username = 'FOO';
no rows selected
SQL>The script is on the server and has to run by someone with DBA privilige -
Cannot compile form on unix. identifier 'CHECK_COMMIT' must be declared
Hello
I am getting the following error when I try to compile a form on unix. Error identifier 'CHECK_COMMIT' must be declared
Compiling procedure DISPLAY_TAB...
Compilation error on procedure DISPLAY_TAB:
PL/SQL ERROR 201 at line 12, column 1
identifier 'CHECK_COMMIT' must be declared
PL/SQL ERROR 0 at line 12, column 1
Statement ignored
PL/SQL ERROR 201 at line 32, column 7
identifier 'CHECK_COMMIT' must be declared
PL/SQL ERROR 0 at line 32, column 7
Statement ignored
Compiling procedure SET_TAB_STATUS...
No compilation errors.
Compiling procedure SELECT_REQUESTOR...
No compilation errors.
Compiling procedure SELECT_ALT_REQUESTOR...
No compilation errors.
Form not created
It seems to only occur where a program unit is calling a procedure in an attached library. All the libraries exist.
my FORMS_PATH is set to
/famisapps/fmsd/msd:/famisapps/fmsd/libs/:/apps3/famis/dev/forms:/famisapps/fmsd/forms
All the libraries are in /famisapps/fmsd/libs/
The forms are in /famisapps/fmsd/forms
The library in question is called common.pll. I have renamed it COMMON.PLL, COMMON.pll and Common.pll
Any help ideas would be apprecaited.
Davidare you getting the same error when compiling from frmcmp.sh and from builder even after setting the FORMS_PATH ?
with this make any difference FORMS_PATH
changing
/famisapps/fmsd/msd:/famisapps/fmsd/libs/:/apps3/famis/dev/forms:/famisapps/fmsd/forms
to
/famisapps/fmsd/msd:/famisapps/fmsd/libs:/apps3/famis/dev/forms:/famisapps/fmsd/forms -
Components must be declared error
Hi all,
I am facing problem in defining parameters in DT.
I have made 2 parameters named var1 and var 2 in DT correspondingly in XDO and Package also.
but when i am Viewing the Data in my report i get,Error like :
The report cannot be rendered because of an error, please contact the administrator.
Error Detail
ORA-06550: line 2, column 17:
PLS-00302: component 'VAR1' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
ORA-06550: line 3, column 17:
PLS-00302: component 'VAR2' must be declared
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored
Following is my DT and Package spec and body.
Data Template:
<dataTemplate DataSourceRef="new_dsn" name="report" description="report" defaultPackage="PK_REPORT_NEW">
<parameters>
<parameter name="VAR1" dataType="character" defaultValue=""/>
<parameter name="VAR2" dataType="character" defaultValue=""/>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
select PK_REPORT_NEW.FUNC_REPORT('10','20') from dual
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="report" source="Q1">
<element name="name" value="name"/>
<element name="designation" value="design"/>
<element name="salary" value="salary"/>
</group>
</dataStructure>
</dataTemplate>
Package Specification :
CREATE OR REPLACE PACKAGE "PK_REPORT_NEW" AS
FUNCTION FUNC_REPORT( var1 varchar2,var2 varchar2) RETURN CV_TYPES.GENTYPE;
END;
Package Body:
CREATE OR REPLACE PACKAGE BODY "PK_REPORT_NEW" AS
function FUNC_REPORT( var1 varchar2,var2 varchar2)
return cv_types.gentype as
CURSNAME CV_TYPES.GENTYPE;
BEGIN
BEGIN
OPEN CURSNAME FOR
SELECT name,var1,
var2,
FROM global_tab
END;
RETURN cursname;
end FUNC_REPORT;
END;
Please help, its Urgent.Thanks in advance
With regards,Use of a higher version of the expdp utility than the target database is know to result in this error.
See Oracle support document: PLS-00302-SET_NO_OUTLINES must be declared When Using 10.2 Export Utility #339062.1
Otherwise the target database Oracle version, utility version, and platform information is probably necessary to find the issue.
HTH -- Mark D Powell -- -
Procedure must be declared error
I am trying to create an anonymous block that will invoke both the packaged procedure and function in the package to test, using basket id 12.
Package
CREATE OR REPLACE PACKAGE order_info_pkg IS
FUNCTION C
(p_basket IN NUMBER)
RETURN VARCHAR2;
PROCEDURE basket_info_pp
(p_basket IN NUMBER,
p_shop OUT NUMBER,
p_date OUT DATE);
END;
CREATE OR REPLACE PACKAGE BODY order_info_pkg IS
FUNCTION SHIP_NAME_PF
(p_basket IN NUMBER)
RETURN VARCHAR2
IS
lv_name_txt VARCHAR2(25);
BEGIN
SELECT shipfirstname||' '||shiplastname
INTO lv_name_txt
FROM bb_basket
WHERE idBasket = p_basket;
RETURN lv_name_txt;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('Invalid basket id');
END ship_name_pf;
PROCEDURE basket_info_pp
(p_basket IN NUMBER,
p_shop OUT NUMBER,
p_date OUT DATE)
IS
BEGIN
SELECT idshopper, dtordered
INTO p_shop, p_date
FROM bb_basket
WHERE idbasket = p_basket;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('Invalid basket id');
END basket_info_pp;
END;
/Anonymous black:
VARIABLE G_IDSHOPPER NUMBER;
VARIABLE G_DATE VARCHAR2(20);
DECLARE
LV_TEXT VARCHAR2(50);
LV_IDSHOPPER NUMBER;
LV_DATE DATE;
BEGIN
LV_TEXT := ORDER_INFO_PKG.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
DBMS_OUTPUT.PUT_LINE(LV_TEXT);
End;
/Getting:
ERROR at line 6:
ORA-06550: line 6, column 14:
PLS-00201: identifier 'BASKET_INFO_PP' must be declared
ORA-06550: line 6, column 3:
PL/SQL: Statement ignored
Can anyone assist?
I have also tried this statement to test and could not get it even close to working.
VARIABLE G_SHOP NUMBER;
VARIABLE G_DATE DATE;
VARIABLE G_NAME VARCHAR2(30);
DECLARE
LV_ORDERNAME VARCHAR2(30);
BEGIN
SELECT TO_CHAR(DTORDERED)
INTO :G_DATE
FROM BB_BASKET
WHERE IDBASKET = P_BASKET;
SELECT ORDER_INFO_PKG.BASKET_INFO_PP(12, :G_SHOP, :G_DATE)
INTO LV_ORDERNAME
FROM BB_BASKET
WHERE IDBASKET = P_BASKET;
DBMS_OUTPUT.PUT_LINE(LV_ORDERNAME, :G_SHOP, :G_DATE);
END;
/ERROR at line 7:
ORA-06550: line 7, column 22:
PL/SQL: ORA-00904: "P_BASKET": invalid identifier
ORA-06550: line 4, column 1:
PL/SQL: SQL Statement ignored
ORA-06550: line 8, column 23:
PL/SQL: ORA-00904: : invalid identifier
ORA-06550: line 8, column 1:
PL/SQL: SQL Statement ignored
ORA-06550: line 12, column 1:
PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
ORA-06550: line 12, column 1:
PL/SQL: Statement ignored
Edited by: user13842802 on Aug 6, 2012 5:53 PMThanks for your response.
SQL> DECLARE
2 LV_TEXT VARCHAR2(50);
3 LV_IDSHOPPER NUMBER;
4 LV_DATE DATE;
5 BEGIN
6 ORDER_INFO_PKG.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
7 LV_TEXT := order_info_pkg.C( 12 );
8 DBMS_OUTPUT.PUT_LINE(LV_TEXT);
9 End;
10 /
LV_TEXT := order_info_pkg.C( 12 );
ERROR at line 7:
ORA-06550: line 7, column 29:
PLS-00302: component 'C' must be declared
ORA-06550: line 7, column 3:
PL/SQL: Statement ignoredIf i change line 7, to list it out:
SQL> DECLARE
2 LV_TEXT VARCHAR2(50);
3 LV_IDSHOPPER NUMBER;
4 LV_DATE DATE;
5 BEGIN
6 ORDER_INFO_PKG.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
7 LV_TEXT := order_info_pkg.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
8 DBMS_OUTPUT.PUT_LINE(LV_TEXT);
9 End;
10 /
LV_TEXT := order_info_pkg.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
ERROR at line 7:
ORA-06550: line 7, column 14:
PLS-00222: no function with name 'BASKET_INFO_PP' exists in this scope
ORA-06550: line 7, column 3:
PL/SQL: Statement ignoredIf I leave just the 12 value in, I get error:
ERROR at line 7:
ORA-06550: line 7, column 14:
PLS-00306: wrong number or types of arguments in call to 'BASKET_INFO_PP'
ORA-06550: line 7, column 3:
PL/SQL: Statement ignored -
Error while import into 10g --- 'DBMS_EXPORT_EXTENSION' must be declared
Hi,
We are in a process to upgrade our database from Oracle 8.1.7 to Oracle 10.2.0
We are upgrading our database and on the different machine.
Setup pre-requsities for 10g rel2 has been done.
And now I am import the data from the Export File (dump file).
I am importing data schema wise one by one using Database Control EM available in 10g.
Data of two schemas has been succesfully been imported.
Now when i am trying to import the data for third schema i am gettting the following errors as below.
Import parameters that i have used ::
FILE=E:\EXP_FULL_PAY.DMP
LOG=E:\IMPORT.LOG
FROMUSER=PAY02
TOUSER=PAY02
TABLES=SYSMST
GRANTS=y
INDEXES=y
ROWS=y
CONSTRAINTS=y
IGNORE=y
SKIP_UNUSABLE_INDEXES=y
DATAFILES=n
Error Details ::
Username:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V08.01.07 via conventional path
Warning: the objects were exported by HP, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
import server uses WE8ISO8859P1 character set (possible charset conversion)
export client uses WE8ISO8859P1 character set (possible charset conversion)
export server uses WE8ISO8859P1 NCHAR character set (possible ncharset conversion)
. importing PAY's objects into PAY
. . importing table "SYSMST" 2 rows imported
IMP-00058: ORACLE error 6550 encountered
ORA-06550: line 1, column 11:
PLS-00302: component 'DBMS_EXPORT_EXTENSION' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_EXPORT_EXTENSION.SET_IMP_SKIP_INDEXES_OFF; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 1, column 12:
PLS-00302: component 'DBMS_EXPORT_EXTENSION' must be declared
ORA-06550: line 1, column 8:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_EXPORT_EXTENSION.SET_IMP_SKIP_INDEXES_OFF; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 1, column 12:
PLS-00302: component 'DBMS_EXPORT_EXTENSION' must be declared
ORA-06550: line 1, column 8:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_EXPORT_EXTENSION.SET_IMP_SKIP_INDEXES_OFF; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 1, column 12:
PLS-00302: component 'DBMS_EXPORT_EXTENSION' must be declared
ORA-06550: line 1, column 8:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_EXPORT_EXTENSION.SET_IMP_SKIP_INDEXES_OFF; END;"
This error goes into the infinite loop and at last shows the message as increase the flash recovery area size.
Kindly provide the guidance...
RegardsHi Nichols,
As u have told that some reserved word must have been used as a database object name, but as i have also mentioned the name of table that is to be imported.
i.e. "SYSMST" which i think so, it cannot be a reserved word
Neither i can change the table name as it may generate further complications.
And also when i havae refresh the Database Control EM page I am getting the following error ::
Archiver is unable to archive a redo log because the output device is full or unavailable.
Agent Connection to Instance :
Status:: Failed
Details ORA-00257:: archiver error. Connect internal only, until freed. (DBD ERROR: OCISessionBegin
Kindly guide...
Regards
Milin
Message was edited by:
user640001 -
Error: Element type "stateful-session-descriptor" must be declared ?
Hi,
while running the ant i am getting this error.
jar_ejb:
[jar] Building jar: D:\bdms\src\ejbdist\std_ejb_bdms_eapm.jar
ejbc:
[java]
[java] ERROR: ejbc found errors while parsing the descriptor for src/ejbdis
t/std_ejb_bdms_eapm.jar:
[java]
[java]
[java]
[java] ERROR: Error from ejbc: Error parsing file 'META-INF/weblogic-ejb-ja
r.xml' at line: 394 column: 55. Element type "stateful-session-descriptor" must
be declared.
[java]
[java]
[java] ERROR: ejbc couldn't load descriptor from jar
[java]
[java] Java Result: 1
Here with i have included the ejb-jar.xml & weblogic-ejb-jar.xml lines. I am using a service locator to call the ejb. please help me.
ejb-jar.xml
<session>
<ejb-name>ValueListHandlerEJB</ejb-name>
<home>com.pagination.ValueListHandlerEJBHome</home>
<remote>com.pagination.ValueListHandlerEJBRemote</remote>
<ejb-class>com.pagination.ValueListHandlerEJB</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
<resource-ref>
<res-ref-name>jdbc/DataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</session>
weblogic-ejb-jar.xml
<weblogic-enterprise-bean>
<ejb-name>ValueListHandlerEJB</ejb-name>
<stateful-session-descriptor>
<stateful-session-cache>
<max-beans-in-cache>100</max-beans-in-cache>
<idle-timeout-seconds>600</idle-timeout-seconds>
</stateful-session-cache>
</stateful-session-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>
jdbc/DataSource
</res-ref-name>
<jndi-name>
adslDataSource
</jndi-name>
</resource-description>
</reference-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>ValueListHandlerEJB</jndi-name>
</weblogic-enterprise-bean>but a bean's deployment descriptor lies in the
meta-inf folder, right?Sorry, my mistake. I was thinking of WAR files while writing. Thanks for pointing out.
Regards,
$ Carol. -
"caching-descriptor" must be declared error when using ejbc on WLS6.0 with EJB 1.1
I'm compiling with ejbc an entity bean .jar. Using WLS 6.0. In the ejb-jar.xml,
I've set version to EJB 1.1. I've made sure the weblogic-ejb-jar.xml has the caching-descriptor
element defined (used to work with WLS 5.1).
Thanks.
Sayid
Error is : org.xml.sax.SAXParseException: Element type "caching-descriptor" must
be declare d. at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java
:1008) at weblogic.apache.xerces.validators.common.XMLValidator.reportRecoverab
leXMLError(XMLValidator.java:1236) at weblogic.apache.xerces.validators.common.XMLValidator.validateElement
AndAttributes(XMLValidator.java:2673) at weblogic.apache.xerces.validators.common.XMLValidator.callStartElemen
t(XMLValidator.java:818) at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher
.dispatch(XMLDocumentScanner.java:1222) at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu
mentScanner.java:380) at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:128 ) at
weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjb JarLoader_WLS600.java:455)
at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:9 3) at
weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:4 7) at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:3
8) at weblogic.ejbc20.runBody(ejbc20.java:665) at weblogic.utils.compiler.Tool.run(Tool.java:81)
at weblogic.ejbc.main(ejbc.java:20) --------------- nested within: ------------------
weblogic.xml.process.XMLParsingException: Element type "caching-descriptor" must
be declared. - with nested exception: [org.xml.sax.SAXParseException: Element
type "caching-descriptor" must be declar ed.] Line: 8 Column: 27 at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:132
) at weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjb JarLoader_WLS600.java:455)
at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:9 3) at
weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:4 7) at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:3
8) at weblogic.ejbc20.runBody(ejbc20.java:665) at weblogic.utils.compiler.Tool.run(Tool.java:81)
at weblogic.ejbc.main(ejbc.java:20) ERROR: weblogic.xml.process.XMLParsingException:
Element type "caching-descripto r" must be declared. - with nested exception:
[org.xml.sax.SAXParseException: Element type "caching-descriptor" must be declar
ed.] Line: 8 Column: 27but a bean's deployment descriptor lies in the
meta-inf folder, right?Sorry, my mistake. I was thinking of WAR files while writing. Thanks for pointing out.
Regards,
$ Carol. -
Cursor Error in trigger - Statement Ignored/identifier must be declared PLS
I have been asked to implement a trigger and believe I have the code complete but am getting a final error on the compile. I have been running in circles for a day trying to resolve my issue. I have no PL/SQL knowlege so have been pulling from a book and google. I have three Cursors defined and the third compiles fine, the first two give the below error though I can't see a significant difference between the three. I can't help but think it is something stupid I am not seeing but I am at a loss.
If I comment out the reference to the cursor it will compile with the cursor definition but as soon as I add the Open statement the errors below appear.
Any help would be greatly appreciated as my head is getting sore.
Thanks
Mike
Error(30,13): PL/SQL: Statement ignored
Error(30,20): PLS-00201: identifier 'CURSORGETFROMDISTMAKRERS' must be declared
Error(51,13): PL/SQL: Statement ignored
Error(51,20): PLS-00201: identifier 'CURSORGETTODISTMAKRERS' must be declared
-- Table I am writing to
create table IMSV7.CTRANSWODISTMARK (
WORKORDERKEY INTEGER,
DISTMARKFROM NUMBER (9,4),
DISTMARKFROMATTRIBUTE VARCHAR (10),
DISTMARKTO NUMBER (9,4),
DISTMARKTOATTRIBUTE VARCHAR (10)
-- Excerpt from the HISTORY table I am placing the trigger against
COMPKEY NUMBER (9,0)
DISTFROMFT FLOAT
DISTTOFT FLOAT
HISTKEY NUMBER (9,0)
-- Trigger code
CREATE OR REPLACE TRIGGER MaintainCTRANSWODISTMARK
AFTER INSERT or UPDATE of DISTFROMFT, DISTTOFT ON IMSV7.HISTORY
REFERENCING NEW as NewWO
FOR EACH ROW
BEGIN
DECLARE
-- Declare cursors
CURSOR CursorGetFromDistMarkers (WOCompKey IN NUMBER, WODistFromFT IN FLOAT) IS
SELECT ATTRCODE, DISTFROMFT, MARKERFROM from RWATTRDF DF, RWATTR A
where WOCompkey = A.COMPKEY AND DF.ATTRKEY = A.ATTRKEY and DF.ATTRTYPE = 'DISTMARK'
and WODistFromFT >= DISTFROMFT and WODistFromFT <= DISTTOFT
order by A.EFFDATE DESC, DISTFROMFT DESC;
FromDistanceMarker CursorGetFromDistMarkers%ROWTYPE;
CURSOR CursorGetToDistMarkers (WOCompKey IN NUMBER, WODistToFT IN FLOAT) IS
SELECT ATTRCODE, DISTFROMFT, MARKERFROM from RWATTRDF DF, RWATTR A
where WOCompkey = A.COMPKEY AND DF.ATTRKEY = A.ATTRKEY and DF.ATTRTYPE = 'DISTMARK'
and WODistToFT >= DISTFROMFT and WODistToFT <= DISTTOFT
order by A.EFFDATE DESC, DISTFROMFT DESC;
ToDistanceMarker CursorGetToDistMarkers%ROWTYPE;
CURSOR CursorGetCTRANSWODistMark (WOHistKey IN NUMBER) IS
SELECT WORKORDERKEY from CTRANSWODISTMARK
where WORKORDERKEY = WOHistKey;
CTRANSWODistMark CursorGetCTRANSWODistMark%ROWTYPE;
varDistmarkFrom NUMBER;
varDistmarkFromAttribute VARCHAR2(10);
varDistmarkTo NUMBER;
varDistmarkToAttribute VARCHAR2(10);
BEGIN
-- Process From measurement
IF NOT CursorGetFromDistMakrers%ISOPEN
THEN
OPEN CursorGetFromDistMarkers(:NewWO.COMPKEY, :NewWO.DISTFROMFT);
END IF;
FETCH CursorGetFromDistMarkers INTO FromDistanceMarker;
IF CursorGetFromDistMarkers%NOTFOUND
THEN
-- No distance markers found, use MILES
varDistmarkFrom := :NewWO.DISTFROMFT / 5280;
varDistmarkFromAttribute := 'MILES';
ELSE
-- Found a distance marker, convert to its units and use those
-- Distance is the Marker start distance plus the offset from that start of the marker
varDistmarkFrom := FromDistanceMarker.MARKERFROM + :NewWO.DISTFROMFT - FromDistanceMarker.DISTFROMFT;
varDistmarkFromAttribute := FromDistanceMarker.ATTRCODE;
END IF;
CLOSE CursorGetFromDistMarkers;
-- Process To measurement
IF NOT CursorGetToDistMakrers%ISOPEN
THEN
OPEN CursorGetToDistMarkers(:NewWO.COMPKEY, :NewWO.DISTTOFT);
END IF;
FETCH CursorGetToDistMarkers INTO ToDistanceMarker;
IF CursorGetToDistMarkers%NOTFOUND
THEN
-- No distance markers found, use MILES
varDistmarkTo := :NewWO.DISTTOFT / 5280;
varDistmarkToAttribute := 'MILES';
ELSE
-- Found a distance marker, convert to its units and use those
-- Distance is the Marker start distance plus the offset from that start of the marker
varDistmarkTo := ToDistanceMarker.MARKERFROM + :NewWO.DISTTOFT - ToDistanceMarker.DISTFROMFT;
varDistmarkToAttribute := ToDistanceMarker.ATTRCODE;
END IF;
CLOSE CursorGetToDistMarkers;
-- Check for existing record to know if we should add or update
IF NOT CursorGetCTRANSWODistMark%ISOPEN
THEN
OPEN CursorGetCTRANSWODistMark(:NewWO.HISTKEY);
END IF;
FETCH CursorGetCTRANSWODistMark INTO CTRANSWODistMark;
IF CursorGetCTRANSWODistMark%NOTFOUND
THEN
-- Record does not exist, add one
Insert into CTRANSWODISTMARK (WORKORDERKEY, DISTMARKFROM, DISTMARKFROMATTRIBUTE, DISTMARKTO, DISTMARKTOATTRIBUTE)
values (:NewWO.HISTKEY, varDistmarkFrom, varDistmarkFromAttribute, varDistmarkTo, varDistmarkToAttribute);
ELSE
-- Existing record, update it
Update CTRANSWODISTMARK set DISTMARKFROM = varDistmarkFrom, DISTMARKFROMATTRIBUTE = varDistmarkFromAttribute,
DISTMARKTO = varDistmarkTo, DISTMARKTOATTRIBUTE = varDistmarkToAttribute
Where WORKORDERKEY = :NewWO.HISTKEY;
END IF;
END;
END;
run;
show errors trigger MaintainCTRANSWODISTMARK;the cursor is mispelled
IF NOT CursorGetFromDistMakrers%ISOPENchange it to:
IF NOT CursorGetFromDistMarkers%ISOPEN -
Error compiling PHOTO_ALBUM BODY : "put and GetMetadata must be declared"
ANY IDEAS on THIS -?!!!
I ran the scripts for PL/SQL Web Toolkit Sample Application (10g Release 1) and all was compiled OK for "demouser" except for
PHOTO_ALBUM BODY:
I get the error
Error(470,5): PL/SQL: Statement ignored
Error(470,9): PLS-00302: component 'PUTMETADATA' must be declared
Error(739,7): PL/SQL: Statement ignored
Error(739,26): PLS-00302: component 'GETMETADATA' must be declared
We (me and the sys/adm) cannot figured out why this is happening ---
Could it be a problem of demouser privileges with Intermedia installation?!!
Or a problem to the metadata schema references?!
Please if you have run into this before or have any ideas; any help will be really appreciated -- We've been on this 2 days !----Those undeclared procedures belong to the 10g Release 2 version of the demo.
This link
points to the 10gR2 demo.
<p>
If you are using a 10gR1 database, and you have installed the interMedia component from the companion CD (this contains the interMedia demos as well as the NCOMP libraries for performance - highly recommended) then you can find the 10gR1 version of the photo album demo at $OH/ord/http/demo/ordplsqlwtk -
WEBUTIL_FILE.Get File Separator must be declared error in oracle 10g
hi,
when i compile the forms with attached webutil.pll , i got the error "WEBUTIL_FILE.Get File Separator must be declared error in oracle 10g".but i have compiled the webutil.pll its fine.Please tell me th solution.
Thanks,
Maranhi
hmmmm the latest version of webutil.pll you downloaded from where? forms version 10.1.2... comes with the latest version of .pll.
what is the webutil version?
sarah -
PLS-00201 identifier must be declared
Hi All,
Can any one please help me regarding this error.
I am getting the PLS-00201 identifier tree_sorting must be declared at the line " Tree_Sorting(1, 0); ".
if i comment the " Tree_Sorting(1, 0); " at pkgfc_gi.v_cphase := '01-13'; and uncomment the " Tree_Sorting(1, 0); " at pkgfc_gi.v_cphase := '01-09' then the procedure is compiling successfully; This is my stored procedure.
Please help me in solving this.
CREATE OR REPLACE PACKAGE BODY FA_Main AS
/*-------------------------------- Calcul_FA -------------------------------*/
FUNCTION Calcul_FA (
p_client_group IN tfc_stc_client_groups.s_client_group%TYPE DEFAULT NULL,
p_admin_group IN tfc_stc_clients.c_admin_group %TYPE DEFAULT NULL,
p_client IN tfc_stc_clients.s_client %TYPE DEFAULT NULL,
p_report_group IN tfc_stc_report_groups.g_classification%TYPE DEFAULT NULL,
p_contract IN tfc_stc_contracts.s_contract %TYPE DEFAULT NULL,
p_fa_typ IN tfc_prm_fa_master.c_fa_typ %TYPE DEFAULT NULL,
p_fa IN tfc_prm_fa_master.s_fa %TYPE DEFAULT NULL,
p_beg_period IN DATE DEFAULT NULL,
p_end_period IN DATE DEFAULT NULL,
p_y_all_ok IN VARCHAR2 DEFAULT 'Y',
p_y_estimate IN VARCHAR2 DEFAULT 'N',
p_est_date IN DATE DEFAULT NULL)
RETURN NUMBER IS
----------------------------------------------------------------------- CURSEURS
-- List of FA to calculate --
CURSOR c_fa IS
SELECT pfm.s_fa s_fa, pfm.c_fa_typ c_fa_typ, sct.s_contract s_contract, srg.g_classification g_classification,
scl.s_client s_client, scl.c_admin_group c_admin_group, scg.s_client_group s_client_group
FROM tfc_prm_fa_master pfm, tfc_stc_contracts sct, tfc_stc_clients scl, tfc_stc_client_groups scg, tfc_stc_report_groups srg
WHERE pfm.c_fa_structure_typ = 'PARM'
AND ((p_fa IS NOT NULL AND pfm.s_fa = p_fa ) OR p_fa IS NULL)
AND ((p_fa_typ IS NOT NULL AND pfm.c_fa_typ = p_fa_typ ) OR p_fa_typ IS NULL)
AND ((p_contract IS NOT NULL AND sct.s_contract = p_contract ) OR p_contract IS NULL)
AND ((p_report_group IS NOT NULL AND srg.g_classification LIKE p_report_group||'%') OR p_report_group IS NULL)
AND ((p_client IS NOT NULL AND scl.s_client = p_client ) OR p_client IS NULL)
AND ((p_admin_group IS NOT NULL AND scl.c_admin_group = p_admin_group ) OR p_admin_group IS NULL)
AND ((p_client_group IS NOT NULL AND scg.s_client_group = p_client_group ) OR p_client_group IS NULL)
AND (NVL(p_client_group,NVL(p_client,NVL(p_contract, p_fa))) IS NOT NULL OR p_admin_group IS NOT NULL OR p_report_group IS NOT NULL)
AND (p_beg_period IS NULL OR ((p_beg_period IS NOT NULL AND pfm.d_first_calculation IS NOT NULL AND p_beg_period >= pfm.d_first_calculation) OR pfm.d_first_calculation IS NULL))
AND (p_end_period IS NULL OR ((p_end_period IS NOT NULL AND pfm.d_end_calculation IS NOT NULL AND p_end_period <= pfm.d_end_calculation) OR pfm.d_end_calculation IS NULL) OR (p_end_period IS NOT NULL AND sct.d_inception <= p_end_period ))
AND sct.s_contract = pfm.fk_contract
AND scl.s_client = sct.fk_client
AND scg.s_client_group (+)= scl.fk_client_group
AND srg.s_report_group (+)= sct.fk_report_group
AND pfm.y_fee_to_calculate = 'Y'
AND sct.c_contract_status = 'ACTIVE'
AND ROWNUM < 2;
BEGIN
COMMIT;
IF pkgfc_faed.v_y_estimate = 'Y' THEN
INSERT INTO tfc_log_application_master (
s_log, l_log,
d_t_begin_task,
c_application_task, c_task_status,
g_key_0, g_key_1,
g_key_2, g_key_3,
g_key_4, g_key_5,
g_key_6, g_key_7,
g_key_8, g_key_9)
VALUES (
pkgfc_faed.v_s_log, v_l_log, SysDate,
'ESTIMATE', 'RUNNING',
TRIM(TO_CHAR(p_client_group)), p_admin_group,
TRIM(TO_CHAR(p_client)), p_report_group,
TRIM(TO_CHAR(p_contract)), p_fa_typ,
TRIM(TO_CHAR(p_fa)), TO_CHAR(p_beg_period,'DD/MM/YYYY'),
TO_CHAR(p_end_period,'DD/MM/YYYY'), v_y_all_ok);
ELSE
INSERT INTO tfc_log_application_master (
s_log, l_log,
d_t_begin_task,
c_application_task, c_task_status,
g_key_0, g_key_1,
g_key_2, g_key_3,
g_key_4, g_key_5,
g_key_6, g_key_7,
g_key_8, g_key_9)
VALUES (
pkgfc_faed.v_s_log, v_l_log,
SysDate,
'CALCULATION', 'RUNNING',
TRIM(TO_CHAR(p_client_group)), p_admin_group,
TRIM(TO_CHAR(p_client)), p_report_group,
TRIM(TO_CHAR(p_contract)), p_fa_typ,
TRIM(TO_CHAR(p_fa)), TO_CHAR(p_beg_period,'DD/MM/YYYY'),
TO_CHAR(p_end_period,'DD/MM/YYYY'), v_y_all_ok);
END IF;
v_return := pkgfc_faed.v_s_log;
COMMIT;
-- Loop on all Fee/Alloc to calculate --
-- Added by Santhakumar
BEGIN
INSERT INTO tmp_prm_fa_details(
SELECT USERENV('SESSIONID') SESSION_ID,
LEVEL CUR_LEVEL,
(CASE WHEN (SELECT MAX(LEVEL)
FROM tfc_prm_fa_details fad2
WHERE fad2.fk_fa = fad1.fk_fa
START WITH fad2.s_fa_detail=fad1.s_fa_detail
CONNECT BY PRIOR fad2.s_fa_detail = fad2.fk_fa_detail_upper_level) > 1
THEN LEVEL + 1
ELSE LEVEL
END) NEXT_LEVEL,
fad1.s_fa_detail,
fad1.fk_fee_alloc_detail,
fad1.fk_fa,
fad1.l_fa_detail,
fad1.g_fa_4calculation,
fad1.fk_fa_detail_upper_level,
fad1.fk_third_party,
fad1.g_consolidation_rule,
fad1.c_fa_calculation_typ,
fad1.fk_aggregation_rule,
fad1.fk_scale,
fad1.g_scale_band_unit,
fad1.g_value,
fad1.n_detail_order,
fad1.y_ref_amount_equal_total_aum,
fad1.c_validation_status,
fad1.g_val_by,
fad1.d_t_val,
fad1.g_ins_by,
fad1.d_t_ins,
fad1.g_upd_by,
fad1.d_t_upd
FROM tfc_prm_fa_details fad1
START WITH fad1.fk_fa_detail_upper_level IS NULL
CONNECT BY PRIOR fad1.s_fa_detail = fad1.fk_fa_detail_upper_level
END;
-- Added by Santhakumar
pkgfc_gi.v_cphase := '00-02';
FOR v_fa IN c_fa LOOP
pkgfc_gi.v_cphase := '01-08';
DECLARE
-- Tree Sorting Recursive Procedure --
PROCEDURE Tree_Sorting (p_level IN NUMBER,p_fk_fa_detail_upper_level IN NUMBER) IS
-- Cursor to retrieve data at current level --
CURSOR c_tfd IS
SELECT *
FROM tfc_tmp_fa_details tfd
WHERE tfd.fk_fa = v_fa.s_fa
AND tfd.session_id = USERENV('SESSIONID')
AND tfd.cur_level = p_level
AND tfd.fk_fa_detail_upper_level = p_fk_fa_detail_upper_level
ORDER BY tfd.n_detail_order ASC;
Error_Found_in_Tree_Sorting EXCEPTION;
-------------------------------------------------------------------------- BEGIN
BEGIN
FOR v_tfd IN c_tfd LOOP
pkgfc_dts.put_nline('Level : '||TO_CHAR(v_tfd.cur_level)||' - '||v_tfd.g_fa_4calculation||' - '||TO_CHAR(p_fk_fa_detail_upper_level));
pkgfc_gi.v_cphase := '01-14';
pkgfc_faed.v_nb_fa_det := pkgfc_faed.v_nb_fa_det + 1;
pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det) := v_tfd;
pkgfc_faed.v_nb_max_level := GREATEST(pkgfc_faed.v_nb_max_level,
pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).cur_level);
-- Break the link with Root Record --
IF (pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).fk_fa_detail_upper_level = 0) THEN
pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).fk_fa_detail_upper_level := NULL;
END IF;
IF (v_tfd.cur_level < v_tfd.next_level) THEN
pkgfc_gi.v_cphase := '01-15';
Tree_Sorting(v_tfd.next_level, v_tfd.s_fa_detail);
END IF;
IF (pkgfc_gi.v_cretour <> '0') THEN
RAISE Error_Found_in_Tree_Sorting;
END IF;
END LOOP;
---------------------------------------------------------------------- EXCEPTION
EXCEPTION
WHEN Error_Found_in_Tree_Sorting THEN
IF (c_tfd%ISOPEN ) THEN CLOSE c_tfd ; END IF;
WHEN OTHERS THEN
IF (c_tfd%ISOPEN ) THEN CLOSE c_tfd ; END IF;
pkgfc_gi.v_cretour := '9'; -- When Others Error
pkgfc_gi.v_cproc := 'FA_Engine_Main.Tree_Sorting';
pkgfc_gi.v_mess := SUBSTR(SQLERRM(SQLCODE), 1, 255);
pkgfc_dts.put_nline('Err : '||pkgfc_gi.v_cretour||' - '||pkgfc_gi.v_cphase||' - '||pkgfc_gi.v_cproc||' - '||pkgfc_gi.v_mess);
---------------------------------------------------------------------------- END
END Tree_Sorting;
PROCEDURE Autonomous_0108 IS
PRAGMA AUTONOMOUS_TRANSACTION; -- Permit Commit/Rollback independently of the current transaction
BEGIN
-- Clean Temporary Table --
pkgfc_gi.v_cphase := '01-09';
DELETE tfc_tmp_fa_details WHERE session_id NOT IN (SELECT DISTINCT audsid FROM all_sessions);
COMMIT;
--Tree_Sorting(1, 0);
END Autonomous_0108;
BEGIN
Autonomous_0108;
END;
-- Get FA Details from Prm_Fa_Details --
pkgfc_gi.v_cphase := '01-10';
select count(1) into v_num from tfc_tmp_fa_details;
Dbms_output.put_line('first' || v_num);
Dbms_output.put_line('Session Id --> ' || USERENV('SESSIONID'));
INSERT INTO tfc_tmp_fa_details (SELECT * FROM tmp_prm_fa_details WHERE fk_fa = v_fa.s_fa);
-- Insert a Root Record for Tree Sorting purpose --
pkgfc_gi.v_cphase := '01-11';
INSERT INTO tfc_tmp_fa_details (
session_id, cur_level, next_level,
s_fa_detail, fk_fa, fk_fa_detail_upper_level)
VALUES (
USERENV('SESSIONID'), 0, 1,
0, v_fa.s_fa, NULL);
-- Link the Level 1 with Root Level (0) --
pkgfc_gi.v_cphase := '01-12';
UPDATE tfc_tmp_fa_details
SET fk_fa_detail_upper_level = NVL(fk_fa_detail_upper_level, 0)
WHERE fk_fa = v_fa.s_fa
AND s_fa_detail > 0
AND session_id = USERENV('SESSIONID');
-- Sort FA Details Tree according n_detail_order field --
pkgfc_gi.v_cphase := '01-13';
Tree_Sorting(1, 0);
-- Clean Temporary Table --
pkgfc_gi.v_cphase := '01-16';
WHEN OTHERS THEN
dbms_output.put_line('OTHERS');
pkgfc_gi.eev_cur := v_eev_cur;
v_loop_ret := -1;
IF (c_fa%ISOPEN ) THEN CLOSE c_fa ; END IF;
IF (c_cli%ISOPEN) THEN CLOSE c_cli; END IF;
IF (c_ctr%ISOPEN) THEN CLOSE c_ctr; END IF;
IF (c_fam%ISOPEN) THEN CLOSE c_fam; END IF;
IF (c_cad%ISOPEN) THEN CLOSE c_cad; END IF;
IF (c_fad%ISOPEN) THEN CLOSE c_fad; END IF;
pkgfc_gi.v_cretour := '9'; -- When Others Error
pkgfc_gi.v_cproc := 'FA_Engine_Main.Calcul_FA';
pkgfc_gi.v_mess := SUBSTR(SQLERRM(SQLCODE), 1, 255);
pkgfc_dts.put_nline('Err : '||pkgfc_gi.v_cretour||' - '||pkgfc_gi.v_cphase||' - '||pkgfc_gi.v_cproc||' - '||pkgfc_gi.v_mess);
-------------------------------------------------------------------- END
END;
END LOOP;
return(v_return);
END Calcul_FA;
END FA_Main;
/It looks to me like procedure 'tree_sorting' is declared as a local procedure within a nested BEGIN .. END block (which spans lines 288 - 438). You cannot call this procedure outside that block, it is out of scope - you would have to move it to a higher scope.
It would help if you posted something remotely readable in future.
Maybe you are looking for
-
Fax does not work on hp officejet pro 8600
I have an hhp officejet pro 8600. I purchased aofficemax essentials kit for wireless network.THE WIRELESS IS 802.3 iT SHOWS THENETWORK AS READY AND THE ACTIVE CONNECTION AS WIRELESS It will dial the # but will not scan the documents!
-
HP READ: YOUR PRODUCTS ARE FAULTY & YOUR TECH SUPPORT IS A JOKE!
1 Year ago I bought an HP DV6 Intel Core 2 Duo Laptop for roughly $1000. The Unit immediately started having problems! I bought the laptop from CostCo. They literally waited until the day after the 90-Day Return Policy expired to call me back after I
-
Connecting Enterprise Directly to Pervasive
Good Afternoon, I'm working as a remote consultant with a firm that wants me to find out about running pervasive direct from the BO Server. They are migrating from simple client server with an Enterprise Server to Data Warehousing. Right now though
-
How to set proxy server name in iasenv.ksh?
How to set the proxy server host and port in the JAVA_ARGS list in the iasenv.ksh file? IAS 6.5 is the server being used.
-
I have setup my office calendar using CalDev to my office computer and almost everything works as expected. I have "On My Mac" calendars and "CalDev" calendars on both my workstations (OSX 10.6.8) and on my server (OSX 10.8.2) user accounts. When I