Is there a way to create a temp table each time someone hits a procedure?

I am creating a procedure in Oracle 10g to take data from Oracle to be put in a cognos report. The problem with creating a perminent table is that several people will be running this report at the same time, which means the procedure will be run each time someone runs this report. The perminent table will either drop the old data or the data will get mixed up which means the different peoples reports will not be correct. I tried putting a lock on the tables that would release the lock once one person was done running their report but that didn't work. I suggested we put the data directly into the cursor but what happens when more than one person runs this procedure at the same time?
Any help on figuring out how to resolve this would be greatly appreciated.

Hi,
If there is one table 100 people inserting in the same table, i dont see a problem.
Few things you will have to take care of.
When you are retireving the data from teh table to show on the report,
how will you identify it is for which user, obviously you store the user name too.
Now this table will grow in size, so make sure when the report is exited you delete rows from teh table only pertainign to the user.
Over a period of time you will face more problmes of slow response due to continous deletes because of something called as HWM.
So make sure you also gatehr statistics for the table at regular intervals.
So,
1) Store user while isnerting, retrieve data only for that user in teh report
2) delete data on report exit only for that user
3) gather statistics for table at regual intervals.
4) Ofcourse Build indexed for "good" response time, but Benchmark  against you data whatever you are doing.Cheers!!!
Bhushan

