Anyone some info on how and when to use SafeMapping ?

Tried: "MYCOL", "String"
and "MYCOL", "System.String"
MYCOL is a VARCHAR2
{System.InvalidCastException}
[System.InvalidCastException]: {System.InvalidCastException}
Object: {System.InvalidCastException}
_COMPlusExceptionCode: -532459699
_className: Nothing
_exceptionMethod: Nothing
_exceptionMethodString: Nothing
_message: "Specified cast is not valid."
_innerException: Nothing
_helpURL: Nothing
_stackTrace: {System.Array}
_stackTraceString: Nothing
_remoteStackTraceString: Nothing
_remoteStackIndex: 0
_HResult: -2147467262
_source: Nothing
_xptrs: 0
_xcode: -532459699
Message: "Specified cast is not valid."
InnerException: Nothing
TargetSite: {System.Reflection.RuntimeMethodInfo}
StackTrace: " at Oracle.DataAccess.Client.OracleDataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
at Oracle.DataAccess.Client.OracleDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at GetTrailBlank.GetTrailingBlank.Button1_Click(Object sender, EventArgs e) in E:\DevProjs\VSNet\GetTrailBlank\GetTrailBlank.vb:line 103"
HelpLink: ""
Source: "Oracle.DataAccess"
HResult: -2147467262

For how to use Safe Type Mapping you can refer
Safe Type Mapping Sample at
http://otn.oracle.com/sample_code/tech/windows/odpnet/content.html
When to use :
Safe Type Mapping is a feature that allows OracleDataAdapter to populate a DataSet with .NET type representations of Oracle data without any data or precision loss. ODP.NET defines corruptible types (DATE, TIMESTAMP, INTERVAL DAY TO SECOND and NUMBER types) which can potentially loose precision when converted to their corresponding .NET types during database operations. By using the Safe Type Mapping feature of ODP.NET these types can be safely retrieved as String or a byte array as against their default .NET types in the DataSet to avoid precision loss.
HTH
Jagriti

