Friday, April 14, 2023

Annotations in Oracle Database 23c

Oracle Database 23c, Oracle Database Career, Oracle Database Skills, Oracle Database Jobs, Oracle Database Prep, Oracle Database Preparation, Oracle Database Certification, Oracle Database Materials

This article describes the use of annotations to document our database objects in Oracle database 23c.

What's the Point?


We can think of annotations as an extension of database comments. With comments we were able to add free text to objects such as tables and columns, allowing us to describe their purpose and usage. Annotations take this a step further, allowing us to associate name-value pairs to most database objects, which can be used to describe or classify them. The names and values are free text, so we can pick anything that is meaningful to us.

You may see annotations described as "application usage annotations". This simply emphasizes that annotations are mean to help the documentation of your application.

Using Annotations


If an object supports annotations, the annotations clause typically follows this format.

ANNOTATIONS ( {ADD|DROP} annotation_name {'annotation_value'} {,} )

Here is a simple example of adding annotations to a table. Notice we don't use the optional ADD keyword while adding these annotations.

create table fruit (
  id           number        annotations (SurrogateKey, UI_Display 'Fruit ID', Classification 'Fruit Info'),
  name         varchar2(50)  annotations (UI_Display 'Fruit Name', Classification 'Fruit Info'), 
  description  varchar2(50)  annotations (UI_Display 'Description', Classification 'Fruit Info')
)
annotations (UI_Display 'Fruit Table', Classification 'Fruit Info');

Let's look at each in turn.

◉ SurrogateKey: This annotation tells us the column is a surrogate key. Notice this annotation has no value, as the name is sufficient to provide meaning.
◉ UI_Display: This annotation gives the preferred display name in any UI.
◉ Classificaton: This annotation allows us to classify the type of information present. In this case we classify it as "Fruit Info".

Remember, all these annotations are just free text we have made up. They have no meaning to the database or any tool other than the meaning we associate with them. If we need spaces in the key names we must double-quote them. This is true of reserved words also.

We can modify the annotations by adding or dropping annotations. In these examples we add a new annotation to the table without using the optional ADD keyword, we drop the annotation using the DROP keyword, and we add it again, this time using the optional ADD keyword.

alter table fruit annotations (Visibility 'Everyone');

alter table fruit annotations (drop Visibility);

alter table fruit annotations (add Visibility 'Everyone');

We can do a similar thing with the column level annotations.

alter table fruit modify (id annotations (Visibility 'Hidden'));

alter table fruit modify (id annotations (drop Visibility));

alter table fruit modify (id annotations (add Visibility 'Hidden'));

Views


There are two main views associated with annotations. They are the USER_ANNOTATIONS and USER_ANNOTATIONS_USAGE views, but you will probably only use the USER_ANNOTATIONS_USAGE view.

set linesize 150
column object_name format a12
column object_type format a12
column column_name format a12
column domain_name format a12
column domain_owner format a12
column annotation_name format a14
column annotation_value format a20

select object_name,
       object_type,
       column_name,
       domain_name,
       domain_owner,
       annotation_name,
       annotation_value
from   user_annotations_usage
order by annotation_name, annotation_value;

OBJECT
_NAME
OBJECT
_TYPE 
COLUMN
_NAME 
DOMAIN
_NAME 
DOMAIN
_OWNER 
ANNOTATION_NAM  ANNOTATION
_VALUE 
FRUIT TABLE  ID     CLASSIFICATION   
FRUIT  TABLE  DESCRIPTION      CLASSIFICATION   
FRUIT  TABLE  NAME      CLASSIFICATION   
FRUIT  TABLE        CLASSIFICATION   
FRUIT  TABLE  ID      SURROGATEKEY   
FRUIT  TABLE  DESCRIPTION      UI_DISPLAY   
FRUIT  TABLE  ID     UI_DISPLAY   
FRUIT  TABLE  NAME      UI_DISPLAY   
FRUIT  TABLE        UI_DISPLAY   
FRUIT  TABLE        VISIBILITY   
FRUIT  TABLE  ID     VISIBILITY   

11 rows selected.

SQL>

Wednesday, April 12, 2023

