Problem updating CLOBs across multiple schemas

I am having a problem trying to update CLOB data in a schema owned by a user other than the logged-in user.
Suppose I have user UA who owns table TA and user UB who owns table TB, and TA and TB contain CLOB columns. TA owns a package PA and TB owns package PB; these packages provide functions for updating the CLOB data via LOB locators.
I have a JDBC connection logged on as user UA, and I can successfully call package PA to update the CLOB data in TA from my Java app. However, I cannot use this connection to similarly call package PB to update the CLOB data in TB - the app successfully calls CallableStatement.executeUpdate() but then I try to get the output stream of the returned CLOB:
oracle.sql.CLOB oOraClob = (oracle.sql.CLOB)oCall.getClob(SQLPAR_CLOBCOL);
Writer oOut = oOraClob.getCharacterOutputStream();
and I get the following exception on the getCharacterOutputStream() call:
java.sql.SQLException: ORA-01031: insufficient privileges ORA-06512: at "SYS.DBMS_LOB", line 498 ORA-06512: at line 1
This is despite user UA having execute privilege on PB and update on table TB.
I only get this problem when I try to update the CLOB directly from JDBC - I have another function in package PA which copies CLOB data directly from TA to TB and that works without any problem. Given this, I tried writing a procedure in PA to act as a kind of proxy between PB's CLOB-update function and user UA, i.e. UA calls a proc in PA which in turn calls PB which returns a LOB locator to PA, which in turn returns the LOB locator to user UA, but this still gave the same error.
Does anyone know what might be causing the problem? Is there some user permission I'm missing?
I don't want to have to use a separate DB connection as user UB just to update the CLOB. The only other solution I can see at present is to pass the string data to PA as a LONG and have PA copy the data to the LOB locator returned by PB. How could I achieve this? Is there a built-in function which enables a LONG to be copied to a CLOB?
Any help would be very much appreciated. Thanks.
Al.
null

Ian - You can use a different schema for each application while keeping the applications in a common workspace. This would allow users to authenticate once and for the applications to share the same authenticated session. In doing this, however, a user has to be given links from one application to another, e.g., from a menu page, in order for the "session continuity" to remain unbroken (a requirement to prevent another login challenge). But since these may be unrelated applications that have no need to access one anothers' session state, it might be better to use Single Sign-On. With this method there is only one login required and a user can access each application which will maintain its own private session.
Scott

