Can you give me a simpe example

dear all,
can you give me simple example about this procedure UTL_FILE.PUTF plz.
with best regard

hi try this example
DECLARE
    v_empfile       UTL_FILE.FILE_TYPE;
    v_directory     VARCHAR2(50) := 'C:\TEMP\EMPDIR';
    v_filename      VARCHAR2(20) := 'empfile.csv';
    v_format        VARCHAR2(200);
    CURSOR emp_cur IS SELECT * FROM emp ORDER BY empno;
BEGIN
    v_format := '%s %s, %s\\nSalary: $%s Commission: $%s\\n\\n';
    v_empfile := UTL_FILE.FOPEN(v_directory,v_filename,'w');
    FOR i IN emp_cur LOOP
        UTL_FILE.PUTF(v_empfile,v_format,i.empno,i.ename,i.job,i.sal,
            NVL(i.comm,0));
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('Created file: ' || v_filename);
    UTL_FILE.FCLOSE(v_empfile);
EXCEPTION
    WHEN OTHERS THEN
        DBMS_OUTPUT.PUT_LINE('SQLERRM: ' || SQLERRM);
        DBMS_OUTPUT.PUT_LINE('SQLCODE: ' || SQLCODE);
END;The following is the contents of empfile.csv created above:
C:\TEMP\EMPDIR empfile.csv
with the employee details

