Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to run a job daily in Oracle and Generate excel file

How to run a job daily in Oracle and Generate excel file

Scheduled Pinned Locked Moved Database
oracletutorialcareer
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rocky23
    wrote on last edited by
    #1

    Hi, Can any one tell me how to run a job in oracle which take all the data from one table(for ex: name,address,lastlogintime,etc) and generate output in excel format and save in one common folder everyday. If you have a sample code, could you share it please, it would be helpfull in understanding the concept better.

    L J 2 Replies Last reply
    0
    • R Rocky23

      Hi, Can any one tell me how to run a job in oracle which take all the data from one table(for ex: name,address,lastlogintime,etc) and generate output in excel format and save in one common folder everyday. If you have a sample code, could you share it please, it would be helpfull in understanding the concept better.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What part of the concept is troubling you? Write a console-app that executes a query on your Oracle-database. There's quite some examples on the internet that show you how to achieve that part. Next, iterate through the results, and write them out to a file. Excel will accept almost everything, from CSV to XML. We got some nice articles on CP that explain how to write to Excel in various ways. Not much to concept there. If you have the first part of the assignment, we'll talk about writing those results to Excel.

      Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      • R Rocky23

        Hi, Can any one tell me how to run a job in oracle which take all the data from one table(for ex: name,address,lastlogintime,etc) and generate output in excel format and save in one common folder everyday. If you have a sample code, could you share it please, it would be helpfull in understanding the concept better.

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        Basic Steps 1. Create/find scheduler 2. Create SQL that gets the data 3. Create code the outputs the data 4. Put 1-3 together. Steps 1-3 are independent. They do NOT have anything to do with each other. Step 3 is the only one specific to Excel.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups