Search notes:

Oracle hint: QB_NAME

The qb_name hint specifies the value with which the column qblock_name in the plan_table is filled.
create table TQ84_A (id  number, txt varchar2(10));
create table TQ84_B (id  number, txt varchar2(10));

explain plan for
select /*+ no_merge(v) qb_name(qry) */
   a.id,
   a.txt,
   v.txt
from
   TQ84_A  a,
  (select /*+ qb_name(vw) */
      b.id,
      b.txt
   from
      TQ84_B b
  ) v
where
  a.id = v.id;

select * from dbms_xplan.display(format=>'basic alias');
--
-- --------------------------------------
-- | Id  | Operation           | Name   |
-- --------------------------------------
-- |   0 | SELECT STATEMENT    |        |
-- |   1 |  HASH JOIN          |        |
-- |   2 |   TABLE ACCESS FULL | TQ84_A |
-- |   3 |   VIEW              |        |
-- |   4 |    TABLE ACCESS FULL| TQ84_B |
-- --------------------------------------
--  
-- Query Block Name / Object Alias (identified by operation id):
-- -------------------------------------------------------------
--  
--    1 - QRY
--    2 - QRY / "A"@"QRY"
--    3 - VW  / "V"@"QRY"
--    4 - VW  / "B"@"VW"

drop table TQ84_A;
drop table TQ84_B;

See also

Query blocks
Other hints

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758185312, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/hints/list/qb_name/index(82): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78