Tuesday, September 11, 2012

Configuring OWB Installed as Part of Oracle Database 11g Release 2





Configuring OWB Installed as Part of Oracle Database 11g Release 2
Once Oracle Database 11g Release 2 is installed, you only have to unlock two accounts: OWBSYS and OWBSYS_AUDIT.

To unlock OWBSYS and OWBSYS_AUDIT accounts:
1. At the command prompt, start SQL*Plus:
% sqlplus
SQL*Plus: Release 11.2 - Production on Mon July 27 13:06:27 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
2. When prompted for user name, log in as a user with administrative privileges.
Enter user-name: sys as sysdba
Enter password: password
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2 - Production
With the Partitioning, OLAP and Data Mining options
3. Unlock the OWBSYS user account, and set its new password:
SQL> alter user owbsys identified by password account unlock;
User altered.
4. Unlock the OWBSYS_AUDIT user account, and set its new password:
SQL> alter user owbsys_audit identified by password account unlock;
User altered.

Configuring OWB Installed as a Standalone Instance

About Configuring OWB Installed as a Standalone Instance
1.       Ensure that the database is fully installed and working; if you it is not, see Oracle Database Quick Installation Guide
2.       Note of the host name, the port, and Oracle service name of this database. The example here uses the following connection information:
localhost:1521:orcl.
3.       Ensure that you have username and password for an account with SYSDBA privileges.

You must first create an OWBSYS schema, and then install repository objects within it. Oracle Warehouse Builder has command-level scripts to perform this task:
The clean_owbsys.sql script drops the contents of any existing OWBSYS schema installations, but leaves the schema otherwise intact.
The cat_owb.sql script checks if an OWBSYS schema exists, and creates it if necessary, and then installs the objects required by Oracle Warehouse Builder 11.2 repository.
The reset_owbcc_home.sql script ensures that Oracle Warehouse Builder uses the 11.2 version of the Control Center Service.
[Optional] The remote_owb_install.sql script, when executed on the server, ensures that a repository on a remote system can be installed; it sets the REMOTE_OWB_HOME variable for authentication by remote systems.

Cleaning an Oracle Warehouse Builder Repository
To clean an existing Oracle Warehouse Builder repository:

1. At the command prompt, start SQL*Plus:
% sqlplus
SQL*Plus: Release 11.2 - Production on Mon July 27 13:14:43 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
2. When prompted for user name, log in as OWBSYS user.
Enter user-name: owbsys
Enter password: password
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2 - Production
With the Partitioning, OLAP and Data Mining options
3. Stop Oracle Warehouse Builder Control Center service.
SQL> @OWB112/owb/rtp/sql/stop_service.sql
See "stop_service" on page 9-12 for more information.
4. Connect as user with administrative privileges:
SQL> connect sys as sysdba
Enter password: password
5. Run the clean_owbsys.sql script to drop all the objects in the existing OWBSYS schema:
SQL> @OWB112/owb/UnifiedRepos/clean_owbsys.sql

Creating an OWBSYS Schema with Repository Objects

To set-up an OWBSYS schema with repository objects:
1. At the command prompt, start SQL*Plus:
% sqlplus
SQL*Plus: Release 11.2 - Production on Mon July 27 13:22:11 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
2. When prompted for user name, log in as a user with administrative privileges.
Enter user-name: sys as sysdba
Enter password: password
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2 - Production
With the Partitioning, OLAP and Data Mining options
3. Run the cat_owb.sql script to set up OWBSYS in a tablespace in your database.
For example, this command sets up OWBSYS in the USERS tablespace:
SQL> @OWB112/owb/UnifiedRepos/cat_owb.sql USERS

Configuring the Control Center Service
If you are installing OWB 11.2 on an older Oracle Database release, or if you integrating OWB with Oracle Business Intelligence Standard Edition (Oracle Discoverer), you must run the reset_owbcc_home.sql script to ensure that the Control Center Service functions correctly.
To configure the Control Center service:
1. Confirm the correct Oracle Home path, paying particular attention to
capitalization. In this example, the path is OWB112.
The path entered in the next steps must be an exact match to the Oracle Warehouse
Builder home directory, including letter case match.
2. At the command prompt, start SQL*Plus:
% sqlplus
SQL*Plus: Release 11.2 - Production on Mon July 27 13:47:31 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
3. When prompted for user name, log in as a user with administrative privileges.
Enter user-name: sys as sysdba
Enter password: password
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2 - Production
With the Partitioning, OLAP and Data Mining options
4. Run the reset_owbcc_home.sql script to force the Control Center Service to
run from Oracle Warehouse Builder 11.2 installation:
SQL> @OWB112/owb/UnifiedRepos/reset_owbcc_home.sql OWB112

