Back again on Utl_file

Help guys,
how do I access a file on Unix box through my toad.
how do I know what is the UTL_FILE_DIR set to in oracle. when i search for it it says like this
utl_file_dir = %s_db_util_filedir%,%s_outbound_dir%
Now, what is the value for %s_db_util_filedir%, how do I interpret this.
Thanks
praveen.

I created a directory
create or replace directory outdest as '/home/oradev/testapp';
CREATE OR REPLACE PROCEDURE sample_proc IS
I_FileHandle Utl_File.File_Type;
v_Text          VARCHAR2(100);
I_Pos           NUMBER;
BEGIN
I_FileHandle := utl_file.fopen('/home/oradev/testapp','file.txt', 'R');     
dbms_output.put_line('Opened');
utl_file.get_line(I_FileHandle, v_Text);
I_Pos := instr(v_Text,',');
dbms_output.put_line(TO_CHAR(I_Pos));
UTL_FILE.FCLOSE_ALL;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(SQLCODE||SQLERRM);
END;
output is '1User-Defined Exception'

Similar Messages

  • How to convert apple tv's hdmi output to cat6 and back again

    Hi,
    I have just reovated my room and have wired in 2 x cat 6 cables from the place which i have my apple tv set up to a projector on my wall. I want to know which converter would be best and usuable to convert the hdmi output on apple tv to cat6 and then back again to hdmi to connect to my projector?
    I have already bough some relitivly cheep hdmi to cat6 sender and recervers from ebay however i can only get sound to work (i.e. i can hear the sound when i press the apple tv remote) but there is no image. the projector i am usuing is a acer but will be changing this in a few weeks
    Please help.
    Regards
    Shaun

    Have a look at this, and possibly other items from this firm (though I have no experience of them):
    http://www.keene.co.uk/electronic/cyp/puma-hdmi-over-single-cat6-hdbaset-kit/pu5 06.html

  • HT201299 My Iphone 4s wont remember the disable cellular data for certain apps as I soon as I switch on the 3g and go back to home and come back again to Cellular the all apps are being enabled..Please help

    My Iphone 4s wont remember the disable cellular data for certain apps as I soon as I switch on the 3g and go back to home and come back again to Cellular the all apps are being enabled..Please help

    First, try a reset: hold down the home button along with the power button until you see the Apple, then let go.

  • How can I get my old firmware back again?

    With firmware version 2.17 I used to have some problems with my system hanging now and then.
    With firmware 2.30 all my problems were solved and I was happy.
    Stupidly enough I upgraded to firmware verison 2.50 because MSI mentioned better support for various DVD brands.
    Since the upgrade my system again often hangs when trying to acces the drive.
    I WANT MY OLD FIRMWARE VERSION 2.30 BACK AGAIN!!!!!
    Could anyone please help my out by sending it to me or by sending a link where I can find older firware versions??
    Thanks a lot in advance!!
    Sjaak

    from my old phone?

  • TS1363 My iPod Nano 7th Generation couldn't be detected by iTunes when I plugged in. I tried resolving the issue by uninstalling the iTunes and then install it back again but yet still the same problem exist. Can you please help me to solve this issue?

    My iPod Nano 7th Generation couldn't be detected by iTunes when I plugged in. I tried resolving the issue by uninstalling the iTunes and then install it back again but yet still the same problem exist. Can you please help me to solve this issue? I have already updated to the latest version of iTunes on my Windows 8 and I cannot synchronize my iPod for the time being. Please do help me to solve this problem. Thank You.

    uninstall all iTunes,5 programes,this worked for me after reinstall them

  • Blue screen of death, and continous reboot.  Phone never actually boots up, just keeps going from reboot to blue screen and back again.  Any suggestion?

    Blue screen of death, and continous reboot.  Phone never actually boots up, just keeps going from reboot to blue screen and back again.  Any suggestion?

    Hello jared1915
    If you are stuck in that loop, the next step would be to restore your iPhone. Check out the article below to get your iPhone into recovery-mode and restore it in iTunes.
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Regards,
    -Norm G.

  • BT Infinity Dartford pushed back AGAIN!

    So this is my first time posting on the forum, but i feel i need to say this because its starting to get stupid. Back in June 2010 BT said i was going to be able to get BT Infinity 1 (40MB down | 2MB up). Well that never happened and the dates have been pushed back again to September 30th 2014 .
    The only reason we switched to BT was to get Fibre Optic broadband as soon as it was available. That day never came and we are really starting to get fed up with the dates being pushed back, its almost been 4 years since BT first announced our cabinet was going to be upgraded but as of now it has not.
    Our current connection is 1.9 Mbps down and 0.3 Mbps, and is not enough when two people are trying to play games on steam and the other two are watching YouTube videos. It is just such a pain that the fibre dates come and go as if no one is actually doing anything about it.
    Even if my cabinet is not going to be upgraded anytime soon i would at least like an answer to the reasons why, according to openreach "We are in ongoing discussion with the relevant authority about the location of this cabinet." They have not said anything else apart from that for the past 2 years, no new information has been given.
    What makes it worse, there is someone less then 100 ft from my house with a BT Infinity connection.
    Is there anyone who can give me a bit more information that Openreach are giving me?
    I am currently connected to cabinet P13 which is linked to the Dartford exchange.
    Solved!
    Go to Solution.

    Up until recently you could email Openreach and ask when your cabinet was likely to be upgraded however Openreach are no longer giving out that information, instead they are replying:-
    Thank you for your contact to us. Please note that we will not be responding to you by email but, would like to point you to the Openreach Superfast Fibre website and the FAQ section that will provide answers to the most commonly asked questions. It will also provide links to those service providers that sell fibre broadband at the moment so you can check if your particular line is enabled.
    http://www.superfast-openreach.co.uk/where-and-when/
    So in short, you just need to keep checking to see if your cabinet has been up graded.
    If you use this checker it will tell what cabinet you are on and what services it can receive
    http://www.dslchecker.bt.com/adsl/adslchecker.welcome
    I also found this which may be for your area.
    http://cds.sevenoaks.gov.uk/documents/s16003/11%20Broadband%20-%20App%20A%20and%20B%20-%20P.pdf

  • I have Yahoo mail provider but just lost my folders in Mac Mail program. The folders were not "On my Mac" but on "Yahoo". How do I get them back again?

    I have Yahoo mail provider but just lost my folders in Mac Mail program. The folders were not "On my Mac" but on "Yahoo". How do I get them back again? I have reinstalled MacMail as everything had disappeared. The new install has given me everything except the Yahoo folders. When I looked one of the folders had reappeared, but now it has gone again. I am using Yosemite.
    Desperate to find those folders with so much data involved.

    Thanks for that babowa. If I add my Yahoo account it just goes straight to MacMail and says I already have an account. There seems to be no basic problem with mails going between Macmail and Yahoo. It is just the folders that have disappeared, while MacMail was out of action. I don't think those particular folders were ever on the Yahoo mail that I access through BT, they were just on the MacMail under "Yahoo" as opposed to "On my Mac". I am worried in case I lose what I already have if I press "Restore" from my back up. As you can see, I am not exactly good at this!

  • I want to delete a few contacts, apps, pics etc from my iphone, but when I delete and connect to my laptop they sync and come back again. How can I delete those items and not get them back when I connect my iphone to my laptop?

    I want to delete a few contacts, apps, pics etc from my iphone, but when I delete and connect to my laptop they sync and come back again. How can I delete those items and not get them back when I connect my iphone to my laptop?
    Also where exactly on the laptop is teh data stored.
    Thank you!!

    go to 'Edit' in the menu bar. Then choose 'Preferences'.
    you'll see a pop-up and there's a tab called 'Devices' there. If you click that, you will be able to check a box that says 'prevent automatic syncing for iPods, iPads and iPhones' or something like that.
    Hope this helps
    NB: if you don't even see the menu bar that has options like 'File, Edit, View, etc', first click the black/white square button on the top left of your screen, and then click 'show menu bar'. It should pop right up.
    Good luck

  • Photoshop CS6 is not responding when leaving PS and coming back again

    A weired problem: My new installation of Photoshop CS6 (OS X Mavericks on a new MBP) is not responding when leaving PS and coming back again.
    Example: i open a new file in PS - then i click on the desktop - when i go back to PS again, it is not responding to any click on any window (except for the menu bar).
    I can solve the problem when i try going back several times or when i go back to PS via the icon in the dock.
    But it is still very annoying in a quick workflow.
    I would appreciate any idea what i can check more, cause i tried everything and i can’t find this issue on the web…
    Thanks…

    Problem solved… The troublemaker was the Trackball Works Driver for Kensington trackballs / Expert Mouses…
    I’m now using a generic driver for USB devices and everything is fine.

  • Final Cut Pro X and the Road to **** (and back again)

    Hi Guys,
    I have an interesting article on FCP X by Rick Young. Real world experiences.
    Final Cut Pro X and the Road to **** (and back again)
    http://www.kenstone.net/fcp_homepage/fcp_x_road_young.html
    --ken

    A very interesting article Ken, especially the comments about compound clips within compound clips.
    I've never experienced the horrific problems some folk have claimed but then I never put compound clips within compound clips.
    In  fact, until today I had never made a compound clip! 

  • Putting music & playlists back again

    Hi folks,
    I'm just about to run iVolume on my iTunes library in order to normalise the volume of the music I have. It doesn't work on the iPod files, but interfaces with the iTunes library itself. So, I will have to rip out the music and playlists on my iPod, only to drag and drop them back again (I manually manage syncing my music). That way, the music on my iPod will playback at the new normalised volume.
    So, rather than try to commit it to memory (or indeed print reams of paper) before selecting around 5GB of eclectic choice and dragging and dropping it back (over USB 1.1!), can anybody suggest an easier way please?
    Thanks,
    Matt
    G4 Cube 1GB RAM/G3 iBook 640MB RAM; AirPort Express/5G iPod Nano   Mac OS X (10.4.9)   Sony Vaio XP SP2
    G4 Cube 1GB RAM/G3 iBook 640MB RAM; AirPort Express/5G iPod Nano   Mac OS X (10.4.9)   Sony Vaio XP SP2

    Ok, problem. I got the program and got all my files onto it from my ipod. Then i copied them to my music and movies folders. When i add them to iTunes, after about 300 songs it says "Attempting to copy to disc "C:\" failed. The file name invalid or too long."
    what do i do?

  • I made a mistake in my macbook air now in my macbook air showing windows how can i put it back again to macbook air

    I made a mistake in my macbook air now in my macbook air showing windows how can i put it back again to macbook air

    You need to provide a lot more detail as to what you did.
    Were you setting up bootcamp?
    Did you blindly install Windows without using bootcamp?
    If you set up bootcamp, press and hold the option key when you hear the start up bong until the screen shows both operating systems.You can then select the one that you want.

  • I want to listen to internet radio as I used to do. The selection "Radio" has gone from my list under "Music". How do I get it back again?

    I want to listen to internet radio as I used to do. The selection "Radio" has gone from my list under "Music". How do I get it back again?

    I don't know if this is what you really want, but I created a Playlist for Radio, and add some of the stations I like from websites. (If you click on the web-links they load into iTunes in the Sidebar). And you can also add individual Radio stations from the top right,(under Apple) to a Playlist. That's the only way I know to have them in the Sidebar.
    Z_ZS-B, You also helped me to find the old Radio list! I didn't even know it was up on the right, under Apple. I haven't liked this version of iTunes so I hadn't even bothered to try and figure it out until now, but because I just bought a my first iPod Shuffle I'm determined to bend this version to my will. ;-)

  • I've lost all my contacts and calendars on my phone. How do I get it back again?

    I've lost all my contacts and calendars on my iphone 4s. How do I get it back again?

    rebeccakhwar17 wrote:
    Hi
    Can anyone help me please. I've recesally had to take my Iphone to be repaired before I. took my phone i backed up my data into Icloud and when i got my new phone I have lost all my contacts and photos.
    Restore the iPhone from your backup.
    See this -> http://support.apple.com/kb/ht1766
    Then make sure you sync everything to your computer so you do not lose it.