Similar Messages

  • Can you give me an example of using blacklist from in mail settings to block unwanted mail?

    I want to use serveradmin settings mail command line to set a list of domains/servers I do not want to receive emails from. Can you give me an example on how to set this in ML server?
    I managed to set the domains using the command line serveradmin but it is not working. This is a list of domains I have set so far:
    mail:postfix:blacklist_from:_array_index:0 = "bounces.servidordeenvio.com"
    mail:postfix:blacklist_from:_array_index:1 = "reiserver50.info"
    mail:postfix:blacklist_from:_array_index:2 = "vps5.central-adworks.com.br"
    mail:postfix:blacklist_from:_array_index:3 = "emailTrocar.com.br"
    mail:postfix:blacklist_from:_array_index:4 = "geeklemail21.com.br"
    mail:postfix:blacklist_from:_array_index:5 = "produtosnotaveis.org"
    But I still keep receiving emails from those domains with virus (which are intercepted by the virus filtering) and receiving alert messages from the server app suggesting me to include these domains in a blacklist.
    Thanks for your help..

    Thank you.
    I tried it out and did not work either but I finally found a way to add multiple entries. I read on the serveradmin man page that if you had multiple values you should better off use a file for input.
    I did create a plain file with as many as needed entries:
    mail:postfix:blacklist_from:_array_index:0 = "*@xxx.com"
    mail:postfix:blacklist_from:_array_index:1 = "*@xxxx.com"
    saved as blacklist then I issued the command:
    sudo serveradmin settings < blacklist
    This solved the setting of multiple values. I will monitor if it will really block the spam from the locations.
    Thanks again for your help and interest.

  • (261229964) Q MSGC-7 Can you give an example of chosing different encoding styles?

    Q <MSGC-7> Can you give an example of chosing different encoding styles?
    A <MSGC-7> I will refer you to the online documentation for the encoding information
    at:
    http://e-docs.bea.com/wls/docs61/webServices/develop.html#1036286
    And the JavaDocs for the weblogic.soap.codec.CodecFactory class which describes the
    register method you must use to identify which encoding style you want:
    http://edocs.bea.com/wls/docs61/javadocs/weblogic/soap/codec/SoapEncodingCodec.html

    What is that post supposed to be?

  • I have brought a iphone 4 and the person i brought it from has not deleted her icloud account i need her pasword to delete it but hse wont give it to me what can i do how can i add my icloud account can you give me a reasonable answer please. thank you

    i have brought a iphone 4 and the person i brought it from has not deleted her icloud account i need her pasword to delete it but hse wont give it to me what can i do how can i add my icloud account can you give me a reasonable answer please. thank you.

    The seller needs to follow this procedure:
    http://support.apple.com/kb/TS4515
    If she refuses, then as Tim suggested the iPhone is probably stolen. You'll need to contact your local police department and ask how to proceed.
    Regards.

  • Can you give me some reasons about why I need to buy an iPod touch 5.Although I have the iPhone ,iPod nano, iPad ,MacBook pro,I think the iPod touch 5 is so attractive that I can't help buying it at once.If I have it,what I can do with it,can you tell me?

    can you give me some reasons about why I need to buy an iPod touch 5.Although I have the iPhone ,iPod nano, iPad ,MacBook pro,I think the iPod touch 5 is so attractive that I can't help buying it at once.If I have it,what I can do with it,can you tell me?

    All I can say is that I REALLY like my Touch 4th gen because I have all sorts of capabilities in a small form: e-mail, web browsing, news, weather, books, magazines, etc. etc.  Plus lots and lots of apps out there, including so many free ones.  I use the Cloud a lot so it's great to have everything sync'd to my MacBookPro (e-mail, Evernote, Pocket, etc.)
    It would be easier, though, to do some of this, especially magazines, on the iPad mini, but, again, I love the small size of the Touch. 
    As for the 5th gen instead of the 4th, the fifth has Siri and the 3D feature in maps, which are great.  And I'm sure it's a lot faster in iOS 6 than the 4th gen.  And cool colors! 
    Don't know if this helps . . .

  • Can you give some real-life use of tables in BW?

    Hi,
    In reading links and notes from here, I took a leap to try and understand how tables are used in the BW environment, by following:
    se16
    RSZ* then  F4
    then I Double click on:
    i.
    RSZRANGE        Selection specification for an element
    If execute, I get a table with a several fields with values.
    What is this table suppose to tell me and can you give me a real-life scenario where you made use of such a research to solve a problem?
    ii.
    RSZOPRATOR       Formula Operators
    similarly, here I found fields with operators and mostly numbers.
    What is this table suppose to tell me and can you give me a real-life scenario where you made use of such a research to solve a problem?
    iii. Later I tried RSU* then
    RSUPDDAT        Update rules key figures
    Nothing recognizable here about the update rules.
    What is this table suppose to tell me and can you give me a real-life scenario where you made use of such a research to solve a problem?
    iv.
    Also, sometimes here conversations like, research on which tables have the fields you need and let’s generate reports against them. I though tin BW, reports are always generated against data targets (ODS, Cubes, etc). I didn’t know of tables.
    Can you give a real-life scenario where you had to combine fields in 2 or 3 tables and use them in project?
    Thanks

    Amanda,
    There are many scenarios where you can use the tables behind the screen. But most of the times the scenarios are sophisticated requirement. Suppose your installation has many data targets and all are getting loaded nightly, weekly or even monthly intervals. Usually in most places the person on call will go and look at all the targets in the morning whether all the loads are successful (they would have beeped if something faild during loading at nights). Instead of going thru this manual process you can write an ABAP program which will look at the infocubes and ODS and see how many records were added, transferred, updated success or failure all kinds of information.
    RSA1 is just a front end and all the information you see are all coming from tables which are stored here. go to SE80 or SE11 and search for the tables behind the screens. Every bit of detail that you see is coming from tables or available in tables. There are many tables and they are all relational. So you can pretty much do anything you like in accessing them. Please just read (SELECT) from them. Don't try to delete, insert anything unless you know what you are doing absolutely.
    Hope this helps.
    Good luck with your learning.
    Alex.

  • Mini 110 bios pasword problem Can you give me a Bios unlock code for CNU9443DVL

    Can you give me a Bios unlock code for CNU9443DVL
    Tnank you in advace
    Branko
    This question was solved.
    View Solution.

    Welcome App. Try.
    e 9 l o v v f t 6 k
    Third letter lowercase L.
    I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damage that may arise to your system by using these services. Please be aware that you do this at your own risk.
    HP Expert Tester "Now testing HP Pavilion 15t i3-4030U Win8.1, 6GB RAM and 750GB HDD"
    Loaner Program”HP Split 13 x2 13r010dx i3-4012Y Win8.1, 4GB RAM and 500GB Hybrid HDD”
    Microsoft Registered Refurbisher
    Registered Microsoft Partner
    Apple Certified Macintosh Technician Certification in progress.

  • Hsawwan ,can you give me some help?

    Although I'm very new, I have made up my mind to become a Oracle ACE in Ebs field.
    I will achieve this aim by working hard .
    I have made every mental preparations.
    can you give me some advice ?

    Hi,
    Have a look at the following thread, it should be helpful in answering your questions.
    ACE
    ACE
    Regards,
    Hussein

  • (268625273) Q WSI-29 Can you give any performance benchmarks for WLS web services?

    Q<WSI-29> Can you give any performance benchmarks for WLS web services?
    A<WSI-29>: It is very difficult to quantify performance aspects of web services
    since they depend on so many variables including but not limited to: backend system
    processing by stateless session beans and message driven beans, size of XML SOAP
    message sent, system hardware (CPU speed, parallel processing, RAM speed) and
    system software (JVM type and version of WebLogic server). However, let me point
    out that the EJB backend processing of requests both have the best possible scalability
    within the EJB2.0 specification (both stateless session and message driven beans
    can be pooled) and servlets have a proven scalable track record. Thus it should
    be possible to scale your web service deployment to meet demand. The overhead
    in processing XML within the servlet can be significant depending on the size
    of XML data (either as a parameter or a return type). While WLS6.1 does not have
    any features to address this performance concern, WLS7.0 will feature Serializer
    and Deserializer classes which can be dedicated to the XML to Java and Java to
    XML translation (they can also be automatically be generated from a DTD, XML Schema
    or regular JavaBean).
    It is true that web services are not the fastest way to process client requests
    but BEA is committed to making WebLogic server the fastest possible service provider.
    Adam

    see http://www.oracle.com/support/products/oas/sparc30/html/ows08811.html

  • I have never used Illustrator...can you give me step by step instructions to use your t-shirt template? I watched the tutorials, but they leave out basic information

    Can you give me step by step instructions to use the tshirt template for someone who has never used this program before

    a free trail of lynda.com could help
    lynda.com library | Trial Subscription
    You might also try adobe's set of tutorials.
    What you are asking is beyond the scope of this forum.
    It's sort of equivalent to asking for step-by-step instructions for using cruise control for someone who has never driven a car before.
    You will need to take some time to learn the program before you can successfully create work in it.

  • Can you give some of your products samples? it's for my project

    Hi this is a student name Gama. I was wondering if you guys can give my some of your product sample for my  Econ project because I'm doing a research of you company. This project is to choose your favorite company so I choose you guys because I love your company and its that i get to download apps like games and other stuff also music and movies which is the best part of this company. So please can you give a report or at least some of your product samples

    Hello,
    Just other users here like yourself, so Apple will not likely respond here, you need to contact them by other means.

  • Can you provide some real time example of Fit Gap analysis .

    Hi all,
    Can you provide some real time example of Fit Gap analysis related to Functional.
    Regards
    Reddy

    hi,
    In my opinion and experience both functional and technical staff playkey roles in the fit-gap meetings and in the subsequent review of thefit-gap deliverable (which lists business requirements, fits, gaps, andalternatives to fill the gaps). Ideally the technical staff possessessignificant functional / business experience at least with that moduleso that he/she can help determine the cost/effort/technical scope if acustomization or interface is the preferred way to fill a particulargap. The fit-gap goes a long way in determining the overall scope ofthe implementation or upgrade project and is a critical success factor.It also needs to be completed very early in the project so thatresulting customizations and interfaces can be designed, created, andunit tested before the system test phase.
    Thx,
    waseem

  • Hi anitha , i am working for mm module can you give detailed procedure

    hi anitha ,
                i am working for mm module can you give detailed procedure to me .
                                                                    thanks
                                                                     praveen

    Hi,
    1. MM Flow.
    > goto T.C MM01.
    > give material Number - some no.
    give MAterial sector - Mechanical
    give Material Type - Raw Material.
    then goto ORg Levels on top.
    then goto plant - 1000 n storage location - 0001
    then select views.
    in that select basic data 1, basic data 2, purchasing, general plant data storage / main..., Accounting 1 n then enter.
    > Then give the materiual descripition
    basic unit of measure KG
    Mat group - 001.
    click on purchasing n give mat no u have created n plant - 1000 n basic unit of measure KG n enter enter n enter.
    then goto valuation class - 3000, P.C - S n moving price -100.
    save then the mat no gets created.
    > now go to TC XK01 ie, vendor master
    give vendor - 126
    comp code - 1000.
    pur org - 1000.
    Acc grp - 0001
    enter
    give title name - company.
    search itenm 1/2 - M
    then Rec ACc - 31000.
    Cash Mang Grp - A1.
    enter n enter.
    order currency - INR
    in control data click on GR- based info verf n click on ACK Req.
    save n enter.
    > goto TC ME 11 ie, purchasing info record.
    Vendor - 126.
    Mat no - the one u have created.
    Pur org - 1000
    plant - 1000
    info rec-
    select standard enter n enter.
    in Period delay time give -10 n In conditions Net price - 100.enter In control Pur grp - 100.
    enter n enter n enter for three times.
    > goto ME01 source list.
    Mat no - mat no u have created.
    Plant - 1000.
    enter fix the line.
    give vlaid from , vend to , vendor as 126 p org as 1000, enter n save.
    > TC code RFQ for request for quotation.
    TC ME41.
    RFQ type - AN
    Lang Key -EN
    RFQ date - any date.
    QUAT Deadline - any date RFQ-
    give purc org grp - 000
    presss enter
    coll no - RFQ1.
    enter then give MAt no RFQ qnt as 100 ,O as KG del dat n netr.
    goto header click on Vendor Add
    vendor - 567
    Title - company
    enter.
    the goto tc ME47
    quotation.
    give net price 100 enter.
    then goto ME49.
    give quotation no tht u have created coll rfq as RFQ1 vendor as 567 mat no u have created. n execute, back n back.
    > goto tC ME51N for purc requisition.
    click on header n give text as.
    item as 10,SR as sur3, quant 100, del date, mat grp, plant n pur as 000
    enter n save.
    we will get purch req no...
    now go to ME21N pur order.
    click on Purchase/req no. click on value ur purh req no will be displayed there select it...
    then goto Org data tab strip.
    pur org - 1000.
    Pur grp - 000
    com code - 1000
    enter
    vendor - the one u have given...
    enter n enter check n save.
    then tc MIGO for goods receipt.
    give pur order no u have created...
    gotot quantity tabstrip n press enter give qty in unit of enrty as 80
    goto pur org tabstrip n give del comp as set automatic.
    click on item ok.
    then continue n then post n continue.
    then two documents will get created mat doc n acc doc.
    then > MIRO invoice.
    give vendor no - comp code invo date pur ord no.then select it n copy.
    enter.
    then we will get acc no n write it in the acc block.
    the >MB1A ie goods issues.
    mov type - 201
    plant - 1000
    stor loc - 0001
    enter
    cost cent - 1000
    vendor - u have created
    then give sc qty enter.
    mat n acc doc r generated.
    >MMBE stock overview.
    give mat no - u have created.
    plant - 1000
    sto loc - 0001 n enter...
    the MM get created...
    Regard,
    Priyanka.

  • Can you give me a query to find a latch?

    Hi
    Can you give me a query to find a latch? If you have a script then please give it to me to find a latch.
    Thanks.
    Regards,
    RJ.

    There is no magic command to stop the latch, unless you shuting down your database.
    I would advise you to take several statspack snapshots, make reports, and analyze if latches are a problem.
    Then, in regards of which latches are in the top of lists of wait events, make what required, not before.
    Nicolas.

  • Can you give me a paper or document related to this phone was changed since it was broken down? I need IMEI numbers of two Iphones on the same page. Because I don't wanna save this Iphone again in my country. I paid one time for my old Iphone.

    My Iphone was changed because of broken down thanks to its warranty. I am from Turkey and I paid one time for my old Iphone to save. Can you give me a paper or document related to this phone was changed since it was broken down? I need IMEI numbers of two Iphones on the same page. Because I don't wanna save this Iphone again in my country. I paid one time for my old Iphone. If you give me a document, I don't need to save my Iphone5 and also I don't need to pay again to save in my country.

    this forum is made up of users like you, not apple employees.  We can not help you with that kind of request.

