Order by rowid clause added without my knowledge in Reports gen package

I have a devlp system and a production system.(3.0.9.8.0)
I built a report with lots of decode, sum, roll up, group by
clauses to create a cross table summing matrix report. It ran
correctly in the Devlp Portal system.
I exported it and imported this into the Production system.
Few weeks later I realized that the same report was not working
on the Production system. After some debugging, I noticed in
the generated PLSQL package body there is a if-else block that
basically adds "order by rowid" when the orderby clause is null.
However, the package body on the devlp system does not do
that. The only IF block it has is to determine if it needs to
apply the order by clause or not, no "else"
This additional generated "order by rowid" is breaking the
report because it will not work with my group by query.
My question is - How did that get added into the plsql
package, when I did not check anything to make that happen ??
-Ananth

I am getting similar execution plan on huge data. I cannot post the query here but here is the execution plan:
Execution Plan [with order by clause]
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=22644 Card=4303 Byte
s=3795246)
1 0 COUNT (STOPKEY)
2 1 NESTED LOOPS (OUTER) (Cost=22644 Card=4303 Bytes=3795246 )
3 2 VIEW (Cost=9735 Card=4303 Bytes=2263378)
4 3 SORT (ORDER BY) (Cost=9735 Card=4303 Bytes=529269)
5 4 FILTER
6 5 TABLE ACCESS (FULL) OF 'A' (Cost=9542 Car
d=4303 Bytes=529269)
7 5 TABLE ACCESS (BY INDEX ROWID) OF 'B' (Cost
=3 Card=1 Bytes=11)
8 7 INDEX (UNIQUE SCAN) OF 'B_PK' (UNIQUE) (
Cost=2 Card=1)
9 5 TABLE ACCESS (BY INDEX ROWID) OF 'A' (Cos
t=5 Card=1 Bytes=14)
10 9 INDEX (RANGE SCAN) OF 'A_X_KEY' (
UNIQUE) (Cost=3 Card=1)
11 5 TABLE ACCESS (BY INDEX ROWID) OF 'B' (Cost
=3 Card=1 Bytes=11)
12 11 INDEX (UNIQUE SCAN) OF 'B_PK' (UNIQUE) (
Cost=2 Card=1)
13 2 TABLE ACCESS (BY INDEX ROWID) OF 'B' (Cost=3 Car
d=899140 Bytes=320093840)
14 13 INDEX (RANGE SCAN) OF 'B_XXX_X' (NON-UNIQUE) (
Cost=2 Card=899140)
query 2[ without sort]
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=23349 Card=4303 Byte
s=26592540)
1 0 COUNT (STOPKEY)
2 1 VIEW (Cost=23349 Card=4303 Bytes=26592540)
3 2 SORT (ORDER BY STOPKEY) (Cost=23349 Card=4303 Bytes=20
61137)
4 3 FILTER
5 4 NESTED LOOPS (OUTER) (Cost=22451 Card=4303 Bytes=2 061137)
6 5 TABLE ACCESS (FULL) OF 'A' (Cost=9542 Car
d=4303 Bytes=529269)
7 5 TABLE ACCESS (BY INDEX ROWID) OF 'B' (Cost
=3 Card=899140 Bytes=320093840)
8 7 INDEX (RANGE SCAN) OF 'B_XXX_X' (NON-UNI
QUE) (Cost=2 Card=899140)
9 4 TABLE ACCESS (BY INDEX ROWID) OF 'B' (Cost=3
Card=1 Bytes=11)
10 9 INDEX (UNIQUE SCAN) OF 'B_PK' (UNIQUE) (Co
st=2 Card=1)
11 4 TABLE ACCESS (BY INDEX ROWID) OF 'A' (Cost=
5 Card=1 Bytes=14)
12 11 INDEX (RANGE SCAN) OF 'A_X_KEY' (UN
IQUE) (Cost=3 Card=1)
13 4 TABLE ACCESS (BY INDEX ROWID) OF 'B' (Cost=3
Card=1 Bytes=11)
14 13 INDEX (UNIQUE SCAN) OF 'B_PK' (UNIQUE) (Co
st=2 Card=1)

