Toad Sql - convert several fields of data online - character-by-character

I recently started working in Oracle TOAD and was given the task of creating a SQL statement that will take eight fields of 250-column of a table and convert them to 2000 lines with line numbers.

I have no idea how to read character by character (most of the characters being blank).

How to use a variable which increases the value of a?

I tied Select substr(myFieldA,varA,1) from myTable

but he dislikes the variable, also how to make the statement in a loop.

My result will be similar to:

0001 THERE

N 0002

0003

0004 ARE...

0251 N

0252

0253. THERE

Any help will be greatly appreciated

Hmmm - why you think you should post a TOAD and SQL question if the instance of SQL Developer?

Mark ANSWER it and repost it in SQL and PL/SQL forum.

Tags: Database

Similar Questions

  • Converting varchar2 field in date format: DD-ME-AAAA

    Thanks in advance for the help anyone about it because I know that it takes your time and expertise. I'm pretty new to SQL but learn my way through it just have a problem with a text to the conversion of date field. It is an Oracle database 10g and I do not write in SQL. There is a field called demand which is formatted in varchar2 format DDMMYY. There is also an updated field shaped like a date called payment which is in JJ-ME-YYYY format.

    Essentially, I need to make a simple payment > = request, however as you can see that is an issue with this being a field of varchar2. Anyone know if it is possible to make this type of expression against these two fields. Was thinking about the varchar2 eventually convert a date but do not know how to access this format DD-MON-YYYY.

    Also there are situations where this application field will often be null because he would have never received correspondence in the past and would not have a date at all.

    Thank you

    Published by: user10860766 on August 18, 2009 08:14

    Published by: user10860766 on August 18, 2009 08:19

    Hello

    It is difficult to detect the wrong dates in pure SQL, especially if you need to be specific as to which 29 February is valid.
    It's easy with a user-defined function, like that of [this thread | http://forums.oracle.com/forums/thread.jspa?messageID=3669932�].

    Published by: Frank Kulash, August 18, 2009 15:50

    To create a stand-alone function:

    CREATE OR REPLACE FUNCTION     to_dt
    (     in_txt          IN     VARCHAR2                    -- to be converted
    ,     in_fmt_txt     IN     VARCHAR2     DEFAULT     'DD-MON-YYYY'     -- optional format
    ,     in_err_dt     IN     DATE          DEFAULT     NULL
    )
    RETURN DATE
    DETERMINISTIC
    AS
    BEGIN
         -- Try to convert in_txt to a DATE.  If it works, fine.
         RETURN     TO_DATE (in_txt, in_fmt_txt);
    EXCEPTION     -- If TO_DATE caused an error, then this is not a valid DATE: return in_err_dt
         WHEN OTHERS
         THEN
              RETURN in_err_dt;
    END     to_dt
    ;
    /
    

    To use it:

    SELECT  primary_key  -- and/or other columns to identify the row
    ,       demand
    FROM    table_x
    WHERE   demand          IS NOT NULL
    AND     to_dt ( demand
               , 'DDMMYY'
               )          IS NULL;
    
  • ODI: Mapping SQL Server datetime field to Date ORACLE


    Hello

    I tried map a datetime (SQL Server) field to a Date field in my intermediate Oracle DB table.

    The format of the source (SQL Server) is 2014-08-12 15:04:48.927 and in mapping for the intermediate table, I use the function TO_TIMESTAMP (sql_field_name, 'YYYY-MM-DD HH24:MI:SS.ff')

    When executing the interface, it fails with the error: ORA-01843: not one month valid

    Is there an error in the conversion?

    Any help will be appreciated.

    Thank you.

    Hello

    Thanks for your help.

    @Mahak VARCHAR2 conversion also did not work, kept getting is not not a month error invalid. In my view, that move data between SQL Server and Oracle there are some questions in the format and precision.

    I have now resolved the issue. It worked by using the CONVERT (DATETIME, field_name) SQL Server function in the map and put it to run on the Source (a MS SQL Server DB) instead of the target (which is an Oracle DB).

  • -You also get an invalid identifier error when executing this query sql for a data model, but not in TOAD/SQL Developer?

    Hello OTN.

    I don't understand why my sql query will pass by in the data model of the BI Publisher. I created a new data model, chose the data source and type of Standard SQL = SQL. I tried several databases and all the same error in BI Publisher, but the application works well in TOAD / SQL Developer. So, I think it might be something with my case so I'm tender hand to you to try and let me know if you get the same result as me.

    The query is:

    SELECT to_char (to_date ('15-' |)) TO_CHAR(:P_MONTH) | » -'|| (To_char(:P_YEAR), "YYYY-DD-MONTH") - 90, "YYYYMM") as yrmth FROM DUAL


    Values of the variable:

    : P_MONTH = APRIL

    : P_YEAR = 2015

    I tried multiple variations and not had much luck. Here are the other options I've tried:

    WITH DATES AS

    (

    Select TO_NUMBER (decode (: P_MONTH, 'JANUARY', '01',))

    'FEBRUARY', '02',.

    'MARCH', '03'.

    'APRIL', '04'

    'MAY', '05'.

    'JUNE', '06'.

    'JULY', '07',.

    'AUGUST', '08'.

    'SEPTEMBER', '09'.

    'OCTOBER', '10',.

    'NOVEMBER', '11'.

    "DECEMBER", "12."

    '01')) as mth_nbr

    of the double

    )

    SELECT to_char (to_date ('15-' |)) MTH_NBR | » -'|| (TO_CHAR(:P_YEAR), 'DD-MM-YYYY') - 90, "YYYYMM")

    OF DATES

    SELECT to_char (to_date ('15-' |: P_MONTH |)) » -'|| ((: P_YEAR, 'MONTH-DD-YYYY')-90, "YYYYMM") as yrmth FROM DUAL

    I'm running out of ideas and I don't know why it does not work. If anyone has any suggestions or ideas, please let me know. I always mark answers correct and useful in my thread and I appreciate all your help.

    Best regards

    -Konrad

    So I thought to it. It seems that there is a bug/lag between the guest screen that appears when you enter SQL in the data model and parameter values, to at model/value data.

    Here's how I solved my problem.

    I have created a new data model and first created all my settings required in the data model (including the default values without quotes, i.e. APRIL instead "Of APRIL") and then saved.

    Then I stuck my sql query in the data model and when I clicked ok, I entered my string values in the message box with single quotes (i.e. "in APRIL' instead of APRIL)

    After entering the values of string with single quotes in the dialog box, I was able to retrieve the columns in the data model and save.

    In the data tab, is no longer, I had to enter the values in single quotes, but entered values normally instead, and the code worked.

    It seems the box prompted to bind the values of the variables when the SQL text in a data model expects strings to be wrapped in single quotes, but no where else. It's a big headache for me, but I'm glad that I solved it, and I hope this can be of help to other institutions.

    See you soon.

  • Convert text fields to the data fields

    Hi, I have a large PDF with dozens / hundreds of fields 'text' which I want to change fields of data with a domain name so that I can auto fill a database. Is there an easy way to do this? They need not be specific names, Field1, Field2, field3 etc. would be enough.

    Thank you

    Steve

    Hey steve62384,

    Tools pane use the prepare & then make changes in the fields of the form.

    Kind regards

    Nicos

  • REST API - the field value date Contact exported in digital format.

    Hi people,

    I used below REST API to retrieve the Contacts with the views and custom filter.

    The JSON response, I shot the date value in the number format. As 'C_Lead_Score_Date': '1434456862',


    https://secure.Eloqua.com/API/rest/1.0/data/contact/view/ {identifier} / contacts/filter / {id}


    How can I convert the appropriate number in date value? or y at - it an adjustment to the level of the code to retrieve the value in the correct date format.


    The data type of the field is dates.

    The date is returned to as a Unix timestamp.

    You can use an online converter to convert it to a normal value, for example: online - time conversion Conversion Unix

    1434456862 = Tuesday, June 16, 2015 12:14:22 GMT

  • Update several fields... need advice.

    Hi all

    I have a bit of a problem with the update of several fields in a table...

    Lets say we have two tables. Table one is called t_employe for example:
    create table t_employe (
    year number,
    line varchar2(1),
    counter number,
    value number)
    To set random data in the table:
    insert all
    into t_employe (year, line,counter, value)
    values(2011,'3','2946','3344')
    into t_employe (year, line,counter, value)
    values(2011,'3','2947','4433')
    into t_employe (year, line,counter, value)
    values(2011,'3','2948','4455')
    into t_employe (year, line,counter, value)
    values(2011,'3','2949','5544')
    select * from dual
    OK second table would be:
    create table to_update (
    year number,
    line varchar2(1),
    counter number,
    date_pos_1 date,
    value_pos_1 number,
    date_pos_2 date,
    value_pos_2 number,
    date_pos_3 date,
    value_pos_3 number,
    date_pos_4 date,
    value_pos_4 number,
    date_pos_5 date,
    value_pos_5 number)
    Data:
    insert all
    into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
    values(2011,'3','2946',sysdate,'5434',null,null,null,null,null,null,null,null)
    into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
    values(2011,'3','2947',sysdate,'11',sysdate,'123',null,null,null,null,null,null)
    into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
    values(2011,'3','2948',sysdate,'33',sysdate,'44',sysdate,'8908',null,null,null,null)
    into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
    values(2011,'3','2949',sysdate,'1',sysdate,'2',sysdate,'343',sysdate,'78',null,null)
    select * from dual
    OK, now what I want to do is to update the fields in the table to_update where value_pos is NULL. To explain this better imagine
    Collums are from left to right in the order value_pos_1, the value_pos_2, the value_pos_3... Now, I would check for each line
    If value_pos_1 is null if it is then updated. Finist this row and move them to another. If not go to value_pos_2 in
    same rank and check again if the null value. If it's updated, if not, again to go forward. Each value_pos_X cullum has a date_pos_x cullom
    to be made same day as Value_pos_ cullums (if value_pos_X is null then date_pos_X coresponding will be null as well - is)
    a fact in my table).


    So is it feasible using only a single update?

    I managed to write a select statement by using the clause of the case that makes these things perfectly only for value_pos_X fields. I wonder if I can use in my
    Update statement?
    select 
    case when a.value_pos_1 is  null then b.value else 
         case when a.value_pos_2 is  null then b.value else
              case when a.value_pos_3 is  null then b.value else
                   case when a.value_pos_4 is  null then b.value else
                        case when a.value_pos_5 is  null then b.value else to_number('99999','9999,99')
    end
    end
    end
    end
    end  as value
    
    from to_update a,t_employe b
    where a.year = b.year
    and a.line= b.line
    and a.counter = b.counter 
    Suggestions how to extract it from?

    Thank you!
    SQL> select  *
      2    from  to_update
      3  /
    
          YEAR L    COUNTER DATE_POS_ VALUE_POS_1 DATE_POS_ VALUE_POS_2 DATE_POS_ VALUE_POS_3 DATE_POS_ VALUE_POS_4 DATE_POS_ VALUE_POS_5
    ---------- - ---------- --------- ----------- --------- ----------- --------- ----------- --------- ----------- --------- -----------
          2011 3       2946 27-AUG-11        5434
          2011 3       2947 27-AUG-11          11 27-AUG-11         123
          2011 3       2948 27-AUG-11          33 27-AUG-11          44 27-AUG-11        8908
          2011 3       2949 27-AUG-11           1 27-AUG-11           2 27-AUG-11         343 27-AUG-11          78
    
    SQL> merge
      2    into to_update a
      3    using (
      4           select  a.rowid rid,
      5                   b.value
      6             from  to_update a,
      7                   t_employe b
      8             where a.year = b.year
      9               and a.line= b.line
     10               and a.counter = b.counter
     11          ) b
     12     on (
     13         a.rowid = b.rid
     14        )
     15     when matched then update set value_pos_1 = nvl2(value_pos_1,value_pos_1,b.value),
     16                                  value_pos_2 = nvl2(value_pos_1,nvl2(value_pos_2,value_pos_2,b.value),value_pos_2),
     17                                  value_pos_3 = nvl2(value_pos_1 + value_pos_2,nvl2(value_pos_3,value_pos_3,b.value),value_pos_3),
     18                                  value_pos_4 = nvl2(value_pos_1 + value_pos_2 + value_pos_3,nvl2(value_pos_4,value_pos_4,b.value),value_pos_4),
     19                                  value_pos_5 = nvl2(value_pos_1 + value_pos_2 + value_pos_3 + value_pos_4,nvl2(value_pos_5,value_pos_5,b.value),value_pos_5)
     20  /
    
    4 rows merged.
    
    SQL> select  *
      2    from  to_update
      3  /
    
          YEAR L    COUNTER DATE_POS_ VALUE_POS_1 DATE_POS_ VALUE_POS_2 DATE_POS_ VALUE_POS_3 DATE_POS_ VALUE_POS_4 DATE_POS_ VALUE_POS_5
    ---------- - ---------- --------- ----------- --------- ----------- --------- ----------- --------- ----------- --------- -----------
          2011 3       2946 27-AUG-11        5434                  3344
          2011 3       2947 27-AUG-11          11 27-AUG-11         123                  4433
          2011 3       2948 27-AUG-11          33 27-AUG-11          44 27-AUG-11        8908                  4455
          2011 3       2949 27-AUG-11           1 27-AUG-11           2 27-AUG-11         343 27-AUG-11          78                  5544
    
    SQL> 
    

    Or yhis is perhaps more readable:

    merge
      into to_update a
      using (
             select  a.rowid rid,
                     b.value
               from  to_update a,
                     t_employe b
               where a.year = b.year
                 and a.line= b.line
                 and a.counter = b.counter
            ) b
       on (
           a.rowid = b.rid
          )
       when matched then update set value_pos_1 = case when value_pos_1 is null then b.value else value_pos_1 end,
                                    value_pos_2 = case when value_pos_1 is not null and value_pos_2 is null then b.value else value_pos_2 end,
                                    value_pos_3 = case when value_pos_1 + value_pos_2 is not null and value_pos_3 is null then b.value else value_pos_3 end,
                                    value_pos_4 = case when value_pos_1 + value_pos_2 + value_pos_3 is not null and value_pos_4 is null then b.value else value_pos_4 end,
                                    value_pos_5 = case when value_pos_1 + value_pos_2 + value_pos_3 + value_pos_4 is not null and value_pos_5 is null then b.value else value_pos_5 end
    /
    

    SY.

  • I would like to know if someone who has a plan software that converts several computers at home?

    * Original title: software problems

    I have problems of computer software. Would like to know if someone who has a plan software that converts several computers at home. »

    Hilda

    Would like to know if someone who has a software plan that covers more than one computer at home. »

    These forums allow users with problems in the world. You seem to be looking for something that may or may not be available locally. You have to be very wary of online offers to help the vast majority is scams. Don't let unknown people direct access to your computer.

    Please provide a copy of your system information file. Type the system information in the search box above the Start button and press the ENTER key (alternative is select Start, all programs, accessories, System Tools, system information). Select file, Export and give the file a name noting where it is located. Not to place the cursor in the body of the report before exporting the file. The system creates a new information file system each time system information is available. You must allow a minute or two before the file is completely filled before exporting a copy. Please download the file to your OneDrive, to share with everyone and post a link here. Normal mode preferred report. Please say if the report was obtained in safe mode.

    Please download and share with everybody fresh copies of your System log and journal of the Application (two files) of your event viewer on your disc one and post a link here. You can delete any previous copies of your OneDrive records.

    To access the system, log, select Start, Control Panel, administrative tools, Event Viewer, in the list on the left of the window, expand Windows logs and select System. Place the cursor on the system, select the Action in the Menu and record all events like (the evtx default file type) and give a name to the file. Do the same for the application log. Do not offer not filtered files. Do not place the cursor in the list of reports before selecting the Action from the menu. Do not clear the logs so that you have a persistent problem.

    For assistance OneDrive see paragraph 9.3:
    http://www.gerryscomputertips.co.UK/MicrosoftCommunity1.htm

    General remarks on event viewer
    http://www.gerryscomputertips.co.UK/syserrors5.htm

  • How to fill several fields a...?


    I'm working with Acrobat 9 and try to change some fields in an existing PDF, I. I have some fields that repeat (EX: social security #) and I am trying to do it where it just fill in once and it will appear on other parts of the document. I was not the original developer of this PDF form to fill out, and the previous person has several fields that populate only randomly with information/data, when a particular field is completed. HELP PLEASE!

    The key thing to understand is that the fields with the same name will automatically have the same value. So, if you give it them the same name. If you don't want it to happen, assign each field a unique name.

  • How to convert several text boxes to the checkboxes

    Nice day

    in the last months, we are working on Adobe Acrobat DC and we have the following problem when we create pdf forms.

    It is quite common for us to convert a Word format in PDF form. Then, we select 'Prepare form' in Adobe DC to insert/change/remove the created fields (text boxes, check boxes, etc.). During this conversion, there are fields that must be boxes instead of text boxes. In order to proceed, we all have remove them and then re-create them which takes a lot of time.

    Is there a feature that allows you to select several fields and move them from one type to another (for example, convert all text in checkboxes areas)?

    Concerning

    -C' is not correct. You can select specific fields to convert from a list or based on their name, the field type and the page.

    -Yes, it is compatible with all versions of Acrobat (probably not until version 7, though).

    -The rest exactly the same size.

  • Conditional fields with data merge

    I have, I think, would be a common question for people using Data Merge in InDesign for cards.

    I have several fields phone, with a letter from small caps to indicate what type (mobile, direct, fax, etc.), that is:

    M < < phone > >

    D < < Tel Direct > >

    If an employee has only one phone line, how can I do so that the entire line is omitted from the final merged doc?

    In the past, I just went in the game final and quickly deleted lines / extra characters, but I know that there is a way!

    Thank you.

    mavenlink cards1.1_Page_1.jpg

    The main character must be included in the paragraph style, even if it's a Word. If deleting empty lines turned on, these main characters are removed too.

    To add the main characters in a paragraph style, you can define a list numbered without numbers but with the main character and space or tab between.

  • SQL Loader (how to cut data header)

    Hello

    [oracle 11g]


    I got the following text file:
    mod; DD.MM.YYYY; HH:MM:SS; aligned
    src; "ptv "; "15.04.2012"; "10:47:49"
    chs; "ISO8859-1"
    ver; "V1.0"
    ifv; "V1.0"
    dve; "V1.0"
    fft; "LIO"
    tbl; MENGE_FGR
    atr; BASIS_VERSION; FGR_NR; FGR_TEXT
    frm; num[9.0]; num[5.0]; char[40]
    rec;        122;     8; "VVZ"    
    rec;        123;     18; "VHZ"
    rec;        124;     13; "VTZ"    
    Now I am interested in the column TBL and ATR and follwing rawdata

    Can you see a way to automatically create the MENGE_FR table with columns BASIS_VERSION. FGR_NR; FGR_TEST and column types num, num, char and insert raw data below?

    PS:OK, it's mysql... .so I need to convert this sql first. So, you should see num as number.


    THX in advance Thorsten

    Published by: Thorsten on 16.05.2013 07:30

    Published by: Thorsten on 16.05.2013 07:32

    There are various ways you could do this. I demonstrated one of the methods below. I created a table with two columns, and then use SQL * Loader to load the data from the text file in these two columns. Skip header lines is optional. You can also use a portal instead, if the text file is located on your server, not your client. I then used some PL/SQL to create and run 'create table' and 'insert '. It's just a startup code. You will need to make changes to manage other types of data, and others who were not in the example you provided, but it should give you the general idea.

    SCOTT@orcl_11gR2> host type text_file.dat
    mod; DD.MM.YYYY; HH:MM:SS; aligned
    src; "ptv "; "15.04.2012"; "10:47:49"
    chs; "ISO8859-1"
    ver; "V1.0"
    ifv; "V1.0"
    dve; "V1.0"
    fft; "LIO"
    tbl; MENGE_FGR
    atr; BASIS_VERSION; FGR_NR; FGR_TEXT
    frm; num[9.0]; num[5.0]; char[40]
    rec;        122;     8; "VVZ"
    rec;        123;     18; "VHZ"
    rec;        124;     13; "VTZ"
    
    SCOTT@orcl_11gR2> host type test.ctl
    options(skip=7)
    load data
    infile text_file.dat
    into table tbl
    (col1 terminated by ';',
    col2 terminated by x'0a')
    
    SCOTT@orcl_11gR2> create table tbl
      2    (col1  varchar2(4),
      3     col2  varchar2(60))
      4  /
    
    Table created.
    
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test.ctl log=test.log
    
    SQL*Loader: Release 11.2.0.1.0 - Production on Thu May 16 13:44:24 2013
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 6
    
    SCOTT@orcl_11gR2> select * from tbl
      2  /
    
    COL1 COL2
    ---- ------------------------------------------------------------
    tbl   MENGE_FGR
    atr   BASIS_VERSION; FGR_NR; FGR_TEXT
    frm   num[9.0]; num[5.0]; char[40]
    rec          122;     8; "VVZ"
    rec          123;     18; "VHZ"
    rec          124;     13; "VTZ"
    
    6 rows selected.
    
    SCOTT@orcl_11gR2> declare
      2    v_tab   varchar2(30);
      3    v_atr   varchar2(32767);
      4    v_frm   varchar2(32767);
      5    v_sql   varchar2(32767);
      6    v_cols  number;
      7    v_next  varchar2(32767);
      8  begin
      9    select col2 into v_tab from tbl where col1 = 'tbl';
     10    select col2 || ';' into v_atr from tbl where col1 = 'atr';
     11    select col2 || ';' into v_frm from tbl where col1 = 'frm';
     12    v_sql := 'CREATE TABLE ' || v_tab || ' (';
     13    select regexp_count (col2, ';') + 1 into v_cols from tbl where col1 = 'atr';
     14    for i in 1 .. v_cols loop
     15      v_sql := v_sql || substr (v_atr, 1, instr (v_atr, ';') - 1) || ' ';
     16      v_next := substr (v_frm, 1, instr (v_frm, ';') - 1);
     17      v_next := replace (v_next, '[', '(');
     18      v_next := replace (v_next, ']', ')');
     19      v_next := replace (v_next, '.', ',');
     20      v_next := replace (v_next, 'num', 'number');
     21      v_next := replace (v_next, 'char', 'varchar2');
     22      v_sql := v_sql || v_next || ',';
     23      v_atr := substr (v_atr, instr (v_atr, ';') + 1);
     24      v_frm := substr (v_frm, instr (v_frm, ';') + 1);
     25    end loop;
     26    v_sql := rtrim (v_sql, ',') || ')';
     27    dbms_output.put_line (v_sql);
     28    execute immediate v_sql;
     29    for r in (select col2 from tbl where col1 = 'rec') loop
     30      v_sql := 'INSERT INTO ' || v_tab || ' VALUES (''';
     31      v_sql := v_sql || replace (replace (r.col2, ';', ''','''), '"', '');
     32      v_sql := v_sql || ''')';
     33      dbms_output.put_line (v_sql);
     34      execute immediate v_sql;
     35    end loop;
     36  end;
     37  /
    CREATE TABLE  MENGE_FGR ( BASIS_VERSION  number(9,0), FGR_NR  number(5,0),
    FGR_TEXT  varchar2(40))
    INSERT INTO  MENGE_FGR VALUES ('        122','     8',' VVZ')
    INSERT INTO  MENGE_FGR VALUES ('        123','     18',' VHZ')
    INSERT INTO  MENGE_FGR VALUES ('        124','     13',' VTZ')
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> describe menge_fgr
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     BASIS_VERSION                                      NUMBER(9)
     FGR_NR                                             NUMBER(5)
     FGR_TEXT                                           VARCHAR2(40)
    
    SCOTT@orcl_11gR2> select * from menge_fgr
      2  /
    
    BASIS_VERSION     FGR_NR FGR_TEXT
    ------------- ---------- ----------------------------------------
              122          8  VVZ
              123         18  VHZ
              124         13  VTZ
    
    3 rows selected.
    
  • Migration from SQL Server 2005 to huge data. Taking more than 18 hours...

    Hello

    We are migrate SQL 2005 DB for Oracle 10 g 64 bit 10.2.0.5 server. The source DB sql server has a few tables (< 10) and only a few stored procedure(<5). However a single table of the source is very large, he has 70 million records in it. I started the migration process; He ran up to 18 hours died while I cancelled it. I use SQL Developer 3.1.0.7 with migration online.

    Kindly let me know if I choose offline migration it will reduce the travel time from data. Is there another tool by oracle that can migrate data giant (million documents) quickly. Will there be some configurations in SQL Developer which can Catalysis process?

    Kindly help.

    Best regards!

    Irfan

    Hello Irfan,

    a data movement with 70 million documents online is really not recommended. According to the documentation of SQL Developer:

    "Data online movements are suitable for small data sets, while data offline movements are useful for moving large amounts of data." I wouldn't say 70 million documents is a small set of data.

    Moving data online is just a COPY via JDBC, while moving data offline is using BCP export and import using SQL * Loader. This explains why the movement of offline data is faster.

    Concerning
    Wolfgang

  • Adding several fields - Script

    Hello

    I have several fields added in a batch processing script that works great except for the last field created in the script called "TodayDate2".

    This field is not added to the document.

    Can someone please look at and advise a possible solution with my script?

    Dynamically create signature fields

    var this.numPages = NUMPAGES;
    for (var i = 0; i < numpages; i ++)


    var f = this.addField ("prepared Signature", "signature", 1,
    [320, 660, 450, 640]) ;

    var g = this.addField ("Signature of revision", "signature", 1)
    [320, 630, 450, 610]) ;

    var h = this.addField ("approved Signature", "signature", 1)
    [320, 600, 450, 580]) ;

    Create the text field for the current date

    var this.numPages = NUMPAGES;
    for (var i = 0; i < numpages; i ++)


    var f = this.addField ("TodayDate1", "text", 1,
    [460, 660, 540, 640]) ;
    f.userName = "today's Date".
    f.Value = 'auto update';
    f.ReadOnly = true;
    f.textSetFieldLabel ("today's date will be entered at the signature");

    var j = this.addField ("TodayDate2", "text", 1,
    [460, 600, 540, 640]) ;
    j.userName = "today's Date".
    j.Value = 'auto update';
    j.ReadOnly = true;
    j.textSetFieldLabel ("today's date will be entered at the signature");


    Why did you use a loop on all pages when you add the fields to the second page?

    I can't get an error using the code f.setAction.

  • Insert into the MS SQL Image type field

    Hello

    Currently, I use CFX_PUTIMAGE to insert a .jpg file into a MS SQL 2000 image data type field.

    I want to see if we can stop using this method that I am a little concerned about his use of RAM and want to see if I can finish with her for good.

    Does anyone know how to do this?

    A few considerations:
    CF MX 6.1
    MS SQL 2000
    The field type is image and cannot be changed to ntext or anything else.

    Thank you

    Use CFFILE to read the image in binary form:

    Then insert it into the db:


    Insert into tablename (columnname)
    values)
    cfsqltype = "cf_sql_blob" >)

Maybe you are looking for

  • Pavilion 10-f001au: can not find a graphics driver for windows 10

    Hi all I have improved my OS netbook using windows 10. But now I can't play GTA SA, because she cannot find 800 x 600 x 32 resolution. Can someone give me the suggestion for the graphics driver that is appropriate for that? Thank you very much.

  • Error installing the sims 3

    > SetupNew.setup.cpp (140)PAPP:PVENDOR:PGUID:$15.0.0.498@ Windows Vista Service Pack 1 (6001)IE Version 7.0.6001.18000 What should I do to fix this?Thank you

  • Auto volume leveling audio playback

    It's really annoying: His sound is amplified to sound at a reasonable level. When a strong part of the song comes automatically to the grave level then produce audio quiet parts annoyingly loud & the annoyingly quiet strong part... Sorry it's the bes

  • URL not valid parameter - HTTP - Ksoap2

    Hello Im having difficulty opening an HTTP connection to a device. The code works fine on the BlackBerry Simulator. The device has a service of BIS (claro - brasil) but if I try to open a connection with "deviceside = false' he throws with 'Invalid U

  • program to organize finance from accounts personnel, ect.

    What is the easiest program to organize stories personal calendars finance, ect.