Name search with and with out case sensitive including * also.
there is an urgent reuirement for name search .
i am having 6 fields all are related to name like name prefix ,firstname, lastname etc. now i want select query so that i can search the person name with case ,with out case sensitive and ' * ' also.
and one more thing
i am having multiple selection for first name,lastname etc.
so i must write select query for >=, = , <= etc also along with ' * ' .
so can any one help me, requirement is urgent.
i cannot add one more field in database.
Hi, I did not understand your problem exactly, but I am sending you an sample query according to my understanding.
select <fields names> from <tablename> where name = '%xxx'.
here % is used for searching for all the names which ends with 'xxx'
If you give some more details briefly then I can try for you.
Similar Messages
-
I want to format my computer and I start to do that but I fondo a copy of the boot folder on the drive, not the recovery drive. I formated and make it case sensitive jornal with a password. Then I put a password in main too. So the drive the entre drive become my recovery drive.So I have two recovery drive I think.I learn almost all the diskutil comando and I don know how to fin it. The disks are not showing the one with the passwords.
Hi Kappy,
Just wondering if you had any advice for my situation . . .
My time machine backup was backing up to a drive that was "Mac OS X Enteded Journaled, Case Sensitive." I had no idea what this meant, or that it would even cause issues.
I took my computer to the Apple store yesterday, and they wiped it clean. When they tried to restore it from the Time Machine backup drive, it would not work. Their guess is that Time Machine cannot restore from a drive that is "case sensitive."
Any thoughts on how I can convert my time machine backup data from a "case sensitive" state, to a "non-case sensitive" state? I've tried to just drag and drop the files from the case sensitive formatted drive to a new drive that I have that is formatted non case sensitive, but I get the following error message:
"The volume has the wrong case sensitivity for a backup"
I just really want my data back - I thought TimeMachine was the way to go (and was supposed to work) but unfortunately it is not.
Any help you can provide would be greatly appreciated.
Thanks, -
Problem with TextareaValidation: TagName is case sensitive (probably in xhtml)
Hi,
I use the spry 1.6 prerelease for a new project and i really
like it.
I encountered a small problem:
i have this html (snippets)
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com.spry"
xml:lang="de">
<span
id="spryDeliveryValues"><textareaname="delivery_values"
id="delivery_values" cols="3000" rows="10"
style="width:625px;overflow: scroll; overflow-y: scroll;
overflow-x: auto; font-family: lucida console, consolas, courier,
'courier new', 'courier regular', 'courier std',
serif;">123456</textarea>
<span
id="spryDeliveryValuesMaxCharsCounter">32000</span>
<span class="textareaRequiredMsg">Die Eingabe ist
erforderlich!</span> <span
class="textareaMinCharsMsg">Bitte geben Sie mehr Zeichen
ein...</span>
<span class="textareaMaxCharsMsg">Die maximale Anzahl
von Zeichen ist erreicht.</span>
</span>
and a js:
spryDeliveryValues = new
Spry.Widget.ValidationTextarea("spryDeliveryValues", {minChars:50,
maxChars:32000, validateOn:["blur", "change"],
counterType:"chars_remaining",
counterId:"spryDeliveryValuesMaxCharsCounter",
useCharacterMasking:false});
this line of javascript causes an error / execption!!!!!
"this.input undefined"
I debugged it with firebux and found out, that in
.../SpryValidationTextarea.js there is a strange behaviour is here:
Spry.Widget.ValidationTextarea.prototype.attachBehaviors =
function()
if (this.element){
if (this.element.nodeName == "TEXTAREA") {
this.input = this.element;
} else {
this.input =
Spry.Widget.Utils.getFirstChildWithNodeNameAtAnyLevel(this.element,
"TEXTAREA");
when using this function::
Spry.Widget.Utils.getFirstChildWithNodeNameAtAnyLevel =
function(node, nodeName) {
var elements = node.getElementsByTagName(nodeName);
if (elements) {
return elements[0];
return null;
the Problem:
node.getElementsByTagName(nodeName); should retrieve a chiled
with Tagname "TEXTAREA" and it should behave case-insensitive (as
statet in the js documenations). It should retrieve my lower-case
<textarea> - object.
BUT IT WONT...
changing the spry javascript to
Spry.Widget.ValidationTextarea.prototype.attachBehaviors =
function()
if (this.element){
if (this.element.nodeName == "TEXTAREA" ||
this.element.nodeName == "textarea") {
this.input = this.element;
} else {
this.input =
Spry.Widget.Utils.getFirstChildWithNodeNameAtAnyLevel(this.element,
"TEXTAREA");
Spry.Widget.Utils.getFirstChildWithNodeNameAtAnyLevel =
function(node, nodeName) {
// jok 20090123 22:15: despite the jaavascript specifitaion,
getElementsByTagName is CASE-SENSITIVE (firefox 3.0.5 WinXP SP2)
var elements =
node.getElementsByTagName(nodeName.toLowerCase());
if (elements && elements.length > 0) {
return elements[0];
elements =
node.getElementsByTagName(nodeName.toUpperCase());
if (elements && elements.length > 0) {
return elements[0];
return null;
works fine for me.
Any idea, why this behaviour does occour? I googled around
for several hours, but did not find any hint.
Is it possible,, that the error occours only when using xhtml
/ strict?
Many thanks for your help.
Joachim<textareaname="delivery_values"
should be
<textarea name="delivery_values" -
Table and Primary Key Case Sensitive in Automated Row Fetch
Why are the table and primary key fields case sensitive in the Automated Row Fetch process? I'm debugging an error in this process and I'm not sure what the case should be.
Russ - It's a defect of sorts. Use upper case in the process definition. I don't think these processes will work with tables or columns whose names are not known to the database as upper-case values, i.e., defined using double-quoted non-upper case.
Scott -
How to retrieve column names in a query in a case sensitive way
Given a query, I want to extract all the column names/aliases in the query in a case-sensitive way.
When I use dbms_sql.describe_columns() or java.sql.ResultSetMetaData classes getColumnName() or getColumnLabel()
it returns the columns name ONLY in Upper case.
My application needs to extract the column names in the same case as it appears in the query string.
Is there any API to get this without parsing the SQL query string?
Thanks
PS: The dbms_sql.describe_columns() returns the column name in upper case.
declare
IS
l_column_recs DBMS_SQL.DESC_TAB;
l_cur NUMBER;
l_column_count NUMBER;
BEGIN
l_cur := dbms_sql.open_cursor;
dbms_sql.parse(l_cur, 'select target_type from targets', dbms_sql.NATIVE);
dbms_sql.describe_columns(l_cur, l_column_count, l_column_recs);
FOR i IN l_column_recs.FIRST..l_column_recs.LAST
LOOP
dbms_output.put_line(l_column_recs(i).col_name);
end loop;
end;
/As far as the result set is concerned, though, the column name is in all upper case. If you query the data dictionary, you would see that the TARGET_TYPE column in the TARGETS table is stored in upper case.
The way Oracle works is that column names that are not enclosed in double-quotes are converted to upper case in the data dictionary and elsewhere and then Oracle looks for the column name in the table definition. That is what allows Oracle to have case-insensitive identifiers unless a user specifies case-sensitive identifiers by enclosing the identifier in double quotes.
If you changed the query to be
SELECT target_type as "target_type"
FROM targetsOracle should report the alias in a case sensitive fashion because you've now indicated that the alias should be treated as case sensitive.
Justin -
Numbers: searching for occurences of text (case sensitive)
For biology class, I have a table for dihybrid genetic crosses. After I fill in all the table, I want another table to be able to count the occurrences of each letter combination.
Essentially, what I want to do is tell a cell to count how many occurrences of "BBHH" are in a range of cells. The COUNTIF function is not case sensitive. I tried nesting the EXACT function inside functions like COUNTIF, COUNT, IF, etc., but EXACT doesn't accept a range of cells.
Is there a way to do this (a.k.a. create a function that would have the same effect as a hypothetical case-sensitive COUNTIF)?Matt,
I think you are giving up too soon. Create an additional column that tests each cell for your value using EXACT. Column A has your values, B2 has EXACT("BBHH",A2) and you have filled down as far as you have needed (say B11). In A12 use COUNTIF(B2:B11,"=true") to count matched values. Hide column B. Repeat for each value you want to search for.
Quinn -
Party (with and with out)
Dear all,
I have two quick questions:
1)In few of our scenario's we used party and for some with out party.what is the difference.
In both the cases we used both Business System and service what is the difference.
for B2b Scenario's we did not use any third party adapters like seeburger,we used http,file etc.
What are the case we go for third party adapters.
2)dynamic file naming using var substitution.
suppose my file name should be as follows test_%var1%.xml
under advanced options of file adapter I gave var as var1 what needs to be passed to the reference payload.......,could you let me know
thanks,
SriniBusiness system details are maintained in SLD and is created in SLD .
We need to import the business system into the directory
In case of business service , it is directly created in configuration directory .
Business service is used when client is not ready to share information of his landscape , it is used just to represent client.
http://help.sap.com/saphelp_nwpi711/helpdata/en/48/cfd1d49bf23e49e10000000a421937/frameset.htm
hope this helps
regards
Ninad -
Internal table with and with out work area.
Hi all,
in performance terms which one is better 1) internal table with header line or 2) itab w/o header line and explicit work area for that itab.
which one is better and how?
Thanks in advance.
SAIHai Sai Ram
Internal Table with header Line Improves the Performence
1)
TABLES CUSTOMERS.
Defining an internal table with header line
DATA ALL_CUSTOMERS LIKE CUSTOMERS OCCURS 100
WITH HEADER LINE.
Reading all entries of the database table into the internal table
SELECT * FROM CUSTOMERS INTO TABLE ALL_CUSTOMERS.
2)
Check the following code for the Difference
REPORT ZWRITEDOC LINE-SIZE 124 NO STANDARD PAGE HEADING.
TABLES: DD03L, "
DD04T, "R/3-DD: Textos de los elementos de datos
DD02T. "R/3-DD: Textos de tablas SAP
Tabla temporal con las lineas de cada tabla
DATA: BEGIN OF I_LINEAS OCCURS 100,
LINEA(80),
END OF I_LINEAS.
Tabla con las caracteristicas de la tabla
DATA: BEGIN OF I_TABLA OCCURS 100,
CAMPO(12),
TIPO(4),
LONG(5) TYPE I,
REF(20),
DESCR(40),
END OF I_TABLA.
DATA: D_NOMBRE(80),
D_DESCRIPCION(80).
DATA : BEGIN OF SOURCE OCCURS 1000,
LINE(72),
END OF SOURCE.
PARAMETERS: PROGRAM LIKE SY-REPID DEFAULT SY-REPID.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'GRAB'.
PERFORM GRABAR.
ENDCASE.
START-OF-SELECTION.
SET PF-STATUS 'ZSTATUS1'.
READ REPORT PROGRAM INTO SOURCE.
DATA L_GRAB.
CLEAR L_GRAB.
LOOP AT SOURCE.
translate source to upper case.
IF L_GRAB IS INITIAL.
D_DESCRIPCION = I_LINEAS-LINEA.
ENDIF.
I_LINEAS = SOURCE.
SEARCH I_LINEAS-LINEA FOR 'BEGIN OF'.
IF SY-SUBRC = 0.
SEARCH I_LINEAS-LINEA FOR 'DATA'.
IF SY-SUBRC = 0.
L_GRAB = 'X'.
FREE I_LINEAS.
ENDIF.
ENDIF.
IF L_GRAB = 'X'.
I_LINEAS = SOURCE.
APPEND I_LINEAS.
SEARCH I_LINEAS-LINEA FOR 'END OF'.
IF SY-SUBRC = 0.
CLEAR L_GRAB.
PERFORM PROCESAR_FICHERO.
PERFORM IMPRIMIR.
FREE I_LINEAS.
CLEAR D_DESCRIPCION.
ENDIF.
ENDIF.
SEARCH I_LINEAS-LINEA FOR 'WITH HEADER LINE'.
IF SY-SUBRC = 0.
APPEND I_LINEAS.
PERFORM PROCESAR_FICHERO.
PERFORM IMPRIMIR.
ENDIF.
ENDLOOP.
*& Form GRABAR
Graba el fichero en c:\temp\p.rtf y lo abre con word.
FORM GRABAR.
CALL FUNCTION 'LIST_DOWNLOAD'
EXPORTING
LIST_INDEX = SLIST_INDEX_DEFAULT
METHOD = 'RTF'
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'EXECUTE_WINWORD'
EXPORTING
I_FILE = 'C:\TEMP\P.RTF'
EXCEPTIONS
OTHERS = 1.
ENDFORM. " GRABAR
*& Form PROCESAR_FICHERO
FORM PROCESAR_FICHERO.
DATA: L_AUX1(80),
L_AUX2(80).
FREE I_TABLA.
LOOP AT I_LINEAS.
CLEAR I_TABLA.
translate i_lineas-linea to upper case.
SEARCH I_LINEAS-LINEA FOR 'BEGIN OF'.
IF SY-SUBRC = 0.
SPLIT I_LINEAS-LINEA AT 'BEGIN OF' INTO L_AUX1 D_NOMBRE.
SPLIT D_NOMBRE AT 'OCCURS' INTO D_NOMBRE L_AUX1.
ENDIF.
SEARCH I_LINEAS-LINEA FOR '('.
IF SY-SUBRC = 0.
SPLIT I_LINEAS-LINEA AT '(' INTO L_AUX1 L_AUX2.
CONDENSE L_AUX1.
I_TABLA-CAMPO = L_AUX1.
SPLIT L_AUX2 AT ')' INTO L_AUX1 L_AUX2.
CONDENSE L_AUX1.
IF L_AUX1 CO '0123456789 '.
I_TABLA-LONG = L_AUX1.
ENDIF.
I_TABLA-TIPO = 'CHAR'.
ENDIF.
SEARCH I_LINEAS-LINEA FOR 'LIKE'.
IF SY-SUBRC = 0.
SPLIT I_LINEAS-LINEA AT 'LIKE' INTO L_AUX1 L_AUX2.
CONDENSE L_AUX1.
I_TABLA-CAMPO = L_AUX1.
SPLIT L_AUX2 AT ',' INTO L_AUX1 L_AUX2.
CONDENSE L_AUX1.
I_TABLA-REF = L_AUX1.
ENDIF.
SEARCH I_LINEAS-LINEA FOR 'TYPE'.
IF SY-SUBRC = 0.
SPLIT I_LINEAS-LINEA AT 'TYPE' INTO L_AUX1 L_AUX2.
IF I_TABLA-CAMPO IS INITIAL.
CONDENSE L_AUX1.
I_TABLA-CAMPO = L_AUX1.
ENDIF.
SPLIT L_AUX2 AT ',' INTO L_AUX1 L_AUX2.
CONDENSE L_AUX1.
CASE L_AUX1.
WHEN 'I'.
I_TABLA-TIPO = 'INT'.
I_TABLA-LONG = 4.
WHEN 'C'.
I_TABLA-TIPO = 'CHAR'.
WHEN 'N'.
I_TABLA-TIPO = 'NUMC'.
WHEN 'T'.
I_TABLA-TIPO = 'TIME'.
I_TABLA-LONG = 8.
WHEN OTHERS.
I_TABLA-TIPO = L_AUX1.
ENDCASE.
ENDIF.
SEARCH I_LINEAS-LINEA FOR '"'.
IF SY-SUBRC = 0.
SPLIT I_LINEAS-LINEA AT '"' INTO L_AUX1 L_AUX2.
CONDENSE L_AUX2.
I_TABLA-DESCR = L_AUX2.
ENDIF.
SEARCH I_LINEAS-LINEA FOR 'INCLUDE STRUCTURE'.
IF SY-SUBRC = 0.
SPLIT I_LINEAS-LINEA AT 'INCLUDE STRUCTURE' INTO L_AUX1 L_AUX2.
SPLIT L_AUX2 AT '.' INTO L_AUX1 L_AUX2.
CONDENSE L_AUX1.
I_TABLA-CAMPO = 'INCLUDE STR'.
I_TABLA-REF = L_AUX1.
ENDIF.
SEARCH I_LINEAS-LINEA FOR 'WITH HEADER LINE'.
IF SY-SUBRC = 0.
IF NOT I_LINEAS-LINEA CA '"'.
SPLIT I_LINEAS-LINEA AT 'OCCURS' INTO L_AUX1 L_AUX2.
IF SY-SUBRC = 0.
SPLIT L_AUX1 AT 'LIKE' INTO L_AUX1 L_AUX2.
IF SY-SUBRC = 0.
CONDENSE L_AUX2.
IF NOT L_AUX2 IS INITIAL.
I_TABLA-CAMPO = '...'.
I_TABLA-TIPO = 'TABI'.
I_TABLA-REF = L_AUX2.
SELECT SINGLE * FROM DD02T
WHERE TABNAME = L_AUX2
AND DDLANGUAGE = SY-LANGU.
IF SY-SUBRC = 0.
I_TABLA-TIPO = 'TABE'.
I_TABLA-DESCR = DD02T-DDTEXT.
ENDIF.
IF L_AUX1 CA ':'.
SPLIT L_AUX1 AT 'DATA:' INTO L_AUX1 L_AUX2.
ELSE.
SPLIT L_AUX1 AT 'DATA' INTO L_AUX1 L_AUX2.
ENDIF.
D_NOMBRE = L_AUX2.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
IF NOT I_TABLA-CAMPO IS INITIAL.
APPEND I_TABLA.
ENDIF.
ENDLOOP.
LOOP AT I_TABLA WHERE NOT REF IS INITIAL.
SPLIT I_TABLA-REF AT '-' INTO L_AUX1 L_AUX2.
SELECT SINGLE * FROM DD03L
WHERE TABNAME = L_AUX1
AND FIELDNAME = L_AUX2.
IF SY-SUBRC = 0.
I_TABLA-TIPO = DD03L-DATATYPE.
I_TABLA-LONG = DD03L-INTLEN.
IF I_TABLA-DESCR IS INITIAL.
SELECT SINGLE * FROM DD04T
WHERE ROLLNAME = DD03L-ROLLNAME
AND DDLANGUAGE = SY-LANGU.
IF SY-SUBRC = 0.
I_TABLA-DESCR = DD04T-DDTEXT.
ENDIF.
ENDIF.
MODIFY I_TABLA.
ENDIF.
ENDLOOP.
ENDFORM. " PROCESAR_FICHERO
*& Form IMPRIMIR
FORM IMPRIMIR.
DATA L_AUX(80).
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ULINE AT 1(80).
WRITE: / SY-VLINE,
(76) D_NOMBRE CENTERED,
SY-VLINE.
SPLIT D_DESCRIPCION AT '*' INTO L_AUX D_DESCRIPCION.
WRITE: / SY-VLINE,
(76) D_DESCRIPCION CENTERED,
SY-VLINE.
NEW-LINE.
ULINE AT 1(80).
DETAIL.
FORMAT COLOR OFF.
WRITE: /
SY-VLINE,
(10) 'CAMPO',
SY-VLINE,
(4) 'TIPO',
SY-VLINE,
(4) 'LONG',
SY-VLINE,
(16) 'REFERENCIA',
SY-VLINE,
(30) 'DESCRIPCION',
SY-VLINE.
NEW-LINE.
ULINE AT 1(80).
DETAIL.
LOOP AT I_TABLA.
WRITE: /
SY-VLINE,
(10) I_TABLA-CAMPO,
SY-VLINE,
I_TABLA-TIPO,
SY-VLINE,
(4) I_TABLA-LONG,
SY-VLINE,
(16) I_TABLA-REF,
SY-VLINE,
(30) I_TABLA-DESCR,
SY-VLINE.
ENDLOOP.
NEW-LINE.
ULINE AT 1(80).
SKIP 2.
ENDFORM. " IMPRIMIR
Thanks & regards
Sreeni -
Failover Testing with and with out Broker,flashback.
Hi,
We have a requirement, where we need test the Fail over on production database. Currently we have 11.2.0.3 on Linux as production and same on another machine as Standby. We did not enabled DG Broker and Flashback in any databases. I want below information:
1) How to test failover with out DG Broker and Flashback in any databases?
2) How to enable both DG broker and Flashback and test failover with DG Broker and Flashback?
3) How can i revert back the changes after Failover i.e., i want to see the production as production and standby as standby like earlier.
Thanks a lot in advance.
- RajashekarHello again;
Change parameters as needed for you system
alter system set db_recovery_file_dest_size=20g;
alter system set db_recovery_file_dest=' /u01/app/oracle/fast_recovery_area';
SQL> shutdown immediate
SQL> startup mount
SQL> alter system set db_flashback_retention_target=2880;
System altered.
--flashback to be retained for two days
SQL> alter database flashback on;
Database altered.
SQL> alter database open; ( Not on the Standby side of course )
Test
set linesize 200
SQL> select * from v$flashback_database_log;
Flashback Retention
Days Setting
1 1440
2 2880
3 4320
4 5760
5 7200
6 8640
Best Regards
mseberg -
Outbound with and with out message control
hai All,
In Out bound process when to go with message control and when to go with direct(without message control)?
thanks in advance
PraveenHi,
There are two ways to trigger an outbound idoc, 1. thru message control
and 2. without a message control.
Message control comes into picture if the application document is controlled by a output type.
Suppose a purchase order is created, then to send the purchase order to vendor, with the help of output type, the idoc will be triggered. This output type along with message type will be configured in Partner profiles.
Without message control comes into picture if its a master data like Customer master r Material master. U can use BD10,BD11 etc.,
Regards
Kannaiah -
Linux behavior with and with out -Xmx
I have questions about some strange behavior I am seeing with Java 5.0 on Linux.
First here is the environment:
bq. [~]:> uname -a \\ Linux xxxxxxxxxx 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686 i686 i386 GNU/Linux
bq. [~]:> java -version \\ java version "1.5.0_12" \\ Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04) \\ Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)
I wrote a very simple java program that just starts up and sleeps.
Wait.java:
bq. import java.lang.*; \\ public class Wait{bq. public static void main(String args[]) throws Throwable{bq. Thread.sleep(100000);
I run the program with no memory arguments:
bq. [~]:> java -classpath . Wait & \\ [1] 30841 \\ [~]:> pmap 30841 | tail -1 \\ mapped: 1220332K writeable/private: *1160336K* shared: 49468K
Note that pmap is showing me that it is using over *1 gig* of memory. The java documentation says that if I don't specify a -Xmx that the Max is 64 Megs.
Top however, seems to be showing me that I am only using *10 megs*.
bq. [~]:> top -bp 30841 \\ 08:44:00 up 187 days, 14:20, 12 users, load average: 0.38, 0.69, 0.37 \\ 1 processes: 1 sleeping, 0 running, 0 zombie, 0 stopped \\ CPU states: cpu user nice system irq softirq iowait idle \\ total 13.6% 0.0% 3.9% 0.0% 0.0% 7.0% 75.3% \\ cpu00 16.9% 0.0% 3.7% 0.0% 0.0% 5.6% 73.5% \\ cpu01 11.2% 0.0% 2.8% 0.0% 0.0% 8.4% 77.5% \\ cpu02 11.2% 0.0% 2.8% 0.0% 0.0% 6.5% 79.4% \\ cpu03 15.0% 0.0% 6.6% 0.0% 0.0% 7.5% 70.7% \\ Mem: 4101252k av, 3859028k used, 242224k free, 0k shrd, 145796k buff \\ 2619760k actv, 545440k in_d, 65836k in_c \\ Swap: 2048184k av, 594480k used, 1453704k free 1726032k cached \\ PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND \\ * 30841 xxxxxxx 21 0 10336 10M 6408 S 0.0 0.2 0:00 0 java*
Now I run the program with a 64 meg min and max heap.
bq. [~]:> java -classpath . -Xms64m -Xmx64m Wait & \\ [2] 30894
Then run pmap.
bq. [~]:> pmap 30894 | tail -1 \\ mapped: 256276K writeable/private: *196280K* shared: 49468K
So it looks like it is using *196 megs*. Which is fine because I know that there is overhead on top of the actual Heap size.
Then I run top on the process:
bq. [~]:> top -bp 30894 \\ 08:45:13 up 187 days, 14:21, 12 users, load average: 0.26, 0.58, 0.36 \\ 1 processes: 1 sleeping, 0 running, 0 zombie, 0 stopped \\ CPU states: cpu user nice system irq softirq iowait idle \\ total 8.4% 0.0% 0.4% 0.2% 0.2% 7.4% 83.1% \\ cpu00 8.4% 0.0% 0.0% 0.9% 0.0% 6.5% 84.1% \\ cpu01 7.4% 0.0% 0.0% 0.0% 0.9% 7.4% 84.1% \\ cpu02 4.6% 0.0% 0.0% 0.0% 0.0% 8.4% 86.9% \\ cpu03 13.0% 0.0% 1.8% 0.0% 0.0% 7.4% 77.5% \\ Mem: 4101252k av, 3904008k used, 197244k free, 0k shrd, 146224k buff \\ 2657632k actv, 549712k in_d, 65836k in_c \\ Swap: 2048184k av, 594480k used, 1453704k free 1731604k cached
bq. PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND \\ * 30894 xxxxxxx 21 0 10340 10M 6408 S 0.0 0.2 0:00 3 java*
And it shows me that I am using *10 megs.*
So what is going on here?
1) Why is top and pmap showing diffrent values between the SIZE (top) and the writeable/private (pmap) ?
2) if the value in pmap is correct, why if I don't specify the max heap is it not taking the document default value:
From http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/java.html
bq. <quote> \\ -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. \\ </quote>So some more info.
When I run the process with out -Xmx and run jmap -heap against it, it apear that the max heap is 1 Gig.
bq. [~]:> java -classpath . Wait & \\ [1] 10956
bq. [~]:> jmap -heap 10956 \\ Attaching to process ID 10956, please wait... \\ Debugger attached successfully. \\ Server compiler detected. \\ JVM version is 1.5.0_12-b04 \\ using thread-local object allocation. \\ Parallel GC with 4 thread(s) \\ Heap Configuration: \\ MinHeapFreeRatio = 40 \\ MaxHeapFreeRatio = 70 \\ MaxHeapSize = 1050673152 (1002.0MB) \\ NewSize = 655360 (0.625MB) \\ MaxNewSize = 4294901760 (4095.9375MB) \\ OldSize = 1441792 (1.375MB) \\ NewRatio = 8 \\ SurvivorRatio = 8 \\ PermSize = 16777216 (16.0MB) \\ MaxPermSize = 67108864 (64.0MB) \\ Heap Usage: \\ PS Young Generation \\ Eden Space: \\ capacity = 5570560 (5.3125MB) \\ used = 222872 (0.21254730224609375MB) \\ free = 5347688 (5.099952697753906MB) \\ 4.000890395220588% used \\ From Space: \\ capacity = 851968 (0.8125MB) \\ used = 0 (0.0MB) \\ free = 851968 (0.8125MB) \\ 0.0% used \\ To Space: \\ capacity = 851968 (0.8125MB) \\ used = 0 (0.0MB) \\ free = 851968 (0.8125MB) \\ 0.0% used \\ PS Old Generation \\ capacity = 58392576 (55.6875MB) \\ used = 0 (0.0MB) \\ free = 58392576 (55.6875MB) \\ 0.0% used \\ PS Perm Generation \\ capacity = 16777216 (16.0MB) \\ used = 1516432 (1.4461822509765625MB) \\ free = 15260784 (14.553817749023438MB) \\ 9.038639068603516% used
So does this mean that the documentation at: http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/java.html
is wrong?
Thanks,
Joe Kampf -
[SOLVED] GNOME 3.2 and Nautilus are Case Sensitive. What do?
I just migrated from KDE 4.8 to GNOME 3.2 since KDE 4.8 was giving me a LOT of trouble with Firefox (mostly with homebrewed browser scripts for Firefox, but that's my fault. I pacman -Syu'd blindly).
Anyway, when I use GNOME Shell, all my applications are sorted by case. For example, I scroll down, and I gedit all the way at the bottom, but I see nothing between the F apps and the H apps.
In Nautilus it's even more confusing. For example, I have my xdg-user-dirs (such as Desktop, Music, etc.) but my ~/builds directory is all the way down. The same goes for ~/scripts and ~/r9k.
I've checked /etc/profile and /etc/rc.conf, but I can't find anything that would give a clue as to WHY this is happening. Here's a wgetpaste from my /etc/profile and /etc/rc.conf if that helps.
http://paste.pocoo.org/show/554087/ <- /etc/rc.conf
http://paste.pocoo.org/show/554088/ <- /etc/profile
Last edited by shaunsingh14 (2012-02-23 18:08:01)I'm using bash too and this shell can source rc.conf just fine, it's the default shell on Arch.
We add support for /etc/locale.conf. The settings in this file takes precedence over /etc/rc.conf, and those who use shells that cannot source /etc/rc.conf are required to move to this new format.
It doesn't change anything for you and me (apart from that one-time manual intervention). You still can follow the Beginners' Guide on how to set up your locale.
Edit:
shaunsingh14 wrote:Even when I added "en-US.UTF-8" to /etc/rc.conf, locale | grep LC_COLLATE still gives the same output: "C"
rc.conf is sourced at boot.
Please follow lucke's advice, reboot and post the output of 'locale' and 'locale -a'.
Last edited by karol (2012-02-22 17:20:52) -
Accidentally clicked on Name in playlist and now out if order
I made a playlist on my I pod nanno 8gb I accidentally clicked on name above all the names to the songs and the playlist went to alphabetical order of names. How do you get it back to original order?
Click at the top of the column on the left with the numbers in it. When you click on any column there's little triangle on the right side of the column header. When it is pointing up the column is sorted in Ascending order (lowest to highest) when it's pointing down it's in Descending order (highest to lowest).
-
How to replace "." with "," and "," with "." in a quantity field
HI All,
I wanna display the field mard-labst in the alv report. Based on the user default settings 2,454.500 is displayed as 2.454,500. Without changing the user default settings how can i display the decimal position correctly..Any help would be highly appreciated.
Best regards,
Subhakar RamineniHi...Subhakar..
i got ur prob...this is the solution...just paste it and go through it...
Report YH642_TEST.
TABLES:
mard.
DATA : W_mard_labst type p decimals 3,
w_dt1(18).
data:
W_N TYPE I.
SELECT SINGLE * FROM MARD INTO MARD WHERE LABST = '10000.00'.
WRITE: mard-labst .
W_mard_labst = mard-labst.
WRITE:/ W_mard_labst .
w_dt1 = w_mard_labst .
write W_mard_labst to w_dt1.
W_N = STRLEN( W_DT1 ).
W_N = W_N - 4.
REPLACE ALL OCCURRENCES OF ',' IN W_DT1 WITH '.' .
REPLACE ALL OCCURRENCES OF '.'
IN SECTION OFFSET W_N LENGTH 4 OF W_DT1 WITH ','.
WRITE: / W_DT1. -
Must remove Ask search engine.
Dig this cats. Go to your Mozilla start up page. Go to Google home page. Then drag the Google Icon on the left side by the search bar over to the Icon of a home on the upper right side and Google will be restored as your home page. I hate you Ask.com, you were like a leach!
Maybe you are looking for
-
Error while executing unix shell script from java program
Hi All, I am trying to execute unix shell script from a java program using Runtime.execute() method by passing script name and additional arguments. Code snippet : Java Class : try{ String fileName ="test.ksh"; String argValue ="satish"; //
-
ITunes wont recognise any of my devices
Whenever i plug my iPhone 4s or iPad2 into the USB and connect it to my iMAc, the iMac won't recognise it. Nothing at all happens - it will only charge. Usually iTunes or iPhoto will open up and recognise my device, but not now. I am running the late
-
There is a template in iWeb for albums, but not one for iPhoto Web Galleries. You can use the insert .mac web gallery option to get a web gallery onto a page, but is there a way to use the cool album template instead? It seems so odd that there isn't
-
Data Services for CairgnormStore sample
I am trying to run CairngormStore for Flex 2 end-to-end. It looks like the only deployment/configuration problem left is the configuration of Data Services. What is already done: - Flex 2 SDK is installed - Flex 2 builder is up and running - Flex 2 D
-
How to Import 9i Repository into 10g Repository
I downloaded and installed the latest developer suite 10.1.2.0.2 on one server and and I have old version of designer 9.0.2.10 repository on another server. I created an export of the repository from 9.0.2. I brought up the RAU using the 10.1.2 and t