Unlocking the OWBSYS and OWBSYS_AUDIT Accounts
To unlock OWBSYS and OWBSYS_AUDIT accounts:
1. At the command prompt, start SQL*Plus:
% sqlplus
SQL*Plus: Release 11.2 - Production on Mon July 27 13:57:03 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
2. When prompted for user name, log in as a user with administrative privileges.
Enter user-name: sys as sysdba
Enter password: password
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2 - Production
With the Partitioning, OLAP and Data Mining options
3. Unlock the OWBSYS user account, and set its new password:
SQL> alter user owbsys identified by password account unlock;
User altered.
4. Unlock the OWBSYS_AUDIT user account, and set its new password:
SQL> alter user owbsys_audit identified by password account unlock;
User altered.

Setting the OWB Home for Remote Installations
You must create a database directory OWB_REMOTE_ADMIN that is accessed by remote installations, so they can read the server's OWB_HOME/owb/bin/admin directory.
1. At the command prompt, start SQL*Plus:
% sqlplus
SQL*Plus: Release 11.2 - Production on Mon July 27 14:06:12 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
2. When prompted for user name, log in as a user with administrative privileges.
Enter user-name: sys as sysdba
Enter password: password
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2 - Production
With the Partitioning, OLAP and Data Mining options
3. Set the OWB_REMOTE_HOME variable using script remote_owb_install.sql:
SQL> @OWB112/owb/UnifiedRepos/remote_owb_install.sql OWB_REMOTE_HOME

Creating the First Workspace in the Repository
To use a repository, you must define an initial workspace, and the owner of that workspace. The following instructions use the Repository Assistant.
To create a workspace:
1. At the command prompt, navigate to the UNIX bin directory:
% cd OWB112/owb/bin/unix
% pwd
OWB112/owb/bin/unix
2. Start the repository assistant.
% ./reposinst.sh
4.       On the Welcome screen of the Repository assistant, click Next.

4. On the Database Information screen, enter the connection information (Host Name, Port Number, and Oracle Service Name) for the repository database, and click Next.

5. On the Choose Operation screen, select Manage Warehouse Builder Workspaces.
Click Next.

6. On the Choose Workspace Operations screen, select Create a New Warehouse
Builder workspace. Click Next.

7. On the New or Existing User screen, select Create a workspace with a new
workspace owner. Click Next.
8. On the DBA Information screen, enter the User Name of a user with a CREATE USER privilege, and that user's Password.
Click Next.
9. In the Workspace Owner (New) screen, enter the following information:
Workspace Owner's User Name (wks_owner1)
Workspace Owner's Password
Workspace Owner's Password Confirmation
Workspace Name (wks1)
Click Next.
10. In the OWBSYS Information screen, enter the OWBSYS Password. Click Next.
Note that you need these credentials to seed the OWBSYS schema.
11. [Optional] For remote installations (when you the schema is on a remote system), the system performs the verification of versions, and displays the dialog "Found OWB software with the compatible version installed locally on the database server machine with path REMOTE_OWB_HOME."
12. On the Select Tablespaces screen, enter the following information:
Tablespace for Data (USERS, or the name of the desired tablespace)
Tablespace for Indexes (USERS, or the name of the same tablespace)
Tablespace for Temporary Data (TEMP)
Tablespace for Snapshots (USERS, or the name of the same tablespace)
Click Next.

13. On the Select Languages screen, select the Base Language from the menu.
Click Next.

14. On the Workspace Users (Optional) screen, select the appropriate existing users from the Available list add them to the Selected list.

[Optional] Click Create New User to make new users who can access OWB. This takes you to step 15.
Click Next. This takes you to step 17.

15. [Optional] In the Create New Database User screen, enter the following: User Name (demo_user)
Password
Re-enter Password
Click OK.
Note that DBA User Name (system) and DBA User Password are disabled fields and cannot be edited.
16. In the Workspace Users (Optional) screen, click Next.
17. On the Summary screen, click Finish.
18. Once the Installation Result screen appears, click OK.



