Application Deployment in Oracle APEX with Data - Part 40

Tech Mining
25 Dec 202208:01

Summary

TLDRThis Tech mining video tutorial guides viewers through the process of migrating applications and data across Oracle Apex instances using the Data Packager utility. It covers handling unsupported blob data types, creating scripts for database objects, and managing user roles and authorizations post-migration. The video ensures a smooth transition, from exporting applications and data to importing and setting up a new workspace, ultimately allowing users to access their newly deployed application with the complete data intact.

Takeaways

  • πŸ”„ Easily migrate applications between instances with Oracle Apex's Data Packager utility.
  • 🚫 Blob data type is not supported for export, requiring removal or modification of blob columns like the product image in the demo products table.
  • πŸ“ Follow a specific sequence when creating scripts: first sequences, then tables, and finally triggers.
  • πŸ”„ Use the Data Packager feature to export application data along with the database objects.
  • πŸ”„ Ensure the 'demo product info' table is placed after the 'demo customers' table to prevent foreign key violations.
  • πŸ”„ The 'product info' table should precede the 'order items' table as it is the master table.
  • πŸ“ Export the application with both the application and underlying data packaged.
  • πŸ”„ Test the import process in a new workspace on the Oracle Apex site.
  • πŸ‘€ User roles and authorizations are not exported with the application; they must be manually managed post-deployment.
  • πŸ‘₯ Create and assign different roles to users for access to the newly imported application.
  • 🏒 Set the application authorization scheme to 'No Application Authorization Required' to access the application.

Q & A

  • What is the primary purpose of the data packager utility in Oracle Apex?

    -The data packager utility in Oracle Apex is used to specify a table or a list of tables for which the data gets exported with an application, allowing for easy migration of applications and their data from one instance to another.

  • Why can't the demo products table be used directly for the sales web application deployment?

    -The demo products table cannot be used directly because it contains a BLOB column, and BLOB data types are not supported for export using the data packager utility.

  • What steps must be taken before deploying the sales web application?

    -Before deploying the sales web application, the product image column must be dropped from the demo products table.

  • In what order should database objects be created in Oracle Apex?

    -In Oracle Apex, database objects should generally be created in the following order: first create a sequence, then a table, and finally a trigger.

  • Why is it important to move the demo product info table just after the demo customers table?

    -Moving the demo product info table just after the demo customers table is important to prevent foreign key violations during the data import process.

  • What is the relationship between the product info table and the order items table?

    -The product info table is the master table to the order items table, so it must be placed before the order items table to avoid constraint violation messages during the import process.

  • What should be done after exporting the application and data from Oracle Apex?

    -After exporting the application and data, a new workspace should be created on the Oracle Apex site to test the import process. The exported application file should then be imported into this new workspace.

  • What needs to be manually managed after importing the application into a new workspace?

    -After importing the application, user to role assignments need to be manually managed, as application users are not exported as part of the application.

  • What roles should be assigned to the three users created in the new workspace?

    -The first user should be assigned the administrator role using the new workspace email ID. The remaining two users can be assigned any name and given the contributor and reader roles.

  • What setting must be adjusted to access the newly imported application without authorization errors?

    -The application scheme should be set to 'no application authorization required' to avoid authorization errors and ensure access to the newly imported application.

Outlines

00:00

πŸ”§ Migrating Applications with Oracle Apex Data Packager

This paragraph introduces the process of migrating applications in Oracle Apex, focusing on the use of the Data Packager utility. It explains the limitation of the blob data type and the necessity to handle it by either dropping the product image column or proceeding without exporting it. The speaker outlines the steps for creating scripts for supporting objects and emphasizes the order of creating sequences, tables, and triggers. Additionally, the paragraph covers the importance of arranging database objects correctly to avoid foreign key violations during the import process and concludes with exporting the application for deployment in another environment.

05:13

πŸ› οΈ Importing and Managing Oracle Apex Applications

