Mercy on me...

Hi, I am not an experienced Oracle DBA, only a user through other applications that I administer (content management/web apps). As it turned out, my employer has asked me to develop a PL/SQL tool to export table data to the back end, on a scheduled basis. I researched the matter and found more options than I can understand, even purchased some books and spent unimaginable amounts of time trying to set up APEX and such. In the end, I found several potentially viable scripts, many of them freely available over the internet, but they don't quite cut it: all the UTL_FILE scripts that I found export a csv file, but when a new one comes, it overwrites the old one. I need to be able to rename the existing one, with a date stamp, on a scheduled basis. All this needs to work in Solaris with Oracle 9i. That's what's caused me more trouble than anything. It gets worse, i then have to develop a front end reporting tool, a web interface to give the admin the ability to search for records from just two columns, by date range. I can't really use apex, or anything like that, it needs to be a general purpose, j2ee app that should work on any app server...
I have two days to come up with something that can be deployed, any help that you can provide is greatly appreciated it...
Lost.

Hello,
What have you done so far in utl_file? Do you have procedure opening , writing files but without date and time extension? Here is sample procedure, that can be used to generate a file_name with date and time and you can embed in your package and call it when you opening a file using UTL_FILE. Hope this helps you out.
-- Global variables to support following procedure. This procedure can open a monthly or daily file name, you can extend and time stamp i
g_file_date           DATE;                --Date current file was created
g_file_rotation       VARCHAR2 (20)  := 'DAILY';
g_file_number         NUMBER (3)     := 0;
g_file_name           VARCHAR2 (50);
  PROCEDURE make_file_name
   IS
      v_date_string   VARCHAR2 (10);
   BEGIN
      IF g_file_rotation = 'MONTHLY'
      THEN
         v_date_string := TO_CHAR (g_file_date, 'yyyymm');
      ELSE
         v_date_string := TO_CHAR (g_file_date, 'yyyymmdd');
      END IF;
      IF g_file_number = 0
      THEN
         g_file_name := g_module || '_' || v_date_string || '.log';
      ELSE
         g_file_name :=
            g_module || '_' || v_date_string || '_' || g_file_number
            || '.log';
      END IF;
   END make_file_name;Regards

