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

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.

SQL Query

Query to see the size of all Oracle TABLESPACE

With the article “Query to see the size of all Oracle TABLESPACE” it will be possible to identify all the dimensions relating to the TABLESPACE. The selected fields are: TABLESPACE_NAME – Name of the tablespaces TOTAL_AUTO_MB – Total space of the Tablespace in MB TOTAL_NOW_MB – Total allocated space of Read more…

By Edoardo, 5 years4 December 2020 ago
Uncategorized

Oracle SID session query

In the Oracle SID session query article talking about of Query to retrieve information about Oracle sessions having the session SID. This query is widely used by me when I have to analyze sessions that are creating problems, so if we have to identify, for example, a session that is Read more…

By Alessandro Caredda, 5 years21 March 2020 ago
Oracle sessions management

KILL Oracle USER sessions

If you’re looking to perform “KILL Oracle user sessions,” you’re in the right place! During the deletion phase of a SCHEMA, it often happens that sessions connected to the database hinder the process, generating the classic error ORA-01940: cannot drop a user that is currently connected. This situation typically occurs Read more…

By Alessandro Caredda, 6 years28 July 2019 ago
REDO LOG management

Query REDO LOG Switch Count

With the article “Query REDO LOG Switch Count,” we can quickly identify the time periods when the database is in full activity. Furthermore, in case you find numerous messages of “Checkpoint not complete” in the database’s alert log like the following message: Thu Nov 26 15:16:35 2019Thread 1 cannot allocate Read more…

By Patrizia Gardis, 6 years6 March 2019 ago
REDO LOG management

Query REDO LOG file name and status

In the article “Query REDO LOG file name and status,” we can see the names of the files composing the groups, their sizes, and the status of Oracle redo logs. Redo log files, essential for data recovery in case of corruptions, are sometimes not sized appropriately for the volume of Read more…

By Patrizia Gardis, 6 years6 March 2019 ago
DDL extract Oracle objects

DDL Objects in ORACLE

In the DDL Objects in ORACLE article, we have the ability to extract the DDL (Data Definition Language) of objects. The DDL of an object is the code by which the object is defined. In some cases, it is necessary to extract the creation code to verify the complete information Read more…

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

dbms_ijob remove JOB Oracle

Con l’articolo dbms_ijob remove JOB Oracle, forniamo uno statement che permette di rimuovere definitivamente un JOB dal database Oracle. Il dbms_ijob è un package nascosto che viene richiamato dal package dbms_job. Questo permette la creazione, cancellazione o la messa in broken di un JOB Oracle ossia fermare la schedulazione del Read more…

By Patrizia Gardis, 6 years ago
Oracle JOBS management

DBMS_IJOB BROKEN FALSE

With the article DBMS_IJOB BROKEN FALSE, we provide a statement that allows enabling a JOB of another user from the BROKEN state. In other words, we re-enable it with the scheduled scheduling as specified during creation. When a scheduled JOB in the Oracle database encounters a failure, it is rerun Read more…

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

DBMS_IJOB BROKEN

With the article DBMS_IJOB BROKEN, we provide a statement that allows blocking the normal scheduling of a specific JOB. When a scheduled JOB in the Oracle database encounters a failure, the JOB is rerun after 1 minute. If it fails again, it is run after 2 minutes. If it fails Read more…

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

Query JOB Running

In the article Query JOB Running, we provide a query that allows identifying the running JOBS of all users in the database. The view that allows access to the information of the running JOBS is the table DBA_JOBS_RUNNING, from which it is possible to retrieve many useful information including the Read more…

By Patrizia Gardis, 6 years6 March 2019 ago

Posts pagination

Previous 1 2 3 … 5 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