The second paragraph delves into the post-export steps of importing an Oracle Apex application into a new workspace. It highlights the need to review the installed application tables, sequences, and triggers through the object browser. The speaker then addresses potential authorization errors that may arise and provides a solution by manually managing user roles and assignments. The process includes creating users with specific roles such as administrator, contributor, and reader, and setting the application authorization scheme. The paragraph concludes with the successful access and review of the newly imported application, ensuring that all pages and data are displayed correctly.

Mindmap

Keywords

πŸ’‘Tech mining

Tech mining refers to the process of extracting valuable insights or knowledge from technology-related data. In the context of the video, it likely refers to the technical process of migrating and managing applications within a technological environment. The video does not explicitly define 'Tech mining,' but it sets the stage for discussing application migration and data management.

πŸ’‘Migrate

To migrate, in a technological context, means to transfer data, applications, or systems from one environment or platform to another. The video script discusses migrating applications from one instance to another, which is central to the theme of application deployment and management.

πŸ’‘Data Packager

Data Packager is a feature or utility that allows for the export of data, typically from a database or application, in a structured format. In the script, it is used to specify tables for data export when migrating applications, which is crucial for ensuring data integrity during the transfer process.

πŸ’‘Blob Data Type

A Blob data type, short for Binary Large Object, is a data type used to store binary data such as images or documents in a database. The script mentions that the Blob data type is not supported for export, which is a technical limitation that must be considered when using the Data Packager utility.

πŸ’‘Sales Web Application

A sales web application is a software program designed to facilitate sales processes, often accessible via the web. In the script, it is the application that the user is attempting to deploy, and the discussion revolves around the steps and considerations for its successful migration.

πŸ’‘Foreign Key

In database management, a foreign key is a field or set of fields in a table that uniquely identifies a record in another table. The script refers to a 'foreign key violation' that can occur if the order of table scripts is not maintained during the application migration process.

πŸ’‘Oracle Apex

Oracle Apex is a low-code development platform that enables developers to build scalable and secure enterprise apps. The script provides a step-by-step guide on using Oracle Apex's features for application migration, emphasizing its role in the deployment process.

πŸ’‘Sequence Script

A sequence script in the context of database scripting is a set of instructions that define a sequence, which is a database object used to generate unique numbers in a sequential order. The script mentions creating a sequence script as the first step in the Oracle Apex development process.

πŸ’‘Trigger

A trigger in database terminology is a procedural code that is automatically executed in response to certain events on a particular table or view in a database. The script discusses the creation of triggers as part of the database object scripts, which are essential for maintaining data integrity post-migration.

πŸ’‘Workspace

In the context of Oracle Apex, a workspace is a personal or team area where developers can create and manage applications. The script instructs the user to create a new workspace for testing the import process of the migrated application.

πŸ’‘Application Users

Application users refer to the individuals or entities that interact with an application. The script highlights that application users are not exported with the application itself, and manual management of user roles and access is required after migration.

πŸ’‘Role Assignments

Role assignments are the process of assigning specific roles or permissions to users within an application. The script explains that after importing the application, the user must manually add users and assign them roles such as administrator, contributor, and reader to manage access control.

πŸ’‘Authorization

Authorization is the process of granting or denying permission to users or systems to access or perform certain actions within an application or database. The script mentions setting the scheme to 'no application authorization required' to allow access to the newly imported application.

Highlights

Migrating applications between instances and including data in tables using Data Packager in Oracle Apex.

Blob data type is not supported for export, requiring removal of the product image column for the demo products table.

Steps to use the Data Packager utility for exporting applications with data.

Creating scripts for supporting objects to package the application for installation in another environment.

Sequence creation is the first step in Oracle Apex, followed by tables and triggers.

Using the Data Packager feature to move data along with the application.

Importance of the order of database object scripts to prevent foreign key violations.

Placing the product info table before the order items table to avoid constraint violation during import.

Exporting the packaged application from the current workspace.

Creating a new workspace on Oracle Apex for testing the import process.

Importing the application file into the new workspace.

Reviewing application tables, sequences, and triggers installed with the application.

Running the newly imported application and potential authorization errors.

Manually managing user role assignments after deploying the application.

Adding users and assigning different roles such as administrator, contributor, and reader.

Setting the scheme to 'No Application Authorization Required' to access the imported application.

Accessing and verifying the newly imported application with complete data and pages.

