Question on changing the owner of spatial datatype

create table test4 (
COL1 NUMBER(38) NOT NULL,
COL14 SCOTT.SDO_GEOMETRY
) TABLESPACE USERS;
SQL> select table_owner, table_name FROM all_synonyms where synonym_name='SDO_GEOMETRY'
OMETRY';
TABLE_OWNER TABLE_NAME
SCOTT SDO_GEOMETRY
I want to change the owner of SDO_GEOMETRY to MDSYS. I know re-creating the table like "COL14 MDSYS.SDO_GEOMETRY" will get what i'm
looking for but is there a way to ALTER the table to achieve the same without re-creating it?
Thanks,
Rajesh

user11919950,
. . . .If you're just messing around on a test machine, then give this a spin:
-- "Identify obj# in table named obj$ for SDO_GEOMETRY owned by MDSYS
select
   obj#,
   t.OBJECT_NAME,
   u.USERNAME,
   o.OWNER#
from       sys.obj$ o,
   dba_users u,
   dba_objects t
where      u.USER_ID = o.OWNER# (+)
AND o.name = 'SDO_GEOMETRY'
AND o.owner# = 46
AND o.obj# = t.object_id;
      OBJ#   OBJECT_NAME  USERNAME   OWNER#
     45779  SDO_GEOMETRY  MDSYS      46
     48788  SDO_GEOMETRY  MDSYS      46
-- "identify owner#/user_id for SCOTT"
SELECT user_id FROM dba_users WHERE username = 'SCOTT'
   USER_ID
        54
