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

Oracle

How to Extend an Oracle TABLESPACE

How to Extend an Oracle TABLESPACE Extending an Oracle TABLESPACE is a crucial task in managing the storage of an Oracle database. TABLESPACE is the largest storage area within the database, where tables, indexes, and other database objects reside. During installation, five essential tablespaces are created to ensure the proper Read more…

By Patrizia Gardis, 6 years10 June 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
Oracle JOBS management

Query JOB Oracle status

With the article Query JOB Oracle status, we provide a statement to retrieve information about scheduled JOBS in the database. A JOB is a scheduling of a procedure, a PL/SQL package, or a simple statement that is programmed to start at a specific day and time when we want to Read more…

By Patrizia Gardis, 6 years6 March 2019 ago
Users management

DDL for User Creation Roles and Privileges

Query to generate the DDL for User Creation, Roles, and Privileges With the article “DDL for User Creation Roles and Privileges”, we provide a series of statements with which we can extract the creation code of a USER. Additionally, it is possible to extract the roles, system privileges, object privileges, Read more…

By Patrizia Gardis, 6 years6 March 2019 ago

Posts pagination

1 2 … 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