The video aims to be helpful for understanding the process of migrating and deploying applications in Oracle Apex.

Transcripts

play00:00

a very warm welcome to Tech mining

play00:02

you can also easily migrate your

play00:04

applications from one instance to

play00:06

another and include data in tables using

play00:09

data packager in which you specify a

play00:11

table or a list of tables for which the

play00:13

data gets exported with an application

play00:15

here are the steps to use this utility

play00:19

first because of blob data type is not

play00:22

supported for export since we have a

play00:24

blob column in the demo products table

play00:26

we cannot use this procedure to deploy

play00:29

sales web application unless we drop

play00:31

product image column

play00:36

foreign

play00:38

product image column from the database

play00:41

now we can proceed further

play00:44

in this steps we are creating scripts

play00:46

for supporting objects to package the

play00:48

application for installation in other

play00:49

environment

play00:51

[Music]

play00:55

first create sequence script because

play00:58

generally in Oracle Apex first we create

play01:01

sequence then table and then trigger

play01:04

[Music]

play01:15

thank you

play01:19

[Music]

play01:37

foreign

play01:42

[Music]

play01:45

button on the right side of the page

play01:48

move up the demo product info table just

play01:50

after the demo customers table to

play01:53

prevent foreign key violation

play01:54

[Music]

play02:07

foreign

play02:09

[Music]

play02:25

database object scripts in order to move

play02:28

data as well with the application we use

play02:31

the data packager feature of Oracle Apex

play02:35

thank you

play02:39

foreign

play02:42

button move the demo product info table

play02:45

just after the demo customers table

play02:48

you have to place product info table

play02:50

before the order items table because the

play02:53

product table is the master table to the

play02:55

order items table

play02:56

if you don't do this you will get

play02:58

constraint violation message during the

play03:00

import process

play03:01

[Music]

play03:10

foreign

play03:14

foreign

play03:17

[Music]

play03:24

table must be placed before the order

play03:26

items table now that we have the

play03:29

application as well as the underlying

play03:31

data packaged we can export this

play03:33

application

play03:34

[Music]

play03:46

foreign

play03:51

[Music]

play04:08

you need a new workspace on Oracle Apex

play04:11

site to test the import process click

play04:14

the info icon provided at the top to

play04:16

learn how to create a new workspace in

play04:18

Oracle Apex after creating the workspace

play04:22

log into it

play04:25

now import the application file that you

play04:28

just exported

play04:29

[Music]

play04:52

foreign

play04:55

[Music]

play05:13

after this success Now navigate to

play05:16

object browser

play05:19

and review the application tables that

play05:21

are installed along with the underlying

play05:23

data

play05:27

foreign

play05:28

[Music]

play05:33

sequences and triggers as well

play05:36

[Music]

play05:58

now run the new application you've just

play06:00

imported

play06:01

[Music]

play06:05

you will encounter an error saying you

play06:07

are not authorized to view this

play06:09

application

play06:10

when you deploy your application you

play06:12

will need to manually manage your user

play06:14

to roll assignments

play06:16

application users are not exported as

play06:18

part of your application

play06:20

in this step we have to add three users

play06:22

and assign them different roles

play06:25

[Music]

play06:29

create the first user with your new

play06:31

Workspace Email ID and assign it

play06:34

administrator role

play06:36

[Music]

play06:43

for remaining two users you can use any

play06:46

name you like

play06:48

then assign them contributor and reader

play06:50

role

play06:52

[Music]

play06:59

foreign

play07:03

[Music]

play07:14

set scheme to no application

play07:16

authorization required

play07:19

now you will be able to access your

play07:21

newly imported application

play07:23

[Music]

play07:32

foreign

play07:38

[Music]

play07:46

as you can see all the pages are

play07:49

displaying along with the complete data

play07:50

same as in previous workspace

play07:53

that's it for now

play07:55

hope this video was helpful to you

play07:57

thanks for watching

play07:59

[Music]

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Oracle ApexApplication MigrationData PackagingTech MiningBlob Data TypeExport UtilityDatabase ScriptsSequence ScriptImport ProcessUser RolesWorkspace Management