Basic query (in internationalization)

I am new to internationalization
I dont know how to run this file. i compiled this.
I have a basic code taken from sun site.
import java.util.*;
public class I18NSample {
static public void main(String[] args) {
String language;
String country;
if (args.length != 2) {
language = new String("en");
country = new String("US");
} else {
language = new String(args[0]);
country = new String(args[1]);
Locale currentLocale;
ResourceBundle messages;
currentLocale = new Locale(language, country);
messages =
ResourceBundle.getBundle("MessagesBundle",currentLocale);
System.out.println(messages.getString("greetings"));
System.out.println(messages.getString("inquiry"));
System.out.println(messages.getString("farewell"));
property files are
greetings = Hello.
farewell = Goodbye.
inquiry = How are you?
greetings = Hallo.
farewell = Tsch��.
inquiry = Wie geht's?
greetings = Hello.
farewell = Goodbye.
inquiry = How are you?
greetings = Bonjour.
farewell = Au revoir.
inquiry = Comment allez-vous?
where to place these file
i dont know how to use these files.
will anyone help me
i am new to this

You missed the next part, Running the Sample Program.

Similar Messages

  • Basic query in Oracle Spatial

    I'm trying to learn Oracle Spatial working with 11g R2 and with 3D georeferenced data (specifically data describing buildings in a city).
    But I'm having trouble getting a basic query to work on my dataset (it works for the book example), and I'm trying to do it exactly the way it's done in the Spatial Developer's Guide for 11g.
    To learn how spatial queries work, I set up the cola_markets tables used in the book, made the appropriate manual entry in the user_sdo_geom_metadata view and created the index. Having done that, I can run the following simple query (as well as the others in the manual) on the book tables:
    SELECT SDO_GEOM.SDO_DISTANCE(c_b.shape, c_d.shape, 0.005)
    FROM cola_markets c_b, cola_markets c_d
    WHERE c_b.name = 'cola_b' AND c_d.name = 'cola_d';
    but when I try to do the same thing on my own tables (created from citygml data), I get an error. There is the difference that the data is 3D, and the index was created without any PARAMETERS ( ... ), hence is just 2D. But still I don't get why the following query doesn't work:
    SELECT SDO_GEOM.SDO_DISTANCE(c_w.envelope, c_b.envelope, 0.0005)
    FROM cityobject c_w,
         cityobject c_b
    WHERE c_w.id = 50025
         AND c_b.id = 50018;
    The id's for the buildings are valid, and I used the same tolerance used by the software that set up the database.
    Here's the error I get in SQL developer:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.Exception: 54535
    ORA-06512: at "MDSYS.SDO_3GL", line 637
    ORA-06512: at "MDSYS.SDO_GEOM", line 1973
    ORA-06512: at "MDSYS.SDO_GEOM", line 1990
    29532. 00000 - "Java call terminated by uncaught Java exception: %s"
    *Cause: A Java exception or error was signaled and could not be
         resolved by the Java code.
    *Action: Modify Java code, if this behavior is not intended.
    So, thinking it might have something to do with the fact that it's a Java interface, I also tried running it from SQL/PL command line and get essentially the same thing:
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.Exception: 54535
    ORA-06512: at "MDSYS.SDO_3GL", line 637
    ORA-06512: at "MDSYS.SDO_GEOM", line 1973
    ORA-06512: at "MDSYS.SDO_GEOM", line 1990
    Any ideas why this isn't working?
    (P.S.: I couldn't find a specific board for Oracle Spatial, hence put this question here--if there's a better place for this question, then, admins, of course, feel free to move the thread to the appropriate spot)

    Hi,
    The SPATIAL forum is here : {forum:id=76}

  • Basic question - Problems with basic query - Mask = INSIDE

    Greetings,
    I'm doing a basic query on Oracle 10g Spatial, is to determine the intersection between two layers (one point called "Calidad1") and other polygons, called "Parishes")
    For issuing the following query based on the documentation of oracle:
    "select C1.ID, C1.SECUENCIA,
    P. COD_ENTIDAD, P. STATE
    Cod_county P., P. TOWNSHIP,
    P. COD_PARROQUIA, P. PARISH
    from CALIDAD1 c1,
    PARISHES p
    where sdo_relate (c1.geoloc, p.geoloc, 'mask = INSIDE querytype = WINDOW') = 'TRUE'
    order by C1.ID;
    When I run the query, no errors but extends too long (more than 10 minutes) and no end, I have to cancel.
    Canceling shows me the following error:
    "ORA-13268: error obtaining dimension from USER_SDO_GEOM_METADATA
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 8
    ORA-06512: at "MDSYS.SDO_3GL", line 89 "
    This query is very basic and the data volume is small, a conclusion: I must be skipping a step or activity.
    Can you guide a little to resolve this situation and get the query that I need?
    Thanks to all

    First, try this query with the ordered hint and also note the change in the FROM clause.
    select /*+ ordered */ C1.ID, C1.SECUENCIA,
    P. COD_ENTIDAD, P. STATE
    Cod_county P., P. TOWNSHIP,
    P. COD_PARROQUIA, P. PARISH
    from PARISHES p,
    CALIDAD1 c1,
    where sdo_relate (c1.geoloc, p.geoloc, 'mask = INSIDE querytype = WINDOW') = 'TRUE'
    order by C1.ID;
    See if this is using the index as expected. If not try this:
    select /*+ ordered index(p name_of_the_spatial_index_on_the_PARISH_Table) */
    C1.ID, C1.SECUENCIA,
    P. COD_ENTIDAD, P. STATE
    Cod_county P., P. TOWNSHIP,
    P. COD_PARROQUIA, P. PARISH
    from PARISHES p,
    CALIDAD1 c1,
    where sdo_relate (c1.geoloc, p.geoloc, 'mask = INSIDE querytype = WINDOW') = 'TRUE'
    order by C1.ID;
    siva

  • Basic Query on CQ 5

    Hi,
    I have a basic query about CQ5 ,actually i will be getting training on it ,i have the following doubts:-
    1)I am a beginner in JAva and related technologies,does one need to be an expert in java to understand CQ5?
    2)I have mainly worked on Teamsite CMS before,how easy is it for someone from that background to adapt to DAY CQ/
    I can go through all the java concepts which are mandatory in CQ5 understanding,please guide regarding them.
    Looking forward for expert guidance.
    Regards,
    Raul

