Nuovo-Logo-ScriptDBA.com
  • Home
  • About
    • Our Story
    • Resume
  • How to
    • SQL Query In the SQL Query category, you will find numerous queries useful for administering the Oracle database. A SQL Structure Query Language query is a query to a database through SQL code, which is a standard language used to retrieve and manage information from relational databases. Oracle is an RDBMS Relational Database Management System or a DBMS Data Base Management System based on the relational model. This allows you to retrieve data from multiple tables by relating them to each other in order to have the result in a single output. A query consists of a code structure consisting of 2 phases: selection and origin. SELECT * FROM all_users; The third phase follows, which is the condition. We apply a filter to the queries to limit the rows to be recovered: SELECT * FROM all_users WHERE username = ‘ALEX’; This is a simple query that allows us to retrieve the information recorded in the all_users table relating to the ALEX user. On the Foundations of Oracle course, the SQL language in all its forms will be illustrated in detail.
      • Oracle sessions management
        • Oracle SID session query
        • Oracle User Sessions Query
        • Query Oracle sessions to date and time
        • Query to see the RMAN sessions
        • Query Oracle sessions processes transactions cursors
        • Query sessions holding LOCK
        • Query Oracle LOCK and number of LOCKED sessions
        • Query to Identify Sessions Blocked by Another Session
        • KILL Oracle USER sessions on RAC
        • KILL Oracle USER sessions
        • Query disconnect session Oracle
      • Oracle performance statement analysis
        • Query to extract the statement from SQL_ID
        • Query to extract statement from a subsequent SQL_ID EXPLAIN PLAN FOR the statement
      • ASM space management
        • Query to View ASM DiskGroup Spaces
        • ASM LUN CANDIDATE Query
        • Query to view the remaining time of REBALANCE
      • Tablespace management
        • Query size datafiles of a tablespace
        • Query to see the size of all Oracle TABLESPACE
        • Query to retrieve disk space allocated by DATAFILES but not used
        • Query to View TEMPFILE and TEMP TABLESPACE Sizes
        • Query to retrieve disk space allocated by DATAFILES but not used
      • Oracle object management
        • Oracle Objects Query
        • Query for INVALID Objects
        • Query for Compiling INVALID Objects
      • Oracle database Management of LOB objects
        • Oracle Table LOB Query
        • LOB Segment Oracle Query
      • Oracle INDEX management
        • Index Size Query
        • Partitioned Indexes Oracle Query
        • UNUSABLE Indexes Query in Oracle
        • UNUSABLE Partitioned Indexes Query in Oracle
        • Dynamic Query for Generating REBUILD INDEX Command
      • EXTENT management of an Oracle object
        • Query EXTENT Oracle number and size
        • Query EXTENT TABLE Oracle
        • Query Oracle objects with few EXTENTS
      • Users management
        • Query for Oracle User Password Status
        • Query for Oracle User Roles
        • Query for Oracle User Object Privileges
        • DDL for User Creation Roles and Privileges
        • Assignment of DEFAULT_TABLESPACE Quota
        • Query USER PRIVILEGES replicated
      • REDO LOG management
        • Query REDO LOG file name and status
        • Query REDO LOG Switch Count
      • DDL extract Oracle objects
        • DDL Objects in ORACLE
      • Oracle JOBS management
        • Query JOB Oracle status
        • Query JOB Running
        • DBMS_IJOB BROKEN
        • dbms_ijob remove JOB Oracle
        • DBMS_IJOB BROKEN FALSE
    • Comandi CRS
      • CRSCTL commands – CRS Oracle
        • CRS stop
        • CRS start
        • CRS STOP ALL: Complete shutdown of all CRS cluster resources
        • CRS START ALL: Complete startup of all CRS cluster resources
        • Disable CRS
        • Enable CRS
      • SRVCTL commands – CRS Oracle
        • srvctl stop database
        • srvctl start database
        • srvctl stop instance
        • srvctl start instance
        • srvctl stop listener
        • srvctl stop service
        • srvctl start service
        • srvctl relocate service
    • Tutorial Work in progres.
      • Linux Work in progres.
        • Basic Linux commands
      • Oracle Work in progres.
        • Oracle Multitenant Database Architecture
        • How to Extend an Oracle TABLESPACE
        • Export e import in data pump
      • SQL Server
  • English
    • Italian

Patrizia Gardis

Users management

Query USER PRIVILEGES replicated

