Create GoldenGate 12.2 Database User

Oracle GoldenGate for Windows and UNIX 12c (

First, I am disappointed that Oracle does not go above and beyond to provide SQL scripts to create GoldenGate users for the database.

There are different set of privileges depending on the version of the database: Oracle or Earlier Database Privileges Oracle or Later Database Privileges

PDB is not (more...)

Clone GoldenGate 12.2

This is what insomnia does to you.

Since GoldenGate installation is now using runInstaller, I would expect the same functionality as the database; hence, cloning GoldenGate Home.

$ cd /u01/app/

$ ls
bcpfmt.tpl            ddl_ora10.sql             defgen                           extract      marker_status.sql       role_setup.sql
bcrypt.txt            ddl_ora10upCommon.sql     deinstall                        freeBSD.txt       mgr                     sequence.sql
cachefiledump         ddl_ora11.sql             demo_more_ora_create.sql         ggcmd        notices.txt             server

Silent Install GoldenGate 12.2

There are probably many blogs about installation; however, I tend to do things a little different.

$ cat /media/sf_working/oggcore_11gdb.rsp

I like to see installation progress.

$ ./runInstaller -silent -showProgress -waitforcompletion -responseFile /media/sf_working/oggcore_11gdb.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 28152 MB    Passed
Checking swap space: must be greater than  (more...)

Deinstall GoldenGate 12.2

I always like to know how to remove software installation in the event I am not happy with how it was installed.

GoldenGate Home is at /u01/app/oracle/12.2/ggs01

Thinking of may using the same directory structures as Grid Infrastructure, i.e. /u01/app/ with full release version.

$ ls -ld deinstall/
drwxr-xr-x. 2 oracle oinstall 4096 Apr  4 00:24 deinstall/

$ cd deinstall/

$ ls


Easy Way to Create pfile from spfile

I learned something new today; so excited as this will make automation so much easier.

create pfile=’/tmp/init@.ora’ from spfile;

The @ automatically substitute SID.

$ sysdba

SQL*Plus: Release Production on Sun Apr 3 09:45:49 2016

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application  (more...)

Tablespace Free w Fragmentation Info

I have been conversing with Liron Amitzi on twitter about his tablespace free SQL script.

He accommodate my request to add fragmentation details so I can verify against what I have.

Looks like I did it right.

You can find Lion script at this blog – Tablespaces Free Space and Stuff

$ sysdba @ts_free_space.sql

SQL*Plus: Release Production on Thu Mar 24 12:35:23 2016

Copyright (c) 1982, 2013, Oracle.   (more...)

Don’t Know cron

Learn something new every day !!!

Did you know the Date and Day from cron is OR condition and not AND?

Wanted to schedule cron to run every 3rd Friday.

This ended up running on the 19th which is Saturday

$ crontab -l|head -1
### Schedule below will run Every Friday OR Date 15-21
41 18 15-21 * 5 /bin/date > /tmp/date.out

$ date
Sat Mar 19 18:40:05 PDT 2016

$ date
Sat Mar 19  (more...)

Migrate to 12c using Export/Import

If you had success doing this, please share.

This took some troubleshooting and more than one pass.

Still not comfortable to guarantee target is identical to source.

Here are all the references, I have gathered if you want an adventure.

How to Perform a Full Database Export Import During Upgrade, Migrate, Copy or Move of a Database (Doc ID 286775.1)

Information On Installed Database Components and Schemas (Doc ID 472937.1)
Schemas CTXSYS MDSYS (more...)

12c Clone DB_SWONLY Oracle Home

Just some notes on 12c Oracle Home Cloning.

I am too lazy to put step by step instructions in words, and if you have questions, please ask.

<HOME NAME=”OraHome1” LOC=”/u01/app/oracle/product/12.2.0/dbhome_2″ TYPE=”O” IDX=”3″/>

$ . oraenv <<< db12c
ORACLE_SID = [hawlkas] ? The Oracle base remains unchanged with value /u01/app/oracle
$ pwd


Do you know what PSU there are?

$ ll *.zip
-rwxrwx---. 1 root vboxsf 147028181 Mar  4 20:00
-rwxrwx---. 1 root vboxsf 101720296 Mar  4 19:58

Let me give you a hint – (
Now do you know what they are?

Let me give you another hint.
21948354 ( – JAN2016 PSU (Database assumed here)
22139226 (12. (more...)