Dataadapter Fill() is inserting comma in varchar2

Howdy,
How do I turn this behavior off?
Yes, the contents of the varchar2 column "looks" like a number (ie 3001, 4002 etc)
and yes some of the columns contain alphas.
Honest, the dataset's datatable column shows this correctly as a "string" type.
Honest, the data stored in the table does NOT contain any comma.
dennis

Look at the read demo in the link
http://www.psoug.org/reference/utl_file.html
http://www.devshed.com/c/a/Oracle/Reading-Text-Files-using-Oracle-PLSQL-and-UTLFILE/1/

Similar Messages

  • Rows per batch and Maximum insert commit size

    Have been reading various post to understand what the properties 'Maximum insert commit size' and 'Rows per batch' actually do and am confused as each have their own explanation to these properties. As far as I understood, MICS helps SQL server engine to
    commit the number of rows specified to it and RPB is to define the number of rows in a batch?
    In case I set the property to say RPB - 10000 and MICS - 5000, does this mean the input data is fetched in a batch of 10000 and each time only 5000 are committed?
    What happens in case of RPB - 5000, MICS - 10000. Are the batches formed for each 5000 records and committed for each 10k records?
    One post mentioned on RPB being merely a property to help SQL server device a optimal plan for data load. If this is true then why have the MICS property? Instead RPB can be assigned a value and engine decides on what is best load method it wants to use.
    Thanks!
    Rohit 

    Hi Rohit,
    Maximum insert commit size specify the batch size that the component tries to commit during fast load operations. The value of 0 indicates that all data is committed in a single batch after all rows have been processed. A value of 0 might cause the running
    package to stop responding if the component and another data flow component are updating the same source table. To prevent the package from stopping, set the Maximum insert commit size option to 2147483647.
    Rows per batch specify the number of rows in a batch. The default value of this property is –1, which indicates that no value has been assigned.
    For more details about those two properties, please refer to the following document:
    http://msdn.microsoft.com/en-IN/library/ms188439.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Fill with blanks(spaces) a VARCHAR2 type

    Thanks in advance,
    I have a VARCHAR2 type rtesta's var of length x(100 char)
    how i can fill(write) it without create a other varchar2 var that it'll be only filled with blanks(spaces). e.g
    rtesta := ' PC'||fil1||'xxx||fill2....
    where fil1 = say 10 spaces.. fill2 = 63 spaces and so on
    I would like something as
    rtesta := ' PC'|| RPAD(null,10)||'xxx||RPAD(null,63) ...
    but.... Oracle treats an empty string as null. And nulls are always a bit special within Oracle. Particularly, rpad('', n) and lpad('', n) returns null.
    Exists a built in for my problem?
    Thanks

    alter table your_table modify(your_column char(100));
    update your_table set your_column = ' '
      where your_clumn is null;  /* (added) But,this is no good for performance */
    alter table your_table modify(your_column varchar2(100));Exapmples.
    SQL> set null (null)
    SQL> create table test (vc varchar2(100));
    Table created.
    SQL> insert into test values ('');
    1 row created.
    SQL> insert into test values ('a');
    1 row created.
    SQL> insert into test values ('abcde');
    1 row created.
    SQL> select substr(vc,1,10) vc,length(vc) len from test;
    VC                          LEN
    (null)               (null)
    a                             1
    abcde                         5
    SQL> alter table test modify(vc char(100));
    Table altered.
    SQL> update test set vc = ' ' where vc is null;
    1 row updated.
    SQL> alter table test modify(vc varchar2(100));
    Table altered.
    SQL> select substr(vc,1,10) vc,length(vc) len from test;
    VC                          LEN
                                100
    a                           100
    abcde                       100----
    I misread OP's problem, sorry.
    Message was edited by:
    ushitaki

  • Bulk Insert - Commit Frequency

    Hi,
    I am working on OWB 9.2.
    I have a mapping that would be inserting > 90000 records in target table.
    When i execute the SQL query generated by OWB in Database it return result in 6 minutes.
    But when i executed this OWB mapping in 'Set based fail over row based' with Bulk-size = 50, commit frequency = 1000 and max error = 50 it is taking almost 40 minutes. Now while this mapping was running i checked the target table records count and it was increasing by 50 at a time and it is taking long time to finish.
    What changes I need to do to make this inserting of records Fastest.

    If it is inserting 50 a time, it means that setbased is failing and then it is switching to rowbased.
    If it is always failing in set based, it will be better to run in row based so as not spending time in set based.
    In row based mode, you can increase bulk size (like 5000 or 10000 or more ) for efficient execution. Keep commit freq same as bulk size.

  • Corrupted query  witdh dataadapter.fill?

    After using the ODP.NET driver (both) 9.2.0.4 and 9.2.0.2.102 for a while, we hit a problem today on 2 clients simulaneuously (new in-dev code, so maybe due to a recent change in our code).
    The strange thing that happened (seen in sqlnet trace file) is that the query is transmitted with a corrupted character: the query is below. Note the '^' in 'part^source'. Should have been 'part_source'. Altough there are some things added dynamically to the query, the 'part_source' part is hardcoded. Has anyone seen something like this using ODP.NET?
    Full query here:
    SELECT part_no , description , base_uom , part^source , base_conv_factor , base_to_unit , part_type , date_imported , changed_date , alt_part_no , obsolete FROM part WHERE (part_no =:1) ORDER BY part_no ASC
    Executed using:
    ' Create the DataAdapter & DataSet
    lDa = New OracleDataAdapter(lCmd)
    ' Fill the DataSet using default
    ' values for DataTable names, etc.
    lDa.Fill(lDt)
    If aWithSchema = True Then
         lDa.MissingSchemaAction = MissingSchemaAction.Add
         lDa.FillSchema(lDt, SchemaType.Source)
    End If

    Below is the ODP.NET trace...
    cirumstances:
    we have a library of queries (datalayer) that are being called from within an ASP.NET app. The queries work fine for a while, but after some time a couple of queries get garbled in the DA.Fill. In the debugger, the query still looks find up till the moment of DA.Fill, but then the column 'part_source' becomes 'part^source'. There are manipulations with stringbuilder before that, but this part of the query is fixed in our code.
    We have an operational version of our software running without this problem (but still on Framework 1.0, now we are at Framework 1.1). We have it both with 9.2.0.2102 and 9.2.0.4 ODP.NET vs. 9.2.0.1 Oracle DB (but since it's the Network send, I guess the target DB does not play a role in this problem).
    Recreating this problem in a small testcase is not obvious as the same rahter generic code works for 100's of other queries without problems (even with the query that generates an issue). The problem goes away after iisreset.
    TIME:2004/ 4/13-10:35:27: 6 TID: 768 OpsSqlExecuteNonQuery(): SQL: select parameter_data from interspc_cfg where section='interspec' and parameter='webversion'
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsSqlExecuteReader(): RetCode=0 Line=312
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsSqlAllocValCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsSqlAllocValCtx(): RetCode=0 Line=137
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsMetCopyValCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsMetCopyValCtx(): RetCode=0 Line=263
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsErrAllocCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsErrAllocCtx(): RetCode=0 Line=185
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsDacAllocValCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsDacAllocValCtx(): RetCode=0 Line=241
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleCommand::ExecuteReader()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OracleDataReader::Read()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsDacRead()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsDacRead(): RetCode=0 Line=187
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleDataReader::Read()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleCommand::ExecuteScalar()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OracleDataReader::GetValue()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OracleDataReader::IsDBNull()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsDacGetInd()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsDacGetInd(): RetCode=0 Line=566
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleDataReader::IsDBNull()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OracleDataReader::GetString()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsDacGetType()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsDacGetType(): RetCode=0 Line=685
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleDataReader::GetString()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleDataReader::GetValue()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsDacDispose()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsDacFreeCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsDacFreeCtx(): RetCode=0 Line=353
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsDacFreeValCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsDacFreeValCtx(): RetCode=0 Line=289
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsErrFreeCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsErrFreeCtx(): RetCode=0 Line=212
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsSqlFreeCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsSqlFreeCtx(): RetCode=0 Line=105
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsSqlFreeValCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsSqlFreeValCtx(): RetCode=0 Line=154
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsMetFreeValCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsMetFreeValCtx(): RetCode=0 Line=131
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsDacDispose(): RetCode=0 Line=438
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OracleParameterCollection::Clear()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleParameterCollection::Clear()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsSqlFreeValCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsSqlFreeValCtx(): RetCode=0 Line=154
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsErrFreeCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsErrFreeCtx(): RetCode=0 Line=212
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OracleParameter::OracleParameter(2)
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsPrmAllocValCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsPrmAllocValCtx(): RetCode=0 Line=131
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleParameter::OracleParameter(2)
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OracleCommand::OracleCommand(1)
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleCommand::OracleCommand(1)
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OracleCommand::CommandText(): set
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleCommand::CommandText(): set
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OracleParameterCollection::Add(2)
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleParameterCollection::Add(2)
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OracleDataAdapter::OracleDataAdapter(2)
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OracleDataAdapter::OracleDataAdapter(2)
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsPrmResetValCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsPrmResetValCtx(): RetCode=0 Line=154
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsSqlExecuteReader()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsErrAllocCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsErrAllocCtx(): RetCode=0 Line=185
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (ENTRY) OpsSqlAllocCtx()
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 (EXIT) OpsSqlAllocCtx(): RetCode=0 Line=80
    TIME:2004/ 4/13-10:35:27: 16 TID: 768 OpsSqlExecuteNonQuery(): SQL: SELECT part_no , description , base_uom , part^source , base_conv_factor , base_to_unit , part_type , date_imported , changed_date , alt_part_no , obsolete FROM part WHERE (part_no =:1) ORDER BY part_no ASC
    TIME:2004/ 4/13-10:35:27: 36 TID: 768 (EXIT) OpsSqlExecuteReader(): RetCode=-1 Line=308
    TIME:2004/ 4/13-10:35:27: 46 TID: 768 (ENTRY) OpsErrGetOpoCtx()
    TIME:2004/ 4/13-10:35:27: 46 TID: 768 (ERROR) Oracle error code=923
    TIME:2004/ 4/13-10:35:27: 46 TID: 768 (EXIT) OpsErrGetOpoCtx(): RetCode=0 Line=125
    TIME:2004/ 4/13-10:35:36:941 TID: 768 (ENTRY) OracleConnection::Close()
    TIME:2004/ 4/13-10:35:36:941 TID: 768 (ENTRY) OpsConClose()
    TIME:2004/ 4/13-10:35:36:961 TID: 768 (EXIT) OpsConClose(): RetCode=0 Line=562
    TIME:2004/ 4/13-10:35:36:961 TID: 768 (EXIT) OracleConnection::Close()
    TIME:2004/ 4/13-10:35:36:961 TID: 768 (ENTRY) OracleConnection::Dispose()
    TIME:2004/ 4/13-10:35:36:961 TID: 768 (ENTRY) OpsConDispose()
    TIME:2004/ 4/13-10:35:36:961 TID: 768 (ENTRY) OpsConFreeValCtx()
    TIME:2004/ 4/13-10:35:36:961 TID: 768 (EXIT) OpsConFreeValCtx(): RetCode=0 Line=587
    TIME:2004/ 4/13-10:35:36:961 TID: 768 (EXIT) OpsConDispose(): RetCode=0 Line=697
    TIME:2004/ 4/13-10:35:36:961 TID: 768 (EXIT) OracleConnection::Dispose()
    TIME:2004/ 4/13-10:35:42:330 TID: 768 (ENTRY) OracleConnection::OracleConnection(2)
    TIME:2004/ 4/13-10:35:42:330 TID: 768 (EXIT) OracleConnection::OracleConnection(2)
    TIME:2004/ 4/13-10:35:42:330 TID: 768 (ENTRY) OracleConnection::Open()
    TIME:2004/ 4/13-10:35:42:330 TID: 768 (ENTRY) OpsConAllocValCtx()
    TIME:2004/ 4/13-10:35:42:330 TID: 768 (EXIT) OpsConAllocValCtx(): RetCode=0 Line=129
    TIME:2004/ 4/13-10:35:42:330 TID: 768 (ENTRY) OpsConOpen()
    TIME:2004/ 4/13-10:35:42:510 TID: 768 (ENTRY) OpsConClose()
    TIME:2004/ 4/13-10:35:42:530 TID: 768 (EXIT) OpsConClose(): RetCode=0 Line=562
    TIME:2004/ 4/13-10:35:42:530 TID: 768 (ENTRY) OpsConDispose()
    TIME:2004/ 4/13-10:35:42:530 TID: 768 (EXIT) OpsConDispose(): RetCode=0 Line=697
    TIME:2004/ 4/13-10:35:42:530 TID: 768 (ENTRY) OpsErrGetOraMesg()
    TIME:2004/ 4/13-10:35:42:540 TID: 768 (EXIT) OpsErrGetOraMesg(): RetCode=0 Line=298
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsSqlFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsSqlFreeValCtx(): RetCode=0 Line=154
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsErrFreeCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsErrFreeCtx(): RetCode=0 Line=212
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsSqlFreeCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsSqlFreeCtx(): RetCode=0 Line=105
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsSqlFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsSqlFreeValCtx(): RetCode=0 Line=154
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsErrFreeCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsErrFreeCtx(): RetCode=0 Line=212
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsSqlFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsSqlFreeValCtx(): RetCode=0 Line=154
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsErrFreeCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsErrFreeCtx(): RetCode=0 Line=212
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsSqlFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsSqlFreeValCtx(): RetCode=0 Line=154
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsErrFreeCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsErrFreeCtx(): RetCode=0 Line=212
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsPrmFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsPrmFreeValCtx(): RetCode=0 Line=297
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsSqlFreeValCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsSqlFreeValCtx(): RetCode=0 Line=154
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (ENTRY) OpsErrFreeCtx()
    TIME:2004/ 4/13-10:35:42:870 TID: 788 (EXIT) OpsErrFreeCtx(): RetCode=0 Line=212
    TIME:2004/ 4/13-10:35:46:756 TID: 768 (ENTRY) OracleConnection::OracleConnection(2)
    TIME:2004/ 4/13-10:35:46:756 TID: 768 (EXIT) OracleConnection::OracleConnection(2)
    TIME:2004/ 4/13-10:35:46:756 TID: 768 (ENTRY) OracleConnection::Open()
    TIME:2004/ 4/13-10:35:46:756 TID: 768 (ENTRY) OpsConAllocValCtx()
    TIME:2004/ 4/13-10:35:46:756 TID: 768 (EXIT) OpsConAllocValCtx(): RetCode=0 Line=129
    TIME:2004/ 4/13-10:35:46:756 TID: 768 (ENTRY) OpsConOpen()
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OpsConOpen(): RetCode=0 Line=1354
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OracleConnection::Open()
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (ENTRY) OracleParameter::OracleParameter(4)
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (ENTRY) OpsPrmAllocValCtx()
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OpsPrmAllocValCtx(): RetCode=0 Line=131
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OracleParameter::OracleParameter(4)
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (ENTRY) OracleCommand::OracleCommand(1)
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OracleCommand::OracleCommand(1)
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (ENTRY) OracleCommand::CommandText(): set
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OracleCommand::CommandText(): set
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (ENTRY) OracleParameterCollection::Add(2)
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OracleParameterCollection::Add(2)
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (ENTRY) OracleDataAdapter::OracleDataAdapter(2)
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OracleDataAdapter::OracleDataAdapter(2)
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (ENTRY) OpsPrmResetValCtx()
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OpsPrmResetValCtx(): RetCode=0 Line=154
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (ENTRY) OpsSqlExecuteReader()
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (ENTRY) OpsErrAllocCtx()
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OpsErrAllocCtx(): RetCode=0 Line=185
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (ENTRY) OpsSqlAllocCtx()
    TIME:2004/ 4/13-10:35:46:937 TID: 768 (EXIT) OpsSqlAllocCtx(): RetCode=0 Line=80
    TIME:2004/ 4/13-10:35:46:937 TID: 768 OpsSqlExecuteNonQuery(): SQL: SELECT user_id , user_initials , last_name , forename , telephone_no , email_address , initial_profile , user_profile , limited_configurator , intl , plant_access , printing_allowed , reference_text , web_allowed , current_only , approved_only , override_part_val , prod_access , plan_access , phase_access , view_bom FROM application_user WHERE application_user.USER_ID = :userid

  • How do I get the iPad to stop inserting commas in a number entered in a field on safari?

    I am filling out a form on Safari. It asks for my bank routing number, which I filled in. Moving on to the next field, I look up to find the iPad has entered commas in this number. It will not allow me to remove them. I turned off Autofill, etc. nothing seems to work.

    I think that this thread addresses your question: https://discussions.apple.com/thread/3408352?start=0&tstart=0
    Unfortunately, it doesn't look like there's a fix for the problem yet, though..

  • Inserting comma seperated values

    I created a stored procedure that creates an order_id. Using this id, the products and their pricetag are inserted. Hereafter the garnishes are inserted for each product.
    Creating an order id and inserting the products and their pricetag are working. The problem is at the inserting of garnishes. 
    The data is received by parameters, and I have also created a user defined type: where garnishId holds the comma seperated ids.
    CREATE TYPE [dbo].[ppg] AS TABLE(
    [ProductId] [int] NULL,
    [PriceId] [int] NULL,
    [garnishId] [VARCHAR](MAX) NULL
    this is the stored procedure:
    ALTER PROCEDURE [dbo].[sp_create_order]
    (@userId uniqueidentifier, @productPriceGarnishes dbo.ppg READONLY, @comment varchar(250))
    AS
    BEGIN
    DECLARE @orderId int
    DECLARE @orderDetailId int
    INSERT INTO orders (user_id, confirmed,comment) values(@userId,0,@comment);
    --Select last inserted PK
    SELECT @orderId=SCOPE_IDENTITY()
    -- insert products and price tag using @orderId
    INSERT INTO order_detail (order_id, product_id,price_id)
    SELECT @orderId, p.ProductId,
    p.PriceId
    FROM @productPriceGarnishes p
    SELECT @orderDetailId=SCOPE_IDENTITY()
    -- insert garnishes using the orderDetailId
    INSERT INTO order_detail_garnish (order_detail_id,garnish_id)
    SELECT @orderDetailId, (SELECT * FROM SplitDelimiterString(p.garnishId))
    FROM @productPriceGarnishes p
    END
    RETURN @orderId
    I found a function that splits the string by a delimiter in this website:
    http://www.codeproject.com/Tips/586395/Split-comma-separated-IDs-to-ge
    Where you can retrieve the ids by this query:
    (SELECT * FROM SplitDelimiterString(p.garnishId)
    The problem is that I don't know how to add these ids with their corresponding orderDetailId, after each product is added.

    Unfortunately it appears you assume too much.  Presumably the reason you chose to define @productPriceGarnishes as a table is to support the creation of multiple rows. And you use these rows to insert into the order_detail table which has an identity
    column as the primary key (again, presumably).  So the question then becomes how do you get the identity values for ALL of the inserted rows?  You can't do that with SCOPE_IDENTITY - your code currently is designed with the assumption that there
    is only one row to be inserted.  To work around that limitation you need to use the output clause (examples can be found by searching). 
    Next comes another problem.  How do you know which identity value is assigned to which row of your table variable during the insert?  You need some sort of natural key to associate the inserted rows with the rows in the table variable.  Do
    you have one?  Before you think you do, you need to think about what restrictions are placed on the content of the table variable (if any).  Is it possible to have multiple rows with the same values for ProductId and PriceId?  Do not assume
    - you need to be certain that this is or is not a possibility.
    Assuming that the rows are unique (which simplifies things greatly), you associate the inserted order_detail rows to the table variable via something like:
    select ... from @ins_detail as ins inner join @productPriceGarnishes as ppg
    on ins.ProductId = ppg.ProductId and ins.PriceId = ppg.PriceId
    Note that @ins_detail is a table variable that you would declare and populate via the output clause. It will contain the identity values for each row that you inserted.  With that, you can then generate the rows that you need to insert into the garnish
    table by applying the results of your splitter function.  Which is a step that I'll skip for now since you have much reading and work to do. 
    Now some last comments.  I am suspicious of a column named PriceId.  That is not a good sign - price is an attribute of something and not the basis of a relationship between tables.  The use of identity columns (especially as primary keys)
    can be a problem - and this is one good example.  Based on what I've just written and its assumptions, the natural key for order_detail is (order_id, product_id, price_id) - why do you need an identity column?  Again, searching will find past
    discussions about identity columns and their usage.

  • How to insert bytes in varchar2 column

    existed data:
    ALIAS VARCHAR2(240)
    SELECT ALIAS,DUMP(ALIAS,8) FROM AR_COLLECTORS WHERE COLLECTOR_ID=47880
    ¿¿¿     Typ=1 Len=9: 351,231,263,345,230,211,350,217,261
    How to create the same data from SQL PL/SQL?
    INSERT INTO AR_COLLECTORS (ALIAS) VALUES ( ???

    I'm not quite sure what you are asking here. DUMP is a function that shows the internal representation of the data stored in a field or variable. You do not need to store the DUMP values explicitly, they are derived from your actual data. If, for some inexplicable reason, you want to store the output of the DUMP command in another table, then you can do something like
    CREATE TABLE dumpvals (real_value VARCHAR2(400), dump_value VARCHAR2(4000));
    INSERT INTO dumpvals
    SELECT column,DUMP(column,8)
    FROM table;
    or, in PL/SQL
    BEGIN
       FOR r in (SELECT column tval,DUMP(column,8) dval
                 FROM table) LOOP
          INSERT INTO dumpvals
          VALUES(r.tval,r.dval);
       END LOOP;
    END;If you can give a fuller explanation of what you are looking for, perhaps someone could give a better answer.
    TTFN
    John

  • Insert comma within string

    I have an insert statement which contains two string ,
    INSERT INTO hip.ref_hip_specialties VALUES('NP-WOMEN'S HEALTH','NP-WOMEN'S HEALTH');
    But getting error
    ERROR at line 1:
    ORA-00917: missing comma
    I know its because of 'S in the strings.How can i include it while inserting ?Please help

    Hello,
    Assuming you're on 10g or greater, then this will work, using Q Notation:
    INSERT INTO hip.ref_hip_specialties VALUES(Q'[NP-WOMEN'S HEALTH]',Q'[NP-WOMEN'S HEALTH]');

  • Insert comma at every third position in string...

    I am flumoxed on something rather simple I fear.  I have a string like this ...
    B01B09B20B21C13E10F07G12G20G24
    I need to turn it into this
    B01,B09,B20,B21,C13,E10,F07,G12,G20,G24
    It is consistant in the following:
    1. each segment will always be 3 characters long
    2. each segment will always be structured as 1 character and 2 numerals
    3. the list will always vary in length but always divisible by 3
    Any simple solutions?  I have though about various cflooping methods and simply not liked anythign I cam up with.
    All help is greatly appreciated.
    God Bless!
    Chris

    Here are a couple options.  I prefer the first.
    <cfset string = "B01B09B20B21C13E10F07G12G20G24" />
    <cfset newstring = "" />
    <cfloop from="1" to="#len(string)#" index="i" step="3">
    <cfset newstring = listAppend(newstring, mid(string, i, 3), ",") />
    </cfloop>
    <cfoutput>#newstring#</cfoutput>
    ========================================================================================== =
    <cfset string = "B01B09B20B21C13E10F07G12G20G24" />
    <cfset counter = 0 />
    <!--- Iterate length - 4 times (-4 so that it does not do a final loop and stick a comma on the end) --->
    <cfloop from="0" to="#len(string)-4#" index="i" step="3">
    <cfset string = insert(",", string, i+counter+3) />
    <cfset counter++ />
    </cfloop>
    <cfoutput>#string#</cfoutput>

  • Insert Comma if

    I am using floating values into a paragraph.
    Lets use the following for an example:
    The first page of the form gathers some information including x amount of names. later on in the form I insert the names into a paragraph as such -
    We will be including the participants {name1} {name2} {name3} {name4}.
    I have successfully been able to insert the names but want to separate each name with a comma but only if there are the additional names because sometimes there is 2 names, other times 4.

    weird. When I do it, I have to spell out comma and period if I don't want the punctuation... I just tried the exact same phrase and got "As I said, please don't disturb me." Is there a setting under dictation that says something like "spell out punctuation"?

  • Data provider internal error(-3000)  during DataAdapter.Fill

    I get this error sporadically.
    From other messages on this forum, it seems others are having similar problems. It appears the Oracle staff
    is still struggling to identify and fix (or did I miss a post?)
    I hope the next release can include some more informative diagnostic error messages. (no judgment implied, just a suggestion).
    But I need this to work, so I'm posting my
    info as well in hopes it will help.
    Sorry for the length, but I think all the detail may be needed to diagnose.
    I have been using ODP.Net for weeks without trouble
    until recently. I just added a CLOB field to my table yesterday, and
    the problem started. I don't know whether that's cause or coincidence.
    Possible workarounds I will try:
    1) Explicit select of columns rather than select *
    2) Retry once on failure after short delay
    Below, I'm including the exception message from the ASP.Net page.
    It occurs at the same spot in my code, but often
    it works fine. Now, an hour later, I cannot repeat the problem.
    I've edited the "Source Error" section to
    provide more of the code, so you can see the full context.
    I've also pasted the stored procedure called so you can see what that is about.
    I need this to work, so feel free to contact me if you need further information
    to diagnose this in order to fix it.
    I go live on March 7, so if I don't get a fix soon and can't find
    a workaround, I'll just make a lame error message like "Site is very busy, please try again".
    Even though the site is NOT busy. But having them try again seems to work.
    And I don't want to tell them why I'm asking them to try again <grin>.
    I am thinking of putting a try/catch block and sleeping for a second and then trying one more
    time in my code. I'll let you know if that is an effective work-around.
    David Kreth Allen
    University of Minnesota
    Carlson School of Management
    [email protected] remove XYZ to send emails
    612-625-0386
    <WebPageError>
    Server Error in '/ScholarshipApplicationWeb' Application.
    Data provider internal error(-3000)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: Oracle.DataAccess.Client.OracleException: Data provider internal error(-3000)
    Source Error:
         OracleCommand cmd = new OracleCommand();
         cmd.Connection = new OracleConnection(
              ApplicationEnvironment.current.database.OracleConnectionString);
         cmd.CommandType = CommandType.StoredProcedure;
         cmd.CommandText = "pkg_batch.get_details";
         cmd.Parameters.Add("batch_id",OracleDbType.Int32,
              batchId,ParameterDirection.Input);
         cmd.Parameters.Add("batchCursor",OracleDbType.RefCursor,
              DBNull.Value,ParameterDirection.Output);
         cmd.Parameters.Add("majorsCursor",OracleDbType.RefCursor,
              DBNull.Value,ParameterDirection.Output);
         cmd.Parameters.Add("detailCursor",OracleDbType.RefCursor,
              DBNull.Value,ParameterDirection.Output);
         OracleDataAdapter da = new OracleDataAdapter(cmd);
         DataSet ds = new DataSet("batches");
         da.Fill(ds);
         DataTable dt = ds.Tables[0];
         dt.TableName = "batch";
    Source File: C:\Projects\ScholarshipSolution\ScholarshipLibrary\Data\ScholarshipApplicationBatch.cs Line: 329
    Stack Trace:
    [OracleException: Data provider internal error(-3000)]
    Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, IntPtr opsSqlCtx, Object src, String procedure, String[] args)
    Oracle.DataAccess.Client.OracleDataReader.NextResult() +1259
    System.Data.Common.DbDataAdapter.FillNextResult(IDataReader dataReader) +98
    System.Data.Common.DbDataAdapter.FillFromReader(Object data, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +261
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +129
    Oracle.DataAccess.Client.OracleDataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +516
    Oracle.DataAccess.Client.OracleDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +290
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38
    CSOM.ScholarshipLibrary.Data.ScholarshipApplicationBatch.getDataById(Int32 batchId) in C:\Projects\ScholarshipSolution\ScholarshipLibrary\Data\ScholarshipApplicationBatch.cs:329
    CSOM.ScholarshipLibrary.Data.ScholarshipApplicationBatch.GetById(Int32 batchId) in C:\Projects\ScholarshipSolution\ScholarshipLibrary\Data\ScholarshipApplicationBatch.cs:290
    CSOM.ScholarshipApplicationWeb.BatchSummaryControl.Edit_Click(Object sender, CommandEventArgs e) in c:\inetpub\wwwroot\ScholarshipApplicationWeb\BatchSummaryControl.cs:68
    System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +110
    System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +115
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
    System.Web.UI.Page.ProcessRequestMain() +1244
    Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288
    </WebPageError>
    <PackageBody>
    PROCEDURE GET_DETAILS(
    p_batch_id IN number,
    batchCursor OUT pkg_batch.refcur,
    majorsCursor OUT pkg_batch.refcur,
    applicationsCursor OUT pkg_batch.refcur
    IS
    BEGIN
    OPEN batchCursor FOR SELECT
    * FROM scholarshipApplicationBatch
    where scholarshipApplicationBatch_id = p_batch_id;
    OPEN majorsCursor FOR SELECT
    * FROM major_response
    where batch_id = p_batch_id;
    OPEN applicationsCursor FOR SELECT
    * FROM schol_detail
    where batch_id = p_batch_id;
    END GET_DETAILS;
    </PackageBody>

    One workaround that seems to work is to retry in a loop.
    Sample code is pasted below.
    Obviously it may still fail, but less often.
    I'll report any further changes that affect
    the behavior in hopes it will assist the Oracle staff in
    fixing it.
    <CODE>
    try
    da.Fill(ds);
    catch (OracleException excp)
         const int maxTrys = 5;
         int failureCount = 1;
         bool succeeded = false;
         for (int i = 0;i<maxTrys;i++)
              try
                   System.Threading.Thread.Sleep(
                        TimeSpan.FromSeconds(1));
                   ds.Clear();
                   da.Fill(ds);
                   i = maxTrys;
                   succeeded = true;
              }//try
              catch
                   failureCount ++;
         }//for
         errorHandler.Report(
              String.Format(
              "Failure in da.Fill in ScholAppBatch. " +
              " Failed {0} times. Finally Succeeded = {1}.",
                                            failureCount.ToString(),
         succeeded.ToString()),
              excp);
    }//catch
    </CODE>

  • DataAdapter.Fill doesn't include PrimaryKey Info

    We are using Oracle 9i and Odp.net verion 9.2.0.401.
    I am using the data adapter on a command that is a simple select statement in our code. The code is written generically to support multiple providers using ado.net.
    The problem I am having is that when I call Fill with "adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey" specified that DataTable comes back with no primary key. Other providers bring this information back.
    I read in the manual that indicates that "schema and key information is not brought back even if MissingSchemaAction = MissingSchemaAction.AddWithKey is specified". This seem to function a bit different than other providers (both SqlServer and Oracle).
    How would I load this info when I load the table using fill?
    Thanks in advance
    Sample of our code:
    public static DataTable LoadTable(string name)
    IDbTransaction transaction = null;
    IDbConnection connection = null;
    DataSet dataSet = new DataSet();
    string query = string.Format("SELECT * FROM {0}", name);
    DataTable tableToReturn = null;
    try
    OpenConnection(out connection, out transaction);
    IDbCommand command = InterfaceDataProvider.CreateCommand(transaction.Connection, transaction, query);
    DbDataAdapter adapter = InterfaceDataProvider.CreateAdapter(command);
    adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey;
    adapter.Fill(dataSet, name);
    tableToReturn = dataSet.Tables[name];
    finally
    CloseConnection(connection);
    return tableToReturn;

    It's unfortunate that the OracleDataAdapter doesn't retrieve this information. Anyway, here's how to do it yourself:
      static void derivePK(DataTable t, string name, OracleConnection con)
        OracleCommand c = new OracleCommand(@"select column_name
                                                from user_cons_columns ucc,
                                                user_constraints uc 
                                                where  ucc.constraint_name =  uc.constraint_name
                                                and    uc.constraint_type = 'P'
                                                and uc.table_name = upper(:1) order by ucc.position",con);
        cmd.Parameters.Add("name",name);
        System.Collections.ArrayList keyColumnList = new System.Collections.ArrayList();
        using (OracleDataReader r = c.ExecuteReader()) 
        while (r.Read())
          keyColumnList.Add(t.Columns[(string)r[0]]);
        DataColumn[] keyColumns = (DataColumn[])keyColumnList.ToArray(typeof(DataColumn));
        t.PrimaryKey = keyColumns;
      }David

  • Regex question: How do I insert commas between meta data?

    Current search engine is being replaced with Google Search Appliance (GSA). It requires meta data to be separated by a comma + space, whereas the previous search engine required only a space.  For example:
    <meta name="C_NAME" content="Screen1 Screen2">
    must become
    <meta name="C_NAME" content="Screen1, Screen2">
    There are 17 unique screen names and each of 2500 html files may have one or more screen names identified in that meta tag field.
    I am hoping for some regular express magic to help me with that global search/replace effort.  Suggestions are greatly appreciated.
    Thanks,
    Rick
    ================================
    Nevermind... figured it out.  Just needed to study regex syntax a bit. Here's the answer:
    Find:  <meta name="C_NAME" content="(\w+)\s(\w+)\s
    Replace:  <meta name="C_NAME" content="$1, $2,

    The only transition you can add this way is default cross dissolve. If the images are in the timeline, move the playhead to the beginning of the images, select them all, and drag from the timeline to the canvas to overwrite with transition.

  • Inserting comma seperated values into table

    Hi,
    There is a variable like this,
    var= 'C0001,C0002,C0003';
    I want c0001 c0002 and c0003 to get inserted into some temp table as seperate rows, how do I do that.
    Thnx again ur your response.

    Hi,
    There is a variable like this,
    var= 'C0001,C0002,C0003';
    I want c0001 c0002 and c0003 to get inserted into some temp table as seperate rows, how do I do that.
    Thnx again ur your response.

Maybe you are looking for

  • More than one Quant in a Storage bin section (Strategy P)

    Dear all, We have a Storage type with Putaway strategy P, the SUT check active but no SU Management active, Mixed storage = X and Addition to stock = X. For this Storage type, our Storage bin type and SUT we have set up in customizing a Bin sectionin

  • Import WebService in CE 7.2

    Hi All, I have created a Simple CAF application in which I have created a custom method which accepts the input and returns the value entered by the user. After the operation was completed, the application service was exposed as a WebService. I have

  • SMTP Mail Server Address

    Hi All! Can we find the IP address of the SMTP mail server and its outgoing mail port number through java? If Yes, how? regards, Rajat Aggarwal

  • Material regrouping in MM02 not reflecting in COPA report

    Hi, In my project during data conversion material was grouped wrongly. We realised it later once we started designing COPA reports. The material is used by seven company codes. The basic material group defined in basic data is used by all company cod

  • What export setting will match the following?

    Hi there, I'll be using a Canon Vixia HG20 with DM100 Canon minishoe external mic and the client requires the below attributes for final delivery. My question: What export setting(s)/codec in FCPX will ensure I get all of this criteria? I'd prefer to