Confusion over user and schema

hi all i am new to oracle
as far as my understanding goes in oracle for every user by default an schema
is created where tables and other objects are granted to the user please correct me if i am wrong
now my problem is that i created user but its not getting reflected in the schema
shouldnt the schema get created automatically
i am confused what should i check for
thanks in advance

hello,
First of all you should know the terminology.
Schema -> Collection of objects (Tables, Views, Indexes, Sequences etc.,)
Example: Scott/tiger (Is a sample oracle user) In database terminology it is named as Scott's Schema.
When you create a new user in oracle the user would be empty with no objects. Unless you have previleges to create objects.
SRI>create user junk identified by junk
2 default tablespace users
3 temporary tablespace temp;
User created.
Elapsed: 00:00:00.15
SRI>conn junk/junk@sri
ERROR:
ORA-01045: user JUNK lacks CREATE SESSION privilege; logon denied
Warning: You are no longer connected to ORACLE.
SRI>conn sri/sri@sri
Connected.
SRI>grant connect to junk;
Grant succeeded.
Elapsed: 00:00:00.03
SRI>conn junk/junk@sri
Connected.
SRI>select * from tab;
no rows selected
SRI>create table x(id number(10));
create table x(id number(10))
ERROR at line 1:
ORA-01031: insufficient privileges
Elapsed: 00:00:00.00
SRI>conn sri/sri@sri
Connected.
SRI>grant resource to junk;
Grant succeeded.
Elapsed: 00:00:00.01
SRI>conn junk/junk@sri
Connected.
SRI>create table x(id number(10));
Table created.
SRI>select * from tab;
TNAME TABTYPE CLUSTERID
X TABLE
Hope this info helps you to start with :)
cheers
-Sri

