1. Create new module from Restfull service.
4. From Privilage Create New privilage.
1. Create new module from Restfull service.
Shell: It's a CLI stand for command-line-interface.
Terminal: A terminal is a tool in which you can pass your shell commands. To open the terminal press ctrl-alt-T.
Page zero acts as a template page for the application. A global page is a special page. Unlike all other processes, validations or branches. It function as a master pages.
begin dbms_errlog.create_error_log (dml_table_name => 'dest'); end;
begin dbms_errlog.create_error_log (dml_table_name => 'dest', err_log_table_name => 'dest_err_log'); end;
Begin
case when :apex$row_status = 'C' then
insert into emplocations (employee_id, location_id)
values (:employee_id, :location_id);
when :apex$row_status = 'U' then
update emplocations set
employee_id = :employee_id,
location_id = :location_id
where rowid = :rowid;
end;
End;
2. HTML Expression
<span class="id-col" pk="#EMPLOYEE_ID_NUM#">#EMPLOYEE_ID#</span> 3.PLugin Sql: SELECT '<script>alert("xss")</script><h4>Basic Information of : ' || EMPLOYEE_NAME ||'</h4>' ||'<table> <tr> <td> Image </td> <td> : </td> <td> '||decode(nvl(dbms_lob.getlength(E.PICTURE),0),1,null,'<img src="'||apex_util.get_blob_file_src('P10_PICTURE',E.UNIQUE_ID)||'" height="75" width="75"/>')||' </td> </tr> <tr> <td> Name </td> <td> : </td> <td> '||E.EMPLOYEE_NAME||' </td> </tr> <tr> <td> Join Date </td> <td> : </td> <td> '||to_char(E.JOINING_Date,'fm dd-Mon-RRRR')||' </td> </tr> <tr> <td> Phone </td> <td> : </td> <td> '||E.MOBILE_NO||' </td> </tr> <tr> <td> Email </td> <td> : </td> <td> '||E.PERSONAL_EMAIL||' </td> </tr> <tr> <td> Department </td> <td> : </td> <td> '||(SELECT CODE_DESC FROM CODE_MASTER WHERE HARD_CODE='DPT' AND SOFT_CODE=E.DEPARTMENT_ID)||' </td> </tr> <tr> <td> Police Station </td> <td> : </td> <td> '||(SELECT LOCATION_NAME FROM AREA_INFORMATION WHERE LOCATION_CODE=E.PERMANENT_THANA)||' </td> </tr> <tr> <td> District </td> <td> : </td> <td> '||(SELECT LOCATION_NAME FROM AREA_INFORMATION WHERE LOCATION_CODE=E.PERMANENT_DISTRICT)||' </td> </tr> ' AS TOOLTIP, 'floralwhite' AS BACKGROUNDCOLOR FROM EMPLOYEE_INFORMATION E WHERE UNIQUE_ID=:P7_NEW
1. First we need to login Oracle Cloud Autonomous Database.
2. Need to create Bucket to store DMP file that we want to restore in database.
=>Storage----Bucket---Create Bucket
=> From Bucket Object Select Upload Button to Upload DMP File.
=> Create ATP (Autonomous Transaction Processing) Database.
3. Connect Autonomous Database Using SQL Developer :
=> From Autonomous Database -> DB Connection Download client credentials (Wallet).
=> From SQL Developer Select New Connect & Select Connection Type is Cloud Wallet.
=> IN SQL Developer DBA Section select Import Jobs from Data Pump.
4.Important SQL Command :
=>create user mrhs identified by Ripon#123456 account unlock;
=>create user hpp identified by Ripon#123456 account unlock;
=>alter user mrhs identified by Ripon#123456 account unlock;
=>alter user HRMS identified by Ripon#123456 account unlock;
=>GRANT CONNECT TO HRMS;
=>GRANT create table TO HRMS;
=>DROP USER MRHS CASCADE;
Components of the physical database structure are given below.
Components of the logical database structure.
A database contains Logical Storage Unit called tablespaces. A tablespace is a set of
related logical structures. Actually, a tablespace group related logical structures together.
When the database is created in Oracle database system, it automatically generate a
SYSTEM named SYSTEM tablespace. The SYSTEM tablespace contains data dictionary
tables for the entire database.
A table is basic unit of data storage in Oracle
database. A table contains all the
accessible information of a user in rows and
columns.
Bulk copy or BCP in Oracle, is used to import or export data from tables and views but it does not copy structure of same data.
The main advantage of BCP is fast mechanism for coping data and you can also take the backup of data easily.
An Oracle database contains one or more logical storage units called tablespaces. These tablespaces collectively store whole data of databases and each tablespace in Oracle database consists of one or more files called datafiles. These datafiles are physical structure that confirm with the operating system in which Oracle is running.
A snapshot is a replica of a target master table from a single point in time. In simple words you can say, snapshot is a copy of a table on a remote database.
Hot backup (Online Backup): A hot backup is also known as online backup because it is done while the database is active. Some sites can not shut down their database while making a backup copy, they are used for 24 hour a day, 7 days a week.
Cold backup (Offline Backup): A cold backup is also known as an offline backup because it is done while the database has been shutdown using the SHUTDOWN normal command. If the database is suddenly shutdown with an uncertain condition, it should be restarted with RESTRICT mode and then shutdown with the NORMAL option.
For a complete cold backup, the following files must be backed up.
All data files, All control files, All online redo log files(optional) and the init.ora file (you can recreate it manually).
Oracle shared pools contain two layers:
Save points are used to divide a transaction into smaller parts. It allows the rolling back of a transaction. A maximum of five save points are allowed. It is used to save our data. You can roll back whenever you encounter an error from where you save your SAVEPOINT.
Hash cluster is a technique to store data in a hash table and improve the performance of data retrieval. A hash function is applied to the table row's cluster key value and stored in the hash cluster.
Tables: This is a set of elements organized in a vertical and horizontal fashion.
Tablespaces: This is a logical storage unit in Oracle.
Views: It is a virtual table derived from one or more tables.
Indexes: This is a performance-tuning method to process the records.
Synonyms: This is a name for tables.
A pre-query trigger fire before the query executes and fire once while you try to query. With this trigger's help, you can dynamically modify the where clause part.
Pre-select query fires during the execute query and count query processing after Oracle forms construct the select statement to be issued, but before the statement is actually issued.
Pre-query trigger fires before the Pre-select trigger.
Following are the different modules in Oracle forms:
Yes. We can create a synonym without having a base table.
In Oracle, the control file is used for database recovery. The control file is also used to identify the database and redo log files that must be opened for database operation to go ahead whenever an instance of an ORACLE database begins.
A synonym is also known as an alias for a table, view, sequence or program unit.
There are two types of synonyms or alias:
Private: It can only be accessed by the owner.
Public: It can be accessed by any database user.
You can store pictures in a database using the Long Raw Data type. This data type is used to store binary data for 2 gigabytes of length. However, the table can have only one Long Raw data type.
BLOB data type is a data type with varying length binary string. It is used to store two gigabytes memory. For the BLOB data type, the length needs to be specified in bytes.
Translate is used to substitute a character by character while Replace is used to substitute a single character with a word.
A list of different types of database objects:
Save Points are used to divide a transaction into smaller phases. It enables rolling back part of a transaction. There is a maximum of 5 save points allowed in the Oracle Database. Whenever an error is encountered, it is possible to roll back from where the SAVEPOINT has been saved.
The post-database commit trigger is executed after Oracle forms issue the commit to the finalized transaction while the post-form commit is fired during the post-and-commit transactions process, after the database commit occurs.
Logical backup is used to read a set of database records and write them into a file. An Export utility is used to take the backup, while an Import utility is used to recover from the backup.
Mirroring is a process of having a copy of Redo log files. It is done by creating a group of log files together. This ensures that LGWR automatically writes them to all the members of the current online redo log group. If the group fails, the database automatically switches over to the next group. It diminishes the performance.
The number of times a dictionary table is repeatedly called by various processes is known as a recursive hint. The recursive hint is occurred because of the small size of the data dictionary cache.
The main limitation of the CHECK constraint is that the condition must be a Boolean expression evaluated using the values in the row being inserted or updated and can't contain sub-queries.
GRANT is used to import object grants.
The ROWS option indicates whether the table rows should be imported.
The INDEXES option is used to determine whether indexes are imported.
The IGNORE option is used to specify how object creation errors should be handled.
The SHOW option specifies when the value of show=y, the DDL within the export file is displayed.
FILE param is used to specify the name of the export file to import. Multiple files can be listed, separated by commas.
Oracle reports are used to make business enable with the facility to provide information on all levels within or outside in a secure way. Oracle report uses REP files and RDF file extensions.
39. How does ROWID help in running a query faster?
ROWID is the logical address of a row, it is not a physical column. It composes of data block number, file number and row number in the data block. Thus, I/O time gets minimized retrieving the row and results in a faster query.
RowNum: RowNum is pseudo column. A pseudo column means a column which not exist the table physically, but we can use this in any select statement. Roenum is used to get the row number of the select query. if we have 10 records in the SQL query, then rownum will be 1 to 10 for this query.
40. What are database links used for?
Database links are created in order to form communication between various databases or different environments like test, development and production. The database links are read-only to access other information as well.
Different Between Oracle & SQL Server :
Locking prevents destructive interaction between concurrent transactions. Locks held until Commit or Rollback. Types of locking are:
Further, there are two locking methods:
Regular Expression: There are five Regular Expression support Oracle.
Directory Create : grant execute on utl_file to HRMS; CREATE OR REPLACE DIRECTORY STOCK_DIRECTORY AS 'C:\Program Files (x86)\Apache Sof...