Install Oracle 11G Release 2 (11.2) on Fedora 22

This article presents how to install Oracle 11G on Fedora 22.

Read following article how to install Fedora 22 Linux: Install Fedora 22 (for comfort set 4G memory for your virtual machine before proceeding with Oracle software installation).

Installation software is available on OTN version 11.2.0.1 or metalink 11.2.0.4. In this installation I’m presenting installation for 11.2.0.4 but for previous version 11.2.0.X it shouldn’t be different.

Check article for new release Install Oracle 12C Release 1 (12.1) on Fedora 22

Oracle software that was verified

release 11.2.0.4

p13390677_112040_Linux-x86-64_1of7.zip 
p13390677_112040_Linux-x86-64_2of7.zip

Continue reading

Status in AUD$ ACTION#

If you want to filter and analyze your audit data from AUD$ table you need to scan data using ACTION# column. It keeps information about audit actions but is NUMERIC columns. To find out meaning of the column check AUDIT_ACTIONS table

So using simple join between AUD# and AUDIT_ACTIONS tables filter data as you want

SELECT *
  FROM sys.aud$
 WHERE ntimestamp# > SYSDATE - 7
  AND action# IN (
        SELECT action 
          FROM audit_actions
        WHERE name IN 
          ('ALTER USER',
           'CREATE USER',
           'DROP USER'));

List of all audit actions

SELECT action, name 
  FROM audit_actions
ORDER BY 1;

Continue reading

Install Fedora 22

This article presents how to install Fedora 22 – Live Workstation version.

I assume you have already downloaded Fedora 22 64 bit Live Workstation(about 1,37 G) and you know how to use VirtualBox 64 bit(100M). Create virtual machine with default settings for Linux Fedora 64 bit. 2GB ram and 64G(includes extra space for Oracle installations) for disk is enough plus increase video memory to 128M. Rest of options you can keep default.

Fedora22_1

Continue reading

Install and configure Apex 5.0.X embedded PL/SQL

This article presents how to install and configure Apex for version 5.0.X

Prepare software to installation

Download installation package from Oracle site and unzip.

Download apex_5.0.X.zip to directory /tmp and unzip it from
http://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html

cd /tmp
unzip <downloaded software>

After unzip is completed a new directory will be created /tmp/apex so go to this directory and log into database as SYSDBA. Always use SYSDBA account for running all scripts.

cd /tmp/apex
sqlplus / as sysdba

Pre-installation steps

It’s recommended to do backup of the database and disable the Oracle XMLDB HTTP server by setting the HTTP port to 0.

EXEC DBMS_XDB.SETHTTPPORT(0);

Continue reading

Patch terminology in Oracle databases

This article in short explain patch terminology used by Oracle.

New Name Old Name Description
Interim Patch PSE, MLR, Exception release, One-Off, x-fix, Hotfix, Security One-Off A patch containing one or more fixes made available to customers who cannot wait until the next patch set or new product release to get a fix.
Diagnostic Patch Diagnostic Patch, test Patch, Fix Verification Binary (FVB), e-fix An interim patch created specifically to diagnose a problem and not to fix a bug.
Bundle Patch Maintenance Pack, Service Pack, MLRs, Cumulative Patch, Update Release, Bundle Patch An iterative, cumulative patch that is issued between patch sets. Bundle patches usually include only fixes, but some may include minor enhancements. Examples are the Database Windows Bundles and SOA Bundle Patches.
Patch Set Update (PSU)
Patch Set Update (PSU) A quarterly patch that contains the most critical fixes for the applicable product, allowing customers to apply one patch to avoid many problems.
Security Patch Update (SPU)
Critical Patch Update (CPU) An iterative, cumulative patch consisting of security fixes. Formerly known as Critical Patch Update.Note that the program name which delivers SPUs will still be called Critical Patch Update, as defined below:

Oracle’s program for quarterly release of security fixes. Patches released as part of this program may be Patch Set Updates, Security Patch Updates, and Bundle Patches. Regardless of the patch type, the patches are cumulative.

 

Have a fun :)
Tomasz

Finding source code in Oracle

Finding source code written by a developer is typical task executed by a DBA or a developer.

Generally there are two basic methods to get source code:

  • select code from dictionary views – quick, simple, can return part of code, complicated to generate properly DDL
  • generate code using DBMS_METADATA package – very powerful, returns full code, easy to generate DDL code

Continue reading

NOLOGGING and recovery in Oracle

In Oracle Database NOLOGGING option used together with DIRECT mode speeds up transactions executed in a database because it limits information that Oracle writes about such transactions into redo logs and finally impacts size of generated archivelogs.

unrecoverable_transactions_1

That’s because Oracle just writes basic information about executed transaction without modified data to redo logs. Such transactions are called UNRECOVERABLE because in case of database recovery archivelogs don’t have real data only informations about executed transactions.

It can impact later restores and this article shows it.

Continue reading