Creating a new schema

This may sound really simple, but I would like to create a new
schema within my 9i database. How do you do that? I have found
how to add just about everything else, but not schemas.
Thanks

Hi,
For create a new user....
You must have privileges to create a user or you must connect to SYSTEM or SYS user.
Regards,
Sailaja

Similar Messages

  • Creating a new schema in a Logical Standby Database

    Hi All,
    I am experimenting with logical standby databases for the purpose of reporting, and have not been able to create a new schema in the logical standby database - one of the key features of logical standbys.
    I have setup primary and logical standby databases, and they seem to be running just fine - changes are moved from the primary to the standby and queries on the standby seem to run ok.
    However, If I try to create a new schema on the logical standby, that does not exist on the primary, I get "ORA-01031: insufficient privileges" errors when I try to create new objects.
    Show below are the steps I have taken to create the new schema on the logical standby. Any help would be greatly appreciated.
    SYS@UATDR> connect / as sysdba
    Connected.
    SYS@UATDR>
    SYS@UATDR> select name, log_mode, database_role, guard_status, force_logging, flashback_on, db_unique_name
    2 from v$database
    3 /
    NAME LOG_MODE DATABASE_ROLE GUARD_S FOR FLASHBACK_ON DB_UNIQUE_NAME
    UATDR ARCHIVELOG LOGICAL STANDBY ALL YES YES UATDR
    SYS@UATDR>
    SYS@UATDR> create tablespace ts_new
    2 /
    Tablespace created.
    SYS@UATDR>
    SYS@UATDR> create user new
    2 identified by new
    3 default tablespace ts_new
    4 temporary tablespace temp
    5 quota unlimited on ts_new
    6 /
    User created.
    SYS@UATDR>
    SYS@UATDR> grant connect, resource to new
    2 /
    Grant succeeded.
    SYS@UATDR> grant unlimited tablespace, create table, create any table to new
    2 /
    Grant succeeded.
    SYS@UATDR>
    SYS@UATDR> -- show privs given to new
    SYS@UATDR> select * from dba_sys_privs where grantee='NEW'
    2 /
    GRANTEE PRIVILEGE ADM
    NEW CREATE ANY TABLE NO
    NEW CREATE TABLE NO
    NEW UNLIMITED TABLESPACE NO
    SYS@UATDR>
    SYS@UATDR> -- create objects in schema
    SYS@UATDR> connect new/new
    Connected.
    NEW@UATDR>
    NEW@UATDR> -- prove ability to create tables
    NEW@UATDR> create table new
    2 (col1 number not null)
    3 tablespace ts_new
    4 /
    create table new
    ERROR at line 1:
    ORA-01031: insufficient privileges
    NEW@UATDR>
    NEW@UATDR>

    HI Daniel,
    I appreciate your quick response.
    My choice of name may not have been ideal, however changing new to another name - like gav - does not solve the problem.
    SYS@UATDR> connect / as sysdba
    Connected.
    SYS@UATDR>
    SYS@UATDR> select name, log_mode, database_role, guard_status, force_logging, flashback_on, db_unique_name
    2 from v$database
    3 /
    NAME LOG_MODE DATABASE_ROLE GUARD_S FOR FLASHBACK_ON DB_UNIQUE_NAME
    UATDR ARCHIVELOG LOGICAL STANDBY ALL YES YES UATDR
    SYS@UATDR>
    SYS@UATDR> create tablespace ts_gav
    2 /
    Tablespace created.
    SYS@UATDR>
    SYS@UATDR> create user gav
    2 identified by gav
    3 default tablespace ts_gav
    4 temporary tablespace temp
    5 quota unlimited on ts_gav
    6 /
    User created.
    SYS@UATDR>
    SYS@UATDR> grant connect, resource to gav
    2 /
    Grant succeeded.
    SYS@UATDR> grant unlimited tablespace, create table, create any table to gav
    2 /
    Grant succeeded.
    SYS@UATDR>
    SYS@UATDR> -- show privs given to gav
    SYS@UATDR> select * from dba_sys_privs where grantee='GAV'
    2 /
    GRANTEE PRIVILEGE ADM
    GAV CREATE TABLE NO
    GAV CREATE ANY TABLE NO
    GAV UNLIMITED TABLESPACE NO
    SYS@UATDR>
    SYS@UATDR> -- create objects in schema
    SYS@UATDR> connect gav/gav
    Connected.
    GAV@UATDR>
    GAV@UATDR> -- prove ability to create tables
    GAV@UATDR> create table gav
    2 (col1 number not null)
    3 tablespace ts_gav
    4 /
    create table gav
    ERROR at line 1:
    ORA-01031: insufficient privileges
    GAV@UATDR>

  • Creating a new schema or adding some more tables in existing schema ??

    Hi All,
    We have a new requirement from the client asking us to include a few new functionalities(pages--- all together a new application has to be embedded into our application) in our application. By adding these new functionalities, the number of hits to our application can be doubled.
    As per the above requirement, I would like to know that whether to create a new schema or to create some new tables in the existing database for the new functionalities.
    By what way, can I handle the number of requests in a better way? by creating the new schema or by creating the new tables for the new functionalities.
    Also I would like like to know what kind of factors will differ between creating a new schema or creating new tables for the new functionalities in the existing schema.
    FYI... We are using Cold Fusion as front-end and Oracle 9i for back-end

    This the forum for Oracle's SQL Developer tool. You will get better answers in the Database - General forum.
    The short answer is that from a performance point of view there will be no difference. The issues are more to do with maintenance.

  • How to create a new schema ?

    Hi,
    Can someone tell me how to create a new schema please ?
    What i need as user & rights ?
    Thanks

    Hello,
    -if i don't have neither sys nor system access, can i create the user "jward" with the oracle user ?You need to be connected to the database to a User who already has the CREATE USER Privilege.
    - once the new user created and granted,do i have to run the create schema statement under sqlplus ?It's not necessary.
    A Schema is a collection of Objects (Tables, Index, ...) so you can create them with their own CREATE
    Statements.
    But, you may include these statements into a CREATE SCHEMA statement so that if any error occurs
    all the statements are rollbacked.
    Please, find enclosed some links about this:
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/admusers.htm
    http://download.oracle.com/docs/cd/B12037_01/server.101/b10759/statements_6013.htm
    Hope this help.
    Best regards,
    Jean-Valentin

  • How to create a new schema & tablespaces

    hi ,
    how do i created a new schema & tablespaces using 10g database express edition ?
    tks & rdgs

    If you log into sqlplus as the sysdba for your XE database, you can created a schema user here.
    Note that database users and apex workspaces are synonymous with each other in XE and hence once the user is created, so is the workspace.
    Create user your_user identified by your_password;
    grant connect, resource to your_user;
    Regards
    Duncan

  • Create a new schema.

    Hi Friends,
    I am using Oracle 11g database. I need to create a schema which needs below requirements...
    - CANNOT create table, views, packages or any subjects.
    - NO ANY tables granted to this schema by default.
    Below is my answer, correct me if am wrong.
    conn '/as sysdba'
    create user test identified by test;
    grant create session,select any dictionary;
    commit;
    Please guide me..
    Rgds

    looks fine, CREATE SESSION will allow it only to log in
    why do you need the SELECT ANY DICTIONARY privilege?
    edit: sorry, just noticed, the syntax is wrong
    grant <privilege> to <username>;
    (commit is not needed anyway)

  • Create a new schema from existing schema

    Hi, I'm wondering whether there is a way of create a schema from
    existing one? Could it done through SQL statement or have to go
    through some sort of tools? Please drop me a few words if you
    know the answer. Thanks.

    Hi,
    U can do that in a few steps.
    First create the User.
    Then Go to the Source User and grant him create any table privs.
    Then write a Sql Stmt to generate the necessary scripts and run it.
    The other way would be to grantr the newuser select on all the tables and then run that script from his account.
    Regards,
    Ganesh R

  • Created a new schema user cant manage privileges

    Hi,
    i have created a schmema (user) i want it to do everything on itself (update,delete etc.) but not other schemas.
    what roles/privileges should i grant ?

    No, with these two roles the user can pretty much do everything to it's own objects.
    The user can create, alter, drop table/index
    The owner of schema has full access to it's own objects, therefore, the user can update, delete, insert etc..

  • Creating views in a new schema to access certain rows of tables in source schema

    Hi,
    Oracle 10.2.0.4
    We are trying to mask certain data from some users. My suggestion is that we create a new schema view_schema on the same instance where we have source tables say in source_schema.
    We then create views in view_schema as below
    CREATE VIEW AS SELECT * FROM source_schema.table where COLUMN_n = 'XYZ';
    we then grant SELECT on these views to a role and assign new users that role to be able to see the viewed data.
    So the questions below.
    We can create views to look at data in another schema WITHOUT giving SELECT permissions directluy on source_schema.tanle?
    This will work and there is no need to create synonyms etc
    WE can manage users and views much easilier
    Does this make sense and would that be better than selecting views with say table_name_view in source schema for this purpose and even creating synonyms for these views with the same tanle names in sourece_schema?
    Thanks

    905989 wrote:
    Hi,
    Oracle 10.2.0.4
    We are trying to mask certain data from some users. My suggestion is that we create a new schema view_schema on the same instance where we have source tables say in source_schema.
    We then create views in view_schema as below
    CREATE VIEW AS SELECT * FROM source_schema.table where COLUMN_n = 'XYZ';
    we then grant SELECT on these views to a role and assign new users that role to be able to see the viewed data.
    So the questions below.
    We can create views to look at data in another schema WITHOUT giving SELECT permissions directluy on source_schema.tanle?
    This will work and there is no need to create synonyms etc
    WE can manage users and views much easilier
    Does this make sense and would that be better than selecting views with say table_name_view in source schema for this purpose and even creating synonyms for these views with the same tanle names in sourece_schema?
    Thanks
    1. You can create the view in another schema (first granting privileges to the view schema) without granting privileges from the source schema
    2. You probably want to create public synonyms for the view(s).  You can refer to the view as schema.view but this is cumbersome
    3. I am not sure about management being easier but added complexity should not be too bad.  Write documentation describing how everything works and the object involved.
    Another, more complicated but more powerful possibility is to use row level security also known as virtual private database - if you have the license.  You create a profile for a table and a procedure to generate WHERE clauses to filter any query against the table and columns defined in the profile.  Again, you need the license to do this.

  • SQL QUERY to create new schema in Oracle 10g Express

    Can anyone provide the SQL query to create a new schema in Oracle 10g Express edition.

    Can anyone provide a SQl query to create a
    schema/user named 'test' with username as 'system'
    and password as 'manager'system user is created during database creation, it's internal Oracle admin user that shouldn't be used as schema holder.
    In Oracle database, Oracle user is schema holder there's no seperate schema name to be defined other than username.

  • Beginners tip: create new schema without SQL command

    Hey, i know this sounds so beginner's, but can i create a new Schema in which I can create tabels and tables.. without using SQL commands, I mean from the GUI of Oracle 9i?

    When I try to create any table under the new Schema (User) i keep on getting the
    message: No Privellage on USERS namespace...this is why us old lags on so down on GUIs. Because they generate the SQL for you you will acquire no understanding of how the database really works. Honestly you would be better off reading the concepts guide and writing some raw SQL for yourself.
    Cheers, APC

  • Create new schema,table

    Hi,
    I want to add some labels and columns
    in the EBS page
    for that
    and want to take input from user and save inputed data in to database
    for that purpose
    I need to create one new scheme and table
    some VO and CO extends
    how can i do it?

    no reponse

  • Create new schema (my_schema in addition to portal30)

    I have a working portal that uses the default portal30 schema
    underwhich I have a huge repository of pages, applications and
    content-areas.
    Now I want to create a new schema(my_schema) and
    selective "import" few objects(pages, apps and content-areas)
    into this new "my_schema".
    How do I do this? Is there a white paper or doc of some sort?
    Any pointers will be greatly appreciated.
    Thanks,
    Shiva.

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • Creating a new application in E-BS

    Hello,
    Not sure, if OAF forum is the right one to ask this question, but as we have been customizing EBS only using OAF, asking it here.
    Are there any guidelines in deciding whether to create a new application or not during EBS customization. I mean, even if you add
    a new custom table to EBS we generally create a new schema and create it there, similarly how do we decide whether we should
    be creating a new application or not for the customizations.
    regards, Yora

    If you are writing custom code from scratch, it is recommended that it be registered to a custom application. If you are only doing personalizations, then a custom application is not necessary
    Integrating Custom Applications with Oracle Applications Release 11i          (Doc ID 176852.1)
    Step By Step Guide to Creating a Custom Application in Applications 11i          (Doc ID 216589.1)
    HTH
    Srini

  • Error creating a new Hyperion Planning Application

    Hi Everybody,
    I'm trying to create a new application in Hyperion 9, but I have a problem because when I configure the application in the wizard, that show me an error "An error ocurred while processing this page. Check the log for details".
    When I review EAS I see the application but database is not create and the application in Planning doesn't appear.
    I tried checking logs but I never found something (No error in the app server or Logs of application).
    The steps that I followed:
    1. Create a new schema.
    2. Configure Datasource with new schema.
    3. Configure App with wizard.
    Regards.

    First of all you will only see the Application in EAS, the databases are not created until you create them from within planning.
    What I suggest is you delete the application in EAS otherwise it will keep failing, then run planning in the foreground and not as a service, so start it up from the start menu, this way an errors will be outputted to the command window.
    Then try again creating an application.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • How do I save an MP3 into iTunes using an iPad?

    I'm using an iPad 1 and there's an MP3 on a web site I like. How can I save it to iTunes?

  • Can't able to Access the internet in my Windows server 2008

     I installed windows server 2008 server in my machine, it has only windows sever 2008 single OS.        Now my problem is, i am not able to Access internet, I tried some intel softwares, to install Ethernet drivers, but no use. What i have to do now.

  • Word insert pdf object problem

    Adobe 8.1 and Word 2003 sp3 are installed on XP64 box. From word, when we do insert > object > Adobe Acrobat Document (Create New) we get the error: This object was created in AcroExch. This application is not available to open this object. Make sure

  • Insecurity of Keychain Access: "secure" notes visible during authentication

    Sorry if this has been discussed before, but I'm not keen on wading through 137 pages of discussions. I recently discovered Keychain Access' ability to create "secure notes," and thought this would be a wonderful way to keep my serial numbers, bank a

  • Apps shuts down automatically and safari froze

    when i use applications like werule , warchess, or others, apps just shut down automatically and shows the homescreen. is there a problem with the memory? or is this a normal behavior after using apps just for an hour and so? and when it happens safa