How to upload multiple .CSV files in the same time.

Hi Legends,
Can anyone please help me to resolve my issue?
This is very urgent and critical.
Description:
We have two users.1)edw_user_dump
2)prd_udm.
We need to upload the xx.csv file at the same time for these two users in oracle forms.
we have differentiated .csv file name based on the user names.
the main problem is in the sql loader command the xx.csv file name is created but the data is not captured in the server (kentucky) .
Below is my code for the upload.
-- To delete the Part_Mast.log file from the client
DECLARE
pid WEBUTIL_HOST.PROCESS_ID;
v_result PLS_INTEGER;
v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
BEGIN
v_result := WEBUTIL_HOST.Get_return_Code(pid ) ;
host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
END;
DECLARE
l_success boolean:=FALSE;
l_bare_filename varchar2(100):=NULL;
v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
BEGIN
-- Delete the content of the log and bad file
host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
--host('cat /dev/null > /tmp/Part_Mast.bad');
-- Upload the data file to Application Server
l_bare_filename := v_username||'_'||substr(:FIC_SOURCE,instr(:FIC_SOURCE,'\',-1)+1);
l_success := webutil_file_transfer.Client_To_AS_with_progress
(clientFile => :FIC_SOURCE
,serverFile => '/tmp/'||l_bare_filename
,progressTitle => 'Upload to Application Server in progress'
,progressSubTitle => 'Please wait'
,asynchronous => false
,callbackTrigger => null
IF l_success THEN
NULL;
ELSE
null;
END IF;
EXCEPTION
WHEN OTHERS THEN
RAISE Form_Trigger_Failure;
END;
DECLARE
v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
begin
host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
host('cat /dev/null > /tmp/EDW_CF_IO_UPLOAD.bad');
end;
BEGIN
DECLARE
v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
v_password varchar2(30) := GET_APPLICATION_PROPERTY(PASSWORD);
v_connect_string varchar2(30) := GET_APPLICATION_PROPERTY(CONNECT_STRING);
a_host varchar2(500);
BEGIN
a_host :='/tmp/'||v_username||'_'||'"CF615 IO Upload.csv"';
host('sqlldr '||v_username||'/'||v_password||'@'||v_connect_string||' '|| 'control=/home/edw_bis/ctl/GLB_CF_IO_UPLOAD.CTL'||' '|| 'DATA=a_host'||' '|| 'LOG=/tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log SKIP=1 errors=200000 DIRECT=FALSE');
dbms_output.put_line(a_host);
END;
DECLARE
v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
begin
host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
EXCEPTION
WHEN OTHERS THEN
RAISE Form_Trigger_Failure;
END;
end;
DECLARE
al_id3 ALERT;
al_button Number;
BEGIN
edw_user_dump.SANM_PRC_MERGE_CF_IO_UPLOAD(:global.v_plsql_res,:global.v_ins_rec,:global.v_upd_rec);
IF NVL(:global.v_plsql_res,0) = 0 and (:global.v_ins_rec !=0 OR :global.v_upd_rec != 0 ) then
al_id3 :=FIND_ALERT('ROWINS');
SET_ALERT_PROPERTY(al_id3,alert_message_text,' Process Completed Successfully!'||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec);
al_button := SHOW_ALERT( al_id3 );
ELSIF (:global.v_plsql_res IN(-1,0) or :global.v_plsql_res > 0) and (:global.v_ins_rec =0 and :global.v_upd_rec = 0 and :global.v_del_rec =0 ) then
al_id3 :=FIND_ALERT('ROWINS');
SET_ALERT_PROPERTY(al_id3,alert_message_text,' Process Failed. Please Download the Log File '||CHR(10)||' Rows Failed : '||:global.v_plsql_res||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec);
al_button := SHOW_ALERT( al_id3 );
ELSE
al_id3 :=FIND_ALERT('ROWINS');
SET_ALERT_PROPERTY(al_id3,alert_message_text,'Please Download the Log File '||CHR(10)||' Rows Failed : '||:global.v_plsql_res||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec );
al_button := SHOW_ALERT( al_id3 );
END IF;
EXCEPTION WHEN OTHERS THEN
RAISE Form_Trigger_Failure;
END;
DECLARE
v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
begin
host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
host('rm -rf /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
end;
Thanks in advance!
Thanks,
Madhusudhanan

Madhusudhanan,
A couple of observations. First; always list your exact Forms version (eg; 10.1.2.0.2 not 10g R2). In most cases, the solution is different depending on the Forms version. Second; why must you use Forms to kick off a SQL Loader process? This is a server-side process and should be initiated by a server side process. If you absolutely must use Forms to kick off the process, again we need your Forms version in order to offer any solutions. Based on your code sample, I can asusme you are at least using Forms 9i becuase you are using WebUtil.
Is your Database and Application Server the same physical computer? If they are not, this would explain why your HOST command isn't working because HOST runs against the Application Server not the Database server.
Third; have you considered using and External Table (if your RDBMS version supports them) for each of the files you are attempting to upload? In this instance, it would be helpful to know your RDBMS version as well. External Tables can be a little frustrating to set up the first time, but as with any new construct you use - it gets easier the more you use it.
Fourth; are you getting any errors in your log file(s)? If so, what are the errors? Please list the full error message if you have one.
Finally, with respects to your statement:
Posted: Mar 18, 2011 2:30 PM - Madhu This is very urgent and critical.>
You have to understand that forum contributers are all volunteers - this is not our full-time job. If your issue is truely urgent I suggest you open a Service Request (SR) with Oracle Support! ;-)
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • How can I unlock numerous files at the same time (i.e. photos) so I can make changes (rotate etc)?

    Im using Lion on a MacBook Pro 15in (just under two years old) and I would like to know if I can lock numerous photo files at the same time so I can make changes to them. At the moment when I select an entire folder to go through and make changes, ie rotate in Preview, I am told with each photo that I have to unlock it. I am going through photos I took of archival material and have nearly 5000 photos to adjust and make changes to. This small step is taking up a lot of time.
    I realise there will probably be a common 'sense' answer to this but it alludes me at the moment so any help would be appreciated.
    Thanks

    Try this: https://addons.mozilla.org/en-US/firefox/addon/fox-splitter/?src=ss
    OR, open a second Firefox window (''Firefox button > New tab > New Window'' or ''Ctrl+N''), load the second site, resize windows side by side.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • How to open multiple hotmail accounts at the same time ?

    Hi,
    Seems maybe normal for some people but I coming from internet explorer and with this explorer I was able to open multiple hotmail accounts at the same time, by default firefox can't do that, is there some setup to modify to open these at the same time ?
    Thanks in advance for any help.
    (Version updated 3.6.8)
    Regards,
    Chris

    You can look at one of these if you want to sign on with different identities at the same time:
    * CookiePie: http://www.nektra.com/oss/firefox/extensions/cookiepie/
    * CookieSwap: https://addons.mozilla.org/firefox/addon/3255
    * Multifox: http://br.mozdev.org/multifox/ - Different logins at the same time

  • How do I interpret multiple footage files at the same time in AME CC?

    I have about 50 ProRes QT files that I need to transcode. But AME CC is seeing them as Square and I need to set them all as D1. When I select all my files in the Qeue and go to interpret footage, the option is grayed out.
    I'm running on Mac OS X 10.7 if that helps at all.

    Look in the Files panel
    Click here

  • How to sign multiple jar files using the same certificate..?

    hi,
    I want to run my application using Java Web Start.. i am using around 16 different jar files out of which around 13 are 3rd party component jars. I want to sign these jars using the same certifcate..., i am using the follwing code to sign the jars:
    (for the jar file ischeduler.jar)
    keytool -genkey -alias signFiles91 -keystore dtss -keypass dtss1351 -dname "cn=dtss" -storepass decisioncraft
    jarsigner -keystore dtss -storepass decisioncraft -keypass dtss1351 -signedjar signedischeduler.jar ischeduler.jar signFiles91
    keytool -export -keystore dtss -storepass decisioncraft -alias signFiles91 -file ischeduler.cer
    keytool -import -alias DCA2 -file ischeduler.cer -keystore Impischeduler -storepass ischeduler
    (for the jar file ischedulerclient.jar)
    keytool -genkey -alias signFiles92 -keystore dtss -keypass dtss1351 -dname "cn=dtss" -storepass decisioncraft
    jarsigner -keystore dtss -storepass decisioncraft -keypass dtss1351 -signedjar signedischedulerclient.jar ischedulerclient.jar signFiles92
    keytool -export -keystore dtss -storepass decisioncraft -alias signFiles92 -file ischeduler.cer
    keytool -import -alias DCA3 -file ischeduler.cer -keystore Impischeduler -storepass ischeduler
    but when i use the above signed jars in my application i get an error saying:
    "jars not signed by the same certificate"
    can someone plz tel me wher is the error....thanx
    andy

    Well for mulitple signing of jar files you can use ANT tool. Its easier and faster.
    Regarding the present problem -- hmm.. well it looks like you are using 2 different alias names for signing the jar file. Try using the same alias name and that might solve your problem.
    regards
    Saby

  • How can I rename many files at the same time?

    Hello!
    I have a bunch of PDF files (2 thousand at least) that I need to transfer to another Mac but since it's running OS 9.2 it won't accept the files because the names are too long, therefore, I need a quick way to change all such files into a shorter name but maintaining some of the serial numbers each file name has (i.e., not changing all to the same name but just taking off the first or last 5 characters for example), is there a way to do this sort of thing with OS 10.3.9 or 10.5.2?
    Best!
    Danny

    Look at this shareware. http://www.jonn8.com/ntf/ It's a batch renaming app, but I'm not sure it will do exactly what you want. However, it does have a 7 day free trial.
    If you do a Google serach using +batch file rename mac+ you can review a lot more apps.
     Cheers, Tom

  • How do I "Put" multiple html files at the same time?

    I did a global find and replace for a broken link.  But I don't see how to "publish" all the changed pages using the "Put" command?
    Dreamweaver MX 2004.

    Look in the Files panel
    Click here

  • How to run several class files at the same time

    I have four class files, there's: cvnt1.class,cvnt2.class,cvnt3.class and cvnt4.class.
    I want to know how to write application for running all of those files together. thanks!

    Your question is still unclear - do you want to access code from those class files (just add all of them to classpath) or do you want to create number of threads or number of processes (one per class) and start code from each class simultaneously or something else?

  • Is it possible to upload multiple files at the same time?

    Hi folks,
    It seems pretty trivial to implement a file upload item, but is there some way to allow selection (upload) of multiple files at the same time? Seems like this has probably come up before, but I didn't find much for solutions in my search. Any links or insight would be appreciated.
    Thanks!
    -Adam vonNieda

    Thank you both for your replies.
    @Manish - That does allow for multiple file uploads without refreshing the page, but does not allow for multiple file uploads at the same time.
    @Tony - That might be the way I end up going, although I probably should have been more specific. It would be really nice it there was a way to do a mutli-file select using the control or shift button like you can with a standard file selection dialog (if you want to copy multiple files, for example). Having a separate line for each file browser means there has to be a limit on the number that can be selected at the same time.
    Has anyone implemented a method of selecting multiple files at once, and hitting an upload button once to get them into the database?
    Thanks again Manish and Tony, very helpful.
    -Adam

  • How can I open multiple files as Photoshop Raw files at the same time for Photoshop CS6 extended on a PC?

    I am trying to open 20-25 files at the same time as Photoshop Raw [*.RAW] files.
    The only way I can open multiple files is if i leave the file type as All Formats. When I change it to  Photoshop Raw [*.RAW], the files a deselected.

    Use bridge. Select all the files then press ctrl-r or cmd-r to load the selected files into camera raw.
    If you try this in Photoshop use File>Open As then for file type choose camera raw. (I have not tested open as for opening multiple files)

  • Contract Importer - Uploading Multiple Contract Documents for the same MA

    Is it possible to upload multiple contract documents against the same master agreement when using the contract importer tool.
    If so, what is the format for specifying the various filenames that represent these documents.
    Thanks,
    Tanmaya

    Hi,
    Yes this is feasible.
    What we had done is uplaoded the MA first and then loaded a separate csv for Attachments. This can then be placed on the desired location and picked up via the attachment importer mapping file. Just FYI, this can be configured in the System properties to import the file into E-Sourcing.
    Hope this is helpful,
    Vikram

  • Howto deal with multiple source files having the same filename...?

    Ahoi again.
    I'm currently trying to make a package for the recent version of subversive for Eclipse Ganymede and I'm almost finished.
    Some time ago the svn.connector components have been split from the official subversive distribution and have to be packed/packaged extra. And here is where my problem arises.
    The svn.connector consists (among other things) of two files which are named the same:
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/features/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/plugins/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    At the moment makepkg downloads the first one, looks at its cache, and thinks that it already has the second file, too, because it has the same name. As a result, I can neither fetch both files nor use both of them in the build()-function...
    Are there currently any mechanisms in makepkg to deal with multiple source files having the same name?
    The only solution I see at the moment would be to only include the first file in the source array, install it in the build()-function and then manually download the second one via wget and install it after that (AKA Quick & Dirty).
    But of course I would prefer a nicer solution to this problem if possible. ^^
    TIA!
    G_Syme

    Allan wrote:I think you should file a bug report asking for a way to deal with this (but I'm not sure how to fix this at the moment...)
    OK, I've filed a bug report and have also included a suggestion how to solve this problem.

  • Two users open same file at the same time... how is this possible?

    I am the Creative Director for a magazine. All the people in my team are using Macs with Leopard and Indesign CS3. I didn't know this was possible, but it is happening to us. Two people can open the same Indesign file at the same time. When this happens, the file becomes corrupt and we can't work on it again. We don't use Version Cue. We probably should, as well as In Copy, but we just haven't had the time to learn to use them. This problem started about three months ago and we have not been able to determine how this is possibe or find any information why it is happening, or how to stop it from happening. Help! If anyone out there has any idea... we are desperate.

    My hunch would be to suspect the server - it's probably not handling file locking correctly.
    Here's what I'd image I'd try - but be aware, I am writing down stuff from memory, and I cannot guarantee the info is completely accurate - but I hope it might give you some pointers.
    - If the server is currently providing the AppleShare Filing Protocol (or whatever it is called - acronym is AFP), you could try to connect using that.
    Go to the Finder, and use the Go - Connect to Server... menu item and enter the server's IP address, prefixed with afp:// - e.g. if the server is on IP address, say '192.168.1.120'
    In that case, I'd try connecting to
    afp://192.168.1.120
    (I am inventing this IP address for the sake of argument - don't simply copy this number. Ask the IT guy what the server's IP actual address is. There are other ways to connect, and using the IP address is very crude and 'primitive' but it also cuts a few complexities out of the picture).
    If this does not work, it might mean that the server is not providing the AFP protocol - in that case, ask the IT guy if he can turn it on for you.
    I don't know much about what Microsoft's various product names mean (e.g. what exactly is included in a 'Microsoft small business server' - no idea), but there's a good chance there is a module available that is probably called 'Services for Macintosh' which can be installed.
    I've worked around Microsoft servers before, and if I remember correctly, 'Services for Macintosh' is not typically installed by default - it's part of the product, but it is not installed unless explicitly requested during install.
    The IT guy will need to get out the Microsoft server's install disks and install the optional Services for Macintosh, then turn it on. Once that is done, the above 'magical incantation' afp://yadiyadi... should work.
    If it does, make sure _everyone_ in the team uses the same method to connect to the server, and then try again - there's a good chance the server will now honor the file locking and warn the second user who attempts to open the document.
    - If the server is already using the AppleShare Filing Protocol, and you're already doing some variation of the above, and the whole point I made above is moot, try connecting using the SMB protocol instead. So, in the finder use 'Go - Connect to Server...' then use
    smb://192.168.1.120
    (replacing 192.168.1.120 by your server's real IP address).
    Again - make sure _everyone_ is using the same method to connect before trying whether the files are now locked properly.
    The AFP and SMB protocols are the two most common protocols that Macs can use to connect to a Microsoft file server.
    Now, the third possible cause: often people don't realize there are possibly multiple ways to connect to an MS server, and so people go browsing the network from their Macs and 'grab' whatever entry they see first.
    So what often happens is that user 'A' is actually connecting using SMB, and user 'B' is connecting using 'AFP' and in theory that should all work, but in practice sometimes things go wrong.
    My recommendation is to make sure that all users in the Mac workgroup connect in the exact same way - so there's no mix of SMB and AFP protocols being used.
    To verify which protocol is used, right-click or control-click on the volume name after it has been mounted on the Mac, and use the Get Info... menu item - the info dialog should tell you which protocol is being used. The easiest to see the mounted volumes is to go into the Finder Preferences, and under 'General' make sure it shows mounted volumes on your desktop. Then you can simply right-click the volume on the desktop to do Get Info...
    Hope that helps!
    Cheers,
    Kris

  • Upload more than one files at the same time

    Hi people!
    I'm having serious problems with struts. I have a list of contacts in which I can upload a file per person. The problem is that I have an unique form and I want to upload all the html:file at the same time. Is there any way of doing that? The problem is that I can't retrieve the values in the actionForm as FormFile[ ] as the other fields.
    I need help urgently!!

    I'm not sure uploading several files at once is possible. I have yet to see anything like that.

  • TS4020 I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    Try this support document for information on how to contact Apple and account security. Apple ID: Contacting Apple for help with Apple ID account security

Maybe you are looking for