Querying, then generating ArrayLists with variable names

Hi, all:
I have two problems: first, I want to run through an array list called nodeList containing Nodes, each of which possesses a 5-digit value called culture. I want each Node to try to find out whether or not there are any other Nodes that have the same culture value that it does, i.e. if Node i has culture value 74936 and there are 4 other Nodes with the same culture value, I need to find 5 total Nodes with culture value 74936.
  public void statistics(){
       for (int i = 0; i < nodeList.size (); i++) {
            Node node = (Node) nodeList.get (i);
            int cultSame = node.getCulture();
            boolean same = cultSame == next.cultSame;
            if (same == true){
                 arrayListCreator();
                 //generated Arraylist add.node;
  }I'm going astray at next.cultSame. I'm not sure how to structure the query to the ArrayList nodeList to find all the other Nodes with the same culture value.
Second: I want to create a little method to generate ArrayLists with names based on the integers that will be stored in them. Here's the method so far:
  public void arrayListCreator () {
       String name = String.valueOf(cultSame);
       name = new Arraylist();
  }cultSame is a 5-digit integer. The ArrayLists will be used to store all the nodes with the same cultSame value, like 74936, or whatever. If the ArrayList is storing nodes with the cultSame value of 74936, I want the name of the ArrayList to be the string 74936. I want to call on this method (like you can see in the first method) to generate the ArrayList with its given name and then use it to store the nodes in it. Once I've done that, I can figure out the statistics stuff on my own, I think. I'm just not sure how to create the ArrayLists with a name that's a variable, i.e. "name" should be the string variable containing a 5-digit number.

Nquirer101 wrote:
I probably should have separated this out into two threads. First, I'd like to know what I'm doing wrong when I'm building that boolean query to find out in the nodeList if any of the other nodes have the same culture value as the node doing the querying.Then by all means do so, from the looks of it, the scope of the thngs that need to be discussed/addressed is too broad for one thread. First there's the issue of your erroneous understanding of variable, then there's the concept of the Map data structure, then the implementation of it in Java, along with the idea of interface

Similar Messages

  • Table for 2way,3way matching .query to generate invoice with 2 ways matchin

    hi
    table for 2way,3way matching .query to generate invoice with 2 ways matching
    plz help me
    thanks

    Hello John, I put the (1,2,3) list in the query to show it works with multiple invoices.
    You should comment out the conditions:
    select a.invoice_no, b.child, sum(a.amount) from invoice_detail a,
    select
    child,
    decode (instr(scbp,'.'),0,scbp,
           substr(scbp, 1, instr(scbp,'.') -1)
           ) starting_child
    from (
    select ltrim(sys_connect_by_path(child,'.'),'.') scbp,
    child from
    element_relation
    start with child in (select element_id from invoice_detail /* where invoice_no in (1,2,3) */)
    connect by child = prior parent
    ) b
    where a.element_id = b.starting_child
    /* and a.invoice_no in (1,2,3) */
    group by a.invoice_no,b.child
    order by 1,2to show it works for all invoices
    regards, Tony

  • How to declare internal table in BADI with variable name beginning with 0..

    Gurus,
    How to declare an internal table within a BADI. I have to implement a BADI UC_TASK_CUSTOM for BCS to BW load and there i have to  declare an internal table like:
    TYPES:          BEGIN OF t_cube_data,
                    0cs_version       TYPE /bi0/oics_version,
                    0sem_cgcomp       TYPE /bi0/oisem_cgcomp,
                    bcs_vers          TYPE /bic/oibcs_vers,
                    bcs_lcus          TYPE /bic/oibcs_lcus,
                    bcs_ldch          TYPE /bic/oibcs_ldch,
                    bcs_invcom       TYPE /bi0/oibcs_invcom,
                    bcs_litem         TYPE /bic/oibcs_litem,
                    bcs_llob          TYPE /bic/oibcs_llob,
                    bcs_lmay          TYPE /bic/oibcs_lmay,
                    0move_type        TYPE /bi0/oimove_type,
                    pcompany         TYPE /bi0/oipcompany,
                    bcs_lprg          TYPE /bic/oibcs_lprg,
                    figlxref3         TYPE /bic/oifiglxref3,
                    fiscyear         TYPE /bi0/oifiscyear,
                    fiscper3         TYPE /bi0/oifiscper3,
                    fiscvarnt        TYPE /bi0/oifiscvarnt,
                    curkey_gc        TYPE /bi0/oicurkey_gc,
                    unit             TYPE /bi0/oiunit,
                    cs_trn_gc        TYPE /bi0/oics_trn_gc,
                    cs_trn_qty       TYPE /bi0/oics_trn_qty,
              END OF t_cube_data
    But with this declaration it gives a error saying that u cannot have a variable beginning with 0...like 0cs_version....
    but i have to do it for my functionality to wrk...
    Please help me do it....
    how can i declare a internal table that allows me to have variable names that start with 0....
    Please help....Its URGENT....
    Thanks
    Sam

    Murali,
    I need to have 0 before the variable name in the declaration of the internal table....how can i attain that....
    Please suggest...
    Thanks
    Sam

  • Problem with variable name in ZXRSRTOP include (virtual KF)

    Hi all,
    I am coding a routine to use a virtual key figure in the BEx.
    I have just a little problem with the name of a variable:
    as explained in the documentation, I created the variable with the prefix G_POS_, the name of the infocube and the name of the infoobject all together:
    DATA: G_POS_BC_ST_003_C_DIV__C_COMPAR   type i.
    The problem is that this variable name is longer than 30 characters, so the system doesn't accept it.
    Is there a workaround, other than changing the name of the infoobject (which is a navigational attribute)?
    Any help would be appreciated.
    Loï

    Hello Marc,
    I understand that I have to use a concatenate function and a dynamic call of the variable with (variable) instruction, but i do not understand how to implement it.
    the infocube name is BC_ST_003
    the characterisdtic name is C_DIV__COMPAR
    So, in the include ZXRSRTOP the statement
    DATA : G_POS_BC_ST_003_C_DIV__COMPAR
    does not work due a length problem (see first post)
    But in the same include the statement
    +DATA: l_global_name type c.
    concatenate 'GPOS' 'BC_ST_003' 'C_DIV__C_COMPAR' into l_global_name separated by '_'.+
    drives to the following error : statement is not accessible.
    Could u please provide me with an example of the code in the include ZXRSRTOP, and in the include ZXRSRZZZ for the use of this variable.
    Thanks in advance.
    Loï

  • Servicegen - Issue with Variable Names - WLS 8.1

    Hi Experts
    I am trying to expose an EJB as a Webservice.. I assembled the ear using SERVICEGEN exposed by Weblogic 8.1
    To my dismay the generated WSDL (even the web-services.xml) are not having the variable names which I gave in my webservice method. Instead I get String, String0, String1 and so on...
    Kindly help me get over this problem.
    Thanks and Regards,
    Gopal.

    your application miight not be using this libraries but there are many shared libraries which are configured could be using. please check whether config.xml file of your domain contains the entries for this library.Problem running simple portal tutorial question

  • Delete with variable name

    I need to run a SQL command in one of the step in my procedure where I need to run command like >>>> Delete from TableA where Column1 LIKE 'MY_VAR' but while running its not substituting the value of MY_VAR.....Any clue how can I run command like this where I have refresh the variable before executing the procedure in the package so variable is declared before procedure execution.I dont wanna refresh the variable with Quotes around because I am using this variable in different places. Any clue how can I put quotes around MY_VAR in Like stament.
    I have also tried this>> Delete from TableA where Column1 LIKE '''MY_VAR''' but still variable value is not substituting.

    The substituted variable will never appear in the log, how are you figuring out it does not get substituted?
    In the syntax, you should use something like the following:
    Delete from TableA where Column1 LIKE '#MY_VAR'If you use the expression editor to do select the variable name, it should ensure that it is put in correctly. To see if it is actually recognised, in the log, you should see
    Delete from TableA where Column1 LIKE '#MyProject.MY_VAR'Craig

  • BaOpenfile with variable name

    Hi I was wondering if it's possible to use baOpenFile() to
    open a file using a variable name. Like selectImg = coco.jpg
    getURL('lingo: baOpenFile(_movie.path & selectImg ,
    "Normal")');
    this is the command in the flash file. If I use a specific
    name like GA-VE4-IMG1.jpg instead of the variable name it's work.
    the file browser of xp open and display the file. What's
    weird is when I use the variable without the " " instead of a file
    name it open windows explorer ..... wooh! any clue on how to solve
    my problem.

    it does'nt work, nothing happend. Don't forget that I'm in
    flash so if my variable is
    selectImg = _movie.path & "GA-VE4-IMG1.jpg" the result is
    0. And I cannot use the specific name cause it come to the point
    before. If I use direclty
    getURL('lingo: baOpenFile(_movie.path &
    "GA-VE4-IMG1.jpg", "Normal")'); it's working but it has to be
    dynamic cause if I have 50 images, i don't want to use 50 line of
    script. Right now
    _global.selectImg = etage + "-" + systeme + "-IMG1.jpg";
    it use the floor (etage) variable and system (systeme)
    variable to define the name of the file to open. ex:
    GA-VE1-IMG1.jpg = (garage)-(VE1 system)-Image1.jpg. When I go to an
    other system i use the same code and the file change dynamicly to
    GA-A2-IMG2.jpg etc.. like that If i have 10-25 systems, i dont have
    to touche the code again. All i want to do is to lauch the jpg. I
    was using the getURL within flash but bacause it's in director
    getURL does'nt work anymore. BuddyAPI is a good xtra but if I can't
    use variable it's not that good.

  • Generate DDL with schema name prefix

    Hi All
    We are trying to generate DDL with the schema prefix on all statements.
    eg. CREATE schema_name.table_name
    Is it possible to do this with Designer 6i/9i or even 10g? I guess it might a server generator preference setting.
    Thanks
    Kathy

    Well dbms_metadata.get_ddl will generate the ddl script with username by default if you dont want you can try your own script. Check the sample function which create to fix that.
    Hope this helps.
    SRI>set long 1000000
    SRI>create or replace function aaa(nstr varchar2,nuser varchar2) return varchar2 is
    2 begin
    3 return replace(nstr,chr(34)||nuser||chr(34)||'.','');
    4 end;
    5 /
    function created
    SRI>select dbms_metadata.get_ddl('TABLE','DEPT') from dual
    DBMS_METADATA.GET_DDL('TABLE','DEPT')
    CREATE TABLE "SCOTT"."DEPT"
    ( "DEPTNO" NUMBER(2,0),
    "DNAME" VARCHAR2(14),
    "LOC" VARCHAR2(13)
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TOOLS"
    SRI>select aaa(dbms_metadata.get_ddl('TABLE','DEPT'),'SCOTT') from dual;
    AAA(DBMS_METADATA.GET_DDL('TABLE','DEPT'),'SCOTT')
    CREATE TABLE "DEPT"
    ( "DEPTNO" NUMBER(2,0),
    "DNAME" VARCHAR2(14),
    "LOC" VARCHAR2(13)
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TOOLS"
    -Sri

  • Generate XML with tag names generated dynamically.

    Hi Mark,
    I want to generate xml in the following way using SQLXoperators.
    But only problem is when i use the operator, the tag name should be supplied before in hand as parameter.
    So it works well when the data for the tags are stored in seperate columns then its pretty simple.
    But lets say the whole hierarchy of the nodes is stored in one table with ID-->PARENTID relationship and the text is stored in a column called description.
    Now using CONNECT BY PRIOR i get the hierarchy and now based on the description value i have to generate the tags and then fill in the other details.
    This is just a summary of what i want. the below sample has much more than that and actual data comes from more than one table.
    But if i get the solution for what i asked before i think i can build the test of the thing.
    <?xml version="1.0" encoding="UTF-8"?>
    <SequenceData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SequenceData.xsd">
         <Header>
              <TemplateName>Template(XML)</TemplateName>
              <TemplateVersion>1.1</TemplateVersion>
              <CreatedUser>rsh2kor</CreatedUser>
              <CreatedDate>17-06-2005 12.12.22</CreatedDate>
         </Header>
         <List>
              <LoadPoints>
                   <LoadPoint description="Loadpoint1_in_list(level one)">
                        <SetPhase>
                             <SetPhaseVariables>
                                  <SetPhaseVariable>
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>100</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                             </SetPhaseVariables>
                             <MonitoredVariables>
                                  <MonitoredVariable>
                                       <ID>12344<ID>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Limit>10</Limit>
                                       <Tolerance>0.0</Tolerance>
                                       <Operator>&gt;</Operator>
                                       <AlertType>STOP</AlertType>
                                  </MonitoredVariable>
                             </MonitoredVariables>
                        </SetPhase>
                        <WaitPhase>
                             <WaitingTime>10</WaitingTime>
                             <MonitoredVariables>
                                  <MonitoredVariable>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Limit>10</Limit>
                                       <Tolerance>0.0</Tolerance>
                                       <Operator>&gt;</Operator>
                                       <AlertType>STOP</AlertType>
                                  </MonitoredVariable>
                             </MonitoredVariables>
                        </WaitPhase>
                        <MeasPhase>
                             <MeasPhaseVariables>
                                  <MeasPhaseVariable>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Result>0</Result>
                                  </MeasPhaseVariable>
                             </MeasPhaseVariables>
                        </MeasPhase>
                   </LoadPoint>
              </LoadPoints>
         </List>
         <Loop Iteration="5">
              <LoadPoints>
                   <LoadPoint description="Loadpoint2_in_Loop">
                        <SetPhase>
                             <SetPhaseVariables>
                                  <SetPhaseVariable LoopCount="1">
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>10</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                                  <SetPhaseVariable LoopCount="2">
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>20</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                                  <SetPhaseVariable LoopCount="3">
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>30</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                                  <SetPhaseVariable LoopCount="4">
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>40</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                                  <SetPhaseVariable LoopCount="5">
                                       <Name>pRail</Name>
                                       <Unit>bar</Unit>
                                       <Value>50</Value>
                                       <SettlingTime>0.0</SettlingTime>
                                  </SetPhaseVariable>
                             </SetPhaseVariables>
                             <MonitoredVariables>
                                  <MonitoredVariable>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Limit>10</Limit>
                                       <Tolerance>0.0</Tolerance>
                                       <Operator>&gt;</Operator>
                                       <AlertType>STOP</AlertType>
                                  </MonitoredVariable>
                             </MonitoredVariables>
                        </SetPhase>
                        <WaitPhase>
                             <WaitingTime>10</WaitingTime>
                             <MonitoredVariables>
                                  <MonitoredVariable>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Limit>10</Limit>
                                       <Tolerance>0.0</Tolerance>
                                       <Operator>&gt;</Operator>
                                       <AlertType>STOP</AlertType>
                                  </MonitoredVariable>
                             </MonitoredVariables>
                        </WaitPhase>
                        <MeasPhase>
                             <MeasPhaseVariables>
                                  <MeasPhaseVariable>
                                       <Name>MeasPoint</Name>
                                       <Unit>pascal</Unit>
                                       <Result>0</Result>
                                  </MeasPhaseVariable>
                             </MeasPhaseVariables>
                        </MeasPhase>
                   </LoadPoint>
              </LoadPoints>
              <List>
                   <LoadPoints>
                        <LoadPoint description="Loadpoint3_in_list(level two)">
                             <MonitoredVariables/>
                             <SetPhase>
                                  <SetPhaseVariables>
                                       <SetPhaseVariable>
                                            <Name>pRail</Name>
                                            <Unit>bar</Unit>
                                            <Value>100</Value>
                                            <SettlingTime>0.0</SettlingTime>
                                       </SetPhaseVariable>
                                  </SetPhaseVariables>
                                  <MonitoredVariables>
                                       <MonitoredVariable>
                                            <Name>MeasPoint</Name>
                                            <Unit>pascal</Unit>
                                            <Limit>10</Limit>
                                            <Tolerance>0.0</Tolerance>
                                            <Operator>&gt;</Operator>
                                            <AlertType>STOP</AlertType>
                                       </MonitoredVariable>
                                  </MonitoredVariables>
                             </SetPhase>
                             <WaitPhase>
                                  <WaitingTime>10</WaitingTime>
                                  <MonitoredVariables>
                                       <MonitoredVariable>
                                            <Name>MeasPoint</Name>
                                            <Unit>pascal</Unit>
                                            <Limit>10</Limit>
                                            <Tolerance>0.0</Tolerance>
                                            <Operator>&gt;</Operator>
                                            <AlertType>STOP</AlertType>
                                       </MonitoredVariable>
                                  </MonitoredVariables>
                             </WaitPhase>
                             <MeasPhase>
                                  <MeasPhaseVariables>
                                       <MeasPhaseVariable>
                                            <Name>MeasPoint</Name>
                                            <Unit>pascal</Unit>
                                            <Result>0</Result>
                                       </MeasPhaseVariable>
                                  </MeasPhaseVariables>
                             </MeasPhase>
                        </LoadPoint>
                   </LoadPoints>
              </List>
         </Loop>
    </SequenceData>
    Pls help as soon as possible.
    Thanks.

    I'm not Mark, but check out this article it may be helpful.
    http://www.oracle.com/technology/oramag/oracle/05-may/o35asktom.html
    In 10g there are other SQL statements besides connect by prior for parent child relationships.
    such as:
    CONNECT_BY_ROOT—returns the root of the hierarchy for the current row; this greatly simplifies our query. (See below for an example).
    CONNECT_BY_ISLEAF—is a flag to tell you if the current row has child rows.
    CONNECT_BY_ISCYCLE—is a flag to tell you if the current row is the beginning of an infinite loop in your hierarchy. For example, if A is the parent of B, B is the parent of C, and C is the parent of A, you would have an infinite loop. You can use this flag to see which row or rows are the beginning of an infinite loop in your data.
    NOCYCLE—lets the CONNECT BY query recognize that an infinite loop is occurring and stop without error (instead of returning a CONNECT BY loop error).

  • Reading flat files with variable names in SSIS

    I have a ssis package that reads a flat file from a network drive (using a flat file connection manager) and loads the data into sql server tables. I have this working on a fixed file name, however in reality the file name will not be the
    same from run to run.      Essentially, I need to check a folder each day and if there is a file there with a certain prefix (for example, 'datafile'), I need to process this file(s). In other words, if there is a file in the folder
    called datafilexyz, my process needs to read it in and process it.    If there are files named datafileabc, datafiledef, and testfile123, I need to read in and process the datafileabc and datafiledef flat files.    
    I'm not sure how to make this work.     I haven't had any SSIS training, just what I can find on the internet and looking at existing SSIS packages (I haven't found any that do what I'm trying to do here) so I'm kind of lost.   
    Any help is appreciated.  

    this is working well.    How can I, after loading each flat file, move the flat file to an archive folder?    I'm trying to use a file system task, but doing something wrong.    I created and reference
    an archive folder connection manager in the destination connection, and reference the original folder connection manager for the source connection, but get 'sourcepath is not valid on operation movefile'.    I think a file system task is what
    is needed (within the foreach loop after the data load for each flat file), but I'm not doing something correctly.
    Sounds fine except for one thing. Did you assign the filename variable to connection string property of the source file connection manager used by file system task?
    Also it should be existing file option you should choose for
    source connection and existing folder for destination.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Save NI report generator files with new names

    I was trying to save labview library files under new names so that I could adapt the code but the 'Save As' option is greyed out. In certain cases, when I try to copy and paste the code, I get broken wires and cannot get the VI's to work.
    I have been using the report generator toolkit which is quite limited. I was trying to delete a row from an spreasheet but there is no function to do this. So, one workaround that was suggested to me was to use the 'Excel Insert Cells' VI and change the code to instruct it to 'clear' cells rather than 'insert' them. This works, but I wanted to save a copy of the amended file under a different name so that it was independent of the installed library files but I can't seem to do this. I tried to copy out the code but got broken wires even though I have been able to do this in other instances.
    Any suggestions?
    Thanks,
    Will

    Hi Will,
    I had the same problem with a project and found the following workaround:
    To ensure the original function of any library VI, it's not recommended to just change the VI to do something else.
    Therefore I expanded the VI to do both, the original functionality and the special function I needed.
    I made an extra Input to the VI, which is a boolean Input.
    With that extra optional Input I can now choose the function I want to do.
    I made the "False" case to be default. This case works like the original function.
    The "True" case is built to do my special function.
    This workaround is quite easy and not dangerous. For all projects, which would use the function in their normal use case it's working just as if the file was unchanged.
    And for projects using special functionality I can add a "True" constant to my VI Input and the function works as I want..
    Hope this workaround helps to fix your problem!
    Kind regards
    adigator

  • Generate signal with variable pulsewidth and period

    Hallo,
    I want to generate a square signal where I can modify the pulswidth, period, amplitude, frequenzy, duty cycle...at the Front Panel.
    I also want to be able to generate just a a single puls/period on the one hand and a puls-train on the other.
    I´am working with a AT-MIO-16E-1(DAQ-Card), a SCB-68 and LabView 7.
    I`d be very grateful, if anyone is able to help me...
    Thanx a lot...
    Greets Daniel

    Daniel,
    It sounds like you are trying to generate digital pulses using your DAQ board.  The counter output is designed to be a digital signal.  That is, the amplitude of the signal is either 0 V or +5V.  Therefore, the amplitude cannot be controlled.
    However, there are some great examples in the LabVIEW Example Finder that will help you implement your two options.
    Access the Example Finder by navigating to Help >> Find Examples...  Then go to Hardware Input and Output >> DAQmx >> Generating Digital Pulses. There are several examples there which you can check out to get you started.  The most interesting to you are likely Gen Dig Pulse Train-Continuous.vi and Gen Dig Pulse.vi.
    I hope this gets you started in the right direction.
    Stephen Meserve
    Applications Engineering
    National Instruments
    Stephen Meserve
    National Instruments

  • Query Errors:  ORA-01036: illegal variable name/number

    Hi All,
    When I run a query against two tables within our data warehouse I am getting an IO Exception. Due to company restrictions I can't quickly increase my IO Limit So what I have done is written a query that cycles through all of the large tables partitions and extracts the data.
    The problem I get is that when I run this query in Toad. It thinks my :MI, :SS are variables and wont run this. Does anyone know what I can do to resolve this issue?
    create table completion_log
      action_complate_dt        date,
      table_name                   varchar2(1000),
      partition_number            varchar2(1000)
    nologging
    compress ;
    create table  STORE_DATA_HERE
      field_1                varchar2(1000),
      field_2                date,
      field_3                varchar2(1000)
    nologging
    compress ;
    commit;
    begin
       for ptn in (select partition_name p from all_tab_partitions t where table_name='REALLY_LARGE_TABLE')
       loop
          execute immediate q'^
          insert /*+ APPEND */ into STORE_DATA_HERE
            SELECT  field_1,
                    field_2,
                    field_3      
              FROM  REALLY_LARGE_TABLE partition (^'||ptn.p||q'^)
             WHERE  field_3 IN (  'XXXX',  'YYYY')
                    AND data_date BETWEEN TO_DATE('07/12/2011 00:00:00', 'DD/MM/YYYY HH24:MI:SS')
                            AND TO_DATE('08/12/2011 23:59:59', 'DD/MM/YYYY HH24:MI:SS')
          ^';
         insert into completion_log values (sysdate,'STORE_DATA_HERE',ptn.p);
         commit;
       end loop;
    end;

    In your case it is quite easy...
    just remove the collons from the format and the literal...and off you go
    begin
       for ptn in (select partition_name p from all_tab_partitions t where table_name='REALLY_LARGE_TABLE')
       loop
          execute immediate q'^
          insert /*+ APPEND */ into STORE_DATA_HERE
            SELECT  field_1,
                    field_2,
                    field_3      
              FROM  REALLY_LARGE_TABLE partition (^'||ptn.p||q'^)
             WHERE  field_3 IN (  'XXXX',  'YYYY')
                    AND data_date BETWEEN TO_DATE('07/12/2011 000000', 'DD/MM/YYYY HH24MISS')
                            AND TO_DATE('08/12/2011 235959', 'DD/MM/YYYY HH24MISS')
          ^';
         insert into completion_log values (sysdate,'STORE_DATA_HERE',ptn.p);
         commit;
       end loop;
    end;

  • 10.4.8 Server Admin will not generate CSR with unit name containing "/"

    I work in a University and our Computer Store is a reseller for Thawte SSL certs. The "Organizational Unit" that my department was assigned is "Outreach Technology Services/World Campus", but when I try to generate a CSR for one of our Web sites, the Organizational Unit gets truncated to just "Outreach Technology Services" which my reseller won't accept as my Organizational Unit name.
    How can I get around this?
    I am running 10.4.8 Server.

    No the, the gui field is showing the full name "Outreach Technology Services/World Campus" but when I submit the CSR to the department that handles these, they use openssl req -noout -text -in test.csr to view the contents.
    Certificate Request:
    Data:
    Version: 0 (0x0)
    Subject: CN=secure.worldcampus.psu.edu, O=The Pennsylvania State University, OU=Outreach Technology Services/World Campus, C=US, ST=Pennsylvania, L=University Park
    Subject Public Key Info:
    Public Key Algorithm: rsaEncryption
    RSA Public Key: (1024 bit)
    Modulus (1024 bit):
    00:cf:f2:a7:e8:56:38:71:61:af:d1:29:1d:0d:37:
    a5:5f:18:be:01:99:37:0d:db:45:1e:20:89:9f:33:
    ff:be:fe:be:f0:25:b2:c0:44:08:56:d3:71:57:c1:
    1d:87:2d:5e:54:99:07:13:23:58:26:93:e7:06:d2:
    50:5f:b5:15:dc:69:76:09:62:02:39:e1:61:d2:9e:
    3e:a8:ea:20:7a:49:97:eb:a4:ed:80:24:2b:9f:4f:
    39:0e:40:cb:4c:46:0f:e3:5f:2f:73:d5:81:80:ed:
    fa:08:21:5f:c4:a8:84:b1:6a:d8:3e:6b:e3:a3:08:
    7c:77:b0:d0:82:c4:09:35:a7
    Exponent: 65537 (0x10001)
    Attributes:
    a0:00
    Signature Algorithm: sha1WithRSAEncryption
    af:bb:0b:42:43:b1:f0:82:e4:62:c7:f7:cc:eb:8b:1e:56:fa:
    1b:63:db:a4:2e:1c:07:b3:00:ff:fa:42:3b:4a:8c:7c:de:e0:
    1e:f1:87:d7:44:0f:99:99:b6:a1:89:77:93:a4:d0:48:2f:7e:
    d3:5d:95:e6:3e:4e:29:67:36:a4:60:00:17:a2:45:c5:28:87:
    aa:01:5c:bb:20:62:05:09:a5:e5:11:e0:10:b7:96:0e:c1:2e:
    bb:dd:7a:d6:4e:61:8d:d3:ae:41:54:27:8a:3f:d9:ab:bb:37:
    6e:5a:28:f0:7d:a7:ac:cd:37:4f:7c:57:97:14:7e:ad:c0:c7:
    e4:64
    But it looks like that /World Campus is there, so It must be their .cgi that is unable to handle the "/"
    So NEVER MIND. I should have checked the contents first.

  • Help! please with variable name problems

    I have a program that administers a quiz but the no. of questions in the quiz is variable, qarray holds the questions. I am using card layout and i need to set up a new card for each questions. The number of answer choices to multiple choice questions are also variable and i'm going to have the same sort of problem when i'm creating checkboxes. Is there any way around this. I'm getting an error message variable required but value found.
    noOfQuestions = qarray.length;
    for(int i=1; i<noOfQuestions; i++)
    Card = "Card"+i;
    String cardname;
    JPanel (Card) = new JPanel();
    Card.add(new JLabel("Question "+i));
    if(qarray.oftypemc())
    Card.add(new JLabel(""+qarray[i].getQuestion()));

    Look, some guy invented ARRAYs.
    So, do
    noOfQuestions = qarray.length;
    JPanel[] cards = new JPanel[noOfQuestions];
    for(int k=0; k<noOfQuestions; k++) // note: index must start at 0
        cards[k] = new JPanel();
        cards[k].add(new JLabel("Question " + k));
    }or better yet
    CardLayout cardLayout = new CardLayout(); // cardLayout should be global
    JPanel allCards = new JPanel();           // allCards should be global
    allCards.setLayout(cardLayout);
    JPanel card;
    String cardName;
    noOfQuestions = qarray.length;
    for(int k=0; k<noOfQuestions; k++) // note: index must start at 0
        cardName = "Question " + k;
        card = new JPanel();
        card.add(new JLabel(cardName));
        allCards.add(card, cardName);
    }Now, I leave it to you to figure out why cardLayout and allCards should be global fields.

Maybe you are looking for

  • How to access MDS in java

    Hi, I am looking for a way to access files in MDS in java. I have some files (XSD's, XSLT etc) deployed to the SOA Suite MDS repostory and I would like to access them from some custom code, which is to be used in a custom XPath Extension Function. Do

  • Pictures not transferring to computer

    Hi Apple people, I have the Iphone 4s.  I haven't done the iOS update to 7 (and I'm not going to, bc I have heard so much bad press about it).  All of a sudden I am unable to transfer my pictures to my PC.  Never had a problem before, and the phone s

  • Jetdirect 300x print server wont print from my imac

    I have an iMac running 10.6.8 and I would like to print over my newtwork using a hp jetdirect 300x which is attached to a hp 5p lazerjet printer. The windows xp notebook i have works fine through it. I can see a jetdirect socket on the list on my Mac

  • What's wrong with my iPod Touch 4?

    Okay, so something's wrong with my iPod. I had other two issues, well, I still have, that led to this problem. My iPod wont turn sideways, even though the Portrait orientation isn't on, and an "Undo Typing" popup keeps appearing on my screen even tho

  • Adobe Bridge crashes when i open a Lacie external hard rive. Started when i uploaded Yosemite?

    Adobe Bridge crashes when i open a Lacie external hard rive. Started when i uploaded Yosemite?