ODI Commands, emailing, moving and checking files

Hi Everyone,
This time I am posting here because what I would like to do is the following:
*1. Make ODI search a folder and see if there is any data available*
So I assume that I will have to use something like:
a) cmd /c dir C:\<Folders Path…>\<File_Name>*.<extension>
b) cmd /c dir C:\<Folders Path…>\<File_Name>*.<extension> /b /a:-d > C:\< Folders Path…>\<File_Name>.lst
Would it be better to use a) rather than b) I do not see any sense in using a *.lst.?
*2. Load the file, and not use reverse engineering:*
How can I do this?
I had already posted this in the forum, but I think I was getting a wrong idea over it.
Default data types when an Excel reverse engineering
*3. To load my data into a Temporal Table and transform the data*
I have already done it. :-)
*4. Insert it into the table that’s is going to be used*
I have already done it. :-)
*5. Once successful move the uploaded file, move it to another folder and modify the name of it adding the system date.*
OdiFileMove "-FILE=C:\<Folders Path…>\<File_Name>.<extension>" "-TOFILE=C:\<Folders Path…>\<File_Name>.<extension>" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
But how do I add the name to the file? Any suggestions, ideas???
I do have to move this to three different folders, so I will just have to use this ODI command three times and that will be it, no?
*6. Send an email informing if the uploading has been successful or not in:*
Step 1, Informing rather the file has been found or not
Step 2, Informing if the file has a mistake or anything –data format-
Step 5, Informing if the file has been moved to any of the three folders –ToLoad, Loaded, Erros- and attaching the file, and message saying how many lines were imported etc, etc….
Would it be something like this????
OdiSendMail "-MAILHOST=<my.host.whatever>" "-FROM=<sender_email>" "-SUBJECT=<My beautiful project>" "-TO=<receiver_emailn>" "-CC=<xperson_email>" "-ATTACH=C:\<Folders Path…>\<File_Name>.<extension>"
Email content, email content, email content, email content…..
Well so far this is what I will have to do, and I would really like to count with your help, ideas and guidance.
P.D.: I have been trying to get some further reading about ODI “Oracle Data Integrator 11g: Getting Started”, but the book I am looking forward to get is not yet published, and every month they delay it one more month.

