Creating an Oracle Profile

Administering users with different policies have the possibility of major security in oracle database that compliam with all security departments in each organization.

In Oracle 19, have the same way to create profiles as Oracle 12.1, 12.2 , 18 and 19.

CREATE PROFILE GANDALF LIMIT 
   SESSIONS_PER_USER          UNLIMITED 
   CPU_PER_SESSION            UNLIMITED 
   CPU_PER_CALL               3000 
   CONNECT_TIME               45 
   LOGICAL_READS_PER_SESSION  DEFAULT 
   LOGICAL_READS_PER_CALL     1000 
   PRIVATE_SGA                15K
   COMPOSITE_LIMIT            5000000; 

Here, you have an small explanation about each parameter :

  1. SESSIONS_PER_USER: The user can have any number of concurrent sessions.
  2. CPU_PER_SESSION: In a single session, the user can consume an unlimited amount of CPU time.
  3. CPU_PER_CALL: A single call made by the user cannot consume more than 30 seconds of CPU time.
  4. CONNECT_TIME: A single session cannot last for more than 45 minutes.
  5. LOGICAL_READS_PER_SESSION: In a single session, the number of data blocks read from memory and disk is subject to the limit specified in the DEFAULT profile.
  6. LOGICAL_READS_PER_CALL: A single call made by the user cannot read more than 1000 data blocks from memory and disk.
  7. PRIVATE_SGA: A single session cannot allocate more than 15 kilobytes of memory in the SGA.
  8. COMPOSITE_LIMIT: in a single session, the total resource cost cannot exceed 5 million service units. The formula for calculating the total resource cost is specified by the ALTER RESOURCE COST statement.

Those are not the only paramters ,but this its a great example to start diferent tests.

How to RU Patch Deinstallation

Hello Guys !

I’m here again, to give an small explanation of why, we need know how to deinstall an Release Update.

Why ?

It’s depends, on my case, the last RU had some issues in the import datapump.

After review all cases and aply some workarounds, and debug and review all logs and traces with the ADRCI tool to stay sure of my desicion, deinstall.

Additional Documentation

I review the oracle document from MOS: Database 19c Release Updates and Revisions Bugs Fixed Lists (Doc ID 2523220.1)

Hands on

The first step is verificate the number of the RU, to start with the procediment:

select CON_ID,
TO_CHAR(action_time, 'YYYY-MM-DD') AS action_time,
PATCH_ID,
PATCH_TYPE,
ACTION,
DESCRIPTION,
SOURCE_VERSION,
TARGET_VERSION
from CDB_REGISTRY_SQLPATCH
order by CON_ID, action_time, patch_id;

This query help us, with the list of the number, to verified the last patch applied.

Sigue leyendo

How to find your Exadata Machine Version

In some caso to buil a report or its necesary know the version on own exadata machine to take some desicion to increaze the storage, virtualized or apply an upgrade we can find this information in the file databasemachine.xml :


databasemachine.xml

With this command line we know where to find the file :


[root@exa01dbadm01 ~]# locate databasemachine.xml | xargs ls -l

when knowing which is the date of the file, we know which is the last updated, and there we filter which is our XML file, in order to obtain the version of the computer equipment:


[root@exa01dbadm01 ~]# cat /EXAVMIMAGES/onecommand/linux_x64/DEPLOY-20-08-2019/cluster2_databasemachine.xml | grep -i MACHINETYPE

X6-2 Elastic Rack HC 8TB

It is important that we know what each of the acronyms HC or HP means:


HP => High Performance
HC => High Capcity

I hope it is useful for reporting or making decisions about your exadata database machine.

Oracle Golden Gate on Exadata | Configure OGG

In the previous article  Install OGG, we noticed that the installation of software Oracle GoldenGate finished fine and could observer that the manager runs fine.

So, We need start with the following steps to continue with the awaited moment, replication.

Also for easy administration and execution of OGG command line, its recommend set the environment variables.

Usually, I set the env variables for avoid issues.

export OGG_HOME=/ggate/OGG/11.2.0/<$ORACLE_SID>
export ORACLE_HOME=/u01/app/dbhome/11.2.0.4
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$PATH:$OGG_HOME

You can set it, on the .bash_profile or (I preferred use an simple env variable script on the user home) an script.

The config used on the prevously step, avoid some error that will be appear, for example:

./ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file

Keep in mind this check:

  • tnsnames
  • Define TNS_ADMIN
  • Create subdirs [OGG_CONSOLE]
  • Prepare the Source Database
  • Configure Parameters on Source and Target Databases for Golden Gate.
  • Configure Users on Source and Target Databases.

Let’s start !

Sigue leyendo

Oracle Golden Gate on Exadata | Install OGG on ACFS

Well, once installed ACFS Cluster File system, continues installing to the graphical Oracle Golden Gate Product.

Before start this task, I recommend him that check the following links. Good, Lets start.

  • Download the software OGG.

http://www.oracle.com/technetwork/middleware/goldengate/downloads/index.html

  • Create the OGG paths.
cd /ggate
mkdir -p /ggate/OGG/11.2.0/$ORACLE_SID
mkdir -p /ggate/OGG/STAGE
  • Move the file V861007-01.zip to the shared file system and unzip the file.
mv  V861007-01.zip /ggate/OGG/STAGE
cd /ggate/OGG/STAGE
unzip V861007-01.zip
  • Set the X variables and execute the OGG installation.
cd fbo_ggs_Linux_x64_shiphome
export DISPLAY=xxx.xxx.xxx.xxx:0
export $OGG_HOME=/ggate/OGG/11.2.0/$ORACLE_SID
./runInstaller

Note Tip: You have the option to realize the silent mode installation. Check Here OGG Silent Mode

  • Select the Database Version Button (we choose the 11g, because we’ll replicate between 11g and 12c)

Remember, it’s depends of the site where you install the OGG binaries, you need choose the adecuated version supported to your database.

Sigue leyendo

Oracle Golden Gate on Exadata | Configuring ACFS

Good Morning Guys ! I am started on a new challenge, and my articles will be write in English Mode, because the best part of my public, and messages that I receive every day are from India, England, USA and many countrys from world.

I love the Community and promess continuing givin support and answers to a lots of mails on Spanish that I receive every week. Let’s start!

Matrix Installation

Product Version
Oracle Golden Gate 12.2.0.2.2
Exadata Image Version 12.1.2.3.6.170713
Oracle Grid Infrastructure 12.1.0.2

Pre Requisites

We’ll start with an summary of tasks that we need keep in mind to start with confguration and installation of Oracle Golden Gate on a RAC environment. It’s necessary :

  • An a share file system, we choice ACFS (ASM Cluster File System) under grid infrastructure 12.1.0
  • Oracle Golden Gate.

Creating and configuring ACFS on Exadata

When we working on an Oracle RAC environment, we must install an OGG on a cluster file system. As part of the architecture design, we choose the ACFS, but we could use NFS or DBFS.

My desicion was based on my experience with this FS and listening the council from others partners , that were used on ODA implementations.

Basically, my procedure are same that on Non Exadata Environments:

export DISPLAY=xxx.xxx.xxx.xxx:0
. oraenv
asmca

On the next screen, we can see the name of the candidate DG.

Generally, we find typically three disk groups.

  • We choose the DBFS_DG .

  • Choose the Volume tab.
  • Click the Create button to create a new Volume (remember that we need the OGG FS).
  • Complete Create Volume. Sigue leyendo

Database Target Status Shows “Dynamic Category property error” In 13c Cloud Control

Nos encontrabamos remapeando instancias de Oracle Cloud Control 12c hacia Oracle Cloud Control 13c, como parte de la planificacion de un nuevo esquema de monitoreo, y gestion de Tickets de Soporte.

Problema

En una las bases de Exadata que recientemente habian sido agregadas sin problemas, intentamos revisar las metricas en el dashboad y nos encontramos con un error el target.

“Dynamic Category property error, Get dynamic property error, No such metadata, Computation of a critical dynamic property failed. Retries Completed”

Causa

Cual fue la causa ?
Revisando en la tabla dba_registry_history, nos encontramos con que falta la columna bundle_series.

SQL> desc dba_registry_history
Name           Null?    Type 
------------- -------- ----------------------------
 ACTION_TIME            TIMESTAMP(6) 
 ACTION                 VARCHAR2(30)
 NAMESPACE              VARCHAR2(30)
 VERSION                VARCHAR2(30)
 ID                     NUMBER
 COMMENTS               VARCHAR2(255)

SQL> quit

Solucion

Sigue leyendo