Note : all the information is taken from metalinks and google search.

Installing OWB on Oracle Database 11g Release 2




Installing OWB on Oracle Database 11g Release 2


Working with the OWB Standalone Install Package

To obtain Oracle Warehouse Builder standalone software:
1. Navigate the browser to the following URL:
http://www.oracle.com/technology/products/warehouse/
2. On the right side of the page, click All Releases and Platforms.

3. Under Oracle Warehouse Builder Downloads, select Accept for the licence agreement.


The system displays the following message: "Thank you for accepting the OTN License Agreement; you may now download this software."
4. Under the Standalone Software download, click the down arrow beside the platform of your choice to download the ZIP file that contains Oracle Warehouse Builder.
For Windows: choose the Microsoft Windows option. For Linux: choose the Linux x86 option.


5. When the download is complete, extract the ZIP file into a temporary directory.
For example,
For Windows: use C:\temp\OWB.
For Linux: use /temp/OWB.

Installing Oracle Warehouse Builder through Oracle Universal Installer

To run Oracle Universal Installer:
1. In Windows Explorer, navigate to the directory that contains the extracted Oracle Warehouse Builder installation files. In this discussion the sample directory is
C:\temp\OWB.
2. Click the setup.bat file to start the Universal Installer.


3. On the Welcome screen, click Next.


4. On the Specify Home Details screen, specify a new Oracle Home:
Enter the Oracle Home Name; for example, OWB112.
Enter or browse to Path C:\.
Click Next.


Tip: To ensure a successful installation:
Do not use an existing Oracle Home.
Do not use any spaces in the directory path.

5. [Optional] On the Customer Support Email screen, enter the Email and Password
for your My Oracle Support account.
Click Next.


6. On the Summary screen, click Install.

7. The Install screen shows progress during the installation process.
8. At the End of Installation screen, click Exit. The Exit message appears asking if
you really want to exit.
9. In the Exit message, click Yes.




Note : all the information is taken from metalinks and google search.








Purpose

This Master Note is intended to provide an index and references to the most frequently used My Oracle Support Notes with respect to Oracle Audit Vault. This Master Note is subdivided into categories to allow for easy access and reference to notes that are applicable to your area of interest. This includes the following categories:
  • Oracle Audit Vault Concepts and Overview
  • Oracle Audit Vault Installation
  • Oracle Audit Vault Configuration and Administration
  • Oracle Audit Vault Troubleshooting and Debugging
  • Oracle Audit Vault Best Practices
  • Oracle Audit Vault Patching
  • Oracle Audit Vault Documentation
  • Oracle Audit Vault Licensing
  • Using My Oracle Support Effectively

Scope

This document is meant for use as a guide by those who are installing/configuring or managing/troubleshooting Oracle Audit Vault.


This note applies to the following versions of the product:

Oracle Audit Vault versions 10.2.2.0 to 10.2.3.2.1

Details

Oracle Audit Vault Concepts and Overview


Oracle Audit Vault automates the collection and consolidation of audit data into a secure repository,enabling efficient monitoring and reporting. Oracle Audit Vault is providing a secure repository for audit data, built-in reporting, event alerting, and separation-of-duty.



Oracle Audit Vault collects database audit data from the following Oracle audit sources:
  • audit trail tables
  • database audit files on the operating system
  • syslog & EventLog
  • archived redo log files to capture before/after value changes of transactions.

Oracle Audit Vault can also collect audit data produced by the following database products(other than Oracle RDBMS):
  • Microsoft SQL Server
  • IBM DB2 UDB
  • Sybase ASE


The architecture of Audit Vault consists of two major components that work together to collect, store and secure the audit data:
  • Audit Vault Server Ãƒ¢Ã‚€Ã‚“ A stand-alone stacked application that contains a data warehouse built on a customized installation of Oracle Database. Oracle Database Vault is protecting the Audit Vault datawarehouse. The Audit Vault Server contains also the OC4J components that support the Audit Vault Console.
  • Audit Vault Collection Agent Ãƒ¢Ã‚€Ã‚“ The Agent is responsible for managing the collectors, which are specific to an audit source and act as the middleman between the source database and the Audit Vault Server by pulling the audit trail data from the source and sending it to the Audit Vault Server over SQL*Net.