    Hi Raul,
    Here's my 2 cents:
    1)I am a beginner in JAva and related technologies,does one need to be an expert in java to understand CQ5?
    No - and - depends.  CQ is an enterprise level CMS.  As such, it has many many bits and bobs.  There is a back-end Java element, a front-end JavaScript/ExtJS element, and a bunch of stuff between the two (sling, crx, osgi, etc.).  My best recommendation would be get on a project with a skilled architect in which you are being given components or other parts/pieces to work on. That will give you hands on guidance on building CQ and direct access to seeing an entire project go up from soup-to-nuts.  Also, if you haven't already, try to get to an Adobe CQ Dev training class.  That will really help jump start your knowledge and get you off on the right foot.
    2)I have mainly worked on Teamsite CMS before,how easy is it for someone from that background to adapt to DAY CQ/
    Any previous CMS knowledge is definintely helpful.  Teamsite is VERY different to CQ.  However, the goal is the same.  Content authors need a way of entering content that ultimately gets displayed and served up as a web page.  Teamsite does this with forms whereas CQ does this more inline on the page... If you've ever worked with Teamsite Sitepublisher, that's even better.  Either way, having CMS experience is definitely helpful.
    Todd

  • Basic Query Creation

    Hello,
    Our company is about to go live with B1 and E commerce. We are very much looking forward to getting the ball rolling: the old MOM system and Sitelink shopping cart is causing issues!
    Anyway, before i go too much further i would like to get hold of some basic Query creation documentation. So far i have been unable to find any.
    If i have posted this in the wrong discussion group i apologies.
    I look forward to hearing your comments and becoming a regular in this group,
    Thanks,
    Charlie

    Hi Charlie,
    Beside this forum, you may also search and post here:
    SAP Add-Ons
    Thanks,
    Gordon

  • Basic query in JAVA Threads....Please reply !!

    I have a class (say ABC) which extends Thread...This class basically
    reads some file which provides some start-time and stop-time information..
    File structure is like:-
    ===========================================
    <Entry1>Starttime = A and Stoptime = B
    ===========================================
    Logic is that thread sleeps till time A arrived, then do some operations (which are written
    in it's run() method) till stoptime..
    The object of ABC class is being constructed in some other class.
    Now there is a change....File can have multiple entries like..
    ======================================
    <Entry1>starttime = A and stoptime = B
    <Entry2>starttime = X and stoptime = Z
    <Entry3>starttime = A and stoptime = B
    <Entryn>starttime = X and stoptime = Z
    ======================================
    The start-time and stop-time of any two Entries can be same or different.
    The operations should start executing at the defined time..
    In this case, multiple threads are required, which can do the operations
    mentioned in Entry1,2 etc.....But how should it be implemented..
    My query is:-
    1) Can I have a common-wrapper class, which reads the file and based on
    the number of Entries, instantiates that much number of threads...
    But how to do that....I am new to JAVA...Should that class be a simple
    class...or should it also implement Thread/Runnable interface.....
    Or can I implement it as ThreadGroup......
    Please give soem suggestions....Thanks...

    e.g.
            ScheduledExecutorService exec = Executors.newScheduledThreadPool(2);
            exec.schedule(new Runnable() {
                public void run() {
                    runTask();
            }, delay, TimeUnit.MILLISECONDS);

  • Help with a basic query

    Hello
    I am looking at a set of records and need to query them but cannot work out what syntax to use to get the desired result.
    This is the query for the basic data
    SELECT
    SCE_STUC,
    SCE_CRSC,
    SCE_STAC
    FROM SRS_SCE
    WHERE SCE_AYRC = '2009/0'
    and Sce_stuc LIKE '0702794'
    This gives:
    SCE_STUC SCE_CRSC SCE_STAC
    0702794     OAKC3ZSKG     C
    0702794     UBSH1BINS W
    0702794     UBSH1WIDS C
    So I need to create a query that shows where a person (sce_stuc) has a C status for sce_crsc OAKC3ZSKG but also has another SCE_CRSC not OAKC3ZSKG that is not status C.
    I am using Oracle SQL developer btw
    Any help much appreciated

    Hi thanks for these
    So I am looking for people that are C on course OAKC3ZSKG but have a record that is not C for another course this could be an In ('W','N') etc.
    Sorry I have not been that clear so looking to return:
    SCE_STUC SCE_CRSC SCE_STAC
    *0702794     UBSH1BINS      W*
    where the student has
    SCE_STUC SCE_CRSC SCE_STAC
    0702794     OAKC3ZSKG     C
    0702794     OAKC3ZSKG     C
    0702794     UBSH1BINS     W
    Again many thanks

  • Basic query regarding work-area and select query

    hi
    dear sdn members,
    thanks too all for solving all my query's up till now
    i am stuck in a problem need help
    1)  why basically work-area has been used ? the sole purpose
    2)  different types of select query ? only coding examples
    note: no links pls
    regards,
    virus

    hi,
    Work Area
    Description for a data object that is particularly useful when working with internal tables or database tables as a source for changing operations or a target for reading operations.
    WORKAREA is a structure that can hold only one record at a time. It is a collection of fields. We use workarea as we cannot directly read from a table. In order to interact with a table we need workarea. When a Select Statement is executed on a table then the first record is read and put into the header of the table and from there put into the header or the workarea(of the same structure as that of the table)of the internal table and then transferred top the body of the internal table or directly displayed from the workarea.
    Each row in a table is a record and each column is a field.
    While adding or retrieving records to / from internal table we have to keep the record temporarily.
    The area where this record is kept is called as work area for the internal table. The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
    Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
    .g.
    data: begin of itab occurs 10,
    ab type c,
    cd type i,
    end of itab. " this table will have the header line.
    data: wa_itab like itab. " explicit work area for itab
    data: itab1 like itab occurs 10. " table is without header line.
    The header line is a field string with the same structure as a row of the body, but it can only hold a single row.
    It is a buffer used to hold each record before it is added or each record as it is retrieved from the internal table. It is the default work area for the internal table.
    With header line
    SELECT.
    Put the curson on that word and press F1 . You can see the whole documentation for select statements.
    select statements :
    SELECT result
    FROM source
    INTO|APPENDING target
    [[FOR ALL ENTRIES IN itab] WHERE sql_cond]
    Effect
    SELECT is an Open-SQL-statement for reading data from one or several database tables into data objects.
    The select statement reads a result set (whose structure is determined in result ) from the database tables specified in source, and assigns the data from the result set to the data objects specified in target. You can restrict the result set using the WHERE addition. The addition GROUP BY compresses several database rows into a single row of the result set. The addition HAVING restricts the compressed rows. The addition ORDER BY sorts the result set.
    The data objects specified in target must match the result set result. This means that the result set is either assigned to the data objects in one step, or by row, or by packets of rows. In the second and third case, the SELECT statement opens a loop, which which must be closed using ENDSELECT. For every loop pass, the SELECT-statement assigns a row or a packet of rows to the data objects specified in target. If the last row was assigned or if the result set is empty, then SELECT branches to ENDSELECT . A database cursor is opened implicitly to process a SELECT-loop, and is closed again when the loop is ended. You can end the loop using the statements from section leave loops.
    Up to the INTO resp. APPENDING addition, the entries in the SELECTstatement define which data should be read by the database in which form. This requirement is translated in the database interface for the database system´s programming interface and is then passed to the database system. The data are read in packets by the database and are transported to the application server by the database server. On the application server, the data are transferred to the ABAP program´s data objects in accordance with the data specified in the INTO and APPENDING additions.
    System Fields
    The SELECT statement sets the values of the system fields sy-subrc and sy-dbcnt.
    sy-subrc Relevance
    0 The SELECT statement sets sy-subrc to 0 for every pass by value to an ABAP data object. The ENDSELECT statement sets sy-subrc to 0 if at least one row was transferred in the SELECT loop.
    4 The SELECT statement sets sy-subrc to 4 if the result set is empty, that is, if no data was found in the database.
    8 The SELECT statement sets sy-subrc to 8 if the FOR UPDATE addition is used in result, without the primary key being specified fully after WHERE.
    After every value that is transferred to an ABAP data object, the SELECT statement sets sy-dbcnt to the number of rows that were transferred. If the result set is empty, sy-dbcnt is set to 0.
    Notes
    Outside classes, you do not need to specify the target area with INTO or APPENDING if a single database table or a single view is specified statically after FROM, and a table work area dbtab was declared with the TABLES statement for the corresponding database table or view. In this case, the system supplements the SELECT-statement implicitly with the addition INTO dbtab.
    Although the WHERE-condition is optional, you should always specify it for performance reasons, and the result set should not be restricted on the application server.
    SELECT-loops can be nested. For performance reasons, you should check whether a join or a sub-query would be more effective.
    Within a SELECT-loop you cannot execute any statements that lead to a database commit and consequently cause the corresponding database cursor to close.
    SELECT - result
    Syntax
    ... lines columns ... .
    Effect
    The data in result defines whether the resulting set consists of multiple rows (table-like structure) or a single row ( flat structure). It specifies the columns to be read and defines their names in the resulting set. Note that column names from the database table can be changed. For single columns, aggregate expressions can be used to specify aggregates. Identical rows in the resulting set can be excluded, and individual rows can be protected from parallel changes by another program.
    The data in result consists of data for the rows lines and for the columns columns.
    SELECT - lines
    Syntax
    ... { SINGLE }
    | { { } } ... .
    Alternatives:
    1. ... SINGLE
    2. ... { }
    Effect
    The data in lines specifies that the resulting set has either multiple lines or a single line.
    Alternative 1
    ... SINGLE
    Effect
    If SINGLE is specified, the resulting set has a single line. If the remaining additions to the SELECT command select more than one line from the database, the first line that is found is entered into the resulting set. The data objects specified after INTO may not be internal tables, and the APPENDING addition may not be used.
    An exclusive lock can be set for this line using the FOR UPDATE addition when a single line is being read with SINGLE. The SELECT command is used in this case only if all primary key fields in logical expressions linked by AND are checked to make sure they are the same in the WHERE condition. Otherwise, the resulting set is empty and sy-subrc is set to 8. If the lock causes a deadlock, an exception occurs. If the FOR UPDATE addition is used, the SELECT command circumvents SAP buffering.
    Note
    When SINGLE is being specified, the lines to be read should be clearly specified in the WHERE condition, for the sake of efficiency. When the data is read from a database table, the system does this by specifying comparison values for the primary key.
    Alternative 2
    Effect
    If SINGLE is not specified and if columns does not contain only aggregate expressions, the resulting set has multiple lines. All database lines that are selected by the remaining additions of the SELECT command are included in the resulting list. If the ORDER BY addition is not used, the order of the lines in the resulting list is not defined and, if the same SELECT command is executed multiple times, the order may be different each time. A data object specified after INTO can be an internal table and the APPENDING addition can be used. If no internal table is specified after INTO or APPENDING, the SELECT command triggers a loop that has to be closed using ENDSELECT.
    If multiple lines are read without SINGLE, the DISTINCT addition can be used to exclude duplicate lines from the resulting list. If DISTINCT is used, the SELECT command circumvents SAP buffering. DISTINCT cannot be used in the following situations:
    If a column specified in columns has the type STRING, RAWSTRING, LCHAR or LRAW
    If the system tries to access pool or cluster tables and single columns are specified in columns.
    Note
    When specifying DISTINCT, note that you have to carry out sort operations in the database system for this.
    SELECT - columns
    Syntax
    | { {col1|aggregate( col1 )}
    {col2|aggregate( col2 )} ... }
    | (column_syntax) ... .
    Alternatives:
    1. ... *
    2. ... {col1|aggregate( col1 )}
    {col2|aggregate( col2 )} ...
    3. ... (column_syntax)
    Effect
    The input in columns determines which columns are used to build the resulting set.
    Alternative 1
    Effect
    If * is specified, the resulting set is built based on all columns in the database tables or views specified after FROM, in the order given there. The columns in the resulting set take on the name and data type from the database tables or views. Only one data object can be specified after INTO.
    Note
    If multiple database tables are specified after FROM, you cannot prevent multiple columns from getting the same name when you specify *.
    Alternative 2
    ... {col1|aggregate( col1 )}
    {col2|aggregate( col2 )} ...
    Effect
    A list of column labels col1 col2 ... is specified in order to build the resulting list from individual columns. An individual column can be specified directly or as an argument of an aggregate function aggregate. The order in which the column labels are specified is up to you and defines the order of the columns in the resulting list. Only if a column of the type LCHAR or LRAW is listed does the corresponding length field also have to be specified directly before it. An individual column can be specified multiple times.
    The addition AS can be used to define an alternative column name a1 a2 ... with a maximum of fourteen digits in the resulting set for every column label col1 col2 .... The system uses the alternative column name in the additions INTO|APPENDING CORRESPONDING FIELDS and ORDER BY. .
    Column labels
    The following column labels are possible:
    If only a single database table or a single view is specified after FROM, the column labels in the database table - that is, the names of the components comp1 comp2... - can be specified directly for col1 col2 ... in the structure of the ABAP Dictionary.
    If the name of the component occurs in multiple database tables of the FROM addition, but the desired database table or the view dbtab is only specified once after FROM, the names dbtab~comp1 dbtab~comp2 ... have to be specified for col1 col2 .... comp1 comp2 ... are the names of the components in the structure of the ABAP Dictionary.
    If the desired database table or view occurs multiple times after FROM, the names tabalias~comp1 tabalias~comp2 ... have to be specified for col1 col2 .... tabalias is the alternative table name of the database table or view defined after FROM, and comp1 comp2 ... are the names of the components in the structure of the ABAP Dictionary.
    The data type of a single column in the resulting list is the datatype of the corresponding component in the ABAP Dictionary. The corresponding data object after INTO or APPENDING has to be selected accordingly.
    Note
    If multiple database tables are specified after FROM, you can use alternative names when specifying single columns to avoid having multiple columns with the same name.
    Example
    Read specific columns of a single row.
    DATA wa TYPE spfli.
    SELECT SINGLE carrid connid cityfrom cityto
    INTO CORRESPONDING FIELDS OF wa
    FROM spfli
    WHERE carrid EQ 'LH' AND connid EQ '0400'.
    IF sy-subrc EQ 0.
    WRITE: / wa-carrid, wa-connid, wa-cityfrom, wa-cityto.
    ENDIF.
    Alternative 3
    ... (column_syntax)
    Effect
    Instead of static data, a data object column_syntax in brackets can be specified, which, when the command is executed, either contains the syntax shown with the static data, or is initial. The data object column_syntax can be a character-type data object or an internal table with a character-type data type. The syntax in column_syntax, like in the ABAP editor, is not case-sensitive. When specifying an internal table, you can distribute the syntax over multiple rows.
    If column_syntax is initial when the command is executed, columns is implicitly set to * and all columns are read.
    If columns are specificied dynamically without the SINGLE addition, the resulting set is always regarded as having multiple rows.
    Notes
    Before Release 6.10, you could only specify an internal table with a flat character-type row type for column_syntax with a maximum of 72 characters. Also, before Release 6.10, if you used the DISTINCT addition for dynamic access to pool tables or cluster tables, this was ignored, but since release 6.10, this causes a known exception.
    If column_syntax is an internal table with header line, the table body and not the header line is evaluated.
    Example
    Read out how many flights go to and from a city. The SELECT command is implemented only once in a sub-program. The column data, including aggregate function and the data after GROUP BY, is dynamic. Instead of adding the column data to an internal l_columns table, you could just as easily concatenate it in a character-type l_columns field.
    PERFORM my_select USING `CITYFROM`.
    ULINE.
    PERFORM my_select USING `CITYTO`.
    FORM my_select USING l_group TYPE string.
    DATA: l_columns TYPE TABLE OF string,
    l_container TYPE string,
    l_count TYPE i.
    APPEND l_group TO l_columns.
    APPEND `count( * )` TO l_columns.
    SELECT (l_columns)
    FROM spfli
    INTO (l_container, l_count)
    GROUP BY (l_group).
    WRITE: / l_count, l_container.
    ENDSELECT.
    ENDFORM.
    SELECT - aggregate
    Syntax
    ... { MAX( col )
    | MIN( col )
    | AVG( col )
    | SUM( col )
    | COUNT( DISTINCT col )
    | COUNT( * )
    | count(*) } ... .
    Effect
    As many of the specified column labels as you like can be listed in the SELECT command as arguments of the above aggregate expression. In aggregate expressions, a single value is calculated from the values of multiple rows in a column as follows (note that the addition DISTINCT excludes double values from the calculation):
    MAX( col ) Determines the maximum value of the value in the column col in the resulting set or in the current group.
    MIN( col ) Determines the minimum value of the content of the column col in the resulting set or in the current group.
    AVG( col ) Determines the average value of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    SUM( col ) Determines the sum of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    COUNT( DISTINCT col ) Determines the number of different values in the column col in the resulting set or in the current group.
    COUNT( * ) (or count(*)) Determines the number of rows in the resulting set or in the current group. No column label is specified in this case.
    If you are using aggregate expressions, all column labels that are not listed as an argument of an aggregate function are listed after the addition GROUP BY. The aggregate functions evaluate the content of the groups defined by GROUP BY in the database system and transfer the result to the combined rows of the resulting set.
    The data type of aggregate expressions with the function MAX, MIN or SUM is the data type of the corresponding column in the ABAP Dictionary. Aggregate expressions with the function AVG have the data type FLTP, and those with COUNT have the data type INT4. The corresponding data object after INTO or APPENDING has to be selected accordingly.
    Note the following points when using aggregate expressions:
    If the addition FOR ALL ENTRIES is used in front of WHERE, or if cluster or pool tables are listed after FROM, no other aggregate expressions apart from COUNT( * ) can be used.
    Columns of the type STRING or RAWSTRING cannot be used with aggregate functions.
    When aggregate expressions are used, the SELECT command makes it unnecessary to use SAP buffering.
    Null values are not included in the calculation for the aggregate functions. The result is a null value only if all the rows in the column in question contain the null value.
    If only aggregate expressions are used after SELECT, the results set has one row and the addition GROUP BY is not necessary. If a non-table type target area is specified after INTO, the command ENDSELECT cannot be used together with the addition SINGLE. If the aggregate expression count( * ) is not being used, an internal table can be specified after INTO, and the first row of this table is filled.
    If aggregate functions are used without GROUP BY being specified at the same time, the resulting set also contains a row if no data is found in the database. If count( * ) is used, the column in question contains the value 0. The columns in the other aggregate functions contain initial values. This row is assigned to the data object specified after INTO, and unless count( * ) is being used exclusively, sy-subrc is set to 0 and sy-dbcnt is set to 1. If count( *) is used exclusively, the addition INTO can be omitted and if no data can be found in the database, sy-subrc is set to 4 and sy-dbcnt is set to 0.
    if helpful reward points

  • A basic query with respect to using Message Selectors in JMS

    Hi
    When i am going MEssage Selectors topic in web , it seems very confusing for me .
    I have written a simple JMS Application based on Weblogic as my Queue .
    I have two Java Files one for Message Producer and another file acting as Message Consumer using MDB
    I have a basic TextMessage with some header properties in my Producer file .
    Please tell me in what file should i put MessageSelector ??.
    Thanks for reading .
    Please clarify my query on this .

    Thank you very much .
    I found the code of a MDB making useage of a Selector .
    *<message-driven>*
    *     <message-selector>shirtType = 'polo'</message-selector>*
    *     </message-driven>*
    Assume that i written a MDB that listens to particular type of Messages (Polo in this case ) .
    Please tell me what happens to other messages in the Queue that were never listened by the MDB .
    Thank you .

  • A lot of trace events on a basic query

    Hi All,
    We are struggling with a strange olap engine behavior on resolving basic MDX query on any measure
    even without any dimensions attributes involved. (on clear cache) 
    Enormous amount of Starting/Finishing Reading from Aggregation 0 emitted. (Progress Report Event; 14-Query sub event).
    We commented out all mdx script and enabled one native measure (count),
    but this take no effect. The product version is 2012 sp2.
    Has anyone ever met this issue before? 

    Hi Dimitri,
    According to your description, you can't execute MDX query at all. Right?
    In this scenario, pelase make sure the SSAS database is not corrupt. Re-deploy your cube and see if any error is thrown. Check the data in tables which are involved in dsv. You can use SQL query to join those tables and query the data in SSMS database engine.
    Go to SQL Server Configuration Manager and Services to see if SQL Server Analysis Services is running. And make sure the log on account has suffcient permission. If possbile please share some sample query and the detail error message.
    Simon Hou
    TechNet Community Support

  • OSPF link update-Basic Query

    I am new to OSPF. I have 2 basic querys on OSPF link update.
    1. How does one router communicates with every router in the OSPF area. Is it that each router communicates only with its directly connected neighbours? example.
    ROUTERA-------ROUTERB-----ROUTERC-----ROUTERD----ROUTERE
    Lets say link on RouterB connected to ROUTERA goes down. How does "ROUTERE" get to know about this? Is the communication is from RouterB to ROUTERC then to ROUTERD and then to ROUTERE?
    2. How does router handle(forward) multicast packets?
    Thanks

    Hello Avil,
    the way OSPF communicates depends on how your network is set up. In your case, it looks like all routers are connected back-to-back with point-to-point links. OSPF uses the concept of adjacencies: an OSPF router has an adjacency with a connected router, which means that they have the exact same view of the entire network. If you do a 'show ip ospf neighbor' on your RouterA and your RouterE, it tells you the adjacencies these routers have with other connected routers. Now let's say the link between RouterA and RouterB goes down. RouterC notifies RouterD, and RouterD notifies RouterE immediately by exchanging link-state packets.
    Keep in mind that on a multiaccess segment (where multiple OSPF routers are directly connected on the same segment), the concept of DR (Designated Router) and BDR (Backup Designated Router) comes into play: on a multiaccess segment, a DR and a BDR are elected, and all other routers have full adjacencies only with the DR and the BDR.
    Regarding the multicast traffic: it is handled just as unicast traffic (unless you specifically block it).
    Does that make sense ? If you are just starting with OSPF, have a look at the link below, which contains a pretty good introduction of the basic concepts.
    OSPF Design Guide
    http://www.cisco.com/warp/public/104/2.html#4.0
    HTH,
    GNT

  • Basic query abt business logic

    i need to have a website which will search from a database and display results is it advisable to have my business logic (i.e database query)in servlet only since it is a small aplication or i should have a different file for business logic?
    I am very new to this technologies no do not have much knowledge.
    i am thinking to use jsp for display since it automatically handles sessions.
    tia

    so i should have my database query logic
    based on search parameters in my servlet only???No
    should have a different file for business logic?Yes. Your servlet can create an object of a Search class(in a different file) and call its methods to do the searching. Then your servlet can attach the result to the request:
    request.setAttribute("someName", SearchResults);and then forward the request to the JSP using a RequestDispatcher:
    RequestDispatcher view = request.getRequestDispatcher("/results.jsp");
    view.forward(request, response);Then your jsp can retrieve the data:
    SearchResults data  = (SearchResults) request.getAttribute("someName");MVC. Model View Controller:
    Controller = servlet
    Model = Search class
    View = jsp
    Your directory structure might look something like this:
    yourApp
    --searchForm.htm
    --results.jsp
    --WEB-INF
    -------classes
    -----------com
    ---------------myWebsite
    --------------------web
    --------------------------MyServlet.class (package com.myWebsite.web;)
    --------------------model
    --------------------------Search.class (package com.myWebsite.model;)

  • Dba_data_files basic query

    I ran a query against dba_data_files table for one datafile. It shows the Bytes is more than Maxbytes.
    SQL> select BYTES/1024.0/1024.0,MAXBYTES/1024.0/1024.0,USER_BYTES/1024.0/1024.0, AUTOEXTENSIBLE from DBA_DATA_FILES where FILE_NAME = 'F:\ORA1\DATAFILES\INDEXES_01.DBF';
    BYTES/1024.0/1024.0 MAXBYTES/1024.0/1024.0 USER_BYTES/1024.0/1024.0 AUT
             640.003906                    500                      636 YESCan the datafile grow beyound the maxbytes when autoextensible is set. Does oracle ignores maxbytes if autoextensible is set and grows the datafile upto the max OS limit?

    Yes they can.
    “bytes” in dba_data_files can get larger then “maxbytes”
    When datafile bytes size greater than maxbytes :
    http://arjudba.blogspot.com/2009/11/when-datafile-bytes-size-greater-than.html
    Still might interest you :
    https://oraworklog.wordpress.com/2010/02/23/free-space-in-auto-extensible-tablespaces/
    Best Regards
    mseberg
    Another good example here :
    Bytes is greater than maxbytes in dba_data_files
    Edited by: mseberg on Dec 30, 2011 12:34 PM
    Edited by: mseberg on Dec 30, 2011 12:45 PM

  • Very basic query

    Hi,
    Apologies in advance for the very basic question I am about
    to ask but I don't know where to start! I am (attempting) to use
    dreamweaver for the first time to create a very basic web page. All
    that I require is a front page that is password protected
    (protecting access to all of the content on the page) and an index
    that links to different captivate projects.
    How can I get started? Is there a template for this that I
    can simply copy?
    Thanks in advance,
    mfubib.

    No need to apologize. But do be aware that a
    password-protected page isn't
    quite in the "very basic" category - not rocket science
    either, but DW isn't
    a program like FrontPage with its' "server extensions" that
    do things like
    this automatically for you.
    The very simplest way would probably be to ask your web host
    if they can
    password-protect a single directory for you. If they can,
    that might be all
    you need.
    If that won't work, you'll need to ask your web host what
    scripting
    languages your account supports: PHP? ASP? Based upon that
    answer, you can
    find and install a script in the right "flavor".
    Patty Ayers | Adobe Community Expert
    www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet
    "mfubib" <[email protected]> wrote in
    message
    news:flvp3o$hgu$[email protected]..
    > Hi,
    > Apologies in advance for the very basic question I am
    about to ask but
    > I
    > don't know where to start! I am (attempting) to use
    dreamweaver for the
    > first
    > time to create a very basic web page. All that I require
    is a front page
    > that
    > is password protected (protecting access to all of the
    content on the
    > page) and
    > an index that links to different captivate projects.
    >
    > How can I get started? Is there a template for this that
    I can simply
    > copy?
    >
    > Thanks in advance,
    >
    > Matthew Bibby
    >
    >
    >

  • Really basic query

    Hi,
    I am a novice. I can't figure out what (+) means when it appears in statements like this: (the below statement is only representative)
    select b.f_user_id, a.amount from t_accounts a, t_users b where
    a.f_user_id(+) = b.f_user_id
    and what abt
    select b.f_user_id, a.amount from t_accounts a, t_users b where
    a.f_user_id = b.f_user_id(+)
    Whats the difference between the first and second usage?
    Kindly bear with me if this is a really basic stuff.
    Thanks

    Hi,
    I can't figure out what (+) means (+) is an outer join.
    select b.f_user_id, a.amount from t_accounts a,
    t_users b where
    a.f_user_id(+) = b.f_user_idIt take all records of b table, even if join a.f_user_id = b.f_user_id is not verified. If join is not verified, a.amount value will be null.
    select b.f_user_id, a.amount from t_accounts a,
    t_users b where
    a.f_user_id = b.f_user_id(+)It take all records of a table, even if join a.f_user_id = b.f_user_id is not verified. If join is not verified, b.f_user_id value will be null.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/queries7.htm#2054625
    Nicolas.

