T.codes compiling even after SGEN
Hi All,
We have recently upgraded to ERP6 from R/3 4.7. As part of the post upgrade activities we have also run the SGEN which took 10 hours to complete. But the strange thing we noticed that there are number of transaction codes still compiling when using first time.
I would apprecite if some one can tell the solution and reason.
Thanks in advance.
Regards,
Harish
Hi Sunny,
Thanks very much for the useful SAP notes but the problem which described in that note had been rectified in BASIS(700) patch 17 and we are on basis patch 21. Other thing we found that we had selected "Generate all objects of selected software components" after upgrade. I would appricate if you could suggest any fixes regarding this.
Thanks,
Harish
Similar Messages
-
even after adding the country code i can't seem to make any international calls.im not sure if this is relevant but apparently, the option dial assist is not to be found on my setting.pls direct me...thank you.and my phone moddle is 5s(A1457)gold eddition.
Hi, Thilina66. You say you have entered the country code but still cannot make international calls. I suppose you are adding the international access code before the country code. This internaltional access code (011 in the US, 00 in Europe, etc.) can be substituted by adding a + sign before the country code.
For example, to call a number in the UK from the US you have to dial:
011 44 7540 267898
or
+44 7540 267898
To call a number in the US from the UK you have to dial:
00 1 212 456 1470
or
+1 212 456 1470
Please check that the contact number in your address book is correctly written if you are dialing directly from the address book or that you enter the correct numbers in the keyboard if you are dialing from the keyboard. -
Code continue to execute in same servlet even after request forwarded.
Hi
I have forwarded flow of execution in first line of my servlet.
request.getRequestDispatcher("xx.jsp").forward(req,res);
my class looks like:
servlet
line 1: request.getRequestDispatcher("xx.jsp").forward(req,res);
line 2: some code
line 3: some code
Now what happens that even after execution of line 1........ line2 and 3 gets executed.
But after execution of line 3 flow is forwarded to xx.jsp.
How can i avoid execution of line 2 and 3.
Please comment
Thanks
Edited by: money321 on Mar 5, 2009 9:06 AMHi,
Had this issue when I was a java newbie :)
just place a return statment
servlet
line 1: request.getRequestDispatcher("xx.jsp").forward(req,res);
return;
line 2: some code
line 3: some code
}<br> -
EhP5 - System compiling after SGEN
Hi everyone,
After installed EhP5, we start SGEN with option "Regenerate after upgrade".
But all transaction started for the first time, compiles
We restarted SGEN with option "Generate All Objects of Selected Software Components".
We selected all software components.
A lot of archive (oracle) but transactions run for the first time still compiles...
Could you help me ?
Thank you,
PhilippeHello Philippe,
please provide more details about the errors, the message you posted is a generic one, and the individual log/object files should be analysed why they errored out.
In the meantime, I'll provide some hints regarding the runtime of SGEN:
- initially it should be checked that SGEN is stuck because of lack of available work processes (DIA? BGD?). Please check this in SM50/66 and rearrange your WPs in RZ03.
Do you have any error message which you can see from your oracle alert log during such execution, etc? Sometimes defragmented state of the database may cause the difference too!
Transaction SGEN determines the so-called generation set through the options given in the first screen and the content of the file REPLIST. The resulting set is saved in table GENSETC. After that step the SGEN starts a maximum of 8 generation jobs in batch which then do the dirty work and process the content of GENSETC. So there are in actually two parts which are citical:
First part is SGEN related and means the calculation of the generation set.
Second part is the performance of the gen. jobs and this is out of control of SGEN. This is SAP system related and depends on resources of the system itself like main memory, number of cpu and last but not least, the database performance.
I would say that the runtime of the gen jobs is heavily depending on the database performance of the system. All the eight jobs access the tables REPOSRC and REPOLOAD and some other administrative tables thus creating heavy database load.
Hence the performance of the gen jobs is not SGEN related, SGEN cannot do anything after having started the batch.
So there are two option to be looked at:
1. If there are enough system resources like main memory, number of cpu AND enough SAP system resources like number of batch jobs and the database load is not near 100% THEN we could think about increasing the maximum number of batches to perform the generation. This is meant for all instances. That means a modification to change the max from 8 to say some higher value like 16.
2. If the runtime of the batch is the issue then a general look into DB performance is helpful. I am not an expert with Oracle, so I cannot tell the details of the DB02 transaction which could give some performance hints as well as native Oracle tools. If this is the case, you might want to log the case with component BC-DB-ORA.
The runtime of the batch is out of control of SGEN, but are the performance factor in generation.
In case that the DB performance or the general SAP system batch performance is the issue than I would not expect big differences in runtime of the generation jobs between SGEN and SAMT. The basic work is the same.
Especially when the database is the limiting factor both the SGEN batch jobs and SAMT should take a similar amount of time.
I hope the above information helps to solve the issue. In case there are enough resources for the generation you could modify report RSPARAGENER8 to increase the number of processes. I attach the info below.
NB: Please find here the statement to change to increase the number of
processes used for generation.
=====================================================================
In report RSPARAGENER8 line 194-195:
data: njobs_max type i value 8. " maximum number of parallel tasks in
the RFC group
>> defines the maximum number of tasks
>> changing this values will increase the number of procs used/created
for SGEN
>> The value is used in lines 492-496 were the number of workprocesses
>> is limited by the njobs_max value
Perhaps you can do this analysis and see whether it does make relevant to you
#589124: Performance improvements when Support Package imported
I hope this helps.
Best regards,
Tomas Black -
Lock code won't work even after resetting it, help please!!
lock code won't wok even after resetting it, please help!!!
Allow us to help unlock your phone Problem_Girl. To ensure we are troubleshooting correctly, which lock code are you experiencing difficulites with? The lock code to access your phone or a lock code for voicemail?
If you are having difficulties with unlocking the device for main access and are unable to remember or reset the password, a hard reset must be performed. To learn how to perform a hard reset on your device click http://vz.to/1jm3NkL
If you are experiencing difficulites with unlocking a certain application, please share further details.
Thank You,
MichelleL_VZW
VZW Support
Follow us on Twitter @VZWSUPPORT -
I have a ListView displaying a collection of icons. The user can then select different icons (checkboxes) to do things like Copy or Delete.
Problem is, when I try to delete the actual file from the disk, I get an error telling me the file is "in use" ("vshost.exe", the VS runtime during testing).
I thought maybe it was because it still appeared in the window and was still in the ImageList, but even after removing it from both locations, I still get the error. My code:
Dim intCnt As Integer = 0
Do
ImageList2.Images.RemoveAt(intIconsChecked(intCnt)) ' Remove from collection.
lsvCollection.Items.RemoveAt(intIconsChecked(intCnt)) ' Remove from ListView window.
FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".rsc") ' "+1" b/c Icons start with "01".
FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".png") ' "In use" Error here.
".rsc" deletes just fine, so I know I'm deleting the correct file. Why does VS still think the file is still "in use"?
ThxMugsy,
Consider this as food for thought, even if you don't use it.
If you set it up right then you can control how it works. A reference is a reference and any left behind will cause you grief down the road when you try to delete things.
As an example, a simple class follows. It does *not* implement IDispose, although it does have a private shared Dispose method in it:
Public Class MyImages
Private _bmp As Bitmap
Private _name As String
Private _sourceFilePath As String
Private Sub New(ByVal bmp As Bitmap, _
ByVal name As String, _
ByVal filePath As String)
_bmp = bmp
_sourceFilePath = filePath.Trim
_name = name.Trim
End Sub
Public ReadOnly Property Bmp As Bitmap
Get
Return _bmp
End Get
End Property
Public ReadOnly Property Name As String
Get
Return _name
End Get
End Property
Public ReadOnly Property SourceFilePath As String
Get
Return _sourceFilePath
End Get
End Property
Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
ByVal imageFilePath As String)
Try
If miList Is Nothing Then
Throw New ArgumentNullException("The collection of MyImages cannot be null.")
ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
Throw New ArgumentException("The file path of the image cannot be null or empty.")
ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
Throw New IO.FileNotFoundException("The file path of the image could not be located.")
Else
' Should do validation here that the file
' is actually an image but I'll not do this
' here...
Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
miList.Add(New MyImages(thisBMP, GetFileNameWithoutExtension(imageFilePath), imageFilePath))
End If
Catch ex As Exception
Throw
End Try
End Sub
Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
ByVal imageFilePath As String, _
ByVal imageName As String)
Try
If miList Is Nothing Then
Throw New ArgumentNullException("The collection of MyImages cannot be null.")
ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
Throw New ArgumentException("The file path of the image cannot be null or empty.")
ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
Throw New IO.FileNotFoundException("The file path of the image could not be located.")
ElseIf String.IsNullOrEmpty(imageName) OrElse imageName.Trim = "" Then
Throw New ArgumentException("The name of this image cannot be null or empty.")
Else
' Should do validation here that the file
' is actually an image but I'll not do this
' here...
Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
miList.Add(New MyImages(thisBMP, imageName, imageFilePath))
End If
Catch ex As Exception
Throw
End Try
End Sub
Public Shared Sub Remove(ByRef miList As List(Of MyImages), _
ByVal imageFilePath As String, _
Optional ByVal removeFilePathAlso As Boolean = False)
Try
If miList Is Nothing Then
Throw New ArgumentNullException("The collection of MyImages cannot be null.")
ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
Throw New ArgumentException("The file path of the image cannot be null or empty.")
ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
Throw New IO.FileNotFoundException("The file path of the image could not be located.")
Else
Dim findInstance As System.Collections.Generic.IEnumerable(Of MyImages) = _
From mi As MyImages In miList _
Where mi.SourceFilePath = imageFilePath
If findInstance.Count <> 1 Then
Throw New ArgumentException("The instance of MyImages specified by the" & vbCrLf & _
"image file path is not in the collection.")
Else
Dispose(findInstance.First)
If removeFilePathAlso Then
My.Computer.FileSystem.DeleteFile(findInstance.First.SourceFilePath)
End If
miList.Remove(findInstance.First)
End If
End If
Catch ex As Exception
Throw
End Try
End Sub
Private Shared Sub Dispose(ByVal instance As MyImages)
If instance IsNot Nothing AndAlso instance._bmp IsNot Nothing Then
instance._bmp.Dispose()
instance._bmp = Nothing
End If
End Sub
End Class
When you look through that, look specifically at the "Remove" method and in particular, look at the order in which things are done. That's the critical part in this.
I tested it with a simple form:
Two buttons, a checkbox, and a picturebox. I also copied a small folder full of image files to my desktop since I'll be deleting a file from it. Following is the code for Form1:
Option Strict On
Option Explicit On
Option Infer Off
Imports System.IO.Path
Public Class Form1
Private miList As New List(Of MyImages)
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim desktop As String = _
My.Computer.FileSystem.SpecialDirectories.Desktop
Dim imgFolder As String = _
Combine(desktop, "Images")
PictureBox1.BorderStyle = BorderStyle.FixedSingle
For Each imgFilePath As String In My.Computer.FileSystem.GetFiles(imgFolder)
MyImages.AddNew(miList, imgFilePath)
Next
btn_RemoveFirstImage.Enabled = False
CheckBox_RemoveSourcePath.Enabled = False
End Sub
Private Sub btn_ShowFirstImage_Click(sender As System.Object, _
e As System.EventArgs) _
Handles btn_ShowFirstImage.Click
Try
If miList.Count >= 1 Then
With PictureBox1
.SizeMode = PictureBoxSizeMode.Zoom
.Image = miList(0).Bmp
End With
btn_RemoveFirstImage.Enabled = True
CheckBox_RemoveSourcePath.Enabled = True
End If
Catch ex As Exception
MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
"Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
End Try
End Sub
Private Sub btn_RemoveFirstImage_Click(sender As System.Object, _
e As System.EventArgs) _
Handles btn_RemoveFirstImage.Click
Try
If miList.Count >= 1 Then
MyImages.Remove(miList, miList(0).SourceFilePath, CheckBox_RemoveSourcePath.Checked)
End If
PictureBox1.Image = Nothing
btn_RemoveFirstImage.Enabled = True
CheckBox_RemoveSourcePath.Enabled = True
Catch ex As Exception
MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
"Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
End Try
End Sub
End Class
Running it is straightforward:
Now when I click to show the first one:
A different image is shown because that first one no longer exists - either in the collection or in the folder.
Closing/disposing all references is the key and the order matters.
Something to consider the next time around. :)
Still lost in code, just at a little higher level. -
Index is not getting picked even after providing hint
Hi All
The index pk_sku is not getting picked even after providing the hints when executing the query.Please kindly give me such recommendations.I am providing the information.
select * from
(select /*+ index(s pk_sku) */
to_char(t.dstamp, 'YYYYmmDDHH24MI') as sort_1,
t.client_id as CLIENT_ID ,
t.site_id as SITE_ID,
tz.time_zone_name as TIME_ZONE_NAME ,
t.owner_id as OWNER_ID,
t.sku_id as SKU_ID,
t.reason_id as ADJUST_TYPE,
to_char(t.dstamp+tz.diff/24, 'DD/mm/YYYY HH24:MI') as ADJUST_DATETIME,
t.reference_id as RECEIPT_ID,
t.batch_id as BATCH_ID,
t.update_qty as UPDATE_QTY,
t.lock_code as LOCK_CODE,
s.description as SKU_DESCRIPTION
from mv_inventory_transaction t
JOIN timezone tz ON tz.site_id = t.site_id ,
mv_sku s
where t.sku_id= s.sku_id
and t.client_id=s.client_id
and ( :client is null or :client = t.client_id)
and ( :site is null or t.site_id in (:site))
and ( :owner is null or t.owner_id in (:owner))
and t.code= 'Adjustment'
and (t.dstamp+tz.diff/24) between to_date(:dateFrom, 'DD/mm/yyyy') and to_date(:dateTo,'DD/mm/yyyy')+1
and (:sku is null or t.sku_id in (:sku))
UNION ALL
(select /*+ index(s pk_sku) */
to_char(t.dstamp, 'YYYYmmDDHH24MI') as sort_1,
t.client_id as CLIENT_ID ,
t.site_id as SITE_ID,
tz.time_zone_name as TIME_ZONE_NAME ,
t.owner_id as OWNER_ID,
t.sku_id as SKU_ID,
t.reason_id as ADJUST_TYPE,
to_char(t.dstamp+tz.diff/24, 'DD/mm/YYYY HH24:MI') as ADJUST_DATETIME,
t.reference_id as RECEIPT_ID,
t.batch_id as BATCH_ID,
t.update_qty as UPDATE_QTY,
t.lock_code as LOCK_CODE,
s.description as SKU_DESCRIPTION
from mv_inventory_transaction_arch t
JOIN timezone tz ON tz.site_id = t.site_id,
mv_sku s
where t.sku_id= s.sku_id
and t.client_id=s.client_id
and ( :client is null or :client = t.client_id)
and ( :site is null or t.site_id in (:site))
and ( :owner is null or t.owner_id in (:owner))
and t.code= 'Adjustment'
and (t.dstamp+tz.diff/24) between to_date(:dateFrom, 'DD/mm/yyyy') and to_date(:dateTo,'DD/mm/yyyy')+1
and (:sku is null or t.sku_id in (:sku))
order by sort_1,2,3,4,5
version = Release 10.1.0.5.0
SQL> sho parameter optimizer
NAME TYPE VALUE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 10.1.0.5
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
sho parameter db_file_multiblock_count_read
sho parameter cursor_sharing
SQL> sho parameter optimizer
NAME TYPE VALUE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 10.1.0.5
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
SQL> sho parameter db_file_multi
NAME TYPE VALUE
db_file_multiblock_read_count integer 16
SQL> sho parameter cursor_sharing
NAME TYPE VALUE
cursor_sharing string EXACTExplain plan
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 56 | 29736 | 345K (1)| 01:09:07 |
| 1 | SORT ORDER BY | | 56 | 29736 | 345K (1)| 01:09:07 |
| 2 | VIEW | | 56 | 29736 | 345K (1)| 01:09:07 |
| 3 | UNION-ALL | | | | | |
| 4 | NESTED LOOPS | | 2 | 984 | 29686 (1)| 00:05:57 |
| 5 | HASH JOIN | | 1 | 326 | 26870 (1)| 00:05:23 |
| 6 | TABLE ACCESS FULL | TIMEZONE | 4 | 88 | 3 (0)| 00:00:01 |
| 7 | VIEW | MV_INVENTORY_TRANSACTION | 25 | 7600 | 26866 (1)| 00:05:23 |
| 8 | UNION-ALL | | | | | |
| 9 | FILTER | | | | | |
| 10 | MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION | 1 | 67 | 24327 (1)| 00:04:52 |
| 11 | INDEX RANGE SCAN | IDX_CODE_CLIENTID_690 | 79681 | | 518 (1)| 00:00:07 |
| 12 | FILTER | | | | | |
| 13 | MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION | 24 | 2328 | 2539 (1)| 00:00:31 |
| 14 | INDEX RANGE SCAN | IDX_CODE_646 | 9269 | | 46 (0)| 00:00:01 |
| 15 | VIEW | MV_SKU | 37 | 6142 | 2816 (1)| 00:00:34 |
| 16 | UNION-ALL | | | | | |
| 17 | MAT_VIEW ACCESS FULL | MV_SKU | 335K| 10M| 2535 (1)| 00:00:31 |
| 18 | MAT_VIEW ACCESS FULL | MV_SKU | 37839 | 1699K| 280 (1)| 00:00:04 |
| 19 | NESTED LOOPS | | 54 | 26568 | 315K (1)| 01:03:10 |
| 20 | HASH JOIN | | 1 | 326 | 313K (1)| 01:02:37 |
| 21 | TABLE ACCESS FULL | TIMEZONE | 4 | 88 | 3 (0)| 00:00:01 |
| 22 | VIEW | MV_INVENTORY_TRANSACTION_ARCH | 576 | 171K| 313K (1)| 01:02:37 |
| 23 | UNION-ALL | | | | | |
| 24 | FILTER | | | | | |
| 25 | MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION_ARCH | 1 | 72 | 19258 (1)| 00:03:52 |
| 26 | INDEX RANGE SCAN | QUI_IDX_INVTRANS_ARC1 | 36016 | | 287 (1)| 00:00:04 |
| 27 | FILTER | | | | | |
| 28 | MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION_ARCH | 575 | 55200 | 293K (1)| 00:58:45 |
| 29 | INDEX RANGE SCAN | QUI_IDX_INVTRANS_ARC1 | 367K| | 3466 (1)| 00:00:42 |
| 30 | VIEW | MV_SKU | 37 | 6142 | 2816 (1)| 00:00:34 |
| 31 | UNION-ALL | | | | | |
| 32 | MAT_VIEW ACCESS FULL | MV_SKU | 335K| 10M| 2535 (1)| 00:00:31 |
| 33 | MAT_VIEW ACCESS FULL | MV_SKU | 37839 | 1699K| 280 (1)| 00:00:04 |
------------------------------------------------------------------------------------------------------------------------when put in sql tuning advisor,It recommended with better plan using indexes
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 56 | 29736 | 340K (1)| 01:08:01 |
| 1 | SORT ORDER BY | | 56 | 29736 | 340K (1)| 01:08:01 |
| 2 | VIEW | | 56 | 29736 | 340K (1)| 01:08:01 |
| 3 | UNION-ALL | | | | | |
| 4 | NESTED LOOPS | | 2 | 848 | 26900 (1)| 00:05:23 |
| 5 | HASH JOIN | | 1 | 326 | 26898 (1)| 00:05:23 |
| 6 | TABLE ACCESS FULL | TIMEZONE | 4 | 88 | 3 (0)| 00:00:01 |
| 7 | VIEW | MV_INVENTORY_TRANSACTION | 25 | 7600 | 26894 (1)| 00:05:23 |
| 8 | UNION-ALL | | | | | |
| 9 | FILTER | | | | | |
| 10 | MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION | 1 | 67 | 24352 (1)| 00:04:53 |
| 11 | INDEX RANGE SCAN | IDX_CODE_CLIENTID_690 | 79681 | | 518 (1)| 00:00:07 |
| 12 | FILTER | | | | | |
| 13 | MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION | 24 | 2328 | 2542 (1)| 00:00:31 |
| 14 | INDEX RANGE SCAN | IDX_CODE_646 | 9269 | | 46 (0)| 00:00:01 |
| 15 | VIEW | MV_SKU | 37 | 3626 | 2 (0)| 00:00:01 |
| 16 | UNION-ALL PARTITION | | | | | |
| 17 | MAT_VIEW ACCESS BY INDEX ROWID | MV_SKU | 1 | 34 | 3 (0)| 00:00:01 |
| 18 | INDEX UNIQUE SCAN | PK_SKU | 1 | | 2 (0)| 00:00:01 |
| 19 | MAT_VIEW ACCESS BY INDEX ROWID | MV_SKU | 1 | 46 | 2 (0)| 00:00:01 |
| 20 | INDEX UNIQUE SCAN | PK_SKU | 1 | | 1 (0)| 00:00:01 |
| 21 | NESTED LOOPS | | 54 | 22896 | 313K (1)| 01:02:38 |
| 22 | HASH JOIN | | 1 | 326 | 313K (1)| 01:02:38 |
| 23 | TABLE ACCESS FULL | TIMEZONE | 4 | 88 | 3 (0)| 00:00:01 |
| 24 | VIEW | MV_INVENTORY_TRANSACTION_ARCH | 576 | 171K| 313K (1)| 01:02:38 |
| 25 | UNION-ALL | | | | | |
| 26 | FILTER | | | | | |
| 27 | MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION_ARCH | 1 | 72 | 19269 (1)| 00:03:52 |
| 28 | INDEX RANGE SCAN | QUI_IDX_INVTRANS_ARC1 | 36016 | | 287 (1)| 00:00:04 |
| 29 | FILTER | | | | | |
| 30 | MAT_VIEW ACCESS BY INDEX ROWID| MV_INVENTORY_TRANSACTION_ARCH | 575 | 55200 | 293K (1)| 00:58:47 |
| 31 | INDEX RANGE SCAN | QUI_IDX_INVTRANS_ARC1 | 367K| | 3466 (1)| 00:00:42 |
| 32 | VIEW | MV_SKU | 37 | 3626 | 2 (0)| 00:00:01 |
| 33 | UNION-ALL PARTITION | | | | | |
| 34 | MAT_VIEW ACCESS BY INDEX ROWID | MV_SKU | 1 | 34 | 3 (0)| 00:00:01 |
| 35 | INDEX UNIQUE SCAN | PK_SKU | 1 | | 2 (0)| 00:00:01 |
| 36 | MAT_VIEW ACCESS BY INDEX ROWID | MV_SKU | 1 | 46 | 2 (0)| 00:00:01 |
| 37 | INDEX UNIQUE SCAN | PK_SKU | 1 | | 1 (0)| 00:00:01 |
------------------------------------------------------------------------------------------------------------------------So ,after checking the recommended plan I tried to execute the query with the hints,even then it is picking up the indexes in the explain plan.So please kindly help in solving the issue
The pk_sku is the index created on client_id and sku_id columns
Thanks
GVriedelme wrote:
My experience is differernt - hints will be followed if the optimizer determines they will be beneficial and not if they will not, including my current project on 11gR2. The example below (unfortunately only 11gR1) disproves your theory, showing the index hint is followed and that the cost increases by a factor of five.
The most common cases of the optimizer apparently ignoring a hint are due to operator error, the hint is not well formed, or cannot be followed. There are a couple of documented cases where a hint will be ignored - first_rows used in CTAS is one.
Jonathan Lewis writes a lot about it on his blog showing that the optimizer always acts on a well formed hint if it is at all possible.
SQL> create table t (n number not null, c varchar2(1000));
Table created.
SQL> insert into t select 1, rpad('x',1000,'x')
2 from dual connect by level <= 50000;
50000 rows created.
SQL> create index t_ix on t (n);
Index created.
SQL> exec dbms_stats.gather_table_stats(user, 't', cascade => true)
PL/SQL procedure successfully completed.
SQL> explain plan for
2 select max(c) from t where n =1;
Explained.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 2966233522
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 1004 | 1574 (1)| 00:00:19 |
| 1 | SORT AGGREGATE | | 1 | 1004 | | |
|* 2 | TABLE ACCESS FULL| T | 50000 | 47M| 1574 (1)| 00:00:19 |
Predicate Information (identified by operation id):
PLAN_TABLE_OUTPUT
2 - filter("N"=1)
14 rows selected.
SQL> explain plan for
2 select /*+ index (t t_ix) */ max(c) from t where n = 1;
Explained.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 3231292748
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 1004 | 7244 (1)| 00:01:27 |
| 1 | SORT AGGREGATE | | 1 | 1004 | | |
| 2 | TABLE ACCESS BY INDEX ROWID| T | 50000 | 47M| 7244 (1)| 00:01:27 |
|* 3 | INDEX RANGE SCAN | T_IX | 50000 | | 98 (0)| 00:00:02 |
PLAN_TABLE_OUTPUT
Predicate Information (identified by operation id):
3 - access("N"=1)
15 rows selected. -
Window Memory usage even after closing windows
I've included links to a test app that does nothing but
launch a window, play a sound, close window / repeat.
When application launches it uses about 20mb of memory. When
you click on the only button, it will launch a secondary window
that will simply play a wav file. (I set the volume low but you may
want to mute it :D)
After launching and closing the window several times the
memory usage goes up considerably and *never* falls back a
significant %. (I got it to about 100MB before I decided to quit
trying to increase the memory usage. Right now it's been running
w/o any user interaction since opening about 10 windows and it's
fairly stable at around 61MB (although that appears to be
increasing w/o user interaction).
Does anyone know of any methods I can use to ensure that the
memory consumed by secondary windows does not just persist forever
even after closing the window? Is there something I'm doing wrong
here?
Example Code:
http://www.vf-server.com/air/memorytest.air
(AIR)
http://www.vf-server.com/air/memorytest.zip
(source ZIP)
Note: When I *minimize* the window it looks like garbage
collection is forced and app drops back to 11MB (on restore back to
19mb).
Edit: note in your task manager, application appears as
JBTest.exeYou can call System.gc() to force the garbage collector to
run.
Try removing the event listeners when they aren't needed
anymore. I think it is more difficult for the gc to cleanup objects
when there are host objects (like Sound) refering to JavaScript
objects and JavaScript objects refering to host objects, so you
need to be especially careful about those. It SHOULD clean them up
eventually, but it may take longer for it to figure out that those
objects are no longer in use.
You might also clear the secondaryWindow reference in the
parent document when the window closes. That reference might retard
garbage collection, too. -
Skype 6.18 crash even after exception provided for EAF
Hi Support,
We have deployed EMET 5 to our 50 users. We observed that some Windows 7 x64 and Windows 8.1 x64 are facing issues with Skype. We observed that EMET is causing exe to stop. Uninstalling EMET resolve the problem and EMET 4.1 update 1 works fine with Skype
6.18.32.106 version. Our group policy already specify EAF, EAF+ protection are disabled for Skype.
It does not work even after downgrading Skype to any lower version. Can you please suggest best way to resolve the problem?
1. Upgrade EMET 5 from version 4.1 update 1
2. Upgrade Skype from version 6.14 to 6.18
3. Quit Skype and Restart applicationSkype throw below error in event viewer
Faulting application name: Skype.exe, version: 6.18.60.106, time stamp: 0x53d154b0
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x53159a86
Exception code: 0xe06d7363
Fault offset: 0x0000c42d
Faulting process id: 0x31ec
Faulting application start time: 0x01cfb0a510194fc2
Faulting application path: C:\Program Files (x86)\Skype\Phone\Skype.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 4ea3c722-1c98-11e4-9ab4-f8b156c39b2b
EMET error:
Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: Skype.exe
P2: 6.18.60.106
P3: 53d154b0
P4: KERNELBASE.dll
P5: 6.1.7601.18409
P6: 53159a86
P7: 000006a6
P8: 0000c42d
P9:
P10:
Attached files:
These files may be available here:
C:\Users\username\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Skype.exe_7e29ea3d4cc8a8552ac2bf4a961b6348a4ac310_314b936e
Analysis symbol:
Rechecking for solution: 0
Report Id: 0a6699c2-1c98-11e4-9ab4-f8b156c39b2b
Report Status: 0
EMET detected DEP mitigation and will close the application: Skype.exe
DEP check failed:
Application : C:\Program Files (x86)\Skype\Phone\Skype.exe
User Name :
Session ID : 1
PID : 0x2FC8 (12232)
TID : 0x2560 (9568)
Module : N/A
Mod Base : 0x00000000
Mod Address : 0x00FAAD78
Mem Address : 0x00FAAD78 -
My PW in iTues will not work. Even after changing it. Window pops up and ask for PW. Over and over.
I would be worried about that - but it may turn out to be nothing.
Since you already changed your password, you're probably OK - but I recommend looking at your purchase history to see if there's any unauthorized purchases (use iTunes on your Mac or PC to go to the itunes store, then click your account in the upper-left or upper-right corner). If there are any new purchases that you didn't make, click the button to report problem (and if they happened after you reset your password, you should immediately change your password again).
I think sometimes when you change your password and verifiy your credit card info, it can "reset" the warnings - so it may actually have been you logging in to your own account that caused you to get the warning. But I'm not absolutely sure of that, so it's best to check your purchase history (and reset your password if necessary - but you already did that).
I also recommend turning on "two-step verification" (but Apple makes you wait a few days after changing your password to turn that on). With "two-step verification", Apple will send you a text message with a 4-digit code the 1st time you try to buy something from a new computer - since a hacker won't have your phone, they won't be able to continue (theoretically). After the 1st time, it goes back to mostly working normally (until the 1st time you try to purchase from another new computer, then you get another text message - so this alerts you to someone, somewhere else, trying to get into your account). -
Cm.jar is working even after deleting the jar from Server
Hi,
To update the environment with the new changes we had manually copied the cm.jar into the respective folders but due to some class errors Deployment was not successful,So as a matter of trial we had deleted cm.jar from the respective folders and then we had ran the initialsetup,
Strange thing what we have observed is that all the custom logic which was initially deployed through cm.jar was still exisiting in the applicationserver and are getting executed smoothly
This is the process what we have followed
Method 1:
1) Stop server
2)
Copy cm.jar to SPLBASE/etc/conf/root/WEB-INF/lib
Copy cm.jar to SPLBASE/etc/conf/XAI-APP/WEB-INF/lib
Copy cm.jar to SPLBASE/ splapp/businessapp
Copy cm.jar to SPLBASE/ splapp/ standalone/lib
3) Run InitialSetup
4) Start Server
Method 2:
1) Stop server
2) Set Exploded directories to true
3) Initial Setup
4)
Copy cm.jar to SPLBASE/splapp/applications/root/WEB-INF/lib
Copy cm.jar to SPLBASE/ splapp/applications /XAI-APP/WEB-INF/lib
Copy cm.jar to SPLBASE/ splapp/businessapp
Copy cm.jar to SPLBASE/ splapp/ standalone/lib
5) Run InitialSetup
6) Start Server
Method 3:
1) Cm packaging.
Even after removing cm.jar from all places manually my custom code which I deployed initially is working. I could run custom batch and custom algorithm. Very Strange. I am not sure what I missed or where application is referring to.
We want the old code to be removed permanently from server?Can you anyone help?
Thanks
shivaHi Mr Shankar,
Even if you have deleted the cm.jar file from respective location.It do exist in splapp.war file.If you will extract that file you will find the cm.jar file in /splapp/web-inf/lib/cm.jar location.So whenever you will run the initialsetup it will restore the cm.jar.This thing is happening in your case also.So delete the file from splapp.war and rebuild the war.This will solve your issue.
Hope it will work for you.
Regards
sunil sahu -
Execution does not end even after all records updated..
Hi,
I have plsql code like :
declare
begin
for x in ( select .......) loop -- about 4000 times
for y in ( select ............) loop -- about 50 times
end loop;
-- some code goes here to manipulate clob data
-- like creating free temp clobs - use - then free them
-- Update statement that update some table using clob values.
insert into tablex values(sysdate);
commit;
end loop;
end;
Here I can monitor from other window howmany records are inserted into tablex and howmany updated in update statement by...
select count(1) from tablex;
After 50 mins i can see that all records are updated but...
plsql code does not end its execution it continues even after all records are updated..untill i have to kill the session or let be run for long time.. :(
I can not understand why this it is not ending execution..
What could be the problem ...Hi,
Here it is.....
declare
v_text_data TableA.text_data%type;
v_clob clob;
type dummyclob_t is table of clob index by binary_integer;
dummyclob dummyclob_t;
v_str varchar2(255) := 'ddfsajfdkeiueimnrmrrttrtr;trtkltwjkltjiu4i5u43iou43i5u4io54urnmlqwmreqwnrewmnrewmreqwnm,rewqnrewqrewqljlkj';
begin
select data bulk collect into dummyclob from sfdl_clob; -- five rows containing clob data upto 1MB
for x in (select object_id
from TableA
where object_type = 'STDTEXT' ) loop
dbms_lob.createtemporary(v_text_data,TRUE);
for y in (select '<IMG "MFI_7579(@CONTROL=' || ref_id || ',REF_ID=' || ref_id || ').@UDV">' temp_data
from TableB
where object_id = x.object_id) loop
v_text_data := v_text_data ||
case
when trunc(dbms_random.value(0,7)) = 0
then chr(10)
else v_str
end ||
y.temp_data;
end loop;
select text_data into v_clob from TableA where object_id = x.object_id for update;
if v_text_data is not null then
dbms_lob.append(v_clob,v_text_data);
end if;
dbms_lob.append(v_clob,dummyclob(trunc(dbms_random.value(1, 6))));
dbms_lob.freetemporary(v_text_data);
insert into xyz values (sysdate);
commit;
end loop;
end;
Thanks for your time..:)
Rushang. -
I am doing a cover for O.M.G. by usher and it requires 4 to 5 different vocal layers. My first "line" of vocals keeps disappearing even after i save it. So I have to redo everything on the top line. Any help?
For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices.
That all works.
It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now. They are all synced, and all was working just fine.
I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
Thanks for listening,
Melissa -
Acrobat X Pro won't open. Even after a reinstall - what can I do?
My Acrobat X Pro won't open - even after a reinstall. What can I do?
Thanks Jeff - what's strange is that I've been prompted a few times since installation to register the software, so I don't know why it would be doing that if it's already registered.
When prompted, I would follow the links to the registration information page, and then work through the registration process, and then when prompted to enter the serial code it does not accept it. I've tried the serial code that came with the license, as well as the serial codes for the individual products (Illustrator, Photoshop, etc.), and none of those were accepted by the registration form. So "registering to an account which includes your companies information would be sufficient." does not seem to be working for me, unless there is more to "including the companies information" then I've seen in the sign up pages.
To be clear, I'm not fumbling around blindly here, I've done a lot to try and register the product myself and have yet to succeed.
My questions are these (and apologies if this is not directly related to the OT), 1) is there a way to confirm the product is registered, 2) if it is not registered, what specifically do I need to tell the purchasing people to do to make sure it is registered properly, and 3) after following the process here: http://helpx.adobe.com/creative-suite/kb/acrobat-failed-launch-30-days.html - does this fix the Acrobat issue for good, or will I have to repeat this process in another 30 days? Does lack of registration potentially affect other products in the Web and Design Creative Suite?
Thanks again for the assistance, I'm hoping to get enough information to be able to give our IT folks a clear resolution to the registration issue. -
In F110 the payment document is calculating discount even after the
Hi,
I am executing F110 and in the proposal list the documents are calculating discount although the payment date is much beyond the discount allowable period.
For example - We are having a payment term which says if payment is made withing 14 days then 5% discount is allowed and after that no discount.
But when we execute payment program(F110), it is calculating discount even after the due date. whereas if we pay to any vendor through manually using tranaction code - F-53, it is working fine and calculaing cash discount accordingly.
But in F110 it in not. Can anybody help me on this.
Earlist reply will be highly appreciated.
With regards,
Sree.Hi Dinakar,
Firstly i am using a payment term which is having the following condition-
- Within 14 days 3 % cash discount
- Within 45 days Due net
Also i gave the run date, posting date and document date as 04/15/2008.
The Invoices were gererated on 03/30/2008. So after 14 days it should not calculate discount, but it is calculating that.
Please let me know if i can help you by providing any other details.
Regards,
sree.
Maybe you are looking for
-
Term-Driven Page with Friendly URL doesn't work with a page in another Site Collection
Hi all, It appears that the Term-Driven Page with Friendly URL does not work when it is referencing a page in another Site Collection. When I set my Managed Navigation to use a term that points to another Site Collection page, the link shows in my na
-
Staying connected to the internet
Hi, We just got a new iMac, love it. However we are having a problem keeping the ethernet connection connected. Every 20 min's or so, we get a window to prompt us to either disconnect or stay connected. How do we change this to stay connected with ou
-
AWR Snapshots Required When Database is in Restricted Mode
We are planning to run some processes, but want the database to be in restricted mode to keep "normal" users out. But we also need to monitor performance on the system during that. Normally however, scheduled jobs such as this don't run in restricted
-
Leap, tacacs+/radius fixed ip (pool)
dear, Is there a way while using leap & mobile ip technology to make it happen when a users becomes associated to an ap (proxy mobile) he always obtains an ip adres from a predefined pool or just one personal ip-adress which we define on our tacacs+/
-
Hi, guys I have a problem to write a file using PrintWriter. What I want to do is my program takes file name and path, if the same name file exist in the folder, data ppended at the end of the existing file, otherwise it generates the new file. File