More information can be read at http://www.oracle.com/technetwork/database/audit-vault/overview/index.html

Oracle Audit Vault Installation


Oracle Audit Vault Server and Oracle Audit Vault Agent can be downloaded from the following page:

http://www.oracle.com/technetwork/database/audit-vault/downloads/index.html


Note 848408.1    -  Oracle Audit Vault Server Platform Support
Note 848402.1    -  Oracle Audit Vault Agent Platform Support
Note 731081.1    -  Oracle Audit Vault 10.2.3.0.0 Installation fails intermittently in some environments
Note 871252.1    - Oracle Audit Configuration Assistant Fails With Java Errors
Note 1058184.1  - Oracle Audit Vault Configuration Assistant Fails While Installing The AV Server
Note 889346.1    - What To Do If Audit Vault Configuration Fails[AVCA] While Installing Audit Vault Server?
Note 751085.1    - Errors While Installing Audit Vault Or While Applying An Audit Vault Patchset
Note 753920.1    - Availability of Oracle Audit Vault Server on Windows
Note 1362173.1  - Oracle Audit Vault Repository Creation Failed On 11gr2 Asm Stack
Note 1265058.1  - How To Install PSU 10.2.0.4.6/7 On Audit Vault Server Repository Database
Note 1051822.1  - How To Install The January 2010 CPU Patch To Audit Vault Version 10.2.3.2

Oracle Audit Vault Configuration and Administration

Note 437049.1  - AUDIT VAULT How to Add an Oracle Database Source running Database Vault
Note 428564.1  - How to add a Source with a DBAUD Collector to Audit Vault
Note 788381.1  - Audit Vault Collection Agent Configuration for RAC Database - Step by Step Guide
Note 1362173.1- Oracle Audit Vault Repository Creation Failed On 11gr2 Asm Stack 
Note 731908.1  - New Feature DBMS_AUDIT_MGMT To Manage And Purge Audit Information
Note 784383.1  - Source Not Mapped to an Active Agent While Retrieving Audit Settings from Source
Note 850170.1  - Error Executing Task add_agent OAV-46599
Note 764035.1  - Unable To Add Source To Audit Vault
Note 740657.1  - ORA-1017 While Adding an Agent Using AVCA
Note 783664.1  - Getting Error "Java.Sql.Sqlexception: Ora-27452: Om" While Adding A New Redo Collector
Note 746503.1  - While Provisioning The Audit Settings on The Source Database Huge Trace Files Get Created
Note 747843.1  - Audit Settings Provisioning fails with "Errors:<nnn> settings has been failed in this provision."

Oracle Audit Vault Troubleshooting and Debugging


The  Oracle Audit Vault troubleshooting guide can be found in the documentation.


Note 1360138.1 - Audit Vault Server Configuration Report and Health Check Script
Note 972983.1   - What To Check When The Audit Vault Server Cannot Be Started?
Note 1271707.1 - How To Investigate The "Http Communication errors" Encountered When Starting An Audit Vault Collector
Note 564306.1   - How To Check Connectivity And Wallet Credentials In A 10.2.2 Audit Vault Environment
Note 1355093.1 - The Redo Collector Does Not Retrieve Data When Collecting in 11g Databases
Note 986093.1   - How To Start The Collectors Directly From The AV Agent Environment ?
Note 1098463.1 - Audit Vault Collector Errors While Parsing XML Audit File with Errorcode 7
Note 828231.1   - Unable To Delete Alert In Audit Vault
Note 1302465.1 - The AV Console Is Not Working When Trying To Connect As AVAUDITOR. Logs Are Filled With ORA-1017 Errors
Note 1383634.1 - Internal Error On The Warehouse Tab Of AV_ADMIN GUI Console
Note 1304612.1 - Logging into Audit Vault Console with AV_AUDITOR role fails with "The webpage cannot be displayed" or "Internal server error"