Maybe you are looking for

  • IMac freezing and shutting down

    27" iMac late 2011. 3.4 GHz i7, 16 GB RAM. 251 GB SSD system disk, 2 TB SATA disk. Now running Mavericks  OS X 10.9.3 - after install of which trouble started. My machine freezes and/or restarts without warning. Several times a day. I am running VM w

  • I can't received security info email to my mail

    i Forgot my security answers i send many time to reset security info to my verified email i can't received security info email to my mail cant help me pls

  • How can I turn off ring for notifications e.g. messages but not for calls?

    Simple question: Is there a combination of settings where I can turn off sounds and vibrate for notifications e.g. whatsapp, facebook but still have it vibrate for calls. E.g. if its in my pocket I'd prefer not to keep getting vibrations, but it woul

  • Restart the meta chain?

    Hi I have one failed metachain due to one of the local chain(0BPartner_attr) load fails . I have done manually that local completely. I want to trigger the Metachain again with out running that particular local chain.. How to do that.. Thanks,Sudha

  • Nutzung von Adobe Typekit - Rechtlicher Hinweis

    Hallo, ich will Adobe Typekit für eine gewerbliche Webseite nutzen und frage mich, ob ich dazu einen Hinweis auf der Webseite platzieren muss, dass ich es nutze? Wenn ja wo (Impressum?) und in welcher Form? Leider finde ich im Dienstleistungsvertrag