ORDER BY not allowed in INSERT..SELECT ?
I'm trying to INSERT..SELECT into a table, the SELECT should be ordered by a clause, but Oracle (8.1.7) does not permit that.
INSERT INTO SumTable
SELECT Field1,Field2
FROM FullTable
WHERE field1 = 1
ORDER BY field2;
I get: ORA-00933: SQL command not properly ended
It doesn't matter if the "order by" field is part of the SELECT or not. When I remove the ORDER BY the INSERT works perfectly. Oracle docs do not mention this limitation. Is this known issue? Can I make it to work?
I do have a solution in PL/SQL, open a cursor for the SELECT with the ORDER BY, INSERT one row at a time in the cursor loop, but its too slow when I have more than 10K records to insert.
Thanks,
Yoram Ayalon
I have to take issue with this. rows are inserted based on the blocks on the freelist.
Watch.
We will create a feeder table.
SQL> create table feeder (ID) pctfree 0 as select rownum from all_objects;
Table created.
SQL> create table FRED (mycol integer) pctfree 0 pctused 99;
{99 so that free space is reused almost immediately for demo only }
Table created.
SQL> analyze table fred compute statistics;
Table analyzed.
SQL> select blocks from user_tables where table_name='FRED';
BLOCKS
0
SQL> insert into fred (mycol) select id from feeder where id <=32000;
32000 rows created.
{ So we now have a tightly packed table. Blocksize 8k by- the-by )
SQL> analyze table fred compute statistics;
SQL> select blocks from user_Segments where segment_name='FRED';
BLOCKS
48
{ Ok : 48 blocks. Now we will get rid of 1/2 of the rows scattered throughout the 48 }
SQL> delete from fred where mod(mycol,2) =0;
16000 rows deleted.
SQL> analyze table fred compute statistics;
Table analyzed.
SQL> select blocks from user_Segments where segment_name='FRED';
BLOCKS
48
{ Ok : Still 48 blocks since we haven't been inserting only deleting }
[ if we looked at user_Tables now it would show most if not all of the blocks on the freelist given the 99 PCTUSED }
{ now let's chuck in another 16000 ordered rows }
SQL> insert into fred (mycol) select id from feeder where id <=16000 order by id
16000 rows created.
SQL> analyze table fred compute statistics;
Table analyzed.
SQL> select blocks from user_Segments where segment_name='FRED';
BLOCKS
48
{ look ! no extra blocks !
-> it must have filled the non-contiguous holes in the blocks
-> the rows are not physically ordered.
Similar Messages
-
my kids computer began acting up this spring...so I shut it down.
Would not stay turned off, various noises almost continually, jumping highlights, etc.
Decided to reinstall os x snow leopard. insert disc and icon appears. then 3 icons with x in a column.
automatically highlights middle icon and will not allow me to select one above. Says install xcode.
not what i want to do.
any help?What model iMac do you have?
What version of Mac OS is it running? If you don't know, try to give approximations on when it was set up and whether it was ever updated so we can take our best guess.
How are you trying to boot from the install disc? Your description of 3 icons with x in a column' leads me to believe that you aren't booting from the install disc, but rather you are inserting the disc after booting from the OS that is installed on the hard drive. If that is what is happening you'll see something like this, although it will vary depending on the actual version of the Install Disc that you have and how you've chosen to view the files (icon, list, column, etc).
What happens if you restart the system with the Install Disc inserted, then quickly hold down the 'c' key so that the system attempts to boot from the Install Disc. Do you still experience the same issue? -
ORA-01733- virtual column not allowed here - Insert using inline view
Does anyone know why I am getting ORA-01733- virtual column not allowed here
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
---no error without WITH CHECK option
SQL> INSERT INTO
2 (SELECT
3 location_id,
4 city,
5 l.country_id
6 FROM countries c, locations l,regions r
7 where l.country_id = c.country_id
8 and r.region_id=c.region_id
9 and r.region_name = 'Asia')
10 VALUES (5500, 'Wansdworth Common', 'UK');
1 row created.
SQL> rollback;
Rollback complete.
-----error with WITH CHECK OPTION
SQL> INSERT INTO
2 (SELECT
3 location_id,
4 city,
5 l.country_id
6 FROM countries c, locations l,regions r
7 where l.country_id = c.country_id
8 and r.region_id=c.region_id
9 and r.region_name = 'Asia' WITH CHECK OPTION)
10 VALUES (5500, 'Wansdworth Common', 'UK');
INSERT INTO
ERROR at line 1:
ORA-01733: virtual column not allowed here
I was expecting
ORA-01402: view WITH CHECK OPTION where-clause violation
for the second one. Is there anything I am missing here ?Randolf
Thank you very much for the update to this old question
After reading the link I think I should ignore this error and accept it as ORA-01402
The information you asked me to check did not lead me an understanding of different error types.
SQL> ----view for ORA-01733
SQL> create view test_v_1
2 as
3 SELECT
4 location_id,
5 city,
6 l.country_id
7 FROM countries c, locations l,regions r
8 where l.country_id = c.country_id
9 and r.region_id=c.region_id
10 and r.region_name = 'Asia' WITH CHECK OPTION;
View created.
SQL>
SQL>
SQL>
SQL> select * from user_updatable_columns where table_name='TEST_V_1';
OWNER TABLE_NAME COLUMN_NAME UPD INS DEL
HR TEST_V_1 CITY YES YES YES
HR TEST_V_1 COUNTRY_ID NO NO NO
HR TEST_V_1 LOCATION_ID YES YES YES
SQL>
SQL> ----view for ORA-01402
SQL>
SQL> create view test_v_2
2 as
3 SELECT
4 d.department_id,
5 d.department_name,
6 d.location_id
7 FROM hr.departments d,hr.locations l
8 WHERE l.location_id=d.location_id
9 and d.location_id < 2000
10 WITH CHECK OPTION;
View created.
SQL>
SQL> select * from user_updatable_columns where table_name='TEST_V_2';
OWNER TABLE_NAME COLUMN_NAME UPD INS DEL
HR TEST_V_2 DEPARTMENT_ID YES YES YES
HR TEST_V_2 DEPARTMENT_NAME YES YES YES
HR TEST_V_2 LOCATION_ID NO NO NO
SQL>
SQL>
SQL> ----INSERT STILL FAILING WITH DIFFERENT ERROR DESPITE THE SAME UPDATABLE COLUMN STRUCTURE
SQL> insert into test_v_1 values (5500, 'Wansdworth Common', 'UK');
insert into test_v_1 values (5500, 'Wansdworth Common', 'UK')
ERROR at line 1:
ORA-01733: virtual column not allowed here
SQL> insert into test_v_2 values (9999, 'Entertainment', 2500);
insert into test_v_2 values (9999, 'Entertainment', 2500)
ERROR at line 1:
ORA-01402: view WITH CHECK OPTION where-clause violation
SQL>A. Coskan GUNDOGAR
Oracle DBA
http://coskan.wordpress.com
“A man's errors are his portals of discovery.”
James Joyce -
I am trying to use photomerge compose. I open one standard jpeg image and one image that is my business logo in a png format. When I select the png image, to extract the logo from it, it appears as all white and will not allow me to select the logo from it. It has worked in the past but I downloaded the update today and photomerge will not work correctly. Any ideas?
hedger,
How do you expect anyone to help when we don't know a darned thing about the file, abut your setup, exact version of Photoshop and your OS, machine specs, etc.?
BOILERPLATE TEXT:
Note that this is boilerplate text.
If you give complete and detailed information about your setup and the issue at hand,
such as your platform (Mac or Win),
exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
your settings in Photoshop > Preference > Performance
the type of file you were working on,
machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
what troubleshooting steps you have taken so far,
what error message(s) you receive,
if having issues opening raw files also the exact camera make and model that generated them,
if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
etc.,
someone may be able to help you (not necessarily this poster, who is not a Windows user).
a screen shot of your settings or of the image could be very helpful too.
Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
http://forums.adobe.com/thread/419981?tstart=0
Thanks! -
When clicking on a lookup, firefor does not allow me to select from the list
When I use firefox, the website I am on has lookup fields located on it, firefox does not allow me to select my preferred option from the list. also when I slect another lookup from a list it displays the message 'invalid lookup value located in field ......'
This does not happen in IEStart Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
* [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") -
Sales order does not allow make-to-order production
Dear Friends,
I am trying to do do planned order for sales order in MD50 it was showing the error message as
"Sales order does not allow make-to-order production"
Can any one solve this
ShakthiHi Shakthi,
It is also possible to set the priority for Requirement Type determination like
0 Material master strategy, then item category and MRP type
1 Item Category and MRP Type
2 as 1, with check for allowed requirement type.
The transaction for this is same as "Requirement Type Determination :
Sales and Distribution --> Basic Functions --> Availability Check and Transfer of Requirements --> Transfer of Requirements --> Determination Of Requirement Types Using Transaction
Look for "Source".
In this transaction, Please, check "Requirements".
Please, make sure of the following 2 things :
1. If you do not set an indicator for maintaining the requirements class: Transfer of requirements is not carried out, irrespective of the specification you make at schedule line level for the transaction.
So it is necessary to mantain the setting first at the Requirements Class. As mentioned in my earlier posts, the requirement class for the material can be found out from Planning Strategy / MRP3 view --> Main strategy (defined in the strategy group) --> Requirement Class for Customer Requirements.
The IMG path for "Define Strategy" is Production --> Production Planning --> Demand Management --> Planned Independent Requirements --> Planning Strategy --> Define Strategy.
2. Once the "Requirements" indicator is set in Requirement Class, the requirements indicator at the Schedule Line decides whether or not you require transfer of requirments for the relevant transaction.
I hope this should solve your problem.
Regards,
Sandeep -
Error: GR "Goods receipt for purch. order" is not allowed (ORD 4000048)
Hi gurus, can anyone please help me
while doing service entry for the PO with account assignment F and Item Category D
our client is facing the error
"Goods receipt for purch. order" is not allowed (ORD 4000048) MSG no: BS007
Diagnosis
The current status of object 'ORD 4000048' prohibits business transaction 'Goods receipt for purch. order'.
Procedure
To process business transaction 'Goods receipt for purch. order', you first have to change the status of object 'ORD 4000048' to allow the transaction 'Goods receipt for purch. order'.
This gives you an overview of the system and user statuses that affect the transaction. A transaction can only be executed if there is at least one status that allows it and there is no status that forbids it.
Anyone can give the solution please
Gurukhi dear all
Really thanks for your prompt reply.
i solved this issue, as what u said, it is not released in IW31, at the time of PR creation. So i asked the User to go to IW32 anc choose the apprpriate order and change mode and click on Flag Icon to release.
Any way i awarded points for your support
Thanks
regards
Guru -
"Goods receipt for purch. order" is not allowed (WBS P-0400-1-1-8010-1)
Dear All,
Can you tell me how to do?
"Goods receipt for purch. order" is not allowed (WBS P-0400-1-1-8010-1)
Message no. BS007
Diagnosis
The current status of object 'WBS P-0400-1-1-8010-1' prohibits business transaction 'Goods receipt for purch. order'.
Procedure
To process business transaction 'Goods receipt for purch. order', you first have to change the status of object 'WBS P-0400-1-1-8010-1' to allow the transaction 'Goods receipt for purch. order'.
This gives you an overview of the system and user statuses that affect the transaction. A transaction can only be executed if there is at least one status that allows it and there is no status that forbids it.
Transaction analysisHi Zhang,
Goto Transaction CJ02.
Now goto Edit button in Menu.Click on Status , then System/User Status.
Here u can find the current status of Project.
Later once again goto CJ02.
Now goto Edit button in Menu.Click on Status -- Release.
Once released u will be able to post GR.
Regards
Ramesh Ch -
Goods receipt for purch. order" is not allowed (NWA EXCANETHDR 0030)
Hi Gurus,
Message no. BS007
While doing MIGO with PO, Iam receving the following error msg as
"Goods receipt for purch. order" is not allowed (NWA EXCANETHDR 0030)".
Diagnosis
The current status of object 'NWA EXCANETHDR 0030' prohibits business transaction 'Goods receipt for purch. order'.
Procedure
To process business transaction 'Goods receipt for purch. order', you first have to change the status of object 'NWA EXCANETHDR 0030' to allow the transaction 'Goods receipt for purch. order'.
This gives you an overview of the system and user statuses that affect the transaction. A transaction can only be executed if there is at least one status that allows it and there is no status that forbids it.
Pls help me in this
Thanks in advance,
VasanthHi,
I guess it the goods receipt is against a PO having an asset or used an Internal order .In the Internal order control data Goods receipt allowed indicator has not been set. Please see the order in KO03 and check the allowed transactions. If GR (RMWE) is not there than ask your CO team for the needfull change after which take up GR.
Dhruba -
Goods receipt for purchase order is not allowed
Hi,
When I am doing the PO receipt i am facing the error message "Goods receipt for purchase order is not allowed WBS element xxxxxx"
What could be the problem
Thanks
LuckyHi,
Please check the WBS element in CJ03, in Basic Data, System status,
Is the WBS is not released or blocked.
Hope it helps you.
Thanks -
I am trying to upload a file to an accounting website for work. My computer will not allow me to select any type of file, they are all greyed out.
Try using a different browser. If it works, then the problem is most likely Safari. If the other browser doesn't work, perhaps it is the web site.
Firefox -
hello sap mm gurus/friends,
i would like to ask how do i go about resolving the error message:
"Goods receipt purch. order" is not allowed (ORD #######)
upon receiving the items in sap. The PO has an account assignment "F" (Order) against an internal order (ORD #######).
i came upon similar threads, and it was suggested that i should add "RMWE" (Goods receipt for purch. order) to Permitted Business Transactions. how do i do this?
thanks very much in advance.
regards,
albertHello Kami,
i was actually doing a goods receipt (MB01) against an invalid internal order. what i did was i requested the purchase requisitioner to choose a valid internal order that has been released and has not yet been fully consumed.
i hope this helps.
Best Regards,
Albert -
Goods receipt for purch. order" is not allowed
Hi Experts,
I am using BAPI_GOODSMVT_CANCEL..and getting the below Error messege
"Goods receipt for purch. order" is not allowed (NWA 9000275335 0020)
What is this (NWA 9000275335 0020)*
i would like to ask how do i go about resolving the error message. Please help me.
Thanks ,
SilviyaHi,
Thanks for your reply. I have checked Network & Activity in CJ20N. I dont know how to identify whterher it's defined correctly or not.
Is any other way to solve this? please help me.
Advance thanks,
Silviya -
"Create quotation for order" is not allowed (ORD 80000119 )
Hi,
After creation of service order I want to create quotation then system gives error massage as below,
"Create quotation for order" is not allowed (ORD 80000119 )
Message no. BS002
Diagnosis
The transaction 'Create quotation for order' is not allowed for ORD 80000119, because no status is set to permit it.
System response
You cannot carry out the transaction 'Create quotation for order'.
Procedure
You can carry out this transaction if you set a user status, which permits 'Create quotation for order'.
Thanks & Regards
kapilKapil,
Check the System status and user status of the order. Quotation can be created only before releasing the order (REL). or Any user status that may prevent creation of Quotation.
Babu -
Hi there,
Does someone know in SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.
Thanks,Hi,
Per my knowledge,
it is by design that the data type multiple lines of text can only use “contains” and “begins with” operators.
You can also filter the list view using SharePoint Designer,
Open your list AllItem.aspx page in SPD ->click “Filter” > in “Field Name” select your multipe line of text field, in “Comparison” will displayed four choices.
Best Regards,
Lisa Chen
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]
Maybe you are looking for
-
My Sync account isn't recognized?
According to "https://account.services.mozilla.com/" I have an account and data stored with Firefox Sync. However, when I try to log into Sync from "about:accounts" with the same email it doesn't recognize the account.
-
Save custom fields value in EKKO through ME21N
Hello Friends, putting a new inputfield in the header of ME21N - PO transaction must be inserted within existing tabstrib "Additional Data". This the new requirement. I have used the enhancement "MM06E005". I have only implemented and activated the U
-
I had some problem running itunes so i've decided to uninstall and re install. I've followed your indication for unnstalling all products (Quick Time , apple ..., Bonjour). I've cleaned all registry by means of one of the most popular registry manage
-
In windows 8 the screen can be split into a desktop half and app half, it would be very useful if Aurora could be opened in the app half of the operating system and allow normal desktop work to go on in the other half, on a windows 8 desktop I can se
-
Hi. I have two capturing questions that I could really use some help with, I'll keep them seperate. Since downloading the new FCP update I have had a new warning before capturing and I can't figure out what I'm supposed to do about it. Quoted as foll