Note 1184984.1 - Dropping An Audit Vault Alert Is Failing With "OAV-46599 Internal Error Drop Alert Rule 2"
Note 748202.1   - "Java.sql.SQLException: Exceeded maximum VARRAY limit" While Retrieving the Audit Settings From Source
Note 1335238.1 - How To Deploy the Audit Vault Console After Recreating The DB Console Running From The Oracle Home Of The Audit Vault Server?
Note 972880.1   - DBAUD Collector Crashes With ORA-904
Note 764058.1   - Audit Vault Data Warehouse Refresh Fails With ORA-1031
Note 970625.1   - Audit Reports Page Does Not Work - Can Not Display The Webpage
Note 958640.1   - Av Server Does Not Start After Reboot
Note 947114.1   - OS Collectors Are Working But Nothing Is Collected
Note 811753.1   - Cannot View Single Row In Audit Vault Reports Due To ORA-20001 Errors
Note 779797.1   - DBAUD Collector Fails After Applying Patchset 10.2.3.1.0
Note 986105.1   - Error Executing Task Start_Collector: Internal Collector
Note 731593.1   - Error ORA-01729 Encountered While Adding A REDO Collector
Note 972868.1   - Audit Vault Collector Error: OCIStmtExecute Failed For OCI Set Timestamp:4294967295
Note 1129657.1 - Internal Error While Starting A Mssql Collector
Note 1303076.1 - Audit Vault: "VALIDATE_AGENT_CMD must be declared ORA-06550" While Starting Up A Collector
Note 1359255.1 - Audit Vault Notifications On Alerts Are Not Dispatched
Note 1471024.1 - Increased CPU usage for avoscoll process after applying Audit Vault Bundle Patch 10.2.3.2.7 or 10.3.0.0.1

Oracle Audit Vault Best Practices

The following document will make you aware of Oracle Audit Vault Best Practices:

http://www.oracle.com/technetwork/testcontent/twp-auditvault-bestpractices-200711-1-130326.pdf


Oracle Audit Vault Patching


Make sure that the same patchsets and bundle patches are applied on the agents and the AV Server because some of these patches are changing the way the agents interact with the server( in some versions new procedures/functions are created and used and if they are not present/used by the other party there will be some errors).


Starting with Audit Vault 10.2.3.2 the bug fixes for Audit Vault are delivered via cumulative bundle patches. The following AV version 10.2.3.2 bundle patches are available:

Patch 9590005    - AUDIT VAULT 10.2.3.2.0 BUNDLE PATCH 1 (10.2.3.2.1)
Patch 9958865    - AUDIT VAULT 10.2.3.2.0 BUNDLE PATCH 2 (10.2.3.2.2)
Patch 10240229  - AUDIT VAULT 10.2.3.2.0 BUNDLE PATCH 3 (10.2.3.2.3)
Patch 10647596 - AUDIT VAULT 10.2.3.2.0 BUNDLE PATCH 4 (10.2.3.2.4)
Patch 11887343  - AUDIT VAULT 10.2.3.2.0 BUNDLE PATCH 5 (10.2.3.2.5)
Patch 12703193  - AUDIT VAULT 10.2.3.2.0 BUNDLE PATCH 6 (10.2.3.2.6)
Patch 13087259  - AUDIT VAULT 10.2.3.2.0 BUNDLE PATCH 7 (10.2.3.2.7)
AV Server 10.3 was released in December 2011. For more information see Note 1387082.1.
Here is the list of AV version 10.3 bundles:
Patch 13578994  - AUDIT VAULT 10.3.0.0.0 BUNDLE PATCH 1 (10.3.0.0.1)
It is important to note that besides the patches for Audit Vault you might have to install patches for the built in Oracle Database. AV Server 10.2.3.0 uses a 10.2.0.3 repository database. When the AV Server is upgraded to AV patchset 10.2.3.2 the repository database is automatically upgraded to 10.2.0.4 and when the AV Server is upgraded to 10.3 the repository database is upgraded to 11.2.0.3 .  To make sure that you have the latest recommended RDBMS bug fixes applied you have to install the database PSU patches as soon as they are released.

Note 1382446.1 - Audit Vault Server Bundle Patches, Database Patch Set Updates (PSUs), and Critical Patch Updates (CPUs)
Note 1265058.1 - How To Install PSU 10.2.0.4.6/7 On Audit Vault Server Repository Database
Note 974818.1   - How To Install The October 2009 CPU Patch To Audit Vault Version 10.2.3.2
Note 1051822.1 - How To Install The January 2010 CPU Patch To Audit Vault Version 10.2.3.2
Note 1085315.1 - How To Install The April 2010 CPU Patch To Audit Vault Version 10.2.3.2
Note 1155026.1 - How To Install The July 2010 CPU Patch On Audit Vault Version 10.2.3.2
Note 971704.1   - AV Upgrade Fails Due To A DBUA Failure

