"In this world nothing can be said to be certain but death and taxes."
--Benjamin Franklin
Tuesday, April 13, 2010
Monday, September 28, 2009
Module name for logon trigger in 11g R2 AWR report
In oracle 11g R1 AWR report logon trigger modelue name usually come like
sqlplus / perl / Mid Tier@server_name_from_it_login
But in 11g R2 AWR report logon trigger modelue name usually come like oraagent.bin@DB_SERVER_WHERE_IT_RUN
New change looks more logical because DB server running logon trigger code ,
not the user.
# Excerpt from 11g R1 AWR report # In below given example app678 is server name from where # user logged in to database using sqlplus Module: sqlplus@app678utl (TNS V1-V3) UPDATE scott.MY_AUDIT SET LAST_LOGIN = SYSDATE WHERE XYZ_USERNAME = :B1 |
#Excerpt from 11g R2 AWR report Module: oraagent.bin@apps001 (TNS V1-V3)
|
Friday, September 4, 2009
Oracle Database 11g Release 2 New Features : Edition based redefination
Every release has some Major changes , which we usually says New Features.Some of these features dominate the version, For example 11g R1 has SPA , DB Replay Active standby etc. Same this Oracle Release ( Oracle Database 11g Release 2 ) has some New features for which this release will be known in feature. These features are "Edition based redefination"
Most likely these features designed to give big support to APPS upgrade ( ie Oracle E-Business suite upgrade). When you upgrade APPS database , it need lots of down time , hope, using these new features APPS upgrade will take less time in future.
This feature will allow application upgrade( AS DBA , i would prefer to say Online Database object upgrade) with Minimum down time or may be zero down time. I consider this feature as one step toward ZERO DOWN time for application upgrade.
In 10g statistics collected on table published immediatly, That usually cause lots of performance issue. In oracle 11g r1 there is feature, for collecting stats on tables and publishing stats , as per need to avoid performance issue due to stats collection.
Taking similar feature to next step , 11g R2 has feature "REDEFINITION" , which upgrades objects , but not published immediately, also database can have multiple Editions of objects definition. Of-course there are, some limitation
Check Default Edition
SQL>
|
Changing Edition at session or Database level
SQL> ALTER SESSION SET EDITION=ora$base;
|
Grant create or drop edition to user
SQL> GRANT CREATE ANY EDITION, DROP ANY EDITION to virag; Grant succeeded.
|
Enable Edition on schema / User
SQL> ALTER USER virag ENABLE EDITIONS force;
|
Of-course there are, some limitation......
Will add more ......soon , for How to...
Reference
More Post on Oracle RDBMS Database 11g R2 ( Release 2 )
Oracle 11g Release 2 (11.2 ) New Features : SCAN - Single Client Access Name
11G R2 New Feature : Purge audit trail records using DBMS_AUDIT_MGMT
Oracle Database 11g Release 2 New Features : Edition based redefination
Wednesday, September 2, 2009
Oracle 11g Release 2 (11.2 ) New Features : SCAN - Single Client Access Name
entry. Oracle 11g R2 introduced new concept called Single Client Access Name (SCAN).
Which eliminate the need to change tnsnetry when nodes are added to or removed from
the Cluster.
RAC Instances register to SCAN listeners as remote listeners. SCAN is fully qulified name.
Oracle recommends to assign 3 address to SCAN , which create three SCAN listeners.
$ srvctl status scan_listener |
Running following command on Node 2 (apps002)
$ ps -aef |grep -i SCAN oracle 9380 1 0 Aug13 ? 00:01:09 /d01/apps/oracle_crs/11.2/bin/tnslsnr LISTENER_SCAN2 -inherit oracle 9380 1 0 Aug13 ? 00:01:09 /d01/apps/oracle_crs/11.2/bin/tnslsnr LISTENER_SCAN3 -inherit |
From above output, it is clear that SCAN listener is running from CRS_HOME
$ srvctl config scan_listener |
tns entry can use single address ( SCAN Name ) in tnsentry , instead os using entry for all Node
tns entry configured to use VIP addresses for Database will work without any issue. using
SCANs is not Medatory ( May be to support backward compatibility )
# test.world = |
Clients Can connect to a particular instance of the database using SCAN. Entry will looks like
test.world = |
tns entry configured to use VIP addresses for Database will work without any issue. using
SCANs is not Medatory ( May be to support backward compatibility )
More Post on Oracle RDBMS Database 11g R2 ( Release 2 )
Oracle 11g Release 2 (11.2 ) New Features : SCAN - Single Client Access Name
11G R2 New Feature : Purge audit trail records using DBMS_AUDIT_MGMT
Oracle Database 11g Release 2 New Features : Edition based redefination
11G R2 New Feature : Purge audit trail records using DBMS_AUDIT_MGMT
IN Oracle 11g R2 ( Also included in 11.1.0.7 and 10.2.0.5 ( Need to check)) , you can change audit table (SYS.AUD$ and SYS.FGA_LOG$) tablespace using DBMS_AUDIT_MGMT
Not ONLY you can change audits table tablespace , now you can periodically deleting the audit trail records using CLEAN_AUDIT_TRAIL (new in 11.2 ) Procedure.
So Now it is official , that you can change AUD$ table tablespace and purge :-) .
In Below given example , am trying to change tablespace for AUD$
Checking current tablespace from AUD$
SQL> select TABLESPACE_NAME from dba_segments where SEGMENT_NAME='AUD$'; |
Changing Tablespace from SYSTEM to SYSAUX for AUD$
SQL> BEGIN PL/SQL procedure successfully completed. |
Checking changed Tablespace
TABLESPACE_NAME -------------------------------------------------------------------------------- SYSAUX |
AUDIT_TRAIL_TYPE: Refers to the database audit trail type. Enter one of the following values:
- DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD: Standard audit trail table, AUD$.
- DBMS_AUDIT_MGMT.AUDIT_TRAIL_FGA_STD: Fine-grained audit trail table, FGA_LOG$.
- DBMS_AUDIT_MGMT.AUDIT_TRAIL_DB_STD: Both standard and fine-grained audit trail tables.
AUDIT_TRAIL_LOCATION_VALUE: Specifies the NEW destination tablespace.
Not ONLY you can change audits table tablespace , now you can periodically deleting the audit trail records/xml/.aud files etc using CLEAN_AUDIT_TRAIL Procedure.
STEPS for Purging AUDIT TRAIL
# Check initialization BEGIN # Set Last Audit Time stamp
# For non RAC don't use "RAC_INSTANCE_NUMBER =>" # Manual Purge BEGIN # # Here we used DBMS_AUDIT_MGMT.AUDIT_TRAIL_ALL =>
|
Refrence
DBMS_AUDIT_MGMT ( Oracle Documentation 11.2 )
More Post on Oracle RDBMS Database 11g R2 ( Release 2 )
Oracle 11g Release 2 (11.2 ) New Features : SCAN - Single Client Access Name
11G R2 New Feature : Purge audit trail records using DBMS_AUDIT_MGMT
Oracle Database 11g Release 2 New Features : Edition based redefination