Use of sort_area_size and sort_area_retained_size
Hi,
can u please say me what is the use of sort_area_size and sort_area_retained_size
and where to apply this parameter and will theses parameters will help in executing queries faster?
Thanks
regards
Sathish
Hello Sathish,
sort_area_size specifies the maximum amount of "memory" oracle will use for a sort. after the sort is complete oracle releases all of the memory allocated for the sort
If you have large sorts, and the memory allocated for sorts is low, then temporary tablespace would be used for sorting and therefore result in io, which means performance degradation. You might require more sort areas for inserts and updates of bitmap indexes
sort_area_retained_size specifies the amount of memory that would be retained after a sort run completes. This memory is not releases to the operating system
Where to apply these parameters... look at the statspack report and see the sorts on the disk... use of the temporary ts. If I/O for disk-sort is high, you would get benefit of using larger sort-area
yes it would help your queries to run faster... if disk-sorts are taking place
Regards
Sudhanshu
Similar Messages
-
SORT_AREA_SIZE and blob update in plsql?
Can someone please answer the below questions I have.
- The tables t1 and t2 both have around 1.5 million rows.
- Table t1 has PK defined on col1 and col2
- Table t2 has unique index defined on col1 and col2
1) Does the below query use the SORT_AREA_SIZE while running the query?
2) The below query when explain planned uses NESTED LOOP and FULL TABLE SCAN on table2. I am currently running the below in a cursor for loop to update a blob column on table1. It is taking long time? What are the alternative ways I can tune this query or tune PLSQL to update blob columns in table t1.
<pre>
SELECT rownum as rec, t1.col1, t1.col2, t2.col1, t2.col2,
replace(replace(t2.col1, 'str1','strn'), 'str2','strn')
FROM table1 t1, table2 t2
where t1.col1 = t2.col1
and t1.col2 = t2.col2
</pre>
<pre>
<b>EXPLAIN PLAN OUTPUT</b>
OPERATION OPTIONS OBJECT_NAME POSITION
SELECT STATEMENT 408
COUNT 1
NESTED LOOPS 1
TABLE ACCESS FULL TABLE2 1
INDEX UNIQUE SCAN SYS_C000001 2
</pre>It's a little hard to read your post. If you use any HTML tags then all bbcode tags are ignored - perhaps you included some HTML tags when you posted?
Anyway, the AREASIZE settings depend on your Oracle version. From 9i onwards they are not used if workarea_size_policy is set to AUTO, in which case a percentage of pga_aggregate_target is used instead. -
SORT_AREA_SIZE and HASH_AREA_SIZE
Guys,
Could someone explain the purpose of altering the SORT_AREA_SIZE and HASH_AREA_SIZE database parameters?
I had come across the following lines of code in one of my new application's package.
ALTER SESSION SET WORKAREA_SIZE_POLICY = MANUAL;
ALTER SESSION SET SORT_AREA_SIZE =xxx;
ALTER SESSION SET HASH_AREA_SIZE =yyy;
Thanks,
BhagatThank you Sankar!
I've to perform ETL operation whereby it extracts data from a remote datasource,does sorting and loads into our database which involves huge amount of hash and sort.
So,I'm wondering how to dynamically set the value of either SORT_AREA_SIZE or HASH_AREA_SIZE or PGA_AGGREGATE_TARGET.Since our database is in 9i,I understand that adjusting the PGA_AGGREGATE_TARGET parameter would do the job for me.
I've read in an article that
The DBA may wish to consider dynamically changing the pga_aggregate_target parameter when any one of the following conditions are true:
Whenever the value of the v$sysstat statistic “estimated PGA memory for one-pass” exceeds pga_aggregate_target, the pga_aggregate_target should be increased.
==>How much should be the increase?
1 select name,value
2 from
3 v$pgastat
4 order by
5* value desc
SQL> /
NAME VALUE
bytes processed 1.1742E+10
aggregate PGA target parameter 25165824
maximum PGA allocated 20128768
total PGA allocated 17669120
aggregate PGA auto target 12653568
total PGA inuse 11108352
global memory bound 1257472
maximum PGA used for auto workareas 688128
cache hit percentage 100
total freeable PGA memory 0
PGA memory freed back to OS 0
NAME VALUE
maximum PGA used for manual workareas 0
over allocation count 0
extra bytes read/written 0
total PGA used for manual workareas 0
total PGA used for auto workareas 0
SQL> select name c1,cnt c2,decode(total, 0, 0, round(cnt*100/total)) c3
2 from
3 (
4 select name,value cnt,(sum(value) over ()) total
5 from
6 v$sysstat
7 where
8 name like 'workarea exec%'
9 );
Workarea
Profile Count Percentage
workarea executions - optimal 1,098,557 ###
workarea executions - onepass 0 0
workarea executions - multipass 0 0If I've an Oracle job which runs every minute or so to check the specified values and dynamically make adjustments to pga_aggregate_target,would it be the optimal way to go about?
Many Thanks !!!!
Regards,
Bhagat
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -
How we will use these Job_open and Job_submit job_close??
Hi Experts,
i am new in Developement, i need one help here my problem is
I have one issue which is a report here i am getting the data into internal table, that data fetching i want to schedule it in background job..
can any body tell me how can i use the JOB_OPEN and JOB_SUBMIT function modules....
plz provide any example..
Thanks in Advance,
Venkat NHi,
Here is the sample program
*Submit report as job(i.e. in background)
data: jobname like tbtcjob-jobname value
' TRANSFER TRANSLATION'.
data: jobcount like tbtcjob-jobcount,
host like msxxlist-host.
data: begin of starttime.
include structure tbtcstrt.
data: end of starttime.
data: starttimeimmediate like btch0000-char1.
Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-uzeit
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
"error processing
endif.
Insert process into job
SUBMIT zreport and return
with p_param1 = 'value'
with p_param2 = 'value'
user sy-uname
via job jobname
number jobcount.
if sy-subrc > 0.
"error processing
endif.
Close job
starttime-sdlstrtdt = sy-datum + 1.
starttime-sdlstrttm = '220000'.
call function 'JOB_CLOSE'
exporting
event_id = starttime-eventid
event_param = starttime-eventparm
event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
laststrtdt = starttime-laststrtdt
laststrttm = starttime-laststrttm
prddays = 1
prdhours = 0
prdmins = 0
prdmonths = 0
prdweeks = 0
sdlstrtdt = starttime-sdlstrtdt
sdlstrttm = starttime-sdlstrttm
strtimmed = starttimeimmediate
targetsystem = host
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
if sy-subrc eq 0.
"error processing
endif.
Regards
Sudheer -
I'm using matchbook pro and I'm unable to find iPhoto after upgrading to Maverick os
I'm using matchbook pro and I'm unable to find iPhoto after upgrading to Maverick os
Open the Mac App Store application and see if iPhoto is under your "Purchases" tab.
Clinton -
Help using multiple iphones and ipods on itunes
Okay, is there any simple way to use multiple apple products thru itunes. I can log in on my account and sync my iphone/ipod, then I log out and log back in with my daughter's account info. I plug her itouch in and it wants to read all of my apps(some apps we both have on our devices). Have problems with music sharing as well. Still a PC user. Get very frustrated with itunes. spend way too much time trying to do things that should be simple. please help! Thank you!
Are you using method 1 with different windows user accounts?
http://support.apple.com/kb/HT1495
Sounds like you are currently using method 2 and not happy with it. -
I want to buy a new apple tv but it used hdmi cables and my house is only wired for analog. Is there any way I can use the apple tv on analog cables?
Welcome to the Apple Community.
It's do-able, but I don't think it's a great idea.
DVI
Some users with DVI have managed to get their TV's to work with DVI-HDMI cables. DVI carries no audio, so alternative connections need to be explored to enable audio. DVI doesn't necessarily support HDCP as well as other standards used by HDMI (which may or may not be an issue)
Analogue
There are hardware converters that will convert HDMI to various other types of output, however there are some issues with doing so that you should be aware of.
HDCP
HDCP compliant converters will not allow you to watch HDCP protected content such as that from the iTunes Store. Non compliant converters exist but we cannot discuss them under the Terms of Use for these communities.
Resolution and aspect ratio
I'm not aware of any converters that will scale the output from the Apple TV, any TV or projector which is used will need to be widescreen and support resolutions of 720p (Apple TV 2), 720p/1080p (Apple TV 3)
DAC
DAC (Example Only - Not a recommendation or suggestion that this is suitable in your circumstances) -
I have an iPad2 and a new MacBook running Mountain Lion. Both Devices use the same Apple ID which is a Hotmail eMail id. Can I create a new iCloud eMail Id and use iCloud eMail and continue to use my current Hotmail Id for my Apple Id for iTunes, iCloud.
Note, I will use both Hotmail and iCloud eMail.Welcome to the Apple Community.
In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account") -
I'm using Time Machine and a LaCie external drive to backup. I also have a 8 GB LaCie flash drive I want to use for small jobs. If I plug the LaCie flash drive in, is my Mac going to think it is the LaCie external drive and start trying to backup?
no.
-
I have an older macbook pro and the hard drive is starting to go (making loud noises). i tried to back up to an external hard drive (my passport essential se) using time machine and the computer keeps shutting down. the same thing happens when just trying to save my pictures from iphoto to a flash drive. suggestions to complete backup please?
Sounds like you'll need to access that drive while it is not booted. You need to replace it anyway, so do that, then one way or another (ext enclusure, et), access it and copy files.
If you keep trying to boot it, you might kill it for good and not get your files, so just swap it out first. -
Using Adobe Bridge and iPhoto together
I use Adobe Bridge (and Photoshop) to work on my photos. iPhoto is not an option since I shoot in Camera RAW. I also own an Apple TV and want to store all of my photos in iPhoto so they are available to the rest of my family via Apple TV. Has anyone figured out a way to do image manipulation first in Bridge & Photoshop and then have them sent (or later updated) in iPhoto in an automated fashion?
Conceptually, every time I add or change a photo in Bridge or Photoshop, I'd like to convert it to JPG, and add or modify the image in iPhoto.Also make sure PS's File handing preferences "Macimize PSD and PSB File Compatibility" is set to Always and that there are no alpha channels in the file. An alpha channel will cause the black image that you're referring to.
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file. -
Installing Adobe Photoshop 10. Using Windows 7 and IIE. Get message "error:1"
Installing Adobe Photoshop 10. Using Windows 7 and IE. Gt message "error:1"
Not sure what CS3 is. Attached is a screen shot of the error message I get when trying to use Photoshot Elements 10.
Looks like I can't attach a Word or PDF document or paste an immage.
This forum may not be very user friendly.
Let mehttp:// know if there is another way to communicate.
Thanks,
Phil
<Removed by Moderator> -
How can I create an csv/excel file using pl/sql and then sending that file
How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.968776 wrote:
How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.You are trying to do it at a wrong place..
Whay do you want database (pl/sql) code to do these things?
Anyhow, you may be interested in :
{message:id=9360007}
{message:id=9984244} -
How do I get iCal on my Mac to sync with my iphone 4.
It used to work and now it doesn't.
I am not on MobileMe or the Cloud.
Any suggestions will be most appreciated.Hi Arezzo
I'm asuming you are using iTunes then to sync? this can be done over WiFi or the USB cable.
Review your setting for the calendar sync once iTunes is open and your iPhone is connected. Make sure your Calendars are selected to sync that you need. By default all calendars will.
So the option i have for you is to reset the sync service and this will reset those settings in iTunes. Meaning that you will have to switch them on again in iTunes to sync. But this mostly clears unresolved sync issues.
Please do yourself a favour and hit backup in iTunes before doing any testing. iTunes will then keep a local backup of your iPhone in case of any data loss.
{added}
open Terminal from your Utilities folder and paste this command in to reset. OS X 10.6 - 10.8
/System/Library/Frameworks/SyncServices.framework/Versions/A/Resources/resetsync .pl full [press Enter]
if it prompts for a password, just type your password and hit [Enter] again.
Open iTunes then set your syncs up and it should then carry on again.
Message was edited by: WaldoWTM -
i accidentally uploaded songs from cds to the wrong itunes library. i would like to move those songs to the regular itunes library that i use to purchase and download music, since my ipod cant sync to both libraries. how can i do this? please advise? thank you.
See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
https://discussions.apple.com/thread/2452022?start=0&tstart=0
B-rock
Maybe you are looking for
-
Is Windows7 Upgrade Possible?
A friend of mine has a Dell computer with an Intel Core 2 Duo Mobile Model T5600 mainboard. Right now it's running Vista, and he wants to upgrade to Windows 7. Is that possible with this mainboard? Thanks for your help.... Rontiara
-
Hello, I received an XML file from an end-user when she emailed in our online fillable form. The thing is that it's designed to send a PDF and in fact I get PDF's from everyone who uses it except this time from this one end-user. Any thoughts on why
-
Linked image in mail signature?
Hello all, I'm trying to create a link between a logo in my e-mail signature and our website. Somehow this doesn't seem to be an option in Apple Mail. Who can help? Thanks! Lianne Message was edited by: Lianne Alink
-
Dear All, We have an issue with one user Browser Settings. User has IE 9 and CRM 7 EHP2 From an outbound email Activity , user is trying to open an attachment by clicking on attachment , System open a NEW Tab but nothing happens after that. From othe
-
Connection/Network encryption in Oracle Standard Edition 11gR2
Does the Oracle 11gR2 Standard Edition support any network encryption for SQL*Plus or JDBC thin clients? I don't have "Oracle Advanced Security" installed, is this required to support any encryption of data send across a network?