Suthirta really Thank you so much!!!
Before I wrote you, I have already created and implemented what I described you, so:
+ I created a new procedure.
+ On the definition tab as you suggested me, I changed the “Source Technology” to Oracle and the “Target Technology” to Sunopsis API
+ On the Detail Tab, I have created my new command
- On the “Command on Source” tab
I have placed the SELECT '<whatever_name>' || replace(sysdate,' ', '_') AS FILENAME FROM DUAL;
And first left of the values by default or should I change them to the following:
Tecnology: Oracle
Context: The one that I am using
Transaction: Autocommit
Transaction Isolation: <Unidentified>
Schema: The one that I am using
Commit: <Unidentified>
- On the “Command on Target” tab
I have placed the #FILENAME
And first left of the values by default or should I change them to the following:
Tecnology: Sunopsis API
Context: The one that I am using
Transaction: Autocommit (appears as default)
Transaction Isolation: <Unidentified> (appears as default)
Schema: <Unidentified> (appears as default)
Commit: <Unidentified> (appears as default)
And so far, It should be working no? I am getting an error :-(
On the OdiFileMove I have done the following:
OdiFileMove "-FILE=C:\ <path1…>\<Original_File_Name>.xls" "-TOFILE=C:\ <path2…>\#FILENAME.xls" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
Error message:
java.lang.Exception: Oracle Data Integrator Function does not exist
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
     at com.sunopsis.dwg.cmd.e.j(e.java)
     at com.sunopsis.dwg.cmd.h.z(h.java)
     at com.sunopsis.dwg.cmd.e.run(e.java)
     at java.lang.Thread.run(Thread.java:595)

Similar Messages

  • Commands for OCR and Voting File backup Restore?

    We have 2 node rac instance on 64-bit win2003 with three diskgroups DATA, BKUP, +FRA.
    We have ordered for new servers till then I will not have any test instance but only the production to work on.
    I am taking care of db files, ctl, spfile, arcivelog files through RMAN.
    The voting file and the ocr file is on raw disks.
    I have gone through the rac material but My request is somebody please compile the way and command to backup my ocr and voting file and in case of loss what are the commands to restore the files?
    Thanks in advace.
    [email protected]

    Hi Sami,
    Taking backups from OCR
    %CRS_HOME%\bin\ocrconfig -export C:\OCR_%DATA%.bkp -s online
    Restoring OCR... http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/votocr.htm#i1016682
    Run the following command to add an OCR location using either destination_file or disk to designate the target location of the additional OCR:
    %CRS_HOME%\bin\ocrconfig -replace ocr destination_file or disk
    Run the following command to add an OCR mirror location using either destination_file or disk to designate the target location of the additional OCR:
    %CRS_HOME%\bin\ocrconfig -replace ocrmirror destination_file or disk
    Backing Up and recover Voting Disks http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/votocr.htm#BABDJDHI
    with ocopy and crsctl
    Regards,
    Rodrigo Mufalani

  • Trimming the fat - moving and deleting files to save space.

    I have a bit of a dilemma. I have a large number of applications that require to be installed on my startup disk. Thanks to large audio libraries and plugins, it just about fills it up.
    I was fortunate enough to have put in a second internal HD (props to ME and their optibay) so I was able to move things like the audio content of my iTunes library over to that drive, my Aperture library, and a few game like WoW over there, savings tons of space. However, after a disaster corrupting my drive, I had to wipe and reinstall the OS and al of the software from scratch. I had about 2GB of space left. Here are some areas I think can be moved or "trimmed:"
    • Printers. I've dumped all of the printer drivers I'll never use, freeing up 3.5GB worth of space. It's a good start.
    • When reinstalling my audio apps, I started with Logic Pro 7, then all of the Jam Packs I had, and the Logic Pro 8. It looked like 8 came with all of the Jam Packs already had plus another one or two I didn't. Did it write over, or skips the already-installed instruments, or did it create multiples stored in slight different locations. This has the potential of shaking out a few more GBs.
    • Loops. The Jam Packs and Logic Pro 8 came with a bunch. I know I had most of them uninstalled previously, but opted to add them in this time around for some current projects. Is it possible to relocate them to the second internal drive without too many headaches for Logic and Soundtrack to find them?
    • iWeb creates its on hierarchy of copied media for working with my website. Is it possible to relocate this library as you would in iTunes and Aperture and just point the app to it at startup? The hold-down-option-key-at-launch method doesn't seem to prompt anything as it usually would...
    • iWork '09 Trial. I've tried it, decided I like parts, but don't want to bother with it until I need some of the new presentation features. The compressed disk image download itself was fairly sizable, so I know this would clear up some more space. The problem is, I don't see an uninstaller anywhere, and its files are located in different places in the system libraries. Does anyone know of an uninstaller I missed? How about a list of all of the iWork '09 file locations?
    Apple's make it "just work" mantra of software is useful, but a big disk-space hog. Things from printers we'll never use to old software that you've got the old versions still hanging around cough iWor- cough iLi- cough just don't work for power-users who use their machine as the swiss-army knife of media tools.
    Also, should I be looking defragment my disk after all of these measures are taken? I'd do it for a windows machine, but i don't know enough about AFS to choose how to or even whether or not I should.
    A tool like Cocktail would help clear some of the space taken over by logs and caches, but I believe that is what corrupted my disk in the first place. Please, oh thou knowledgeable forum dredgers, help me! You're my only hope...

    By moving the soundtrack and logic pro loop libraries to my second internal HD, I've been able to leave an alias on the original HD pointing to them on the second drive and the applications seem to have no problem using them.

  • Emailing folders and their files

    as a first time user I can't believe how hard it is to post a topic on this site , how bout making it simpler apple!
    how do I email a folder with its files, I cant find an option to do this - windows gives you the option of emailing this folders files - can anyone help me?

    Usually if I want to email a bunch of stuff, I will first compress it into a single zip file and send that file as an attachment. Recipients generally have no trouble unzipping the file. If you want to try this, just select the folder(s) and/or files you want to send, control click on one of the selected items and select the option to "Compress....". A zip file will appear which you can send as an attachment.
    charlie
    P.S. if you want forum assistance/discussion regarding posting, a good place to go is:
    http://discussions.apple.com/forum.jspa?forumID=1076
    You won't get any Apple support on these forums; we are all users like yourself.

  • Moving and renaming files after PSE has uploaded them

    I use PSE 7
    I have many folders  (50+) and perhsps file names  ( few thousdand)  that after uplaoding all of them into PSE and tagging about half I am consdering remaning some of them and also combine some folders or just renaming some folders
    any  way to do this with in PSE by jsut doing a folder at a time ( change folder name)  and change file names all at once.
    Would it be easyer to start all over by deleting all images in PSE but not on the disk then reload it all, will the tags still  show up on the photo AND all the tags icons on the side bar be their after
    any help greatly appreacted, I should have done this before starting to work in PSE
    thanks
    Mike

    I think the biggest thing people miss understand about the Organizer  is you no longer have to be concerned with folders or where the photos are located. The beauty of Tags allows you to locate your photo by various methods that you can not do with folders. You can have a tags for location, event and peoples name on the same photo and  you can locate it in your Organizer catalog by selecting any combination of the tags you have assigned. You can not do that with folders. As an example you can find a photo of Jane, from California, at your graduation party.
    Adobe does a poor job of highlighting the advantages of creating tags. The original creator of Album that was later changed to Organizer, Michael Slater, wrote a book on how and what you should think about before creating tags. Unfortunately, he no longer works for Adobe and the book was written for PSE 3. And a lot has changed since then. But the basic concept of using tags verses folders is still applicable and the Chapter is and well worth the price of the book which is still available from Amazon.  http://www.amazon.com/Organize-Photos-Adobe-Photoshop-Elements/dp/0321246969

  • Selecting, Moving, and Deleting Files in Creative Cloud | Learn Creative Cloud | Adobe TV

    Get a basic overview of how you create new folders, move files into folders, and delete files within Creative Cloud.
    http://adobe.ly/LAfFwx

    HOW TO DELETE FILES or FOLDERS or Assets from Adobe Creative Cloud Brouser/Web Portal By: Kai Buskirk rev:130626
    http://forums.adobe.com/message/5449280#544928

  • Shell script for moving and renaming files

    I'm not so familiar with shell scripts. I have created some simple scripts for various tasks but now I hit something I can't handle myself.
    My server receives every night a logfile from another server. This file I need to rename and move to another location. Problem is that a simple mv with new filename isn't enough, I need to insert date in filename. Format for date should be ddmmyy. Also the name of incoming file changes every night. The output always starts with same letters, let's say "log", and the date is used to identify files.
    For example I receive a file /Input/filename.log and I need to move the file to the folder /Output with name log130308.txt.
    Any tips how to insert the date as part of of filename while renaming or moving the file? I prefer shell script as I'll use launchd for scheduling the script.

    Hi again,
    so far I've constructed this:
    cd /input
    for file in `ls *log`
    do
    echo "Copying " $file
    cp $file /output/log.$file.`date +%d%m%y`
    done
    Quite there. I'm cding to directory, i'll focus later how to set some environmental parameters.
    Problem with zipping is that I don't know exact logfiles names. Each day there's a new name. So zip -q filename.zip filename.log isn't quite enough and it's impossible to use wildcards. The switch -q and checksums were welcome suggestions.
    Thanks again,
    Juha
    Message was edited by: J.Otava

  • Moving and copying files in Bridge v4.0.4.2

    CS5 Bridge crashes whenenver I try to move or copy files. It doesn't matter if I drag&drop or use copy/paste.
    I have tried to correct using advice from a previous query made a couple of years ago but it does not improve the situation.
    I am using Windows 7 with bags of memory.
    DaveOR

    DaveOR2 wrote:
    Unfortunately I don't have sufficient understanding of computers to carry out your detailed suggestions - although I have tried.
    Mainly I don't know where to find the various things mentioned.
    eg how do I do a ful system integrity check?
    Perhaps I need to take the whole shebang to the shop and see if they can sort it out.
    I can say that I have a fairly extensive range of software on the machine and it is only Bridge which is giving me trouble.
    It would help if we had a better idea of what drives/volumes you have on your computer, and how they are connected. For example: do you have any external hard drives? Do you have any network drives? Are your SATA drivers up-to-date?
    It's fairly straightforward to check your disk integrity: open Windows Explorer, click Computer, and right click a drive, selecting Properties from the bottom of the list; on the Tools tab, click Check Now, then Start. Do this for every drive.
    Try disconnecting your computer from the network and disabling your anti-virus software to see if that is causing your problem.
    It is always worth updating graphics drivers, although it sound unlikely this is your problem. Maybe your system has driver update software?
    You could ask the shop to help, but it might be wise to narrow down the problem first, or they could potentially spend hours looking at it.
    The Event Viewer might be a good place to look too, look for red and yellow warnings in the Windows System and Application logs. Find Event Viewer by typing it into Start menu Search box.

  • Constant "Sent email" sounds and "Check email" pings during FaceTime

    Whenever I connect with someone using Facetime, I have a constant barrage of "Sent email" swoosh sounds, and the pings from when you check email. Constantly.  I have to quit email to make it go away.
    Any thoughts?
    Macbook Air running 10.8

    Go into Recovery Mode per the instructions here.  Also, since you have IOS-7, read this.

  • Moving and Organizing files based on number of lines

    Hello,
    I have a directory containing nearly 1500 files, some of which are composed of 12 lines, some of which are composed of 4 lines, all of which are .phy (PHYLIP) files, which can be viewed within notepad/wordpad like text files.
    I need to run a script which will identify the number of lines in each file, and move them to the corresponding folder. File size will not work for sorting, I have already tried.
    i.e.- all files with 4 lines in one folder, all files with 12 lines in another folder, no files left (so i can be sure everything was inspected) in the main directory.
    Can anyone help?
    thanks
    originally posted in the microsoft answers forum and redirected here by a mod.

    I would suggest you to post your question in scripting forums : http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • How do I turn off Apple Support email?  I have gone to email preferences and checked "no" 4 times and the email keeps comings

      I am stuck in getting off the email list of Apple Support.  I have turned the email preferences to " off" 4 times, and still the emails keep coming,  Several hundred at this point. Help!

    Hello Mary
    How to stop notifications from ASC.    Frank Caggiano's document is very easy to follow … Stopping emails from ASC: Apple Support Communities
    If you read this document and follow it carefully you will achieve what you want.

  • ODI send email with latest error file attachment

    We have kick-out/error file with the format *err.txt. Whenever error occurs the same gets overwritten by the latest file. We are attaching this error file on the completion of the job. If error file generates, everything is fine. But, on the successful run, I mean when there are no error file generation, it attaches the previous run error file.
    Anyone of you help me how to handle this situation. Is there any way to validate the file generation date before attaching the file.
    Thanks in advance
    Edited by: user12958295 on Oct 30, 2012 7:42 AM

    Hi,
    Thanks for the response.
    As of now we are following that as a workaround. However our client wants to avoid the manual work of delete/move/renaming the error file.
    Is it possible to check the file generated date with sysdate for attaching the error file by odisendmail.
    Thanks!
    BRM

  • Upgraded to Mavericks and now I can't compress files, move files, preview files or open files outside of their native application. Ran disk utilities multiple times and checked file and folder permissions. Any ideas?

    For example, I'm trying ot move a group of jpgs from one folder ot another and it throws an 8058 error every time. PSD's won't open fromt he finder, it throws an application not found error even though I can open the same files from within the application.

    Yep, same here. Cannot drag and drop copy with Mavericks. A copy paste throws a 8058 error.

  • Since downloading Firefox, I cannot send email attachments and upload files. How do I fix this?

    When I click on "attach file" or "upload file" I always get a message...."Firefox is not responding". Then I have to close the program and open Internet Explorer. I would prefer using Firefox,can you tell me how to fix this problem?

    I uninstalled Firefox, deleted all data, reinstalled and still have the same problem. I guess I'll go back to Internet Explorer.

  • TS3899 I cannot select an email to delete on my IPhone 5. When I hit edit then check the email i wish to delete it unchecked itself. Help it is driving me crazy. I tried deleting the email account and re-adding it but it didn't work.

    I cannot select an email to delete on my IPhone 5. When I hit edit then check the email i wish to delete it unchecked itself. Help it is driving me crazy. I tried deleting the email account and re-adding it but it didn't work.

    Sorry if I confused you. Let me try again:
    1) do a full backup your iPhone to a PC using iTunes
    2) go to: settings, general, reset, erase all content and settings.erase phone.
    3) when iPhone starts again choose set as new phone. Do not restore from icloud or iTunes.
    4) once done. Setup your email accounts. When done, verify checked emails do not uncheck themselves.
    That resolved, finish setting up:
    5) go to: settings, icloud, uncheck email, and set other icons as wished. Now setup icloud account.
    6)This step will make all contracts reside in icloud and be available always:  Once icloud account is setup, go back to settings, email contacts. Open each email account and uncheck contacts, but leave mail checked. Then go to the icloud email account and check contacts.

Maybe you are looking for