BW - Invalid procedures
Hi all,
From production to development instances of BW, I remark that all procedures are in invalid status. Those procedures are started as "/BI0/<number> and the owner is sapr3.
When recompiled those invalid objects, I got only this kind of error : PL/SQL: ORA-00942: table or view does not exist
I did verify 1 procedure, and effectively the table used in the procedure does not exist.
My questions are :
1) Is it normal that those procedures exist but the objects used donot exist ?
2) Can I drop those invalid procedures ? Do I need a consent of SAP support ?
3) In case I cannot drop them, how can I put them in valid status ?
Thanks for your input.
Hai-Thuy.
Hi Stefan,
In my BW production, there are about 600 invalid out of 600 temporary objects. The created date of those were back on 2001. Some of them (3%) were re-used recently, March 29th 2008. Others seems not.
According to note #449891, those objects are used in the InfoCube, and should be removed after use. I understand that views/packages/procedures do not taking spaces but, if they suppose not to be there, then they should not be there.
I'll work with the BW developer to add the extra steps at the end of InfoCube process to remove all temporary objects it creates during the run.
Regards
Hai-Thuy.
Edited by: Hai-Thuy Nguyen on Sep 26, 2008 4:06 PM
Similar Messages
-
FDM Conditional Map error - Invalid Procedure Call or arguments
Hi,
I am trying to add a script to my LIKE mapping to pick up the target Product based on the type of target account.
This is the script I have written -
If Mid(varValues(14),1,1) = "6" Then Result = varValues(37) Else Result = varValues(21) End If
When i try to import (using Integration script from a database table) I get the error - Invalid Procedure Call or arguments.
If I remove the 'Else' part, it imports successfully. Also I tried the same using Case statements - I get the same error, if I remove 'Case Else' it works fine.
Any hekp on this would be highly appreciated!
Thanks in advnace...This mapping is associated with Product dimension - UD10 (varValues(37)). UD10 is active and mappable, mapped to target Product dimension. UD2 (varValues(21)) is the lookup which is not mapped to a target dimension.
-
Bex Designer 3.5: An unexpected 'invalid procedure call or argument' error
Hi,
Our Bex environment has both 3.5 and 7.0 queries and objects.
Recently Bex Query Designer 3.5 started crashing when we expand on the Restricted Key Figures. It works fine in 7.0 designer. And, expanding the Calculated Key Figures works fine in both 3.5 and 7.0
It only happens on 1 multiprovider, which has more than 100 RKFs.
The error message is: An unexpected 'invalid procedure call or argument' error occured in wdbrlog.
On clicking Continue, the next message is: Run-time error '-2147221499 (80040005)'; Fatal Error - Terminating
The same error is happening in Test, UAT and Production environments for this 1 multiprovider.
I resinstalled Business Explorer client software, but no change.
Any suggestions on how to fix or approach fixing this?
Thanks!Problem was resolved by opening a note with SAP. Their response is pasted below:
"The problem has been solved. The reason for the termination in Query Designer was actually the fact the one Restricted Key Figure somehow has lost it's technical name.
The problematic object is RKF SAP Plan Value (4L9J85WYTCFK4DEA63PD2R4V7)The user given name of this object was not available in the database table RSZCOMPDIR and was actually required in the Query Designer. The application was not able to create a tree of expanded RKFs having no technical names.
In general, this error can be fixed by the special check program analyze_rsz_tables which is supposed to try to find out this missing technical name. But in this particular case the repair procedure in the program has failed as no traces or information what this missing name could be was available. Therefore I just fixed this issue manually by entering a new technical name for this object." -
Error #5 - XMLExporter - Invalid procedure call or argument
I cannot seem to get past this error:
Error #5 - XMLExporter - Invalid procedure call or argument C:\temp\Larry1.mdb Database Schema Export did not complete successfully.
Oracle SQL Developer (3.1.07) Build MAIN-07.42
Windows XP - 5.1 Build 2600.xpsp_sp3_gdr.111025-1629 Service Pack 3
Access 2002 (10.4302.4219) SP-2
Tools > References:
Visual Basic for Applications
Microsoft Access 10.0 Object Library
OLE Automation
Microsoft DAO 3.6 Object Library
Microsoft ActiveX Data Ojbects 2.5 Library
Larry1.mdb is a new MDB created for this test, with one table and nothing else.
Table: Person
Columns:
ID auto-number, primary key
Name text 50
Age Number (Long Integer)
Any suggestions?Larry,
I did some research on this error and can only recommend to read some other forum threads in the hope they give you some help:
https://kr.forums.oracle.com/forums/thread.jspa?messageID=4176175
Trying to use MS Access Migration
Error #5 - XMLExporter - Invalid procedure call or argument.
If that does not help I suggest you open a Service Request with Oracle Support so that you can upload your mdb file for further investigations.
Regards
Wolfgang -
Error #5 - XMLExporter - Invalid procedure call or argument c:
MS Access version installed on machine
* Version of MDB file - 2002
* Operating System - Windows Server 2003
* Service Pack version - Service Pack 2
* Is it a linked MDB file? Tables already linked to Oracle Backend
* Version of Exporter tool used - 10.2.0.2.0
* Have you carried out the steps to analyse your MDB file to remove erroneous/invalid objects? Yes
Using the Exporter I keep gettin this Error message after about 3sec
Error #5 - XMLExporter - Invalid procedure call or argument c:<Location of .mdb> Database Schema did not complete successfully
Would somebody by any chance know what wrong. I ran the documenter and everything seems to be fine
ThanksHi Roger,
Can you please confirm that you carried out the steps outlined in the Diagnosing Exporter Problems announcement - http://forums.oracle.com/forums/ann.jspa?annID=376 ?
I have been unable to reproduce the reported error with the 2002 Exporter, so for the time being, I would recommend that you continue using the 2000 version. It would be very helpful if I could obtain a copy of your MDB file (a copy of the MDB file without the data would suffice). I could then use it in an attempt to replicate the issue, and resolve it for a future release of the Exporter tool. If possible, could you please update your profile with your email address so I can contact you directly.
Regards,
Hilary -
1.udfs,2 invalidated procedures
I have couple of problems with my database. Please suggest solution.
We are basically a web product With a Quite large Database
1. I am using functions both User Defined and Built in Functions in
SQL Statement. I want to optimize the query how do i do it.
why the usage of function in sql statements suppresses,the
usage of indexes internally. How to forceable make use of
the index even though function is used.
2. Whenver The Client makes a request to the Database server with a
Sql Query What are the steps we can take at the
client side to enhance the performance of the Query.
(i.e the Data Request ). How to optimize the usage of CPU at
client site?
3. what is the increase in the performance ration by having
separate table spaces for user data,system data and indexes.
4. Why the procedures are getting invalided
after some time. The procedure is
not getting executed at the front end.
Once the procedure is getting invalidated.
However even though the status of the
procedure is invalid the same is getting
executed at the back end.
Can anybody help me
Request for reply ASAP.
Regards
Koshal
nullI have couple of problems with my database. Please suggest solution.
We are basically a web product With a Quite large Database
1. I am using functions both User Defined and Built in Functions in
SQL Statement. I want to optimize the query how do i do it.
why the usage of function in sql statements suppresses,the
usage of indexes internally. How to forceable make use of
the index even though function is used.
2. Whenver The Client makes a request to the Database server with a
Sql Query What are the steps we can take at the
client side to enhance the performance of the Query.
(i.e the Data Request ). How to optimize the usage of CPU at
client site?
3. what is the increase in the performance ration by having
separate table spaces for user data,system data and indexes.
4. Why the procedures are getting invalided
after some time. The procedure is
not getting executed at the front end.
Once the procedure is getting invalidated.
However even though the status of the
procedure is invalid the same is getting
executed at the back end.
Can anybody help me
Request for reply ASAP.
Regards
Koshal
null -
Invalid Procedures that are not invalid
Why do I keep seeing "INVALID" next to some of my stored procedures even though they they compile and work perfectly fine? It happens randomly. One day everything is cool, then a whole bunch of them (usually the same ones) show "INVALID" next to them. In 2.0 they have a "red bar" which I guess means invalid.
I go and rerun the script to create them (i.e. "create or replace procedure ...") and once they are recreated the red bar (or "INVALID" in 1.6) go away. But then a few hours later they reappear as INVALID again. It is not affecting the way my application works, but I did run into problems when originally trying to import my application from 1.6 to 2.0 b/c those procedures were flagged as invalid. In order to get around the problem I had to quickly recompile all of them and then export the application before they were all reset to INVALID.
What gives?Ami - Invalid objects have no effect on application export or import. You have erred in reaching that conclusion. Also, if you don't like to see "Invalid" (or the red bar) in the object reports, you need to find out which dependent objects are changing (apparently without your knowledge) as the anonymous user explained. The aim should not be to address the aesthetic, however, but rather to obtain a basis for believing that what is at the moment an inconsequential problem will remain so.
Scott -
To all,
We have two procedures that become invalid and do not execute.
We are running Oracle 8.06.
The tier goes like this:
Procedure A (calls Function B)
Function B (Calls functions C)
Functions (C) depend on tables and views.
The question: What are all the possible reasons for a procedure becoming invalid. The issue of dependencies comes in here (I not sure I understand it any more :-(| ) For each procedure there is an underlying function (B) that becomes invalid, making the calling procedure invalid (perhaps). The funny thing is that other functions (C) being called by those functions (B), are not invalid. The underlying tables have not been dropped or their structured altered. There are some indexes being dropped and recreated, would that make the procedure become invalid? In addition the underlying functions rely on tables and views.
I'm recompiling the functions and procedures manually to execute at this point.
Any ideas?
Thanks beforehand for any and all information on this subject.
Otto Astorga
[email protected]Hi,
If Table dropped then the function become invalid. If function is invalid then your procedure become invalid.
If you give the error which is given by the system, it will be great to help.
Regards,
Sailaja -
Taking time while compliling invalid procedure
Hi,
i have oracle 11gR2 installed on Windows 2008 R1 64 bit OS, i have one procedure which is in invalid status. that procedure is having the DB links also.
When i am trying to compile this procedure , its talking infinite time to compile ..
i tried these below 2 statements for compiling the procedure the same.
1.ALTER PROCEDURE EXP.PR_LOAD_RATES COMPILE ----- as sys schema
2.Exec dbms_ddl.alter_compile ( PROCEDURE , EXP, PR_LOAD_RATES );-------- as sys schema
Anybody help me to resolve this issue ? why its taking too much time and where can i see the cause of this and how to trace this process ? Is there any other way to compile the same procedure.
Thanks & Regards,
Vikash JainHi all,
the below code i am using...
CREATE OR REPLACE PROCEDURE Pr_Load_Rates
IS
vDate VARCHAR2(10);
BEGIN
vDate := TO_CHAR( SYSDATE,'YYYY-MM-DD');
DELETE FROM ors_rsk_m2m_fut_rate;
-- Futures
INSERT INTO ors_rsk_m2m_fut_rate
(pr_code,prcat_code,exch_code,num_mon,fut_rate,run_date)
SELECT DISTINCT pr_code,prcat_code,exch_code,tshipmon,m2m_fut_rate,vDate run_date
FROM rsk.rsk_exp@test_link
WHERE run_date BETWEEN TO_DATE (vDate, 'YYYY-MM-DD')
AND TO_DATE (vDate||' 23:59:59',
'YYYY-MM-DD HH24:mi:ss')
AND pos_type IN ( 'F','SW');
COMMIT;
EXCEPTION
WHEN OTHERS THEN
NULL;
END Pr_Load_Rates;
this is the db link creation script
CREATE DATABASE LINK "test_link"
CONNECT TO RSK
IDENTIFIED BY RSK
USING 'test_db';
and i have the Tnsentry also as test_db in the same server..
kindly tell me where is the problem ?
thanks & Regards,
Vikash Jain -
Avoid invalid procedure being created using shell file
I am creating certain procedures and fuctions on my oracle 10g database by calling sql scripts from a shell file on solaris 10 platform.
I do not want to create any procedure that will become invalid after creation because of missing tables being used by it.
How can i control this behavior in my shell file so that only those procedure's scripts get executed that will be valid after creation.
One approach might be to check all dependent tables, return output from sqlplus to the unix shell file and then based on result, decide whether to execute the sql script or not.
Can there be anyother way of doing this job ?Yes you are right.
But, our application is such that we give client different set of tables. Some client might have 100 tables and some might have 200 tables.
We do not want to test for every client that whether certain procedure would be valid or not.
We want that our scripts are such that if a db do not contain tables being used by some procedure then that procedure should not be created on the client db.
This might be solution that we create that procedure and then at the end delete all invalid procedures -
Hi all,
procedure is invalid. I tried to compile it, but after a long time I have this error:
ora 04021 timeout occured while waitint to lock scott.proc
where proc is java stored procedure created by scott.
It's the same error when attempting to grant EXECUTE on proc_synonym.
Any help will be greatly appreciated.Problem is solved
-
Hi Folks.
I know that drop a partition make invalid public synonyms, packages, functions.
But.
Add partition, can make invalid some object?
I tested and didnt find objects invalid.
Tks>
I tested and didnt find objects invalid.
>
Please confirm that your tests included these steps
1. created a partitioned table
2. create at least one of every possible type of object that might depend on that table
3. performed an ADD PARTITION that succeeded
4. confirmed that NONE of the objects from step #2 were invalidated
5. performed an ADD PARTITION that failed in various ways (local index partition can't be created, tablespace can't be extended, non-existent tablespace, etc)
6. confirmed that NONE of the objects from step #2 were invalidated.
See ALTER TABLE in the SQL Language Reference
http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_3001.htm
>
Note:
If you alter a table that is a master table for one or more materialized views, then Oracle Database marks the materialized views INVALID. Invalid materialized views cannot be used by query rewrite and cannot be refreshed. For information on revalidating a materialized view, see ALTER MATERIALIZED VIEW.
>
Did you test that the above MV is not invalidated?
Did you test that adding a partition did not invalidate any local or global indexes? -
"Run-time Error "5": Invalid Procedure Call or Argument" when starting application
I tried installing an old custom accounting application on Windows 7 and it won't run.
I then tried using the "simpleprogramdebugger" and here are the last few lines when the error was encountered:
Event Time
Event Type
Thread ID
Memory Address
Filename
More Information
00:00.6
Load DLL
5044
0x74cc0000
C:\Windows\system32\rsaenh.dll
00:00.7
Exception
5044
0x755e812f
Exception Code: 0xc000008f, Parameters: , 0xdeadcafe, 0xdeadcafe
00:00.7
Load DLL
5044
0x74400000
C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.DLL
00:02.8
Exception
5044
0x755e812f
Exception Code: 0xc000008f, Parameters: , 0xdeadcafe, 0xdeadcafe
00:02.8
Exit Thread
6108
Exit Code: 0x00000000
00:02.8
Exit Process
5044
Exit Code: 0x00000000
Any suggestions on how I might fix this problem?Hi,
The MONITOR told that the hhes3.exe is trying to query wing.dll,wing32.dll qtim32.dll and WAVMIX16.dll which cannot be found on your system. See:
And wing.dll is a very old Windows 3.11 DLL, more information regarding this, please check this thread:Wing.dll
could not be found,
As you told that this application could be run on another PC running Windows 7 Premium, could you please also have a share with the log running on that PC?
From the result it seems that this application is not compatible with your OS current version. So if you want to run this application, we could run it in an XP virtual box, or we might try with
XP mode.
Hope this might help
Best regards
Michael
If you have any feedback on our support, please click
here.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Hi,
I',m very new of EXCEL VBA programs, one of the pivot table able to run with out error.
but other getting error when i run it
below codes are automatically created by excel macro recorder.
if you help me out this situation, i really appriciated
Sub Macro11()
' Macro11 Macro
ActiveWorkbook.Worksheets("LCG-JKX").PivotTables("ThickCheckIn").PivotCache. _
CreatePivotTable TableDestination:="LCG-JKX!R17C64", TableName:= _
"PivotTable9", DefaultVersion:=xlPivotTableVersion15
Sheets("LCG-JKX").Select
CellS(17, 64).Select
ActiveWorkbook.ShowPivotTableFieldList = True
With ActiveSheet.PivotTables("PivotTable9")
.PivotFields("Thick(mm)").Orientation = xlRowField
.PivotFields("matTypeC").Orientation = xlPageField
End With
ActiveSheet.PivotTables("PivotTable9").ColumnGrand = False
Range("BL17").Select
ActiveSheet.PivotTables("PivotTable9").PivotSelect "", xlDataAndLabel, True
Selection.ClearContents
Range("BH18").Select
End SubYou can't have two pivot table with same name in a sheet. As the macro names pivot table as "Pi...9" always if you run 2nd time, macro will try naming with "Pi..9" again but is not allowed.
try changing only the first block.
ActiveWorkbook.Worksheets("LCG-JKX").PivotTables("ThickCheckIn").PivotCache. _
CreatePivotTable TableDestination:="LCG-JKX!R17C64", TableName:= _
"PivotTable" & [=round(Rand()*1000,0)], DefaultVersion:=xlPivotTableVersion15
Just added RAND to make the pivot table name unique.
Best Regards,
Asadulla Javed, Kolkata
Please do not forget to click “Vote as Helpful” if any post helps you and
"Mark as Answer”if it solves the issue. -
Updating INVALID status of objects in procedure
Hi guys.
I'm trying to create a procedure to update/recompile all invalid objects.
I am having a few issues with the syntax, and was wondering if any of you have done anything like thsi before. I obviously have not. :)
Here's teh code:
CREATE OR REPLACE PROCEDURE recompile_sp
IS
CURSOR recompile_cur
IS
SELECT object_name, status
FROM user_objects
WHERE STATUS='INVALID';
BEGIN
FOR rec_cur IN recompile_cur LOOP
ALTER rec_cur.object_name COMPILE;
END LOOP;
END;
/I know your way makes way more sense, but the
assignment (yes, I'm in school) is asking for a
procedure to update teh invalid objects, which is why
I was looking to do it that way in the first place.Fair enough :-)
The correct way would be, as stated by others:
begin
dbms_utility.compile_schema(<schema>);
end;Doing it it like in your procedure, you should probably do something like this:
(NOT recommended, NOT tested)
CREATE OR REPLACE PROCEDURE recompile_sp
IS
CURSOR recompile_cur
IS
SELECT object_name, object_type, status
FROM user_objects
WHERE status = 'INVALID';
PROCEDURE exe(rec IN recompile_cur%ROWTYPE)
IS
BEGIN
EXECUTE IMMEDIATE 'ALTER '
|| rec.object_type
|| ' '
|| rec.object_name
|| ' COMPILE';
EXCEPTION
WHEN OTHERS
THEN
dbms_output.put_line(sqlerrm);
END exe;
BEGIN
FOR rec_cur IN recompile_cur
LOOP
BEGIN
exe(rec_cur);
END;
END LOOP;
END recompile_sp;
/Regards
Peter
Maybe you are looking for
-
Hyperion Web Analysis- Issue in fetching data 50000 rows
Whenever trying to fetch more than 50000 rows in a Hyperion Web Analysis report, the output is truncated to 50000 rows only. A message is displayed for the same. As a solution we have tried the following 1) Increase the MaxDataCellLimit and MaxJDBCCe
-
Connecting my G4 iBook to an older Apple flatscreen
The LCD on my older G4 iBook is broken but I have an older Apple flatscreen monitor. what adpters do I need to use my laptop as a desktop?
-
Upgraded my mac to yosemite and my toshiba backup will not run
I upgraded my Macbook Pro (June 2012 model) to Yosemite and now my Toshiba /backup will not run. I can see it when I attach it and am able to open the file. The last backup was in November 2014. Is there a fix or do I have to purchase another backu
-
Hi, i have the same problem? Trying to log in with my user id and password at iocbc but was not able to access. Problem message shown : Applet not initialised or may not be supported. Please refresh the page or check the browser setting Anyone can ad
-
Hi, I am new to iMAC and I am planning to get one soon. I own an iPAD with Keynote and Pagen in it among other App and I was wondering if I can transfer those to my new iMac or do I have to buy them again for my new Mac Thanks