Similar Messages

  • Is there a way to create separate PDFs for each layer in Indesign?

    I have a multi-layered InDesign file, and I would like to generate a PDF for each of the layers. I was able to create a LAYERED PDF file (one PDF page with layers), which is great, but I also need a multi-page PDF...one PDF page per layer.
    Is there a way to do this? Do I need a script? Or is there a way to extract the separate layers from the layered PDF?
    Any help would be much appreciated. Thank you.

    Check this script:
    http://indesignsecrets.com/page-exporter-utility-peu-5-script-updated-for-cs3.php
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com

  • Is there a way to create dependency on the real-time jobs

    Hi,
    We have around 80 real-time services running and loading the changed data into the target.
    The process being used is
    IBM Informix > IBM CDC > JMS (xml messages) > DS real-time services > Oracle EDW.
    While using the above process,  when ever there is change in the fact table and the dimension table, both the real-time services are loading the data at the same time into the target. This is causing issues in looking up data with the timing issue.
    Is there a way where we can create a dependency and resolve the timing issue and make sure the lookup table is loaded and then the master table is loaded?
    Please let me know.
    Thanks,
    C

    Hello
    With the design you curently have, you will have potential sequencing issues.  There is no magic in Data Services to solve this.
    You might want to consider building more complex real-time jobs that accept more complex data structures and have logic to process the data in dependency order.
    Michael

  • Is there a way to create a template table, somewhat akin to an OO class?

    Hi everyone,
    Here is my novice question of the day.
    Say I would like to create a table which will describe the attributes of a set of tables. Each table in the set will have exactly the same field names, datatypes, etc..., but each table will represent a completely distinct data set. Is there a way to designate a table as a 'template' and then create tables which are instances of the table?
    I know I could do something inelegant like TableA_Version1, TableA_Version2. But that just seems very clunky for the 21st century. I also do not wish to inter-mingle the data from TableA_Version1 and TableA_Version2 by putting a field in TableA called version.
    Say, for example, my database contains information on different financial models. TableA would be the template or parent describing the characteristics which all of the models have. But each model would need to have its own 'version' of TableA.
    Time may also logically separate the tables into different 'snapshots'. Again, TableA_DateStamp1, TableA_DateStamp2, seems unwieldy. What would be your suggestions here?
    Thank you again for helping me with my beginner questions! I very much appreciate your time!
    Holly (I was set up with the wrong name... Oracle is fixing that...I hope!)

    The object stuff was pretty poor in Oracle8/8i. It's gotten a lot better in 9i but it still isn't as rich as (say) Java or Python.
    OO vs relational is the type of topic that starts holy wars. How one feels about it is often a matter of where one started out from. What I will say is this: relational data modelling has a firm logical basis in mathematics, particularly set theory. Everything in an RDBMS is mathematically provable. OO has no similar mathematical underpinning.
    I think OO has many advantages as a tool for building front-end applications but I wouldn't really want to trust my data to it.
    Where does that leave Oracle's object implementation? Well, PL/SQL objects can be quite useful for building complex user-defined datatypes. It is at least a partial way of implementing the DOMAIN functionality that RDBMS ought to have and Oracle lacks. The problem is that it is difficult to normalise an object-based data structure, so they tend to have lots of duplicate data, with all the maintenance issues that follow.
    Let's take a concrete example from the Oracle documents:
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/13_elems32.htm#35076
    <QUOTE>
    The following example shows that you can nest object types:
    CREATE TYPE Address AS OBJECT (
       street_address VARCHAR2(35),
       city           VARCHAR2(15),
       state          CHAR(2),
       zip_code       INTEGER
    CREATE TYPE Person AS OBJECT (
       first_name   VARCHAR2(15),
       last_name    VARCHAR2(15),
       birthday     DATE,
       home_address Address,  -- nested object type
       phone_number VARCHAR2(15),
       ss_number    INTEGER,
    );</QUOTE>
    Now what happens if you have two instances of PERSON living at the same home_address? You have two instances of ADDRESS. If you get the zip code wrong you have to change it twice. If they both move house (they're married) then you have to give them both a new ADDRESS. Furthermore, because you have two instances of ADDRESS you have no way of telling that these two people live at the same address, except by scanning all the instances of ADDRESS in all the instances of PERSON.
    The relational implementation is a lot simpler and cleaner. Two records in the PERSONS table each with a foreign key to a single record in the ADDRESSES table. It doesn't always happen, of course, but in this instance the relational implementation maps much more closely to the real world than the O-O implementation (two people, one house) . If you get the zip code wrong you only have to alter the ADDRESSES record, you don't touch the PERSONS table. If they move you create a new ADDRESES record and change the foreign key in PERSONS. Finding multiple occupancies is as easy as
    SELECT add_id, count(person_id)
    FROM   persons
    GROUP BY add_id
    HAVING count(person_id) > 1What could be simpler?
    But then I would say that, I started out from the relational world. People from the O-O world look at things differently.
    Cheers, APC

  • Is there a way to create an email button to multiple addresses within a PDF?

    I have to regularly update a list of committee members and their email addresses which is then sent to all of the members. 
    Does anyone know if there a way of creating a button for each of the committees in the list which, when clicked, creates an email to all the  members contained within that committee?  I will need to add up to 14 email addresses to the one button. I need to know this because the various members in the committees are  fed up of copying and pasting all the email addresses into their email messages.
    I am now using Acrobat XI but I still can't figure out if this is even possible. If not a button, is there some other way of being able to launch an email to multiple addresses within a PDF?
    Thanks in advance for any help.

    Not really. But you can combine the data from multiple forms into a single (new) spreadsheet via Tools - Forms - More Form Options - Merge Data Files into Spreadsheet...

  • Is there a way to create "temporary" tables in SAP database?

    Hello,
    Is there a way to create temporary tables in ABAP?
    Here is our scenario:
    1. Invoke a custom RFC that creates a temporary table and returns the name of the table.
    2. Invoke another custom RFC and pass this table name as parameter. This RFC internally does some INNER JOIN with the temporary table.
    3. Invoke the third RFC to delete the temporary table.
    Note that the name of the table cannot be static. We have many users using our application simultaneously and connecting to the SAP server.
    I would appreciate it if you could point me in the right direction.
    Thank you in advance for your help.
    Peter

    I just ran into a similar issue.  While only calling the select statement 2 times, each time had so many entries in the 'for all entries' list, that the compiler converted this into about 700 calls to the select.  Now since the select joined three real tables on the database, the trace shows this one select as being the slowest item in this application.
    I think that happened because 'for all entries' gets converted to an 'IN' clause, and then the total number of characters in any SQL statement has an upper limit.   So the compiler must make the select statement over and over until it covers all entries in the 'for all entries' list.  Is that correct?
    Since every database I ever saw has the concept of db temporary tables, I have used db temp tables many times for this sort of thing.
    The ABAP compiler could determine that more than one IN statement will be need, then use an alternate: write all the FOR ALL ENTRIES to a db temp table, then join on the db temp table, then drop db temp table.  Since the compiler does this sort of thing, no application code needs change to get the speed boost.

  • Is there a way to create a year at a glance with detail and print?

    Is there a way to create a year at a glance with detail and print?

    To do what Dave indicated you need to do, it depends on what version of Acrobat you have:
    Acrobat 8: Advanced > Enable Usage Rights in Adobe Reader
    Acrobat 9: Advanced > Extend Features in Adobe Reader
    Acrobat 10: File > Save As > Reader Extended PDF > Enable Additional Features
    Acrobat 11: File > Save as Other > Reader Extended PDF > Enable More Tools (includes form fill-in & save)
    I wonder what it will be next time?

  • Is there a way to create a PDF form that ANYONE can fill out and SAVE with their content?

    Is there a way to create a PDF form that ANYONE can fill out and SAVE with their content? By anyone, I mean someone who can download and use the free Adobe Reader, on either a Mac or PC. I have Acrobat Pro, and would like to be able to create forms that can not only be filled out and printed, but saved and emailed, which is not an option with the forms I have created to date. They can be filled out, but not saved, with Adobe Reader.
    TIA,
    Nancy

    To do what Dave indicated you need to do, it depends on what version of Acrobat you have:
    Acrobat 8: Advanced > Enable Usage Rights in Adobe Reader
    Acrobat 9: Advanced > Extend Features in Adobe Reader
    Acrobat 10: File > Save As > Reader Extended PDF > Enable Additional Features
    Acrobat 11: File > Save as Other > Reader Extended PDF > Enable More Tools (includes form fill-in & save)
    I wonder what it will be next time?

  • Is there a way to create a local package repository

    Is there a way to create a local package repository without technically being a mirror.  For example, setting up multiple AL box's on my network and having them grab all the latest packages from one AL box?
    Thanks,
    Craig

    What you most likely want is an ABS tree of your own, containing only the PKGBUILDs of those packages which you want to be included in your repository.
    You should already have heard of the gensync program. In short, the parameters are the root of PKGBUILDs, sorted in subdirectories (ie. like the ABS tree), the intented name and location of the repository database file, and the directory containing the binary packages.
    Let's assume you downloaded the current ABS tree to your hard drive, as well as all matching (same version as in the PKGBUILDs!) packages from a mirror, but you don't want the reiserfsprogs package in your repository. To achieve that, you must remove the /var/abs/base/reiserfsprogs directory, and may optionally remove the binary package, too. Since gensync analyzes the ABS tree you supplied as a parameter, removing the subdirectory of a specific package will cause this very package to not be included in the generated database. Assuming your packages lie in /home/arch/i686/current, your gensync call would look like this:
    gensync /var/abs /home/arch/i686/current/current.db.tar.gz /home/arch/i686/current
    If there are any discrepancies like
      - PKGBUILD, but no matching binary package found
      - PKGBUILD and binary package versions do not match
      - permission problems (writing the db file must be possible)
    gensync will gladly complain.
    Otherwise you should find the db file in the place you specified. Keep in mind that the name of the db.tar.gz file must be equal to the repository tag in the pacman.conf to use the repo.
    To make sure the db contains the right packages; use
    tar -tzf current.db.tar.gz | less
    to list the contents. Every package has it's own subdirectory including the metadata, which is rather obvious considering the file's generated from such a structure in the first place.
    The binary packages along with a correctly generated db file are all you need. Make the repository directory containing these files available through FTP if local availability doesn't cut it for you, edit your pacman.conf if needed, and use it!
    Adding packages works similar; All you need to have is the PKGBUILD in an ABS-like tree (it doesn't have to be the official tree; gensync doesn't care where the files come from. Just stick to one subdirectory per PKGBUILD, and you'll be fine), and the matching packages somewhere else, run gensync with the appropriate directories, and cackle with glee.
    HTH.

  • Is there a way to create a collection based on the "previous import"?

    is there a way to create a collection based on the "previous import"? that would make it easy to mobile sync the last import to my ipad, and do further picking/rejecting while away from my laptop.

    well, yes, of course i could do it that way. i guess i wasn't specific enough. is there a way to create a smart collection, with the photos in the "previous import" as members of the smart collection.  earlier i mentioned about using this smart collection to mobile sync with my ipad, to do further flagging.
    so my intention, use a smart collection to mobile sync with my ipad, and the smart collection to include the photos from my previous import.
    i guess another way to ask the question, is there a way to create a smart collection, by using some rule or condition in the smart collection, to automatically include previous import photos.
    the documentation says that "previous import" is a collection, even though it shows up in the catalogue side bar section. but i see no way to choose that collection when making a smart collection.
    jd

  • Is there a way to create a playlist from the now playing screen on ios7?

    Is there a way to create a playlist from the now playing screen on ios7? I want to be able to hear a song in my collection and immediately add it to an existing playlist or create a new playlist.
    Thank you in advance

    Hi Cornellius,
    From the now playing screen there's a Create button at the bottom that allows you to create a
    Genius Playlist
    New Station form Artist
    New Station from Song
    IPhone Help, Browse and play
    http://help.apple.com/iphone/7/#/iph3cf21a82
    The Now Playing screen provides playback controls and shows you what’s playing.
    For information on Genius Playlists, see
    Archived - Genius for iPod and iPhone
    http://support.apple.com/kb/HT2978
    I don't see an option to add it to an existing playlist.
    Best Regards,
    Nubz

  • Is there a way to create user logins or some other way to ...

    Is there a way to create user logins or some other grouping for a set of applications to use (memory) resources optimally -- for example only mail and Safari and Word in one grouping and another for Safari and an audio recording application, etc.?

    It is possible to use Parenal Controls to limit which applications can be used be a particular user account.
    But it's not really necessary as far as managing memory.
    Matt

  • Is there a way to create three different physical calendars in ical so that I can get a fiscal view of the calendars?

    Is there a way to create three physically different calendars in iCal so that I can view the calendar and events from a fical point of view?

    iCal just shows the calendars you have created in your account(s).  So if you are using iCloud just log into your iCloud account in a web browser and make as many new calendars as you wish to have.  Then enable those in iCal.
    If you use Google accounts or something else for the calendars, then create them as needed, and enable them in iCal.
    I have several separate calendars all displayed in iCal - a couple linked through my Gmail accounts, and one through my iCloud account.  Each uses a different default item color so they are distinct in iCal.

  • Is there a way to create scripts to use tmconfig...

    Is there a way to create a script to execute tmconfig and change CLOPTS parameters
    for a particular server?
    Here is what I would like to accomplish. Want to set "-r" option to a limited
    number of servers, on an as needed basis. I do not want to bring down the environment
    and update the ubbconfig file. The support people are not familiar with tmconfig.
    So, I would like to create a script to turn the "-r" option on when needed and
    restart only those servers and then turn it off once the debufgging is done.
    Is there any command other than tmconfig, which I could use to accomplish this?
    James

    If you've got perl on your machine, you can download the tuxedo perl module and
    write perl scripts to call tuxedo services. There's also a tuxedo::admin module
    at cpan now.
    "james mathew" <[email protected]> wrote:
    >
    I am sorry Roopesh. ud worked with the command 'ud32 with -Ctpsysadm
    -Utpsysadm
    first time when I tried, I used our tuxedo admin id instead of 'tpsysadm'.
    When
    tried with 'tpsysadm' it worked.
    Thanks a lot.
    James
    "james mathew" <[email protected]> wrote:
    I tried the options, but didn't help. By the way, I cannot find anydescription
    on "-C" option in the reference guide.
    I tried to use a client program, similar to ud, which is developed locally
    to
    test the services.
    When I send request to '.TMIB' service, the client never gets any reply
    back.
    The input userd is
    service_name .TMIB
    TA_OPERATION GET
    TA_CLASS T_SERVER
    In the ULOG, I see the following error messages.
    120543.DEV_DB_SRV2!BBL.543.606.0: LIBTMIB_CAT:133: ERROR: Fielded buffer
    access
    error 2
    120543.DEV_DB_SRV2!BBL.543.606.0: LIBTUX_CAT:6031: ERROR: Unable topre-process
    buffer before tranmission. Error code(12/3474)
    120543.DEV_DB_SRV2!BBL.543.606.0: LIBTUX_CAT:1286: ERROR: tpreturn could
    not send
    reply TPESYSTEM - internal system error
    I have FIELDTBLS include 'tpadm' and FLDTBLDIR include '%TUXDIR%\udataobj'
    What is causing the above errors.
    "roopesh" <[email protected]> wrote:
    run ud32 with -Ctpsysadm -Utpsysadm .
    "james mathew" <[email protected]> wrote:
    Thanks Sccott. Using ud32 is what I should do.
    Now, I have a problem in using ud32 because the environment uses user
    authentication.
    I am not able to use ud32 due to logon failures. I am getting LIBTUX_CAT
    errors
    6311, 6247 and 6234.
    I do not know what value am I supposed to provide for "application
    specific
    authentication
    data". I think the environment variable TPIDATA stands for the samething.
    Any help is appreciated.
    Regards
    james
    Scott Orshan <[email protected]> wrote:
    For scripting, you should use ud32 to call the MIB.
    james mathew wrote:
    Is there a way to create a script to execute tmconfig and change
    CLOPTS
    parameters
    for a particular server?
    Here is what I would like to accomplish. Want to set "-r" option
    to
    a limited
    number of servers, on an as needed basis. I do not want to bring
    down
    the environment
    and update the ubbconfig file. The support people are not familiarwith tmconfig.
    So, I would like to create a script to turn the "-r" option on
    when
    needed and
    restart only those servers and then turn it off once the debufggingis done.
    Is there any command other than tmconfig, which I could use to
    accomplish
    this?
    James

  • Is there a way to create a button that links to a website?

    Is there a way to create a button that links to a website?
    I was reading up that it's possible to this with menus, and tracks but can you do it with a button and how?
    I am hoping to create a button that people viewing my discs on a computer can click on the link and their web browser will pop up and take them to a website.
    Any help is appreciated.
    Thanks.
    -Fraky

    dvd@ccess questions are being asked once a week on this forum, so I'll repeat why it's useless:
    - Mac users have to enable the feature in the preferences of DVD Player in order to for the links to work.
    - PC users have to install a small application on their PC, and they have to reboot the PC in order for the links to work.
    - On top of this, it's still unreliable, and may not work on some computers.
    It's a dog: Don't use it.

Maybe you are looking for

  • Oracle support for multiple languages

    I have a VB and oracle application. There is a requirement for having spanish language support. The current character set is US7ASCII and National Character set is AL16UTF16. After some analysis i thought changing these character sets to UTF8 will be

  • How to maintain the state of apex_application items

    Hello all, I am having a tabular form using apex_application items, In the first column I am having a select list, user is going to select one value from select list and the other columns in that row are populated accordingly. Problem is here when us

  • Web Dynpro render configuration for Adobe Interactive Forms

    Hi, Is there any possibility to check rendering configuration for Web Dynpro application? I built web dynpro application which shows simple Adobe Interactive Form. In Sap Adobe LiveCycle Designer all buttons of Interactive Form are working (JavaScrip

  • Error in bringing up the database instance

    Hi When I try to bring up the database using the addbctl.sh script in 11i following errors are shown : ORA-16014: log 4 sequence# 14351 not archived, no available destinations ORA-00312: online log 4 thread 1: '/apps/prodapps/proddata/log04a.dbf' ORA

  • Import miniDV problems

    When I use FCP X to import Digital 8 tapes from my Sony it worked fine. I've now switched over to my miniDV tapes that were shot on a GL2. I'm using my HV20 to import them. As the import goes a black flash appears every 3-5 seconds and I can see the