Creating a new database using XWindows

Oracle has a nice command that allows you to create a new command. The Database Configuration Assistant (dbca) requires the use of XWindows.

First you will need to download an XWindows client. I use MOBATERM.

http://mobaxterm.mobatek.net/download-home-edition.html

Next you will need to create an SSH session to your Oracle DB host. I am using a Redhat ES 6 instance on Amazon and so I create the session and login using my private key. Note: I had previously configured the oracle account to use the same private key as the “ec2-user” account by copying the .ssh directory into ~oracle/.

Then run dbca which is found in $ORACLE_HOME/bin.

1. Select Create a Database.

DBCA1a

2. Select General template.

 

DBCA2

3. Select a name for the database.

DBCA3

4. Accept defaults for the Enterprise Manager (nice web interface to manage the DB)

DBCA4

 

5. Either set different passwords for the SYS etc. accounts or set a single password (not recommended for Production installations).

DBCA5

6. Accept the standard file structures (unless you would like to configure special datafiles).

DBCA6

7. Accept the standard Flash Recovery Area setup

DBCA7

8. Unless you want a sample schema click Next

DBCA8

9. Importantly select “Unicode ALUTF8” if you are going to be loading up Oracle applications e.g. SOA, OBIEE etc. as these all require multi-language support.

DBCA9

10. I generally leave this section alone and click NEXT

DBCA10

11. Final confirmation

DBCAFINAL

 

12. Your database is being created.

DBCAFINAL2

13. Finally make note of the Enterprise Manager URL for the database as you might use this in the future.

DBCAFINAL3

 

 

 

 

 

 

 

 

Datapump basics

Datapump is a powerful way to move data from one Oracle database to another.

On the target database you will need to make sure that :

1. The user and tablespace exists.

2. The user has create session – grant create session to <user>;

3. The user has access to the tablespace – alter user <user> quota unlimited on <tablespace>;

4. The user has import database access – grant imp_full_database to <user>;

5. The import directory exists – create directory <name> as ‘<path to directory>’ e.g. create directory dpin as ‘/data/import’;

6. Run the import – imdp user/password directory=<name> dumpfile=<dumpfile.dmp>

Post OBIEE Configuration

You will probably find that OBIEE will not be started post reboot on the Windows environment. You can always start up in console mode by running startWebLogic.cmd.

 

Better still configure it as a Windows Service.

I found this link very helpful to setup Weblogic as a Windows Service. Just replace P6 with bifoundation_domain and you should be right.

https://community.oracle.com/thread/2593305

 

This link may also help.

https://blogs.oracle.com/pa/entry/obiee_11_1_1_how3

Installing OBIEE 11.1.1.7 on Amazon EBS

One thing you may come across when installing OBIEE (any version) on Windows 2008 R2 is that it requires a loopback adapter.

So for Amazon EBS (Windows 2008 R2) :

1. Create a non-routable address entry for your Amazon host in C:\Windows\System32\drivers\etc\host file

10.10.10.10   WIN-M7878127

2. Go to Server Manager -> Device Manager

3. Right-click on the Host and Add legacy hardware

Add Legacy

4. Select Install the hardware that I manually select from a list

5. Select Network Adapters

Add Legacy 2

 

6. Choose Microsoft as the Manufacturer and scroll to Microsoft Loopback Adapter

 

 

Add Legacy 3

7. Once the driver is installed , open Network and Sharing Center and select the connection.

8. Make sure you unselect IPV6 and then select IPV4.

9. Enter 10.10.10.10 Subnet 255.255.255.0 as the address. DNS should be left blank.

Add Legacy 6

10. Click Advanced and make sure that Register the connection’s addresses in DNS is unselected.

Add Legacy 5

11. Close all the windows and your done!