Upgrade Failed with PRKO-3226
1/18/2015 06:21:00 PM
Gönderen Mete Karar
PRKO-3226 : Upgrade from version 11.2.0.4.0 to version 11.2.0.4.0 using srvctl upgrade model command of version 11.2.0.4.0 is not supported
When it's queried, CRS's version seems upgraded:
$ crsctl query crs softwareversion
Oracle Clusterware version on node [node2] is [11.2.0.4.0]
Exadata and iPhone
4/10/2014 01:34:00 AM
Gönderen Mete Karar
I never thought one day I will find a similarity between Oracle Exadata and iPhone. But it was before Oracle announced X4-2C, the colorful Exadata:)
However, I don't think that X4-2C is cheaper as iPhone 5C is, since it's a limited edition...
Data Redaction in Oracle 12c and 11gR2
4/10/2014 01:13:00 AM
Gönderen Mete Karar
begin
dbms_redact.add_policy (
object_schema => 'DEMO',
object_name => 'CUSTOMERS',
column_name => 'CNAME',
policy_name => 'customers_pol',
function_type => DBMS_REDACT.REGEXP,
regexp_pattern => '(\S{3})(\S+)',
regexp_replace_string => '\1***',
expression => 'SYS_CONTEXT(''USERENV'',''SESSION_USER'') != ''SYS'''
);
end;
/
begin
dbms_redact.alter_policy (
object_schema => 'DEMO',
object_name => 'CUSTOMERS',
policy_name => 'customers_pol',
action => DBMS_REDACT.ADD_COLUMN,
column_name => 'DOB',
function_type => DBMS_REDACT.PARTIAL,
function_parameters => DBMS_REDACT.REDACT_DATE_EPOCH,
expression => 'SYS_CONTEXT(''USERENV'',''SESSION_USER'') != ''SYS'''
);
end;
/
begin
dbms_redact.alter_policy (
object_schema => 'DEMO',
object_name => 'CUSTOMERS',
policy_name => 'customers_pol',
action => DBMS_REDACT.ADD_COLUMN,
column_name => 'CID',
function_type => DBMS_REDACT.FULL,
expression => 'SYS_CONTEXT(''USERENV'',''SESSION_USER'') != ''SYS'''
);
end;
/
begin
dbms_redact.alter_policy (
object_schema => 'DEMO',
object_name => 'CUSTOMERS',
policy_name => 'customers_pol',
action => DBMS_REDACT.MODIFY_COLUMN,
column_name => 'CID',
function_type => DBMS_REDACT.RANDOM,
expression => 'SYS_CONTEXT(''USERENV'',''SESSION_USER'') != ''SYS'''
);
end;
/
Now, we set it to use random masking, random values will be generated for the column. Redacted query output is as below at the end:
SQL> select cid, cname, dob from demo.customers;
CID CNAME DOB
-----------------------------------------
1311680984 ABD*** AYD*** 01-JAN-70
102691765 AHM*** YIL*** 01-JAN-70
819107024 ARI*** DEM*** 01-JAN-70
7285271581 AYD*** TUR*** 01-JAN-70
22688323660 AZM*** SEV*** 01-JAN-70
7508336149 HAC*** ELM*** 01-JAN-70
46158355970 HAL*** HAT*** 01-JAN-70
SQL Developer Hints to Format Output
9/17/2013 12:21:00 AM
Gönderen Mete Karar
10,"ACCOUNTING","NEW YORK"
20,"RESEARCH","DALLAS"
30,"SALES","CHICAGO"
40,"OPERATIONS","BOSTON"
20|"RESEARCH"|"DALLAS"|
30|"SALES"|"CHICAGO"|
40|"OPERATIONS"|"BOSTON"|
"10" "ACCOUNTING" "NEW YORK"
"20" "RESEARCH" "DALLAS"
"30" "SALES" "CHICAGO"
"40" "OPERATIONS" "BOSTON"
REM INSERTING into scott.dept
SET DEFINE OFF;
Insert into scott.dept (DEPTNO,DNAME,LOC) values (10,'ACCOUNTING','NEW YORK');
Insert into scott.dept (DEPTNO,DNAME,LOC) values (20,'RESEARCH','DALLAS');
Insert into scott.dept (DEPTNO,DNAME,LOC) values (30,'SALES','CHICAGO');
Insert into scott.dept (DEPTNO,DNAME,LOC) values (40,'OPERATIONS','BOSTON');
BEA-337 Incidents on OMS 12c
9/05/2013 06:17:00 PM
Gönderen Mete Karar
Problem Key: BEA-337 [WebLogicServer]
Error Message Id: BEA-337
Description
-----------
Incident detected using watch rule "StuckThread":
Watch ServerName: EMGC_OMS1
Watch RuleType: Log
Watch Rule: (SEVERITY = 'Error') AND ((MSGID = 'WL-000337') OR (MSGID = 'BEA-000337'))
Watch DomainName: GCDomain
Watch Data:
SERVER : EMGC_OMS1
MESSAGE : [STUCK] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "611" seconds working on the request "weblogic.servlet.internal.ServletRequestImpl@70733a9e[
POST /em/websvcs/emws/ConsoleJobStepExecutorService HTTP/1.1
Is Database 12c Supported on Exadata?
9/03/2013 06:23:00 PM
Gönderen Mete Karar
Answer is yes, even you can see 12c is listed under supported versions in document [888828.1].
However, there is a couple of buts (you should see this coming). Since latest Exadata Storage Software (version 11.2.3.2.1) does not have new offload libraries, smart scan offload filtering and storage indexes become disabled with 12c. Smart scans are initiated but nodes get back blocks instead of rows and columns in the projection list. Also IORM plans are not enforced and inter-database plans are disabled on cells. And finally, cell metrics display 12c databases under OTHER_DATABASE.
So, it seems better to wait until next Exadata update and probably 12c patch set update to upgrade your Exadata. At least, to be able upgrade to a fully functional state. Meanwhile, you'd better upgrade to 11.2.0.3 if you haven't yet because upgrading from 11.2.0.1 is not supported.
Installing Single Instance Oracle 12c Database on Linux
6/30/2013 11:47:00 PM
Gönderen Mete Karar
However mentioned package cannot be found on ULN. Instead install previous version's pre-install package. It does the job as well:
Create installation directory and grant required permissions:
$ mkdir /u01
$ chown oracle:oinstall /u01
$ chmod 775 /u01
As oracle, which is created by pre-install package, run the installer from the directory where you unzipped two installation zip files:
$ ./runInstaller
Graphical installation starts:
Skip updates
You can choose to create a database right after software installation or you can choose to install software first then run DBCA to create the database.
Select system class:
Select GI option:
I choose to follow advanced installation path to see what is there:
Select language(s):
Select database edition to install:
Specify installation paths:
Specify inventory directory:
Select database type:
Specify database name. As a new feature, you can choose to create a multi-tenant database.
Configure database by specifying memory options, character set and sample schema installation:
Specify storage, I set the path of mount point of NAS disk:
Specify Cloud Control details if you'll manage the instance through it:
Choose to use FRA and set path -or ASM- for FRA:
Set passwords for built-in users:
Set system groups:
Investigate summary and if there's anything you need to chance:
Installation starts. Run the root scripts when prompted:
12c DBCA
If you choose to install software only during installation or installation failed to create the database - as I've experienced - you can run database configuration assistant (DBCA) which is located under ORACLE_HOME/bin:
$ cd /u01/app/oracle/product/12.1.0/dbhome_1/bin
$ ./dbca
Graphical installation starts:
I choose to follow advanced installation path to see what is there:
Select the template of database type:
Set database names including container database:
Choose to configure database with EM Database Express (previous version's dbconsole) or with Cloud Control:
Set passwords of built-in user:
Set listener configuration, leave it as default:
Set storage specifications:
Set database options:
Set initialization parameters for memory management, number of Oracle processes, character set and connection mode:
After pre-requisite check installation starts. When finished, necessary information is displayed:
Enjoy and discover your first 12c database...





































