Po_headers_sv3.get_po_status is not returning Status when used in Report
Hi,
po_headers_sv3.get_po_status is not returning any value when used in an RDF report. But, when I set the MO Context in TOAD/SQL*Plus and running the same query, it is returning the status.
EBS Version : R12.1.3
Oracle Forms Version : 10g
Below is my query that I used.
* File Name :
* Modified By :
* Modified Date :
* Purpose : This report is modified for <> project. The changes are required due to PO_HEADERS_V, PO_LINES_V view changes in R12
* Modification History
* Change 1 : Replaced the view PO_HEADERS_V with the MOAC synonym PO_HEADERS
* Change 2 : Added AP_SUPPLIERS in the query to fetch VENDOR_NAME
* Change 3 : Added a join condition to fetch VENDOR_NAME
* Change 4 : Added a function po_headers_sv3.get_po_status to fetch PO_STATUS
SELECT POH.SEGMENT1,
POH.CREATION_DATE,
POH.ATTRIBUTE14 AS AR,
POH.ATTRIBUTE15 AS LS,
POH.ATTRIBUTE13 AS OBC,
POL.AMOUT,
PAHTEMP.FULL_NAME,
APS.VENDOR_NAME,
* poheaders_sv3.get_po_status (poh.po_header_id) Status -- Change 4 _+
FROM PO_HEADERS POH, -- Change 1
AP_SUPPLIERS APS, -- Change 2
(SELECT PO_HEADER_ID,
Sum(UNIT_PRICE*QUANTITY) AS AMOUT -- unit_price* quantity = extended_price
FROM PO_LINES
GROUP BY PO_HEADER_ID) POL,
(SELECT PAH.OBJECT_ID,
PAH.EMPLOYEE_ID,
PAPF.FULL_NAME
FROM PO_ACTION_HISTORY PAH,
PER_ALL_PEOPLE_F PAPF
WHERE (PAH.OBJECT_ID,
PAH.SEQUENCE_NUM)
IN (SELECT OBJECT_ID,
Max(SEQUENCE_NUM)
FROM PO_ACTION_HISTORY
WHERE OBJECT_TYPE_CODE = 'PO'
AND ACTION_CODE = 'APPROVE'
GROUP BY OBJECT_ID)
AND PAH.EMPLOYEE_ID = PAPF.PERSON_ID(+)
AND TRUNC(PAPF.EFFECTIVE_START_DATE) <= TRUNC(SYSDATE)
AND TRUNC(PAPF.EFFECTIVE_END_DATE) >= TRUNC(SYSDATE)) PAHTEMP
WHERE POH.PO_HEADER_ID = POL.PO_HEADER_ID(+)
AND POH.PO_HEADER_ID = PAHTEMP.OBJECT_ID(+)
AND POH.VENDOR_ID = APS.VENDOR_ID -- Change 3
AND (TRUNC(POH.CREATION_DATE) >= TRUNC(:P_DATE_FROM) OR :P_DATE_FROM IS NULL)
AND (TRUNC(POH.CREATION_DATE) <= TRUNC(:P_DATE_TO) OR :P_DATE_TO IS NULL)
AND (POH.SEGMENT1 >= :P_NUM_FROM OR :P_NUM_FROM IS NULL)
AND (POH.SEGMENT1 <= :P_NUM_TO OR :P_NUM_TO IS NULL)
AND (POH.ATTRIBUTE13 >= :P_OBC_FROM OR :P_OBC_FROM IS NULL)
AND (POH.ATTRIBUTE13 <= :P_OBC_TO OR :P_OBC_TO IS NULL)
AND (POH.ATTRIBUTE14 >= :P_AN_FROM OR :P_AN_FROM IS NULL)
AND (POH.ATTRIBUTE14 <= :P_AN_TO OR :P_AN_TO IS NULL)
AND (POH.ATTRIBUTE15 >= :P_LS_FROM OR :P_LS_FROM IS NULL)
AND (POH.ATTRIBUTE15 <= :P_LS_TO OR :P_LS_TO IS NULL)
&LP_CONDITION_ORDER
Please help me in this.
learnt that PO number has generated in SRM and the same PO number not exist in ECC.
check SM58 , rz20 log or Application monitor for the shopping cart.
or monitor shopping cart click the icon follow on document and errror message must throw in 1 minutes.
let us see .
1. what is the settings in define backend OBJECTS
2. check all basic data in the shopping cart - especially org data
3. run bbp_check_consistancy report for your id?
4. every user has the same issue?
SEE THE RICHARDO technique
http://wiki.sdn.sap.com/wiki/display/SRM/ShoppingCartStatusI1111-+Resubmit
Muthu
Report BBP_ALERT_SB_NOTTRANSFERED is available to change the status of the shopping cart item from I1111 to 'Error in transmission' (I1112) and later on, it is possible to retransfer this shopping cart from Application Monitor/Monitor Shopping Cart transactions.
1480994 How to process a shopping cart with status I1111
Edited by: Muthuraman Govindasamy on Jul 16, 2010 11:31 PM
Similar Messages
-
WebI does not return failed when scheduling a report which only holds parti
WebI does not return failed when scheduling a report which only holds partial results.
We have scheduled reports which take some time to run. When they are scheduled they sometimes show successful even though the report only holds partial results. The only indication is when you open the report as webi report you see the warning that it holds partial results.
When running the report manually, it works file.
The issue is not in the no of rows in the universe settings because we this unselected. The issue is that it times out.
The reason that it times out is that a lot of resources are used for loading and processing data when the report is scheduled. When running it manually, it works because at this time the serverload is less. the time in the universe is set to 10 min.
The version we have is BOXIR2-SP4.
Ok. Issue identified.
The question is - why is the report successful when it holds partial results? If this is normal behavior, noone can really trust the scheduled reports, especially when you save it to excel and send it by mail.
Is there a solution for this except increasing the allowed query time which would not solve the issu but only allow more reports to complete?
Edited by: Karlgren Michael on Sep 17, 2009 1:22 PMHi ,
Currently this problem exists in XI R2. This feature will be part of thenext Service Pack i.e XI R2 SP6.
This CER will be delivered from IDC Webi and BIP Platform as part of Jupiter Sp6.
Problem Statement:
Scheduled WebI Reports which are partially refreshed are distributed to the destinations for Users to View and make decisions. These users arenu2019t usually aware that these reports have u201CPARTIAL RESULTSu201D
Recomended Solution:
Allow the Schedule Creator / Modifier to set a parameter to stop the distribution of the u201CPARTIALLY REFRESHEDu201D WebI report.
Thanks
Salini -
after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm
Hi Buterem,
I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
How to use Activity Monitor - Apple Support
If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
Regards,
- Brenden -
RPC Server not Available error when using Windows Fax & Scan under Windows 7
RPC Server not Available error when using Windows Fax & Scan under Windows 7
Hi,
On current situation, please remove the old fax account and re-add a new fax account in Windows Fax and Scan, then check if this issue sill exist. For more details, please refer to following similar thread and artilces.
RPC Server not Available error when using Windows Fax & Scan
under Windows
The local fax account is inaccessible after you rename a Windows Vista-based computer
Cannot send fax from Windows Vista/Windows 7 PC with “RPC Server not Available” error message
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please
make sure that you completely understand the risk before retrieving any suggestions from the above link.
If any update, please feel free to let me know.
Best regards,
Justin Gu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
I have a HP610-1150f. not recording sound when using webcam in touchsmart screen.
I have a HP610-1150f. not recording sound when using webcam in touchsmart screen. I have looked thru this forum and I don't see anyone else having this problem. (unless I missed it). The recording works in Notes, but not when I open Webcam and try to record from there. video recording works fine. I have had this computer less than a month and I am having a couple of problems with it. Still loving it though.
Hello schae731: Welcom to HP Forum and your new Touchsmart. You need to contact HP Direct Support on line your Touchsmart comes with one year warranty so use it why you can. You can contact them through your HP Support Assistant or on line. They will help you with trouble shoot the web-cam software. Goto your computers model and make support web-site. They will also help you with your other issues as well.
I am using the older version software so I won't be much help. Please repost if HP direct support is un able to help you resolve your issues. While you are chatting with them have them check out your computer do it before your 1 year warranty expires. Have fun with your new computer. -
"access restrictions" did not work sometimes when using 3-tier DeskI.
My customer found that "access restrictions" did not work sometimes when using 3-tier DeskI.
But this issue can be solved by logging on from another machine, or restarting the DeskI.
For I can reproduce this issue, so I just want to know that:
1.What is it probably related to?
2.If this issue happens again, what can I suggest my customer for tracking it?
For example, get some log files from servers etc.
Thanks!Hi Sarah,
Also you can try the following solution.
1. Import the universe.
2. Go to manage access restrictions
3. Remove the restriction .
4. Again create the rescrition and unchecked the " limit size of result set to"
5. Now assign it to the unlimited results group ( this is the name of
the group we have given to those users who should be able to retrieve
more than X rows)
6. Now we save the universe. (Dont export the universe).
I hope this will help you.
Regards,
Sarbhjeet Kaur -
Values of return code when using dba_audit_session
Is there anywhere I can look up the possible values for return code when using dba_audit_session?
I am generating a report over the data and have so far only been able to provide the returncode and whether the username exists (ie username or "other" error)
Thanks
(using 9i)So far I have fathomed out:
Return code: 0 everything OK
Return code: 1017 wrong username or password
Return code: 28000 locked account
Return code: 28001 expired account -
Post Moved Galaxy-Note-dropping-Wifi-when-using-...
Pot moved http://community.bt.com/t5/Other-BB-Queries/Galaxy-Note-dropping-Wifi-when-using-HH3/td-p/671308
If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’I think I found the answer to my own question (no thanks to Verizon)!
I found this article online which was written recently (2012) and explains the WIFI - Bluetooth interference pretty well. Here is the link:
http://www.ecnmag.com/articles/2012/03/wi-fi-and-bluetooth-coexistence
The way it has been explained is that if the WIFI & BT radios are on the same chip and using the same antena to send and receive, they WILL interfere no matter what. Having them on two different chips is the best way. But Frequency Isolation (Adaptive Frequency Hopping (AFH)) is a way to reduce interference when they are both on the same chip (as it is in Galaxy Note 2 & S3 - they have Broadcom BCM4330 for wifi/bluethooth/FM) which I guess needs to be addressed in a software update (or may be it already has and is not working well). The last solution is to use 5GHz band for WIFI.
There you have it. But please let me know what you think and if you have found out anything else.
Thanks -
'Query has not yet calculated' When executing BW report in Bex
Hi, all
There is message 'Query has not yet calculated' when execucting BW report in BEx.
what's the reason? How to solve this issue?
however, when I change the filter to one or several employee number such as employee information report, there will be one or several records in the report.
Anyone can help me?Thanks very mcuh.
Carinaok.
While using exception aggregation, you need to give a reference characteristics. You might have given 0calday for the same for 0ANSALARY ( SUM LAS ) and your infoprovider does not have 0calday and the report is unable to calculate the result based on 0calday.
This will obviously throw and error but you will be able to see the result. But the result will not calculate last sum for 0ansalary correctly.
For this, please check the infoprovider design. You can use reference character other than 0calday and make sure that, the reference time characteristics is present in your infoprovider.
Cheers
Chanda -
Controlling Access to Certain Reports When Using Crystal Reports Server
Hi,
I was wondering exactly how security is managed when using Crystal Reports Server? Do you assign rights to individual reports via user ids in Active Directory? Or what exactly is used for user authentication? Is it possible to create local accounts? Thanks.Usually access is controlled by permissions which are set in the CMC (BO web admin tool). You can map 3rd party groups from AD or LDAP and then assign permissions to those groups or set up security with built in enterprise groups as well. You may elect to use any combination of the above. For more complex security models there can use database and row level security built into our meta layers called business views and universes.
Regards,
Tim -
How can I show only text edits and not text formatting when using print comments summary?
Acrobat 9.3.0 for Mac.
Here is the scenario: I used the Compare command to see the changes between 2 PDFs. The resulting file some edits are inserts and some are deletions. I want to print a comments summary only showing the text edits. In the Compare Option pane, I select Text and deselect Images, Annotations, Formatting, Headers/Footers, and Backgrounds. Now on the screen I see inserts are highlighted in blue and deletions are marked with sort of a caret and vertical bar symbol. So all looks good at this point. However, when I show the Comments List, I see addtional comments that indicate "Replace - The following text attributes were changed: fill color." Those comments do not appear in the page view unless I check the Formatting check box to show them. With Formatting unchecked, I print a comments summary and all of the "Replace - Fill Color" comments" appear on the resulting comments summary.
I only want to show text edits, not text formatting changes. So questions are:
1. Why, when the Formatting checkbox is unchecked, do the text formatting comments still appear in the comments list when they do not appear on the page display.
2. How can I print only the text content edits and not show the text formatting changes when using Print Comments Summary.Hi,
You can set ExecuteWithParams as default activity in the task flow then method activity to return total no of rows passing to Router activity if your method has value 0 then call Create insert operation else do directly to page.
Following idea could be your task flow
Execute With param (default) > SetCurrentRowWithKey > GetTotalNoOfRows (VOImpl Method)
|
v
Router
1. If pageFlowScope outcome is 0 then call CreateInsert > MyPage
2. if pageFlowScope outcome > 0 then MyPage
hope it helps,
Zeeshan -
Ldapssl_client_init always returns -1 when using nsldapssl32v50.dll
We have an iPlanet Directory Server v5.2 installed and SSL has been configured on it.
When we call ldapssl_client_init(CERTDBPath, NULL) we always get a the return value as -1.
We used nsldapssl32v30.dll and the corresponding lib and tried the same program and it worked perfectly fine.
Now the question is why does this call fail when using the 5.0 version of the library.
We have tried calls to ldapssl_client_init in the different ways like
--> ldapssl_client_init("D:/Program Files/Sun/MPS/alias", NULL)
with the cert7.db in this path. This failed
--> ldapssl_client_init("D:/Program Files/Sun/MPS/alias/slapd-mydb-cert7.db", NULL)
This also failed
We need to use the v5 of the library bcoz the older versions are not compliant with LDAP v3 for referral support.
Our current environment is Win2k Server SP4 and iPlanet Dir Server 5.2.
Please help us sort out this issue.
Thanks
RaghuThe function "ldapssl_client_init" returns -1, if I use LDAP SDK 6.0 binaries (source downloaded from http://wiki.mozilla.org/LDAP_C_SDK and compiled). It returns same error code i.e. -1, if we use precompiled binaries.
But if I use the old LDAP 5.2 binaries, it works fine.
Here is a sample code that I used to test ldapssl_client_init() on RHAS3.0:
#include <ldap.h>
#include <ldap_ssl.h>
#include <stdio.h>
/* Initialize client, using mozilla's certificate database */
int main(void) {
/* "/home/infwaer/test/" is the folder that contains cert7.db and key3.db*/
if(ldapssl_client_init( "/home/infwaer/test/", NULL ) < 0) {
printf( "Failed to initialize SSL client...\n" );
return( 1 );
else
printf( "Initialized SSL client...\n" );
I used the following command to compile it with 5.2 binaries, and was able to successfully call the function ldapssl_client_init:
gcc ldapclient.c -I/home/infwaer/nsldap/5.2/RHAS3.0/include
-L/home/infwaer/saurabh_review/lib -lldap50 -lnspr4 -lplds4 -lplc4 -lsoftokn3 -lnss3 -lssl3 -lprldap50 -lssldap50 -ldigestmd5 -lsasl
But when I compiled it using 6.0 binaries using the same command:
gcc ldapclient.c -I/home/infwaer/nsldap/6.0/RHAS3.0/include
-L/home/infwaer/saurabh_review/lib -lldap60 -lnspr4 -lplds4 -lplc4 -lsoftokn3 -lnss3 -lssl3 -lprldap60 -lssldap60 -ldigestmd5 -lsasl
It gave the error "failed to initialize" (as written in the code !)
Please help me out; n let me know if it is a known issue with LDAP SDK 6.0. Or we need to do some special settings for version 6.0 to work properly.
Thanks & Regards,
Saurabh -
Why does captivate 5 scorm 2004 change the pass/fail status when using complete/incomplete
SUMMARY: I am trying to use SCORM 2004 reporting but I am finding out ADOBE does not diffentiate between COMPLETE/INCOMPLETED and PASSED/FAILED variables in the SCORM 2004.
RESULT: I can not accurately get the passing/failing status from the course.
QUESTION: Is their anything I can do or does ADOBE have a patch they have release which will accurately report the passed/failed STATUS as well as the completed/incompleted status.
OTHER RESEARCH: I even attempted to post these "proofs" on scorm.com and they have something called "SATISFACTION TRACKED" to accomodate content creation systems (CAPTIVATE 5) which does not follow the standards of SCORM 2004.
BACKGROUND: the report status "Incomplete/Complete" and "Pass/Fail" under the publishing options for SCORM 2004 essentially mean the same thing when the CAPTIVATE COURSE sends setvar commands to the SCORM API... In other words the SCORM API receives the same exact commands when publishing in both modes. "THIS IS WRONG"
why is the wrong? IF REPORTING; incomplete/complete ; the CAPTIVATE 5 COURSE SHOULD NOT "change" the STATUS OF PASS/FAIL when attempting to report COMPLETE/INCOMLETE with 100% slide views.
DEMO #3> SHOWS THE PROBLEM
About DEMO #1 and DEMO #2> these are other reporting options I attempted with other problems arrising..so these images are just for supporting my original problem which is shown in DEMO #3...
DEMO 1 (REPORT STATUS has no affect on reporting):SETTINGS:
PASS: (PROBLEM)
Anything above Passing Score is not recorded to LMS (once passing is reached...no more bookmarks are recorded)
FAIL: (CORRECT)
Failure gets sent to the database on the last screen with "completed"
DEMO 2 (Report status [Complete/Incomplete Pass/Fail] has no impact on commands sent to scorm api):
SETTINGS:
PASS: (CORRECT)
Very Last page gets sent to the Database
FAIL: (PROBLEM)
NOTHING GETS SENT TO DATABASE (stuck in final score screen forever)...because it says "INCOMPLETE"
DEMO 3:
Report status [Complete/Incomplete Pass/Fail] has no impact on commands sent to scorm api
SETTINGS:
PASS: (CORRECT)
Very Last page gets sent to the Database with a 90% passing with "completed"
FAIL: (PROBLEM)
LAST SLIDE SENDS "completed" but GETS SENT AS A PASSING SCORE??? even when it is a failure
(IN OTHER WORDS ADOBE CHANGES THE PASS/FAIL STATUS based on slide views...
this is WRONG ....REALLY WRONG becuase I am trying to report
"COMPLETE/INCOMPLETE" for 100% slide views
PASS/FAIL OPTIONS:
OPTION I CAN PURSUE?
SO WHAT CAN I DO? YES, I CAN TELL THE LMS...to COMPARE THE SCORE RECEIVED DURING A "COMPLETE" status...and then change the grade in the LMS based on the SCORE IN THE LMS...BUT THAT WOULD MEAN THE LMS COULD REPORT ONE GRADE and the COURSE COULD REPORT A DIFFERENT GRADE....and that would not be good.
ALL OF OUR COURSES SHOW THE STUDENT THE FINAL SCORE WITHIN EACH COURSE..
QUESTION TO ADOBE?
SO ADOBE when are you going to differentiate these two reporting options so that the PASS/FAIL OPTIONS ARE ACCURATELY REPORTED WHEN USING COMPLETE/INCOMPLETE?
MORE INFORMATION
HERE IS THE SCORM.COM "Satisfaction" adjustment (very last line) to accomodate inconsistent reporting in CAPTIVATE 5.
Thanks,
DOUG LUBEY OF LOUISIANA
www.douglubey.com
OTHER WEBSITES:
http://forums.adobe.com/message/3332035
http://forums.adobe.com/message/3122315
http://forums.adobe.com/thread/712502?start=50&tstart=0
http://forums.adobe.com/thread/800570
http://forums.adobe.com/thread/720121
SEARCH ENGINE REFERENCE:
CAPTIVATE SCORM SUCCESS_STATUS
captivate 5 scorm 2004 pass/fail is dependent on complete/incomplete
scorm 2004 captivate cs5 success_status incorrect
scorm 2004 captivate cs5 reports success_status incorrectly
scorm 2004 captivate incorrectly reports pass/fail
scorm 2004 captivate 5 incorrectly reports pass/fail
scorm 2004 "captivate 5" incorrectly reports pass/fail
captivate 5 sends a pass even when a failure is issued by the course using scorm 2004.
captivate does not work properly when working with completed status.
CAPTIVATE SCORM SUCCESS_STATUS COMPLETE STATUS SHOULD BE INDEPENDENT
CAPTIvATE 5 cmi.completion_status
and cmi.success_status does not work independently with scorm 2004. they both share the same definition. These two field were designed to help differentiate the difference between a passing or failing score and when the course is actually completed. WITH CAPTIVATE 5 they do not differentiate the two. COMPLETE means PASS and INCOMPLETE means fail..
I was trying to use "completion_status" as a way to determine when all slides were shown. So that I can send the final score (PASS/FAIL) the LMS after all slides were viewed and this was the absoluted score the student recieved.
2011 CAPTIVATE CHANGES cmi.success_status TO PASSING WHEN COURSE REPORTS FAILURE
2010 CAPTIVATE CHANGES SUCCESS TO PASSED WHEN COURSE REPORTS FAILURE
CAPTIVATE 5 CHANGES cmi.success_status TO PASSING
CAPTIVATE 5 CHANGES cmi.success_status TO PASSING WHEN COURSE REPORTS FAILURE
CPTX CAPTIVATE CHANGES cmi.success_status TO PASSING
CP5 WHY DOES CAPTIVATE SCORM SUCCESS_STATUS
CPTX WHY DOES CAPTIVATE CHANGE PASSING STATUS
CPTX CAPTIVATE SCORM CHANGES FAILING SCORE TO PASSING SCORE
CAPTIVATE SCORM SUCCESS_STATUS COMPLETE STATUS MEANS THE SAME THING
CAPTIVATE SCORM SUCCESS_STATUS COMPLETE STATUS SHOULD BE INDEPENDENTHi,
Here's something I found in a similar situation... hope this helps!
After publishing your CP5 project as a SCORM 2004 zip file, unzip the file so you can get into the separate files. Open the imsmanifest.xml file with a text editor; I like using Notepad++. Search for the line starting with <imsss:minNormalizedMeasure>. The complete line will probably look like <imss:minNormalizedMeasure></imss:minNormalizedMeasure>, this is the line that is supposed to contain your passing score (at least for our LMS). So, if your passing score is supposed to be 80%, edit this line to be: <imsss:minNormalizedMeasure>0.80</imsss:minNormalizedMeasure> and save the file. Then select all the files and re-zip them, I use 7-zip for that.
I found one other weird thing that doesn't happen 100% of the time, so test it. In the example above, try to get a score of exactly 80% (or whatever passing grade you are using) and see if you get the correct status reported. I found I sometimes have to re-edit that line in the manifest file to be 0.79 so it correctly includes an exact 80% score. No idea why and you have to watch the number of questions in your quiz to make sure that works for you mathematically.
If this works or not, I'd recommend posting your results so others can get some ideas. Good Luck!! -
Why does my function not return anything when I create as a schema object
I have user ABC who owns several tables some of which have foreign key constraints.
I have user XYZ that has been granted access to all tables owned by user ABC.
When I create a function as user XYZ using following I get no return when I issue:
select XYZ.ztm_tables_depended_on('ABC', 'A_TABLE_OWNED_BY_ABC') from dual :
Please see after function definition.
CREATE OR REPLACE FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = p_Table_Name
AND CONSTRAINT_TYPE = 'R'
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
v_Referenced_Owner VARCHAR2(31);
v_Ret_Val VARCHAR2(4000);
FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND CONSTRAINT_NAME = p_Constraint_Name;
v_Ret_Val ALL_CONSTRAINTS.TABLE_NAME%TYPE;
BEGIN
OPEN C1;
FETCH C1 INTO v_Ret_Val;
CLOSE C1;
RETURN v_Ret_Val;
END;
BEGIN
FOR R IN C1 LOOP
IF (R.OWNER <> R.R_OWNER) THEN v_Referenced_Owner := R.R_OWNER || '.';
ELSE v_Referenced_Owner := NULL;
END IF;
v_Ret_Val := v_Ret_Val || ', ' || v_Referenced_Owner || CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
END LOOP;
RETURN LTRIM(v_Ret_Val, ', ');
END;
But, if I embed the function within an anonymous block as follows, I get results:
DECLARE
CURSOR C1 IS
select owner, table_name
FROM all_tables where owner = 'ABC';
FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = p_Table_Name
AND CONSTRAINT_TYPE = 'R'
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
v_Referenced_Owner VARCHAR2(31);
v_Ret_Val VARCHAR2(4000);
FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND CONSTRAINT_NAME = p_Constraint_Name;
v_Ret_Val ALL_CONSTRAINTS.TABLE_NAME%TYPE;
BEGIN
OPEN C1;
FETCH C1 INTO v_Ret_Val;
CLOSE C1;
RETURN v_Ret_Val;
END;
BEGIN
FOR R IN C1 LOOP
IF (R.OWNER <> R.R_OWNER) THEN v_Referenced_Owner := R.R_OWNER || '.';
ELSE v_Referenced_Owner := NULL;
END IF;
v_Ret_Val := v_Ret_Val || ', ' || v_Referenced_Owner || CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
END LOOP;
RETURN LTRIM(v_Ret_Val, ', ');
END;
BEGIN
FOR R IN C1 LOOP
DBMS_OUTPUT.PUT_LINE(ztm_tables_depended_on(R.Owner, R.Table_Name));
END LOOP;
END;
Any ideas what is happening here?Any ideas what is happening here?
Justin explained the probable reason.
See the 'How Roles Work in PL/SQL Blocks' section of the database security doc for the details
http://docs.oracle.com/cd/E25054_01/network.1111/e16543/authorization.htm#i1007304
How Roles Work in PL/SQL Blocks
The use of roles in a PL/SQL block depends on whether it is an anonymous block or a named block (stored procedure, function, or trigger), and whether it executes with definer's rights or invoker's rights.
Roles Used in Named Blocks with Definer's Rights
All roles are disabled in any named PL/SQL block (stored procedure, function, or trigger) that executes with definer's rights. Roles are not used for privilege checking and you cannot set roles within a definer's rights procedure.
The SESSION_ROLES view shows all roles that are currently enabled. If a named PL/SQL block that executes with definer's rights queries SESSION_ROLES, then the query does not return any rows.
Roles Used in Named Blocks with Invoker's Rights and Anonymous PL/SQL Blocks
Named PL/SQL blocks that execute with invoker's rights and anonymous PL/SQL blocks are executed based on privileges granted through enabled roles. Current roles are used for privilege checking within an invoker's rights PL/SQL block. You can use dynamic SQL to set a role in the session.
See that line starting with 'All roles are disables in any named PL/SQL block'? -
OCIStmtExecute does not return immediately when client is busy.
Hi.
I'm testing a very busy multi-threaded client server that consistently generates
a large number of simple queries through oci. The problem is that, when the
server(client) is busy, OCIStmtExecute does not return immediately in
non-blocking mode.
Of course I have set non-blocking mode and OCIStmtExecute does return
OCI_STILL_EXECUTING immediately when the server is not busy. But
when log rotation occurs which concatenates a large text file (~500MB)
onto an even larger text file (up to several giga bytes), or when I simply copies
or concatenates large text files manually, OCIStmtExecute returns very slowly.
(roughly about after 100~200ms)
However, while log rotation takes place, everything else including other oci
calls that come before OCIStmtExecute (prepare, define) return fast. So
for me it really seems that only OCIStmtExecute becomes extremely slower
when local server (especially the disk) is busy.
Is there any way to let OCIStmtExecute immediately return all the time?
Thanks in advance.Yes, I knew that OCIStmtExecute would be the only function that causes such
delay and that was why I traced that call. And so far, I checked several times
what happens at the exact moment on the server but everything was ok.
Actually OCIStmtExecute becomes slower exactly when crontab-ed log rotate
occurs so I think this delay must be a client-side problem for now.
This server is quite busy and has to respond fast, so it is important to
guarantee fast response time while a small number of timeout losses are tolerable.
But as OCIStmtExecutes' first OCI_STILL_EXECUTING return takes hundreds of
ms it has become more like a blocking call and currently I cannot find any way to do what I want.
So now everytime such thing happens, the thread waits
quite long, after the first OCI_STILL_EXECUTING return
the time difference exceeds timeout limit, and the thread
calls OCIBreak() and OCIReset() and returns.
Maybe you are looking for
-
Oracle database monitored using SNMP
Hi guys, I have a problem that I can't seem to find the answer too...I tried google-ing, but found only pieces, and can't seem to figure out the big picture...So here goes: I am working with my team on a Data Warehouse project, and the entire app is
-
Windows 7 x64 - iTunes no longer auto launches when I connect iPhone
Hi Ok so i installed Windows 7 x64 and iTunes x64 but now iTunes no longer auto-launches when I connect my iPhone. My PC has no problems finding my iPhone, it does the camera bit and if I start iTunes manually it syncs the iPhone with no issues. Does
-
How to edit Java source code of a generated Web Service?
I generated a Jax RPC (1.4) Web Service using the JDev Wizard . Everything works fine. But now I need to make some changes in the business logic contained in the source code. The problem is there is no easy way to get to the source code - JDeveloper
-
I'm just getting used to Lr3 for the Mac after Lr2 for Windows, and something I did caused one of my folders to disappear (not too sure what, but it wasn't remove or delete). It seems to be a simple reference problem because if I assume the folder w
-
HOW CAN I SEND FIELD SYMBOL TO SUBROUTINE
HAI, HOW CAN I SEND FIELD SYMBOL TO SUBROUTINE HOW CAN I COME BACK FROM 5TH INTERACTIVE REROT TO 2ND INTERACTIVE REPORT. THANK YOU. ASHOK