How to create table from one to another schema?

Hi,
There is two schema A and B. schema A want to create table on Schema. which privilege we need to provide? how to create?
thanks in advance
Thanks,

user2017273 wrote:
Hi,
There is two schema A and B. schema A want to create table on Schema. which privilege we need to provide? how to create?
thanks in advance
Thanks,When you give CREATE ANY TABLE TO A then user A will create table on any schema.But you can create stored PROCEDURE on schema B for creating table and give GRANT EXECUTE <PROC NAME> to A.

Similar Messages

  • How to move table from one tablespace to other tablespace?

    how to move table from one tablespace to other tablespace?

    887274 wrote:
    how to move table from one tablespace to other tablespace?
    alter table <table_name> move  tablespace <new_tablespace_name>;
    Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
    SQL> create table ttt( ID NUMBER PRimary key);
    Table created.
    SQL> insert into ttt values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL> alter table ttt move tablespace users;
    Table altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 UNUSABLE
    SQL> alter index SYS_C0010863 rebuild tablespace users online;
    Index altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL>

  • How to create partition from one table to another?

    Hi,
    Can any one help me in this :
    I have copied table from one schema to another by using the following command. The table is around 300 GB in size and the partitions are not copied. Now i got a request to create partitions in the destination table similar to the source table.
    CREATE TABLE user2.table_name AS SELECT * FROM  user1.table_name;
    I am using Oracle 9i database. This is very urgent, could any one please suggest me how can i create the partitions in  user2 table as user1 table.

    If you have the TOAD/ SQL DEVELOPER  , get the partition DDL from the source table and execute it in the newly created table.
    or you can use DBMS_METADATA:
    SET LONG 10000
    SELECT dbms_metadata.get_ddl('TABLE', 'TEST')
    FROM DUAL;
    Thanks,
    <Moderator Edit - deleted link signature - pl see FAQ link on top right>

  • Getting error while creating table from one database to other.

    Hi,
    We are getting below error while creating the table from one database to other.
    SQL> create table fnd_lobs parallel compress as select * from [email protected];
    create table fnd_lobs parallel compress as select * from [email protected]
    ERROR at line 1:
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    Regards,
    Bhatia

    hi
    what are the apps version local and remote database???
    Snapshot too old errors occur because Oracle can 't reconstruct a consistent
    image of a block for the purposes of a consistent read.
    I feel at remote database, you are using UNDO, it will be rather easy to iincrease the undo retention time or increase the undo tablespace size.. if you are dealing with roll back segments, you may have rollback segments whose optimal values are too small...
    increase roll back segments size and select again then
    the following metalink notes might be helpful
    ORA-01555 "Snapshot too old" - Detailed Explanation Doc ID: 40689.1
    How To Avoid ORA-01555: Snapshot Too Old When Running PAAPIMP Doc ID: 603259.1
    OERR: ORA 1555 "snapshot too old (rollback segment too small)" Doc ID: 18954.1

  • How to create PO from one palnt to another plant

    Dear All,
    We need to create new Purchase orders from One plant to another plant. Can you please provide me any suggestions to achive this.
    Main hurdle are: We need to create new PO for the completely open Purchase order for old plant.
    Secondly we need to create PO from old PO which have partial goods receipt and which have equally invoice receipts, so that we can create new PO for the open quanityt and the open invoices.
    I do not see any other case which we can consider to open new PO from the old PO. If there are to consider some please do let me know.
    Secondly we have to extend the materials from one plant to another plant. Issue is we do not know which views are maiantained for materials which needs to be extend also what are the fields filled for each views. In order to avoid extracting the data from table, structuring it and then reload for new plant we are planning to create some program or is there any existing standard program which can extend material from one plant to another.
    One more issue in out plant extension is we have some Z fields in MARC so how we can use that too to extend it to another plant.
    Can you please provide me some suggestions/help on this.
    Thanks.
    Shashi

    Please check this answered link for extending material to another plant through BAPI:
    BAPI to extend material
    If new fields are added to material master, they are applicable at client level, so after extension to new plant, those newly created fields will be available there as well.
    For copying PO's to new plant, you can copy them through ME21n.

  • How to create table from another in pl/sql

    Hi I need to create a table from another in pl/sql
    How can I do this

    The proper way to do this, is not to do it in PL/SQL. But do it in SQL, something like:
    create table tbl
    as
    select *
      from other_tbl;Doing it in PL/SQL is really slow compared to SQL.
    Yes, if you really want to create a table using PL/SQL then you will need to use DBMS_SQL or EXECUTE IMMEDIATE (Native Dynamic SQL) to do this.

  • How to create table from method

    Hello -
    Could anyone please tell me how can I create af:table with more than one column from an AppsModule method.
    When I have a 1d array return eg:
    public String[] createTable(){
    String[] str = new String[1];
    return str;
    I can drop it as a table and one column gets created. But how can I get mutiple columns in a table. I want to write a method, which when dropped on jsp page create table with multiple columns.
    I am using ADF 11g.
    Please suggest.
    Regards -
    Rohit

    Hi,
    for this you use an array or array list of objects. The object represent the row content, e.g. Person. The Person class then has setter/getter for each of the properties that you want to show in a column
    Frank

  • How to create table from ref cursor

    I have a proc that returns a ref cursor, whats the simplest way to create a table based on the return of the ref cursor?
    declare
    type rc is ref cursor;
    p_data rc;
    begin
    call_my_proc(p_data);
    :result := p_data; -- If I run this in TOAD I can see the data here but I want to create a table based on it rather than outputting it)
    end;
    thanks.
    edit: sorry. typed this wrong first time, should be right now

    961469 wrote:
    I have a proc that returns a ref cursor, whats the simplest way to create a table based on the return of the ref cursor?Not to do it...
    A cursor is not a result set. A cursor is not a result set. Worth repeating several times as this is a common misconception
    A cursor is essentially a program. Executable code that was compiled from a SQL source code program.
    A SELECT cursor is "read" program. Each fetch instruction runs this program (from its current "paused state"), and outputs data.
    An INSERT cursor is a "write" program. You pass data to it (process called binding, via bind variables). You then execute the program. It writes the data it received (can be bulk data via a bulk bind) to table.
    Now your question is: How do I write the output of a cursor program back to the database?
    The answer is that a "write" cursor program is needed. Your code needs to execute (fetch output from) the ref (read/select) cursor. Then bind that data to the "write" cursor and execute it.
    In other words, you have a read cursor and a write cursor, and you need to pass data from one to the other.
    HOWEVER.. This is slow. This does not scale. This is also known as slow-by-slow row by row processing.
    The correct approach is to create a single program. One that reads the data, and then writes the data. No to send data via a detour through your code between the read part and write part.
    The cursor to create is an INSERT..SELECT cursor. This can do fast direct path inserts. This can be executed in parallel - i.e. the database executing several copies of this read-and-write program at the same time.

  • How to move tables from one user to another user in same tablespace;

    How can i move the tables & data starting with TIS_ from USER1 schema to this new schema?
    By below query i created new schema:-
    create user TEST identified by TEST12 default tablespace DMGTS;
    Both the USER/Schema are in same tablespace.
    It is ORACLE9i.
    Please reply....

    User1.A
    User2.B
    1) Create patitioned tables based on User1.A, ex. User1.P
    2) ALTER TABLE User1.P
    EXCHANGE PARTITION YOUR_PART_NAME TABLE User1.A
    WITHOUT VALIDATION; -- After this all your data from User1.A will be moved to User1.P(YOUR_PART_NAME)
    3) ALTER TABLE User1.P
    EXCHANGE PARTITION YOUR_PART_NAME TABLE User2.B
    WITHOUT VALIDATION; -- After this all your data from User1.P(YOUR_PART_NAME) will be moved to User2.B
    All data moving will take about 2-3 sec.
    Regards,

  • How to copy table from one sheet to another making formulas relative to current sheet

    I'm truly sorry if this has been answered within this forum but I've been reading these posts for the last hour and nothing. Ok so here's my issue:
    I'm trying to do a budget spreadsheet. My ss contains sheets with each one representing a month. So sheet 1 is called January, 2 February etc.
    I have two table in each sheet, one with a list of expenses and the other is a subtable with that references the first table for special expenses. The second table is identical in functionality in each sheet so I do a copy from January into February. However, when I copy into Feburary, all my formulas still point to 'January::' and I have to go and remove the 'January::' from each cell.
    Is there any way to copy the second table and make it relative to the sheet that it's in? It seems simple and maybe I'm doing something fundamentally wrong but I can't find the answer anywhere.

    I made a simple version of what I think you are describing:
    I gave each table a name "Tabl" and "SubTable"
    SubTable cell A1 is assigned as follows:
    A1=Table :: A1
    Then I duplicated the January Sheet by highlighting the sheet and typing the key command <COMMAND>+d (or selceting the menu item "Edit > Duplicate"):
    Then I change the name of the new shee from "January -1" to "February"
    The relative reference should already exist.
    You can confim this by changing the contants of the informaiton in cell A1 of Table in the "February sheet

  • How to move iPhone from one to another Mac?

    We have two laptops and one iPhone. My contacts, calendar, bookmarks and notes sync between the two Macs and MobileMe and the iPhone. At present I sync my Photos, Apps and podcasts on my iPhone with my PowerBook, but since we are going on a trip and take along my wife's smaller and lighter MacBook, I'd like to sync from now on to her MacBook.
    How can I "migrate" the iPhone to the other computer without loosing my applications etc. and the data on the iPhone?
    Your suggestions/pointers/solutions would be highly appreciated. Thanks and cheers, Veit

    The iphone will sync with one computer at a time.
    When you sync to another, it will erase the current itunes content and pics from the iphone and replace with content from the new computer.
    A forum search is an excellent suggestion. This is asked and answered quite often.
    You can copy the entire itunes folder from the PB to the macbook. This should make the transition as seamless as possible. However, I believe that you would lose the content that is currently in itunes on the macbook as the new itunes folder would replace the old.

  • How to create table from .ini file

    Hi,
    The file *.ini generates a Multicolumn Listbox where is indicated a number (variable) of tables with them characteristics (row and column) as in the picture below.
    I need to find the way to create automatically, on word file, the tables as indicated in the *.ini file. Do you think that it could be possible? That you know, exist a Macro to do this?
    Best regards
    Attachments:
    Multicolunms .png ‏8 KB

    As Taki said above, to do this you need to use the Report Generation Toolkit. This will allow you to generate tables in a word document. Look for the examples in the LabVIEW Help for a rough idea of how to use the toolkit and if you have any specific questions after that then feel free to post them here.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • How to change image from one to another color.

    Hi All,
      In our application we have used two sets of items [i.,e Text items & Drop down list items]  
      For all these we have used as mention below
    Label->Country
    Horizontal/vertical alignment->Right
    Template ->Required Label
    Now for required label currently it shows as
    img alt="Required Field Icon" src="/i/themes/theme_12/required.gif
    [which is in orange color] but i have to change into "Red color" for asterick
    Could some one help me on this request to make changes.
    Regards,
    Sruthi tamiri!!

    SruthiTamiri wrote:
      In our application we have used two sets of items [i.,e Text items & Drop down list items]
      For all these we have used as mention below
    Label->Country
    Horizontal/vertical alignment->Right
    Template ->Required Label
    Now for required label currently it shows as
    img alt="Required Field Icon" src="/i/themes/theme_12/required.gif
    [which is in orange color] but i have to change into "Red color" for asterick
    As previously advised, you must provide your APEX version, theme, and browser version when asking a question in order to get relevant assistance...
    The asterisk is a GIF bitmap image so the orange colour is inherent and fixed. To change it using an image in the template you need to find or create an image of a red asterisk.
    It is possible to do this more flexibly using CSS without images:
    a.t12RequiredLabelWithHelp:after,
    .t12RequiredLabel:after {
      content: " *";
      color: #c00;
    However this won't work at all on IE7 as it doesn't have support for generated content, nor will it work in later versions of IE using theme 12 as it is a legacy quirks mode theme, and IE8+ only supports generated content in standards mode.

  • How to implement codings from one to another environment without transport

    Hi,
    I have developed a function module on the migration environment and I need to do some enhancements on this. Usually I'll need to change the object and for this a change request is needed. We have a sand box environments as well. My question is there any possibility to download a entire function module and upload it into the sand box.
    Thanks for any help

    This method only can changing text of programs, not dynpro objects (pf-status, screen)!
    By step:
    1. In first system copy all new (modified) code of needed program into text file on local PC (C:\Data\code.txt for example).
    2. In second system go to SE37 and run FM RFC_ABAP_INSTALL_AND_RUN for test.
    Added next code lines to tables PROGRAM:
    REPORT ZCHANGE.
    DATA: REPORT_CODE TYPE TABLE OF STRING.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME = 'C:\DATA\CODE.TXT'
      TABLES
        DATA_TAB = REPORT_CODE.
    INSERT REPORT 'xxxxxxx' FROM REPORT_CODE.
    Changing constant 'xxxxxxx' on current name of existing program, which will be modified.
    Run test.
    This instrument is realy dangerous, cause you can destroy current program if text file was empty or consist  incorrect code.

  • How to create user from one domain to remote domain

    Hi All,
    I want to create user in Security Realm from my own domain to a remote domain programatically. Can you suggest the entire process.
    Thanks in Advance.

    Not sure why but for me all the errors were resolved .
    import java.util.Hashtable;
    import javax.management.AttributeNotFoundException;
    import javax.management.InstanceNotFoundException;
    import javax.management.IntrospectionException;
    import javax.management.MBeanException;
    import javax.management.MBeanServer;
    import javax.management.MalformedObjectNameException;
    import javax.management.ObjectName;
    import javax.management.ReflectionException;
    import javax.management.modelmbean.ModelMBeanInfo;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class Test {
         * @param args
         * @throws NamingException
         * @throws NullPointerException
         * @throws MalformedObjectNameException
         * @throws ReflectionException
         * @throws MBeanException
         * @throws InstanceNotFoundException
         * @throws AttributeNotFoundException
         * @throws IntrospectionException
         public static void main(String[] args) throws NamingException, MalformedObjectNameException, NullPointerException, AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException, IntrospectionException {
              // TODO Auto-generated method stub
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
              env.put(Context.SECURITY_PRINCIPAL, "weblogic");
              env.put(Context.SECURITY_CREDENTIALS, "weblogic1");
              env.put(Context.PROVIDER_URL, "t3://localhost:7001");
              InitialContext ctx = new InitialContext(env);
              MBeanServer wls = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
              ObjectName userEditor = null;
              ObjectName MBTservice = new ObjectName("com.bea:Name=MBeanTypeService," + "Type=weblogic.management.mbeanservers.MBeanTypeService");
              ObjectName rs = new ObjectName("com.bea:Name=RuntimeService,"+"Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
              ObjectName domainMBean = (ObjectName) wls.getAttribute(rs,"DomainConfiguration");
              ObjectName securityConfig = (ObjectName) wls.getAttribute(domainMBean,"SecurityConfiguration");
              ObjectName defaultRealm = (ObjectName) wls.getAttribute(securityConfig,"DefaultRealm");
              ObjectName[] atnProviders = (ObjectName[]) wls.getAttribute(defaultRealm,"AuthenticationProviders");
              for (ObjectName providerName : atnProviders) {
              if (userEditor == null) {
              ModelMBeanInfo info = (ModelMBeanInfo) wls.getMBeanInfo(providerName);
              String className = (String) info.getMBeanDescriptor().getFieldValue("interfaceClassName");
              if (className != null) {
              String[] mba = (String[]) wls.invoke( MBTservice, "getSubtypes", new Object[] {"weblogic.management.security.authentication.UserEditorMBean" }, new String[] { "java.lang.String" });
              for (String mb : mba)
              if (className.equals(mb)) userEditor = providerName;
              if (userEditor == null) throw new RuntimeException("Could not retrieve user editor");
              try{
              System.out.println("Creating User : testuser");
              wls.invoke(userEditor,"createUser",new Object[] {"testuser","password","test user"},new String[] {"java.lang.String", "java.lang.String","java.lang.String"});
              System.out.println("Created User : testuser");
              catch(Exception e){
              e.printStackTrace();
              ctx.close();
    }

Maybe you are looking for