How does htmldb_util.savekey_num differentiate between users

Can you tell me how htmldb_util.savekey_num differentiates values stored by different users?
ie. if user A stores value 1 and then user B stores value 2 then user A retrieves the stored value how does htmldb know to return value 1.
will htmldb keep a seperate instance of the global value for each user? (if so does this take up a lot of memory?)
how long is the value stored for retrieval?

So we are both right! Everybody wins!
I agree that you can initially treat the database as getting a new connection every time but eventually as a developer it is important to understand the pooled connection mechanisms when you start to extend the HTMLDB applications beyond the wizards, not so important if you are a beginner. If you assume you are getting a fresh connection every time you can wind up in trouble, for example if you use FGAC and don't set the context on every single page refresh. (It will work some of the time depending on who used the connection last).
Steve

Similar Messages

  • How does oracle text differentiate between various document formats?

    how does oracle text differentiate between text documents of various formats. does it read binary headers or a file extension is necessary?
    please comment..

    Oracle uses the inso_filter for document filtering as desribed in the documentation:
    http://download-west.oracle.com/docs/cd/B10501_01/text.920/a96518/afilsupt.htm#625110
    I did a little test (included below) where I copied a .pdf file to a file with a .test extension and it was still able to index it and search it, so apparently it does not need the file extensions and must read the header.
    scott@10gXE> BEGIN
      2   CTX_DDL.CREATE_PREFERENCE ('test_datastore', 'FILE_DATASTORE');
      3   CTX_DDL.SET_ATTRIBUTE ('test_datastore', 'PATH', 'c:\oracle');
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    scott@10gXE> CREATE TABLE test_tab
      2    (id        NUMBER,
      3       docs        VARCHAR2 (2000),
      4       CONSTRAINT test_tab_id_pk PRIMARY KEY (id))
      5  /
    Table created.
    scott@10gXE> INSERT INTO test_tab VALUES (1, 'master~1.pdf')
      2  /
    1 row created.
    scott@10gXE> CREATE INDEX test_tab_idx ON test_tab (docs)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('DATASTORE test_datastore
      5        FILTER    CTXSYS.INSO_FILTER')
      6  /
    Index created.
    scott@10gXE> SELECT id FROM test_tab
      2  WHERE CONTAINS (docs, 'meat') > 0
      3  /
            ID                                                                     
             1                                                                     
    scott@10gXE>
    scott@10gXE> DROP INDEX test_tab_idx
      2  /
    Index dropped.
    scott@10gXE> HOST COPY c:\oracle\master~1.pdf c:\oracle\master.test
    scott@10gXE> INSERT INTO test_tab VALUES (2, 'master.test')
      2  /
    1 row created.
    scott@10gXE> CREATE INDEX test_tab_idx ON test_tab (docs)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('DATASTORE test_datastore
      5        FILTER    CTXSYS.INSO_FILTER')
      6  /
    Index created.
    scott@10gXE> SELECT id FROM test_tab
      2  WHERE CONTAINS (docs, 'meat') > 0
      3  /
            ID                                                                     
             1                                                                     
             2                                                                     
    scott@10gXE>

  • My Mac is doing strange things: delaying between users, mouse flickering and bouncing, gets stuck with rainbow wheel flickering. I ran the appel hardware test and it detected an error: 4MOT/4/40000003:HDD-1233 Does anybody know what that means? HELP!

    My imac is doing strange things:
    -delaying between users: when closing session it goes to blue, then takes a while to appear users signin box, and then wont recognize mouse command to enter until a couple of minutes later... then everything seems alright until....
    -it gets stuck between things, the rainbow wheel appears and its just delays there forever....
    -and every now and then the mouse starts flickering and bouncing wildly onscreen.
    I ran the appel hardware test and it detected an error:
    4MOT/4/40000003:HDD-1233
    Does anybody know what that means? HELP!

    WZZZ answered about where to get iStat. And do check the SMART status. If it is an overheating problem due to a fan or logic board problem, your hard drive is possibly cooking itself to death. If so it isn't a faulty hard drive even though the hard drive might fail. So assuming it's a temperature problem, even if you are able to repair things on the disk with software, that is working on symptoms, not causes. I could be wrong however.
    RE: AppleCare: Your iMac came with one year of AppleCare (Apple's warranty program), but within the first year you can buy 2 more years. You have to extend by the one year anniversary of purchase of the computer. Your 10,1 is too old to still be in the first year, and since you asked what it was, I'm sure you don't have it. Bottom line meaning is that whatever this problem turns out to be, you'll have to pay for it. Unless there is something like this. It is for 2011 iMacs with certain Seagate drives. You can put in your serial number for fun, but it looks like yours is too old. Lastly, some people have had Apple help them anyway if it is just out of warranty, but many have not. Your machine is one of these. Type in 10,1 in the search box. Is there an Apple Store near you? Just b/c it's out of warranty doesn't mean you shouldn't have it looked at by Apple. But no one here can say at all what Apple will or will not do.
    Hope you get it taken care of!

  • How do i share files between users

    I would like to know how to share documents (files) between users on my iMac.   Any suggestions would be welcome.

    Choose Go to Folder from the Finder’s Go menu, provide /Users/Shared/ as the path, and drag them there.
    (117100)

  • How do I share files between users on the same Macbook pro?

    I have created different users on my new Macbookpro, but I can't seem to share files between two users. Help how do I share files between users on one laptop? eg. a pdf file that I want to grab from my user x and use it on user y, thanks.  By the way I have already tries going into system preferences, sharing folder, then turning on file sharing and that didnt work. thanks

    From the Help Menu using the search criteria Drop Box

  • How do I share programs between users on my MacBook Pro.

    How do I share programs between users on my MacBook Pro. I downloaded mine craft under my user name and I just made my son a new user on the computer but I can't figure out how to put mine craft on his desktop

    Try going to system preferences, then go to users and groups- find the option to allow sharing among users
    I hope this solved your problem(: btw- I love minecraft!!!

  • How does home sharing work between your computers?

    How does home sharing work between computers?

    With any luck, the following document may be of some assistance:
    Understanding Home Sharing

  • How does Essbase deals with multi-users

    How does Essbase deals with multi-users connecting for reading and writing in the same time? How the global coherence of the database is controlled when users are updating dimension and data all together?

    For reading, Essbase handles multiple requests concurrently. For metadata (outline) only one user at a time can make and save changes.For data, Essbase uses a block level locking mechanism, which implies that an update to a block can only be done by a single update request, but other blocks in the database are still updateable by other users.Hope that helps.Regards,Jade---------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • How does one pass data between war files

    Hello All,
    I need to be able to pass values between 2 war files.
    example:
    from a JSP file in the 1st war file i get the login information and need to pass
    the userid and password to another JSP in the 2rd war file.
    Question: How does one go about doing this.
    I'm using webLogic server 6.1 on NT.
    Thanks - Bala

    The problem is that web applications do not share the same session by
    default. If you set the cookie name to be the same for both web
    applications, you should be able to pass the data in the HttpSession...
    Bala Ganesh wrote:
    Hello All,
    I need to be able to pass values between 2 war files.
    example:
    from a JSP file in the 1st war file i get the login information and need to pass
    the userid and password to another JSP in the 2rd war file.
    Question: How does one go about doing this.
    I'm using webLogic server 6.1 on NT.
    Thanks - Bala

  • I have windows, one computer but multi users. home sharing is on. how can i share music between users on one computer?

    I have windows.  One computer but multi users.  Home sharing is on. 2 apple accounts-1 per user. 4 devices-2 iphones and 2 ipods per user.  How can we share music  on one computer between 2 users?

    Hi Justinece, I've solved the problem in this way:
    In my wife user profile I've set in itunes settings/advanced the path to my music library: /Users/"MY NAME"/Music/iTunes/Itunes media.
    Than, from my wife profile using my administrator user and password I've set the "read/write" privileges on the above mentioned folder.
    Finally I've added the folder in my wife's library taking care to not duplicate it ( leave blank the flag in itunes setting/advanced).
    I really don't understand what's the use of home sharing...

  • How do I share music between user accounts on the same computer?

    My wife and I have separate user accounts on the same MacBook Pro so that we can both sync our phones to this computer. My account is the primary user account, and my iTunes library is stored in this account. My wife would like to put music on her iPhone so she can run, but I can't seem to access the music library thru her account. I know the files are all on the hard drive regardless, so I just need to know how I can make iTunes on my wife's account access the library that's there. I've tried the steps I could find on Apple's website, but I can't seem to make it work. I'm running the latest versions of everything - even tho the post says I'm running 10.9.1, I'm actually running 10.9.4

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    If you want to give full read/write access to more than one user, see the support article linked below.
    iTunes: How to share music between different accounts on a single computer
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • How do I share files between users on the same machine?

    I tried using /Users/shared to share files between myself (Admin user) and another user on the machine (Standard user). Whenever I put a file or a folder into said directory permissions are 755 for directories and 644 for files, my umask is 0022. The files and directories belong to my user and the group staff. This means I can read and write and others can read. If I do the same using the other users account. Permissions are 700 and 600 respectively. (Owner is the other user and group is staff.) Strangely the other users umask is 0022, too.
    The result is, that all directories and files I create with my account (Admin user) are readable to every other user on the machine, whereas all directories and files the other user (Standard user) creates are not readable for anyone else. I can easily rectify this using the Terminal and chmod and/or chown, but it is a pain having to do this, since I also need to forcefully restart the Finder App for it to notice the changed permissions.
    Ideally I'd like all directories in /Users/Shared to have permissions 777 and all files 666 no matter which user created, copied or moved them to said location. I think this could possibly be done using applescript and shellscripting and the folder action hook. So far my attempts to find such a script on the net or/and write it myself have failed. I'd be grateful for any hints how I:
    a) write and setup such a script
    b) accomplish what I try to do (share files and folders on the same machine) in another possibly more Mac way
    Kind regards
    David

    The following AppleScript will recursively descend the directory tree and change the items to your modes:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on adding folder items to this_folder after receiving these_items
    repeat with some_item in these_items
    ProcessStuff from some_item
    end repeat
    end adding folder items to
    to ProcessStuff from SomeItem
    processes items contained in SomeItem, recursively descending the directory tree
    parameters - SomeItem [mixed]: an item containing the items to process
    returns nothing
    set SomeItem to SomeItem as text
    set FileInfo to (info for SomeItem as alias)
    if (folder of FileInfo) and not (package folder of FileInfo) then -- a folder (not a package)
    do shell script "chmod 666 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    try -- to get items in the folder
    tell application "Finder" to set SubFolder to (items of folder SomeItem)
    on error
    return {}
    end try
    repeat with SubItem in SubFolder -- process the sub items
    ProcessStuff from SubItem
    end repeat
    else -- a file
    do shell script "chmod 777 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    end if
    return
    end ProcessStuff
    </pre>
    You shouldn't need to change the ownership, so I commented out the chown shell script since this would need to be run as a super user. You can run a shell script with administrator privileges, but in order to be used by a standard user you will need to provide the appropriate user name and password in the script, which might not be a good idea - note that the folder action script will need to be attached in all accounts that you want to change the permissions, which means that it would need to be accessible to those accounts.

  • In Garageband, how does one add silence between multiple music sections on 1 single track?

    Currently I have a bunch tracks that need to be exported in order for the mixing engineer to mix in his Protools program.
    Problem: I did a lot of cutting and pasting with in the tracks. So there are spaces in a track that need silence added, so that when I export them into protools, all the tracks start at 0 (Time) and end at 3 minutes and 54 seconds.
    What is the most efficient way to add this silence and ensure that every track is 3 minutes and 54 seconds long?

    The duplication is unnecessary. Exporting creates a duplicate of the file. So now you'll have a duplicate of a duplicate. Exporting is not "working on" a file.
    No it's not merging, it's exporting from one to the Finder and into another. No matter what lose something. If you export the Original you leave behind all the work you've done in iPhoto. If you export anything else, you lose the non-destructive editing and the ability to revert to the original. With merging you preserve that work. Yes, you can trash the old Library when you have completed the manoevre but no it's not the same thing as merging.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue. But in brief:
    Current gets you the iPhoto Preview, used for sharing via media browsers. It's a jpg, medium quality missing metadata. Original gets the file you imported, unchanged and then you can export different version of the current version at different qualities. If you choose to export anything except the Original you do not get a Raw. There's no such thing as an "edited Raw", and you lose the connection between the original and the exported version. That means you've taken a non-destructive workflow and turned it into a destructive one.
    The Tiff will certainly be higher qulaity and less likely to suffer generational loss in future editing but the file sizes are vast, often more than 10 times the size of the jpeg.
    Put it this way, it would be cheaper to buy Library Manager than the disk you'll need to contain all the Tiffs. Unless you plan on a lot of editing, I'd go for a high quality jpeg as a reasonable compromise.
    To be clear:
    So, I guess my new question is, how can I edit the Raw image and keep it in a RAW format that IPhoto recognizes so that I can reprocess without any loss at a future time, or is it that once you edit a RAW image, then it is no longer a RAW image?
    Once you edit a Raw it can no longer be a Raw. End of.

  • How does apple tv2 switch between hdmi and optical

    I have the ability to connect my Apple TV2 to my avr using both HDMI and optical......is there any benfit using the optical for lossless music as opposed to HDMI and if so how can I get apple tv2 to differentiate....or does it use HDMI as default if connected?

    AFAIK, sound is sent simultaneously via HDMI and optical. mute the sound on your TV as necessary.

  • How can I share music between users on one computer without duplicating it all?

    I have myself and my partner set up as separate users on my laptop. I have shared the music on iTunes so we can both access it, but this has meant that all my music is on the laptop twice and is consequently taking up all the memory. Please can someone tell me how to do this without duplicating everything?

    Hi Justinece, I've solved the problem in this way:
    In my wife user profile I've set in itunes settings/advanced the path to my music library: /Users/"MY NAME"/Music/iTunes/Itunes media.
    Than, from my wife profile using my administrator user and password I've set the "read/write" privileges on the above mentioned folder.
    Finally I've added the folder in my wife's library taking care to not duplicate it ( leave blank the flag in itunes setting/advanced).
    I really don't understand what's the use of home sharing...

Maybe you are looking for