Operational Property Graphs in Oracle Database 23c Free - Developer Release

Oracle Database 23c Free - Developer Release is the first release of the next-generation Oracle Database, allowing developers a head-start on building applications with innovative 23c features that simplify the development of modern data-driven apps. The entire feature set of Oracle Database 23c is planned to be generally available within the next 12 months.
 
Your data is connected. Traversing implicit or explict connections in your data usually requires complex recursive queries or lengthy joins. In Oracle Database 23c Free - Developer Release, the GRAPH_TABLE function and MATCH clause of the new SQL:2023 standard enable you to write simple SQL queries to follow connections in data. You can model your data as a graph and run graph queries in SQL to quickly see relationships in your data that are difficult to identify otherwise. This has a variety of applications, from making product recommendations to detecting financial fraud to identifying dependencies in IT workflows. Graphs are a powerful tool to extract value from your data based on the connections embedded in data.

Graphs created from relational tables are like a ‘view’ on top of these tables. Data will not be moved into a specialized schema or database. Data stays in place in the source database tables, making graphs in Oracle Database particularly well-suited for applications working with operational property graphs. All inserts, updates, and deletes to the source tables are instantly reflected in the graph. 

Oracle Database 23c Free, Oracle Database Career, Oracle Database Prep, Oracle Database Preparation, Oracle Database Skills, Oracle Database Jobs, Oracle Database Tutorial and Materials
Graphs have been supported in Oracle Database since release 12c, with graph queries enabled by the Property Graph Query Language (PGQL). In Oracle Database 23c Free - Developer Release, this functionality is available in SQL. The property graph data model consists of vertices connected to other vertices by edges, each of which can have associated key-value pairs (properties). Typically, vertices represent entities in a dataset (such as a ‘customer,’ ‘product,’ or ‘account_id’), and edges represent the relationships between these entitles. Queries are based on graph pattern matching, which allows you to specify patterns that are matched against vertices and edges in a graph model of data.
 
Oracle Database 23c Free, Oracle Database Career, Oracle Database Prep, Oracle Database Preparation, Oracle Database Skills, Oracle Database Jobs, Oracle Database Tutorial and Materials
PGQL will continue to be supported in 23c, and your PGQL code will continue to work as before. However, if you're new to graphs or developing new functionality, this new SQL support is an exciting opportunity to explore graphs using the language and tools you already know. Building a graph using SQL is a simple process. Let's look at an example:

CREATE PROPERTY GRAPH bank_graph
    VERTEX TABLES (
        bank_accounts as ACCOUNTS
        PROPERTIES(ID, BALANCE)
    )
    EDGE TABLES (
        bank_transfers
        SOURCE KEY      (from_acc) REFERENCES ACCOUNTS(ID)
        DESTINATION KEY (to_acc)   REFERENCES ACCOUNTS(ID)
        PROPERTIES (amount)
    )

Here we create a property graph called bank_graph with a vertex table bank_accounts with two properties, id and balance. Our graph also has an edge table, bank_transfers, with the property amount representing the transfer of money between them.  

If we want to query the property graph that we just created, it's simple. But let's review a few basic syntax specifications we'll need to know first.

Symbol Name  Example 
() Vertex (v1) and (v2) are bank accounts
[] Edge  [e1] represents a cash transfer between them 
{} <Path length  {1,3} 
-> Directed edge   

SELECT distinct(account_id)
FROM GRAPH_TABLE(bank_graph
   MATCH (v1)-[is bank_transfers]->{3,5}(v1)
    COLUMNS (v1.id as account_id)  
);

This query returns all accounts that are cycles (start and stop with the same account) that are 3 to 5 hops long.


Oracle Database is the graph database for the enterprise. It enables high-performance, scalable graph queries with the security, high availability, and simpler manageability required by enterprise applications.

Source: oracle.com

Friday, April 7, 2023

Key benefits of JSON Relational Duality: Experience it today using "Oracle Database 23c Free--Developer Release"

Oracle Database 23c JSON Relational Duality revolutionizes appdev by converging the benefits of the relational and document worlds within a single database. The new feature that enables this convergence is called JSON Relational Duality View (Will be simply referred below as Duality View).

