OBIEE Online Training

Tuesday, December 21, 2010

OBIEE 11g - RCU Schema Creation through SQL Cripts

USE [master]
GO
CREATE DATABASE [OracleBI] ON PRIMARY
(NAME = N'OracleBI', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\OracleBI.mdf' , SIZE = 2048KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'OracleBI_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\OracleBI_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
COLLATE SQL_Latin1_General_CP1_CI_AS
GO
EXEC dbo.sp_dbcmptlevel @dbname=N'OracleBI', @new_cmptlevel=90
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [OracleBI].[dbo].[sp_fulltext_database] @action = 'disable'
end
GO
ALTER DATABASE [OracleBI] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [OracleBI] SET ANSI_NULLS OFF
GO
ALTER DATABASE [OracleBI] SET ANSI_PADDING OFF
GO
ALTER DATABASE [OracleBI] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [OracleBI] SET ARITHABORT OFF
GO
ALTER DATABASE [OracleBI] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [OracleBI] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [OracleBI] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [OracleBI] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [OracleBI] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [OracleBI] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [OracleBI] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [OracleBI] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [OracleBI] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [OracleBI] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [OracleBI] SET DISABLE_BROKER
GO
ALTER DATABASE [OracleBI] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [OracleBI] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [OracleBI] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [OracleBI] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [OracleBI] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [OracleBI] SET READ_WRITE
GO
ALTER DATABASE [OracleBI] SET RECOVERY FULL
GO
ALTER DATABASE [OracleBI] SET MULTI_USER
GO
ALTER DATABASE [OracleBI] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [OracleBI] SET DB_CHAINING OFF
GO
ALTER database [OracleBI] SET READ_COMMITTED_SNAPSHOT ON
GO
DECLARE @collate sysname
SELECT @collate = convert(sysname, serverproperty('COLLATION'))
IF ( charindex(N'_CI', @collate) > 0 )
BEGIN
select @collate = replace(@collate, N'_CI', N'_CS')
exec ('ALTER database OracleBI COLLATE ' + @collate)
END
GO



No comments:

Post a Comment