Counting using recursion without a variable

How can I count the occurence of a character in a string using only recursion and no variables?

Try something like this:
public class ResursiveHomework
  private static final int COUNT = 100;
  public static boolean done = false;
  public static byte[] hnd =
    0x48, 0x6f, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x6e, 0x6f, 0x74,
    0x20, 0x64, 0x6f, 0x6e, 0x65, 0x2e, 0x20, 0x20, 0x41, 0x73, 0x6b, 0x20,
    0x4a, 0x61, 0x76, 0x61, 0x20, 0x66, 0x6f, 0x72, 0x75, 0x6d, 0x20, 0x74,
    0x6f, 0x20, 0x64, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x20, 0x66, 0x6f,
    0x72, 0x20, 0x6d, 0x65, 0x2e
  public static String hndStr = new String(hnd);
  public static void recursiveHomework()
    for (int i = 0; i < COUNT; i++)
      System.out.println(hndStr);
    if (!done)
      recursiveHomework();
  public static void main(String[] args)
    recursiveHomework();
}good luck
Edited by: Encephalopathic on Jun 20, 2008 8:10 PM

Similar Messages

  • ORA-19802: cannot use DB_RECOVERY_FILE_DEST without DB_RECOVERY_FILE_DEST_S

    Hi all,
    We are using Oracle 11g R2 RAC on OEL 5.6.
    After set the db_recovery_file_dest to FRA diskgroup,
    I forgot to set the DB_RECOVERY_FILE_DEST_SIZE, and I've started an instance,
    like this:
    SQL> ALTER SYSTEM SET db_recovery_file_dest='+FRA' SCOPE=spfile;
    System altered.
    SQL> commit;
    Commit complete.
    SQL> show parameter recover
    NAME                                 TYPE        VALUE
    db_recovery_file_dest                string
    db_recovery_file_dest_size           big integer 0
    recovery_parallelism                 integer     0
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> SQL> SQL>
    SQL>
    SQL>
    SQL>
    SQL>
    SQL> startup;
    ORA-19802: cannot use DB_RECOVERY_FILE_DEST without DB_RECOVERY_FILE_DEST_SIZEI need to set the DB_RECOVERY_FILE_DEST_SIZE. How can I do this?
    I cannot to set this parameter when I startup with mount or nomount option.
    Thank you very much!

    Hi,
    So, you can set the parameter DB_RECOVERY_FILE_DEST_SIZE
    by using this other node:
    ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=<size> SCOPE=spfile;And in the first node with problems to start the instance you can start like this:
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  835104768 bytes
    Fixed Size                  2217952 bytes
    Variable Size             624953376 bytes
    Database Buffers          201326592 bytes
    Redo Buffers                6606848 bytes
    ORA-01105: mount is incompatible with mounts by other instances
    ORA-19808: recovery destination parameter mismatchThe above error is normal in this moment because you must to set
    the parameters on other node too, like this:
    node2:
    ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=<size> SCOPE=spfile;
    ALTER SYSTEM SET db_recovery_file_dest='+FRA' SCOPE=spfile;
    SHUTDOWN IMMEDIATE;
    STARTUP;
    node1:
    SHUTDOWN; (again)
    STARTUP; (now without any errors)
    Regards. :-)

  • How to use wild card with variable in powershell

    HI
    i am trying to use wild card with variable but getting an error message, "You cannot call a method on a null-valued expression."
    $src = 'C:\Temp'
    $TabletzipPath = $src + "tab*.zip"
    i would like to copy the tablet zip file which is placed in in $src to be copied in $TabletzipPath.
    i am using tab* because this file name changes continuously. so if i give a fix name for example tablet1.zip than it works fine.

    Not sure if the wildcard will work without seeing how you're using the variable.
    That said, I can say that it looks like you're missing the backslash between the $src path and the wildcard filename. As-is the above code assigns a value to $TabletzipPath of "C:\temptab*.zip" instead of what you are likely expecting ("C:\temp\tab*.zip")
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Using Hidden Fields as Variables

    I am limited in my JavaScript coding abilities. I am building a rather large homeowners insurance application that ultimately computes the premium. There are a ton of options that affect costs and I need a way to store a few numeric values. LC Designer doesn't appear to allow numeric variables (only string variables). As a work around, I have started to setup some hidden numeric fields to store some values and have their values change according to the users actions. I think this is going to work but is inefficient--the PDF ends up containing a lot of information about these hidden fields that is totally irrelevant to the task being asked of them. I thought I should ask a couple of questions before I get too far down the path I am taking.
    My question #1: what are the other caveats in doing it this way?
    My question #2: is there a better way or work-around that is relatively easy to do? (I am not stupid, but I am not much of a coder either). If someone could provide an example of something that can act like a numeric variable (easily accessed & changed) I would be most grateful.

    Paul,
    I have tried without success using the form properties variables tab for entering variables. There is absolutely no documentation on the specific manner in which this is done, or whether it can accommodate arrays. I mean absolutely no documentation that I can find other than references to the LC feature like: "enter variables in the variables tab of the form properties," period. Great! but tell me more please, like specifically how?
    Other than the name of the variable and a value, are there supposed to be:    
    "var"
    "="
    syntax needed, you get my drift, I hope.
    And, what about arrays? And, does it matter if these values are intended to be numeric?
    I think I would prefer to use the variables tab because it centralizes their location, and in some cases I may need to change ones I might use as constants, down the road. This becomes much handier for that.
    Stephen

  • How to use recursive in Information Design Tools?

    Hi all,
    I want to use recursive for count number of employee in each organization. I write code something like this.
    with EmpCTE as
          select RootID = D.ORG_CD , D. ORG_CD, D .ParentOID
          from  (SELECT     CURRENT_LEAF as ORG_CD ,
                   D .DATE_KEY AS DateKey,
                        CASE WHEN LEAF_LEVEL = 1 THEN LEVEL0
                                   WHEN LEAF_LEVEL = 2 THEN LEVEL1
                                   WHEN LEAF_LEVEL = 3 THEN LEVEL2
                                   WHEN LEAF_LEVEL = 4 THEN LEVEL3
                                   WHEN LEAF_LEVEL = 5 THEN LEVEL4
                                   WHEN LEAF_LEVEL = 6 THEN LEVEL5
                        END AS ParentOID
           FROM [BISIPH_HR]. [dbo].[ORG_HIER_STD] H , MST_DATE_DIM D
           where 1= 1
           and D. DATE_KEY between BEGDA and ENDDA
           and D. DATE_KEY between C_L1_BEGDA_KEY and C_L1_ENDDA_KEY
           and D. DATE_KEY between C_L2_BEGDA_KEY and C_L2_ENDDA_KEY
           and D. DATE_KEY between C_L3_BEGDA_KEY and C_L3_ENDDA_KEY
           and D. DATE_KEY between C_L4_BEGDA_KEY and C_L4_ENDDA_KEY
           and D. DATE_KEY between C_L5_BEGDA_KEY and C_L5_ENDDA_KEY
           and D. DATE_KEY between C_L6_BEGDA_KEY and C_L6_ENDDA_KEY
           and D. DATE_KEY between C_L7_BEGDA_KEY and C_L7_ENDDA_KEY
           )   D
          where 1= 1
          AND DateKey = 20140101
          union all
          select EmpCTE. RootID, D .ORG_CD, D.ParentOID
          from (
            SELECT   CURRENT_LEAF as ORG_CD,
                   D .DATE_KEY AS DateKey,
                        CASE WHEN LEAF_LEVEL = 1 THEN LEVEL0
                                   WHEN LEAF_LEVEL = 2 THEN LEVEL1
                                   WHEN LEAF_LEVEL = 3 THEN LEVEL2
                                   WHEN LEAF_LEVEL = 4 THEN LEVEL3
                                   WHEN LEAF_LEVEL = 5 THEN LEVEL4
                                   WHEN LEAF_LEVEL = 6 THEN LEVEL5
                        END AS ParentOID
           FROM [BISIPH_HR]. [dbo].[ORG_HIER_STD] H , MST_DATE_DIM D
           where 1= 1
           and D. DATE_KEY between BEGDA and ENDDA
           and D. DATE_KEY between C_L1_BEGDA_KEY and C_L1_ENDDA_KEY
           and D. DATE_KEY between C_L2_BEGDA_KEY and C_L2_ENDDA_KEY
           and D. DATE_KEY between C_L3_BEGDA_KEY and C_L3_ENDDA_KEY
           and D. DATE_KEY between C_L4_BEGDA_KEY and C_L4_ENDDA_KEY
           and D. DATE_KEY between C_L5_BEGDA_KEY and C_L5_ENDDA_KEY
           and D. DATE_KEY between C_L6_BEGDA_KEY and C_L6_ENDDA_KEY
           and D. DATE_KEY between C_L7_BEGDA_KEY and C_L7_ENDDA_KEY
           ) D
          inner join EmpCTE on D .ParentOID = EmpCTE.ORG_CD
          AND D. DateKey = 20140101
    select distinct
    ORG_DIM.ORG_CD
    , ORG_DIM. ORG_DESC_T
    , EmpCTE. ParentOID
    --, EMP_DIM.EMP_CODE
    , cnt. Child
    , cntemp. ChildEmp
    from MST_EMP_DIM EMP_DIM
    INNER JOIN TXT_EMP_ORG_FACT EMP_ORG_FACT ON EMP_ORG_FACT .EMP_KEY = EMP_DIM.EMP_KEY
    INNER JOIN MST_ORG_DIM ORG_DIM ON ORG_DIM .ORG_CD = EMP_ORG_FACT.ORG_CD
    INNER JOIN EmpCTE ON EmpCTE .ORG_CD = ORG_DIM.ORG_CD
    INNER JOIN TXT_EMPLOYMENT_FACT EMPLOYMENT_FACT ON EMPLOYMENT_FACT.EMP_CODE_KEY = EMP_ORG_FACT.EMP_CODE_KEY
    INNER JOIN (
           SELECT ORG_CD = RootID, Child = COUNT (*)
           FROM EmpCTE
           GROUP BY RootID
    ) cnt ON cnt.ORG_CD = EMP_ORG_FACT. ORG_CD ------------------ ¹Ñº¨Ó¹Ç¹ ORG ·ÕèÍÂÙèãµé ORG »Ñ¨¨ØºÑ¹
    INNER JOIN (
           SELECT ORG_CD = RootID, ChildEmp = Count (*)
           FROM EmpCTE
           INNER JOIN TXT_EMP_ORG_FACT EMP_ORG_FACT ON EmpCTE .ORG_CD = EMP_ORG_FACT.ORG_CD
           INNER JOIN MST_EMP_DIM EMP_DIM ON EMP_ORG_FACT .EMP_KEY = EMP_DIM.EMP_KEY
           INNER JOIN TXT_EMPLOYMENT_FACT EMPLOYMENT_FACT ON EMPLOYMENT_FACT.EMP_CODE_KEY = EMP_ORG_FACT.EMP_CODE_KEY
           WHERE 1= 1
           AND 20140228 BETWEEN EMP_ORG_FACT.ORG_ASSIGN_START_DT_KEY AND ORG_ASSIGN_END_DT_KEY
           AND 20140228 BETWEEN EMP_DIM.EMP_START_DATE_KEY AND EMP_DIM.EMP_END_DATE_KEY
           AND 20140228 BETWEEN EMPLOYMENT_FACT.START_DATE_KEY AND EMPLOYMENT_FACT.END_DATE_KEY
           AND EMP_ORG_FACT. EMP_ASSIGN_PAYROLL_AREA_CD IN ('Z1', 'Z2')
           AND EMPLOYMENT_FACT. EMPLOYMENT_STATUS_KEY = 3
           GROUP BY RootID
    ) cntemp ON cntemp.ORG_CD = EMP_ORG_FACT. ORG_CD
    WHERE 1= 1
    AND 20140228 BETWEEN EMP_ORG_FACT.ORG_ASSIGN_START_DT_KEY AND ORG_ASSIGN_END_DT_KEY
    AND 20140228 BETWEEN EMP_DIM.EMP_START_DATE_KEY AND EMP_DIM.EMP_END_DATE_KEY
    AND 20140228 BETWEEN EMPLOYMENT_FACT.START_DATE_KEY AND EMPLOYMENT_FACT.END_DATE_KEY
    AND EMP_ORG_FACT. EMP_ASSIGN_PAYROLL_AREA_CD IN ('Z1', 'Z2')
    AND EMPLOYMENT_FACT. EMPLOYMENT_STATUS_KEY = 3
    ORDER BY EmpCTE.ParentOID
    and result
    I want to create ChildEmp object for display in web-i report. How can i use recursive in Information Design Tools? or Do you have other solution for this?
    Thank you for your advise.
    Notto Zung

    Hi,
    NoDim is a function of the Bex query formula ,  so you can't delegate that to the cube.
    What object is, and what are you trying to do.   For example,  Sales, and trying to leave out Currency attribute.
    You can do an awdful of customizing  in a Business Layer or Data Foundation,  that is where your solution where probably come from.
    Regards,
    H

  • How to use database without wizard

    Can anyone help me to use recordsets without using the appwizard at the creation of my project?
    the purpose is to input on the database values from a form without using a database project, so in my MFC project I do the following and then I faced problems :
    In the class which I use the database I add the member variable
    CDatabase m-Mydatabase;
    on an "OnButton" function of this class I do :
    m_Mydatabase.Open(NULL,FALSE,FALSE,stringconnect)
    I have many dialog boxes, each dialog has a form from which I get data and put them on the database and vice versa.
    I create fo each dialog box a RecordSet, and I include the .h file of the record set in the dialog class in which I'm going to use it.
    So now how to use this recordset and put the values from controls to database ?
    thank's in advance.

    MFC? CDatabase?
    Hmmmm.....are you aware that this forum is for Java (a programming language) and you are asking a question about MFC (Microsoft C++ windows framework.)
    Perhaps if you could clarify the exact problem that you are having with java, jni or one of the other java libraries?

  • Please Help - Permutations using recursion..

    Please some body help me in generating permutaions using recursion..exact guidelines are as follows..
    Producing consecutive permutations.Need to develop a method that lists one by one all permutations of the numbers 1, 2, �, n (n is a positive integer).
    (a) Recursive method . Given a verbal description of the algorithm listing all permutations one by one, you are supposed to develop a recursive method with the following header:
    public static boolean nextPermutation(int[] array)The method receives an integer array parameter which is a permutation of integers 1, 2, �, n. If there is �next� permutation to the permutation represented by the array, then the method returns true and the array is changed so that it represents the �next� permutation. If there is no �next� permutation, the method returns false and does not change the array.
    Here is a verbal description of the recursive algorithm you need to implement:
    1. The first permutation is the permutation represented by the sequence (1, 2, �, n).
    2. The last permutation is the permutation represented by the sequence (n, �, 2, 1).
    3. If n a ,...,a 1 is an arbitrary permutation, then the �next� permutation is produced by
    the following procedure:
    (i) If the maximal element of the array (which is n) is not in the first position of the array, say i n = a , where i > 1, then just swap i a and i-1 a . This will give you the �next� permutation in this case.
    (ii) If the maximal element of the array is in the first position, so 1 n = a , then to find
    the �next� permutation to the permutation ( ,..., ) 1 n a a , first find the �next�
    permutation to ( ,..., ) 2 n a a , and then add 1 a to the end of thus obtained array of (n-1) elements.
    (iii) Consecutively applying this algorithm to permutations starting from (1, 2, �, n),you will eventually list all n! possible permutations. The last one will be (n, �, 2, 1).For example, below is the sequence of permutations for n = 3 .
    Please help...i have trying this for long time
    plesae help...i apreciate your time..and help..thank you

    public class Permu {
        public static boolean nextPermutation(int a[]) {
                return(permute(a, 0));
        public static boolean permute(int v[], int start) {
             int n = v.length;
             if (start == (n - 1)) {       //if its the end of the sequence genereated then print them
                count++;
                //print(v,n);
                return false;
            } else {
                for (int i = start; i < n; i++) { //swap the start element with the ith element to get n first sequeces
                    int temp = v[start];
                    v[start] = v;
    v[i] = temp;
    permute(v, start + 1);
    //of the n the first is kept constant the same is applied for the rest sequence
    //int tmp = v[i];
    v[i] = v[start];
    v[start] = temp;
    return true;
         public static void main(String[] args) {
    int v[] = {1, 2};//this is the array which should contain the items      to be permuted
    do{
    for(int i=0;i<2;i++)
    System.out.print(v[i]);
    System.out.println();
    }while(nextPermutation(v));
    [i]Output:
    123
    123
    123
    123
    123
    This is exact code i am trying to run...pls someone help me out...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to open document from mac when using windows without transferring the file?

    How can i open a document from mac when i am using windows without transferring it?

    depend on the document program more then anything else really
    when ever I open a doc with word it make a history for undo and redo action file in the same dir
    with bootcamp you only have read not write access to the osx partition so it would fail to be able to create that file
    but if you can get word or whatever program you use to open the file not to place a temp file in the same dir
    or use a program which did not make any type of temp file or used a program where the temp file would be located elsewhere where you decide it would work file

  • How do i sync apps to my iPhone 4S using itunes without losing aps already installed on the phone but with a different apple ID, and i dont have the apple ID??

    how do i sync apps to my iPhone 4S using itunes without losing aps already installed on the phone but with a different apple ID, and i dont have the apple ID??

    How have you managed to get apps on your phone that are tied to a different and unknown AppleID?
    If these apps were not purchased by you, having them is effectively software piracy and you should purchase them using your own AppleID if you want to keep hem.

  • Is there any way to use iPhoto without it moving my files?

    I tried to use iPhoto ONCE last yer when I bought my Mac Mini, and it moved all my photo files around as it pleased, is there any way to stop it fro moving my files? I like the folder/file structure I have given my pictures and I do not need to have that managed.
    At the moment I am using Picasa but I would like to know if it is possible to use iPhoto without it deciding what to do with my files.
    Thanks!

    No
    It is a SQL database and it must control its database - like any database program
    as long as you think of managing files rather than managing photos it is not the program for you - once you think of managing your photos then having the poser of a database for that will be obvious - if that is not what you want then do not use it
    BTW - iPhoto does not ever "move" your files - it makes a copy of each photo in its database and manages it there - your files are never touched
    LN

  • How to get web application to use Tuscany without conflicting with SAP SDO

    Hi,
    We are attempting to run a web application on SAP NetWeaver CE 7.1 SP1 which uses Tuscany SDO.  As it now stands We must use Tuscany because the web application will not run with the SAP SDO implementation provided by Netweaver. To ensure that Tuscany is loaded with priority, we have packaged the Tuscany JAR files and their dependencies as a heavy resource, as described here:
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60642a88-95fe-2b10-d387-a245d48fc257?overridelayout=true
    The final check showed that Tuscany was correctly deployed as a heavy resource and included the following JAR files:
    common-2.2.3.jar
    ecore-2.2.3.jar
    ecore-change-2.2.3.jar
    ecore-xmi-2.2.3.jar
    tuscany-sdo-impl-1.1.1.jar
    tuscany-sdo-lib-1.1.1.jar
    tuscany-sdo-tools-1.1.1.jar
    xsd-2.2.3.jar
    We also verified that the web application using Tuscany has a hard reference to the Tuscany heavy resource.
    However, when we try to run the web application, the following error is logged:  java.lang.LinkageError: Class commonj/sdo/DataGraph violates loader constraints
    The issue is definitely due to some kind of classloading conflict with the SAP SDO library, as the application runs normally when SAP SDO is manually removed from the classpath. Doing this on a production system is unfortunately not an option, though.
    So the question is: how to get web application to use Tuscany without conflicting with SAP SDO?

    I took a look at the "printerReady" example.  Looks like I may be able to use the InetPing (...) function to ping through a range of IP addresses looking for a response.
    Any ideas on how to find the MAC address associated with the IP addresses that respond?
    We may have multiple units responding and the MAC address will allow the operator to determing which unit to connect to.
    I'll try the InetPing to see how it works,
    Kirk

  • I want to use Thunderbird without saving e-mails to PC. How is this possible?

    I want to use Thunderbird without saving any e-mail to local folder in my PC.
    Can you please help me on this?
    thanks.

    There are two types - POP and IMAP
    You would need to logon to your webmail account using a browser and select the option to use IMAP forwarding - assuming that option is available.
    Pop mail accounts can only access the server Inbox.
    Emails are downloaded to your computer and stored in your Thunderbird Profile folder. So this type may not suit your requirements.
    IMAP mail accounts offer a remote view of folders and emails stored on the server.
    You subscribe to see those folders. Then Headers are downloaded and when you select to view an email, the email is downloaded to a temp cache.
    Subscribed folders that are synchronised, download a copy of the folder and store it in your Thunderbird Profile. But these folders are constantly updated to reflect what is stored on the server.
    So your best option would be to create IMAP mail account, subscribe to see folders on the server, but do not select to synchronise those subscribed folders.
    Emails stored in your Thunderbird Profile on your computer load faster than those that have to be retrieved from the server each time.
    Info on synchronising, so you can see how to enable/disable.
    * https://support.mozilla.org/en-US/kb/imap-synchronization

  • I have two iPhones, one is a 4s and the other is a 3g. I have not used my 3g in some time now. I recently restored it but I cannot use it without a sim card, it says i have to "activate it."

    I have two iPhones, one is a 4s and the other is a 3g. I have not used my 3g in some time now. I recently restored it but I cannot use it without a sim card, it says i have to "activate it." I cannot place my iPhone 4s sim card in it (too small), and i do not want to get a new contract or sim card for an iPhone that i do not ues very much.

    Thanks for your help, but i cannot borrow a noral sim card now, my family has all up graded to iPhone 4s's, i have done this before, but one of my family had the same type of iphone so i could use theirs. Now i am the only one who still holds on to their old phone... I am not sure about buying an adapter...

  • How to create a counter using Oracle SQL Developer?

    Is there any way to create a counter using Oracle SQL Developer to create the below scenario. Meaning it will recorded down the name of user and ID and time and the date they login.
    Library portal home statistics shows how many users (outside and within the campus) visit the library portal.
    Page Access statistics is recorded on an hourly basis. Users may select the statistics by
    yearly (statistics displayed by all months in the selected year)
    monthly (statistics displayed by all days in the selected month)
    daily (statistics displayed by all hours in the selected day)

    I'm giving here one basic post - hope this will solve your problem --
    SQL>
    SQL>
    SQL> create table audit_info
      2   (
      3     usr        varchar2(50),
      4     log_time   timestamp(6)
      5    );
    Table created.
    SQL>
    SQL>
    SQL>  create table err_log
      2     (
      3       log_cd      varchar2(20),
      4       log_desc    varchar2(500)
      5     );
    Table created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_err(errcd   in  varchar2,
      2                                        errnm   in  varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into err_log values(errcd,errnm);
      7      commit;
      8    end;
      9  /
    Procedure created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_aud(ud   in varchar2,
      2                                        unm  in varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into audit_info values(ud,unm);
      7      commit;
      8    exception
      9      when others then
    10        ins_err(sqlcode,sqlerrm);
    11    end;
    12  /
    Procedure created.
    SQL>
    SQL>
    SQL>
    SQL> create or replace trigger log_odsuser1
      2   after logon on odsuser1.schema
      3   begin
      4     ins_aud('ODSUSER1',sysdate);
      5   exception
      6     when others then
      7       ins_err(sqlcode,sqlerrm);
      8   end;
      9  /
    Trigger created.
    SQL>
    SQL*Plus: Release 9.2.0.1.0 - Production on Tue Jun 12 12:21:09 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL>
    SQL>
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL>
    SQL> select * from audit_info;
    USR
    LOG_TIME
    ODSUSER1
    12-JUN-07 12.00.00.00000000 AMHope this will solve your purpose.
    Regards.
    Satyaki De.

  • Modbus Ethernet read and write to a Eurotherm 6180XIO Modbus server using LV8.2 shared variables

    I am having EXTREME difficulty trying to establish communications with a Modbus device using LV8.2 shared variables.  The device is a Eurotherm 6180XIO Datalogger configured as a Modbus master.  The PC and a cFP-1804 are slaves.  All IP addresses are set correctly.  This approach using shared variables would seem simple, but I can't find any examples or proper guidance on how to get it working.  I am trying to avoid having to mess around with TCP/IP, OPC, or any other old-fashioned method.
    I have read many threads on related topics but none directly apply to this situation.  I have created a library containing a Modbus I/O server and shared variables bound to read and write holding registers.  I have followed all recommended tips for creating such variables but I can neither read or write data.  All data types are U16 due to Modbus protocol limitations.  I have also applied the LV x10 factor in the most significant digit in the register offset (6 digits instead of 5).
    I have a cFP-1804 on the same network which reads into the datalogger OK.  The registers I use are 31000 (for CH0 on module 0, 31002 for CH1, etc) and the data can be read as FLOAT32.  I have updated the firmwate on the 1804 to the latest level.  I cannot even get shared variables to read SGL values.  Using registers 301001 for CH0 and 301002 for CH1 I can only read U16 values, and not a 2-word SGL.
    Third party Modbus simulation software is able to write to and read from registers very easily, but not LabVIEW.
    Some questions are:
    - do I use a Modbus master or slave as an I/O server in the library as a target for binding the shared variables?
    - is there some other wierd translation in register offsets between LabVIEW and traditional Modbus?
    - is this actually possible using shared variables or am I wasting my time?

    Sending the whole 60-character string using a string or array would be the most efficient.  I have tried both methods, and these only cause the datalogger to flag a message log but no text is displayed.
    For a string variable, I have used the following binding "My Computer\Modbus Test.lvlib\ModbusServer6180\442305", where ModbusServer6180 is a Modbus I/O server configured with the logger IP address, and 42304 is the register offset at the start of the text block in the logger.  I need to write to 30 consecutive registers starting with this one.  I am not using buffering and have not enabled single writer.
    Can anyone confirm whether this method should work in 8.2?
    Does the string need a special termination character?

Maybe you are looking for