Similar Messages

  • How did Yontoo Extension get added without my knowledge

    I noticed several domains, mysupercheap.com and ndsvc.com, always showing up in the NoScript block list. I traced it to an extension called Yontoo. I never installed this. How was it added without my knowledge? How can I block the adding of extensions without my permission?

    'Tools' > 'Options' > 'Security' ~ [check 'Warn me when sites try to install add-ons']

  • HT204088 how can I cancel an order my granddaughter put in without my knowledge

    how can I cancel an order my granddaughter put in without my knowledge

    Purchases are considered final, but you can try the 'report a problem' link to contact iTunes Support and see if they will refund or credit you : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If it was done on an iOS device then to try and stop it happening again you can use Settings > General > Restrictions on it to turn off in-app purchases and to require your password to be entered for every download

  • Is it possible to check if anyone has applied to monitor my web browsing history/cache/bookmarks as an employer on my home pc without my knowledge or consent?

    I am using private windows to browse since someone seems to know what sites I've visited. I've done my best wrt blocking cookies and deleting history on exit, but some data in the "Library" exists.
    Apparently my isp provider and employer can see my browsing history of a private browsing window.
    I am currently self-employed but I volunteered for an organisation until October 2013. One of their members I worked closely with was stalking my email and browsing history without my knowledge.
    Is it possible for this slimy bleep to have weasled their way into monitoring my web activity by claiming to be an employer?
    Can I use a private browsing window safely?
    I have a business to run, so I need my information, email, web activity to be kept confidential.
    Any helpful advice will be gratefully received.

    Your question is a bit confusing, and it seems that you don't quite understand who and what can view your internet activity:
    * Private browsing mode simply leaves no record of the sites you visit in your browser. There are so many other parts of the chain that can keep records. Example: Your computer could have tracking software (installed intentionally or maliciously), many routers have web logging, your Internet Service Provider can view the sites you visit, your employer if you are at work, the government has extensive tracking programs as well. Private browsing won't defeat these tracking techniques. It basically only prevents people who have physical access to your computer from looking in your history and seeing the sites you visited in PB mode.
    * Your employer can't just request to see the sites you visit when you are at home. The only reason your employer could see the sites you visit is it you take your computer to work and use your work network to access the internet (and the employer has enabled logging on their network hardware) or you have a work laptop and take it home and it has logging software installed on it. Many employers have policies against using work equipment for personal. But there is no way that your employer can call your home ISP and ask to view your internet history.
    * Your ISP keeps a record of the sites you access, but won't release that without a court order (or to the NSA....) so unless you have a court order or a snoopy ISP employee who has an axe to grind and is viewing your internet logs illegally you don't really have to worry about that.
    * It's possible you have malware on your computer that is tracking your internet history. [[Troubleshoot Firefox issues caused by malware]]

  • Problem with performance of a query having order by, distinct clause

    Hi,
    I have a problem with queries having order by, distinct clause.
    While its executing its taking lot of time. With DBMS_PROFILER identified the queries taking long time.
    The table is having approximately 70 million rows.
    Problem -1
    select * from table_name order by col1;
    select distinct col1,col2 from table_name;
    Here i am having 2 solutions request to let me know whether i am right if not suggest me right solution.
    Solution1:
    Max parallel servers is 8.
    select /* + parallel(table_name,8) */ * from table_name order by col1;
    select /* + parallel(table_name,8) */ distinct col1, col2 from table_name ;
    Solution-2:
    select /* + first_rows */ * from table_name order by col1;
    select /* + first_rows */ distinct col1, col2 from table_name ;
    Problem-2
    I am having a query with where condition on columns.
    Select * from table_name where col1='value1' and col2!='value2';
    Index created on col1 and col2.
    As we no that not equal won't use index as it is a composite index it should use the lead column. but its not using the index.
    Should i forcibly use index with hint or suggest me better solution.
    Any help really appreciated.
    Thanks in advance

    unique wrote:
    The table is having approximately 70 million rows.
    select * from table_name order by col1;Do you really want 70,000,000 rows from your table without any restrictions ? And furthermore ordered output ? I honestly understand the slowness of that query.
    Here i am having 2 solutions request to let me know whether i am right if not suggest me right solution.Who knows if you choosed the right solution. I would suggest to reconsider your query and the need of 70,000,000 returned rows.
    Problem-2
    I am having a query with where condition on columns.
    Select * from table_name where col1='value1' and col2!='value2';Please, provide the explain plan, eventually the tkprof output could also help. And tables descirption AND indexes description.
    And OS and Oracle version.
    Nicolas.

  • ORACLE 9I의 HIERARCHICAL QUERY의 ORDER SIBLINGS BY CLAUSE

    제품 : ORACLE SERVER
    작성날짜 : 2003-10-22
    (V9I) Oracle 9i의 Hierarchical query의 ORDER SIBLINGS BY CLAUSE
    ===============================================================
    PURPOSE
    이 문서는 Oracle 9i의 new feature인 ORDER SIBLINGS BY 절을
    Hierarchical query에 사용하는 예를 통하여 특정 컬럼을 기준으로
    Ordering된 형태로 display하는 방법을 보여준다.
    Explanation & Example
    Hierarchical query를 구현할 때 ORDER BY 절을 사용하는 것은
    Oracle 7.1 버젼부터 가능한 것이었다.
    그러나, 순서대로 ordering되지 않고 특정 컬럼(emp table의 ename)을
    기준으로 ordering하기를 원한다면 <Bulletin:10373>처럼 procedure를
    작성하여야만 하였다.
    그러나, Oracle 9i 에서는 ORDER BY 절 대신에 ORDER SIBLINGS BY 절을
    사용할 수 있어 user-defined stored procedure를 만들 필요가 없게 되었다.
    1) Ordering 하기 전의 emp table의 Hierarchical query
    SQL> @a
    ename EMPNO MGR JOB
    KING 7839 PRESIDENT
    JONES 7566 7839 MANAGER
    SCOTT 7788 7566 ANALYST
    ADAMS 7876 7788 CLERK
    FORD 7902 7566 ANALYST
    SMITH 7369 7902 CLERK
    BLAKE 7698 7839 MANAGER
    ALLEN 7499 7698 SALESMAN
    WARD 7521 7698 SALESMAN
    MARTIN 7654 7698 SALESMAN
    TURNER 7844 7698 SALESMAN
    ename EMPNO MGR JOB
    JAMES 7900 7698 CLERK
    CLARK 7782 7839 MANAGER
    MILLER 7934 7782 CLERK
    14 rows selected.
    Ordering 하기 전의 a.sql 은 다음과 같다.
    col ename format a25
    col empno format 99999
    col mgr format 99999
    col job format a15
    select rpad(' ', LEVEL*5) || ename "ename", empno, mgr, job
    from emp
    start with job='PRESIDENT'
    connect by prior empno=mgr;
    2) 9i의 new feature인 Hierarchical query를 사용하여 Ordering한 경우
    SQL> @new_a
    ename EMPNO MGR JOB
    KING 7839 PRESIDENT
    BLAKE 7698 7839 MANAGER
    ALLEN 7499 7698 SALESMAN
    JAMES 7900 7698 CLERK
    MARTIN 7654 7698 SALESMAN
    TURNER 7844 7698 SALESMAN
    WARD 7521 7698 SALESMAN
    CLARK 7782 7839 MANAGER
    MILLER 7934 7782 CLERK
    JONES 7566 7839 MANAGER
    FORD 7902 7566 ANALYST
    ename EMPNO MGR JOB
    SMITH 7369 7902 CLERK
    SCOTT 7788 7566 ANALYST
    ADAMS 7876 7788 CLERK
    14 rows selected.
    Ordering하기 위해 사용한 new_a.sql 은 다음과 같다.
    col ename format a25
    col empno format 99999
    col mgr format 99999
    col job format a15
    select rpad(' ', LEVEL*5) || ename "ename", empno, mgr, job
    from emp
    start with job='PRESIDENT'
    connect by prior empno=mgr
    order siblings by ename;
    Reference Documents
    <Bulletin:10373>

    Thanks to Kendenny, Boneist and Odie.
    Got the point that "Order Siblings by clause" cannot be used with connect by query with analytical function, Thanks Kendenny.
    Yes, I now use main query and subquery, however the subquery be just "connect by" and have the all html tags added in the main query.
    The below query is working now.
    SELECT
    CASE WHEN LAG(mylevel,1,0) OVER (ORDER BY myrownum) >= mylevel THEN '<li>'
    ELSE
    CASE LEAD(mylevel) OVER (ORDER BY myrownum)
    WHEN mylevel THEN
    CASE WHEN myrownum = 1 THEN '<ul id="sidebarmenu1" '
    ELSE '<ul'
    END ||'><li>'
    ELSE
    CASE WHEN myrownum =1 THEN '<ul id="sidebarmenu1"'
    ELSE '<ul '
    END ||' ><li>'
    END
    END ||'<a href="'||
       CASE WHEN link_url IS NOT NULL THEN
          link_url||'title="'||menu_item||'"'
    ELSE '#"' END ||
    '><span>'||short_menu_item||'</span></a>'||
    CASE mylevel - LEAD(mylevel,1,1) OVER (ORDER BY myrownum)
    WHEN -1 THEN NULL
    WHEN 0 THEN '</li>'
    ELSE REPLACE(LPAD('*', myleveL-LEAD(mylevel,1,1) OVER (ORDER BY myrownum),'*'), '*','</li></ul></li>')
    END ||
    CASE WHEN LEAD(mylevel,1,0) OVER (ORDER BY myrownum) = 0 THEN '</ul>'
    ELSE NULL END unordered_List,
    menu_item, menu_id,
    above_menu_id
    FROM (
    SELECT LEVEL mylevel, ROWNUM myrownum,daevmt.*
    FROM dae_vs_my_tasks daevmt
    CONNECT BY PRIOR daevmt.menu_id = daevmt.above_menu_id
    START WITH daevmt.above_menu_id = 'TOPMENU'
    ORDER SIBLINGS BY display_order
    ) t;
    Odie, I tried altering the session for the flag, still the first query was not working.
    Thanks again all for your great time in answering me.

  • Initial load of sales orders from R3 to CRM without statuses

    1) Some sales orders were uploaded into CRM without statuses in the headers or line items. 
    2) Some sales orders were uploaded without status, ship-to, sold-to, payer.....If I deleted them and use R3AR2, R3AR4 to upload each individual then no problem.
    Any ideas or suggestions?
    Thanks.

    Hi,
       Request load of adapter objects uses different extractor modules for extracting the data from external system to CRM. While your initial load of sales docs. will use a different extraction logic bases on the filter conditions specfied on trx.
    R3AC1
       There may be a problem in the extraction of data from the source system (don't know if you are using a R/3). Can you please de-register the R/3 (i suppose) outbound queue using trx.
    SMQS
    , and then debug the extraction (R/3 outbound) before the data is sent to CRM using FM
    CRS_SEND_TO_SERVER
       If this goes well, you may try debugging the mapper in CRM inbound and the validation module in CRM as a last resort. Also, please refer to trx.
    SMW01
    to see if the Bdocs are fully processed.
    Hope this helps...Reward if helpful.
    Regards,
    Sudipta.

  • How can i organise my tunes in order of ***most recently added to playlist***. Playlist, NOT library!

    Hi everyone,
    this is my first ever post on a dicusion board so lets see...
    i would like to know how to, if it is possible... to organise my songs of a playlist to show my most recently added songs (to my playlist, not library) at the top and so on.
    all of my music has been on the mac for a while so it orders is on date added to LIRBRARY and not when i added it to my playlist.
    i want to see my recently added songs of my playlist first.
    is this possible and if so can someone help me please!
    Thanks
    Mez

    Hi Mez,
    Are you talking about a regular playlist, not a smart playlist?
    If you drag a song to playlist to add it, the song will be added at the end of the list.
    So to reverse the order and have the most recently added song first, just select the playlist and display it in list view. Click the triangle in the header row of the leftmost column showing the numbers and revert the play order.
    have fun
    Leonie

  • HT5699 i am from Lebanon and they did disable my account because of authorization they did my cousin without my knowledge, and i did change the password of my account and the webcard used please can u help me to know how to get my account back

    i am from Lebanon and they did disable my account because of authorization they did my cousin without my knowledge, and i did change the password of my account and the webcard used please can u help me to know how to get my account back

    http://www.apple.com/support/itunes/

  • HT6601 Why has this update been installed without my knowledge?

    Why has this update been installed without my knowledge?  Why wasn't I given the opportunity to refuse the update?  Isn't this update meant to stop this unauthorised access to my computer?  Has this given back door access for ASIO, NSC, MI6 to my computer?

    So what  are your preferences set as regarding updates?
    And, are you running ML as shown in your profile?
    And, I downloaded and installed this update because there was a possible security issue; however, I have all automatic software update checks and downloads turned off, so i downloaded it manually as it was critical to install it as long as you are using the internet.
    Has this given back door access for ASIO, NSC, MI6 to my computer?
    Why would you suspect that?

  • New contact added without Permission

    Today I had a new person added to my contacts list, (not recent conversations), that I did not approve. I have had people I don't know randomly request to be added but this is the first time where someone was added without my consent. 
    First off, I would like to report this individual since he has obviously circumvented Skype security features. He is soliciting his S. African business through his profile. How do I go about reporting this because aside from this forum on security I can't find a way to report on your website. I have read several other users post similar stories dating back a few years and I am surprised this is still an issue although I am grateful I have never had this happen before.  
    Here is the information on the unsolicited contact:
    *edited for privacy*
    Please advise,
    Chrystal

    ambitiouswhiteg wrote:
    Today I had a new person added to my contacts list, (not recent conversations), that I did not approve. I have had people I don't know randomly request to be added but this is the first time where someone was added without my consent. 
    First off, I would like to report this individual since he has obviously circumvented Skype security features. He is soliciting his S. African business through his profile. How do I go about reporting this because aside from this forum on security I can't find a way to report on your website. I have read several other users post similar stories dating back a few years and I am surprised this is still an issue although I am grateful I have never had this happen before.  
    Here is the information on the unsolicited contact:
    *edited for privacy*
    Please advise,
    Chrystal
    you can send this information to the department specifically handling cases of abuse of Skype services - [email protected]
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • TS4002 emails are being sent out without my knowledge

    emails are being sent out without my knowledge, do I have a virus?

    Are you getting bounced spam messages? This simply means that someone is forging your address as the 'From' address, which is very easy to do. It's very annoying but it doesn't mean you've been hacked; unfortunately you can't really do anything about it but it usually stops after a bit as they move on to some other victim. As long as you don't have messages you didn't send in your 'sent' folder this is the most likely explanation, though changing your password might be a good idea on general principles (and make it a stong one).

  • Hundreds of E-mail are being Sent without my knowledge.

    Hundreds of e-mail messages are being sent from my account without my knowledge. 
    Verizon is doing nothing.  I have complained 3 times.

    HELPFUL INFORMATION WHEN YOU POST
    It would be very helpful to try and answer any questions you have if you add some information to your profile.
    You need to do this only once and it will be available to all each time you post on any VZ Forum
    AFTER YOU SIGN IN...GO TO
    My Settings
    Personal Information
    Signature...This is a good place to add what equipment,software and services you have
    Location ... County and State....some of the answers might depend on what area you live in.
    PLEASE DO NOT ADD ANY INFORMATION THAT YOU ARE NOT COMFORTABLE IN SHARING WITH THE VZ COMMUNITY
    Tom
    Freedom Essentials, QIP 7100 1,Bose SOLO TV Sound System,,QIP 7216 P2,M1424WR Rev F, iPad 2 WiFi,iPhone 5,TV SYST INFO Release 1.9.5 Build No. 17.45
    Data Object 39.45

  • How can i get copied to my 14 year-old daughter's text messages without her knowledge?

    how can i get copied to my 14 year-old daughter's text messages without her knowledge?

    Unless the cell carrier would provide such a service, which if they do would only be available to you if you are the owner of her cell account, then it's not possible without hacking the iPhone, something we cannot discuss here. And if she has the account in her name, then as SeaBeast suggested such hacking may well be illegal. Even 14-year-olds have privacy rights. You would have to discuss that with a lawyer, though.
    Regards.

  • Iphone 5 sending messages without my knowledge. How can I stop this?

    Iphone 5 is sending messages without my knowledge to numbers that I don't recognize. How do I stop this?

    If you are using the phone on a carrier that doesn't officially support iPhones, the phone will send SMS messages to an activation number. If that's the case, your option is to turn off iMessage.

Maybe you are looking for

  • SOAP Header in SOAP Receiver adapter

    Hi All, I am doing a Proxy to  Webservice scenario where webservice requires the SOAP request as below. <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">     <SOAP-ENV:Header>       

  • PDF files that do not print out on paper but are OK on screen

    Print PDF files when produced in ADOBE XI from  Excel 2010 worksheets The PDF files appear ok on the screen but do not print out all of the text on paper. Formating is recognised and printed oK but not text. Font segoe UI size 9 point - colours used

  • Global Warranty Valid In India Or Not???

    I had bought my iPhone 5s from US around 3-4 months ago n there is some the problem in charging slot .Will my phone covers warranty  in India or should i wait as i am going back in next 2-3 months??? 

  • POs and Intrastat service

    Hi, I created a PO for a service. If a don't set a ModeOfTrnsprt-Border and DomestModeOfTransp. at header level, Import view, system when I execute trx MEIS always shows the PO in the Incompletion log. At header level of the PO if ModeOfTrnsprt-Borde

  • Using iPad mini nano sim in iphone 6

    I Currently have an iPad mini with the unlimited AT&T data plan that I'm grandfathered in for. The screen recently cracked, and I was thinking of getting the iphone 6 plus without a contract or SIM card....and then putting my iPad mini nano SIM card