How to lock the statistics in column level.
Hi All, i am using 10.2.0.1.0 version of oracle.
I have gathered freuency histogram manually on one of my column of a table to provide more information to optimizer for better calculation of cardinality.
Now i have my weekend job runs for gathering stats on schema level with method_opt as 'For all column size repeat'. But i dont want the stats of above column to be overridden by the stats job. I dont want to lock the statistics of whole table, but i just want to lock the column level stats for this table.
how the above can be achieved?
Below is the details.
Code for manual histogram , i have eliminated many buckets purposely, as there are 194 buckets.
DECLARE
m_distcnt NUMBER := 916714; -- num_distinct (As it is there in dba_tab_columns)
m_density NUMBER := 0.00000109031397771616; -- density (As it is there in dba_tab_columns)
m_nullcnt NUMBER := 0; -- num_nulls (As it is there in dba_tab_columns)
m_avgclen NUMBER := 8; -- avg_col_len (As it is there in dba_tab_columns)
srec dbms_stats.statrec;
n_array dbms_stats.numarray;
BEGIN
srec.epc := 3; -- no of end points
n_array := dbms_stats.numarray(3870 ,
3891 ,
3945
srec.bkvals := dbms_stats.numarray(25000 ,
55000 ,
100000 ,
dbms_stats.prepare_column_values(srec, n_array);
dbms_stats.set_column_stats('Schema1', 'USERS_HIST_TEST', 'COMPANYPK',
distcnt => m_distcnt,
density => m_density,
nullcnt => m_nullcnt,
srec => srec,
avgclen => m_avgclen,
force => TRUE);
END;
-- Weekend job which will override above histogram
DBMS_STATS.GATHER_SCHEMA_STATS (
ownname => 'Schema1',
estimate_percent => dbms_stats.auto_sample_size,
block_sample => FALSE,
method_opt => 'FOR ALL COLUMNS SIZE REPEAT',
DEGREE => dbms_stats.default_degree,
granularity => 'DEFAULT',
CASCADE => TRUE,
options => 'GATHER STALE'
Edited by: 930254 on Jul 4, 2012 9:08 AM
Pl do not post duplicate threads - How to lock the statistics in column level.
Similar Messages
-
How to lock the Printer of LaserJet Pro 500 Color MFP m570dw
how to lock the Printer of LaserJet Pro 500 Color MFP m570dw
You can set a control panel lock security level and password for your HP LaserJet series printer. To lock your printer, follow below link:
http://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-bpl03612 -
How to lock sap users in os level
Dear consultants,
how to lock the sap users in OS level.please tell me any one.Hi Pradeep,
The table is usr02. The command is as below:
update <schema>.usr02 set uflag=128;
in case you need to mention any particular user to be locked, mention in the where clause.
Before using this command, use the select statement to check the current status of the users.
Regards,
Meenu Hans -
How to find the number of columns in an internal table DYNAMICALLY ?
Hi,
How to find the number of columns in an internal table DYNAMICALLY ?
Thanks and Regards,
saleem.Hi,
you can find the number of columns and their order using
the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-repid
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = sy-repid
changing
ct_fieldcat = IT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif
now describe your fieldcat . and find no of columns.
and their order also..
regards
vijay -
How to wrap the text in column headers?
Hi Friends,
Can anyone please suggest how to wrap the text in column headers of a Java WebDynpro table?
I believe that caption is the only UI element that a column header can have and it does not allow wrapping of the text.
My original requirement is as follows,
In a table I need to dynamically set the width of the columns according to the width configured by the user in some other view. All the columns of the table are dynamically rendered.
Now what happens is when the user sets the width of the column to a rather low value, say 15 pixels, then the column is displayed like
Supplier Catalog Name
Sheila
Catalog
Name
Dropdown
As you can see it looks rather odd.
Supplier Catalog Name is the header of the column and I use IWDCaption for header.
Sheila Catalog Name Dropdown is the value of a particular row at the specified column. I am using a TextView as the TableCellEditor.
I think what is happening here is that the framework wraps the text in the TextView according to the width specified (15px) and then the column width is extended because it can not accommodate the text (Supplier Catalog Name ) of the column header.
We are using SAP NetWeaver Development Studio 7.0.12 as the IDE.
I searched some forums and many people have suggested using scrollable columns but I don't understand how it will help in wrapping the text in a column header.
Any help would be of great advantage.
Thanks
AmitHi Deepti,
Thanks a lot for the answer but the option that you have specified does not wrap the text. Instead it truncates the text being displayed and only the substring of the text which could be displayed in the given pixels is displayed.
I need to show the whole text wrapped (Meaning if the width of the column is not sufficient then the text goes into the next line).
Ayyapparaj,
Thanks to you too for an helpful answer. It seems that the Netweaver has finally come up with a way to wrap the text in the column headers but as Manoj pointed out, I do not see the property headerTextWrapping for a table column, Can you please specify which version of netweaver supports it?
We are using SAP NetWeaver Development Studio 7.0.12 as the IDE.
Thanks
Amit Kapoor -
How to check the current EHP stack level? in SAP
Dear All,
How to check the current EHP stack level? in SAP . i have checked forum before i am posting but still comfused .
same one said SAP_APPL , EA_Appl and SAP _HR is 60n if n=1.2.3.4. if n =1 is enhanced package 1 similarly 2,3,4 .
some one said SAP_BASIS 701,702,703,704 . according ehp1,2,3,4.
Pls check the details and confirm either is ehp1 or ehp4 .
Component version is simply shows SAP ECC 6.0 in system -> status.
Software Component - Release - SP level
SAP_ABA 701 0007
SAP_BASIS 701 0007
PI_BASIS 701 0007
ST-PI 2008_1_700 0003
SAP_BS_FND 701 0008
SAP_BW 701 0007
SAP_AP 700 0021
WEBCUIF 700 0008
SAP_APPL 604 0008
SAP_HR 604 0029
SAP_HRCAR 604 0029
SAP_HRCAT 604 0029
SAP_HRCAU 604 0029
SAP_HRCBE 604 0029
SAP_HRCBR 604 0029
SAP_HRCCA 604 0029
SAP_HRCCH 604 0029
SAP_HRCCL 604 0029
SAP_HRCCN 604 0029
SAP_HRCDE 604 0029
SAP_HRCDK 604 0029
SAP_HRCES 604 0029
SAP_HRCFI 604 0029
SAP_HRCFR 604 0029
SAP_HRCGB 604 0031
SAP_HRCHK 604 0029
SAP_HRCID 604 0029
SAP_HRCIE 604 0029
SAP_HRCIN 604 0029
SAP_HRCIT 604 0029
SAP_HRCJP 604 0029
SAP_HRCKR 604 0029
SAP_HRCMX 604 0029
SAP_HRCMY 604 0029
SAP_HRCNL 604 0029
SAP_HRCNO 604 0029
SAP_HRCNZ 604 0029
SAP_HRCPH 604 0029
SAP_HRCPT 604 0029
SAP_HRCRU 604 0029
SAP_HRCSE 604 0029
SAP_HRCSG 604 0029
SAP_HRCTH 604 0029
SAP_HRCTW 604 0029
SAP_HRCUN 604 0029
SAP_HRCUS 604 0029
SAP_HRCVE 604 0029
SAP_HRCZA 604 0029
SAP_HRGXX 604 0029
SAP_HRRXX 604 0029
EA-IPPE 400 0018
EA-APPL 604 0008
EA-DFPS 600 0018
EA-FINSERV 604 0007
EA-GLTRADE 604 0008
EA-HR 604 0029
EA-HRCAR 604 0029
EA-HRCAT 604 0029
EA-HRCAU 604 0029
EA-HRCBE 604 0029
EA-HRCBR 604 0029
EA-HRCCA 604 0029
EA-HRCCH 604 0029
EA-HRCCN 604 0029
EA-HRCDE 604 0029
EA-HRCDK 604 0029
EA-HRCES 604 0029
EA-HRCFI 604 0029
EA-HRCFR 604 0029
EA-HRCGB 604 0029
EA-HRCHK 604 0029
EA-HRCID 604 0029
EA-HRCIE 604 0029
EA-HRCIN 604 0029
EA-HRCIT 604 0029
EA-HRCJP 604 0029
EA-HRCKR 604 0029
EA-HRCMX 604 0029
EA-HRCMY 604 0029
EA-HRCNL 604 0029
EA-HRCNO 604 0029
EA-HRCNZ 604 0029
EA-HRCPH 604 0029
EA-HRCPT 604 0029
EA-HRCRU 604 0029
EA-HRCSE 604 0029
EA-HRCSG 604 0029
EA-HRCTH 604 0029
EA-HRCTW 604 0029
EA-HRCUN 604 0029
EA-HRCUS 604 0029
EA-HRCVE 604 0029
EA-HRCZA 604 0029
EA-HRGXX 604 0029
EA-HRRXX 604 0029
EA-PS 604 0007
EA-RETAIL 604 0007
FINBASIS 604 0008
ECC-DIMP 600 0018
ERECRUIT 604 0008
FI-CA 604 0008
FI-CAX 604 0007
INSURANCE 600 0018
IS-CWM 600 0018
IS-H 600 0024
IS-M 600 0018
IS-OIL 600 0018
IS-PS-CA 604 0007
IS-UT 600 0018
LSOFE 600 0018
SEM-BW 604 0008
ST-A/PI 01M_ECC600 0001
Regards
Edited by: satheesh0812 on Nov 17, 2011 7:57 AMHi Sateesh,
SAP_ABA 701 0007
SAP_BASIS 701 0007
PI_BASIS 701 0007
ST-PI 2008_1_700 0003
SAP_BS_FND 701 0008
SAP_BW 701 0007
SAP_AP 700 0021
WEBCUIF 700 0008
SAP_APPL 604 0008
Based on the component information provided by you, I can conclude that your system is ECC 6.0 EHP4.
EHP4 is derived from your component SAP_APPL 604.
In addition to this your EHP4 system has NW stack on NW 7.0 EHP1.
Hence your system is ECC 6.0 EHP4 with NW 7.0 EHP1.
Hope this answers your query.
Regards,
Deepak Kori -
How to change the "name of column" property of an text item in runtime?
How to change the "name of column" property of an text item in runtime?
I look the properties of items in help and found nothing about this!
It's possible?Hi,
an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
First create block and add items
The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
Set into items the column name property to col1 , col2 ...
At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
in this way you can change the source of column value.
Caution because if you change value type from varchar2 to date you must cast date into varchar2.
May be that this way is valid only for view data not for insert-update, i don't remember.
bye
Message was edited by:
Killernero -
dear guys how can i make like a off line Encarta encyclopedia and basic screen settings and how to lock the documents in the entire data in visual studio.
thank you.
Million
GetuDave,
I will +1 Pixelan's products. They are great, simple, and have about the best support that I know of. When you explore, say Pixelan's SpiceMaster, dig deeply. Things appear rather mundane, on the surface, but there is so very much power lurking, just below the surface. I could almost imagine a 1000 page manual to cover every possible aspect of that program... Every time that I use it, I learn something new, and wonderful.
Good luck,
Hunt -
How to improve the performance in AM level
Hi,
I am using Jdeveloper 11.1.1.2.0 and weblogic server 10.3.2.
How to improve the performance in AM level.
Actually i have approx 10 lacs Data but when search the record then it is taking more time.
I have following the link..
http://www.gebs.ro/blog/oracle/adf-view-object-performance-tuning-analysis/
but there is no effect in the performance level for seaching.
So please help me ..
Thanks
AnupHi Timo,
In search page,i m giving empId and click on search button then to execute query it is taking more time.I have override the VOImpl executeQuery(). then it is taking more time
@Override
public void executeQuery() {
setNamedWhereClauseParam("bind_draft", "D");
setNamedWhereClauseParam("bind_complete","%");
setNamedWhereClauseParam("bind_reject","%");
setNamedWhereClauseParam("bind_approve","A");
setNamedWhereClauseParam("bind_review","R");
super.executeQuery();
this method super.executeQuery() is calling and after 5 minutes heap space is comming on cosole as well as page also.
Thanks
Anup -
How to check the Statistics generated for a table through DBMS_STATS.
Hi,
How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
Please let me know.
Thanks !
Regards,
RajasekharRajasekhar wrote:
Hi,
How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
Please let me know.
Thanks !
Regards,
Rajasekharquery ALL_TABLES -
How to find the header and item level status of a CRM contract ?
Hi,
Few questions
A. How to find the header and item level status of a CRM contract ? My req is to select all the contract line items which are in CLOSED status.
B. How to get the BPs associated with a contract ?
Anyone have the list of CRM tables and the relation amongst them. Please mail me in [email protected]CRMD_ORDERADM_H Contains the Header Information for a Business Transaction.
Note:
1. It doesnt store the Business Partner
responsible for the transaction. To
get the Partner No, link it with
CRM_ORDER_INDEX.
2. This table can be used for search
based on the Object Id(Business
Transaction No).
CRMD_CUSTOMER_H Additional Site Details at the Header Level of a Business Transaction
CRMD_LINK Transaction GUID set for all the Business Transactions
CRMD_ORDER_INDEX Contains Header as well as Item details for a Business Transaction.
Note:
1. It doesnt store the Business
Transaction No (Object ID).
To get the Business Transaction No
link the table with
CRMD_ORDERADM_H
2. This table can be used for search
based on the Partner No
CRMD_ORDERADM_I Stores the Item information for a Business Transaction. The scenarios where we have a Contract Header and within contract we have Line Items for the contract, this table can be useful.
E.g. Service Contracts
CRMD_CUSTOMER_I Additional Site Details at the Item Level of a Service Contract
Pl.reward points....... -
How to Increase the Rows and Columns Size of Bex Query in Enterprise Portal of SAP 7.3
Dear All,
Please let me know the process how to Increase the Rows and Columns Size of Bex Query in Enterprise Portal of SAP 7.3 .
Currently I am getting Only 4 columns and 10 rows in One Page .And I am getting 1,2 etc tabs for both row and column. So i want to increase the column length more than 100 and row length more than 10000.
Please suggest me a suitable solution to over come this issue.
Please find the Below screen shot.
Thanks
Regards,
SaiDear All,
Please find the attached screen shot.
The report be open with 4 or 5 columns and 5 or 6 rows.
So, please let me know how to increase the length of the table.
Do the needful for me to over come this issue.
Thanks
Regards,
Sai. -
How to change the name of column in ActionScript?
I possibly know how to change the name of the column in DataGrid using mxml but dont know how to change the name of column in DataGrid using ActionScript.
var newDataGrid:DataGrid=new DataGrid();
newDataGrid.dataProvider=arrayCollection():
It takes the default names from arraycollection but I wanted to give any column names which I want through ActionScript.
Please HELP!Give your datacolumn and id. Then set the property for that column through the datacolumn id.
DataGridColumn id="nameDC"
Script:
nameDC.headerText = "Name"; -
Open dataset doesn't lock the file at OS level
Hi,
I have a program, which tries to write a file on application server. Once the file is opened, and while program is writing to the file, if somebody goes at application server and deletes the file, I get a short dump, saying the file doesn't exist.
Why doesn't SAP lock the file at OS level? Why is someone able to delete the file while SAP is processing it? What is to be done to check at OS level, to see if SAP is currently writing?
Thanks,
JuwinI tried what Kesav and Adrian told. I created 2 programs, 1st to create a file and 2nd to move the file.
1st program: [url]http://www.mediafire.com/?gmrn1zyd0t0
2nd program: [url]http://www.mediafire.com/?di2kzzzemkz
Now, I executed the 1st program. While the 1st program is running, I executed the 2nd program. The Open dataset in the 2nd program always gave me sy-subrc as 0. So, I always got the message as ready to be moved. I tried executing the programs from different SAP user IDs as well. Got the same result. So, it seems, Open dataset, doesn't even lock the file at SAP level. I cannot use Open dataset for output in the second program, because that will erase the contents of the file.
I cannot change the program, to execute a system command, because the file is created from a standard program, and we dont want to touch it. -
How to set the data fields column wide at sqlplus
Dear Sir/Madam
I would like to know how to set the data fields column wide at sqlplus
Thanks
Francissee
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm#sthref1131
and the FORMAT clause of the COLUMN command in
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12013.htm#BACHCABF
Maybe you are looking for
-
Getting error while Configure WS policies in JDeveloper 11.1.1.6
Hi All, I am getting this error in JDeveloper IDE for SOA. In the SOA composite I have Web Services--->mediator--->DB Adapter. Next I try and right on the web service component in the composite.xml and select 'Configure WS Policies', I get this below
-
Can't open a website that supports only Internet Explorer
hi, i can't open a website that supports only Internet Explorer (high-q.co.il - which i need badly for my bachlor dagree)!! my mac runs OS X 10.9.2 system operation. i cant open this site with: chrome,opre,firefox,safari... what should i do?
-
Workflow Admin read only responsibility in EBS 11.5.10.2
Hi All, I have a requirement to create a read only workflow administrator. For that I have done the below steps. 1. Created one permission set with Monitor Data. 2. Created one role and one grant for that role with the above selected permission set.
-
Adobe Ps, Ai ad Id CS5 installer fails to initialize
I have recently encountered a problem while working with Ps CS5 that somehow affected the performance of the other Adobe programs on my pc. I uninstalled them all and tried re-installing, but the installer constatly fails to initialize no matter whic
-
Hi, I have posted this before but didn't get many responses for help, so I am going to try again. I have a HP laptop that runs XP Professional. Most every time that I open itunes to download music, or update to the latest version, itunes shuts down u