CREATE table takes forever for 5000 records.
Hi All, I need your help in undertsanding this.
Why is that when I select this query below, query comes pretty fast within seconds --5000 rows returned.
But when I try to create a table out of the query,
SELECT r.*
FROM v1 r JOIN v2 u ON(r.id = u.name
AND r.prep = u.prep)
WHERE r.prep IS NOT NULL;
It takes more that 36 hours and still running!Whats happening??i tried this many times.
I checked teh tablespace and it has 3G space and when the CREATE table is running, i don'tr see teh tablespace change
CREATE TABLE AS
SELECT r.*
FROM v1 r JOIN v2 u ON(r.id = u.name
AND r.prep = u.prep)
WHERE r.prep IS NOT NULL;
it seems as if your source data is located on a different site (the REMOTE in the execution plan indicated that).
When you add the insert statement this could mean that now all the data is first moved to the local site and the join is executed here. It could be that the original query was executed completely remote. Not so sure about it thou.
You can test using the /*+ append */ hint for the insert and the /*+driving_site (?) */ hint for the select.
Similar Messages
-
Hi...
3....how to create table maintanence generator for a z table and how to use that for transfering a selected records to one server to another server.
thanks and regards,
k.swaminath reddyHi,
Table maintanance Generator is used to manually
input values using transaction sm30.The Table Maintenance Generator is used to create table maintenance program to add, modify or delete records in the database table. This can be accessed using transaction SE54 or in SE11 using the menu Utilities->Table Maintenance Generator
<b>
Follow below steps</b>
go to se11 check table maintanance check box under
attributes tab
utilities-table maintanance Generator->
create function group and assign it under
function group input box.
also assign authorization group default &NC& .
select standard recording routine radio in table
table mainitainence generator to move table
contents to quality and production by assigning
it to request.
select maintaience type as single step.
maintainence screen as system generated numbers
this dialog box appears when you click on create
button
save and activate table
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
One step, two step in Table Maintenance Generator
Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
please check the link for getting information about table maintenance generator !
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=use%20of%20table%20maintenance%20generator&cat=sdn_all
http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm
http://www.sap-img.com/abap/create-a-table-maintance-program-for-a-z-table.htm
Regards,
Priyanka. -
Since upgrading my MacBook Pro to Yosemite my computer is so slow. It takes forever for a page to load. Any suggestions?
Try these in order testing your system after each to see if it's back to normal:
1. a. Resetting your Mac's PRAM and NVRAM
b. Intel-based Macs: Resetting the System Management Controller (SMC)
2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
4. Reinstall Yosemite: Reboot from the Recovery HD. Select Reinstall OS X from the Utilities menu, and click on the Continue button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible
because it is three times faster than wireless.
5. Reinstall Yosemite from Scratch:
Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
How to Clean Install OS X Yosemite
Note: You will need an active Internet connection. I suggest using Ethernet if possible
because it is three times faster than wireless. -
Ever since this last update whenever I go online it takes forever for my homepage to come up. Is anyone else having the same trouble with Firefox? Use to I could click the icon and right there was the internet now I have to wait and wait and wait. I am about ready to leave Firefox. Another thing it does too, is if I go and look at a youtube video, then when I do open my homepage that youtube video becomes my homepage, instead of what my homepage should be. I am getting so so frustrated. Someone please give me some help on this.
* The first time you start up any application after turning on your computer is called a cold start, which is why Firefox takes a while to load right away. (I've noticed that future versions of Firefox start up faster on a cold start then Firefox 5.0.1.) Also, a lower amount of RAM could be slowing its start-up down since Firefox is kind of memory hungry.
* As for the second part of your question, press ctrl,Alt, and the delete keys on your keyboard. The Windows Task Manager should start. Go to the processes tab and look for 'firefox.exe'. Right click on the firefox.exe and click 'End Process'. Hit Yes and wait for a minute.
* Then opening Firefox again.
Hopefully this helped somewhat! -
Ipod takes forever for itunes to recognise and freezes sometimes
ok my ipod takes forever for itunes to recognise it and it sometimes freezes but finally when it does recognise my ipod it will not put all of the songs on and comes up with a message saying to update software but in the summary tab it wont let me update my ipod any help???
and now it is saying the disc cant be written to or
read from
We can work with that!
Try the steps listed here...
"Disk cannot be read from or written to" when syncing iPod or "Firmware update failure" error when updating or restoring iPod
btabz -
Problem in creating table maintenance generator for 61 fields in table
Hi Experts,
I am facing problem in creating a table maintenance genarator for a ZTABLE which has 61 fields
i am using below details whicle creating the TMG
in Maintenance screen
i am giving maintenance type as two step
Maint screen no overview screen 2
single screen 3
Dialog Data Transport details
Recording routine standard recording routine
but it is giving following error
screen SAPL<ZTABLE NAME> 0003 could not be generated
In DYNPFIELD_ATTR mandatory field LINE has no value
please let me know how to sort out these errors.
Is there any limit on the number of fields for which we can create table maintenance generetor.
Thanks a lot in advance
SudiptoHi Sudipto,
There is not limit to the number of fields of the Table which can be used in TMG for generation. But, from the usability point of view this will horrible.
I created a Z table and added 64 fields and was able to generate the TMG with the screens perfectly. So, I guess there should not be any problem.
Well, have a look at the Function Group. I guess the screen numbers are already used by some other screens. You can set the system to propose freely available screen numbers from the pool.
Also, check whether proper authorization is assigned or not.
And if nothing is working, you can degenerate all the generated screens and then can have a new regeneration of it.
Hope these tips will work.
Thanks,
Samantak -
Creating table to hold 10 million records
What should be the TABLESPACE,PCTUSED,PCTFREE,INITRANS, MAXTRANS, STORAGE details for creating a table to hold 10 million records.
TABLESPACE,A tablespace big enough to hold 10 million rows. You may decide to have a separate tablespace for a big table, you may not.
PCTUSEDAre these records likely to be deleted?
PCTFREEAre these records likely to be updated?
INITRANS, MAXTRANSHow many concurrent users are likely to be working with these records?
STORAGE Do you want to override the default storage values of the tablespace you are using?
In short, these questions can only be answered by somebody who understands your application i.e. you. The required values of these parameters has got little to do with the fact that the table has 10 million rows. You would need to answer these same questions for a table that held only ten thousand rows.
Cheers, APC -
Error while creating table 'EDISEGMENT' entry for Transfer Structures
Hi Guyz...
I've been facing a few issues regarding activation of transfer structures.
I'll explain the whole process...so it makes sense to you guys.
I've initially activated the Transfer Structures in BI Content for Master Data. Later on we faced some issues in the DEV server. So we had to transport all the objects and store them locally on a temporary location. When the BI DEV sever, was up and running, we transported all the objects back to the server.
Now while moving the objects back to the sever. We had an errors in the Master Data Request (Log- Method Execution). After going into the log...this is what I found.
Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0DIVISION_TEXT'
Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0DISTR_CHAN_TEXT'
Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0MATL_TYPE_TEXT'
Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0SALESORG_TEXT'
Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0SALES_GRP_TEXT'
I hope, I am clear here.
Any suggestions, guys...
Thanks,
Regards,
GHi,
Please check this link:
Error while creating table EDISEGMENT entry
Hope it helps.
Thanks and Regards,
MuraliManohar. -
** Is it possible to create new BPM instance for each record (Multiline)
Hi friends,
In my scenario, JDBC adapter (sender) polls the open purchase order items from the table at the specified interval and send to BPM. In BPM, we used transformation step to split the messages to process each PO . The scenario is working fine. The problem is assume that if we process 10 PO, the error is in 4th PO while process, the BPM will be stopped in 4th PO. Once we correct the error, we are able to restart.
In this case, we are not able to skip the 4th PO and process from 5th PO onwards. ie. the processing is sequential. Instead, we want to start new BPM instance for every PO. Advantage is that if 4th PO is error, only that BPM instance (work item) will be stopped. Remaining 9 POs will be completed.
So, how do we start new BPM instance for every PO ?
Kindly tell me, friends.
Thank you.
Kind Regards,
Jeg P.Hi,
There are two ways to achieve this. In BPM and before BPM.
Before BPM:
Use 1 to unbounded mapping and 1 to unbounded interface mapping.
In your mapping, make sure you create a seperate message for each PO.
In BPM:
Create a multiline container with you POs using a 1 to n mapping.
Now add a ForEach block to loop through the multiline container and send each PO.
Important: Add an exception branch to catch any exception for each send so that the exception does not make the BPM fail.
Regards,
Yaghya -
How to create a BDC program for given recording.
i have to create a BDC program for uploading a file.
currently i am using call function
CALL FUNCTION 'F4_FILENAME'just check out the code below it is for updating two transactions
types Declaration *
types: begin of t_tab1 ,
vendor(10),
material(18),
pur_org(4),
wglif(18),
end of t_tab1.
Data Declaration *
data : begin of it_tab5 occurs 0,
vendor(10),
material(18),
end of it_tab5.
**DATA : BEGIN OF IT_TAB6 OCCURS 0,
VENDOR(10),
MATERIAL(18),
END OF IT_TAB6.
data: it_tab1 type standard table of t_tab1 with header line.
data: wa_tab1 type t_tab1.
data: wa_tab2 type t_tab1.
data: it_tab3 like bdcdata occurs 0 with header line.
data: it_tab4 like bdcdata occurs 0 with header line.
data: it_tab2 type table of bdcmsgcoll with header line.
data: d_file_name like ibipparms-path,
d_file_name1 type string.
Start-of-selection *
start-of-selection.
FM for finding the flat file
call function 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
importing
file_name = d_file_name.
d_file_name1 = d_file_name.
******FM for uploading data from flat file into internal table
call function 'GUI_UPLOAD'
exporting
filename = d_file_name1
filetype = 'ASC'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = it_tab5
exceptions
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
others = 17.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
End-of-selection *
end-of-selection.
sort it_tab5 by vendor.
loop at it_tab5.
perform bdc_dynpro using 'SAPLBG00' 0101 .
perform bdc_field using 'BDC_OKCODE' '/00' .
perform bdc_dynpro using 'SAPLBG00' 1000 .
perform bdc_field using 'BDC_OKCODE' '=BUCH' .
perform bdc_field using 'BDC_SUBSCR'
'SAPLBG00 1101KOPF_1000'.
perform bdc_field using 'GBGMK-GAART' '2' .
perform bdc_field using 'GBGMK-GAERB' 'X' .
perform bdc_field using 'BDC_SUBSCR'
'SAPLBG00 1103TAB_SUB_1000'.
perform bdc_field using 'BDC_CURSOR' 'GBGMP-LSTNR(01)' .
perform bdc_field using 'GBGMP-LSTNR(01)' it_tab5-material .
call transaction 'BGM1' using it_tab3 mode 'E' messages into it_tab2
refresh it_tab3.
wa_tab1-pur_org = 'ABCP'.
loop at it_tab2.
endloop.
perform bdc_dynpro using 'SAPMM06I' 0100 .
perform bdc_field using 'BDC_CURSOR' 'EINE-EKORG' .
perform bdc_field using 'BDC_OKCODE' '/00' .
perform bdc_field using 'EINA-LIFNR' it_tab5-vendor .
perform bdc_field using 'EINA-MATNR' it_tab5-material .
perform bdc_field using 'EINE-EKORG' wa_tab1-pur_org .
perform bdc_field using 'RM06I-NORMB' 'X' .
perform bdc_dynpro using 'SAPMM06I' 0101 .
perform bdc_field using 'BDC_CURSOR' 'EINA-WGLIF' .
perform bdc_field using 'BDC_OKCODE' '=BU' .
perform bdc_field using 'EINA-WGLIF' it_tab2-msgv1 .
call transaction 'ME12' using it_tab3 mode 'E'.
refresh it_tab3.
refresh it_tab2.
endloop.
*& Form BDC_DYNPRO
Start new screen
-->P_FNAM text
-->P_FVAL text
form bdc_dynpro using program
dynpro.
clear it_tab3.
it_tab3-program = program.
it_tab3-dynpro = dynpro.
it_tab3-dynbegin = 'X'.
append it_tab3.
endform. " BDC_DYNPRO
*& Form BDC_FIELD
Insert field
-->P_FNAM text
-->P_FVAL text
form bdc_field using fnam
fval.
clear it_tab3.
it_tab3-fnam = fnam.
it_tab3-fval = fval.
append it_tab3.
endform. " BDC_FIELD
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:20 PM -
Create Table with Compress for OLTP and error ORA-14464
Hello,
i have a Oracle-DB 11.2 and want to use Advanced Compression.
I want to create a table:
CREATE TABLE TD_GE_1990
( "name_id" NUMBER(1,0),
"name_txt" VARCHAR2(100 BYTE)
) COMPRESS FOR OLTP;
But i get:
SQL-Fehler: ORA-14464: Kompressionstyp nicht angegeben
The "compatible"-Parameter is set to 11.1:
SELECT value
FROM gv$parameter
WHERE name LIKE '%compatible%';
11.1.0.0.0
Do i have to change something in the database?
Best regards
Heidi14464, 00000, "Compression Type not specified"
// *Cause: Compression Type was not specified in the Compression Clause.
// *Action: specify Compression Type in the Compression Clause. -
Problems on creating table under schema for BPM Demo project
hi,
i have not enough experience in database concepts, but i can create ,insert and modify the tables and data by using SQL query in oracle database 10 g express edition
The reason behind send this qurery is i wanted to create the database tables under "Quote" schema., which is necessary to store and retrive data for my BPM demo project.
Two important . Sql scirpt file namely create_user.sql and quote.sql used to create the database tables under "quote" schema available on e:/bpm/sql
i could create "quote" schema by this command on commandline,
>cd e:/bpm/sql
>sqlplus sys/welcome as sysdba @create_user.sql quote quote
but when creating database tables under "quote" schema , i got "SP2-0734 - unknown command exception thrown
in commandline i was used like this to create table,
>sqlplus quote quote @quote.sql
Can anyone who familiar with database query concept help me to create tables on "quote " schema,
thanks in advanceHello,
Please find enclosed a complete chapter about the CREATE TABLE statement:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#i2095331
At the end there're many examples.
Hope this help.
Best regards,
Jean-Valentin -
i have windows 7, the internet connection is perfect, i use other computers with no problem loading pages. With this pages take forever to load, worse then if i had dialup. I think internet explorer is the same, but i don't use it and it's very out of date. I tried a system restore, it worked for a day then back to the same thing. Pages take minutes to load, any page. some time out. i don't know what to do next, i've cleared history, cache, cleaned the computer up not sure where the problem is or what it is.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
*Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
*Do NOT click the Reset button on the Safe Mode start window
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to install for Firefox and the plugin-container process and the updater process.
See:
*https://support.mozilla.org/kb/Server+not+found
*https://support.mozilla.org/kb/Firewalls
*https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating -
Create table with sqlstudio for sapdb
Hi all,
I try to use a created table in sapdb in my webdynpro, but when I run my application I the following error: contains the semantics error[s]: table "BE_DEPARTMENT" unknown. When I create the table by using NWDS then I the error is solved.
In sqlstudio I used CREATE TABLE. What must I do after this statement so that I can use the created table in my NWDS
I use a JDBC connection in my Webdynpro
Regards,
RichardPlease have a look at these
/people/kathirvel.balakrishnan2/blog/2005/04/16/how-to-manipulate-a-maxdb-database-using-jdbc--part-1
/people/kathirvel.balakrishnan2/blog/2005/04/22/how-to-manipulate-a-maxdb-database-using-jdbc--part-2
https://pwdf1209.dmzwdf.sap.corp/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to create tables in maxdb using sql studio.pdf
Cheers
Kathir -
Creating a dynamic page for each record.
So I understand how to grab a single row from a database for use on a dynamic page. Now creating 1,000 pages for each row would be rather tedious even with copy and paste. So can anyone provide me some information on how to do this without creating each page manually?
>See what im saying?
No.
>What you are suggesting wouldn't actually produce a page for that product which can be linked to from other areas of the site.
Yes it would. You create a link to a dynamic page and pass it the id of the item you want to display. So instead of using a link to a static page like this:
<a href="mywidget_01.html">My Widget 101</a>
You would link to a dynamic page like this:
<a href="widgets.php?id=101">My Widget 101</a>
The widgets.php would read the query string and pull the correct data for widget 101 from the database. You could even use url rewriting so the url of the dynamic page for widget 101 would be http://example.com/widget101
>What I need is an easier way to produce 40,000 static pages.
That's crazy. It defeats the whole purpose of dynamic sites. Before you start on this, make sure you fully understand your options.
Maybe you are looking for
-
HELP: MacBook Pro does not boot at all
MacBook Pro 15" 2.5GHz 4GB RAM Serial No. W8******YK0 Snow Leopard (with all updates) Yesterday when leaving my office I just closed the cover on my MacBook. When I later opened it again the front white lite was steadyly on (dim) and the computer did
-
Message 3513 not found; product=NETWORK; facility=TNS
I have installed 11g instant client on windows machine and when I do a tnsping from cmd I get Message 3513 not found; product=NETWORK; facility=TNS I have already copied all the files over from mesg folder. Also when I do tnsping on something which i
-
Hi all, Iam facing a limitation with Foreign JMS server. We are tyring to migrate from Message Bridge to Foreign JMS server. Our current setup is We have 3 MQ queues which are bridged to one JMS destination(que
-
How to make an embedded blog scroll.
Hi, In my site, Deleteproductions.com/film.html, I have included an wordpress blog for my project (so i can easily update it whenever i want en where i want). But on mac the page automatically scrolls, which is great, but on ipad it does not. Can you
-
HI, I am new to XI. Can anybody tell me where actually XI used in Real Time! after doing the course, i got some knowledge that communicating with B2B applications. Is it supports between EAI(enterpeise application integration) also? And in what other