Existing user created tablespaces database query

Hai all,

Is it possible to display the user created tablespaces query?

Thank you

This one?

SQL> select dbms_metadata.get_ddl('TABLESPACE','USERS') from dual;

DBMS_METADATA.GET_DDL('TABLESPACE','USERS')
--------------------------------------------------------------------------------

  CREATE TABLESPACE "USERS" DATAFILE
  '/oradata1/TEST11/users01.dbf' SIZE 5242880
  AUTOEXTEND ON NEXT 1310720 MAXSIZE 32767M
  LOGGING ONLINE PERMANENT BLOCKSIZE 8192
  EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT
 NOCOMPRESS  SEGMENT SPACE MANAGEMENT AUTO
   ALTER DATABASE DATAFILE
  '/oradata1/TEST11/users01.dbf' RESIZE 78643200

SQL>

Tags: Database

Similar Questions

  • How to create the database and a tablespace?

    Hello experts,

    I want to create a database named influx as tablespace influx.

    for this that I login under the sys account.

    now, I'm trying to run the following command:


    CREATE DATABASE WORKFLOWS
    LOGFILE GROUP 1 ("G:\app\dhirender\oradata\INFLUX\redo01.log") SIZE 100 M,
    GROUP 2 ("G:\app\dhirender\oradata\INFLUX\redo02.log") SIZE 100 M
    GROUP 3 ("G:\app\dhirender\oradata\INFLUX\redo03.log") SIZE 100M
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXLOGHISTORY 1
    MAXDATAFILES 100
    DEFAULT TABLESPACE users
    DATAFILE 'G:\app\dhirender\oradata\INFLUX\INFLUX01.dbf '.
    SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED

    FOLLOWING ERROR IS COMING:

    ORA-01501 datbase remote.

    database ORA-01100 already mount

    also help me create tablespace.

    Please help me.

    Thank you

    Yoann

    Follow, you will get help!

    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_5004.htm

    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_7003.htm

    https://forums.Oracle.com/thread/2481617

    https://forums.Oracle.com/thread/661075

    See you soon,.

    Manik.

  • Create a user in 100 databases

    I need to create a user in 100 databases. Manually connecting to 100 databases and creating a user are very difficult for me...

    So is it possible to do this easily?

    You can try (assuming you have the common system on all databases password)
    (1) take a database in this ORACLE_HOME keep all entrances to tns in your environment.
    $ORALCLE_HOME/network/admin/tnsnames.ora--->Should mentions tns and all databases

    (2) a list of all the databases in a single file say dblist.lst
    Cat dblist.lst
    Test1
    test2

    (3) create a sql file that contains the result of a command; CREATE_USER. SQL

    Cat create_user.sql

    trigger the echo
    set the position
    create user identified by default tablespace of ;
    grant create session to ;
    other privileges

    (4) keep the environmental variables of the ORACLE_HOME, path to the file say env_ORACLE

    (5) shell script should like

    because I in 'cat dblist.sql '.
    do
    . //env_ORACLE
    sqlplus-s system /@$i @create_user.sql
    fact

  • creating user using the database link

    Hello

    I have 11g installed on one of the server
    I created the database BUGAU to bugau.us.oracle.com link
    link works fine

    "Select * from table@"Bugau "gives the expected result

    I ran the Sub statement to my server using the dblink.but do not know how to use the dblink to that effect. Please sat down

    CREATE USER ABC IDENTIFIED BY welcome TEMPORARY by DEFAULT TABLESPACE USERS_001 temp123 TABLESPACE;

    GRANT DEFAULT TO abc;

    ALTER USER abc PROFILE LEVEL_1;

    Thank you
    Archana

    Bravid wrote:

    You cannot create a user on a remote database using a database link.

    You can, but it is not a good design:

    SQL> exec dbms_utility.exec_ddl_statement@orcl('CREATE USER ABC IDENTIFIED BY ABC');
    
    PL/SQL procedure successfully completed.
    
    SQL> exec dbms_utility.exec_ddl_statement@orcl('GRANT CREATE SESSION TO ABC');
    
    PL/SQL procedure successfully completed.
    
    SQL> connect abc@orcl/ABC
    Connected.
    SQL> 
    

    Of course, the user in the database unite ORCL must have EXECUTE on DBMS_UTILITY privilege.

    SY.

  • Create read only user to the database

    Hi all

    I need to create read only the user to one of the databases so that he should have the select query on all tables, views etc...

    Can I create a user of this type with the role OEM_MONITOR at once?

    Please advice
    Concerning
    Arun

    No.:

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL> create user toem identified by toem;
    
    User created.
    
    SQL> grant oem_monitor to toem;
    
    Grant succeeded.
    
    SQL> select count(*) from hr.jobs;
    
      COUNT(*)
    ----------
            19
    
    SQL> connect toem/toem
    Connected.
    SQL> select count(*) from hr.jobs;
    select count(*) from hr.jobs
                            *
    ERROR at line 1:
    ORA-01031: insufficient privileges
    
    SQL>
    

    Grant select ANY TABLE might work, but note it is generally regarded as a bad security practice:
    http://download.Oracle.com/docs/CD/E11882_01/network.112/e10574/guidelines.htm#CHDHFIFG

    Edited by: P. Forstmann on March 8, 2010 21:31

  • How to create a ViewObject attribute where value to get database query

    Hi Expert,

    I have a case for the value of database query. How to create the view additional attribute object where the value get database query?

    parameter binding of attributeId object in view I can do this in ADF with JDeveloper 11.1.1.6.

    Thank you

    Kind regards

    Wade W

    My problem is solved, maybe it's a bug in the JDeveloper 11.1.1.6.0

    I've got error (oracle.jbo.expr.JIEvalException) Houston-25077: name amount not found in the given object: oracle.jbo.server.ViewRowSetImpl@8690e3.

    When I develop by tab Overview (presentation of the business components). It is so strange, because I have an another transient viewAttribute that refer to another object in view and not get an error message like this before I create viewAttribute HeaderAmount.

    Maybe its ridiculous appearance, but when I go to View (lineVO.xml) object and tab to the source xml file, I have edited here. like to write

    <>

    Name = "HeaderAmount".

    IsUpdateable = "false".

    IsSelected = "false".

    IsPersistent = "false".

    PrecisionRule = 'true '.

    Type = "Oracle.jbo.domain.Number"

    ColumnType = 'NUMBER '.

    AliasName = 'VIEW_ATTR. '

    SQLType = 'DIGITAL' >

    <>

    Value = "ActivityHeaderId" / >

    and make sure this xml file are:

    <>

    Name = "ActHeaderView1VO".

    ViewLink = 'model. ActHeaderLineLink ".

    Type = "Oracle.jbo.Row"

    Reversed = 'true '.

    IsUpdateable = "false" / >

    When I try to re-run the application model and it's work...

    Thanks for your help. really appreciate

  • Linking the existing user represents their newly created accounts of IOM

    Hello

    We implement IOM to an organization where we use their HRMS as the trusted source for reconciliation. Now, the scenario is that, as of today, all users in the Organization have their user accounts created in different applications which are now included in the IOM.

    Now, that we carry out reconciliation with their HRMS, the user accounts are created in the IOM.

    As these are newly created user accounts, their "resources" tab will be empty. What we want to do is to connect the accounts of existing users of these applications to their identities from user to IOM. So that when you open the "resources" tab, we see what resources are allocated to the user. Please note that these are their user accounts for resources that existed prior to the introduction of IOM.

    Early response will be very useful.

    Thank you.

    --
    UZ

    For each resource, you need to configure the recon fields and mappings. Configure the rules action recon and reconciliation rule. Mark a field as key for process mappings. Then, when it is configured, click on the button create a recognition profile. Now, when your incoming events correspond to your configurations, it will link the resource to your username.

    -Kevin

  • Oracle Database 11 g accepts a dba for a not exist user connection

    Dear all


    I have installed Oracle database 11g, by mistake, that I am signed in as:

    mm/mm@ORCL as sysdba


    The database acctepted the connection with a full s/n privillages, even if that user is not created in the users of the database.


    Help, please


    Mostafa Abolaynain

    Published by: Mostafa Abolaynain on October 24, 2012 11:46

    You can disable this feature 'as sysdba' by authentication defined in sqlnet.ora votes to ZERO.

  • How to create a database user who could access only under forms

    Hi all

    I need to create a database user that only when log on to the application of oracle forms, it can access the database. The user should ' connect to the database using other tools for example sql, pl/sql developer. Please give me some advice. Thank you vey much.

    >
    Thanks for your advice. I think that course the login form can be a good way. Could you please give me some information?
    >

    Could you make a new post in the Forms? It would be better discussed in detail here.

  • How do I authenticate users to exist external to the database tables

    Hello world.

    I'm a newbie on OIM, I am facing a problem which is implement SSO that can support the users exist on RDBMS tables. How can IOM help me to authenticate users?

    My old site web applications with users on the tables in RDBMS (Oracle DB, MS - SQL Server). Can you help me find a solution to authenticate a user that exists on the table of RDBMS with Oracle Identity Manager?
    Is there any solution of the possibility to implement programmatically to authenticate the user on the stores of external users?

    My English skills is bad, so I hope you can understand me and give me some instructions. Any answers are appreciated.

    Concerning
    CUONG Pham

    IOM may not be the right product for you in your first phase. If the SSO authentication is what you are looking for, then OAM (Oracle Access Manager), it's what you might want to have a look at the place. There is also another product OVD (Oracle Virtual Directory) that allows you to make a table of database as a data store LDAP/directory for you to authenticate your users. Once you have all your existing users are authenticating, you can then return to IOM to manage the cycle CRUD.

  • Creating user in several databases

    Hi all

    I want to create a user in several databases (100 +)

    Could someone can share the script.

    Oracle DB Version - 9.2.0.6,9.2.0.7 & 10.2.0.2

    OS - Hp Unix.

    Kindly help out me of this.

    Thank you
    RAM.

    Since you need to connect to all databases individually, I'm not sure that any script would be of no use. And besides, it's just a command then why you want as a script? The best way of IMO would be to configure the EM (Grid Console) and make the creation of the user from there.

    Aman...

  • create tablespace with existing data file

    Dear Sir.
    We can create tablespace with an existing data file so I can use the tables and objects already exist in the data file?

    Kind regards

    Read about "transportable tablespace" and see if this is what you need.

  • Paraller error query server when creating the database using DBCA on UNIX

    Hi all
    I'm trying to create the database on UNIX platform of database 11g R1.
    At the end of the creation of the database using DBCA, I got the error:

    ORA - 12801:error reported in the parallel query P077 Server
    ORA-00018: maximum number of sessions exceeded
    ORA-06512: at "SYS." UTL_RECOMP", line 760
    ORA-06512: at "SYS." UTL_RECOMP", line 773
    ORA-06512: at line 1

    Please suggest what I can do to remove this problem.

    Concerning
    Girish Sharma

    He doesn't have to run in parallel, but it is probably

    Bug 8343487: UTLRP. PARALLEL EXECUTION, REGARDLESS OF THE CONFIGURATION OF SQL

    Werner

  • query to display objects for all users in the database

    Hi all

    I want to make a query that Lee display. result for all users in a database.

    Total number of #tableau #Indexes #Packages #Procedure #Functions #Sequences #Views # other username

    ABC 11 5 1 1 1

    1 1 1 0

    Something like this would work in 10g and before:

    SELECT     OWNER
    ,     SUM(CNT) AS "TOTAL"
    ,     MAX(DECODE(OBJECT_TYPE,'TABLE',CNT,0)) AS "#TABLE"
    ,     MAX(DECODE(OBJECT_TYPE,'INDEX',CNT,0)) AS "#INDEX"
    ,     MAX(DECODE(OBJECT_TYPE,'PACKAGE',CNT,0)) AS "#PACKAGE"
    ,     MAX(DECODE(OBJECT_TYPE,'PROCEDURE',CNT,0)) AS "#PROCEDURE"
    ,     MAX(DECODE(OBJECT_TYPE,'FUNCTION',CNT,0)) AS "#FUNCTION"
    ,     MAX(DECODE(OBJECT_TYPE,'SEQUENCE',CNT,0)) AS "#SEQUENCE"
    ,     MAX(DECODE(OBJECT_TYPE,'VIEW',CNT,0)) AS "#VIEW"
    ,     MAX(CASE WHEN OBJECT_TYPE NOT IN ('TABLE','PACKAGE','INDEX','PROCEDURE','FUNCTION','SEQUENCE','VIEW') THEN CNT ELSE 0 END) AS "#OTHER"
    FROM
    (
         SELECT     OWNER
         ,     OBJECT_TYPE
         ,     COUNT(*)     AS CNT
         FROM     ALL_OBJECTS
         GROUP BY OWNER
         ,     OBJECT_TYPE
    )
    GROUP BY OWNER
    ORDER BY OWNER;
    

    11 g, you can use the PIVOT operator to do the same.

    You can change this by changing the statements of DECODING of CASE statements if you can use the LIKE operator to catch all objects such as VIEWS and VIEWS MATERIALISEES.

    For example:

    MAX(CASE WHEN OBJECT_TYPE LIKE '%VIEW%' THEN CNT ELSE 0 END
    

    HTH!

  • Complete list of all the users (by default) created Oracle database for import DB?

    Hello

    Can someone please give me a list of all versions of Oracle DB: 10.2.0.3 list of users of database created (by default).

    and if someone can give me a script to remove all unnecessary patterns except necessary schemas of oracle.

    I want to do a complete database of a database of test IMP, I dump exp and want to make sure to remove all unnecessary patterns I can do the import immediately in the db.

    is this a correct way.

    Please notify.

    DB version: 10.2.0.3

    Thank you
    Anto

    Another good reference is ML Doc 160861.1 (created Oracle database users: password, use and references to files)

    HTH
    Srini

Maybe you are looking for