Similar Messages

  • Linking and updating colors across multiple illustrator files

    Is there a way to link and automatically update color swatches across multiple illustrator files (CS4)?
    I've saved swatches into an ASE file, and opened the ASE file into multiple illustrator files, but the secondary files don't seem to reference back to the ASE file, when a new version with changes to the swatches has been made.
    Thanks for any advice.

    @SP/RAA
    Jean posted perhaps the best solution for your problem.
    A template is an Illustrator document for startup. You can create a document...place all the colors you want to the Swatches panel....insert contents to symbol, brushes, graphic styles and so on. Then you can go File > Save as Template.
    Now...when you want to start a new document..you could File > New from Template. Then new document will have all the stuffs of the template, including other specifications like rulers viewed...guides...
    But even using template you cannot update a batch of documents...The template is only a document for start...and it does not keep linked to new documents based on it.
    Or you try via script (do not know how further it would help) or try the alternative given by Jean.
    Gustavo.

  • Preferred approach - Querying Across Multiple Schemas

    All,
    I am using two schemas within the same database as the source for my OBIEE repository/subject area. My question is whether anyone has a compelling argument or preference for setting up OBIEE to handle requests across the schemas as either:
    1. Set the connection pool property to 'Require Fully Qualified Table Names'
    2. Setup synonyms between the schemas for the tables that need to be exposed
    Just curious how others do it. I believe Synonyms may add on a small performance hit but I believe it would be negligible compared to qualifying the table with the schema name.
    Thanks,
    K

    There is no overhead in using synonyms to an object in another schema. In fact that's the best practice in my opinion. We have 3 DWHs in OBIEE each in its own schema. We also have a special OBIEE_RO account that has only select grants to all DWH objects and synonyms for all of them. We coded a script that generates all the grants and synonyms so we can re-run it when we add new objects. This assures we can use a single account for a OBIEE which is much more simpler to maintain. It also means we can share conformed dimensions between different DWHs.

  • Updating symbols across multiple illustrator files

    I would like to create a library of icon symbols that can be used in multiple AI files. I want to be able to just grab what I need from the library quickly and efficiently. I want to place this library on a GIT repo, and reference this library in my design mock ups.  However I want the ability to update the library with updated icons and have those updates automatically populate to all of my mock ups.  Or at the very least be able to open the mock ups (which can have 20+ icons in each file) and quickly refresh the icons with the new ones in the updated library.  I realize this question was asked back in 2012, but I am hoping this has been addressed in CC.  I also realize this can be done with placing independent illustrator files, but this is not a good work flow when working with 400+ icons. 
    Thanks!

    Maybe Libraries will solve that in the future. Time for a feature request:
    Adobe - Feature Request/Bug Report Form

  • Problem updating page with multiple forms

    Hello,
    Hoping that someone can point me in the right direction. I have a single page with 2 forms, on 2 different tables. Each form region has it's own set of update buttons, generated by the wizards. However, clicking on the Create button on my second form produces an "ORA-20507 invalid column value..." for a column that exists in my FIRST form/table - and I can't figure out why. I changed the second forms button names to Create2 and Save2 and made sure that the second forms ARP was using them, but still no luck getting rid of the error.
    Any thoughts would be most appreciated.
    Loyam

    Thank you for responding!
    I did make sure that the Page Process setup for each of the tables (of type Automatic Row Processing) have the correct button assignments in the Conditional Processing region - i.e., Form1 is using the Create button, and Form2 is using the Create2 button.
    I'm starting downn the road of coding my own Insert/Update/Delete handling for Form2 based on the following thread {thread:id=3927307}
    Sounds like Apex can only handle one ARP process per page?

  • Inserting records across multiple tables

    I'm still pretty new to working with databases, but have been
    fine using DW to use forms to add, edit and delete records from a
    flat table.
    I'm less sure about updating records across multiple tables,
    for example in a one to many rleationship with a look up table, eg
    If I have three tables
    Companies :
    CompanyID (INT, auto increment)
    Company
    Address
    etc
    Contacts :
    ContactID (INT, auto increment)
    FirstName
    LastName
    etc
    CompanyContacts :
    CompanyID (INT)
    ContactID (INT)
    It's straightforward enough to create pages to insert new
    records into the Companies or Contacts tables, but how do I go
    about populating the CompanyContacts table when I add a new record
    in the Contacts table, so that it becomes 'attached' to a
    particular 'Company'?
    If that makes sense.
    Iain

    I'm still pretty new to working with databases, but have been
    fine using DW to use forms to add, edit and delete records from a
    flat table.
    I'm less sure about updating records across multiple tables,
    for example in a one to many rleationship with a look up table, eg
    If I have three tables
    Companies :
    CompanyID (INT, auto increment)
    Company
    Address
    etc
    Contacts :
    ContactID (INT, auto increment)
    FirstName
    LastName
    etc
    CompanyContacts :
    CompanyID (INT)
    ContactID (INT)
    It's straightforward enough to create pages to insert new
    records into the Companies or Contacts tables, but how do I go
    about populating the CompanyContacts table when I add a new record
    in the Contacts table, so that it becomes 'attached' to a
    particular 'Company'?
    If that makes sense.
    Iain

  • SELECT from multiple schema's

    How do I select/insert/update/delete from multiple schema's.
    Tried:
    SELECT * FROM schema1.table1, schema2.table2
    WHERE schema1.table1.column1 = schema2.table2.column2;
    Errored......

    Hello
    you need to use an alias for each table
    tylerd@UAT51> select dual.dummy from dual, dual
      2  /
    select dual.dummy from dual, dual
    ERROR at line 1:
    ORA-00918: column ambiguously defined
    tylerd@UAT51> select dual_1.dummy,dual_2.dummy from dual dual_1, dual dual_2
      2  /
    D D
    X X
    1 row selected.

  • Updating a variable across multiple files in a book

    Hi guys,
    I have a book file with multiple files (prelim pages and chapters). In the header of each prelim page and chapter file I'm using a variable. How can I make a simple change to the variable and update it across all files that use it? I've tried looking through the menus and opening all files but I can't see any method of making a global change.
    Advice appreciated.
    Cheers
    Carl

    How about File > Import formats …
    1. make a new file (source) where you define just the variable you want to copy to other files (targets)
    2. import that variable from the source file into the target files
    When all the target files are in a .book, you can select them in the book and then use File > Import formats. Otherwise, the same command from inside each target – but you can always make a dummy .book referencing all the target files.
    Setting up a source file first means you can work with only the variables you want to, if you have some that change per chapter and others that stay the same throughout the book.
    N
    [ps] Watch out for the default behaviour of the Import from Document pulldown, which sets itself determinedly to "current file"

  • Newbie question about setting up iTunes to sync across multiple computers

    Hi,
    Right now I am using iTunes primarily for listening to streaming radio. However in about 2-3 weeks after I move, I am considering importing all my CDs into iTunes.
    So my question is this. What can I do before I start that will make my life easier for syncing my iTunes across multiple computers.
    I don't expect the computers to connect to each via internet but I do have a 4 GB flash disk and 230 GB firewire drive that could be used. And since one of the computers is MacBook Pro, I could use it in target mode I think.
    Thanks.

    Authorization only applies to computers. When you update a device any protected content on the device for which the library is not authorised will be removed. Otherwise no attempt is made to remove content that was added by a now deauthorised library.
    There is a separate scheme permitting up to 10 devices (computers, iPhones, iPad or iPod touches) to be registered for automatic downloads of your purchases with a different mechanism for deregistering devices.
    Once you have a file on your computer you can physically copy it to any other computer in the same way that you would copy any other file like a Word document, put it on a disk, email it if not too large, burn it to DVD, stick it on an external hard drive or move it over a network. You can use Get Info. To tell you where it is now and you can drop it into the library at the other end.
    The user tip shows how to backup the whole library and then update that backup efficiently. Such a backup to a portable drive also provides a possible tool for transporting any content to another computer.
    tt2

  • Can Windows Server Backup spread a single backup job across multiple disks if they are not set up as a virtual disk?

    This may be a dumb question, but I can't seem to find any definitive information after having done many, many searches.  Short question is - can Windows Server Backup spread a single backup job across multiple disks if they are not in a storage
    pool or some other RAID/JBOD structure?
    Background:
    I'm running Server 2012 Essentials with all Windows Updates installed.  I have been backing up approx 2.8TB of data (Bare Metal Recovery, C:, S: (shared folders), and system reserved) for the past year+ onto a storage pool made up of two-2TB external
    USB drives.  Backup is slow (takes approx 1.5 days to complete), but generally works.  Not surprisingly I was constantly getting capacity low messages so I decided to increase my backup storage pool by adding a 3TB drive and another spare 750GB drive
    for a total of 7.75TB.  Instead of having four separate external USB enclosures, I bot a 4-bay enclosure - Startech.com model #S3540BU33E to simplify this (or so I thought!).
    The first problem I had was adding the two new drives to the existing storage pool. I think that is because the Startech uses a JMicron USB controller that reports identical uniqueid's for all drives so only one shows up in the GUI interface for creating storage
    pools. After doing research on this, I set up a new storage pool and virtual disk using all four drives via Powershell and thought I was good. However, when the backup ran, it failed after filling the first drive, saying there was no remaining capacity. In
    reality there were three remaining empty drives and there storage pool reported almost 5TB of avail capacity. I assumed this was due to the identical uniqueid issue so I decided to try a different tactic.
    Instead of using a storage pool that combines all four disks into one virtual disk, I just added each of them to Windows Server Backup as individual drives thinking it would manage them collectively. I.e., when a drive filled up during a particular backup,
    it would just start using the next drive and so on. Apparently this was a foolish assumption because the backup failed again as soon as the first disk filled up.
    So now I don't know if this is still an issue with the identical uniqueid's or if Server Backup actually can't spread a single backup across multiple individual drives that aren't in a pool or other virtual disk implementation. Hence, my original question.
    My guess is that it does *not* spread them across individual disks, but I just wanted to get confirmation.
    Thanks

    Mandy,
    Thank you for following up on my question.
    Unfortunately the article you referenced doesn't address what I am trying to accomplish.
    The article focuses on saving the same backup job to multiple disks and rotating the disks between on and offsite for enhanced protection.  However, it still requires that an individual backup job fits on a single disk.
    What I am trying to determine is if a single backup job can span across more than one physical disk (during the backup process) without those physical disks being in some type of virtual disk implementation (e.g., storage pool, RAID, etc.).
    Thanks,
    Gerry

  • Syncing model sources across multiple WARs

    One of the problems we're hitting in our development is keeping model classes synced across a multi-WAR project. For example, the model class for, say, a User object was changed in WAR B, but that developer (an intern) did not publish those changes to WARs A and C. The end result was that a few of our web service calls started failing on the unchanged WARs, while others worked fine.
    I started looking into EJB3, intrigued by the @Remote and @Local setup, but those are related to the session beans themselves. I was hoping that object models could be referenced by interface across multiple WAR distributions as well, though I haven't dug up anything specific on this yet.
    Is there any advice on this forum for keeping model classes in sync across a multiple-WAR project (aside from tighter repository control and swift kicks to the butt)?

    Wraithe wrote:
    Quoting myself: +"The end result was that a few of our web service calls started failing on the unchanged WARs"+
    My original question pertaining to ensuring that the source code for the end user model classes remained consistent. You can't if the interface contains Java classes that are changed. You immediately have to deploy updated JAR files with the new code to all the clients that need it.
    The JAR idea is applicable, though not ideal, and I was hoping there was some other suggestion as to how to handle client-side objects.There is: XML messaging in the service interface instead of Java classes.
    %

  • Custom template available across multiple site collections

    I have created a custom site template which I need to be available across multiple site collections. Is there a global area where I can put the .wsp file so that I can use it within any site collection.
    I also have a custom document library which I need to be available from with the site made from the custom site template mentioned above - Is there a global area where I can put the .stp file so that I can use it within any site within any site collection.
    thanks

    This will really depend how the template has been packaged.  If it's a content type, than editing this and making sure that the "update content type" radio is selected will do the trick. Can you ask someone who's made one to show you how they generate
    the template. If it's within the New --> XXX Document, than you're in luck
    If they're just deployed as normal files within a library, you'll have a much harder time.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Single schema or multiple schemas

    Hello
    A few years ago I worked on a greenfield project where we were building a system to serve 20 or so different departments with 1200+ users. The approach the existing DBA had taken was to use a single schema for all objects and for all apps. The big advantage I found with this approach was for development, we could have one database and each developer could develop whatever they wanted in their own schema. Name resolution meant that they could override the main copy of whichever object they were working on just by having it in their schema. Unfortunately the project went nowhere and I left after 3 months so I never got to see what issues were raised with the system in production. So I'm wondering, has anyone else taken this approach and if so what would you say are the main things to be wary of? Especially things that aren't a problem when the objects are distributed between multiple schemas.
    Thank you in advance
    David

    user12065404 wrote:
    Hi Ed
    Thank you for your reply. I think I need to clarify what I meant a little.
    On a number of sites I've been to there have been multiple applications spread out over multiple schemas for the same business unit. To draw on the emp example it would be like having the EMP schema containing the emp table and the DEPT schema containing the dept table, with a single HR application (for a single buisness unit/department) selecting from both. If you scale this up to 000s of tables and 30 odd schemas, it's a bit of a nightmare from the perspective of code location and permissions because each department needs to look across schemas to get all of the data to do their job. Effectively tables and code had become segregated into separate schemas by business "function" and it means that the applicaitons are so intertwined with the different schemas that to have more than one business unit means you either need a completely separate database or you have to look at VPD.
    App         SCHEMA      Table
    HR          emp         emp
    dept        dept
    Invoicing   emp         emp
    invoicing   inv
    contracts   contract
    orders      ORDER
    Ordering    emp         emp
    contracts   contract
    orders      ORDER
    orders     orderitem
    ...The advantage I saw with a single schema for all the data for a single business unit is the one you have mentioned - i.e. you can very easily set up a new business unit that is totally separate from the other by having a new schema and point the same version of the same application at it. Or failing that, using VPD. And on top of that, security is simplified - no needing direct grants from one schema to the other and especially not requiring WITH GRANT OPTION in the case of a view that pulls data from various schemas and rights to select from the view have to be grated to a role.
    App         SCHEMA      Table
    HR          abc_ltd     emp
    abc_ltd     dept
    Invoicing   abc_ltd     emp
    abc_ltd     inv
    abc_ltd     contract
    abc_ltd     ORDER
    Ordering    abc_ltd     emp
    abc_ltd     contract
    abc_ltd     ORDER
    abc_ltd     orderitem
    ...The other big advantage I saw was from a development and testing perspective. You can have one testing database supporting lots of developers working on lots of different projects against the same core data set and code. The multiple schema setup I described above means that effectively you need to have one testing database per project - which becomes unmanageable when databases start growing to the TB range.
    David
    Edited by: user12065404 on 26-Mar-2010 08:30
    Saw a typo in my first exampleOK, now it is a lot more clear.
    What you have here is a problem of some data (employee) being enterprise data, and other data being application data.
    I take it your "invoiceing" app is used by the sales side of the business, and "ordering" is used by the purchasing side (my last assignment when I was an apps analyst was the purchasing/inventory control for an auto manufacturer).
    With what I know at this point, I'd have an HR schema, an INVOICING schema, and an ORDERING schema. (Well actually, I'd have SALES and PURCHASING, because INVOICEING and ORDERING are going to have to integrate with other stuff in those areas). Even though invoicing and ordering both have a CONTRACT table, I'd think the properties of a contract for one would be different than the other, so the table design itself would be different. How about tables SALES_CONTRACT and PURCHASING_CONTRACT. Same concept for ORDERS, and both sales and purchasing would need header and details .... SALES_ORDER_HEADER, SALES_ORDER_DETAIL, PURCH_ORDER_HEADER, PURCH_ORDER_DETAIL.
    These two apps need for employee data should be pulled directly from the HR emp table, with access limited to stored procedures that control what data is exposed. Or from materialized views. Never try to maintain the same data in two places at once. It will never maintain consistency.

  • Frequent Connection Drops Across Multiple Devices (Macs, PC's, iPhone)

    I have the Airport Extreme Base Station, running the latest firmware (v5.7) and across the entire house, across multiple devices (Macbook Pro, iPhone, Dell Laptop), the Airport's signal will drop from 5/5 bars down to 1/5 or to 0. Even while very close to the access point itself.
    The Macbook Pro is running the latest version of Leopard with all firmware updates applied. The Dell is running Windows XP SP3, all latest drivers installed. The iPhone (first gen) is running the latest firmware.
    What can I do to fix this problem?
    Everytime the signal drops from 5/5 to 1/5, sometmes 0, ... if I click on the airport status in the menubar, it says Scanning. Disable Airport, re-enable, and I'm good to go. This is very frustrating especially when using the iChat video chat.
    I could have purchased a far lesser expensive generic Linksys or Netgear router, but decided to go with Apple for their trusted name in electronic devices. I paid a pretty penny expecting a better product than the competition, yet it doesn't seem to perform as well as the generic routers out there.
    What can I do to fix this problem, or do I need an entirely new Airport altogether? If it's the latter... I learned my lesson and Linksys/Netgear here I come.

    I see the base station has a port for an external antenna. Is this a standard jack (like RP-SMA) that I could use any antenna with? Or does that port still pass through the (failing) Airport card inside?
    The external antenna would, effectively, bypass the unit's internal antenna. However, as you already surmised, it would still require the internal AirPort Extreme card as well.
    And price wise would it make sense to invest in a new antenna or just get a new WAP?
    I would go with a new WAP. Either way, I would go with a vendor that has a good return policy just in case this doesn't solve the problem.

  • How can I display selected tags across multiple e-mail addresses?

    I receive email on a specific topic but via several e-mail addresses. How can I view selected tags where the resulting e-mails span several (7) email addresses. They are all active on my Thunderbird, but as far as I know, I can only display the selected tag on one of them at a time.
    Any assistance greatly appreciated as this is a very big problem for me.
    thanks, Ron75

    This solution does not appear to work across multiple e-mail addresses.
    Perhaps I should have said "work across multiple e-mail address at the same time. I get e-mail on specific topics via several email addresses and wish to view all the tagged emails regardless of which email account in which they reside.
    I could not get this solution to select more than one email account at a time.

Maybe you are looking for