Maybe you are looking for

  • Can't make an unrated smart playlist in itunes

    i have 1/2 star ratings enabled on my imac. when i make a smart playlist with "ratings is 0" i get a playlist of all 1/2 star rated songs and none rated 0. i have itunes 11. i tried it on my macbook (itunes 10.7) and it works fine. but i don't have 1

  • Need FireFox installations from version 3 till present for MAC and Windows

    Good day! I am working for a Software Testing Company, and I need installations for FireFox from Version 3 to present. for Mac and Windows. Is there any way I can get these installations, Cant seem to find them on website. It will be very much apprec

  • Aperture 2 Color Profiling....please help

    Hi I have a MBP and aperture...I did the following setup 1) Calibrated my Monitor with a spyder (used gamma2.2 and neutral) I doubled on this website that the calibration is ok http://www.drycreekphoto.com/Learn/monitor_calibration.htm 2) on Aperture

  • Trying to listen to a live music stream on Firefox....Help?

    I'm new to this aspect of the internet, so here goes. I was given a port 8000 address for a live music stream by a trusted staff member of a chat site, along with everyone else, via global/general chat. According to chat, everyone else was hearing mu

  • Error in Loading to cube

    Hi guys, I encountered the following problem.. Diagnosis An error occurred in the source system. System response An error occurred in Service API . Check the error message. Procedure The procedure for removing errors takes place depending on the erro