With Duality View, while data gets stored in relational tables in a normalized way, it can be exposed to apps as JSON documents. Storing the data in relational tables delivers all the benefits of the relational model, whereas by exposing the same data as JSON documents, apps get schema flexibility and other benefits of the document model.

Oracle Database 23c, Oracle Database Career, Oracle Database Certification, Oracle Database Guides, Oracle Database Certification, Database Guides, Oracle Database Jobs

Let's look at some of the key benefits of using JSON Relational Duality:


1. Get the best of both worlds!

JSON Relational Duality helps to unify the benefits of both document and relational worlds. Developers now get the flexibility and data access benefits of the JSON document model, plus the storage efficiency and power of the relational model.

Oracle Database 23c, Oracle Database Career, Oracle Database Certification, Oracle Database Guides, Oracle Database Certification, Database Guides, Oracle Database Jobs

2. Don’t be forced into making compromises when building apps:

Using documents is not efficient for all use cases. Currently, if an organization stores data in a document database, they are forced to adapt various use cases even if using documents is not the most efficient way.

How JSON Relational Duality makes it flexible and efficient: Experience extreme flexibility in building apps using Duality view. Developers can access the same data relationally or as hierarchical documents based on their use case and are not forced into making compromises because of the limitations of the underlying database. Build document-centric apps on relational data or create SQL apps on documents.

Developers can manipulate documents realized by Duality Views using their favorite drivers, frameworks, tools, and development methods. They can operate on the same data as relational using standard SQL or as documents using standard document APIs:

◉ Analytics, reporting, and machine learning apps can access or modify data relationally (as rows and columns) using languages such as SQL, PL/SQL, C, Java, and JavaScript.

◉ Document-centric apps can use document APIs, such as REST, Simple Oracle Document Access (SODA), and Mongo API, to access the same data.

3. Don’t get limited to one JSON hierarchy as in document databases:

Document database limits flexibility. When using a document database, developers are forced to use one hierarchy for various use cases. For example, using Orders hierarchy to build customer profiles or accessing customer data will be inefficient. Using one JSON hierarchy for all use cases makes appdev complex and impacts performance.

How JSON Relational Duality makes it easy: Developers can use the power of Duality view in defining multiple JSON Views across overlapping groups of tables. This flexible data modeling makes building multiple apps against the same data easy and efficient.

4. Eliminate data duplication when working with documents:

Document databases have an inherent problem that they keep their documents independent. They do not have a good mechanism to declare relationships between documents, leading to data duplication and inconsistencies. Duplicated data leads to higher maintenance costs, decision-making errors, and lost business opportunities.

JSON Relational Duality eliminates data duplication: Duality Views are fully ACID (atomicity, consistency, isolation, durability) transactions across multiple documents and tables. It eliminates data duplication, whereas consistency is maintained automatically.

5. Eliminate round-trips and object-relational impedance mismatch:

Currently, app developers have to map between app-tier objects (used by programming languages) and relational tables. Developers assemble and modify data from several tables to implement a business use case. This is well-known in the industry as an object-relational impedance mismatch problem. The custom mapping between app-tier objects and relational tables makes app development more complex. In addition, since an operation on an app-tier object may lead to multiple access or update to participating tables, it also slows down performance.

Duality View eliminates the need for mapping objects to relational tables: It provides fully updateable JSON views over data. Apps can simply read a document, make necessary changes, and write the document back without worrying about underlying data structure, mapping, consistency, or performance tuning. Experience simplicity by retrieving and storing all the data needed for an app in a single database operation.

6. Build apps that support high concurrency access and updates:

Traditional locks don’t work well for modern apps. A new lock-free concurrency control provided with Duality View helps support high concurrency updates, which also works efficiently for interactive applications since the data is not locked during human thinking time. Duality View also provides document-level serializability that helps to streamline concurrent updates to underlying tables. It automatically ensures consistency between document updates and direct updates to underlying tables — document APIs and SQL applications can update the same data concurrently.

Experience the benefit yourself: Try JSON Relational Duality using “Oracle Database 23c Free--Developer Release”