Similar Messages

  • Pleace have mercy! String to valid Date?

    Anyone please have mercy and help me with this topic:
    How can i check wether a string is of a valid date format:
    YYYYMMDD? I have been trying for hours but am unable to find the right function.... :-(
    THank thee a thousand times and may the source be with you!

    sorry will not do it again! i was just so desperate that i posted twice....
    and thank thee for thy help!

  • Hey everyone!  I'm at your mercy!  Desktop version won't redirect to phone app.

    OK.   I'm tired.  I designed a site www.aliciastecklercounseling.com for the first time in MUSE.  For the phone design I designed a temporary site just giving vital information on how to contact her.  Stayed up all night designing the site, worked on it all day and wham!!! Loaded the new site!  Wow!  Impressed.  NOT!  On my iPhone it says "Under Construction".  Not even the temporary site I put up.  I have spent the last 4 hours trying to find out what is going on.  Did I miss something?  I went to my hosting site and checked the files.  First, I saw that there was only  one "page/template" that registered as index.tpl.  Really?  Then I went to the phone file and it also said tpl after each file name.  After texting their CHAT which they finally didn't respond, I ended up deleting all my files and started from scratch.  Now all the phone files have an extension as .php.  I don't know if that is correct or not. After deleting all my files off of the server I loaded the entire site again.  I see it on the desktop but the phone still says, "under construction" and not with the temporary file I made.  HELP!  I have way too many deadlines and can't take another no-sleep night.  I can't get it to load on the phone.  Worked fine for the temporary file.  I don't know if this messed it up but I added an accordion menu and went to page properties and added meta data info, key words and a url for Google Analytics.  Am I supposed to do that?  In "Site Properties" I made sure the "redirect to desktop" was checked.  I noticed on my server that my phone folder there are two folders - css and page-templates. When I click on my page-templates folder it shows my files.  But - it has .tpl as an extension.  I believe this could be messing me up.  I didn't make any templates.  I am lost and don't know what to do.  My client is not happy thinking I don't know what I'm doing - which is true and hate to admit it.  With the new Dreamweaver I need to know too much and am too tired to go learn all the code right now.  I don't know if it's the server problem, my problem or Adobe's software problem.  If anyone has any ideas please let me know ASAP!  I have searched the internet for the last couple of hours and had a "Chat" with my hosting site.  I can never get a human on the phone.  Again, the site I'm working on is www.aliciasteklercounseling.com.  Nothing fancy.  Just mainly info.  Thank you, thank you, thank you for anyone that could help me.  I'm desperate and extremely tired.

    Hello there,
    I just checked on my phone and your website does go to the phone version on my iPhone 5. I noticed that on the iphone 6 it loads the tablet version and not the phone version, maybe this is the problem.

  • 3G iPad – You are at the mercy of AT&T

    I had a delayed flight out of St. Louis. I travel with my iPad to keep track of personal items. For an hour, I could not connect to the AT&T network (other iPad user had the same experience). I had to purchase a data plan from Boingo. If travel often and can’t count on the AT&T network at an airport – what’s the point? Consider the fact that the AT&T network is poorly rated by actual users (don’t believe their advertisements) before you invest in a 3G iPad. If you spend a lot of time in an airport, you might do better, and cheaper, with the Wi-Fi model and obtain a lower cost Boingo account.

    I have AT&T 3G (laptop not ipad) in NYC Metro and poor doesn't begin to describe the service the the last 18 months.
    Anyway, you should have been able to log on to the Boingo site without having to purchase a separate access plan.
    http://forums.wireless.att.com/t5/Apple/iPad-Wi-Fi-3G-Information/m-p/1925513
    "AT&T Wi-Fi hotspots will automatically authentic AT&T 3G Data Plan for iPad subscribers as long as they turn on Wi-Fi on the device."
    AT&T partners with Boingo, at least in some locations.
    http://www.att.com/gen/general?pid=13540
    And, if that fails, Starbucks is probably close by.

  • At the mercy of iTunes - the horror of random annihilation.

    I'm furious. Has anyone else found that iTunes periodically 'forgets' your entire library?
    "What? Music? No, no, I'm empty", iTunes insists.
    "What!? What about that 13gb that I've spend years compiling!?", I stammer.
    "H-have we met...?"
    It seems that I am under constant threat of total wipe out. This is his third strike and I'm simply not taking any more. Previously I just begrudgingly re-ripped my entire library and let my beautiful play counts die. But not this time.
    Three completely random, seemingly unprovoked, wipes are three too many.
    The most annoying thing is that each time is exactly the same. I just open up iTunes as normal and there's nothing there, no music, no playlists, no play counts - it's totally blank.
    iTunes has bullied me long enough. Please, I am on my hands and knees, somebody help me! I've read about library files but I need clarity. How can I resurrect my old library, play counts and all?

    *How can I resurrect my old library, play counts and all?*
    Try holding down the Shift key in Windows when opening iTunes. In the resulting dialogue you will get the option to create a new library or navigate to an existing one. The default location for your iTunes library is in C:\Documents and Settings\Username\My Documents\My Music\iTunes\ (or C:\Username\Music\iTunes\ in Vista). Look in there and see if you have more than one library file (they have the extension .itl) If you have more than one try opening them in turn, you may find your original library is still intact: How to open an alternate iTunes Library file

  • To Mercy Polson@Oracle

    upgrade from 9ias 1.0.2 to 1.0.2.1
    I saw your response on the above subject.
    I am migrating from 1.0.2 to 1.0.2.1
    If I do such a upgrade, do I have to save my iAS database too ? Or will it be automatically migrated to the new installation.( I already have some jsps loaded to that database)
    Thanks in advance.

    First you have to find out the correct format which matches your varchar-date. E.g. are the hours in HH AM our HH24, what are the separators and so on.
    with this you convert it first into a timestamp as shown below.
    The result can be converted in the format wanted. FF9 is a shortcut to present all fractional seconds.
    with dates as (
      SELECT  '12/03/2011 10.22.14' d from dual
    select
      d
    ,to_timestamp(d,'MM/DD/YYYY HH.MI.SS AM') tmstp
    ,to_char(
             to_timestamp(d,'MM/DD/YYYY HH.MI.SS AM')
            ,'DD-MON-YY HH.MI.SS.FF9 AM'
      ) dat_formt    
    from dates
    D     TMSTP     DAT_FORMT
    12/03/2011 10.22.14     03.12.2011 10:22:14,000000000     03-DEZ-11 10.22.14.000000000 AM

  • At the mercy of STP !

    In a data centre which uses VTP trunks to connect user VLANS to the same core switches that connect server and network VLANs, if a switch is added to suppliment a user VLAN it will affect a trunk and hence spanning tree will run on all VLANS. Can I employ prunning to remove the threat of STP blocking all Server ports when a trunk carrying all (but uncessessarily) VLANs is modyfied ? Will pruning stop a VLAN from being presented to certain areas of a STP domain ? We have noted in a lab that any modyfication to one VLAN can halt all operation on all other VLANs for up to 50 seconds.
    any thoughts ?

    Hi Steven,
    This question would be likely to get a better and faster answer on the "LAN, Switching and Routing" forum, and it looks like a question that needs to be answered. Would you mind copying, pasting, and posting it over there? Our charter here is -
    Mainframe connectivity, SNA Switching Services, DLSw+, managing SNA/IP internetworks
    Not that we don't use everything else, it's just what we use it for that's different.
    Rgds, Dan

  • I recently went to the Mercy Corps website to donate. On the donation page, the address bar read "Mercy Corp" instead of their web address with the https. ???

    That's about it. Was I scammed? When I left-clicked on the page, the address came up with the https prefix.

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).

  • I preordered the new Mercy Me album and i cant download the music it says i have insuffecient funds when i payed the preorder price what is up with that?

    I wanna download the preordered content but it wont let me. i just wanna know how i can do this since i payed the $9.99 for the preorder.

    Preordered content is not charged to your account until the content is available for download.  If you look at your bank statement and see that it had been charged call apple at 1800MYAPPLE and verify that the funds have been removed and they will unlock the download for you.

  • SWEET MERCIFUL CRAP!!!! MY DESKTOP !!!!!!!!

    Hello All,
    I have a recurring problem I solved once, but forgot how : I sometimes accidentally pinch my trackpad over the desktop, making all the icons bigger and forcing me to rearrange them the way I'm used to having them. How can I disable pinch on my desktop without disabling it in other applications (safari, preview....)
    Thanks,
    K.

    wish itunes would keep like the last 5 backups on the computer. Where is the folder located that keeps the iphone backup anyone know?

  • Floundering noob grovels for mercy

    Hello!
    Sincere apologies for the following rather long story, but apparently, I need help.
    Recently, after despairingly throwing up my hands and deciding that no Windows DAW could ever possibly work, I have bought myself a 3 ghz quad pro and a copy of Logic Pro. Since I only record myself, I felt that the internal core audio deal should be quite sufficient for my needs, and also sprung for a Behringer ADA8000 "format converter", i.e. ADAT digitizer. I like to shy away from anything that requires a 'driver', if at all possible.
    So I have fired up Logic and begun that learning curve, experimenting with loops and so forth and analyzing the results over the headphone jack on the front of the Mac. Now I want to start evolving the system to make use of the digital i/o via the lightpipe built into the Pro, which I have connected to the Behringer via optical cables.
    But I can't get it to make a peep. I checked to box that says "use core audio", set up the digital i/o in that little audio/midi setup accessory (which crashes often, btw,) set the converter to 'slave' and changed the outputs of all the tracks in the project to "Audio 1/2", which is now all that's available in any case.
    But for the life of me I can't find a signal at the converter's line output.
    What am I missing? And how do I route stuff to channels 3-8 of the converter? TIA chris

    Well don't I feel like the dweeb.
    The specs for the Behringer say: "Digital Output. 1 x TosLink ADAT Lightpipe" and the specs for the Mac Pro say "Optical digital audio input and output Toslink ports" however, so perhaps I could be forgiven, on this, my first foray into optical sound, for believing that toslink was the same as toslink. <grumble>
    Yes, I can return the Behr. Can anyone recommend an SPDIF to analogue converter?
    Thanks, kids.

  • My Apple Care plan expired less than a week ago, and my phone has died. Will Apple have any mercy on me?

    I am beyond livid that my two-year apple care plan is now expired on my iPhone 3G and my phone has completely gone kaput. I attempted to go to AT&T yesterday and just get the iPhone 4, but with the iPhone 5 lurking just around the corner, I would have to pay full value when it comes out in a few weeks/months.
    My brother gave me his old iPhone; will I be able to activate it with no problem? I read an article somewhere that I'd have to sign a new two-year agreement with AT&T to activate the old phone, again defeating the purpose of using an interim phone before the 5 comes out.
    Someone help!!

    Actually MArc, it is you who needs to get the story straight.
    Apple Care on an iPhone only extends the warranty one year past the original first year, giving you 2 years in total.
    Details here:
    http://store.apple.com/us/product/MC253LL/B?mco=MTY3ODQ5OTY
    Apple Care on Computers (not iPhones), extends the warranty two years after the original first year, giving you 3 years in total.
    Details here:
    http://store.apple.com/us/product/MD006LL/A?mco=MTY3ODQ5OTY

  • Can apple have some mercy to let me down grade to ios 4? pleazzzzze!

    I don't use iCloud , I don't want the "most advanced ever", I just want long battery life and more memory and speed! please let me downgrade to ios 4, or maybe all I needed is an android.

    tianyifromtucson wrote:
    I don't understand why they have to add a branch of useless functions that can only use up all the memory and battery and the worst is you cannot turn them off.  how could a cellphone operating system more cimplex than a computer opterating system. so stupid.
    If you don't want a smart phone then why did you get one. Sounds like you want a regular flip phone.

  • At the mercy of...

    Since Apple and Nvidia know there's an issue with the logic boards on 08 models, then why couldn't they at least keep the replacements "In Stock" so their Techs don't have to order them, making the Customers wait for the part to come in, then having to bring the MAC in for the actual repair, which I've been told takes 3 days.  I'm in the middle of a huge project and it's costing me big time.  At least if the parts were on hand, the Techs would be able to to get to the repair ASAP. 

    thanks for the rant.  no one here cares.

  • Page Scheduler add-on not updated for FF4! Can Firefox add such a feature so users are not at mercy of independent developers that do not update their addons?

    Page Scheduler is one of the handiest addons to FF, I do not wish to update to FF4 and lose this functionality. Can Firefox build such page scheduling functionality into their browser???
    The developer of PS has not updated the app to run on FF4 nor have they provided any communication of any plans.

    Well, ultimately nothing worked, except making all the settings I wanted to set part of mozilla.cfg. When I added your suggestion, along with another I found on the web to disable add-on compatibility check, I finally have a Firefox that loads straight to the home page, even after the upgrade.
    Here's what my mozilla.cfg file contains (for 6.0.2):<br />
    <br />
    <pre><nowiki>
    // Disable any auto-updates.
    lockPref("app.update.enabled", false);
    lockPref("extensions.update.enabled", false);
    lockPref("browser.search.update", false);
    lockPref("browser.startup.homepage_override.mstone", "ignore");
    lockPref("extensions.checkCompatibility.6.0", false);</nowiki></pre>
    Of course, I have to do the byteshift-13 to it, but copying the resulting file to Core\ and the firefox.js file to Core\Defaults\Pref\ does the trick.
    Thanks for the help!!

Maybe you are looking for

  • Rookie needs help

    This is my first attempt at building a web site and am obviously in way over my head. I am using Dreamweaver MX2004 and started the site with one of the CSS templates included in the program. I am using the 2 column left navigation one. The question

  • Problem with Gradient Noise in "save as PDF"

    I'm trying to save a design as a pdf, using the high quality print/illustrator default options. The output is generating a bunch of noise in a corner of a couple of gradients, and also some line noise where different gradients meet. I'll include a sc

  • SMQ2 - SYSFAIL - Exception condition "LOGSYS_FOR_GUID_CHANGED" rai - Active

    Dear Experts, Greetings!!. In CRM SMQ2, ( inbound Queue ), I have a queue "R3AD_ZDNL_COND_A956" displays as a "sysfail" and have unlocked no change in statuses. I been still double clicked on the queue and displays as "Exception condition "LOGSYS_FOR

  • Problems since 2.2.1  (applemobilebackup.exe error, long sync time)

    After installing 2.2.1, I am experiencing the following and wondering if anyone on this forum has a solution to the following two issues. Thanks in advance. While syncing to my pc (it's a toshiba laptop running xp sp3), right before completing, there

  • Page not found or not available on UWL - Approve Shopping Cart

    Hi All, I am facing an issue with UWL where if I access the approve shopping cart work Item I get the  Page not found or not available error in the pop up screen. I have done the standard configuration in UWL Administration under System Configuration