Similar Messages

  • Composite mode (control click or right click) and how and when to use

    Hello,
    I would like to learn how and when to utilize the composite mode (control click or right click on your timeline)and all of its functions. Do you have a recommendation as to who might be able to explain what each of the composite mode functions do? Editors keep referring to how great this feature in FCP is.
    Thanks,
    Jordan

    Have a read through the manual first. It explains what Composite Mode does and the theoretical underpinnings. Book III- Chapter 18- Page 361 (in FCP 5.1) is a good place to start.
    If you have questions, come back.
    Have fun.
    x

  • How and when to use WAIT parameter in BAPI_TRANSACTION_COMMIT? Help!

    Hi Experts,
       In the BAPI_TRANSACTION_COMMIT function module there is an input parameter "WAIT".
      What is the significance or use of WAIT?
      How do we use it? What values does it take?
      For which case do we use WAIT and for which not?
    KIndly help me understand this.
    Thanks
    Gopal

    Hi,
    This method executes a COMMIT WORK command. It is required for transactions developed externally to the R/3 System  that change data in the R/3 System via BAPI calls.
    When you call BAPIs in your program that change data in the R/3 System, afterwards you must call this method to write the changes to the database.
    The default value of this parameter is SPACE. If the parameter contains the value SPACE or it does not contain a value at all, then a simple COMMIT WORK is executed.
    If the parameter WAIT contains a value other than SPACE, a COMMIT WORK AND WAIT command is executed.
    The result is that the data within a Logical Unit of Work (LUW), changed by one or more BAPIs after the BAPI 'BapiService.TransactionCommit' has been called, is immediately available in the database.
    The following values are possible:
    The command 'COMMIT WORK' is executed - the program does not wait, until COMMIT WORK is completed. When the database is next accessed directly, all the old data may still be able to be read.
    'X'
    The command 'COMMIT WORK AND WAIT' is executed - the program waits until the COMMIT WORK is completed. When the database is next accessed, the updated data is read.
    reference : function module documentation.
    thanx.
    Edited by: Dhanashri Pawar on Sep 18, 2008 6:41 AM

  • Did anyone ever do wedding invitations in pages if so could you give me some info on how to do this

    did anyone ever do wedding invitations in pages if so could you give me some info on how to do this

    Why did you pay for Pages 5? Nearly everyone gets it for free and if you have iWork '09 you can upgrade for free, all 3 apps.
    For the layout of a Wedding Invitation, either buy a set of templates from the Mac App Store or places like Jumsoft, or look for a Word template you like from the Internet and open that in Pages.
    A wedding invitation just consists of text and some graphics on a specified sheet of paper. Usually quality paper you can buy precut and which may be folded to purpose. Just position the text and the graphics where you want on the page, do a few test prints to see if you like it and everything is OK, then reproduce.
    If you want to merge names and addresses from either Contacts or a Numbers spreadsheet, I repeat you can not do this in Pages 5.
    You need Pages '09. You can buy iWork '09 which has Pages, Numbers and Keynote '09 in it for US$26.99 from Amazon.
    Or do it with LibreOffice [free].
    Peter

  • I can not see my website in firefox. It works in all other browsers. Could I get some info on how to make it visable in Firefox??

    I am working on a site in wordpress and realized that it's visible in all browsers except Firefox. Could you give me some info on how to fix this issue?

    I have no problem seeing - http://www.expeteccorporation.com/ - in Aurora 10.0a2.
    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • How and when the table will go STALE ?

    Hi,
    I want to check how and when a table will be marked as STALE.
    I have done following steps
    ---- Created a table --------------------
    SQL> create table t1 (id number, name varchar2(100)) ;
    Table created.
    ---- Inserted decent amount of data --------------
    SQL> declare v1 number; begin for i in 1..25 loop
    2 insert into t1 select object_id, object_name from all_objects ; commit; end loop;
    3 end;
    4 /
    PL/SQL procedure successfully completed.
    SQL> select table_name, status, num_rows, last_analyzed, monitoring from user_tables where table_name='T1';
    TABLE_NAME STATUS NUM_ROWS LAST_ANAL MON
    T1 VALID YES
    ---- Gather stats -----------------
    SQL> exec dbms_stats.gather_table_stats( user, 'T1', METHOD_OPT => 'FOR ALL COLUMNS SIZE 1');
    PL/SQL procedure successfully completed.
    SQL> select table_name, status, num_rows, last_analyzed, monitoring from user_tables where table_name='T1';
    TABLE_NAME STATUS NUM_ROWS LAST_ANAL MON
    T1 VALID 115544 18-JAN-08 YES
    ---- Insert more data ---------------------------
    SQL> declare v1 number; begin for i in 1..25 loop
    2 insert into t1 select object_id, object_name from all_objects ; commit; end loop;
    3 end;
    4 /
    PL/SQL procedure successfully completed.
    Now, after I have analyzed the table and get the stats in, I loaded good amount of data. So, in theory, this table should be marked as STALE.
    Where can I check if this table has been marked STALE? when ?
    Please guide.
    Thanks

    You need to read that manual with more caution. It has all info you need.
    1. Table modification info stays in shared pool and flushed into dictionary by Oracle automatically. You can explicity do it by calling dbms_stats.flush_database_monitoring_info.
    2. dba_tab_modifications view = How many DML are applied to target table?
    dba_tab_statistics.stale_stats = Is statistics stale?
    3. When you call dbms_stats.gather... familiy, Oracle flushed the stale info to disk. You gnerally don't need to care about that.
    4. Statistics is considered to be stale, when the change is over 10% of current rows.
    (As of 11g, this value can be customized per objects. Cool feature)
    create table t_stat(id int);
    insert into t_stat select rownum from all_objects where rownum <= 100;
    commit;
    exec dbms_stats.gather_table_stats(user, 'T_STAT');
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    No row selected
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    NO
    insert into t_stat select rownum from all_objects where rownum <= 20;
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    No rows selected <-- Oops
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    NO  <-- Oops
    exec dbms_stats.flush_database_monitoring_info;
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    TABLE_OWNER     TABLE_NAME     PARTITION_NAME     SUBPARTITION_NAME     INSERTS     UPDATES     DELETES     TIMESTAMP     TRUNCATED     DROP_SEGMENTS
    UKJA     T_STAT               20     0     0     2008-01-18 PM 11:30:19     NO     0
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    YES

  • HT201209 I want to use a gift card to purchase music thru i tunes, have a  $15 credit but i am asked to confirm my credit card info.  How do I purchase using my $15 credit and not be charged on my credit card?

    I want to use a gift card to purchase music thru i tunes, have a  $15 credit but i am asked to confirm my credit card info.  How do I purchase using my $15 gift card credit  and not be charged on my credit card?

    Hey,
    Even tho iTunes is asking to confirm your credit card details, when you purchase something it will still draw from your iTunes balance first. I think it is just a security check to ensure no one else is using your account.
    This happened to me a couple of days ago but i simply conformed my details and entered my card security code then itunes took the payment from my account balance.

  • I just purchased Export PDF, and when I use it, it opens them in WordPad (which I never use) instead of Word. Thus, the pictures are not there, and the fonts are changed. How do I get into Word?

    I just purchased Export PDF, and when I use it, it opens them in WordPad (which I never use) instead of Word. Thus, the pictures are not there, and the fonts are changed. How do I get them imported into Word?

    Hi,
    I checked your account,your Export PDF subscription is in 'Pending' status.
    Once it gets confirmed you will be able to use it.
    Please let us know if you require further assistance.
    Regards,
    Florence

  • How and when to create a fact table

    hi every1,
    I am new to oracle and specially to Data Warehousing. I am using OWB 11g on windows XP.
    I have created the dimensional for a database, now i am in the implementation phase.
    i have the following questions.
    1. I don't know how and when to create a fact table. I have already created the dimensions (ROLAP).
    2. Do i need to create a mapping for a Cube. if yes, then how to load them from 4 different dimensions. how will be the join condition, they don't match?
    3. I will also try for aggregation, do i need to use MOLAP for the dimensions or ROLAP works?
    Please, give a quick reply.
    regards
    RF

    You should ask your question here:
    Warehouse Builder
    where it is on topic.

  • When I have headphones plugged into my iphone it says warning'' high volume'' and becomes first a red and then plop a number of red pops but it will not be so for someone else I know. My sound will be much lower than anyone else in the music, and when I t

    When I have headphones plugged into my iphone it says warning'' high volume'' and becomes first a red and then plop a number of red pops but it will not be so for someone else I know. My sound will be much lower than anyone else in the music, and when I talk by phone headset

    Hi! I have the same problem when I use my headphones .
    iPhone 4s England, iOS 6.1.2

  • How and when do applications get stored on iCloud? I play a game called injustice and it saves to iCloud but seems to do it randomly. I often lose the most recent game and it backs up to an old one. Can i do it manually? is there a way to check?

    when do games get saved? Can i do it manually? I often lose most recent game if i restore it from iCloud

    You'd need to ask the developer. How and when individual apps use iCloud is up to the developer of that particular app,

  • Usage of G/L interim Account - How and When to offset it ?

    Hello,
    To use this account, we have to specify that the payment method is connected to this type of account.
    After, we have to assign the G/L Interim account to the bank master data.
    This method is only available with payment transfer.
    But if the posting following the bank transfer is duly put onto this transitory account, how and when can you offset it against a genuine Bank Account?
    Thanks
    Stéphane

    Stéphane,
    The Checking Account clearning (Interim account) is mainly used when there is a step after the Incoming payment and before the money is actually realized in the Bank.  This is mainly true in case of Checks, Credit Card and Cash Deposits.
    The Deposit function which is performed for the above mentioned 3 types of transaction actually offsets the Interim Account.
    The JE for the Deposit function typically is
    Bank Account Debit
    Interim Account Credit
    Let me know if you have further questions
    Suda

  • How and When Sub-Ledger Data is populated into XLA_DISTRIBUTION_LINKS Table

    Hello Gurus
    I have been working on a Sub-Ledger Accounting and I could get a fair idea of how data is being transferred from XLA_DISTRIBUTION_LINKS to XLA_AE_LINES and XLA_AE_HEADERS. As per my understanding, During "Create Accounting" process, data from XLA_DISTRIBUTION_LINKS will be summed up based on JOUNRAL_LINE_TYPES rules and conditions to load into XLA_AE_LINES and XLA_AE_HEADERS. Then during "Transfer to GL" process, data from XLA_AE_LINES and XLA_AE_HEADERS is transferred to GL Tables. What I didn't understand is how and When data gets loaded into XLA_DISTRIBUTION_LINKS. What are the rules and conditions and during which step data will be loaded to XLA_DISTRIBUTION_LINKS table? Can somebody please explain me how data is transferred from Sub-Ledger Distribution Tables to SLA Distribution Table?
    Thanks,
    Sunny.

    Above Notes are good.
    But I just wanted to add a staight point.
    xla_distribution_links and xla_ae_lines will get populated at the same time.
    Both goes on JLTs and their conditions. One is detailed and the other is summarized / merged.
    xla_ae_lines will have extra balancing lines and xla_distirbution_links will have extra gain / loss lines, which end up with zero amount.
    Also check the links for the setup of distribution identifiers.
    http://docs.oracle.com/cd/E18727_01/doc.121/e13420/T193592sdextchap.htm#sdextacattg
    http://docs.oracle.com/cd/E18727_01/doc.121/e13420/T193592sdextchap.htm#sdextdisidg
    By
    Vamsi

  • How and when the database release a row lock?

    Dear experts,
    We are using the following statement to obtain a row lock in a table in the database(ORACLE of course),
    SELECT * FROM {TABLE_NAME} WHERE ID = 1 for update
    and if we succeed grabbing the row lock we will continue to issue a update statement every 30 seconds to preserve the lock as far as possible.
    here is the update statement to preserve the lock,
    UPDATE {TABLE_NAME} SET time = ? WHERE ID = 1.
    As you see more longer we keep holding the row lock , more update statements are submitted in the pending transaction.
    In normal case our application can grab the exclusive row lock and works for a long time,however sometimes a connection reset exception is thrown
    and our application will close the connection(I assume the pending transaction will be rolled back by the database) and exit the JVM.
    Since other applications will keep trying to grab the same row lock to become the master role,
    we expect one of them can succeed but they are all failed because the database has not released the row lock as expected.
    Can someone explain more details about how and when the row lock can get released in our use case?
    Thanks,
    SuoNayi
    Edited by: SuoNayi on 2013-5-30 上午8:12

    Hm. Is this part of an XA transaction by any chance? I know that Oracle maintains separate bookkeeping for such transactions which can cause rows to stay 'locked' even when the regular DBA views will indicate there is no user currently locking the record at all. I have no idea about the actual details and what you need to do to clean up such a situation, that is something a DBA should know and do.
    If not... well this is more of a question for people who know the DBMS, which makes it a target for the Oracle DBMS forums. Java developers don't tend to have DBA-level knowledge of the database, you should ask the question where you have more chance of people with expertise answering stuff:
    General Database Discussions

  • How and When Does the attribute VI_ATTR_VXI_TRIG_STATUS get initialized

    How and When  Does the attribute VI_ATTR_VXI_TRIG_STATUS get initialized. Do the actual trigger lines get measured or does the attribute get initialized to a default value when the vxi resource manager is executed?

    Hey whl6868,
    According to page 157 (or 3-135) of the manual (http://www.ni.com/pdf/manuals/370132c.pdf), there is no default value for VI_ATTR_VXI_TRIG_STATUS.  If Resman is returning valid values for it, then it must be actually reading the lines.  Else, I would only expect it to return valid values when you actually call the function yourself.
    Regards,
    David R
    Applications Engineer
    National Instruments

Maybe you are looking for

  • 2nd backup doesn't work

    After a first successfull backup, the 2nd won't work. "Preparing" takes a long time, and then I get an error message that the backup couldn't be completed due to an error. Smart explanation- I initialized the FW HD before I used it for TM, checked it

  • Insert image into table

    Please let me know how to insert images to table using SQLDeveloper?

  • Xmlbeans and substitution groups

    I am working with the new GoogleEarth .xsd files and I have compiled them using xmlbeans. There are a number of elements that make use of substitutiongroups. for example: <element name="Placemark" type="kml:PlacemarkType"     substitutionGroup="kml:A

  • "LIBRARY" listing in itunes 7

    I just upgraded to itunes 7 and am SUICICAL over the new layout. I use itunes for podcasts and before could see my downloaded podcasts by first clicking on library in the menu on the left and then clicking on podcasts in a little window to the right

  • In terms of limitations

    The sku described as Office 365 for small Business , can be used for develop SharePoint apps What is the SharePoint plan included to that sku, and what is the limitations? BDS is available to connect your model to remote sources? Is app catalog avail