Oracle announced "Oracle Database 23c Free--Developer Release", allowing developers to start building apps using 23c features like JSON Relational Duality. We are making it easy for you to experience the power and flexibility of Duality View in building apps. We are providing well-documented and easy-to-learn tutorials on GitHub. You can download the tutorials and use them with “Oracle Database 23c Free--Developer Release”. In the tutorials, developers can use SQL, REST and Oracle Database API for MongoDB to try features, capabilities and examples related to Duality Views. We will also be providing LiveLabs to play with Duality Views in a ready-to-run environment - stay tuned.

Source: oracle.com

Thursday, April 6, 2023

What Careers Require 1Z0-149 Certification?

1z0-149, 1z0-149 dumps, oracle 1z0-149, 1z0-149 dumps pdf, 1z0-149 free dumps, exam 1z0-149, 1z0-149 dumps free, 1z0-149 questions and answers, 1z0-149 pdf, 1z0-149 exam dumps, oracle 1z0-149 dumps, oracle database program with pl/sql 1z0-149, 1z0-149 study guide, 1z0-149 practice test, oracle pl sql online test, pl sql assessment test, pl sql certification questions answers, oracle pl sql certification, oracle pl/sql developer certified associate pdf, oracle pl/sql certification sample questions, oracle pl/sql exam questions pdf, oracle database 19c student guide pdf

If you are an Oracle Database Application Development certified professional, you have already gained a competitive edge over others. The next step is to pursue advanced certifications to enhance your value in the job market. One such certification is the Oracle Database Program with PL/SQL 1Z0-149 certification, which validates your skills in programming with PL/SQL in Oracle Database 19c.

The demand for Oracle Database professionals is increasing daily due to the widespread use of Oracle Database in various industries. The Oracle Database Program with PL/SQL certification is an advanced certification that focuses on developing skills in programming with PL/SQL in Oracle Database 19c. With this certification, you can demonstrate your expertise in Oracle Database Application Development, which employers highly value.

Benefits of 1Z0-149 Certification

The Oracle Database Program with PL/SQL certification offers several benefits to professionals, such as:

  • Increased value in the job market
  • Enhanced credibility and recognition
  • Improved job performance and productivity
  • Higher salary and career growth opportunities
  • Access to Oracle's expert community

Top Career Opportunities for 1Z0-149 Certified Professionals

  • Database Developer: A database developer is responsible for designing, developing, and maintaining databases for organizations. With 1Z0-149 certification, you can demonstrate your expertise in programming with PL/SQL, which is essential for database development.
  • Database Administrator: A database administrator ensures security, availability, and performance. With 1Z0-149 certification, you can demonstrate your expertise in PL/SQL programming, which is necessary for database administration.
  • Database Analyst: A database analyst analyzes and interprets data to provide insights and recommendations to organizations. With 1Z0-149 certification, you can demonstrate your expertise in PL/SQL programming, which is necessary for database analysis.
  • PL/SQL Developer: A PL/SQL developer is responsible for developing and maintaining PL/SQL code for applications. With 1Z0-149 certification, you can demonstrate your expertise in PL/SQL programming, which is essential for PL/SQL development.
  • Business Intelligence Analyst: A business intelligence analyst analyzes data to provide insights to help organizations make informed decisions. With 1Z0-149 certification, you can demonstrate your PL/SQL programming expertise necessary for business intelligence analysis.
  • Data Warehouse Analyst: A data warehouse analyst is responsible for designing, developing, and maintaining data warehouses for organizations. With 1Z0-149 certification, you can demonstrate your PL/SQL programming expertise, which is essential for data warehouse development.
  • IT Project Manager: An IT project manager manages projects from initiation to completion. With 1Z0-149 certification, you can demonstrate your expertise in PL/SQL programming, which can be valuable in managing IT projects that involve Oracle Database.
  • Cloud Administrator: A cloud administrator manages cloud-based databases and applications. With 1Z0-149 certification, you can demonstrate your PL/SQL programming expertise, essential for managing Oracle Database in the cloud.
  • Database Security Analyst: A database security analyst is responsible for ensuring the security of databases and the data they contain. With 1Z0-149 certification, you can demonstrate your expertise in PL/SQL programming, which can be valuable in implementing database security measures.
  • Database Architect: A database architect is responsible for designing and maintaining databases that meet an organization's needs. With 1Z0-149 certification, you can demonstrate your expertise in PL/SQL programming, which is essential for database architecture.
  • Database Administrator Manager: A database administrator manager manages a team of administrators who maintain and optimize databases for an organization. With 1Z0-149 certification, you can demonstrate your expertise in PL/SQL programming, which can be valuable in managing a team of Oracle Database administrators.
  • Data Analyst: A data analyst collects, analyzes, and interprets data to provide insights to help organizations make informed decisions. With 1Z0-149 certification, you can demonstrate your expertise in PL/SQL programming, which is necessary for data analysis in Oracle Database.
  • Database Performance Analyst: A database performance analyst is responsible for identifying and resolving database performance issues. With 1Z0-149 certification, you can demonstrate your expertise in PL/SQL programming, which can be valuable in optimizing the performance of Oracle Database.
  • Database Developer Manager: A database developer manager manages a team of developers who create and maintain databases for an organization. With 1Z0-149 certification, you can demonstrate your expertise in PL/SQL programming, which can be valuable in managing a team of Oracle Database developers.

