Import from CSV and vice versa

Please help me to find how a CSV file can be imported to Oracle 10g DB using ODP.NET provide in VB.NET.I saw an option in OLEDB that the Datasource is given as textfile to be read and OLEDBDataadaptor is reading data from textfile and updating to the DataSet.Is there any such option in ODP.NET??Please help me.
Thanks in Advance
Saritha

I would suggest:
1) Using the StreamReader to consume each line of the csv
2) Then use the the "Split()" string method on each line returned as a string to parse the values into an array
3) Load each array value appropriately into a stored procedure/function and execute through a OracleCommand object
4) Loop through each line returned in the StreamReader to do the same (until EOF)
5) Wrap the whole thing in a OracleTransaction object and perform Rollback()/Commit() as appropriate considering the return values of the executed Procedures/Functions (break loop and Rollback() on error thrown).
It's not one stop shopping but I don't think that you can just cram a text file into the ODP and expect it to try and make an import (I could be wrong).

Similar Messages

  • Invoking Forms from JSP and Vice versa

    Hi,
    I am in to a requirement like invoking a screen developed using Oracle Forms 6i from JSP and vice versa.
    1. Could you please anybody help to get the documents to be refered to get more idea on this?
    2. Is it possible only by Oracle ADF?
    Please help me on this.
    Thanks & Regards
    M Thiyagarajan

    Hi All,
    Thanks a lot for the clarifications.
    Actually, integration should happen between forms and JSP. Parameters need to be passed to and forth. I will go through the specified link.
    Also could you please clarify me where exactly, ADF comes into picture? or what are all the advantages when we go for ADF?
    Thanks & Regards
    M Thiyagarajan

  • Can we invoke a asynchronous BPEL process from synchronous and vice versa

    Hi,
    Can we invoke a BPEL asynchronous process from synchronous and vice versa. If so how to perform that.
    thanks,
    Vijay

    Yes you can
    sync -- calling --> Asyncc
    Async -- calling --> syncc
    Perfomance is no issue, depending on your requirements. Not the Syncprocesses are short-running processes, these will time-out after 30 seconds, if no answer is coming from the async process.
    Marc
    http://orasoa.blogspot.com

  • Can't access Subscriber services from Publisher and Vice Versa

    Hi ,
    I am using CUCM 8.5.1(10000-26)
    when connected to Publisher and go to Serviceability then service activation , Feature services or Network services of the subscriber , an error appears telling can't connect to remote node .
    same from Subscriber side .
    Database Replication is in "good" state
    onconfig.ccm reports an error "The onconfig.ccm file on x.x.x.x does not match the publisher."
    Any Advise ?

    Dear
    please cli command to check the relication , you  must check that each node should have a replication status of two (2).
    use this command   (Utils dpreplication runtimestate) and please check the output.I do not see this eror before , but if you did not get a solution , ithink t open a TAC with Cisco. I think the onconfig.ccm file on x.x.x.x does not match the publisher (it is a problemm in linux) , i think the  /opt/informix/etc directory.
    Thank you
    please rate if this help

  • Access linux file system from windows and vice versa

    Friends
    Do anyone of you have any idea about how to access linux file system from windows using java. Thanx in advance.
    Regards
    Rakesh

    "Accessing" is vague. Do you want to read? write? Both?
    Here are two ways I'll mention.
    1. Write an ftp client for the "cleint" computer. I beleive java has some framework functions for doing this.
    2. Write java RMI client and server to open, read or write, and close a file. Pass a byte array parameter containing each block of data.

  • Call SAPGUI transaction from BSP and vice versa

    Hi all
    There was some discussion about this topics before. Maybe someone can just point me to the thread answering this issue:
    1. I need to call a SAPGUI transaction from a BSP application: I want to use SAPGUI, not ITS/webgui, I need single sign on, the SAPGUI transaction could possible run in another SAP system then the BSP.
    As far as I understand I need to create a *.sap file with the correct parameters for sapshortcut. But how does single sign on work? Can I create a logon ticket in my BSP and forward it to sapshortcut?
    2. I need to call a BSP application from a SAPGUI transaction or report, with single sign on but in a MS IE window, not inside a SAPGUI HTML control
    Can I create a logon ticket in my coding an append it to the start url for the BSP?
    any hints?
    thanks
    Michael

    hi Michael,
    For your second issue,to call a BSP application from a SAP GUI in MS IE explorer,
    you can use the Function Module CALL_BROWSER in your report,like
    data url(200) type c.
    url = 'http://<server>.<domain><port>:'.
    concatenate url '/sap/bc/bsp/sap/' into url.
    concatenate url 'znw_poc2_1_prtl/dts.htm' into url.
    concatenate url '?sap-user=<userid>' into url.
    concatenate url '&sap-password=<passowrd>' into url.
    CALL FUNCTION 'CALL_BROWSER'
      EXPORTING
        URL                          = url
    *    WINDOW_NAME                  = ' '
    *    NEW_WINDOW                   = ' '
    *    BROWSER_TYPE                 =
    *    CONTEXTSTRING                =
    *  EXCEPTIONS
    *    FRONTEND_NOT_SUPPORTED       = 1
    *    FRONTEND_ERROR               = 2
    *    PROG_NOT_FOUND               = 3
    *    NO_BATCH                     = 4
    *    UNSPECIFIED_ERROR            = 5
    *    OTHERS                       = 6
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    For this to work you have to enable SSO on your server.
    you can check if it is enabled or not by runnning the BSP application "SYSTEM" ,page "SSO2TEST.htm" .
    Follow the instructions on the page for testing.
    This may not be a great way as your userid password are passed via URL,still it works .
    Hope this helps,
    Regards,
    Siddhartha

  • Calling HTML file from servlet and vice versa...

    i have got few questions..
    1- if a site is made in HTML then what should be used to put user login functionality in it, servlets or jsp or other option(specify)?
    2- im trying to do with servlets, so when im calling doPost method from HTML page and sending data, everything working fine but because of this the page refreshes and the HTML coding get lost, so how can i stop that from happening if possible, like showing the same page with messege = "Logged in".
    3- how can i call an HTML page from servlet?
    4- how can i send data from servlet to HTML page?

    that i m aware of, but when a servlet is called then the page will refresh n it will display the things that you have mentioned in the servlet file n not the things that u have mentioned in HTML file, n the page will be blank if u have not mentioned any HTML coding in servlet file.
    so i need to knw how to call back that prev HTML file so that the things i want to display can be displayed, i knw the same can be done by adding the HTML code in servlet file but i would like to know if there is any way to call back the HTML file.

  • Syncing photos from iPad to macbook and vice versa

    I recently synced my ipad with my new macbook air. I successfuly imported all my photos from my iPad to iPhoto on my laptop.  However, now everytime I connect my ipad and laptop iPhoto opens and asks me to import all the photos all over again, despite the fact that they are still all there.
    I haven't synced my photos with another computer before. I want to be able to add a photo onto my ipad and have it on my laptop and vice versa.
    This doesn't have to be done wirelessly, I am happy to only have it happen when I plug them togerther, but I want the same photos on both my laptop and iPad.
    I havent really messed around with anything as I am afraid of wiping my photos. I understand that I may have to do this via a third party or something, any help would be great.
    Thanks.

    Connect the iPad to your Mac then launch iTunes.
    Select the iPad under Devices then select Photos from the menu.
    Deselect:   Sync Photos from
    You probably have iPhoto selected from the pop up menu.
    Deselecting Sync Photos from should prevent the prompt to sync every time you connect the iPad.

  • My family of four (2 iPhones, 2 iPods) all share the same iTunes account.  Many text messages sent to or from mine or my husband's phones are also received on my daughter's iPod, and vice versa. How do I fix this?

    How can I keep text messages sent from my or husband's phone from being received on daughter's iPod, and vice versa? We have five devices on one iTunes account - 2 iPhones, 2 iPods and an iPad.

    Hello Hrd1977,
    This is typically caused by both devices sharing an Apple ID for iMessage and FaceTime.  I would recommend signing out of iMessage on your daughter's device.  Go to Settings > Messages > Send & Receive, tap your Apple ID, and select Sign Out. Then sign in with the desired Apple ID.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Cheers,
    Allen

  • HT1766 Hi, I share an iTunes account with my wife. Sometimes she gets my iMessages and I don't and vice versa. Also if people face time me it goes to her phone. How can I stop this from happening?

    Hi, I share an iTunes account with my wife. Sometimes she gets my iMessages and I don't and vice versa. Also if people face time me it goes to her phone. How can I stop this from happening?

    You can share the same Apple ID in
    Settings > iTunes & App Store > Apple ID: here
    But for all other Apple services like:
    FaceTime, iMessage, iCloud, etc, one of you should use a different Apple ID.

  • I have the iPhone 4S and my daughter has the iPad 2, we share one Apple ID, is there anyway to stop her text messages from appearing on my iPhone and vice versa?

    I have the iPhone 4S and my daughter has the iPad 2.  We share my Apple ID.  Is there any way to stop her text messages from appearing on my phone, and vice versa?  She doesn't need to be reading my texts!

    no, there currently is no way of doing this. You can only create a second Apple ID.

  • How do I move an icon from the second page of my home screen to the first page  and vice versa?

    How do I move an icon from the second page of my home screen to the first page and vice versa?

    Hold an icon down until they all wiggle.
    Drag it wherever you want it.

  • My family and I share the same account of apple. I'm getting phone calls and messages from my mothers and my number and  vice versa. is there anything we can do

    my family and I share the same account of apple. I'm getting phone calls and messages from my mothers and my number and  vice versa. is there anything we can do

    The short solution is to go to Settings > FaceTime > iPhone Cellular Calls OFF.
    However, as Csound points out, you should not really be sharing an Apple ID with anyone. See: How to Stop Sharing an Apple ID.
    (Note that I am affiliated with that site, and some pages contain ads).

  • For some reason when my daughter sends a text to someone else I get it and vice versa.  Also, when I send a text to her the text comes to me as well.  How do I stop this from happening?

    For some reason when my daughter sends a text to someone else I get it and vice versa.  Also, when I send a text to her the text comes to me as well.  How do I stop this from happening?

    This is iMessages, not an SMS/MMS, and this means the same Apple ID is registered for iMessage on each iPhone.
    You or your daughter need to activate your own Apple ID for iMessage and FaceTime. The same Apple ID can continue to be shared for iTunes store downloads - for music and apps.
    On the iPhone, go to Settings > Messages > Send & Receive.   Select the Apple ID at the top and sign out.   Sign in with the new Apple ID.
    Make sure the same email address is not available below You can be reached by iMessage at on each iPhone.

  • Navigate from WebDynpro Application to BPS Layout and vice versa

    Hi,
    Please see the following Problem Statement:
    We have WebDynpro applications and BPS applications in our project. All the applications are published via SAP Portal. Both areas (WebDynpro and BPS) have same selection screen (Selection fields are common). Is it possible to call
    WebDynpro application from BPS layout (on click of button)and also passing the selection parameters to the WebDynpro application and vice-versa.
    - Sujal Shah

    Hi,
    You can you free tool from Oracle called OMWB (Oracle Migration Workbench) for SQL Server to Oracle.
    For more details, visit http://www.oracle.com/technology//tech/migration/workbench/index.html
    From Oracle to SQL Server, there are third party tools available.
    Cheers,
    Harshw
    Message was edited by:
    [email protected]

Maybe you are looking for

  • Windows 2008 R2 TCP/IP KeepAliveTime not working

    Hi, We have configured the KeepAliveTime for the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters both on the server and the client and time for the KeepAliveTime is 300000(5 minutes). Now , we restarted the computers after s

  • I deleted Quicktime 10 and I want Quicktime 7

    I deleted Quicktime 10 and I want Quicktime 7. I want more options when I export out of Quicktime. How do I get Quicktime to run on my iMac when my computer won't let me install it because it says I have Quicktime 10 on my computer already? Right now

  • How do I synchronise my games from my ipod touch to my macbook, so that I can update my ipod without losing the games I bought

    I am trying to copy all my apps to my itunes on my macbook. When I make a copy or synchronise all my apps are copied but not the games I bought. I want to make an update to IOS5.1 But, I want to make sure I won't lose my games, this is why I am tryin

  • Stopping background apps

    SInce iod 7 the usual way of stopping background apps will no longer activate. how do we do it now? thanks

  • Log4j appender question

    I need some log4j help. Hope anyone can help me. Question 1: I need to log information to 4 different files. As far as I can tell from the log4j docs, I will then need to create 4 different appenders in the log4j.properties file. How can I do that? L