-- "Change the username of one,both of those records from MDSYS to SCOTT"
-- "NOTE: untested SQL, but if it fails, just edit the table in Oracle Enterprise Manager"
UPDATE obj$ SET owner# = &ScottUserID WHERE obj# = &ObjNum;
COMMIT;
{code}
I've temporarily changed obj# values in this obj$ table to break associations between oracle objects that were throwing errors. I used Oracle Enterprise Manager's "view contents" form to view the obj$ table and to make those changes. See {message:id=4596120}
Cheers,
Noel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How do you change the owner of a folder?

    Hello,
    I'm having a very difficult time finding an answer to this question. I have a brand new xserve (10.5.2) up and running fine with a single web site with wikis and blogs enabled. I can get to the web page and the wikis with no problems.
    The problem is, the default folder for the web home page and the wiki information are on the system drive. I need to have those folders on another partition. I created a folder called /Collaboration and one called /Webdocs on the partition on which I need these folders.
    When I put a copy of index.html into the webdocs folder, the web site shows up fine in a browser window. Wikis show as being "disabled" though. The folder for the wiki files has me as the owner since I created it. I've read on a few posts in these forums that the owner of that Collaboration folder needs to be "teamserver" however, I am unable to change to that using Get Info, like I could with a Tiger machine.
    Could someone please tell me how to do this? Thanks.

    I've got a similar problem:
    I'm attempting to follow the directions in the Upgrading and Migrating Guide for Leopard. The Mac has two hard drives in it. Batman contains the active server running 10.4.11. Magic is the hard drive that will run 10.5.2.
    Since I'm moving from one hard disk to another (as opposed to an entirely different Mac), things ought to be fairly easy. But not for me. ;(
    What I'm trying to do: Migrate the mail database. (I have managed to import users and groups; only the mail service will run on this machine.)
    Problem: I can't change the owner and group settings on the various files in the var/imap and var/spool/imap folders (for example, so that they are owned by system or _cyrus, with group wheel or mail and everyone set to read only).
    The owner and/or group often shows up as unknown (which is to be expected with the migration to a different hard drive). But how can I change these permissions?
    Or is there a way to use a command to copy them from one disk to another? I tried ditto, but didn't get the syntax right (the files were copied to the same level as the imap folder rather than within it) and now I have a bunch of files owned by nobody that I can't delete because I can't change the owner.
    TIA,
    mm

  • Proper way to make bulk changes the Owner ID, Path and file share credentials for my existing subscriptions, ExtensionSettings

    We are going through with an upgrade/migration to SSRS 2012 and moving everything to a different domain. We have about 200 active subscriptions running, the reports are being delivered to a file share.  What is the correct way, in bulk, to change
    the OwnerId, the Path and the FileShare Username password credentials for these subscriptions?  I see these values are being stored in Subscriptions > ExtensionSettings.  I see that the file share path and Owner wouldn't be a problem to change,
    but since I see the file share credentials are encrypted I would not be able change them directly in ExtensionSettings.  Anyone know the proper way to change the Owner ID, Path and file share credentials for my existing subscriptions without having to
    change each one of them manually in the report manager?
    Note: Reporting Services Native upgrade from SSRS 2005 to SSRS 2012.
    Thanks in advance.

    Hi Cygnus46,
    Based on my understanding, you want to change the Owner ID, Path and file share credentials for all existing subscriptions.
    In Reporting Services, the subscription information are stored in the Report Server database. In your scenario, you can go to report server database and run the query to list all the subscriptions, then modify the owner and fileshare paths in the subscriptions
    table. For more information, please refer to this article: Tip: Change the Owner of SQL Reporting Services Subscription. If you want to change
    the file share credentials for subscriptions, you can run the query provided by
    wiperzeus from this similar thread:
    Windows File Share Delivery/ SSRS 2008 R2.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • How to change the owner of business rules

    Hi,
    How to change the owner of the business rule's in hyperion 11.1.2.1.
    When i changed the owner name from planning to xxxxx i get "User not found reverting to nothing".
    Kindly help me with what id should i login to EAS (essbase administration services console) and the detailed process of changing the owner of business rule in properties tab.
    Cheers
    Praveen
    Edited by: Praveen on Nov 7, 2011 8:43 AM

    No....
    There is no 'ownership' of a tablespace. No such thing.
    UserA.tbl1 is owned by UserA, which is the same as saying it is in the schema UserA. It might be in tablespace USERS. If you want to change which tablespace it lives in, you can 'alter table' it to the new tablespace such as BIG_USERS. It would still be UserA.tbl1. I think you can move it online using Oracle's online reorg abilities.
    If you want the table to be owned by UserB, then you have to either export/import or CREATE TABLE AS SELECT it into UserB's schema. However doing so means that the table can no longer be referenced as UserA.tbl1. If you want that reference to work, you have to create a synonym in UserA's schema that points to UserB.tbl1. At no point does the ownership of the tablespace come in to question.
    I think you meant 'schema' instead of 'tablespace' in your original quesetion.

  • When upgrading I changed the owner of everything.

    When upgrading my Mac Pro (quad core Intel Xeon) I changed the owner name, and subsequently lost 12 years of mail archives. I have accepted that loss as a result of my stupidity. Now here is my question: Is there a way to universally add my new adminitrator (dougjacobson) as owner of all folders, files, apps, etc.? I am the only user on the Mac.
    Thanks for any insight into using the command line.
    Doug

    I don't have time to write something comprehensive and bulletproof, but here goes...
    First, make a copy of one of the folders you want to recover, and practice on that.  Once you're confident that you know what you're doing, do it on your real data.
    The commands that you're looking for are "chown" and "chgrp", which change the owner and UNIX group of the targetted files.  You can read about these by typing "man chown" and "man chgrp", or just Google them.
    The main option you will provide to these two commands is the -R flag, which means that it will be applied recursively to the contents of a directory, not just to a single file/directory.
    eg: "chmod -R jakesan your_mail_folder/"
    You may need to prepend the "sudo" command ("man sudo" for more details):
    eg: "sudo chmod -R jakesan your_mail_folder/"
    Good luck!  (sorry, I may not respond to follow-up questions)

  • Error while changing the owner of an object in Discoverer

    Hi All,
    I have a problem in Discoverer folders.
    I have a folder whcih is based on a view in schema in A, now i have created the same view in schema B and want to change the owner of the view in Discoverer to B.
    But when i do that it gives me an error as -
    'An error occured with the darabse transaction because the underlying object has been changed'
    I am not able to understand this.
    If anyone can help me this it would be really helpful.
    Regards,
    Shruti

    Well, this is something not talked about in the Administration training class. My hunch is that you are trying to do something that Oracle never intended you to do. I think when you edit the folder and want to change the Owner property, the idea maybe is that you are trying to change the owner on the original table. Here you have said that you recreated the view in schema B (so technically a different table object). But in Discoverer you are still dealing with the view in schema A as the basis for the folder, not the view in schema B. Though I would think if you can see the new owner's name in the database/user list and thus can pick it, it should let you change the owner property, even if that may not be quite what you intended. Discoverer does store things under the cover (such as unique ids), so maybe something is going on that is not visible. My suggestion would be to open up a service request with Oracle support on this. The idea of dropping the folder and then readding it may be okay, but that would be something you would want to test in some kind of test environment and see what happens (not sure what impact that may have on workbooks using the original folder). Of course it may be possible that you have uncovered an Oracle bug.
    John Dickey

  • What is the procedure to change the owner of the BW jobs.

    Hi Gurus,
    Version- BW 3.5
    I need to change few jobs Owners which are collected from the SM37 from a individual User to generic account(ALEREMOTE).
    Will any body help me out with the procedure to change the owner of the BW jobs.
    Thnaks in advanace..
    With Regards,
    MBS

    in SM37, take all release jobs by giving JOb name as "" and user as "".
    When you get the release job details then follow the steps.
    1. Select theJob --> Menu Bar --> JOB --> Change --> here you will get the details of the job and Clieck on STEP just above the job name.
    In the next screen select the job and click on Change ICON.  here you can see the user name in change mode and you can update the user to ALEREMOTE. And then save the job.
    Once done then the job will be on the new user.
    Hope this helps..

  • Changing the owner of a file

    Sir,
    I have a program which executes this command (touch filename) using Runtime class.When the program is executed the file is created with root as its owner.I tried to change the property using the setProperty("user.name","temp") method of System class.But still the file has the root as its owner.Is there any other way to do this.
    Thanks
    Mouli
    I

    You're using Unix, right?
    Have you tried using chown throug runtime to change the owner?
    Can't you make file from Java code without needing
    Runtime class? I don't know about this, I've been
    working with C and Unix for too long, but can't you open
    a stream to file and then close it? That way you'll
    have an empty file, and the owner might be the one,
    who executed the Java program.
    kari-matti

  • How to change the Owner of a Process

    We have a Business Process Flow and the owner is someone no longer with our company. Not finding a way to change the Owner on the process. Does anyone know how to accomplish that?

    Hello,
    Try following:
    Open CRM -> Settings -< Processes -> Select BPF -> Click Assign at toolbar, select user and click OK.
    Dynamics CRM MVP
    My blog

  • Changing the Owner of all Objects in Instance ?

    How to Change the Owner of all Objects in Instance, like for example the Procedure: sp_changedbowner in an MS-SQL-Database, who changed the Owner of the actual Database !
    I'am looking for another possibility to do it by export the Datbase and import as new Owner !

    Hi Laurent Schneider
    OCM DBA, I successfully run:
    connect SYS/&2 as SYSDBA;
    Update sys.obj$ set owner#=(Select USER# from sys.user$ where NAME = '&4')
    where owner#=(Select USER# from sys.user$ where NAME = '&3');
    commit;
    Afterwards I dropped the &3 User CASCADE and then created the &3 User with less rights ! Before Update-Command the &4 User shouldn't be the Owner of any Object ! At Last I'm not sure that is the right way ?!

  • How do I change the "Owner" of my Business Objects Reports

    Here is my problem.
    When we upgrade Business Objects we 'convert' a large number of reports to the BO XI rel2 version of the reports.  During this convertion process all the reports were switched to be 'owned' by usercode 'Administrator'.  Our users are now wanting to move/change/delete these reports and they can't because they are not the owner.
    So we need to switch this owner.  Problem is the only way we can find to do this is to copy the report to a new name and delete the old one.  This is very time consuming.  Also many of our users are not priviledged to delete reports that they don't own.  Therefore our administrators are the only ones that can do the delete step.
    It seems like I should be able to logon to the system as 'Administrator' and change the owner of the reports (similiar to doing a chown command in Unix) to whoever I want.  There however doesn't appear to be a way to do that in Infoview or the Central Management Consule.
    Is there a simple easy way to do this??  I have thousands of report to change.
    Thanks Bart

    It's possible via the Enterprise SDK, if you have a Java or .NET programmer.
    Sincerely,
    Ted Ueda

  • Changing the owner of a shopping cart

    Hello Experts!
    I was askec to create a program that changes the owner of a shopping cart and purchase order in SRM.
    It happens that the person who created the shopping cart or purchase order is leaving the company and someone else is going to manage his shopping carts and purchase orders.
    How to I assign the shopping cart or purchase order to someone else.
    Is there any BAPI or transaction.. ?
    Thanks in advance for replies!
    Mahesh

    Hello Susanne,
    Have a look at hyper-link below:
    [Code Sample 1 - Update Partner details in a Purchase Order|https://wiki.sdn.sap.com/wiki/display/SRM/Code%20Sample%201%20-%20Update%20Partner%20details%20in%20a%20Purchase%20Order]
    According to your requirement, business partner to change is Requester ('00000016') and purchasing document is Shopping Cart.
    Regards.
    Laurent.

  • I would like to change the owners name on my ipad2 to my daughters name and credit. Could someone help me figure this out?

    I would like to change the owners name on my ipad2 to my daughters name and credit. Could someone help me figure this out?

    Sign out from Find My Phone in iCloud, and sign out from your Apple ID in Settings/iTunes & App Store
    Then setup as a new phone with iTunes and when your Daughter sets it up for the first time she can add or set up her own Apple ID.
    Cheers
    Pete

  • How to change the owner of an Information Broadcasting setting?

    Hi,
    I have created and scheduled some reports to be distributed via the Information Broadcasting functionality. I would like know if it is possible to change the "owner" of the setting in order to cater for the following scenario.
    User A has created and setup a few Information Broadcasting settings. I would like to change the ownership of the setting so that User B has access to make changes. At the moment, users only have rights change their own settings.
    Appreciate any help...
    Cheers,
    Lashan

    Found a workaround although not ideal. I can temporarily assign the user the required rights to view all setting. User can then copy the settings (using save as option) and once done I can remove the rights.
    However, the report format would have been customised and saved (using save view option) prior to setting up the information broadcast. When transfering ownership I also need to transfer the ability for the user to edit the saved format without starting from scratch. Any table or transaction I could use to do this? So at the moment I have a solution to enable the new user to change the distribution list and schedule, but not the report format which is required.

  • How to change the owner of a folio

    I've created a folio using the latest version of DPS. My client, who has purchased the Professional version of DPS, is going to distribute the app as an "in-house" iPad viewer app (they're an Apple Enterprise Developer).
    I've shared the folio with several people at the client company via Acrobat.com and that works well.
    Now we need to create the final app. When the client logs into the Folio Producer with their Adobe ID, they can see the Folio, but when they try to click the Publish button, an alert appears that says "Only an owner of a folio can publish to the distribution server".
    How can I change the owner of the folio from myself to the client?

    Thanks Bob. That's what we ended up doing. I was trying to avoid having to re-upload the folio, but ended up having to do that. Thanks.
    ~ Keith
    Keith Gilbert
    Adobe Certified Instructor: ID, IC, AI, PS, AA
    Adobe Community Professional
    blog.gilbertconsulting.com
    twitter: @gilbertconsult

Maybe you are looking for