These are just a few career opportunities available to 1Z0-149 certified professionals. With this certification, you can gain the skills and knowledge necessary to pursue a rewarding Oracle Database development and administration career.

Conclusion

The Oracle Database Program with PL/SQL certification is a valuable credential that can open up numerous professional career opportunities. The certification validates your skills in programming with PL/SQL in Oracle Database 19c, which employers highly value.

Wednesday, April 5, 2023

What is Oracle Base Database Service?

Oracle Base Database Service, Oracle Database, Oracle Database Career, Oracle Database Skills, Oracle Database Jobs, Oracle Database Prep, Oracle Database Preparation, Oracle Database Tutorial and Materials

Introduction


Oracle is a multinational company known for its database technology. In recent years, the company has released a new product called the Oracle Base Database Service. This service is designed to make it easier for organizations to manage their databases by providing a managed cloud service. In this article, we will explore the benefits of the Oracle Base Database Service, its features, and how it works.

What is the Oracle Base Database Service?


The Oracle Base Database Service is a cloud-based managed service that provides customers with a fully managed database. This service is designed to simplify database management for organizations by providing a secure, scalable, and highly available database platform that is available on-demand. Customers can use this service to build, migrate, and deploy applications quickly and easily, without having to worry about managing the underlying infrastructure.

Benefits of the Oracle Base Database Service


There are several benefits to using the Oracle Base Database Service, including:

1. Easy to Use

The Oracle Base Database Service is easy to use and can be set up in just a few minutes. This service eliminates the need for customers to manage the underlying infrastructure, which means that they can focus on developing their applications.

2. Scalability

The Oracle Base Database Service is highly scalable and can be easily scaled up or down based on the needs of the customer. This service also provides automatic scaling capabilities, which means that the database can scale up or down automatically based on the workload.

3. High Availability

The Oracle Base Database Service is designed to be highly available, with automatic failover capabilities. This service provides multiple levels of redundancy to ensure that the database is always available.

4. Security

The Oracle Base Database Service provides several security features, including encryption, firewall, and access control. Customers can also use their own encryption keys to protect their data.

5. Cost-Effective

The Oracle Base Database Service is cost-effective, as customers only pay for what they use. This service eliminates the need for customers to invest in expensive hardware and software, which can be a significant cost savings.

Features of the Oracle Base Database Service


The Oracle Base Database Service provides several features that make it an attractive option for organizations, including:

1. Automated Patching

The Oracle Base Database Service provides automated patching capabilities, which means that customers do not need to worry about applying patches to the database. This service ensures that the database is always up-to-date and secure.

2. Database Cloning

The Oracle Base Database Service provides database cloning capabilities, which means that customers can quickly create clones of their databases. This service is useful for testing and development purposes.

3. Automatic Backup and Recovery

The Oracle Base Database Service provides automatic backup and recovery capabilities, which means that customers do not need to worry about backing up their databases. This service ensures that the database is always recoverable.

