How can I create a table in other's schema?

I have two users say 'user1' and 'sanju' along with other users in the database.Both the users are granted a connect role. I have connected as a 'sanju' user. Now I want to create a table in schema 'user1'.
Please note that user 'sanju' should not be allowed to create table in any other user's schema.
I have set the current schema of 'sanju' as 'user1'.
ALTER SESSION SET CURRENT_SCHEMA=USER1
I know that 'grant create ANY table to sanju' will allow 'sanju' to create table in all the schema. I dont want that. Is there any way to create a table in any other's schema?
Please answer ASAP

This is not directly possible, but you can use following workaround:
connect user1/passwd
create or replace procedure testCreateTable as
begin
execute immediate 'create table user1.testTable(c char)';
end test;
grant execute on testCreateTable to sanju;
connect sanju/passwd
execute testCreateTable
Of course, you can make this procedure more generic by specifying the necessary parameter.
Please not that this procedure only works, if user1 was granted the create table privilege directly, and not through a role (e.g. dba), because roles are disabled when executing

Similar Messages

  • How Can I create plan Table

    Dear Experts,
    How Can I create plan Table.
    How can i read it?

    run UTLXPLAN.SQL
    under
    $ORACLE_HOME/rdbms/admin/
    check this link for detailed information
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm#i19260

  • How can we create a table with more than 64 fields in the default DB?

    Dear sirs,
    I am taking part in the process of migrating a J2ee application from JBoss to SAP Server. I have imported the ejb project.
    I have an entity bean with 79 CMP fields. i have created the bean and created the table for the same also. but when i tried to build the dictionary, i am getting an error message as given below,
    "Dictionary Generation: DB2:checkNumberOfColumns (primary key of table IMP_MANDANT): number of columns (79) greater than allowed maximum (64) IMP_MANDANT.dtdbtable MyAtlasDictionary/src/packages"
    Is it mean that we can not create tables with fields more than 64?
    How can i create tables with more than 64 fields?
    Kindly help,
    Thankyou,
    Sudheesh...

    Hi,
      I found a link in the help site which says its 1024 (without key 1023).
    http://help.sap.com/saphelp_nw04s/helpdata/en/f6/069940ccd42a54e10000000a1550b0/content.htm
      Not sure about any limit of 64 columns.
    Regards,
    S.Divakar

  • How can i create a table which name is dynamic and not static?

    i have a question to ask. normaly if i want to create a table, i must provid a name for the table. for example, create table tt (id number(5)). But now in my application, I need to control the table name with params through function, how can i do?
    thx

    First thank you to reply so fast!
    But I met problem according to your instructive. The following is my code:
    declare
    m varchar(5);
    begin
    m:='hello';
    execute immediate 'create table'|| m ||'(id number(5),name varchar(5))';
    commit;
    end;
    The SQL*Plus tell me the command create is invalid. My oracle is 8.1.7.0.0. Maybe I miss something so that I can not get correct result. Wish your further help.
    yours sincerely
    zhou jinguang

  • How can I create a Table View in Cocoa Applescript?

    This is my last resort. I've searched for days and only found tutorials for iPhone and Cocoa, and I have no idea where to start. I'm looking for a way to create a Table View, and fill it with a few cells that call a handler when clicked. I've looked through the Xcode help, the Apple documentation, and countless tutorials, and I don't know what to do. I'm sure what I'm asking is possible, because usually what is possible in Cocoa is possible in Cocoa-Applescript.
    Perhaps something like:
    myTableView's addCell_OfType_WithHandler("This is a text cell", text, "myHandler:")
    I would appretiate any responses and brief descriptions on the matter.

    You did not answer my first question, which was not an idle question. I'll answer here, but if cross-chatter appears in a different thread I'll ignore it. You'll have to keep track of the mess yourself.
    Apple_For_The_Win wrote:
    At this point, I've dragged a Table View onto my window, in Xcode. I've connected it to the value "myTableView", and that's where I need help. I'm specifically trying to add cells into the table view.
    I'll assume that 'connected it to the value "myTableView"' means that you've control-dragged in XCode from the table view in Main Menu.xib to a property in your applescript app delegate called myTableView. If that's not the case, please correct me.
    I prefer to use an array controller for this, so please drag an array controller object into main menu.nib. once you've done that, do the following:
    open the applescript app delegate and add a new property called "tableController"
    select the table view in the object list (you may need to open some disclosure triangles to reach it). and add appropriate (an) column name(s). you can hide column titles later if you like, but having named columns makes life easier.
    select the array controller in the object list
    rename the array controller "table data"
    open the attributes inspector, and then add the column name(s) as key(s) in the object controller area
    open the bindings inspector, and where it says "controller content", open the disclosure arrow and bind the content to the App Delegate object on the model key path self.tableController
    select the table view in the object list again, then go down a level and select each column in turn
    for each column, open the bindings inspector, and where it says "value", open the disclosure arrow and bind the content to the Table Data object with the controller key arrangedObjects model key path being the name of the column (which is the name of the key in the controller as well)
    back in the applescript app delegate, add code like the following:
      -- create a list of records, where each record represents a row and the column name is the record key
      set myData to {{column_1_name:"hello"}}
      -- convert it to an NSArray and add it to the controller content. don't forget the *my* keyword, or it won't work
      set my tableController to NSArray's arrayWithArray:myData
      -- may or may not be needed
      myTableView's reloadData()
    That should populate the table with simple text. if you want something more complicated (like buttons or links) then create the more complicated elements separately and add them to the data.

  • How can I to rename Table in Other Scheme ?

    I some tables area backup, but all are in other scheme , How can I to rename all ?
    SQL> rename SYSADM.PS_LOC_CNTRCT_SN   to SYSADM.PS_LOC_CNTRCT_SN_999;
    rename SYSADM.PS_LOC_CNTRCT_SN   to SYSADM.PS_LOC_CNTRCT_SN_999
    ORA-01765: specifying table's owner name is not allowed

    @pmcda Look up prerequisites for RENAME
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9019.htm#i2064929
    SQL> show user
    USER is "SYSTEM"
    SQL> alter table scott.dept rename to department;
    Table altered.
    SQL> select * from scott.department;
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    SQL> alter table scott.department rename to dept;Best regards
    Maxim

  • How can I create a table in form central

    DATE
    Miles Driven
    Auto Mileage Expense ($.565 per mile)
    Hotel
    (Room & Tax Only)
    Air Travel
    Airport Shuttle, Taxi or Parking
    Meals
    Total Expenses
    2012
    Breakfast
    Lunch
    Dinner
    Daily Meal Total
    (daily maximum of $42.00)
    Mon., Oct. 13
    $                 -  
    $                     -  
    $                     -  
    l Expense Re
    $                 -  
    $                     -  
    $                     -  
    Wed., Oct. 15
    $                 -  
    $                     -  
    $                     -  
    Thu., Oct. 16
    $                 -  
    $                     -  
    $                     -  
    Fri., Oct. 17
    $                 -  
    $                     -  
    $                     -  
    $                 -  
    $                  -  
    $ -  
    $ -  
    $ -  
    $ -  
    $ -  
    $                     -  
    $                     -  

    Hi create a table,
    Currently we do not have the facility to create a table in FormsCentral.
    Thanks,
    Vikrantt Singh

  • How can I create a new skin (other than the default skins) for my Captivate Project?

    Hi everyone,
    I am working on a project where my client wants me to create a player skin which is completely different from the default themes that captivate has already. The design which client has shared with me contains in this way:
    1. TOC - should be truncated and can be expanded by pressing "+" button against the Navigation Text. Its like opening and closing the menu bar using + and - buttons
    2. Playback controls required by him are also not in the default skins.
    I dont know, if there is any way to customize the skins to this level inside captivate.
    Please help me out.
    Thanks & Regards
    Vikas Sharma

    Unlikely, I'm afraid.
    The LMS has no control over the playbar that pauses or plays the Captivate content.
    In a Multi SCORM package, the LMS also may be showing a TOC in the SCORM player with links to launch the lesson modules.  This TOC is in addition to the TOC inside the Captivate project file which gives access to sections of the module by jumping to slides that begin those sections.  But the LMS doesn't usually give you any control over the look and feel or functionality of that TOC either. 
    If your client is adamant that they want complete control over these areas, then your best option may be NOT to build this course with Captivate but build it from the ground up with another tool.  E.g. Flash, or Dreamweaver.  Either way, that will add a lot more time and expense to the project.  But if the client has the budget and is unwilling to budge on their requirement, then that's what I would be telling them to do.

  • How can you create a table in a proccess on a page?

    I am trying to create a new table from an existing table called ICT_PROTIME. The new table needs to be named as the value of a text box on the page called P10_TABLE. If i create a process and use the plsql statement below when i hit the save button i get the error:
    ORA-06550: line 1, column 7: PLS-00103: Encountered the symbol "CREATE" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe
    My code:
    CREATE TABLE &P10_TABLE. as * from ICT_PROTIME;
    I have also tried putting begin befor this line and that doesn't work either?
    what am i doing wrong?
    Thanks
    LT

    Hi LT,
    You will need to use the EXECUTE IMMEDIATE command and build the DDL dynamically.
    eg.
    begin
         EXECUTE IMMEDIATE 'CREATE TABLE X(A DATE)';
         end;
    Hope this helps.
    Tony.

  • How can we create EDITABLE TABLE in JSP

    Hi!
    I want to have a table in jsp where data r been retrived from oracle db.
    I want a screen where table has got edit, delete, save buttons with changes updated in database please can any one help me with the code????
    I am using Apache 5.2 / JDK 5 / oracle 9i
    Please guide me....
    Thanks.

    hi,
    Same topic Discuss in another thread..
    http://forum.java.sun.com/thread.jspa?threadID=627472&tstart=15

  • How can i create tables ?

    how can i create a table from two string arrays (of equal length)?
    I haven't found much in the documentation.
    thanks
    null

    Hi,
    Thank you for your post.
    Please have a check on the below links  and check if it helps you
    https://msdn.microsoft.com/en-us/library/dn305849.aspx
    http://azure.microsoft.com/en-in/documentation/articles/sql-database-get-started/
    This link describes how to migrate a relational database to Microsoft Azure SQL Database 
    https://msdn.microsoft.com/library/azure/ee730904.aspx
    Regards,
    Mekh.
        

  • How can I create a new Security Domain ?

    Hi everyone,
    I would like to know how can I create an Security Domain other than ISD ?(If my card support multi SD and delegated management)
    I read Global Platform v2.1.1 ,but I don't know how can I create new SD practically(how can I write it's code ,how can I install it and how can I associate an applet to it,...).
    if there is any document or link can help me ,please inform me.
    I'll appreciate for any one if explain it to me step by step.
    yours sincerely.
    Orchid.

    You're right, it is not visible looking at your script, but at the APDU log. /card is an internal JCShell script to do the following:
    cm>  /card
    resetCard with timeout: 0 (ms)First the card is reset. This is analogous with /atr
    --Waiting for card...
    ATR=3B FA 13 00 00 81 31 FE 45 4A 43 4F 50 34 31 56    ;.....1.EJCOP41V
        32 33 31 97                                        231.
    ATR: T=1, FI=1/DI=3 (93clk/etu), N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V231"Then an /identify command is issued.
    => 00 A4 04 00 09 A0 00 00 01 67 41 30 00 FF          .........gA0..
    (163429 nsec)
    <= 09 01 01 29 00 00 00 00 50 48 36 35 30 41 00 00    ...)....PH650A..
        6A 82                                              j.
    Status: File not foundNow the Issuer Security Domain (ISD) is selected. You can do the same sending the JCShell 'select' command.
    => 00 A4 04 00 07 A0 00 00 00 03 00 00 00             .............
    (650082 nsec)
    <= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65    oe...........Y.e
        01 FF 9F 6E 06 40 51 70 92 29 00 73 4A 06 07 2A    ...n.@Qp.).sJ..*
        86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B    .H..k.`...*.H..k
        02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64    ....c...*.H..k.d
        0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09    ...*.H..k...e...
        2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01    +...Hd...f...+..
        04 01 2A 02 6E 01 02 90 00                         ..*.n....
    Status: No ErrorThe answer is the File Control Information (FCI) returned by the ISD. The format is also described in GP.

  • How can I create an internal space from the border in every cell in a table?

    How can I create an space between the text contents and the border inside in every cell in a table in Pages?

    Change the Inset margin in the Inspector palette > T tab > Text

  • How can I create an active table of content in the sidebar to help readers to get to the section?

    How can I create an active table of content in the sidebar to help readers to get to the section?

    You can create bookmarks with Adobe Acrobat.

  • How can i create a custom table in to my banking services server

    I am having product type and account type details for those things I need to create a table
    Product Id.                 Account Type
    DP_PYGO_P     21
    DP_BASIC     25
    DP_UNLIMIT     24
    DP_ADVANTG     17
    DP_SAV                     34
    DP_TBILL                     54
    DP_USDCHQ     19
    DP_FREEDOM     52
    For the above fields how can i create a custom table into banking services server

    Transaction SE11, maybe? I don't really see the problem, unless you have never created a transparant table before...

Maybe you are looking for