Oracle sql function to find VARCHAR2 data is numeric

Hi Everyone,
Is there oracle sql function to find whether the VARCHAR2 data is numeric?
Thanks

hi,
see the below example .
with t as
(select '12'  as col from dual union all
select '1 2'  as col from dual union all
select '2 1 3'  as col from dual union all
select 'abcde'  as col from dual union all
select '12345'  as col from dual union all
select '1a4A5'  as col from dual union all
select '12a45'  as col from dual union all
select '12aBC'  as col from dual union all
select '12abc'  as col from dual union all
select '12ab5'  as col from dual union all
select '12aa5'  as col from dual union all
select '12AB5'  as col from dual union all
select 'ABCDE'  as col from dual union all
select '123-5'  as col from dual union all
select '12.45'  as col from dual union all
select '1a4b5'  as col from dual union all
select '1 3 5'  as col from dual union all
select '1  45'  as col from dual union all
select '1   5'  as col from dual union all
select 'a  b  c  d'  as col from dual union all
select 'a b  c   d    e'  as col from dual union all
select 'a              e'  as col from dual union all
select 'Steven'  as col from dual union all
select 'Stephen'  as col from dual union all
select '111.222.3333'  as col from dual union all
select '222.333.4444'  as col from dual union all
select '333.444.5555'  as col from dual union all
select 'abcdefabcdefabcxyz'  as col from dual union all
select 'aaa'  as col from dual union all
select 'ddd'  as col from dual union all
select 'ccc'  as col from dual union all
select 'aaaaa'  as col from dual union all
select 'aaaaaaaa'  as col from dual
select * from t where regexp_like(col,'[1-9]')
Result
COL
12
1 2
2 1 3
12345
1a4A5
12a45
12aBC
12abc
12ab5
12aa5
12AB5
123-5
12.45
1a4b5
1 3 5
1  45
1   5
111.222.3333
222.333.4444
333.444.5555Thanks,
P Prakash

Similar Messages

  • SQL Functions to Update XML Data

    Hi,
    Can anybody please tell me whether SQL Functions to Update XML Data (such as updateXML, insertChildXML, insertXMLbefore etc) are available with oracle 9i or not?
    Please tell me.

    You can also do a describe on SYS.XMLTYPE to see what methods are supported in your release. How would you find e.g. insertChildXML in DESC sys.xmltype? I suppose it is not a Method of the Type: Summary of XMLType Subprograms.

  • Using an Oracle SQL Function from JPA/TopLink

    How do I get the return value from a simple (one string input parameter, returns a string) Oracle SQL Function?
    Thanks!

    If you mean calling a stored function in Oracle, you might try something like:
        ValueReadQuery vrq = new ValueReadQuery();
        SQLCall call = new SQLCall("begin ###res := pkg.funcInp(#inp); end;");
        vrq.setCall(call);
        Query q = em.createNativeQuery("");   // we need a Query; any query would do; we replace its contents below
        ((EJBQuery)q).setDatabaseQuery(vrq);
        q.setParameter("inp", "paramValue");
        String result = (String)q.getSingleResult();
        // #=input; ###=output; ####=input/output;
        // if you want to explicitly specify the type of an output parameter, use #### instead of ###,
        // because pure "output" parameters are always treated as java.lang.StringThis will only work in TopLink Essentials, though. I don't know how to do it in Hibernate. I have dealt mainly with TopLink, and just a little with Hibernate.
    In my opinion, it's a HUGE omission not to have support for stored procedures in JPA. Virtually every project I have worked on (in two large companies) has consisted of a large portion of code in stored procedures (sometimes as much as 50% of the overall code). It's a pain to have to go through all that trouble to call the stored procedures.
    Also, pay special attention to TopLink's shared L2 cache. If a stored procedure changes something in the database, TopLink won't know about it and chances are that you will end up with stale objects in the cache which you will either have to refresh, or you'd have to invalidate TopLink's cache for these objects.
    Best regards,
    Bisser

  • Oracle SQL Functions

    There's a function that does what I need.
    Can I pass parameters from ODI to Oracle SQL?
    Jz

    I will have to find out. The initial approach was to create a view and import via Knowledge Module...
    Do you think that would be a better approach?
    Jz

  • PL/SQL Function: Adding Days to Date

    I have a function that adds a given number of days to a date, and excludes Saturday, Sunday, or Monday if needed with parameters. The problem is when the given date is a Friday, you need to add one day, and you exclude Saturday and Sunday i.e. DAYSBETWEEN('30-SEP-11',1,1,1,0) or DAYSBETWEEN('30-SEP-11',1,1,1,1).
    Where am I going wrong here and what needs to be fixed?
    create or replace
    FUNCTION daysbetween(
          DAYIN  IN DATE ,
          ADDNUM IN NUMBER ,
          EXSAT  IN NUMBER ,
          EXSUN  IN NUMBER ,
          EXMON  IN NUMBER )
        RETURN DATE
      IS
        dtestart DATE;
        dteend Date;
        intcount NUMBER;
      BEGIN
      WITH all_dates AS
        (SELECT LEVEL AS days_to_add ,
          dayin ,
          dayin + LEVEL AS new_dt ,
          addnum ,
          exsat ,
          exsun ,
          exmon
        FROM dual
          CONNECT BY LEVEL <= addnum * 2
        exclusions AS
        (SELECT ROW_NUMBER() OVER ( ORDER BY new_dt) ordering ,
          addnum ,
          new_dt ,
          TO_CHAR ( new_dt, 'DY' )
        FROM all_dates
        WHERE 1                       =1
        AND TO_CHAR ( new_dt, 'DY' ) != DECODE ( exsat, 1, 'SAT', 'XXX')
        AND TO_CHAR ( new_dt, 'DY' ) != DECODE ( exsun, 1, 'SUN', 'XXX')
        AND TO_CHAR ( new_dt, 'DY' ) != DECODE ( exmon, 1, 'MON', 'XXX')
      SELECT MAX( new_dt ) INTO dteend FROM exclusions WHERE ordering <= addnum;
      RETURN dteend;
    END daysbetween;

    You could do something in SQL like this perhaps...
    SQL> ed
    Wrote file afiedt.buf
      1  with x as (select rownum as days_to_add from dual connect by rownum <= 31)
      2      ,y as (select sysdate as dt from dual)
      3  --
      4  -- end of test data
      5  --
      6  select dt, days_to_add
      7        ,case when to_char(new_dt,'fmDAY') IN ('SATURDAY','SUNDAY') then new_dt + 2
      8         else new_dt
      9         end as new_dt
    10  from (
    11        select dt
    12              ,days_to_add
    13              ,dt
    14               +floor(days_to_add/5)*7
    15               +mod(days_to_add,5) as new_dt
    16        from x,y
    17*      )
    SQL> /
    DT                   DAYS_TO_ADD NEW_DT
    05-OCT-2011 16:33:27           1 06-OCT-2011 16:33:27
    05-OCT-2011 16:33:27           2 07-OCT-2011 16:33:27
    05-OCT-2011 16:33:27           3 10-OCT-2011 16:33:27
    05-OCT-2011 16:33:27           4 11-OCT-2011 16:33:27
    05-OCT-2011 16:33:27           5 12-OCT-2011 16:33:27
    05-OCT-2011 16:33:27           6 13-OCT-2011 16:33:27
    05-OCT-2011 16:33:27           7 14-OCT-2011 16:33:27
    05-OCT-2011 16:33:27           8 17-OCT-2011 16:33:27
    05-OCT-2011 16:33:27           9 18-OCT-2011 16:33:27
    05-OCT-2011 16:33:27          10 19-OCT-2011 16:33:27
    05-OCT-2011 16:33:27          11 20-OCT-2011 16:33:27
    05-OCT-2011 16:33:27          12 21-OCT-2011 16:33:27
    05-OCT-2011 16:33:27          13 24-OCT-2011 16:33:27
    05-OCT-2011 16:33:27          14 25-OCT-2011 16:33:27
    05-OCT-2011 16:33:27          15 26-OCT-2011 16:33:27
    05-OCT-2011 16:33:27          16 27-OCT-2011 16:33:27
    05-OCT-2011 16:33:27          17 28-OCT-2011 16:33:27
    05-OCT-2011 16:33:27          18 31-OCT-2011 16:33:27
    05-OCT-2011 16:33:27          19 01-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          20 02-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          21 03-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          22 04-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          23 07-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          24 08-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          25 09-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          26 10-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          27 11-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          28 14-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          29 15-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          30 16-NOV-2011 16:33:27
    05-OCT-2011 16:33:27          31 17-NOV-2011 16:33:27
    31 rows selected.

  • Regarding sql function error  for Hijri date to Gregorian date

    Hi ,
    I want to convert Hijri date format into Gregorian date format . i write the script with  sql function  like this
    $Hijri_Date = '16/04/1428';
    $Gregorian_Date = sql('DS_REPO','SELECT CONVERT(DATE,[$Hijri_Date],131)');
    print($Gregorian_Date);
    here $Hijri_Date data type is varchar and $Gregorian_Date data type is date.
    but  I am getting error like
    7868     5812     DBS-070401     10/26/2010 10:37:18 PM     |Session Job_Hijradata_Conversion
    7868     5812     DBS-070401     10/26/2010 10:37:18 PM     ODBC data source <UIPL-LAP-0013\SQLEXPRESS> error message for operation <SQLExecute>: <[Microsoft][SQL Server Native Client
    7868     5812     DBS-070401     10/26/2010 10:37:18 PM     10.0][SQL Server]Explicit conversion from data type int to date is not allowed.>.
    7868     5812     RUN-050304     10/26/2010 10:37:18 PM     |Session Job_Hijradata_Conversion
    7868     5812     RUN-050304     10/26/2010 10:37:18 PM     Function call <sql ( DS_REPO, SELECT CONVERT(DATE,16/04/1428,131) ) > failed, due to error <70401>: <ODBC data source
    7868     5812     RUN-050304     10/26/2010 10:37:18 PM     <UIPL-LAP-0013\SQLEXPRESS> error message for operation <SQLExecute>: <[Microsoft][SQL Server Native Client 10.0][SQL
    7868     5812     RUN-050304     10/26/2010 10:37:18 PM     Server]Explicit conversion from data type int to date is not allowed.>.>.
    7868     5812     RUN-053008     10/26/2010 10:37:18 PM     |Session Job_Hijradata_Conversion
    please help me out to solve this problem .
    Please suggest any other solution to convert hijri date format to gregorian date format.
    Thanks&Regards,
    Ramana.

    Hi ,
    In Data quality there is no inbuild function for converting hijri date to gregorian date .  we have the function for converting julian date to gregorian date.
    Thanks&Regards,
    Ramana.

  • Oracle SQl query to find date range based on another cloumn value

    Hi Folks,
    I want to extract records for the employees who have consecutive vacation/leave from a table. If an emp has vacation of 3 days (MON-WED), the table contains 3 distinct records for him,
    e.g. My table contains records as shown below.
    EmpName Paycode ApplyDate Amt. of Hrs
    emp1 vacation 5/1/2010 8
    emp1 vacation 5/2/2010 8
    emp1 vacation 5/3/2010 8
    I am trying to get the output like this...
    Emp Name Paycode Leave Start Date Leave End Date TotalHrs
    emp1 vacation 5/1/2010 5/3/2010 24
    Note: If the smae emp has sets of vacation in another month, that should come as a separate record with start date and end date(last date of vacation for that set).
    I have a query which does not return any rows. Any help to repair this query or any better one would be of great help.
    ==================================================================
    WITH vpt AS (
    select personnum as empname, paycodename as paycode, applydate, timeinseconds/3600 as numhours from VP_TOTALS
    where applydate between to_date('05/01/2010','MM/DD/YYYY') AND to_date('12/31/2010','MM/DD/YYYY')
    AND paycodename in ('US-Vacation','US-Bereavement','US-Sick','US-Jury Duty')
    select
    empname,
    paycode,
    min(applydate) as startdate,
    max(applydate) as enddate,
    sum(numhours) as totalhours
    from (
    select
    empname,
    paycode,
    applydate,
    numhours,
    -- number the blocks sequentially
    sum(is_block_start) over (partition by empname, paycode order by applydate) as block_num
    from (
    select
    empname,
    paycode,
    applydate,
    numhours,
    -- Mark the start of each block
    case
    when applydate = prev_applydate + 1 then 0 else 1 end as is_block_start
    from (
    select
    empname,
    paycode,
    applydate,
    numhours,
    lag (applydate) over (partition by empname, paycode order by applydate) prev_applydate
    from vpt
    group by empname, paycode, block_num
    ===================================================================
    Thanks,
    Maha

    Hi Dear,
    Can I do reverse I mean I can get output as your question from your output as below:
    I have this table
    FID      STARTD ATE END DATE
    1 01-MAY-10 03-MAY-10
    1 09-MAY-10 11-MAY-10
    1 03-JUN-10 04-JUN-10
    2 03-JUN-10 04-JUN-10
    2 04-AUG-10 04-AUG-10
    2 06-AUG-10 06-AUG-10
    I want like this.
    FID FDATE
    1 01-MAY-10
    1 02-MAY-10
    1 03-MAY-10
    1 09-MAY-10
    1 10-MAY-10
    1 11-MAY-10
    1 03-JUN-10
    1 04-JUN-10
    2 03-JUN-10
    2 04-JUN-10
    2 04-AUG-10
    2 06-AUG-10
    And:
    How can i get date wise entry from Joining date to relieving date like..
    FID      START DATE END DATE
    1 01-MAY-10 03-MAY-12
    1 09-MAY-10 11-MAY-11
    2 04-AUG-10 04-AUG-11
    I want like this.
    FID FDATE
    1 01-MAY-10
    1 03-MAY-10
    1 04-MAY-10
    1 05-MAY-10
    1 16-MAY-10
    1 17-MAY-10
    1 08-May-10
    1 09-May-10
    1 03-May-12
    Can you please help me.
    Thanks,
    Edited by: 978452 on Dec 24, 2012 12:02 AM

  • Oracle Spatial function to find nearest line string based on lat/long

    Hi,
    Here is my scenario. I have a table that contains geometries of type line strings (the roadway network). The line geomteries are of type Ohio state plane south (SRID 41104).
    I have a requirement - given a lat/long, find the line string that snaps to that lat/long or the nearest set of line strings within a distance of 0.02 miles.
    This is a typical example of trying to identify a crash location on our roadway network. The crashes being reported to us in lat/long thru the GPS system.
    How can i acheive this through any spatial functions?
    Thanks for the help in advance.
    thanx,
    L.

    Hi L,
    That is not the way I would do it. I would convert my road segments to LRS data, then you can do all queries on the same data.
    Or, if you do not want to modify your original data, create a copy of your road segments with the same ID's and convert the copy into LRS data. If you keep the ID's identical, you can easily use geometry from one and LRS data from the other - as long as you are sure the ID is the same.
    Which will make the workflow a bit easier:
    1. Use SDO_NN to get the closest segments
    2. Use SDO_LRS.PROJECT_PT to get the projected point
    3. Use SDO_LRS.GET_MEASURE to get the measure
    And most of these you can incorporate into one single query. Now I am writing this of the top of my head (It's been a while since I played with LRS). so this has not been tested, but something like this should work (but could probably be greatly improved - it's getting late for me :-) ):
    SELECT
    SDO_LRS.FIND_MEASURE  --//find_measure needs an LRS segment and a point
        SELECT            --//here we select the LRS segment
          r.geometry 
        FROM
          roadsegments r
        WHERE SDO_NN(r.geometry,    --//based on the given GPS point
                     sdo_geometry(2001, 41104, sdo_point_type(lat,lon,NULL), NULL, NULL), 
                     'sdo_num_res=2 distance=0.02 unit=mile') = 'TRUE'
      SDO_LRS.PROJECT_PT  --//We project the point on the LRS segment
          SELECT         --//here we select the LRS segment (again, which could probably be improved!!)
            r.geometry 
          FROM
            roadsegments r
          WHERE SDO_NN(r.geometry,
                       sdo_geometry(2001, 41104, sdo_point_type(lat,lon,NULL), NULL, NULL), 
                       'sdo_num_res=2 distance=0.02 unit=mile') = 'TRUE'
        sdo_geometry(2001, 41104, sdo_point_type(lat,lon,NULL), NULL, NULL) --//The GPS point again
    AS milemarker from dual;So it is not as complicated as you think, it can easily be done with just one query (SQL can do a lot more than you think ;-) ).
    Good luck,
    Stefan

  • Trim function on varchar2 data

    I just saw several programs, in which they have used TRIM function for a Varchar2 data type column. I thought it is not required. any thoughts?
    Thanks for your time.

    SQL> desc test_1;
    Name                                      Null?    Type
    SNO                                                NUMBER
    SNAME                                              VARCHAR2(13)
    SQL> select * from test_1;
           SNO SNAME
             1 abc
             2    xyz
             3 mno
             4     pqr
    SQL> select sno,sname,trim(sname),length(sname) len1,length(trim(sname)) len2 from test_1;
           SNO SNAME         TRIM(SNAME)         LEN1       LEN2
             1 abc           abc                    3          3
             2    xyz        xyz                    6          3
             3 mno           mno                   11          3
             4     pqr       pqr                   13          3
    SQL> alter table test_1 modify sname char(13);
    Table altered.
    SQL> desc test_1;
    Name                                      Null?    Type
    SNO                                                NUMBER
    SNAME                                              CHAR(13)
    SQL> select sno,sname,trim(sname),length(sname) len1,length(trim(sname)) len2 from test_1;
           SNO SNAME         TRIM(SNAME)         LEN1       LEN2
             1 abc           abc                   13          3
             2    xyz        xyz                   13          3
             3 mno           mno                   13          3
             4     pqr       pqr                   13          3
    SQL>

  • Oracle SQL trim() vs MS Excel clean()

    I have some data being extracted from Oracle 11 db views into CSV files.
    When importing the data into some other system, said other system's data importer crashes.
    I can open the CSV files in MS Excel, apply its clean() function to some columns, paste the values of that, and then the CSV file is a bit smaller, unprintable characters are removed, and data importer in new system is OK.
    Its a cumbersome process.
    I tried Oracle SQL trim() but it doesn't remove all the chars, it seems, that MS Excel clean() function removes.
    Is there a comparable Oracle SQL function that does what [MS Excel clean()|http://office.microsoft.com/en-us/excel-help/clean-HP005209014.aspx] does?
    Edited by: 972095 on Nov 19, 2012 2:35 PM

    I've used: regexp_replace(your_string,'[[:cntrl:]]') for this.
    SQL> declare
      2     s varchar2(30) := chr(10) || 'hello' || chr(10);
      3  begin
      4     dbms_output.put_line('*' || s || '*');
      5     dbms_output.put_line('*' || regexp_replace(s,'[[:cntrl:]]') || '*');
      6  end;
      7  /
    hello
    *hello*
    PL/SQL procedure successfully completed.

  • Utils is a packege then should i use sql function in place of utils.

    Hi,
    while translating my sp from mssql to oracle few code is converted into : utils
    utils is a package i think so is it good to use it or should i find any sql equivenlent function.
    then please tel me oracle sql function for utils.patindex();
    yours sincerely

    Please bear in mind that most people here know Oracle but not SQL Server. So if you wish to use us as a translation service it would be helpful if you told us what the SQL Server function does.
    Googling for [url http://msdn.microsoft.com/en-US/library/ms188395(v=sql.90).aspx]PATINDEX() reveals that it is a function which returns the position of a pattern in a string. --The Oracle equivalent is INSTR().  [url http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions080.htm#sthref1174]Find out more.--
    Just to prove the point I now think INSTR() is the equivalent of CHARINDEX and what you actually want is one of the regex functions such as REGEXP_INSTR() [url http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions148.htm#sthref1419]Check it out.
    Oh, and please, don't use us as a translation service. Read the Oracle documentation or [url http://www.google.co.uk/#q=ms+sql+patindex+oracle&oq=ms+sql+patindex+oracle]use Google.
    Cheers, APC
    Edited by: APC on Feb 28, 2013 6:10 AM

  • Using sql functions (min, max, avg) on varray or table collection

    Hi,
    I would like to know if there is a way to use sql function or oracle sql function like Min,Max, Avg or percentile_cont on varray or table collection ?
    Does anyone encountered this type of problem ?
    Thanks

    Yes you can apply Min,Max, Avg... if varray or table collection type is SQL (created in the databaase) UDF, not PL/SQL declared type:
    SQL> set serveroutput on
    SQL> declare
      2      type str_tbl_type is table of varchar2(4000);
      3      str_tbl str_tbl_type := str_tbl_type('X','A','D','ZZZ');
      4      max_val varchar2(4000);
      5  begin
      6      select max(column_value)
      7        into max_val
      8        from table(str_tbl);
      9      dbms_output.put_line('Max value is "' || max_val || '"');
    10  end;
    11  /
          from table(str_tbl);
    ERROR at line 8:
    ORA-06550: line 8, column 18:
    PLS-00642: local collection types not allowed in SQL statements
    ORA-06550: line 8, column 12:
    PL/SQL: ORA-22905: cannot access rows from a non-nested table item
    ORA-06550: line 6, column 5:
    PL/SQL: SQL Statement ignored
    SQL> create or replace type str_tbl_type is table of varchar2(4000);
      2  /
    Type created.
    SQL> declare
      2      str_tbl str_tbl_type := str_tbl_type('X','A','D','ZZZ');
      3      max_val varchar2(4000);
      4  begin
      5      select max(column_value)
      6        into max_val
      7        from table(str_tbl);
      8      dbms_output.put_line('Max value is "' || max_val || '"');
      9  end;
    10  /
    Max value is "ZZZ"
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Invoking Oracle SQL Loader

    I am looking at doing some re-factoring on data load process for inventory feed. Current process takes over an hour to process the file.
    My thought is to go down this road
    1. Using Oracle SQL Loader - load the inventory data into a temp table
    2. Using a view to create the differences between ATG Inventory repository and what is in the temp table
    3. Using the results to update the ATG Inventory stock levels
    So questions are
    1. Is it possible to call the Oracle SQL Loader from a ATG service component - if so how?
    2. Would it be better/faster/possible to create the difference when loading the temp tables
    3. How to create ATG view?

    user7047382 wrote:
    Hello,
    I am trying to load a CSV file located on my C:\ drive on a WIndows XP system into an 'external table'. Everyting used to work correctly when using Oracle XE (iinstalled also locally on my WIndows system).
    However, once I am trynig to load the same file into a Oracle 11g R2 database on UNIX, I get the following errr:
    ORA-29913: Error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    error opening file ...\...\...nnnnn.log
    Please let me know if I can achieve the same functionality I had with Oracle XP.
    (Note: I cannot use SQL*Loader approach, I am invoking Oracle stored procedures from VB.Net that are attempting to load data into external tables).
    Regards,
    M.R.So your database is on a unix box, but the file is on your Windows desktop machine? So .... how is it you are making your file (on your desktop) visible to your database (on a unix box)???????

  • Item value not showing up in PL/SQL function on another item.

    Basically, I am trying to update a database field based on the vaule of 2 other fields, but the item value dow not seem to get stored. No errors, it just shows up as a null value in the database. Here is the code inside the default area as a FL/SQL Function.
    declare
    P14_TNUM varchar2(255);
    begin
    select concat(mname,id) into P14_TNUM from T1,T2 where mid=:P14_TID;
    return P14_TNUM;
    exception when others then
    return null;
    end;
    Note:
    id is in T1
    mname and mid is in T2
    :P14_TID is the item which points to the pk in table T1

    Anon,
    I'm still a little confused as to what you're trying to do. Could you please take a little bit to better explain?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

  • Issues using Oracle SQL server Developer migration work bench

    Hi all,
    We are trying to migrate the application databases from SQL server 2000 to Oracle 10g using Oracle SQL Developer 1.2.1.32.13:
    Following is the list of issues that we faced while trying out this migration on dev environment.
    1. The data migration was successful for only around 90 tables out of the total 166 tables present. No error message was logged for the rest of the tables but still it was completed.
    2. Some of the tables which had got the data inserted did not have the full data. Only some of the rows were inserted for these tables. Error message was logged only for few of the rows and not all.
    3. Few error messages were logged which said problems about “Inserting ' ' into column <tablename>.<columnname>”. There was no such constraint in the target database that the particular column can not be null or can not have only a space. Please check the logs for the same error messages.
    4. The status box at the end of migration had shown only 3 errors.
    5. The total data for migration was around 500MB. The time taken for migration was around 75 minutes. Are there any optimization techniques that will improve the performance?
    Please note that there were no Foreign Key references for the source schema or target schema.
    Any pointers/info/resolutions related to above mentioned issues will be much useful for us.
    Thanks,

    Hi Adam,
    There are 2 sets of scripts created for you.
    1) For SQL Servers BCP to dump out the data to dat files
    2) For Oracles SQL*Loader to load the dat files
    You run the SQL Server BCP scripts on the machine with SQL Server.
    The dat files will be dumped out on that server.
    You can then move the dat files to your Oracle server.
    Then run the Oracle SQL*Loader scripts to load the dat files into Oracle.
    Give it a go and follow the doc and viewlets.
    Your Questions:
    So the datadump from the source location would be saved on my local disk?it will be saved on the same machine you run the bcp scripts from. Usually the same machine SQL Server is on, because you require SQL Server BCP tool.
    So once it is migrated to the destination database will that dump be created automatically? Or do I need to modify the script to take care of this?I dont know what you mean by this, hopefully above clears things up.
    The only modifications you need to make to the scripts are adding in the databasename username password servername. These are outlined in the scripts themselves. I would want to do something fancy like dump the dat files to a different directory, then you can modify the scripts, but you should understand what they do first.
    Most people would have 500MB of space on their discs , so I can see the problem creating these dat files . The same goes for your 30 GB database.
    I hope this helps, but as always you wont get a good idea of how it works until you give it a go.
    Regards,
    Dermot.

Maybe you are looking for

  • Got warnning in Grid control agent deployment

    I met the the error message ' PROBLEM : The host name in /etc/hosts is not proper. WARNING : Check complete. The overall result of this check is: Failed <<<< RECOMMENDATION : Please verify the hostname is /etc/hosts and the start the installation. '

  • Need help with a rudimentary program

    I'm sort of new at this so i need help with a few things... I'm making a program to compile wages and i need answers with three things: a.) what are the error messages im getting meaning? b.) How can i calculate the state tax as 2% of my gross pay wi

  • Cancel down payment

    Dear All, How to cancel a down payment invoice in SAP Business One ? Regards, Kawish

  • 10.5.7 Internet connection problems

    Installed update to 10.5.7 and now MacBook Pro will not connect to internet. Good signal from wireless network. Connects using USB wireless mobile broadband (shows time connected) but will NOT load internet pages or download email..... "Firefox can't

  • Disable event firing while updating list item in custom timer job

    Hi I am adding new items in the list usign custom timer job. While adding the items in the list event receiver of another list (which is not related to list which is updating) is getiing fired due to which I am getting data wrongly updated and except