Showing posts with label Expert Exadata. Show all posts
Showing posts with label Expert Exadata. Show all posts

Useful Oracle Exadata Metalink Notes

Thought to list down some Exadata Document metalink which you can keep as a reference for lifetime.



Doc IDDocument Description
888828.1Exadata Database Machine and Exadata Storage Server Supported Versions
1270094.1Exadata Critical Issues
1353073.1Exadata Diagnostics Collection Guide
1187674.1Master Note for Oracle Exadata Database Machine and Oracle Exadata Stororage Server
1483344.1Exadata Platinum Customer Outage Classifications and Restoration Action Plans
1571965.1Maximizing Availability with Engineered Systems - Exadata
1262380.1Exadata Testing Practices and Patching Explained
1306814.1Oracle Software Patching with OPLAN
1110675.1Oracle Exadata Database Machine Monitoring
1070954.1Database Machine Healthcheck (Exachk)
1094934.1Best Practices for Data Warehousing on the Database Machine
1269706.1Best Practices for OLTP Applications on the Database Machine
1071221.1Oracle Sun Database Machine Backup and Recovery Best Practices
1054431.1Configuring DBFS on Oracle Exadata Database Machine
1084360.1Bare Metal Restore Procedure for Compute Nodes on an Exadata Environment (Linux)
1339769.1Master Note for Oracle Database Resource Manager
960510.1Data Guard Transport Considerations on Oracle Database Machine
1551288.1Understanding ASM Capacity and Reservation of Free Space in Exadata
401749.1Shell Script to Calculate Values Recommended Linux HugePages / HugeTLB Configuration
1009715.1Integrated Lights Out Manager (ILOM) CLI Quick Reference
1070954.1Oracle Exadata Database Machine exachk or HealthCheck
1317159.1Changing IP addresses on Exadata Database Machine
1244344.1Exadata Starter Kit
1537407.1Requirements and restrictions when using Oracle Database 12c on Exadata Database Machine
1551288.1Understanding ASM Capacity and Reservation of Free Space in Exadata
1459611.1How to Calculate Usable_FILE_MB / REQUIRED_MIRROR_FREE_MB
361468.1HugePages on Oracle Linux 64-bit
761868.1Oracle Exadata Diagnostic Information required for Disk Failures and some other Hardware issues
10386736Documentation for Exadata 11.2 & 12.1


You can follow  our   Exadata Certification Question   to   achieve   maximum success in your Exadata exam.

Steps to Generate Exadata One Command Configuration sheet

First download  Oracle Exadata Deployment Assistance from below link as per your respective Operating System.


Install it on your machine and click on config to open deployment assistance.

Below are the detailed steps to fill the configuration details.

Click to enlarge.....


Provide organization name, application details, timezone with NTP and DNS Server details.


Select appropriate Exadata Configuration Rack, in our case it's Half Rack High Performance.


Provide network details for Administration and Client connectivity. You should have separate network for admin and client as per best practice.

Exadata Storage Index Part-2 (Demo)

Continue from previous blog.....

In previous blog we have explained storage index and it's features. Now we will check real time performance benefits of storage index.

we have flush shared pool and buffer cache to determine exact value and benefits given by Storage Index.

Below query will show that how much physical IO bytes has been saved by storage Index.

SQL> select name, value from v$mystat s, v$statname n where n.statistic# = s.statistic# and name like '%storage%';

NAME                                                                  VALUE
---------------------------------------------------------------- ----------
cell physical IO bytes saved by storage index                             0

Enabling the storage index

SQL> alter session set "_kcfis_storageidx_disabled"=false;

Session altered.

Executing command on employee table

SQL> select ID from EMPLOYEE where ID is null;

no rows selected

Now we will check how much bytes has been saved by storage index with below query.

SQL> select name, value from v$mystat s, v$statname n where n.statistic# = s.statistic# and name like '%storage%';

NAME                                                                  VALUE
---------------------------------------------------------------- ----------
cell physical IO bytes saved by storage index                      48684323

Above value shows that we have saved 48684323 IO bytes saved with storage index while executing the query.

ASR Installation and Registration procedure with Oracle

Plateforms:

RHEL 3 or latter x86

SUSE Linux 9 or latter x86
OEL 4 or latter x86

Software Requirement (08/10/2013) :



  1. Oracle Automated Service Manager (OSAM) Package (Patch Number p17270592_150_Linux-x86-64.zip)
  2. Oracle Automated Service Request (ASR) Package (Patch Number p17199302_45_Linux-x86-64.zip)
  3. Service Tools Bundle (STB) (Patch Number p12757884_10000_Generic.zip)
Here we have taken rpm and patch for testing purpose, it's always best practice to use latest RPMs and patch.

All the installation must be done by super User

  1. Install STB on ASR Manager Server
          #rpm -i sun-hardware-reg-1.0.0-1.i386.rpm
          #rpm -i sun-servicetag-1.1.5-1.i386.rpm

   2. Verify created service tag execute below command


         #/opt/sun/servicetag/bin/stclient -x


  3. Install OSAM on ASR Manager Server


        #rpm -i SUNWsasm-1.5.0-112.rpm


  4. Install ASR Package on ASR Manager Server


       #rpm -ivh SUNWswasr-4.5-20130703104534.rpm


  5. Add asr path in .bash_profile file:


      PATH=$PATH:/opt/SUNWswasr/bin/asr

      export PATH

Register ASR Manager :

DBFS on Oracle Exadata

Follow below steps to create DBFS

Create the mount point for DBFS

[root@db01 ]# mkdir /dbfs_dir