4. Integration with Other Oracle Services

The Oracle Base Database Service integrates with other Oracle services, such as the Oracle Cloud Infrastructure, which provides customers with a comprehensive cloud platform.

How the Oracle Base Database Service Works


The Oracle Base Database Service works by providing a fully managed database platform that is available on-demand. Customers can use this service to build, migrate, and deploy applications quickly and easily, without having to worry about managing the underlying infrastructure. The service is accessed through a web console or API, and customers can easily scale their databases up or down based on their needs. The service also provides automatic failover capabilities to ensure high availability, and customers can use their own encryption keys to protect their data.


In conclusion, the Oracle Base Database Service is a powerful tool for organizations looking to simplify their database management processes. Its ease of use, scalability, high availability, security, and cost-effectiveness make it an attractive option for organizations of all sizes. With its powerful features, such as automated patching, database cloning, automatic backup and recovery, and integration with other Oracle services, the Oracle Base Database Service provides a comprehensive solution for managing databases in the cloud. If you're looking for a cloud-based database management solution, the Oracle Base Database Service is definitely worth considering.

Monday, April 3, 2023

Oracle Zero Downtime Migration 21.4

Oracle Zero Downtime Migration, Oracle Database Career, Oracle Database Skills, Oracle Database Jobs, Oracle Database Prep, Oracle Database Preparation, Oracle Database Tutorial and Materials, Oracle Database Learning, Oracle Database Guides

Oracle Zero Downtime Migration 21.4


Zero Downtime Migration (ZDM) 21.4 is available for download! ZDM is Oracle’s premier solution for moving Oracle Database workloads to Oracle Cloud, supporting various Oracle Database versions as the source and all Oracle Database Cloud Services as targets. Zero Downtime Migration 21.4 enhances the existing functionality by adding additional physical migration capabilities, sudo-less migration, migration of objects with different  GoldenGate support modes, and much more!

New in Oracle Zero Downtime Migration 21.4


Oracle Zero Downtime Migration, Oracle Database Career, Oracle Database Skills, Oracle Database Jobs, Oracle Database Prep, Oracle Database Preparation, Oracle Database Tutorial and Materials, Oracle Database Learning, Oracle Database Guides

What’s New in Oracle Zero Downtime Migration 21.4


Physical Migration Enhancements

◉ Redo Apply Catch Up for Paused Migration Jobs: Instruct ZDM to monitor the redo apply lag after the standby database was created by setting the response file parameter ZDM_APPLY_LAG_MONITORING_INTERVAL. This monitoring is performed periodically after a resume job instruction and will wait until redo apply is finished before resuming.
 
◉ Resume after manual Data Guard Switchover: in case of a user-initiated manual switchover, ZDM can now be instructed to acknowledge the operation, mark the switchover as completed, and resume the migration job with the rest of the automated workflow.
 
◉ Configurable RMAN Section Size: the Recovery Manager section size for backups can be manually configured via a new parameter, ZDM_RMAN_SECTION_SIZE, in ZDM's response file.
 
◉ Target Time Zone Post-Migration Upgrade: a new post-migration task can be enabled via a new response file parameter, ZDM_TGT_UPGRADE_TIMEZONE, which instructs ZDM to upgrade the target database time zone file.
 
Logical Migration Enhancements

◉ Data and Metadata migration in separate phases: new migration workflow, which performs a regular export and a phased import for metadata. This allows the handling of USER and PROFILE creation and then handling of METADATA creation, finishing with the import of DATA.  This flow benefits migrations where modified grants at target level, modification of object level metadata and modification of segment attributes, are required.
 
◉ Support for tables with XML data types: XML Data Types stored as CLOBS can now be migrated via Data Pump’s automated conversion to BINARY STORAGE. You can now specify the respective source data to be converted, exported, and migrated to the target database.
 
◉ Sudo-less migration: ZDM now has a new authentication plug-in, which allows you to migrate databases without non-privileged users for both source and target node access.
 
◉ Other customizations: enhanced Data Pump error handling, Object Storage Pre-authenticated URL support, Auto-start and restart profiles for Oracle GoldenGate microservices and more!

Source: oracle.com