With the article Query USER PRIVILEGES replicated, we can retrieve all ROLES, system PRIVILEGES, and object PRIVILEGES of a USER and construct the GRANT command assigning them to another USER. When a user is created in the Oracle database, if no roles or privileges are assigned, the user will not Read more…

By Patrizia Gardis, 6 years6 March 2019 ago
Users management

Query for Oracle User Object Privileges

With the article “Query for Oracle User Object Privileges,” we look at the object privileges assigned to a specific user in the Oracle database. In the Oracle database, there are two types of privileges: system privileges and object privileges. System privileges allow performing certain operations in the database, such as Read more…

By Patrizia Gardis, 6 years6 March 2019 ago
Users management

Query for Oracle User Roles

The query in the article “Query for Oracle User Roles”, allows us to identify the ROLES assigned to a specific user in the Oracle database by selecting GRANTEE, which is the user receiving the role, and GRANTED_ROLE, which identifies the name of the role. A ROLE is a container for Read more…

By Patrizia Gardis, 6 years6 March 2019 ago
Users management

Assignment of DEFAULT_TABLESPACE Quota

The query in the “Assignment of DEFAULT_TABLESPACE Quota” article aims to create the command, through a dynamic query, to assign a user’s quota on their default_tablespace, considering the quota assigned to an existing user in the database. Every user created in the database has their own default tablespace, which is Read more…

By Patrizia Gardis, 6 years6 March 2019 ago
Users management

Query for Oracle User Password Status

The article “Query for Oracle User Password Status” allows you to view the password status of an account in the Oracle database. When an Oracle account is created, if a specific profile is omitted from the CREATE command, Oracle assigns the DEFAULT PROFILE to the created user. The DEFAULT PROFILE Read more…

By Patrizia Gardis, 6 years6 March 2019 ago
Oracle INDEX management

Dynamic Query for Generating REBUILD INDEX Command

With the article “Dynamic Query for Generating REBUILD INDEX Command,” we provide 2 dynamic queries through which we will have the possibility to create the rebuild command for indexes and partitioned indexes that are in the UNUSABLE state. REBUILD is the reconstruction of the index. This operation is performed when Read more…

By Patrizia Gardis, 6 years5 March 2019 ago
Oracle INDEX management

Partitioned Indexes Oracle Query

Query to Check the Size of Partitioned Indexes With the article “Query Partitioned Indexes Oracle Size,” we’ll be able to verify the size of partitioned indexes. Effective and stable service in terms of performance relies on good data organization. Therefore, in large-scale environments, excellent data organization is essential to enable Read more…

By Patrizia Gardis, 6 years5 March 2019 ago
Oracle INDEX management

Index Size Query

Query to check the size of indexes With the article “Index Size Query,” we quickly examine the indexes and their sizes. Indexes are database objects that allow fast access to data. If there were no index on the table, queries would be very slow because they would read all the Read more…

By Patrizia Gardis, 6 years5 March 2019 ago
Oracle INDEX management

UNUSABLE Partitioned Indexes Query in Oracle

With the article ” UNUSABLE Partitioned Indexes Query in Oracle”, we examine all the invalid indexes that point to partitioned tables in the database users. When it is necessary to delete a partition of a table with numerous partitions, great care must be taken during the drop of the partition. Read more…

By Patrizia Gardis, 6 years5 March 2019 ago
Oracle INDEX management

UNUSABLE Indexes Query in Oracle

With the article “UNUSABLE Indexes Query in Oracle,” we can quickly identify all the INVALID indexes in a SCHEMA. It may happen that, due to various factors, the indexes in a SCHEMA change status from USABLE to UNUSABLE. There are various factors indeed. One of the main causes can be Read more…

By Patrizia Gardis, 6 years5 March 2019 ago

Posts pagination

Previous 1 2 3 4 Next
Login
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Recent Posts
  • Query to view the remaining time of REBALANCE
  • Query to extract statement from a subsequent SQL_ID EXPLAIN PLAN FOR the statement
  • Query size datafiles of a tablespace
  • Query to retrieve disk space allocated by DATAFILES but not used
  • Query Oracle sessions processes transactions cursors
Recent Comments
    Categories

    • About
    • Contacts
    • Download ScriptDBA.com
    • Home
    • How to
    • Pivacy Policy
    • References
    Hestia | Developed by ThemeIsle
    Don't have an account yet? Register Now

    Multilingual WordPress with WPML