Login with Oracle user

[root@db1 ]# su - oracle

Set the Oracle Database environment variable to connect the your database.

Connect Database as sysdba

[oracle@db01 ~]$ sqlplus  / as sysdba

Create tablespace on ASM disk group

SQL> create tablespace dbfsts datafile '+DATA' size 1G;

SQL> create user dbfs_usr identified by Dbfs_pwd1 default tablespace dbfsts quota unlimited on dbfsts;

SQL> grant create session, create table, create procedure, dbfs_role to dbfs_usr;

You can use below syntax to create bigfile tablespace.

create bigfile tablespace dbfsts datafile '+DATA' size 2048g autoextend off nologging extent management local;

Go to admin directory of oracle binaryand run the below procedure

$cd $ORACLE_HOME/rdbms/admin

$sqlplus dbfs_usr/Dbfs_pwd1

SQL> start dbfs_create_filesystem_advanced dbfsts FS nocompress nodeduplicate noencrypt non-partition

Above procedure should run without errors.

TEST DBFS SETUP

[oracle@db01 ~]$ echo Dbfs_pwd1 > pwd.txt

[oracle@db01 ~]$ nohup $ORACLE_HOME/bin/dbfs_client dbfs_usr@test /dbfs_dir < pwd.txt &

- 'test' is database name
- '&' to run the process in background
- '/dbfs_dir' is a directory on which DBFS will be mounted

LOGIN to Oracle USER account from another terminal and check the DBFS file system

[oracle@db01 ~]$ cd /dbfs_dir/FS
[oracle@db01 ~]$ touch test.txt
[oracle@db01 ~]$ ls -ltr test.txt

LOGIN to root USER account from another terminal and check whether you can get acces of the DBFS file system

[root@db01 ]# cd /dbfs_dir/FS
Permission Denied

To unmount the file system issue the following command from the "root" OS user.

[root@db01 ]# fusermount -u /dbfs_dir

To allow other users ( example root to access the filesystem )

[oracle@dbs1 ]$ su - root
Password :

[root@db01 ]# echo user_allow_other > /etc/fuse.conf

change permission of /etc/fuse.conf to 644


[root@db01 ]#chmod 644 /etc/fuse.conf

[root@db01 ]# su - oracle

[oracle@db01 ~]$ nohup $ORACLE_HOME/bin/dbfs_client dbfs_usr@test -o direct_io,allow_root /dbfs_dir < pwd.txt &

You can check nohup file for any error logs.

Login to root user account from another terminal and check the accessibility of DBFS

[root@db01 ]# cd /dbfs_dir/FS
[root@db01 ]# ls -lt test.txt

To unmount the file system issue the following command from the "root" OS user.

# fusermount -u /dbfs_dir

Cellcli - Alter

CellCLI> alter cell shutdown services rs --> To shutdown the Restart Server service 
CellCLI> alter cell shutdown services MS --> To shutdown the Management Server service 
CellCLI> alter cell shutdown services CELLSRV --> To shutdown the Cell Services 
CellCLI> alter cell shutdown services all -->To shutdown the RS, CELLSRV and MS services 
CellCLI> alter cell restart services rs 
CellCLI> alter cell restart services all 
CellCLI> alter cell led on
CellCLI> alter cell led off 
CellCLI> alter cell validate mail
CellCLI> alter cell validate configuration 
CellCLI> alter cell smtpfromaddr='cell07@orac.com' 
CellCLI> alter cell smtpfrom='Exadata Cell 07' 
CellCLI> alter cell smtptoaddr='satya@orac.com' 
CellCLI> alter cell emailFormat='text' 
CellCLI> alter cell emailFormat='html' 
CellCLI> alter cell validate snmp type=ASR - Automatic Service Requests (ASRs) 
CellCLI> alter cell snmpsubscriber=((host='snmp01.orac.com,type=ASR')) 
CellCLI> alter cell restart bmc - BMC, Baseboard Management Controller, controls the compoments of the cell. 
CellCLI> alter cell configure bmc 
CellCLI> alter physicaldisk 34:2,34:3 serviceled on
CellCLI> alter physicaldisk 34:6,34:9 serviceled off 
CellCLI> alter physicaldisk harddisk serviceled on 
CellCLI> alter physicaldisk all serviceled on 
CellCLI> alter lun 0_10 reenable 
CellCLI> alter lun 0_04 reenable force 
CellCLI> alter celldisk FD_01_cell07 comment='Flash Disk' 
CellCLI> alter celldisk all harddisk comment='Hard Disk' 
CellCLI> alter celldisk all flashdisk comment='Flash Disk' 
CellCLI> alter griddisk RECO_CD_10_cell06 comment='Used for Reco'
CellCLI> alter griddisk all inactive 
CellCLI> alter griddisk RECO_CD_11_cell12 inactive 
CellCLI> alter griddisk RECO_CD_08_cell01 inactive force 
CellCLI> alter griddisk RECO_CD_11_cell01 inactive nowait 
CellCLI> alter griddisk DATA_CD_00_CELL01,DATA_CD_02_CELL01,...DATA_CD_11_CELL01 inactive 
CellCLI> alter griddisk all active 
CellCLI> alter griddisk RECO_CD_11_cell01 active 
CellCLI> alter griddisk all harddisk comment='Hard Disk' 
CellCLI> alter ibport ibp2 reset counters
CellCLI> alter iormplan active 
CellCLI> alter quarantine 
CellCLI> alter threshold DB_IO_RQ_SM_SEC.PRODB comparison=">", critical=100 
CellCLI> alter alerthistory