PLS-00907
We're getting an intermittent PLS-00907 error in one of our applications and I've been assigned to track down the cause.
The Oracle version is 10.2.0.2 and the error text is
PLS-00907: cannot load library unit SCHEMA_NAME.TABLE_NAME (referenced by SCHEMA_NAME.PACKAGE_NAME)
All the references to this error I have found either had to do with compiling a package or the library unit named was either a package or procedure.
In this case the library unit named is a table and when I find the error in our log file, I can see that the application had previously successfully completed the same operation about an hour earlier and if I query the LAST_DDL_TIME from DBA_OBJECTS for the table, the package, and the package body, all three are earlier than the time when the application had successfully completed the task.
It has been our observation that once the error occurs once, it will happen intermittantly every four to six hours until we have the DBA flush the shared pool. After flushing the shared pool the problem goes away for about a week.
Does anyone have any ideas where I should start looking?
Edit: Another bit of information: The first non-comment line in the package source is a variable declaration :
variable_name TABLE_NAME.column_name%TYPE;Where "TABLE_NAME" is the same table name as in the error message.
Edited by: kendenny on Sep 28, 2009 1:13 PM
Try below solution.
Cause
Issue is caused by sequencing problem during the application of the patch
as discussed in bug 945478
Solution
To implement the solution, please execute the following steps:
1. Recompile the failing package:
for ex:-
alter package ABC_PACK compile;
alter package ABC_PACK compile body;
2. Restart the failed worker
Regards
Click here for [Block Corruption and recovery|http://www.oracleracexpert.com/2009/08/block-corruption-and-recovery.html]
Click here for [Redo log corruption and recovery|http://www.oracleracexpert.com/2009/08/redo-log-corruption-and-recovery.html]
http://www.oracleracexpert.com
Similar Messages
-
PLS-00907 Error but referenced package compiled
Hi I am experiencing some problems with Database Link.
In DEV Environment,
I have two database, DB A and DB B.
In DB A I have package name SUPPORT_PKG and inside it I have a function named HISTORY_UPDATE.
Package is compiled correctly in DB A and working fine.
I created a procedure CALL_HIST_UPD in DB B to execute SUPPORT.PKG.HISTORY_UPDATE@A through DB LINK.
and it gave me PLS-00907 error.
UAT environment has the same setup of user and package as DEV.
then I tried to copy the CALL_HIST_UPD to DB B in UAT and it can be compiled sucessfully in UAT.so I do the following
Back to Dev again
I tried to figure what's going on until I decided to replace the header specification SUPPORT.PKG.HISTORY_UPDATE
with the declaration part from the body and recompiled the whole package again, and this time I can compile the procedure in DB B.
I am curious and check the header in UAT and found that UAT Headers is the same exactly with the DEV Headers
before I replaced it with the new one by copying from the body. I am curious why the DEV environment give the PLS-00907 error at the first time, even at that time package in A are compiled nicely.
Let me know if the question is not clear.
thanks for your helpTry this -
CREATE OR REPLACE PACKAGE data_mgmt AUTHID CURRENT_USER
IS
FUNCTION hy_name (in_dt DATE, in_option_txt VARCHAR2)
RETURN VARCHAR2;
END data_mgmt;
CREATE OR REPLACE PACKAGE BODY data_mgmt
IS
FUNCTION hy_name (in_dt DATE, in_option_txt VARCHAR2)
RETURN VARCHAR2
IS
return_txt VARCHAR2 (25);
BEGIN
RETURN return_txt;
END hy_name;
END data_mgmt;
/ -
PLS-00907: cannot load library unit
I have a problem with a stored procedure that runs via cron to insert records into a large partitioned table. This was running fine until a week back it stopped working.
The error it mentioned during execution is
PLS-00907: cannot load library unit
MET.CLINICAL_DATA (referenced by MET.INSERT_CLINICAL_DATA)
MET is the owner of the CLINICAL_DATA table and the INSERT_CLINICAL_DATA procedure. This procedure is run by a user called MET_USER who has an execute privilege on MET's INSERT_CLINICAL_DATA and its tables.
So what might have caused this error. I did spend atleast 2 hours looking in the metalink and as those articles mentioned, I am neither using a database link here nor I am calling a remote procedure.
Any thoughts?
Thanks355099,
No, not to my knowledge. But I do have another stored procedure that also runs everyday that has got DDL statements on the CLINICAL_DATA table. Some of the DDLs in that are ----
execute immediate 'alter table clinical_data drop partition part' || part_rec_l.id || ' update global indexes';
execute immediate 'alter table clinical_data split partition ' || 'last_values at ( ''' || (temp_day_l * ms_per_day_l)|| ''') into (partition part' || new_id_l
|| ', partition last_values) update global indexes';
execute immediate 'alter table clinical_data modify partition '|| 'part' || new_id_l || ' rebuild unusable local indexes';
execute immediate 'alter table clinical_data modify partition ' || 'last_values rebuild unusable local indexes';
Thank you -
PLS-00907: cannot load library unit PREORDER.GLOBALS@PREORDER
Hi all, I am getting below error while compiling the package in oracle 11g.
SQL> select version from v$instance;
VERSION
11.2.0.3.0
SQL> !uname -a
SunOS ghb1s311 5.10 Generic_142900-13 sun4u sparc SUNW,Sun-Fire-V890
SQL> SELECT owner,
object_type,
object_name,
status
FROM dba_objects
WHERE status = 'INVALID'
ORDER BY owner, object_type, object_name;
2 3 4 5 6 7
OWNER OBJECT_TYPE OBJECT_NAME STATUS
KOMPIMP PACKAGE BODY IMPORT_NI_STAMMDATEN INVALID
SQL> alter package KOMPIMP.IMPORT_NI_STAMMDATEN compile body;
Warning: Package Body altered with compilation errors.
SQL> show error
Errors for PACKAGE BODY KOMPIMP.IMPORT_NI_STAMMDATEN:
LINE/COL ERROR
0/0 PLS-00907: cannot load library unit PREORDER.GLOBALS@PREORDER
(referenced by PREORDER.MANAGE_DATEN@PREORDER)
1201/5 PL/SQL: Statement ignored
SQL> select object_name,object_type,owner,status from dba_objects where object_name like 'GLOBALS';
OBJECT_NAME OBJECT_TYPE OWNER STATUS
GLOBALS PACKAGE KOMPIMP VALID
SQL> select object_name,object_type,owner,status from dba_objects where object_name like 'PREORDER';
OBJECT_NAME OBJECT_TYPE OWNER STATUS
PREORDER DATABASE LINK KOMPIMP VALID
These package(GLOBALS') is valid then also this is not compiling.
Please suggest to solve this problem.
Thanks in AdvanceHi
Without commenting on the specific HR packages, it sounds like you are causing invalidations when you recompile.
The first thing to do is to try to minimize the scope of each recompilation. So if the body of a package A is invalid, don't recompile the specification (which will invalidate any other package B that references a function, procedure, type or package variable in A). Just recompile the body (which afaik NEVER invalidates anything else).
alter package A compile body;If you have invalid package specs (which you do now) try to recompile them in dependency order. So if package (spec) A depends on (eg references a package (header) variable or type definition in) package B, then be dure to compile B before A.
In general, you should recompile invalid specifications first, then invalid package bodies.
The tricky objects are Views - a view can depend on a package spec (if the view SQL includes a reference to a package function) and a package spec or body can of course depend on a view. Good developers try to avoid circular dependencies! So our compilation order becomes:
* Views (unless dependent on packages)
* Package specs
* Views that depend on packages
* Package bodies
(Stand-alone stored procedures and functions are a pain in the neck, as they can depend on each other and on views, packages etc).
You can try using utlrp.sql (in rdvms/admin) which calls utl_recomp.recomp_parallel - but I don't know how good this is at sorting out dependencies.
HTH
Regards Nigel -
Invalid Objects after upgrading 12.1.3
Hi,
I upgraded my EBS version to 12.1.3 from 12.1.2. And the database is 11.1.0.7, OS is RHEL 5.0.
After upgrading im getting some invalid objects of 272 that i mentioned below..
i did all the steps for the fix this ,
1. Ran utlrp.sql script in $ORACLE_HOME/rdbms/admin
2. Compiled the apps schema in adadmin on apps ties
3. Re-link options
4. SQL> @$FND_TOP/patch/115/sql/fndptmus.pls
SQL> @$FND_TOP/patch/115/sql/fndptmub.pls
5. SQL> ALTER PACKAGE BODY ASO_OPP_QTE_PUB COMPILE;
ALTER PACKAGE BODY ASO_OPP_QTE_PUB COMPILE
ERROR at line 1:
ORA-00922: missing or invalid option
INVALID OBJTCTS:
ASO_QUOTE_PUB_W
ASO_SECURITY_INT
ASO_QUOTE_HEADERS_PVT
MSC_SCH_WB
PJM_INQUIRY
OKL_REVERSE_CONTRACT_PVT
INV_OBJECT_GENEALOGY
OE_DELAYED_REQUESTS_UTIL
HXT_RETRO_PROCESS
OKL_PROCESS_TMPT_SET_PVT_W
OKL_TRANS_CONTRACTS_PVT_W
OKL_CONTRACT_PVT
OKL_FUNDING_PVT
OKL_GENERATE_ACCRUALS_PVT_W
OKL_PROCESS_TMPT_SET_PUB
OKL_GENERATE_ACCRUALS_PVT
OKL_AM_ASSET_DISPOSE_PVT
OKL_BLK_AST_UPD_PVT
OKL_CONTRACT_BOOK_PVT
OKL_KBK_APPROVALS_WF
OKL_CS_WF
OKL_FUNDING_WF
OKL_LA_JE_PVT
OKL_INSURANCE_POLICIES_PVT
OKL_INTEREST_CALC_PVT
OKL_AM_BTCH_EXP_LEASE_LOAN_PVT
OKL_LOSS_PROV_PVT
OKL_MISC_TRANS_PVT
OKL_MASS_REBOOK_PVT
OKL_AM_LEASE_LOAN_TRMNT_PVT
OKL_AM_LOAN_TRMNT_PVT
OKL_AM_LEASE_TRMNT_PVT
OKL_RELEASE_PVT
OKL_CONTRACT_REBOOK_PVT
OKL_AM_QUOTES_WF
OKL_REV_LOSS_PROV_PVT
OKL_AM_RECYCLE_TRMNT_PVT
OKL_SPLIT_CONTRACT_PVT
OKL_SPLIT_ASSET_PVT
OKL_TRANS_CONTRACTS_PVT
OKL_AM_TERMNT_QUOTE_PVT
OKL_CS_TRANSFER_ASSUMPTION_PVT
OKL_PROCESS_TMPT_SET_PVT
OKL_TRANSACTION_PVT
OKL_VARIABLE_INTEREST_PVT
OKL_COPY_CONTRACT_PUB_W
OKL_PROCESS_TMPT_SET_PUB_W
WIP_SF_CUSTOM_ATTRIBUTES
AS_SALES_LEAD_OPP_PVT
ASO_OPP_QTE_PUB
OPI_POR_EXPECTED_RCPT_MV
OPI_POR_BACKORDER_SUM_MV
OPI_POR_OVERDUE_RCPT_MV
OKL_CS_PRINCIPAL_PAYDOWN_PVT
AST_UWQ_WRAPPER_PKG
AST_UWQ_OLIST_WORK_ACTION
OKL_AM_CNTRCT_LN_TRMNT_PVT
OKL_AM_TERMINATE_INV_AGMT_PVT
OKL_INVESTOR_INVOICE_DISB_PVT
OKL_PERIOD_SWEEP_PVT
OKL_SEC_AGREEMENT_PVT
IGS_FI_CREDIT_PVT
CSC_ACTION_ASSEMBLER_PVT_W
OZF_EARNING_SUMMARY_MV
ImportExport
ImportExport
WWV_FLOW_LIST_OF_VALUES_DATA
WWV_FLOW_LISTS_OF_VALUES$
WWV_FLOW_GENERIC
WWV_FLOW_FIELD_TEMPLATES
RE_PROFILER
FFP58914_01010001
FFP58915_01010001
FFP58920_01010001
FFP58919_01010001
OKL_BPD_TERMINATION_ADJ_PVT
OKL_STREAM_MIGRATION_PVT
FFP60324_01010001
FFP58887_01042004
FFP58888_01042004
FFP58870_01042004
FFP53720_01011990
FFP58885_01042004
FFP51846_01011990
FFP60964_01012000
OKL_AM_BAL_WRITEOFF_PVT
OKL_LA_SALES_TAX_PVT
OKL_AM_TERMNT_VENDOR_PRG_PVT
WIP_WS_DL_UTIL
OZF_CUST_FUND_SUMMARY_MV
FFP61156_01010001
FFP61138_01010001
FFP61170_01010001
FFP61152_01010001
FFP61124_01010001
FFP61277_01011951
SYS_PLSQL_233217_87_1
FFP61440_01011990
FFP52982_01010001
WMS_WAVE_PLANNING_PVT
FFP61511_01012000
FFP61532_01011990
OKL_MULTIGAAP_ENGINE_PVT
XLA_00707_AAD_C_000026_PKG
XLA_20065_AAD_C_000030_PKG
FSAH_DUPLICATE_PKG
XLA_00707_AAD_C_000044_PKG
OKL_INTERNAL_BILLING_PVT
OE_ITEMS_MV
MSD_DEM_OBI_DEMANTRA_MV
FFP62356_01012000
Any solution for this..??.
Thanks,
vasanthHi,
SQL> show errors
Errors for PACKAGE BODY OKL_MULTIGAAP_ENGINE_PVT:
LINE/COL ERROR
0/0 PLS-00907: cannot load library unit APPS.OKL_TCN_PVT (referenced
by APPS.OKL_TRX_CONTRACTS_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKL_TCN_PVT (referenced
by APPS.OKL_TRX_CONTRACTS_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKL_TCL_PVT (referenced
by APPS.OKL_TRX_CONTRACTS_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKL_TCL_PVT (referenced
by APPS.OKL_TRX_CONTRACTS_PVT)
LINE/COL ERROR
0/0 PLS-00907: cannot load library unit APPS.OKL_TCN_PVT (referenced
by APPS.OKL_TRX_CONTRACTS_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKL_TCN_PVT (referenced
by APPS.OKL_TRX_CONTRACTS_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKL_TCN_PVT (referenced
by APPS.OKL_TRX_CONTRACTS_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKL_TCN_PVT (referenced
LINE/COL ERROR
by APPS.OKL_TRX_CONTRACTS_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKL_TCL_PVT (referenced
by APPS.OKL_TRX_CONTRACTS_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKL_TCL_PVT (referenced
by APPS.OKL_TRX_CONTRACTS_PVT)
656/4 PL/SQL: Statement ignored
832/10 PL/SQL: Statement ignored
944/10 PL/SQL: Statement ignored
LINE/COL ERROR
971/10 PL/SQL: Statement ignored
1049/10 PL/SQL: Statement ignored
1150/10 PL/SQL: Statement ignored
1226/28 PL/SQL: Item ignored
1227/28 PL/SQL: Item ignored
1228/28 PL/SQL: Item ignored
1229/28 PL/SQL: Item ignored
i didnt get any errors before following that Metalink ID... it replied no errors
Now only im getting errors...
there is no errors in alert log file...
Thanks,
vasanth -
Error while upgrading 12.1.1 to 12.1.3
while i am running patch 9239090 i got this error:
The following Oracle Forms objects did not generate successfully:
au resource ASTACLIB.pll
au resource ASTCORE.pll
au resource ASTCUREL.pll
au resource ASTLSLIB.pll
au resource ASTCPREP.pll
au resource ASTOPLIB.pll
au resource IEXCORE.pll
au resource ASTRCALL.pll
au resource OKSSRVAV.pll
au resource ASTSLLIB.pll
au resource ASTCULIB.pll
au resource CSCUTILS.pll
Generating library "resource/ASTACLIB.plx" with command:
/u02/ebstest/apps/tech_st/10.1.2/bin/frmcmp_batch module=/u02/ebstest/apps/apps_st/appl/au/12.0.0/resource/ASTACLIB.pll userid=APPS/***** output_file=/u02/ebstest/apps/apps_st/appl/au/12.0.0/resource/ASTACLIB.plx module_type=library batch=yes compile_all=special
ERROR generating library "resource/ASTACLIB.plx" from input file
/u02/ebstest/apps/apps_st/appl/au/12.0.0/resource/ASTACLIB.pll
Results of library generation:
(from file /u02/ebstest/apps/apps_st/appl/au/12.0.0/resource/ASTACLIB.err
AD Worker has deleted the original .err file)
Compilation errors on OTS_ACCESS:
PL/SQL ERROR 905 at line 4, column 63
object APPS.AS_API_RECORDS_PKG is invalid
PL/SQL ERROR 0 at line 4, column 22
Declaration ignored
PL/SQL ERROR 0 at line 0, column 0
Automatic recompile of Package Spec OTS_ACCESS failed
Compilation errors on ASTCUACT_NEW_ACCT:
PL/SQL ERROR 0 at line 159, column 7
Statement ignored
Failed to generate library.
FRM-30312: Failed to compile the library.
-------------------------------------------------------------------------Hi Hussien,
I am getting this error while compiling the package
SQL> alter package APPS.OKS_SRVAVLEXC_PUB compile;
Warning: Package altered with compilation errors.
SQL> alter package APPS.OKS_SRVAVL_PUB compile;
Warning: Package altered with compilation errors.
SQL> show err
Errors for PACKAGE APPS.OKS_SRVAVL_PUB:
LINE/COL ERROR
0/0 PLS-00907: cannot load library unit APPS.OKS_AVL_PVT (referenced
by APPS.OKS_SRVAVL_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKS_AVL_PVT (referenced
by APPS.OKS_SRVAVL_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKS_AVL_PVT (referenced
by APPS.OKS_SRVAVL_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKS_AVL_PVT (referenced
by APPS.OKS_SRVAVL_PVT)
LINE/COL ERROR
0/0 PLS-00907: cannot load library unit APPS.OKS_AVL_PVT (referenced
by APPS.OKS_SRVAVL_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKS_AVL_PVT (referenced
by APPS.OKS_SRVAVL_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKS_AVL_PVT (referenced
by APPS.OKS_SRVAVL_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKS_AVL_PVT (referenced
LINE/COL ERROR
by APPS.OKS_SRVAVL_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKS_AVL_PVT (referenced
by APPS.OKS_SRVAVL_PVT)
0/0 PLS-00907: cannot load library unit APPS.OKS_AVL_PVT (referenced
by APPS.OKS_SRVAVL_PVT)
4/3 PL/SQL: Declaration ignored
5/3 PL/SQL: Declaration ignored
11/17 PL/SQL: Declaration ignored
LINE/COL ERROR
38/3 PL/SQL: Declaration ignored
47/3 PL/SQL: Declaration ignored
56/3 PL/SQL: Declaration ignored
64/3 PL/SQL: Declaration ignored
72/3 PL/SQL: Declaration ignored
81/3 PL/SQL: Declaration ignored
90/3 PL/SQL: Declaration ignored
SQL> exit
Please help me -
I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because its a prestiage of Apple Company.
Pls inform me how can i resolve the problem of wifi.You have to go to autherized iPhone agent.
-
Error while creating a procedure (PLS-00103)
Hi Am create the follwing Procedure:-
create or replace PROCEDURE XL_SP_ROGUEUSERS (
csrresultset_inout IN OUT sys_refcursor,
intuserkey_in IN NUMBER,
strsortcolumn_in IN VARCHAR2,
strsortorder_in IN VARCHAR2,
intstartrow_in IN NUMBER,
intpagesize_in IN NUMBER,
intdocount_in IN NUMBER,
inttotalrows_out OUT NUMBER,
strfiltercolumnlist_in IN VARCHAR2,
strfiltercolumnvaluelist_in IN VARCHAR2,
strudfcolumnlist_in IN VARCHAR2,
strudfcolumnvaluelist_in IN VARCHAR2,
struserlogin_in IN VARCHAR2,
strfirstname_in IN VARCHAR2,
strlastname_in IN VARCHAR2,
strdate_in IN VARCHAR2
AS
BEGIN
DECLARE
whereclause VARCHAR2(8000);
select_stmt VARCHAR2(8000);
strColumnList VARCHAR2(4000);
strDateFormat VARCHAR2 (80);
strFromClause VARCHAR2(4000);
strWhereClause VARCHAR2(4000);
strOrderByClause VARCHAR2(2000);
intSortDirection_in PLS_INTEGER;
entsum varchar2(20) := 'Entitlements Summary';
str_row EXCEPTION;
do_cnt EXCEPTION;
no_logged_in_user EXCEPTION;
property_not_found EXCEPTION;
pragma exception_init(Str_row,-20001);
pragma exception_init(Do_cnt,-20002);
pragma exception_init(no_logged_in_user,-20003);
BEGIN
-- Throw exception if the start row or page size is either NULL or have
-- values less than or equal to zero
IF (intstartrow_in <= 0 OR intpagesize_in <= 0 OR intstartrow_in IS NULL OR intpagesize_in IS NULL)
THEN
RAISE str_row;
END IF;
-- Throw exception if the intdocount_in parameter is NULL or has a value
-- other than 0 and 1
IF intdocount_in NOT IN (0, 1, 2) OR intdocount_in IS NULL
THEN
RAISE do_cnt;
END IF;
-- Throw exception if the intuserkey_in (logged in user) parameter is NULL
IF intuserkey_in IS NULL or intuserkey_in <= 0
THEN
RAISE no_logged_in_user;
END IF;
-- Now, we start accumulating the whereclause based on the input
-- parameters, performing error checking along the way.
--Organization Permissioning.
/* whereclause := ' and usr.act_key IN (SELECT DISTINCT act2.act_key FROM '||
' act act2, aad, usg, ugp, usr usr5 '||
' WHERE act2.act_key = aad.act_key '||
' and aad.ugp_key = usg.ugp_key '||
' and ugp.ugp_key = usg.ugp_key'||
' and usg.usr_key = usr5.usr_key'||
' and usr5.usr_key = '||intuserkey_in||')'; */
IF strfiltercolumnlist_in IS NOT NULL AND
strfiltercolumnvaluelist_in IS NOT NULL THEN
whereclause := whereclause
|| xl_sfg_parseparams(strfiltercolumnlist_in,
strfiltercolumnvaluelist_in);
END IF;
IF struserlogin_in IS NOT NULL THEN
whereclause := whereclause
|| ' AND UPPER(usr.usr_login) LIKE '
|| UPPER (''''||struserlogin_in||'''')
|| ' ';
END IF;
IF strudfcolumnlist_in IS NOT NULL AND
strudfcolumnvaluelist_in IS NOT NULL THEN
whereclause := whereclause
|| xl_sfg_parseparams(strudfcolumnlist_in,
strudfcolumnvaluelist_in);
END IF;
-- Perform the count query and store the result in inttotalrows_out
inttotalrows_out := 0;
IF intdocount_in IN (1,2) THEN
EXECUTE IMMEDIATE ' select count(*) from((SELECT upper(rcd.RCD_VALUE) as "User ID" '|| ' FROM rce, obj, rcd, orf '||
' WHERE '||
' RCE_STATUS like 'No Match Found' '||
' AND ((orf.ORF_FIELDNAME like 'User ID') or (orf.ORF_FIELDNAME like 'User%Login')) '||
' AND rce.OBJ_KEY = obj.OBJ_KEY '||
' AND rce.RCE_KEY = rcd.RCE_KEY '||
' AND rcd.ORF_KEY = orf.ORF_KEY '||
' ) '||
' MINUS '||
' (SELECT usr.USR_LOGIN FROM usr '||
' WHERE '||
' usr.USR_STATUS like 'Active')) '||
whereclause INTO inttotalrows_out;
-- UI needs the SP to return result set always. The following is returned
-- when the indocount is 2 which does not return any result set but count
IF intdocount_in = 2 THEN
select_stmt := 'SELECT ''dummy'' FROM dual';
OPEN csrresultset_inout FOR select_stmt;
END IF;
END IF;
-- If intdocount_in is 2, UI just wants to get the totalrows to give
-- the warning to users if the result set exceeds the limit set by
-- UI. When ntdocount_in is 2, the following block won't be executed.
IF intdocount_in IN (0,1) THEN
-- Construct the select query by calling XL_SPG_GetPagingSql.
-- This is the main query for this stored procedure
strOrderByClause := ' usr.usr_login';
--strOrderByClause := ' req.req_key';
IF strsortorder_in = 'DESC' THEN
intSortDirection_in := 0;
ELSE
intSortDirection_in := 1;
END IF;
XL_SPG_GetPagingSql(strColumnList,
strFromClause,
whereclause,
strOrderByClause,
intSortDirection_in,
intStartRow_in,
intPageSize_in,
select_stmt
OPEN csrresultset_inout FOR select_stmt;
END IF;
-- Exception Handling
EXCEPTION
WHEN Str_row THEN
RAISE_APPLICATION_ERROR(sqlcode,
'Start Row/Page Size cannot be NULL OR less than or equal to zero ');
WHEN Do_cnt THEN
RAISE_APPLICATION_ERROR(sqlcode,
'Do Count must be 0, 1 or 2. ');
WHEN no_logged_in_user THEN
RAISE_APPLICATION_ERROR(sqlcode,
'Logged-in User Key cannot be NULL OR less than or equal to zero ');
END;
end XL_SP_ROGUEUSERS;
But Am getting the following error message, I couldn't figure wat it is.Can anyone help me:-
PLS-00103: Encountered the symbol "NO" 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 || bulk member SUBMULTISET_Please use tags when posting code. Also please format the code so that blocks line up vertically - often that makes syntax errors like missing END IFs etc much easier to spot.
-
Pls help me, what happen to the itune or my ipod?
the moment i plug my ipod into my computer, the itune update the songs and videos itself, but later on, i added something else into the itune, i update my ipod again, it doesn't work, it appear an error message said "The ipod cannot be updated. The disk could not be read from or written to" anybody can help me pls? send me the answer to my email if possible. [email protected] Thanks alot
hiya!
here's a good place to start with that error message:
"Disk cannot be read from or written to" when syncing iPod or "Firmware update failure" error when updating or restoring iPod
love, b -
I remove CTIOS 8 in window 8.1, and install CTIOS 9.0 but i am trying to login they given the error. Pls help
This may help, it allows you to reset the application, it also may be worth clearing out the app store cache and temp files.
http://www.ryanragle.com/index.php?/site/comments/where-does-the-mac-app-store-d ownload-temp-files-to
To contact Apple use the feedback form, this is a user forum and I don't think they will respond here.
regards -
Error in Installation of SAP R/3 4.7 - Urgent Help Pls !!!
Hi All,
I have a problem while installing SAP R/3 4.7. The Central instance has been successfully installed. Error occurred while installing the database instance. I am using SAPDB as the database. The error I get is the following:
**INFO 2008-03-01 14:15:57**
**Processing of host operation t_HostInfo_SHARED succeeded.**
**INFO 2008-03-01 14:16:07**
**The 'saploc' share exists at directory 'E:\usr\sap'. Choosing drive E: as SAP System drive.**
**INFO[E] 2008-03-01 14:16:56**
**Account group="ORA_GOK_DBA" does not exist. <#1>**
**INFO[E] 2008-03-01 14:17:05**
**Account group="ORA_GOK_OPER" does not exist. <#1>**
**INFO[E] 2008-03-01 14:17:23**
**Account group="SAPSRV\dbgokctl" does not exist. <#1>**
**INFO 2008-03-01 14:19:23**
**Copying file C:/SAP Dumps/Core Release SR1 Export_CD1_51019634/DB/ADA/DBSIZE.XML to: DBSIZE.XML.**
**INFO 2008-03-01 14:19:23**
**Creating file C:\SAPinst SAPDB SAPINST\DBSIZE.XML.**
**INFO 2008-03-01 14:19:23**
**Copying file system node C:\SAP Dumps\Core Release SR1 Export_CD1_51019634/DB/ADA/DBSIZE.XML with type NODE to DBSIZE.XML succeeded.**
**INFO 2008-03-01 14:19:23**
**Processing of all file system node operations of table tADA_Files succeeded.**
**WARNING 2008-03-01 14:19:24**
**Error 2 (The system cannot find the file specified.) in execution of a 'RegOpenKeyEx' function, line (274), with parameter (SOFTWARE\SAP\SAP DBTech).**
**ERROR 2008-03-01 14:19:24**
**MDB-07003 Exception occurred during Actor Call (Action READ_PROFILE_INFO).**
**ERROR 2008-03-01 14:19:24**
**MDB-07000 Execute Action READ_PROFILE_INFO failed.**
**ERROR 2008-03-01 14:20:47**
**MSC-01003 ESyException: ESAPinstException: error text undefined**
**ERROR 2008-03-01 14:20:47**
**FJS-00012 Error when executing script.**
**ERROR 2008-03-01 14:20:47**
**FCO-00011 The step fillR3loadPackageTable with step key SAPSYSTEM|ind|ind|ind|ind|ind|0|SAPComponent|ind|ind|ind|ind|ind|0|DatabaseLoad|ind|ind|ind|ind|ind|0|fillR3loadPackageTable executed with status ERROR.**
**ERROR 2008-03-01 14:20:47**
**FSL-02015 Node C:\SAP\DATA does not exist.**
Kindly let me know the solution to correct the error. Its urgent pls !!!
Regards,
Rose.Hello,
The problem is caused due to the spaces in your directories
C:\SAP Dumps\Core Release SR1 Export_CD1_51019634/DB/ADA/DBSIZE.XML
Replace the spaces with underscores and restart the installation from from scratch.
Cheers
Bert -
Pls help me writing logic:iterate tag in jsp page
Hey guys , I am struck in retriving string p1,p2,p3 in the jsp page
Pls have a look ata the code
In DAO class:-
StdprdDAO.java
Public arrayList getPFP()
ArrayList a = new ArrayList();
While(rs.next())
columnsVO colVO = new columnsVO;
colVO.setProduct(rset.getString(1));//will store in String colProduct
colVO.setFamily(rset.getString(2));//will store in String colFamily
colVO.setPrice(rset.getString(3));//will store in String colPrice
a.add(colVO);
return a;
In Action Class:-
ArrayList final = null;
StdprdDAO DAO = new stdprdDAO();
final = DAO.getPFP();
For(int i = 0; final !=null && i<final.size() ; i++)
columnsVO VO = null;
VO = (columnsVO)final.get(i);
String p1 = (String) VO.getProduct();
String p2 = (String) VO.getFamily();
String p3 = (String) VO.getPrice();
Request.setAttribute(p1,p1);
Request.setAttribute(p2,p2);
Request.setAttribute(p3,p3);
In JSP PAGE:-
id = columnsVO>
<bean:write name = columnsVO property=final id=p1>
but still I am doubting my above sentences in jsp page ,so pls correct them if possible.
Instead of l;ogic:iterate can I use directly getattribute(p1)? <logic:iterate
Still I m doubting I can not utilize columnsVO file in logic:iterate, I can utilize only formbean file.
So pls help me with this.May I ask why have you done it?
If it is related to printing of the list then it is of no use.But it IS of use. The objects compEmployees is in scope.
It has the list we want to print out.
With logic:iterate:
<table>
<tr>
<th>Number</th>
<th>Employee</th>
</tr>
<logic:iterate name="compEmployees" property="totalEmps" id="emp">
<tr>
<td>
<bean:write name="emp" property="empNo"/>
</td>
<td>
<bean:write name="emp" property="empName"/>
</td>
</tr>
</logic:iterate>
</table>or alternatively with JSTL and c:forEach
<table>
<tr>
<th>Number</th>
<th>Employee</th>
</tr>
<c:forEach items="${compEmployees.totalEmps}" var="emp">
<tr>
<td>
<c:out value="${emp.empNo}"/>
</td>
<td>
<c:out value="${emp.empName}"/>
</td>
</tr>
</c:forEach>
</table>Cheers,
evnafets -
Pls help me.. unable to get past mac login sreen!!
Hello people, This is my first post and after much searching i am praying someone can help..!
I have a mac g5 dual, and i am having a really annoying problem, my mac keyboard is not working, sometimes some of the keys work but others dont, or none of the keys work, or when i press a button it types a different letter or types 2 or 3 at once!!
Therefore i can not get past the login screen as the keys needed for thre password do not work!! not even when i try to log into admin!!
I have purchased a new keyboard today, (wireless apple) but i can not get that to work as i need to pair it to the mac before it will work but i cant pair without getting past the login screen!!!
typical that this should happen on my only couple of days off too!!
pls HELP ME
thanks in advance..Yeah, I tried every port available.
Is there anyway at all i can get into the system settings with a shortcut on startup?
Then again Im still not sure that the keys will work to use a shortcut.
Its odd because i managed (just) to login earlier in the day, but the keyboard just seemed to get steadily worse until none of the keys worked!!
Cheers Dale
any other ideas?? -
Can someone pls help me with this code
The method createScreen() creates the first screen wherein the user makes a selection if he wants all the data ,in a range or single data.The problem comes in when the user makes a selection of single.that then displays the singleScreen() method.Then the user has to input a key data like date or invoice no on the basis of which all the information for that set of data is selected.Now if the user inputs a wrong key that does not exist for the first time the program says invalid entry of data,after u click ok on the option pane it prompts him to enter the data again.But since then whenever the user inputs wrong data the program says wrong data but after displaying the singlescreen again does not wait for input from the user it again flashes the option pane with the invalid entry message.and this goes on doubling everytime the user inputs wrong data.the second wrong entry of data flashes the error message twice,the third wrong entry flashes the option pane message 4 times and so on.What actually happens is it does not wait at the singlescreen() for user to input data ,it straight goes into displaying the JOptionPane message for wrong data entry so we have to click the optiion pane twice,four times and so on.
Can someone pls help me with this!!!!!!!!!
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.text.*;
import java.util.*;
public class MainMenu extends JFrame implements ActionListener,ItemListener{
//class
FileReaderDemo1 fd=new FileReaderDemo1();
FileReaderDemo1 fr;
Swing1Win sw;
//primary
int monthkey=1,counter=0;
boolean flag=false,splitflag=false;
String selection,monthselection,dateselection="01",yearselection="00",s,searchcriteria="By Date",datekey,smonthkey,invoiceno;
//arrays
String singlesearcharray[];
String[] monthlist={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"};
String[] datelist=new String[31];
String[] yearlist=new String[100];
String[] searchlist={"By Date","By Invoiceno"};
//collection
Hashtable allinvoicesdata=new Hashtable();
Vector data=new Vector();
Enumeration keydata;
//components
JButton next=new JButton("NEXT>>");
JComboBox month,date,year,search;
JLabel bydate,byinvno,trial;
JTextField yeartext,invtext;
JPanel panel1,panel2,panel3,panel4;
JRadioButton single,range,all;
ButtonGroup group;
JButton select=new JButton("SELECT");
//frame and layout declarations
JFrame jf;
Container con;
GridBagLayout gridbag=new GridBagLayout();
GridBagConstraints gc=new GridBagConstraints();
//constructor
MainMenu(){
jf=new JFrame();
con=getContentPane();
con.setLayout(null);
fr=new FileReaderDemo1();
createScreen();
setSize(500,250);
setLocation(250,250);
setVisible(true);
//This is thefirst screen displayed
public void createScreen(){
group=new ButtonGroup();
single=new JRadioButton("SINGLE");
range=new JRadioButton("RANGE");
all=new JRadioButton("ALL");
search=new JComboBox(searchlist);
group.add(single);
group.add(range);
group.add(all);
single.setBounds(100,50,100,20);
search.setBounds(200,50,100,20);
range.setBounds(100,90,100,20);
all.setBounds(100,130,100,20);
select.setBounds(200,200,100,20);
con.add(single);
con.add(search);
con.add(range);
con.add(all);
con.add(select);
search.setEnabled(false);
single.addItemListener(this);
search.addActionListener(new MyActionListener());
range.addItemListener(this);
all.addItemListener(this);
select.addActionListener(this);
public class MyActionListener implements ActionListener{
public void actionPerformed(ActionEvent a){
JComboBox cb=(JComboBox)a.getSource();
if(a.getSource().equals(month))
monthkey=((cb.getSelectedIndex())+1);
if(a.getSource().equals(date)){
dateselection=(String)cb.getSelectedItem();
if(a.getSource().equals(year))
yearselection=(String)cb.getSelectedItem();
if(a.getSource().equals(search)){
searchcriteria=(String)cb.getSelectedItem();
public void itemStateChanged(ItemEvent ie){
if(ie.getItem()==single){
selection="single";
search.setEnabled(true);
else if (ie.getItem()==all){
selection="all";
search.setEnabled(false);
else if (ie.getItem()==range){
search.setEnabled(false);
public void actionPerformed(ActionEvent ae){
if(ae.getSource().equals(select))
if(selection.equals("single")){
singleScreen();
if(selection.equals("all"))
sw=new Swing1Win();
if(ae.getSource().equals(next)){
if(monthkey<9)
smonthkey="0"+monthkey;
System.out.println(smonthkey+"/"+dateselection+"/"+yearselection+"it prints this");
allinvoicesdata=fr.read(searchcriteria);
if (searchcriteria.equals("By Date")){
System.out.println("it goes in this");
singleinvoice(smonthkey+"/"+dateselection+"/"+yearselection);
else if (searchcriteria.equals("By Invoiceno")){
invoiceno=invtext.getText();
singleinvoice(invoiceno);
if (flag == false){
System.out.println("flag is false");
singleScreen();
else{
System.out.println("its in here");
singlesearcharray=new String[data.size()];
data.copyInto(singlesearcharray);
sw=new Swing1Win(singlesearcharray);
public void singleinvoice(String searchdata){
keydata=allinvoicesdata.keys();
while(keydata.hasMoreElements()){
s=(String)keydata.nextElement();
if(s.equals(searchdata)){
System.out.println(s);
flag=true;
break;
if (flag==true){
System.out.println("vector found");
System.exit(0);
data= ((Vector)(allinvoicesdata.get(s)));
else{
JOptionPane.showMessageDialog(jf,"Invalid entry of date : choose again");
public void singleScreen(){
System.out.println("its at the start");
con.removeAll();
SwingUtilities.updateComponentTreeUI(con);
con.setLayout(null);
counter=0;
panel2=new JPanel(gridbag);
bydate=new JLabel("By Date : ");
byinvno=new JLabel("By Invoice No : ");
dateComboBox();
invtext=new JTextField(6);
gc.gridx=0;
gc.gridy=0;
gc.gridwidth=1;
gridbag.setConstraints(month,gc);
panel2.add(month);
gc.gridx=1;
gc.gridy=0;
gridbag.setConstraints(date,gc);
panel2.add(date);
gc.gridx=2;
gc.gridy=0;
gc.gridwidth=1;
gridbag.setConstraints(year,gc);
panel2.add(year);
bydate.setBounds(100,30,60,20);
con.add(bydate);
panel2.setBounds(170,30,200,30);
con.add(panel2);
byinvno.setBounds(100,70,100,20);
invtext.setBounds(200,70,50,20);
con.add(byinvno);
con.add(invtext);
next.setBounds(300,200,100,20);
con.add(next);
if (searchcriteria.equals("By Invoiceno")){
month.setEnabled(false);
date.setEnabled(false);
year.setEnabled(false);
else if(searchcriteria.equals("By Date")){
byinvno.setEnabled(false);
invtext.setEnabled(false);
monthkey=1;
dateselection="01";
yearselection="00";
month.addActionListener(new MyActionListener());
date.addActionListener(new MyActionListener());
year.addActionListener(new MyActionListener());
next.addActionListener(this);
invtext.addKeyListener(new KeyAdapter(){
public void keyTyped(KeyEvent ke){
char c=ke.getKeyChar();
if ((c == KeyEvent.VK_BACK_SPACE) ||(c == KeyEvent.VK_DELETE)){
System.out.println(counter+"before");
counter--;
System.out.println(counter+"after");
else
counter++;
if(counter>6){
System.out.println(counter);
counter--;
ke.consume();
else
if(!((Character.isDigit(c) || (c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)))){
getToolkit().beep();
counter--;
JOptionPane.showMessageDialog(null,"please enter numerical value");
ke.consume();
System.out.println("its at the end");
public void dateComboBox(){
for (int counter=0,day=01;day<=31;counter++,day++)
if(day<=9)
datelist[counter]="0"+String.valueOf(day);
else
datelist[counter]=String.valueOf(day);
for(int counter=0,yr=00;yr<=99;yr++,counter++)
if(yr<=9)
yearlist[counter]="0"+String.valueOf(yr);
else
yearlist[counter]=String.valueOf(yr);
month=new JComboBox(monthlist);
date=new JComboBox(datelist);
year=new JComboBox(yearlist);
public static void main(String[] args){
MainMenu mm=new MainMenu();
public class WindowHandler extends WindowAdapter{
public void windowClosing(WindowEvent we){
jf.dispose();
System.exit(0);
}Hi,
I had a similar problem with a message dialog. Don't know if it is a bug, I was in a hurry and had no time to search the bug database... I found a solution by using keyPressed() and keyReleased() instead of keyTyped():
private boolean pressed = false;
public void keyPressed(KeyEvent e) {
pressed = true;
public void keyReleased(KeyEvent e) {
if (!pressed) {
e.consume();
return;
// Here you can test whatever key you want
//...I don't know if it will help you, but it worked for me.
Regards. -
Hi! For part of my homework I have to use a Calendar. A guy in my class gave me a program but it like, doesn't work! When I print out the date I get 9/4/2003 but it's like, May not April! Help me pls!
Thanx!
JSHi everyone!
What did the code look like that this guy gave you?
System.out.println("9/4/2003"); ??? No! Actually this guy is like, really good at java. That's why I ask him to help me : )
Welcome back, Jessica. You're like, as good as clockwork.Thanx!
Jessica, are you blonde by any chance? Whatever! Blonde jokes are sooo last season.
Sorry I'm going out in 3 hours so I've got to start getting ready now. If anyone's going to chinawhite in London tonight I'll like, see you there!
JS
Maybe you are looking for
-
I had to change my personal email address that was linked to my iTunes and iCloud. According to the information in my Apple ID, it is switched over. My phone, however, disagrees with me. I keep getting a pop-up asking me to sign into my iCloud acc
-
Contents of page not displaying in IE 7&8
I'm having trouble understanding why contents after the Spry Menu won't display in IE 8, and the page won't display at all in IE 7. Seems http://nowagenewmedia.com/organica/ CSS vertical-align: baseline; font-weight: inherit; font-family:
-
Small problem: SQL statement in JSP
Hello, I have the following problem: I have an SQL-expression like this: SELECT * FROM tablename WHERE ... In the WHERE clausule I have to refer to a variable, like this: String varname = "abcde" "SELECT * FROM tablename WHERE attribute = varname"; T
-
Installed tv series and one show will not play
I feel like I am getting the run around... I downloaded to my itunes and installed on my ipod the tv series Big Bang Theory season one. Out of the 17 shows one will not play. I have tried uninstalling it and reinstalling it several times with no suce
-
Automatic clearing definitions
I need clear payroll accounts automatically by F.13, but does not work. The criteria in OB74 is WRBTR. When odd items appear in account it doesn't match: 100,000.00 100,000.00 100,000.00 - When items come in pairs clearing occurs: 100,000.00 100,000.