Error while compiling the procedure
Hi all,
When i compiled a procedure i m getting the following error.
The following error has occurred:
PROCEDURE LIMSARCT.DELETE_OLD_DATA
On line: 62
PLS-00201: identifier 'SYS.DBMS_LOCK' must be declared
Details:
PROCEDURE LIMSARCT.DELETE_OLD_DATA
On line: 62
PLS-00201: identifier 'SYS.DBMS_LOCK' must be declared
Kindly help me on the issue.
Thanks.
Hi,
Thanks for ur response.
CREATE OR REPLACE Procedure DELETE_OLD_DATA
(table_name IN VARCHAR2,
time_var IN VARCHAR2,
max_age IN NUMBER)
IS
-- Purpose: slowly delete old data (older than MAX_AGE days old) from a table
-- using dynamic SQL. Input parameter TIME_VAR is the key date field in the table.
-- MODIFICATION HISTORY
-- Person Date Comments
-- M Panarusky 00-11-13 procedure created
cursor_id integer;
sql_string varchar2(100);
return_var integer;
oldest_date date;
age_var number;
TIME_INCREMENT constant number := 0.004; -- about 6 minutes
BEGIN
-- open a cursor
cursor_id := DBMS_SQL.OPEN_CURSOR;
-- determine age of oldest record in table
sql_string := 'select min(' || time_var || ') from ' || table_name;
-- parse the cursor and define the output column
DBMS_SQL.PARSE(cursor_id, sql_string, DBMS_SQL.NATIVE);
DBMS_SQL.DEFINE_COLUMN(cursor_id, 1, oldest_date);
-- execute the cursor and retrieve the output
return_var := DBMS_SQL.EXECUTE_AND_FETCH(cursor_id);
DBMS_SQL.COLUMN_VALUE(cursor_id, 1, oldest_date);
-- calculate age to delta days
age_var := round((sysdate - oldest_date), 3);
-- close the cursor
DBMS_SQL.CLOSE_CURSOR(cursor_id);
-- open the cursor again
cursor_id := DBMS_SQL.OPEN_CURSOR;
-- delete records
loop
age_var := age_var - TIME_INCREMENT;
exit when age_var < max_age;
-- build an SQL string
sql_string := 'delete from ' || table_name || ' where ' || time_var ||
' < (sysdate - ' || age_var || ')';
-- parse and excute the cursor
DBMS_SQL.PARSE(cursor_id, sql_string, DBMS_SQL.NATIVE);
return_var := DBMS_SQL.EXECUTE(cursor_id);
commit;
dbms_lock.sleep(2); -- wait 2 seconds
end loop;
-- close the cursor
DBMS_SQL.CLOSE_CURSOR(cursor_id);
END DELETE_OLD_DATA; -- Procedure
ORCALE VERSION - 8i Developement tools - Toad.
Similar Messages
-
Error while compiling the PO Item Category KFF
Kindly help me. I am new and learning Purchasing module and now stuck because of an error while compiling the PO Item Category KFF. This is because a segment is saved in the database incompletely.
Now the segment does not show in the Segments Summary form. But when I enter the same Number, I get the error APP-FND-00924: You chose a sement number that is used by another segment.
When I freeze and compile the structure with different segments, I get the error
APP-FND-00668: The data that defines the flexfield on this field may be inconsistent. Inform your system administrator that the function: FDFRKS could not find the structure definition for the flexfield specified by Application = &APPL, Code = MCAT and Structure number = 201 (APPID=401)
APP-FND-00738: Error detected when attempting to load value set on Context: &CONTEXT for Segment: &SEGMENT in Routine: FDFBKS
APP-FND-01564: ORACLE error 1403 in FDFAVS3
Cause: FDFAVS3 failed due to ORA-01403: no data found.
The SQL statement being executed at the time of the error was: and was executed from the file &ERRFILE.
Regards
ReemHi Sandeep
Sorry that I am bothering with basic questions, but I am not able to run any Select queries. It gives error Table or View does not exist. I can see the table from ALL_TABLES view, but I cannot Select.
I have logged in as oracle user. This is not Vision datbase. Can you let me know the default dba user and password or how to get the permission?
Regards
Reem -
Error while compiling the composite through custom ant script
Hi,
I am getting the following error while compiling the composite through custom built ant scripts which are intern call the ant-sca-package.xml. And the composite is created by upgrading the 10g bpels. But the same composite is successfully compiling from Jdeveloper (11.1.1.4).
oad of wsdl "oramds:/soa/shared/workflow/NotificationService.wsdl" failed
oracle.fabric.common.FabricException: Error in getting XML input stream: oramds:/soa/shared/workflow/NotificationService.wsdl: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/soa/shared/workflow/NotificationService.wsdl does not exist.
at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStreamFromAbsoluteURL(MetadataManagerImpl.java:280)
at oracle.integration.platform.common.MDSMetadataManagerImpl.getInputStreamFromAbsoluteURL(MDSMetadataManagerImpl.java:555)
at oracle.fabric.common.metadata.MetadataManagerImpl.getDocumentAsInputStream(MetadataManagerImpl.java:159)
at oracle.integration.platform.common.MDSMetadataManagerImpl.getDocumentAsInputStream(MDSMetadataManagerImpl.java:417)
at oracle.fabric.common.wsdl.WSDLManager.loadWSDL(WSDLManager.java:241)
at oracle.fabric.common.wsdl.WSDLManager.loadWSDL(WSDLManager.java:304)
at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:934)
at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
Caused by: java.io.IOException: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/soa/shared/workflow/NotificationService.wsdl does not exist.
at oracle.mds.internal.net.AbstractOraMDSURLConnection.getPDocStream(AbstractOraMDSURLConnection.java:388)
at oracle.mds.internal.net.AbstractOraMDSURLConnection.getInputStream(AbstractOraMDSURLConnection.java:176)
at oracle.mds.internal.net.OraMDSURLConnection.getInputStream(OraMDSURLConnection.java:67)
at java.net.URL.openStream(URL.java:1010)
at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStreamFromAbsoluteURL(MetadataManagerImpl.java:276)
... 9 more
Caused by: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/soa/shared/workflow/NotificationService.wsdl does not exist.
at oracle.mds.internal.net.AbstractOraMDSURLConnection.getPDocStream(AbstractOraMDSURLConnection.java:339)
And in the following blog, its recommended to check for the adf-config.xml. But when upgrading the bpels from 10g to 11.1.1.4, I don't see any such file created by Jdeveloper.
http://orasoa.blogspot.com/2010/08/ant-and-mds-composite-compile-error.html
Not sure if I am missing some properties to add in by custom script while compiling.
Thanks
Sree
Edited by: Sree on Jul 4, 2011 7:25 AMHi Hussain,
Thanks for the reply.
Were you able to compile the form at the client side successfully?
1) Were you able to compile the form at the client side successfully?:
Ans: Yes, I was able to compile the form successfully at client side.
2) Are you logged in as applmgr user? Have you sourced the application env file before compiling the form?
Ans: No, I have not logged by applmgr user, i am using my own login. Yes I have sourced the application env file before compiling the form
3) What does "echo $FORMS_PATH" return?
Ans: echo $FORMS_PATH on server gives this path
/u01/app/EBS00/apps/apps_st/appl/au/12.0.0/resource:/u01/app/EBS00/apps/apps_st/appl/au/12.0.0/resource/stub
Can you please advise?
Thanks, -
hi,
i am new to ejb.......
i have got error while compiling the ejb java source files............
while compiling..........of this three i ahve got err in ejb home interface....
ejb remote interface - succeded
ejb bean class - succeded
ejb home interface - error
the error..............is in the return type of the ejb create() method in ejb home interface(which is the type of remote interface).
the error message is cannot resolve symbolHi,
thanks for ur reply .....
i have done enough searching in all sites including sun forum but in vain
i have pasted my error below...
can u plz predict anything from it
D:\>path=%path%;c:\j2sdk1.4.2_12\bin;
D:\>set classpath=%classpath%;d:\Sun\AppServer\lib\j2ee.jar;
D:\>javac d:\Librarys\Library.java
D:\>javac d:\Librarys\LibraryBean.java
D:\>javac d:\Librarys\LibraryHome.java
d:\Librarys\LibraryHome.java:8: cannot resolve symbol
symbol : class Library
location: interface Librarys.LibraryHome
public Library create(String id, String name, String address, String phoneNo
) throws RemoteException, CreateException;
^
d:\Librarys\LibraryHome.java:9: cannot resolve symbol
symbol : class Library
location: interface Librarys.LibraryHome
public Library findByPrimaryKey(String id) throws FinderException, RemoteExc
eption;
^
2 errors
thanks in advance... -
Error while compiling trigger/procedure for a table in which attribute is r
I have table
desc pappu
name varchar(10);
start varchar(5);
end varchar(5);
One of the attribute is end which is also a reserved keyword in oracle.I want to create some procedure/trigger which use the attribute end but i get errors while compiling that "
PLS-00103: Encountered the symbol "END" when expecting one of the
following:
<an identifier> <a double-quoted delimited-identifier>
The symbol "<an identifier> was inserted before "END" to
continue.
Any workaround for this.user620101 wrote:
name varchar(10);
start varchar(5);
end varchar(5);
SQL> create table pappu (name varchar(10),stat varchar(5),end varchar(5));hi,
earlier you have given column name start and here you are creating table with colum name stat....anyway try to use column alias for column END
CREATE TABLE pappu (NAME VARCHAR(10),STAT VARCHAR(5),END VARCHAR(5));
INSERT INTO PAPPU ( NAME, STAT, END ) VALUES ( 'name1', '1', '14');
INSERT INTO PAPPU ( NAME, STAT, END ) VALUES ( 'name2', '15', '20');
CREATE OR REPLACE PROCEDURE testpappu
AS
CURSOR test1
IS
SELECT NAME,stat AS st,END AS v_end FROM pappu;
BEGIN
FOR i IN test1
LOOP
DBMS_OUTPUT.PUT_LINE ( 'name - '||i.NAME ||'-'||i.st||'-'||i.v_end );
END LOOP;
END;
SQL> exec testpappu;
name - name1-1-14
name - name2-15-20
PL/SQL procedure successfully completed.
Thnx
MB
Edited by: ManishB on Sep 20, 2010 10:50 AM -
Gettng Error while executing the procedure(oracle 10.2.0.3.0)
Hi all,
I am getting following error While executing the package .
PLS-00103: Encountered the symbol "Truncate" when expecting one of
the following:
* & = - + ; < / > at in is mod remainder not rem return
returning <an exponent (**)> <> or != or ~= >= <= <> and or
like LIKE2_ LIKE4_ LIKEC_ between into using || multiset bulk
member SUBMULTISET_I have written follwing query in the package body.
EXECUTE IMMEDIATE 'TRUNCATE TABLE FORT ';
EXECUTE IMMEDIATE '
INSERT INTO FORT (CID,CODE,DESC,SCODE,SES,T_DT,SDN,LANG)
SELECT
SERVICES.CID CID,
PROFILE.FUCODE CODE,
TO_DATE(SUBSTR(SERVICES.STAT_CHNG,-7,6),'YYMMDD') T_DT,
PHOR.NUM SDN,
C_ALL.cLANGUAGE LANG
FROM
SERVICES .....Please give me the solution for this .
Thank y ou
Edited by: user636482 on Apr 10, 2009 1:08 AMI am getting following errors if I gave " ' " after not null.
LINE/COL ERROR
42/8 PLS-00103: Encountered the symbol "AND" when expecting one of the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted delimited-identifier>
<a bind variable> << close current delete fetch lock insert
open rollback savepoint set sql execute commit forall merge
pipe
42/56 PLS-00103: Encountered the symbol "A" when expecting one of the
following:
LINE/COL ERROR
) , * & | = - + < / > at in is mod remainder not rem => ..
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
The symbol ", was inserted before "A" to continue.
42/74 PLS-00103: Encountered the symbol "D" when expecting one of the
following:
* & - + ; / at mod remainder rem return returning
<an exponent (**)> and or || multiset
The symbol "* was inserted before "D" to continue.
LINE/COL ERROR
45/6 PLS-00103: Encountered the symbol "COMMIT"
52/3 PLS-00103: Encountered the symbol "PROCEDURE" when expecting one
of the following:
end not pragma final instantiable order overriding static
member constructor map
The symbol "static" was substituted for "PROCEDURE" to continue.
85/8 PLS-00103: Encountered the symbol "AND" when expecting one of the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
LINE/COL ERROR
<an identifier> <a double-quoted delimited-identifier>
<a bind variable> << close current delete fetch lock insert
open rollback savepoint set sql execute commit forall merge
pipe
85/56 PLS-00103: Encountered the symbol "A" when expecting one of the
following:
) , * & | = - + < / > at in is mod remainder not rem => ..
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
The symbol ", was inserted before "A" to continue.
LINE/COL ERROR
85/74 PLS-00103: Encountered the symbol "D" when expecting one of the
following:
* & - + ; / at mod remainder rem return returning
<an exponent (**)> and or || multiset
The symbol "* was inserted before "D" to continue.
88/8 PLS-00103: Encountered the symbol "COMMIT"
95/3 PLS-00103: Encountered the symbol "PROCEDURE" when expecting one
of the following:
end not pragma final instantiable order overriding static
LINE/COL ERROR
member constructor map
The symbol "static" was substituted for "PROCEDURE" to continue.
133/3 PLS-00103: Encountered the symbol "PROCEDURE" when expecting one
of the following:
end not pragma final instantiable order overriding static
member constructor map
The symbol "static" was substituted for "PROCEDURE" to continue.
169/3 PLS-00103: Encountered the symbol "PROCEDURE" when expecting one
of the following:with out adding " ' " I am getting the previous error which I mentioned in Previous thread(TRUNCATE)
Thank you -
ERROR while compiling the demo LoanDemoPlus
Hello,
I have a problem while trying to install one of the Bpel demos.
While compiling the demo LoanDemoPlus using obant, the following errors occured : (see the transcript below)
How to fix this problem, please ?
[bpelc] validating "C:\DAS\DAS_BPEL\OracleAppsPOC\LoanDemoPlus\LoanFlowPlus\LoanFlowPlus.bpel" ...
[bpelc] BPEL validation failed.
[bpelc] BPEL source validation failed, the errors are:
[bpelc]
[bpelc] [Error ORABPEL-10079]: unresolved namespace prefix
[bpelc] [Description]: in line 214 "C:\DAS\DAS_BPEL\OracleAppsPOC\LoanDemoPlus\LoanFlowPlus\LoanFlowPlus.bpel", namespace prefix "bpws" can not be resolved.
[bpelc] [Potential fix]: Please define this prefix in the bpel source file.Hi Andrew,
Please check if the folloing is defined in the process in LoanFlowPlus.bpel file.
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
as below
<process name="BPELProcess5"
targetNamespace="http://xmlns.oracle.com/BPELProcess5"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/apps/PoInsert/"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/top/BPELProcess5"
xmlns:client="http://xmlns.oracle.com/BPELProcess5"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
Also Can you please provide me the following information?
1. BPEL PM Version.
2. Location where you downloaded
3. Approximate time frame when you Downloaded.
Regards,
Dhaval -
Error while executing the procedure
Hi,
I tried the following example it's compiled but while executing giving the errors
create or replace PROCEDURE createRZGSet (
rNm IN VARCHAR2,
rDsc IN VARCHAR2,
rId OUT NUMBER
) IS
cId INTEGER;
BEGIN
cId := 1;
SELECT q_id.NEXTVAL
INTO rId
FROM DUAL;
INSERT INTO t_set (rid,
r_nm,
r_dsc,
o_id,
flag) VALUES (rId,rNm,rDsc,cid,'P');
END;
/The above is compiled ... but while executing
SQL> declare
2 optval number;
3 begin
4 execute createRZGSet('myp','miyapur',optval);
5 dbms_output.put_line('val returned is:'||optval);
6 end;
7 /
execute createRZGSet('myp','miyapur',optval);
ERROR at line 4:
ORA-06550: line 4, column 10:
PLS-00103: Encountered the symbol "CREATERZGSet" when expecting one
of the following:
:= . ( @ % ; immediate
The symbol ":=" was substituted for "CREATERZGSet" to continue.could you please hint me in this error..
thanxThe above is compiled ... but while executing
SQL> declare
2 optval number;
3 begin
4 execute createRZGSet('myp','miyapur',optval);
5 dbms_output.put_line('val returned is:'||optval);
6 end;
7 /remove the execute key word. it belongs to SQL Plus. in pl/sql you can just give the procedure name thats enought.
SQL> declare
2 optval number;
3 begin
4 createRZGSet('myp','miyapur',optval);
5 dbms_output.put_line('val returned is:'||optval);
6 end;
7 / -
Error while compiling the Tutorial Building a Mible Browser App for PDAs
Hello,
i've downloaded the necessary files, for the Tutorial. Did it step by step and when i try to compile my project. Then i always get the same error Message:
500 Internal Server Error
java.lang.NoSuchFieldError: SELECTED_KEY
at oracle.adfinternal.view.faces.taglib.core.nav.CoreCommandLinkTag.setProperties(CoreCommandLinkTag.java:203)
at oracle.adf.view.faces.webapp.UIXComponentTag.setProperties(UIXComponentTag.java:126)
at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1017)
at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1036)
at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:749)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85)
at indexjspx._jspService(_index_jspx.java:126)
[index.jspx]
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:298)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:363)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:332)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:192)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:595)
Could anybody help me?
Maybe i did a misstake while downloading the JDeveloper Studio Edition Version 10.1.3.0.4. The Tutorial says, that i need the Oracle JDeveloper 10g Early Access edition and i can download it from Oracle Technology Network.You can find the steps in -- http://docs.oracle.com/cd/E18727_01/doc.121/e12892/T354897T361275.htm
Or, in (R11.5: How to Recompile AR Flexfields: Sales Tax Location Flexfield and Location Flexfield Structure [ID 175444.1], Under Step 1) -- Run the steps from System Administrator responsibility.
Thanks,
Hussein -
Getting ORA-06512/ORA-00972 ERROR WHILE EXECUTING THE PROCEDURE????
Hi ,
while executing this procedure , I am getting follwoing errors:
Create or Replace procedure ADD_CUSTOM_INDEX is
INDX_NOT_EXIST Number;
CREATE_SQL_STATMENT VARCHAR2(1500);
ALTER_SQL_STATMENT VARCHAR2(150);
CURSOR C1 IS select INDEX_NAME,CREATE_DDL FROM W_CUSTOM_TEST, WC_COMPANY_G WHERE W_CUSTOM_TEST.SYS_TENANT_ID = WC_COMPANY_G.BU_ID;
BEGIN
for V_ROW in C1 loop
SELECT COUNT(USER_INDEXES.INDEX_NAME) INTO INDX_NOT_EXIST FROM USER_INDEXES WHERE USER_INDEXES.INDEX_NAME = V_ROW.index_name;
IF INDX_NOT_EXIST = 0 THEN
CREATE_SQL_STATMENT := ''|| '"'|| V_ROW.CREATE_DDL ||'"' ||'PARALLEL NOLOGGING';
EXECUTE IMMEDIATE CREATE_SQL_STATMENT;
ALTER_SQL_STATMENT := 'ALTER INDEX ' ||'"'|| V_ROW.INDEX_NAME ||'"'|| ' NOPARALLEL LOGGING';
EXECUTE IMMEDIATE ALTER_SQL_STATMENT;
END IF;
END LOOP;
END ADD_CUSTOM_INDEX;
ERROR at line 1:
ORA-00972: identifier is too long
ORA-06512: at "LOLAP.ADD_CUSTOM_INDEX", line 13
ORA-06512: at line 1.
sturtuce of W_custom_test table is as below:
CREATE TABLE "LOLAP"."W_CUSTOM_TEST"
("INDEX_NAME" VARCHAR2(30) NOT NULL ENABLE,
"SYS_TENANT_ID" VARCHAR2(15) NOT NULL ENABLE,
"CREATE_DDL" VARCHAR2(1200),
"COMMENTS" VARCHAR2(200),
"STAT_CD" VARCHAR2(30) DEFAULT 'Active' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"LAST_UPD" DATE DEFAULT SYSDATE NOT NULL ENABLE
Any Pointer??????Hi
Instead of giving as below, go for the not null constraints.
"STAT_CD" VARCHAR2(30) DEFAULT 'Active' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"LAST_UPD" DATE DEFAULT SYSDATE NOT NULL ENABLE
That should help
Regards
Sudheer -
Error while compiling the form
Hi Everyone,
Im getting the following error, while trying to compile the form.
Compilation error on POST-QUERY trigger on XXX_CONTRACT_INFO data block:
PL/SQL ERROR 0 at line 0, column 0
ORA-12154: TNS:could not resolve service name.
The instance which Im using is UP and running fine.
I am using some database links to access data from a different schema, but even those db links are working fine.
I am completly strucked up with this issue. Please help me.
Thank you.
Rams.Thanks for the reply.
Im not running the form in local database and more over if the problem is with only tnsnames, then the form should completly through an error. But in this case, the form is compiling all its objects, but its unable to compile only one block.
-Rams -
"cannot find symbol" error while compiling the RMI
I am trying to implement a simple RMI.
I have the following :
1. HelloInterface which has the SayHello method defined.
2. HelloImpl which has the implementation of Say Hello
3. Server code
4. Client code
the HelloInterface compiles properly.
but when i say javac HelloImpl
package rmisample;
import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;
import java.rmi.RemoteException;
public class HelloImpl extends UnicastRemoteObject implements HelloInterface{ --> this is where i get the error
/** Creates a new instance of HelloImpl */
public HelloImpl()throws RemoteException {
super();
public String SayHello(String s) throws RemoteException
return "hello" +s;
I get the following error:
C:\Myjava\RMISample\src\rmisample>javac HelloImpl.java
HelloImpl.java:18: cannot find symbol
symbol: class HelloInterface
public class HelloImpl extends UnicastRemoteObject implements HelloInterface{
All 4 files are in the same directory.
Am not sure what is going wrong and am new to this.
Edited by: topcatin on Sep 14, 2007 6:52 AMThe problem is probably that the compiler can't find the file with that class definition.
Try changing your javac call so that is starts off
javac -classpath .
The dot is important!
If it works, then go read up on classpaths. -
Getting error while compiling The Dukes Bank Application
Hi,
I am trying to complies The Dukes Bank Application with reference to http://docs.jboss.org/jbossas/getting_started/v4/html/dukesbank.html guide.
I am getting the following error:
D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank>ant -f jboss-build.xml c
pile
Buildfile: jboss-build.xml
prepare:
compile:
[javac] Compiling 5 source files to D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-sr
examples\bank\build
BUILD FAILED
D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank\jboss-build.xml:44: D:\T
hnical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank\${jboss.server}\lib not found.
Total time: 0 seconds
D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank>
Its not able to find ${jboss.server}\lib.
What is the solution for this compiling problem. Please help me.
Thanks in Advance.Hi,
This could also be a reason :
If you have any private proc defined in package body, make sure you define it at the top before using in other proc inside package body. -
Error while compiling the JSP page that compileCommand not found
Hello friends !
I am using weblogic 5.1 evaluation copy without any service packs I had stated my properties file as below for JSP.
My compileCommand path is also OK.
weblogic.httpd.register.*.jsp=\
weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=\
compileCommand=c:/jdk1.2.2/bin/javac.exe,\
workingDir=c:/weblogic/myserver/servletclasses,\
verbose=true
But then also my server throws the following exceptions
Thu Jun 15 16:11:06 GMT+05:30 2000:<E> <ServletContext-General> Servlet failed with Exception
javax.servlet.UnavailableException: Couldn't find init param: compileCommand
at eblogic.servlet.jhtmlc.PageCompileServlet.init(PageCompileServlet.java:83)
at weblogic.servlet.JSPServlet.init(JSPServlet.java:54)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:390)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:338)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Thu Jun 15 16:11:12 GMT+05:30 2000:<I> <ServletContext-General> servletimages: init
will anybody help me to came out of this problem ?
Thanking you in advance for helpfull solution
I think if you add spaces to your init parameters that should solve your
problem. As well you might want to install the latest service pack 5.
There are some problems that you will encounter without the latest service
pack.
HC.
Sandip Gajjar <[email protected]> wrote in message
news:[email protected]...
>
> Hello friends !
>
> I am using weblogic 5.1 evaluation copy without any service packs I had
stated my properties file as below for JSP.
> My compileCommand path is also OK.
>
> weblogic.httpd.register.*.jsp=\
> weblogic.servlet.JSPServlet
> weblogic.httpd.initArgs.*.jsp=\
> compileCommand=c:/jdk1.2.2/bin/javac.exe,\
> workingDir=c:/weblogic/myserver/servletclasses,\
> verbose=true
>
> But then also my server throws the following exceptions
>
> Thu Jun 15 16:11:06 GMT+05:30 2000:<E> <ServletContext-General> Servlet
failed with Exception
> javax.servlet.UnavailableException: Couldn't find init param:
compileCommand
> at
eblogic.servlet.jhtmlc.PageCompileServlet.init(PageCompileServlet.java:83)
> at weblogic.servlet.JSPServlet.init(JSPServlet.java:54)
> at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:390)
> at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va, Compiled Code)
> at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:338)
> at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
4)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:99)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:742)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:686)
> at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:247)
> at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
>
> Thu Jun 15 16:11:12 GMT+05:30 2000:<I> <ServletContext-General>
servletimages: init
>
> will anybody help me to came out of this problem ?
>
> Thanking you in advance for helpfull solution
>
-
HI I m getting error while executing the procedure
set serveroutput on;
DECLARE
P_ACCOUNT_NO PT_AGMT_PRICING_ENTITY.CHARGE_ACCOUNT_ID%TYPE ;
P_amount VARCHAR2(50);
p_CreatedBy VARCHAR2(50);
p_Mode VARCHAR2(50);
p_ret_var VARCHAR2(50);
P_ERR_CODE NUMBER;
P_ERR_MESG VARCHAR2(100);
P_ROWS_AFFECTED INTEGER;
V_PRICE VARCHAR2(10);
v_PRICINGENTITYID number;
v_agreement_id number;
BEGIN
-- V_PRICE :=550;
p_amount :=1300;
p_account_no := 1015473;
select price,PRICINGENTITYID,agreement_id into v_price,v_PRICINGENTITYID,v_agreement_id from pt_agmt_pricing_entity
where PRICINGENTITYID=(SELECT MAX(PRICINGENTITYID) FROM PT_AGMT_PRICING_ENTITY WHERE CHARGE_ACCOUNT_ID=p_account_no AND CHARGE_CODE='SC');
if P_amount>=v_price then
update pt_agmt_pricing_entity b set price=p_amount
where PRICINGENTITYID=(SELECT MAX(PRICINGENTITYID) FROM PT_AGMT_PRICING_ENTITY WHERE CHARGE_ACCOUNT_ID=p_account_no AND CHARGE_CODE='SC');
UPDATE PT_AGMT_PKG_SVC_DTLS SET PRICE=p_amount
WHERE AGREEMENT_ID=(SELECT AGREEMENT_ID FROM PT_AGMT_PRICING_ENTITY
WHERE PRICINGENTITYID=(SELECT MAX(PRICINGENTITYID) FROM PT_AGMT_PRICING_ENTITY WHERE CHARGE_ACCOUNT_ID=p_account_no AND CHARGE_CODE='SC')) AND CHARGE_TYPE='R';
commit;
insert into premium_price_change_report values(p_account_no,v_PRICINGENTITYID,sysdate,P_amount,v_price,v_agreement_id);
commit;
else
P_ERR_CODE := -1;
P_ERR_MESG:='You cannot give the amount less than package amount';
END IF;
p_ret_var :=p_account_no;
END
error:>
ORA-06550: line 58, column 0:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
; <an identifier> <a double-quoted delimited-identifier>
The symbol ";" was substituted for "end-of-file" to continue.
Please help me to sort out the issue.Is something wrong with this proc...END
If it's not a typo you missed a semicolon there
END;
Maybe you are looking for
-
How do i use udisksvm and traydvm
Using newest version of Arch with newest Openbox and Tint2. Ive installed udisksvm, which in turn installs traydvm. This package is supposed to keep watch on attached usb devices and give me a trayicon that says something was plugged in. My problem i
-
Disable Radio button in a Radio Group
I have a radio group wiht four radio buttons. I would like to diable one of three radio buttons based on specific condtions. For rdisabling the radio group I use the syntax SET_ITEM_PROPERTY('BLOCKNAME.RADIOGROUP',ENABLED,PROPERTY_FALSE); Please help
-
DVD-Drive is not working any more
My DVD-Drive is not working any more. When I enter a CD/DVD it makes a strangs bruummm for 2 or 3 times ant then ejects the CD/DVD. What can I do. I think the Drive is broken.
-
InfoPath Forms Services and c2wts
Hi Does/Can InfoPath Form Services use c2wts or not? I seem to find conflicting information. Setup: Single server with SharePoint 2013 and SQL Server 2012. InfoPath form which calls a custom web service that is also on the same machine. The web servi
-
Hi All, Can anyone tell me how to hide the code of a report from the user? I know that if I goto the program's attributes and change its STATUS to SYSTEM PROGRAM, it cannot be debugged, but I have been told that tweaking the debugger will still allow