Similar Messages

  • Can i drop the connection user and schema used for Accociate repository

    Hi
    I have created a connection , user and schema and Associated repository to it then migrated a database from diffrent product. to oracle
    using the above mentioned connection, user ,schema and asscociated repositroy.
    11g XE.
    can i delete it after the migration.
    yours sincerely.

    Yes you can !. Permission to drop those artifacts is granted except the target schema where the converted objects are. The migration repository user/connection can be dropped.

  • Move users and schemas from one instance to another

    Hi, I'm starting out in a DBA position.
    My task at the moment is to move users and schemas from one instance to another.
    We're using 9.2.0.7.
    I have concluded that the following steps are necessary to move users and schemas from one instance to another :
    1. Create the needed tablespaces.
    2. Create the users that exist in the source instance
    3. Use exp to do a full export
    4. Use imp to re-create the schemas from the output file created by exp in step 3
    Am I missing anything ?
    Thanks,
    Gabriel

    3. Use exp to do a full exportInstead of doing a FULL export just export the users you want to move and imp that in other database using FROMUSER & TOUSER parameter.
    Daljit Singh

  • Restore single user and schema

    Hi,
    We have a MaxDB 7.5 server. I would like to be able to restore a single user and associated schema from the nightly backup.
    Does anyone know a way of doing this?
    Thanks,
    Andrew.

    Nope, there is no function for that.
    MaxDB does database backups and database restores.
    Seen from the point of view that the whole database is a defined statement of 'truth' it does not even make sense to do "schema"-recoveries.
    Anyhow, since very often different schemas are actually used to store different databases in them, there is of course an option for that.
    Recover the backup to a second instance.
    Export the schema you want.
    Import the schema to the target database.
    Export/Import can easily be done with the loadercli.
    And, before I forget - MaxDB 7.5 is pretty much gone. MaxDB 7.6 and 7.7 are available for free download for a while now. So if you don't need AWE you may want to give these current versions a try.
    regards,
    Lars

  • Question: How to create new user and schema in 11g?

    Who can give me answer how to create a new user and schedule?
    I had installed oracle 11g DB and oracle client in my windows OS. I found in the 11g there is no enterprise manager console with new version. It is different from with oracle 10g.So i don't know how to create it new user.
    I had created new DB instance, but i don't how to create a user on that. Who can give me a hand for that? I hope one oracle experenice expert give my answers.
    Thanks a lot!
    Edited by: user774630 on Oct 27, 2008 10:01 PM
    Edited by: user774630 on Oct 27, 2008 10:09 PM

    Hi,
    I am not sure that which option you are talking about? Are you using the EMCA,http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/emca.htm#SUTIL800] to create the new repository for the EM? If not the command line than the other only way is to use DBCA(Database Configuration Assistant).I believe you are talking about that. Yes ,if the message is coming creating the repository than after wards you can login to the EM. You would get the port no of the EM's HTTP port from the $OH/install/portlist.ini file.
    HTH
    Aman....
    Edited by: Aman.... on Oct 28, 2008 11:36 AM
    Gave up, link insertion doesn't work.

  • NEED HELP!!!!! Create Tablespace, User, and Schema

    Hello Everyone,
    I am kind of confuse with Oracle 10g since i am doing it first time. I am trying to accomplish to create a user for my WORLD database and by using Report Builder 10g to generate reports.
    I have been told that i need to create a Tablespace in my WORLD database in order to log-in to the Report Builder. When I am trying to log in to Report Builder i have to enter
    UserName:xxx123
    Password:password
    Database:@@@.WORLD -- where you see @@@ i have to put my tablespace where i have to store my all tables and assign user to this table space that i have been told so far.
    so here what i did.
    I create a new database name WORLD
    created New tables Space name mySpace
    but when i was tyring to create table through Enterprise Manager
    On create table screen i enter table Name EMPLOYEE
    ask me to select Tablespace : mySpance
    ask me to select Schema: (when i scroll down i saw my username) ??? so I am kind of confuse how do i make this stuff work?
    Can anyone give me simple direction or steps that i need to follow.
    I am trying to use Report Builder10g and using Oracle Database to access data.
    Please anyone can give me suggetion asap. Its vrey important for me since i just got new entry level job.
    Thank You

    I have two TNSNAMES.ORA file
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora90\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    OEMREP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = OEMREP.broadvoice.com)
    WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = world)
    DEV1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = Dev1)
    DEVAM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = devam)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Also, I checked in Services that my oracleserviceWORLD was running. So, my database run when i start my computer.
    Please let me know if there is anything wrong. I am very thankful to you that you are helping me out. I do appreciate your kind help.
    Thank You

  • Confusion over user IDs

    I just tried the form-building lesson in Chapter 4 of the 2-day tutorial. Previously I had had difficulty running the applications I'd generated because the manual tells me to enter a userid/ password of demo/<workspacename>, a combination which refused to work for me and which I established as the result of a TAR was invalid. In fact it was confirmed that this is incorrect in the pdf manual - I was supposed to enter my developer userid and system-generated password.
    So when I went to run the form I was surprised to see the following text on the login screen:
    "By default, two accounts are created in the Sample Application: demo and admin. The default password for both accounts is the all lowercase name of the workspace in which this application is located"
    So I tried using demo / <workspacename> and this time it worked. I then went back to run the drill-down reports application and I don't get the above text on the login page, and demo / <workspacename> still doesn't work here. What gives?
    Andy

    hello,
    First of all you should know the terminology.
    Schema -> Collection of objects (Tables, Views, Indexes, Sequences etc.,)
    Example: Scott/tiger (Is a sample oracle user) In database terminology it is named as Scott's Schema.
    When you create a new user in oracle the user would be empty with no objects. Unless you have previleges to create objects.
    SRI>create user junk identified by junk
    2 default tablespace users
    3 temporary tablespace temp;
    User created.
    Elapsed: 00:00:00.15
    SRI>conn junk/junk@sri
    ERROR:
    ORA-01045: user JUNK lacks CREATE SESSION privilege; logon denied
    Warning: You are no longer connected to ORACLE.
    SRI>conn sri/sri@sri
    Connected.
    SRI>grant connect to junk;
    Grant succeeded.
    Elapsed: 00:00:00.03
    SRI>conn junk/junk@sri
    Connected.
    SRI>select * from tab;
    no rows selected
    SRI>create table x(id number(10));
    create table x(id number(10))
    ERROR at line 1:
    ORA-01031: insufficient privileges
    Elapsed: 00:00:00.00
    SRI>conn sri/sri@sri
    Connected.
    SRI>grant resource to junk;
    Grant succeeded.
    Elapsed: 00:00:00.01
    SRI>conn junk/junk@sri
    Connected.
    SRI>create table x(id number(10));
    Table created.
    SRI>select * from tab;
    TNAME TABTYPE CLUSTERID
    X TABLE
    Hope this info helps you to start with :)
    cheers
    -Sri

  • Confused over photostream and I cloud, how to move my pictures

    Hi, 
    I have an iPhone 4S and an iPad 2.  Apple store sold me cloud storage over a year ago as my phone needed to be replaced under warranty and I had to back up.  I paid to continue after the year was up. 
    I am horribly confused however as I apparently have 15GB storage I have paid for with 10.6GB available and yet I cannot change to iOS 7 as there isn't enough memory in my phone. 
    I have synced to iTunes and can't get to my photos which are in photo-stream.  Ideally I would like to take all of my photos in photostream and save them onto my PC but I don't know where they are in order to do this.
    Any help much appreciated as I'm about to throw the lot out of the window having read what feels like the entire apple support community and getting more and more confused.
    Many thanks
    Lisa

    As I think you have realised, you need space on your phone for the update.
    Welcome to the Apple Community.
    My webpage here might help you understand the various ways photos can be saved on your device and some of the advantages and disadvantages associated with each method.

  • Grant details required for user and schema

    Hi
    I have Oracle version - 10.2.0.4.0
    We have Schema A (Lot of objects exist) and User B (No objects exist - acts as application user to access objects in other schema).
    I have listed below doubts.
    1) I want to know the method to find the list of users have access to objects in Schema A and privileges granted for the objects in Schema A
    2) I want to know the method to find the list of grants provided to the schema objects to the user B

    user1368801 wrote:
    Thanks ajallen.
    It really helped me.
    one more question. I think DBA_TAB_PRIVS gives details for tables only right.
    What about other objects like procedures, views etc. Go back to the Reference Manual and re-read the description of DBA_TAB_PRIVS. Re-read the specific description of TABLE_NAME.
    >
    Actually I am exporting 3 schemas (A,B,C) from production and importing them to test environment (A1, B1,C1) using fromuser and touser option.
    Now I have to properly remap all the privileges, grants, synonyms etc.
    There are so many objects and I am wondering how to remap properly.
    It may be simple, as a newbie, your direction will be more helpful

  • Confusion over script and how to make video play

    Hi folks,
    I have created a SWF file that includes video, audio and
    text. All three parts work fine when I play the SWF file, although
    I would like to know what code I should put to be able to stop the
    audio from playing.
    But my main problem is once I have the SWF file uploaded to
    my site. The audio and text part works fine, but the video of a
    robot comedy performance will not play. I am not sure why this is,
    but when I uploaded the file to Dreamweaver there was a Script file
    called AC_RunActiveContent.js that automatically downloaded along
    with a file called .htaccess. I uploaded both these files too, but
    the video part of the SWF file still would not play. I have tried
    the SWF file in Mozilla, IE7 and Flock, but no luck. I also tried
    pasting the AC_RunActiveContent.js into my Dreamweaver page and
    uploaded that, but that did not work either. I just got all the
    code showing. For those who want to see the SWF file for themselves
    the link is
    http://www.marykingmedia.com/manga2/index.htm
    For those curious about the AC_RunActiveContent.js code, I
    will paste below. I am not sure if this is Actionscript or not. If
    it is, I do not know which Actionscript it is.
    But I have absolutely no idea what the problem is, or what I
    am supposed to do here. I would be grateful for any help you can
    give me. Keep explanation as simple as you can because I am not
    terribly tech savvy.
    Thanking you all.
    Mary
    p.s./ I am using Dreamweaver CS3, if that means anything

    If you're playing the video from Videos and TV application then it should work.
    640K Should be enough for everybody
    El_Loco Nokia Video Blog

  • Confusion over J2SE and J2SE SDK

    Hi,
    I understand that J2SE (Java2 Platform, Standard Edition) is an abstract specification from Sun and J2SE SDK is Sun's implementation of J2SE platform.
    If Sun is releasing a new version of their J2SE platform, what are the things from the below list that can be changed and how.
    1. The Java Virtual Machine Specification
    2. Java API
    3. The Java Language Specification
    For example, I notice that for every new release, only the API version is changed where as the The Java Languge and JVM specifications remained the same since very long. Let us say that a new keyword is added, shouldn't the JVM spec and the Java Language Spec change??
    Where can I get the release notes of J2SE (not J2SE SDK)?
    Thanks,
    Suresh

    Hi ,
    U can get the release notes from
    http://java.sun.com/j2se/1.4/relnotes.html
    Hi,
    I understand that J2SE (Java2 Platform, Standard
    Edition) is an abstract specification from Sun and
    J2SE SDK is Sun's implementation of J2SE platform.
    If Sun is releasing a new version of their J2SE
    platform, what are the things from the below list that
    can be changed and how.
    1. The Java Virtual Machine Specification
    2. Java API
    3. The Java Language Specification
    For example, I notice that for every new release, only
    the API version is changed where as the The Java
    Languge and JVM specifications remained the same since
    very long. Let us say that a new keyword is added,
    shouldn't the JVM spec and the Java Language Spec
    change??
    Where can I get the release notes of J2SE (not J2SE
    SDK)?
    Thanks,
    Suresh

  • What is difference btw schema.core.xml and schema.user.xml in OVD

    Hi
    New to OVD, I'm looking at Oracle's OVD configuration properties Docoument
    I'm confused with list of schema files on OVD especially difference between schema.core.xml and schema.user.xml
    In the oracle document it mentioned  as below.
    Typically, the last file identified is schema.user.xml. Any and all changes to schema are applied to the schema.user.xml file to ensure standard files, such as schema.core.xml, remain unchanged between releases, but can also be virtually modified by having the changes in schema.user.xml override default-shipped schema in schema.core.xml.
    If you are installing a manufacturer supplied schema (in DSML form), identify this file in the second to last file in the list of schema files. This will protect the distributed manufacturer file from modification while allowing local customization, which is then stored in schema.user.xml.
    Based on above two paragaraphs i came to one understanding but i just want to hear from you what exactly its trying to say about those two files.
    Not sure what exactly above mean can someone explain lettle in detail

    Hi,
    The LDAP schema used by OVD is shipped as  several XML files such as schema.core.xml, schema.cosine.xml, schema.inetorperson.xml, schema.nis.xml etc. depending on in which RFC the attribute and object classes are defined.
    All changes to these schemas (if any) are always applied to schema.user.xml, so this file contains all the custom attribute types & objetclasses.
    Hope this clarifies a bit
    Sylvain
    When closing a thread as answered remember to mark the correct and helpful posts to make it easier for others to find them

  • Differences between Roles, Schemas, Users and Logins.

    I need differences between Roles, Schemas, Users and Logins. Can anyone help me. Thanks in advance

    Roles:
    I think of creating roles in the database to group users of like
    function.  Roles are granted certain permissions in the database.  You
    should become familiar with the fixed database roles since these will be
    utilized once you start creating users within the database.  Also, once
    you see the type of permissions that are granted to each role, is makes
    more sense.
    Schema: there can be several schemas in a database,
    which will house different types of objects such as tables, indexes,
    stored procedures, functions,  etc.  Users own schemas.  Looking into
    the AdventureWorks database illustrates this concept, with several
    schemas like HR, Production, etc.
    Login: Think about login as
    gaining access to the SQL Server instance.  If a user account is not
    granted any permissions within the instance, you basically just were
    able to unlock the door and enter the room, by creating a user you then
    grant access to the database objects or principals, and can begin to
    work with them. 
    Users:  Users own schemas, and as such will be
    able to manipulate the objects they own.  Some of the manunipulations
    are very permissive, such as creating tables, indexes, stored
    procedures, functions, etc.  These are developers and administrators.
    Users
    are created and granted permissions for application use, which will
    have select, update, insert, and delete and execute permissions  to a
    finite set of objects in the schema, for which the application will need
    to function properly.
    In a client server database, as an
    example, of the structure.  Roles were defined which provides the
    permissions to the database objects in the database, which only has one
    schema 'dbo'. One SQL server login was created with the same username,
    and dbo is the assigned default schema, and the roles assigned to that
    username. 
    In the application, each specific user is given there own
    "application" login which is mapped to the one defined sql server
    login.
    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

  • Firefox users cannot presently exercise choice, to opt-in or out of "data collected for improving services." As a result, Firefox is constantly dialing home, sometimes four times a day or more up to 48 times a day. There is some over-stepping and redunda

    I understand the charter on this is to "check-in" once every time the program is turned on, and then once every 6 hours after that, or, once every 24 hours presumably. But the phone-home-effect is over-stepping these basic parameters. If a user turns their browser off and then on, Firefox is still obligated to "check-in" even if it just checked in 3 minutes prior. If the coding is not pre-designed to overstep, or act excessively in a redundant focus, the instance of once every six hours or once every 24 hours, is still overmuch if a user has been doing this (non-voluntarily-participating) for 9 months or longer.
    == This happened ==
    Every time Firefox opened
    == This started when Firefox took up the initiative of "improving service. to end users" or similar idea, making the web safer for novice users, etcetera.

    Opening question was truncated. Should read: "Firefox users cannot presently exercise choice, to opt-in or out of "data collected for improving services." As a result, Firefox is constantly dialing home, sometimes four times a day or more up to 48 times a day. There is some over-stepping and redundancy here. It would seem the practice of "improving service" has been accomplished with as much information as Mozilla has gathered in the last 6-18 months about its users habits. '''Isnt it about time to give users the option to opt out of that now that most the heavy liftiing has been accomplished?'''"

  • How to export a user and their schema from one 10g database to another?

    Hi,
    I would like to export a user and their entire schema from one 10g database to another one. How do I do this?
    thx
    adam

    If you want to export a user and the schema owned to the user, and import to the same user in a different database, or a different user in the same database, you can use the exp and imp commands as described in the Utilities manual.
    These commands are very versatile and have a lot of options - well worth learning properly. To give you a simplistic shortcut, see below - I create a user 'test_move', create some objects in the schema, export, create a new user in the database 'new_move' and import.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:46:54 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user test_move identified by test_move;
    User created.
    SQL> grant create session, resource to test_move;
    Grant succeeded.
    SQL> connect test_move/test_move
    Connected.
    SQL> create table test (x number);
    Table created.
    SQL> insert into test values (1);
    1 row created.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> exp system/????? file=exp.dmp owner=test_move
    Export: Release 10.2.0.1.0 - Production on Sat Mar 11 21:48:34 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user TEST_MOVE
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user TEST_MOVE
    About to export TEST_MOVE's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export TEST_MOVE's tables via Conventional Path ...
    . . exporting table                           TEST          1 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:49:23 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user new_move identified by new_move;
    User created.
    SQL> grant create session, resource to new_move;
    Grant succeeded.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> imp system/????? file=exp.dmp fromuser=test_move touser=new_move
    Import: Release 10.2.0.1.0 - Production on Sat Mar 11 21:50:12 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    . importing TEST_MOVE's objects into NEW_MOVE
    . . importing table                         "TEST"          1 rows imported
    Import terminated successfully without warnings.
    oracle@fuzzy:~>                                                       If moving between databases, remember to set the SID properly before the import. If keeping the same userid, skip the from/to stuff in the import.
    There are many variations on the theme ...
    You can simplify this. You can select tables individually. You can use a parameter file. You can transport all the constraints and data. You can skip the data and only move the definitions. You can get some help (imp/exp help=yes).
    And, if it's all 10g, there is a new and improved facility called expdp/impdp (dp = data pump) which has a lot more capability as well, including direct transfer (no intermediate file) together with suspend/restart. Also documented in the Utilities manual.

Maybe you are looking for