Maybe you are looking for

  • Officejet pro 8000 and HP Home & Biz print app

    I have an Officejet Pro 8000 wireless that, according to HP's list, is compatible with the HP Home & Biz print app for the iPad 2.  However, the app does not find any printers on the wifi network.  I am running Win 7 and the printer is shared and wor

  • Maximum Database size in exchange 2007

    Hi Team,<o:p></o:p> What is the maximum database size we can have in Exchange server 2007 SP3 RU8 standalone server.<o:p></o:p> In our environment we have 1800 users hosted on the exchange 2007 server with DB size(EDB file) of 1.61TB. What is the max

  • Removed from Sale

    We've delivered two books to the iBooks Store with iTunes Producer. The first one went through just fine. The second one, however, has the status of "Removed from Sale." It's been that way since September and I can't get it to change. I've triple and

  • Jdeveloper unable to read "extension base" element

    We have a 3rd Party ERP system and using their web services to connect via BPEL. After we import the WSDL in Jdeveloper and try to create variables for input and output payload, we are not seeing the elements that are using "extension base" property.

  • KOB1 ALV greyed out checkbox "user specific"

    Hi Experts, following problem, in ta KOB1, during saving a layout the "user specific" check box is greyed out. the outorization object s_alv_layo (act.23) & s_alv_layr are granted to the user profile. No outorization problem in su53 the oss-notes: 16