Creating table under SOAINFRA schema

hi all,
As iam a fresher in oracle fmw i need to know about how to create a table under SOAINFRA schema.

You can't, directories are database wide objects, see:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5007.htm#i2061958
...+All directories are created in a single namespace and are not owned by an individual schema+...
HTH
Enrique

Similar Messages

  • Problems on creating table under schema for BPM Demo project

    hi,
    i have not enough experience in database concepts, but i can create ,insert and modify the tables and data by using SQL query in oracle database 10 g express edition
    The reason behind send this qurery is i wanted to create the database tables under "Quote" schema., which is necessary to store and retrive data for my BPM demo project.
    Two important . Sql scirpt file namely create_user.sql and quote.sql used to create the database tables under "quote" schema available on e:/bpm/sql
    i could create "quote" schema by this command on commandline,
    >cd e:/bpm/sql
    >sqlplus sys/welcome as sysdba @create_user.sql quote quote
    but when creating database tables under "quote" schema , i got "SP2-0734 - unknown command exception thrown
    in commandline i was used like this to create table,
    >sqlplus quote quote @quote.sql
    Can anyone who familiar with database query concept help me to create tables on "quote " schema,
    thanks in advance

    Hello,
    Please find enclosed a complete chapter about the CREATE TABLE statement:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#i2095331
    At the end there're many examples.
    Hope this help.
    Best regards,
    Jean-Valentin

  • How to create table in another schema of same database

    Hi..
    I've a database DB1
    and has 2 schemas / USers in that..
    Usr1 and Usr2...
    And i created a TEMP table in Usr1 schema... and created
    Then tried the following statement in Usr2 schema...
    CREATE TABLE TEMP AS SELECT * FROM Usr1.TEMP;
    Then it's giving error that ...
    :00942 TABLE OR VIEW DOESN'T EXIST..
    What is the reason for that...
    Thank you

    josh1612 wrote:
    What other grants do i need to give so as to replicate the Primary Keys also...????That's not a matter of grants. It's the way the CREATE TABLE AS SELECT statement works. It does not copy over indexes, primary key constraints, unique constraints, foreign key constraints, etc.
    If you want to copy all that over, you would probably want to get the DDL from the original table (using the DBMS_METADATA package if you're in a recent version), modify the DDL with the new schema name, create the table, indexes, and constraints, and then do an INSERT ... SELECT to populate the data. Or do an export & import of the table from one schema to another.
    Justin

  • Create table allows fancy schemas in columns based on user defined types

    I just found out that in XE one can create a table with the following definition:
    CREATE TABLE "TEST"."TEST" (
      "ID" NUMBER,
      "LINK" "ABC"."URITYPE",
      CONSTRAINT "PK_EMP" PRIMARY KEY ("ID")
       );even if schema "ABC" doesn't exist.
    Likewise you can specify an existing schema on which you don't hold any privilege.
    CREATE TABLE "TEST"."TEST" (
      "ID" NUMBER,
      "LINK" "SCOTT"."URITYPE",
      CONSTRAINT "PK_EMP" PRIMARY KEY ("ID")
       );If you get the DDL using SQLDeveloper, in the former case you'll get the column without schema, in the latter case, if will retain the schema specification.
    I discovered this because SQLDeveloper 2.1.1.64 seems to add the current schema to certain objects like XMLTYPE and URITYPE, even if their schema should be SYS.
    I imagine that there must some problem at the parser level but also in DBMS_METADATA.
    Flavio
    http://oraclequirks.blogspot.com

    I just found out that in XE one can create a table with the following definition:
    CREATE TABLE "TEST"."TEST" (
      "ID" NUMBER,
      "LINK" "ABC"."URITYPE",
      CONSTRAINT "PK_EMP" PRIMARY KEY ("ID")
       );even if schema "ABC" doesn't exist.
    Likewise you can specify an existing schema on which you don't hold any privilege.
    CREATE TABLE "TEST"."TEST" (
      "ID" NUMBER,
      "LINK" "SCOTT"."URITYPE",
      CONSTRAINT "PK_EMP" PRIMARY KEY ("ID")
       );If you get the DDL using SQLDeveloper, in the former case you'll get the column without schema, in the latter case, if will retain the schema specification.
    I discovered this because SQLDeveloper 2.1.1.64 seems to add the current schema to certain objects like XMLTYPE and URITYPE, even if their schema should be SYS.
    I imagine that there must some problem at the parser level but also in DBMS_METADATA.
    Flavio
    http://oraclequirks.blogspot.com

  • Schematool creates tables in default schema

    Hi,
    we are using db2 7.2 and have following problem:
    We have to create all tables in a specific schema (tolina), so i set up
    the kodo-properties to:
    com.solarmetric.kodo.impl.jdbc.DictionaryProperties = SchemaName=tolina
    I would expect that sql-code will be generated like that:
    CREATE TABLE tolina.SomeBO (JDOIDX BIGINT NOT NULL, .....
    The Schematool generates creates without schemaname, a bug?
    Best regards Claudius
    PS: We consider to update to 2.5 is that a problem with our Lizenskey we
    bought?

    Hi again,
    I didn't notice that it worked with automatically generated tables!
    When I provide the tablename in the JDO-Metadata then the
    getValidTableName() method will be not used. Is that projected?
    I use FlatInheritanceMapping, so I want to control the mapping and the
    necessary joins through the tablenames...
    I look forward to your answer and be patient with me ;o)
    Best regards Claudius
    Claudius Gr__ver wrote:
    Hi Abe,
    I have extended com.solarmetric.kodo.impl.jdbc.schema.dict.DB2Dictionary:
    public class MyDB2Dictionary extends
    com.solarmetric.kodo.impl.jdbc.schema.dict.DB2Dictionary {
    public String getValidTableName(String name) {
    return "tolina."+name;
    As you can see I do not use getSchemaName() because KODO dont care about
    the
    com.solarmetric.kodo.impl.jdbc.DictionaryProperties = SchemaName=tolina
    property. Why is that so? What I have to do to get this property?
    I use kodo 2.4.3 SE (bought on 30.01.2003).
    When I run the Schematool it says that my Dictionary is used:
    [schematool] 10685 [main] INFO jdbc.JDBC - Using dictionary class
    "de.tolina.common.jdo.DB2Dictionary" to connect to "DB2/NT" (version
    "07.02.0006") with JDBC driver "IBM DB2 JDBC 2.0 Type 2" (version
    "07.02.0006")
    but it seems that the Schematool dont use my Dictionary because all tables
    will be placed in the default db schema! I proved that by some logs.
    Can you tell me what I made wrong?
    Abe White wrote:
    Sorry; I wasn't thinking. There's a much better workaround. Just
    override the appropriate methods of the DBDictionary for your database,
    and plug your new dictionary into Kodo. See the descriptions of the
    com.solarmetric.kodo.impl.jdbc.DBDictionary* configuration properties in
    the reference guide.
    p.s. You could also use metadata extensions on M-M fields to control the
    table name generated, but the above solution using the DBDictionary is
    much easier, since you just have to override one method (the
    getValidTableName() method, IIRC).

  • How to create table for XML schema-based Interface form

    Hi All,
    With tcode SFP to crate  a XML schema-based Interface form, how to create a defined table can be listed in "Data View"?
    Just like APAP Dictonary- Based Interface form, that we can drag  a defined table from data view to the panel.

    Hi,
    Just follow these steps:
    1. Create interactive form UI element in your view.
    2. Now provide Datasource and PDFSOURCE to it in form properties.
    3. Now give a template name prefix with 'Z' or 'Y'.
    4. Double click on it. It will prompt for interface name.
    5. Provide interface name prefixed with 'Z' or 'Y'.
    6. Click on Context button in the Pop up window and provide the node you have selected as DATASOURCE.
    7. Click ok and it will open the form designer.
    8. In this way you can create a XML Schema based Form.
    9. Activate the interface and design the form providing layout type and other details.
    Hope it will help.
    Regards,
    Vaibhav

  • Creating directory under specific schema

    What is the syntax to create a directory under a specific schema?
    Here is what I've tried and I get an error:
    CREATE OR REPLACE DIRECTORY test.utl_dir AS 'D:/utl_dir' ;
    Here is the error:
    Error starting at line 1 in command:
    CREATE OR REPLACE DIRECTORY rcdtpump.novus_dir AS 'D:/Novus/novus_dir'
    Error at Command Line:1 Column:36
    Error report:
    SQL Error: ORA-00905: missing keyword
    +00905. 00000 - "missing keyword"+
    *Cause:+
    *Action:+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You can't, directories are database wide objects, see:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5007.htm#i2061958
    ...+All directories are created in a single namespace and are not owned by an individual schema+...
    HTH
    Enrique

  • Create table from XML schema

    HI,
    is there any possibilty to create a relational table from a XML schema?

    Can you use a schema when we compose XML doc from Database tables?
    Actually, I'm using SQL Server (sorry, wrong forum). But, I thought a Java tool would have a solution for me.

  • Create tables in different database schemas using EJB 3 Entity Persistent

    Hi All,
    I would like to find out how to get the following tasks done using EJB 3.0 Java Entity Persistent:
    ( i ) Create tables in different schemas such as STUDENT under EDUCATION schema and table PATIENT in HOSPITAL schema. We can then reference them in SQL as EDUCATION.STUDENT and HOSPITAL.PATIENT.
    ( ii ) Reference these tables uniquely once they are created.
    There are no pre-existing tables or naming conventions that needs to be adhere to in this situation.
    I have no problem creating tables on the current schema in EJB 3.0 Java Entity Persistent.
    Any suggestions would be appreciated.
    Thanks,
    Jack

    Use the schema attribute of the Table annotation:
    package javax.persistence;
    @Target({TYPE}) @Retention(RUNTIME)
    public @interface Table
       String name( ) default "";
       String catalog( ) default "";
       String schema( ) default "";
       UniqueConstraint
    uniqueConstraints( ) default {};
    }

  • ORA-00600 problem when create XMLType table with registerd schema

    Hi,
    I am using Oracle9i Enterprise Edition Release 9.2.0.4.0 on RedHat Linux 7.2
    I found a problem when I create table with registered schema with follow content:
         <xs:element name="body">
              <xs:complexType>
                   <xs:sequence>
                   </xs:sequence>
                   <xs:attribute name="id" type="xs:ID"/>
                   <xs:attribute name="class" type="xs:NMTOKENS"/>
                   <xs:attribute name="style" type="xs:string"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="body.content">
              <xs:complexType>
                   <xs:choice minOccurs="0" maxOccurs="unbounded">
                        <xs:element ref="p"/>
                        <xs:element ref="hl2"/>
                        <xs:element ref="nitf-table"/>
                        <xs:element ref="ol"/>
                   </xs:choice>
                   <xs:attribute name="id" type="xs:ID"/>
              </xs:complexType>
         </xs:element>
    Does Oracle not support element reference to other element with dot?
    For instance, body -> body.content
    Thanks for your attention.

    Sorry, amendment on the schema
         <xs:element name="body">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="body.head" minOccurs="0"/>
                        <xs:element ref="body.content" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="body.end" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="id" type="xs:ID"/>
                   <xs:attribute name="class" type="xs:NMTOKENS"/>
                   <xs:attribute name="style" type="xs:string"/>
              </xs:complexType>
         </xs:element>

  • 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.

  • Create table with references pointing to values in a different schema

    Experts,
    Is it possible to create table in one schema with references pointing to column values in a different schema?
    Say, I have 2 schemas A and B
    A has employee table and and B has dept table, I want to run the below alter statement, will this work?
    ALTER TABLE A.EMP ADD (
    FOREIGN KEY (DEPT_ID)
    REFERENCES B.DEPT (DEPT_ID));
    I know there is no sense in doing this, still would like to know for making some temporary workaround.
    Regards,
    Sarvan
    Edited by: sarvan on Oct 21, 2011 12:30 AM

    Yes this is possible with right privilege:
    SQL> grant connect, resource to a identified by a;
    Grant succeeded.
    SQL> grant connect, resource to b identified by b;
    Grant succeeded.
    SQL> connect b/b
    Connected.
    SQL> create table p (x int primary key);
    Table created.
    SQL> grant references on p to a;
    Grant succeeded.
    SQL> connect a/a
    Connected.
    SQL> create table c (y int);
    Table created.
    SQL> alter table c add foreign key (y) references b.p(x);
    Table altered.

  • How to create tables and views and procedures in other users as one

    HI to all,
    I am having a user named vijay and i am trying to create the tables in user srini as user vijay
    in user vijay i'm having tables
    1. company
    2. department
    i wrote one procedure
    create or replace procedure sp_createobjects{short_name in varchar2}
    {my openbracket key is not working so that i put open braces here}
    as
    cursor table_name is select object_name from dba_tables where object_type = 'TABLE';
    var_table_name varchar2{1000};
    begin
    open table_name;
    loop
    fetch table_name into var_table_name;
    execute immediate 'create table ' || short_name || '.' || var_table_name || ' as select * from '||var_table_name;
    end loop;
    end;
    the procedure is created sucessfully. but when i am trying to execute the procedure it is throwing the error as insufficient privileges.
    my 2nd question is how to create the procedures into the other user?
    Thanks in advance

    First of all, your query "from dba_tables where object_type = 'TABLE'" returns all tables, not just the tables of the user vijay.
    So there are two possibilities, you may be getting the error because you cannot select from another user's table or you may be getting the error because you cannot create a table under the user srini. To create tables in another schema you need the "create any table" privilege.

  • Monitor all tables of a schema

    Hi All,
    I would like to monitor all the tables under a schema, hoping to have an alert (in email) if there is decrease in rows of any table owned by the schema (delete rows).
    My db version is 11.1.0.6
    Please share your suggestions on how it can be done, also if possible with some good examples
    Thanks,
    Sathish

    user13158979 wrote:
    can i monitor all the tables owned by the schema using above method? FGA requires object_name need to be monitored, in this case how can we use it?
    eg:
    DBMS_FGA.ADD_POLICY (object_schema => 'scott', object_name=>'emp', policy_name
    => 'mypolicy1', audit_condition => 'sal < 100', audit_column =>'comm, credit_
    card, expirn_date', handler_schema => NULL, handler_module => NULL, enable =>
    TRUE, statement_types=> 'INSERT, UPDATE');You can do ;
    SQL> conn sys as sysdba
    Connected.
    SQL> SHOW PARAMETER AUDIT
    NAME                         TYPE      VALUE
    audit_file_dest                string      /home/oracle/app/oracle/admin/
                                   ORAWISS/adump
    audit_sys_operations               boolean      FALSE
    audit_syslog_level               string
    audit_trail                    string      DB
    SQL> AUDIT ALL BY ORAWISS BY ACCESS;
    Audit succeeded.
    SQL> AUDIT EXECUTE PROCEDURE BY ORAWISS BY ACCESS;
    Audit succeeded.
    SQL> AUDIT SELECT TABLE, UPDATE TABLE, INSERT TABLE, DELETE TABLE BY ORAWISS BY ACCESS;
    Audit succeeded.
    SQL> conn orawiss
    Enter password:
    Connected.
    SQL> insert into orawiss.test_audit values(1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> delete from orawiss.test_audit;
    1 row deleted.
    SQL> commit;
    Commit complete.
    SQL> conn sys as sysdba
    Connected.
    COLUMN username FORMAT A10
    COLUMN owner    FORMAT A10
    COLUMN obj_name FORMAT A10
    COLUMN extended_timestamp FORMAT A35
    SQL>
    SELECT username,
           extended_timestamp,
           owner,
           obj_name,
           action_name
    FROM   dba_audit_trail
    WHERE  owner = 'ORAWISS'
      ORDER BY timestamp;
    USERNAME   EXTENDED_TIMESTAMP                 OWNER       OBJ_NAME   ACTION_NAME
    ORAWISS    08-AUG-11 09.59.48.837419 PM +02:00 ORAWISS       TEST_AUDIT INSERT
    ORAWISS    08-AUG-11 09.59.59.645848 PM +02:00 ORAWISS       TEST_AUDIT DELETE
    SQL>

  • How to move one table to other schema

    Hi;
    imagine i have one schema A and i create table in this schema as test. Now i have one other schema,name is B. I wanna move my A.test table to B.test2
    How i can do it?
    thanks

    Following discussion might help How to move the table to the another schema?

Maybe you are looking for