Oracle Audit Vault Documentation


The Oracle Audit Vault documentation can be accessed from the following URL:

http://download.oracle.com/docs/cd/E14472_01/index.htm

Oracle Audit Vault Licensing


Oracle Audit Vault is a complete stacked application. As part of the Oracle Audit Vault installation, an Oracle Database with the Database Partitioning, Oracle Advanced Security, and Oracle Database Vault options is installed. The stacked application, database, installed options, and Oracle Audit Vault components may not be used or deployed for other purposes.

Oracle Application Server Containers for J2EE (OC4J) is included with Oracle Audit Vault. This embedded version is provided solely to support Oracle Enterprise Manager (Database), Advanced Queuing Servlet, Audit Vault Console, and may not be used or deployed for other purposes.

The Oracle Audit Vault home software use is restricted to support the Oracle Audit Vault database repository and no other databases created using the Oracle Audit Vault executables are supported.

Using My Oracle Support Effectively

  • Note 747242.5 - My Oracle Support Configuration Management FAQ
  • Note 868955.1 - My Oracle Support Health Checks Catalog
  • Note 166650.1 - Working Effectively With Global Customer Support
  • Note 199389.1 - Escalating Service Requests with Oracle Support Services





Note : All the above information is taken from oracle metalinks to make easy search.

Monday, August 20, 2012

NLS_CHARACTERSET, AL16UTF16 to AL32UTF8 oracle 11.2.0.3


alter database character set AL32UTF8;

alter system set NLS_NCHAR_CHARACTERSET=AL32UTF32

ALTER DATABASE CHARACTER SET AL32UTF8

 col VALUE format a10

SELECT parameter , value FROM NLS_DATABASE_PARAMETERS WHERE parameter like '%CHARACTERSET%'
/

SQL>   2
PARAMETER                      VALUE
------------------------------ ----------------------------------------
NLS_CHARACTERSET               WE8MSWIN1252
NLS_NCHAR_CHARACTERSET         AL16UTF16


SQL> show parameter chara

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
nls_numeric_characters               string


PARAMETER                      VALUE
------------------------------ ----------
NLS_CHARACTERSET               AL32UTF8
NLS_NCHAR_CHARACTERSET         AL16UTF16

(461) $ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Tue Jul 10 20:35:31 2012

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> conn csmig/csmig
ERROR:
ORA-28000: the account is locked


Warning: You are no longer connected to ORACLE.
SQL> conn / as sysdba
Connected.
SQL> alter user csmig account unlock;

User altered.



QL> conn csmig/csmig
ERROR:
ORA-28001: the password has expired


Changing password for csmig
New password:
Retype new password:
ERROR:
ORA-01045: user CSMIG lacks CREATE SESSION privilege; logon denied


Password changed
Warning: You are no longer connected to ORACLE.
SQL> connect /as sysdba
Connected.
SQL> grant create session to csmig;

Grant succeeded.

SQL> conn csmig/csmig
Connected.


SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

(485) $ csscan TABLE='(SYS.SQL_VERSION$)' FROMCHAR=AL16UTF16 TOCHAR=AL32UTF8 LOG=instchkc CAPTURE=N PROCESS=1 ARRAY=1024000


Character Set Scanner v2.2 : Release 11.2.0.3.0 - Production on Tue Jul 10 20:59:08 2012

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.


Username: / as sysdba

Password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Enumerating table to scan...

. process 1 scanning SYS.SQL_VERSION$[AAAACVAABAAAAGYAAA]

Creating Database Scan Summary Report...

Creating Individual Exception Report...

Scanner terminated successfully.

(486) $

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.

Total System Global Area 6415736832 bytes
Fixed Size                  2217192 bytes
Variable Size            1077938968 bytes
Database Buffers         5330960384 bytes
Redo Buffers                4620288 bytes
Database mounted.
SQL> ALTER SYSTEM ENABLE RESTRICTED SESSION;

System altered.

SQL> ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;

System altered.

SQL> ALTER SYSTEM SET AQ_TM_PROCESSES=0;

System altered.

SQL> ALTER DATABASE OPEN;

Database altered.

SQL> ALTER DATABASE CHARACTER SET INTERNAL_USE AL32UTF8;

Database altered.

SQL> SHUTDOWN IMMEDIATE;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> STARTUP;
ORACLE instance started.

Total System Global Area 6415736832 bytes
Fixed Size                  2217192 bytes
Variable Size            1077938968 bytes
Database Buffers         5330960384 bytes
Redo Buffers                4620288 bytes
Database mounted.
Database opened.
SQL> SELECT parameter , value FROM NLS_DATABASE_PARAMETERS WHERE parameter like '%CHARACTERSET%'
/  2

PARAMETER
------------------------------
VALUE
--------------------------------------------------------------------------------
NLS_CHARACTERSET
AL32UTF8

NLS_NCHAR_CHARACTERSET
AL16UTF16


SQL> col VALUE format a10
SQL> /

PARAMETER                      VALUE
------------------------------ ----------
NLS_CHARACTERSET               AL32UTF8
NLS_NCHAR_CHARACTERSET         AL16UTF16

SQL>

Oracle XDB Install/DeInstall



1. Deinstall XDB:

SQL> spool xdb_removal.log
SQL> connect / as sysdba
SQL> set echo on;
SQL> shutdown immediate;
SQL> startup
SQL> @?/rdbms/admin/catnoqm.sql
SQL> spool off;


2. Reinstall XDB -- Specify a default tablespace that is using ASSM such as SYSAUX:

select tablespace_name, extent_management, segment_space_management
from dba_tablespaces
where tablespace_name in ('SYSTEM', 'SYSAUX');

TABLESPACE_NAME      EXTENT_MANAGEMENT  SEGMENT_SPACE_MANAGEMENT
--------------------------------- ------------------------------------ -------------------------------------------------
SYSAUX                           LOCAL                                AUTO
SYSTEM                           LOCAL                                MANUAL

## IMPORTANT: You must shutdown and restart the database between removal and reinstall ##

SQL> spool xdb_install.log
SQL> connect / as sysdba
SQL> set echo on;
SQL> shutdown immediate;
SQL> startup;
SQL> @?/rdbms/admin/catqm.sql xdb sysaux temp yes
SQL> spool off


3. Run utlrp.sql to validate any remaining invalid objects and verify the XDB installation:

spool xdb_status.txt
connect / as sysdba
set echo on;
set pagesize 10000
col comp_name format a36
col version format a12
col status format a8
col owner format a12
col object_name format a35
col name format a25

SQL> @?/rdbms/admin/utlrp.sql

select comp_name, version, status
from dba_registry;

select owner, object_name, object_type, status
from dba_objects
where status = 'INVALID'
and owner in = 'XDB';

spool off;

Thursday, June 23, 2011

invalid entry CRC (expected 0x48.. but got 0x4f...) Installatation of oracle 11.2 RAC



Encountered an error "invalid entry CRC (expected 0x48.. but got 0x4f...)" for Several times during the installation of oracle 11.2 RAC
After searching on google found that it is an issue with the copy of software and downloaded the fresh copy of software from the oracle site several times but got same error.
Was trying to install oracle 11.2 on oel5.5 using virtual box.



Finally Got it resolved by installing the same copy of software on oel5 instead of oel5.5,  Still working around to find the cause.

Tuesday, May 31, 2011

Oracle Data Gaurd

Modes Of data Guard

Maximum Protection—This mode offers the highest level of data protection. Data is synchronously transmitted to the standby database from the primary database and transactions are not committed on the primary database unless the redo data is available on at least one standby database configured in this mode. If the last standby database configured in this mode becomes unavailable, processing stops on the primary database. This mode ensures no-data-loss.

Maximum Availability—This mode is similar to the maximum protection mode, including zero data loss. However, if a standby database becomes unavailable (for example, because of network connectivity problems), processing continues on the primary database. When the fault is corrected, the standby database is automatically resynchronized with the primary database.

Maximum Performance—This mode offers slightly less data protection on the primary database, but higher performance than maximum availability mode. In this mode, as the primary database processes transactions, redo data is asynchronously shipped to the standby database. The commit operation of the primary database does not wait for the standby database to acknowledge receipt of redo data before completing write operations on the primary database. If any standby destination becomes unavailable, processing continues on the primary database and there is little effect on primary database performance.



Note :- All these information is googled and documented to quick review purpose.