A collection of guides, practices, and recipes…

This is a step by step guide for creating a new Oracle 11gr2 server using Oracle Enterprise Linux 6.4 in an attended install. This guide includes joining the server to an established windows active directory domain.

Step 1.

Download the install software from the oracle cloud delivery system.

http://edelivery.oracle.com/linux

Step 2.

Start up the server with the DVD in place. I always run the provided media test since I don’t like surprises.

Step 3.

Work your way through the screens using the appropriate language and keyboard choices, accepting the default values. This guide assumes basic storage, and addressing all the possible storage scenarios is outside of the scope of this guide.

Step 4.

  • Enter a fully qualified host name.  If you do not have an established domain to join, use [machine].localdomain
  • Click Configure Network
  • Select the network connection you will be using for this server, and chose “Edit”
  • If you are not using DHCP, click on the IPv4 Settings tab and change the Method Drop down to ‘Manual’, then click ‘Add’ to provide the relevant information. Once complete, click apply, then close.

Step 5.

Select the appropriate Time zone

Step 6.

Select ‘Use All Space’, and then check ‘Review and modify partitioning layout’

  • Follow these guidelines for setting your swap size:
RAM Swap Space
Between 1 GB and 2 GB 1.5 times the size of the RAM
Between 2 GB and 16 GB Equal to the size of the RAM
More than 16 GB 16 GB
  • Write Changes to disk

Step 7.

Confirm your selections for partitions. If in doubt, go with ext4 file system.  Keep in mind that if you are planning to use ASM, you need to leave those devices as raw volumes.

Step 8.

Chose Basic Server, and select the Customize Now option

Step 9.

For a gnome desktop, select the following options:

  • Desktops
    • Desktop
    • Desktop Platform
    • Fonts
    • General Purpose Desktop
    • Graphical Administration Tools
    • X Windows System

Click Next

Step 10.

After the machine reboots, chose to connect later for updates and ULN registration.

Step 11.

Create non-admin user.

Step 12.

Log in with Non-admin user.

Step 13.

Disable SELinux and firewall

  • su to root
  • vi /etc/selinux/config
  • Set SELINUX = disabled
  • service ipchains stop
  • service iptables stop
  • chkconfig ipchains off
  • chkconfig iptables off
  • reboot server

Step 14.

Install VNC Server

yum install tigervnc*

Edit vncservers file:
# vi /etc/sysconfig/vncservers

Uncomment the two lines below and edit it with your own username:

VNCSERVERS=”2:myusername”VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -nohttpd -localhost”

Set the password for vncserver user:

# vncpasswd
Password: myvncpassword
Verify: myvncpassword

Start the VNCServer:

# service vncserver start

Step 15.

Set up authentication to join windows domain using winbind. The GUI tool will catch most of this, but sometimes you’ll need to double check the config files if you fail to join the domain.

net ads join –U username

in /etc/krb5.conf:

default_realm = EXAMPLE.COM
dns_lookup_realm = true
dns_lookup_kdc = true
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = yes

[realms]
EXAMPLE.COM = {
default_domain = example.com
}

[domain_realm]
.example.com = EXAMPLE.COM
example.com = EXAMPLE.COM

in /etc/samba/smb.conf:

workgroup = example
realm = EXAMPLE.COM
security = ads
idmap uid = 10000-500000
idmap gid = 10000-500000
template shell = /bin/bash
winbind use default domain = true
winbind offline logon = false
winbind nested groups = yes
encrypt passwords = yes

Test your ad connection. As root:

chkconfig winbind on     --starts winbind on reboot
service winbind start      
wbinfo -g      --polls the DC for domain groups

Step 16.

Set up NTFS drivers:

  • determine kernel:
    uname -m
  • go get the proper repositores and install

Oracle Enterprise Linux 4.x x86:

# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el4.rf.i386.rpm

Oracle Enterprise Linux 4.x x86_64:

# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm

Oracle Enterprise Linux / Oracle Linux 5.x x86:

# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm

Oracle Enterprise Linux / Oracle Linux 5.x x86_64:

# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

Oracle Linux 6.x x86:

# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.i686.rpm

Oracle Linux 6.x x86_64:

# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Install the NTFS driver:

Oracle Enterprise Linux 4.x:

# yum install dkms dkms-fuse fuse fuse-ntfs-3g 

Oracle Enterprise Linux / Oracle Linux 5.0 – 5.2:

# yum install dkms dkms-fuse fuse fuse-ntfs-3g 

Oracle Enterprise Linux / Oracle Linux 5.3:

NTFS support under Oracle Enterprise Linux 5.3 is broken and you should consider to upgrade to the 5.4 or later. (https://bugzilla.redhat.com/show_bug.cgi?id=481495)

Oracle Enterprise Linux / Oracle Linux 5.4 – 5.x:

As of Oracle Enterprise Linux 5.4 the the kernel fuse module (dkms, dkms-fuse) is included in the kernel and should not be installed.

# yum install fuse fuse-ntfs-3g 

Oracle Enterprise Linux / Oracle Linux 6.x:

# yum install fuse fuse-ntfs-3g


From this point on, you will be able to attach to network shares, mount usb drives with the ntfs file system, and use your AD user groups for administration. Our next steps are to create the local users and groups needed for DBA work.

Step 1.

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
# yum install oracle-rdbms-server-11gR2-preinstall
# yum update


Step 2.

create dba user groups:

groupadd -g 501 oinstall
groupadd -g 502 dba
groupadd -g 503 oper
groupadd -g 504 asmadmin
groupadd -g 506 asmdba
groupadd -g 505 asmoper

Step 3.

Change password for user oracle

Step 4.

reboot the server

Step 5.

Login with user oracle.  Set up /home/oracle/.bash_profile with oracle specific settings:

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_HOSTNAME=pit-qa11gr2-2.confluence.com; export ORACLE_HOSTNAME
#ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME –set if you always have the same starting db
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
#ORACLE_SID=DB11G; export ORACLE_SID –Set if you have the same starting db every time

PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

Step 6.

Log out, and log back in with oracle to ensure your .bash_profile is working

Your server is now ready for database instillation.

 

 

 

 

Comments (0)

  1. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Nicely put, Cheers.

    generic sample viagra qry viagra
    viagra online
    diabetes viagra – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  2. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Many thanks. Wonderful information.

    does grapefruit juice potentiate viagra generic viagra cialis
    cheap viagra
    viagra cheap less – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  3. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Very well voiced truly. !

    nonprescription viagra au effective time for viagra
    buy viagra
    over the counter viagra walgreens – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  4. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    You actually mentioned that well!

    keywords viagra maryland cialis tadalafil viagra
    viagra generic
    pregnancy and viagra – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  5. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Thanks a lot. I like this.

    combien de temps pour viagra lavitra vs viagra
    viagra 100mg
    casanovas secret herbal viagra – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  6. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Very well expressed without a doubt! !

    viagra recommended dosage viagra time effect
    buy generic viagra
    natural viagra for woman – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  7. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Appreciate it! A lot of knowledge.

    combined cialis viagra be seeing you viagra url
    viagra for women
    viagra experience – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  8. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Great postings, Regards!

    what if viagra dosn’t work viagra addiction
    generic viagra
    gout and viagra – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  9. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Nicely put. Appreciate it!

    football sized viagra what does viagra actually do
    viagra online
    viagra generic india – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  10. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Truly quite a lot of very good information.

    viagra wisecracks viagra 100mg substitute
    cheap viagra
    canada’s viagra number online pharmacy – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  11. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Really loads of superb data!

    viagra versus cialis weight lifting with viagra
    viagra online
    viagra 100mg dosage – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  12. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    You actually suggested this very well.

    viagra marketing personalities utube music viagra
    buy generic viagra
    generic viagra canadian pharmacy no prescription – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  13. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Kudos. An abundance of info.

    viagra user women taking viagra
    buy generic viagra
    what happens when girls take viagra – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  14. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Thanks! Lots of postings!

    viagra health concerns viagra and coke
    viagra online
    who manufacturers generic viagra – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  15. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Thanks a lot, Good information!

    viagra india cialis or viagra which is better
    cheap viagra
    generic cialis and viagra – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  16. Ernestolet said on 25-07-2019

    Your comment is awaiting moderation.

    Amazing forum posts. Many thanks!

    viagra price costco health care reform cialis viagra
    buy viagra
    black market viagra in canada – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  17. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    With thanks. Ample write ups!

    viagra mouse virus viagra memory
    generic viagra online
    generic sales viagra – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  18. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Really tons of beneficial information.

    looking for viagra how effective is viagra
    buy generic viagra
    viagra being ineffective over time – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  19. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Wow plenty of wonderful information.

    womens viagra novocaine interacting with viagra
    generic viagra online
    order viagra here – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  20. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Reliable facts. Thanks a lot!

    young man taking viagra viagra and its origins
    generic viagra 100mg
    viagra super activity – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  21. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Good postings. Thanks a lot!

    viagra 100 mg short term effect viagra delivery tou days
    generic viagra online
    viagra in dubai – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  22. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Wonderful advice. Cheers!

    viagra 20 mg viagra plus high blood pressure medicine
    generic viagra 100mg
    ciao buy now viagra url – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  23. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Superb advice. Kudos.

    prevent headache when taking viagra viagra logo
    cheap viagra
    viagra doesnt work – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  24. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Nicely put, Appreciate it.

    viagra dose size buy viagra stockton ca
    cheap viagra
    generic viagra usa canada – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  25. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Fantastic info. Regards.

    viagra no prior prescription generic brands of viagra online
    generic viagra 100mg
    viagra nyship – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  26. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Awesome postings. Cheers!

    old man and viagra oxycodone viagra effects
    viagra without a doctor prescription
    extasy and viagra – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  27. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Thank you, Valuable stuff!

    wholesale generic viagra viagra face flushes
    buy viagra
    non-prescription viagra cvs – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  28. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Amazing loads of helpful data.

    works faster viagra cialis dont eat with viagra
    cheap viagra
    viagra real name – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  29. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    You said it very well..

    free viagra in the uk viagra comparison prices online
    cheap viagra
    cialis viagra – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  30. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    You actually stated it fantastically!

    viagra synthesis generic viagra sold in chinatown nyc
    generic viagra online
    anyone order viagra online blog – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  31. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Really loads of superb information.

    most recognized brand viagra does viagra increase stamina
    viagra pills
    ultram viagra vioxx xenical – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  32. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    You said it very well..

    blues song viagra commercial sample of viagra
    generic viagra 100mg
    which is better viagra or cialis – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  33. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Nicely put. Thanks a lot!

    new song called viva viagra erection on viagra
    viagra without a doctor prescription
    pumpkin pie vs viagra – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  34. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    You actually said that superbly!

    viagra cealis differences viagra taken with cocaine
    viagra online
    take cialis and viagra together – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  35. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Very good facts. With thanks!

    viagra health risks cialis compare viagra
    generic viagra 100mg
    3.43 n online order viagra – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  36. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Seriously quite a lot of terrific information!

    viagra wholesale how to maximize viagra
    generic viagra 100mg
    viagra niaspan – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  37. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Good stuff. Appreciate it.

    female viagra pharmaceutical delivery overnight viagra
    generic viagra 100mg
    viagra rosa – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  38. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Many thanks, Plenty of write ups.

    viagra kaufen aching legs viagra
    generic viagra 100mg
    get viagra online in canada – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  39. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    You actually stated it terrifically.

    lisinopril and viagra interaction pill cheap viagra
    buy viagra online
    erections while on viagra – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  40. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    You explained this adequately!

    viagra and hydrochlorothiazide viagra joint problems
    viagra generic
    subaction showcomments viagra thanks online – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  41. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Fine forum posts. Thanks.

    viagra’s corporate office photos cheap generic viagra substitute
    buy generic viagra
    penis pictures after taking viagra – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  42. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    With thanks, Awesome stuff!

    viagra best price costco high blood pressure vs viagra
    generic viagra 100mg
    pulmonary hypertension use of viagra – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  43. Ernestolet said on 26-07-2019

    Your comment is awaiting moderation.

    Information nicely considered!.

    viagra in normal men viagra manufacturer
    cheap viagra
    contact viagra – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  44. Ernestolet said on 27-07-2019

    Your comment is awaiting moderation.

    Superb write ups. Thanks a lot!

    search viagra viagra find generic edinburgh mexico and viagra and price
    viagra for women
    viagra recipts – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  45. Ernestolet said on 27-07-2019

    Your comment is awaiting moderation.

    Information nicely regarded..

    where to buy viagra in thanet free viagra trial
    generic viagra 100mg
    viagra induced erection live – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  46. Ernestolet said on 27-07-2019

    Your comment is awaiting moderation.

    Regards! Quite a lot of advice.

    viagra official site spam tracking viagra private instruction
    viagra online
    viagra online switzerland – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

  47. Ernestolet said on 27-07-2019

    Your comment is awaiting moderation.

    Position very well regarded.!

    red viagra video viagra cialis levitra comparison
    buy viagra online
    viagra latest side effects – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  48. Ernestolet said on 27-07-2019

    Your comment is awaiting moderation.

    Nicely put. Thanks a lot.

    viagra and nitro treatments use of viagra after rr prostatectomy
    generic viagra 100mg
    vaginal viagra side effects – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  49. Ernestolet said on 27-07-2019

    Your comment is awaiting moderation.

    Regards, I appreciate this.

    he took viagra and fucked me viagra cheap price
    viagra without a doctor prescription
    viagra or weige – https://genericviagramsl.com

    KeithErype
    Richardabeby
    Ernestolet

  50. Ernestolet said on 27-07-2019

    Your comment is awaiting moderation.

    This is nicely put. .

    viagra and pacerone used together viagra tablet size
    generic viagra 100mg
    viagra kamagra aangeboden – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  51. Ernestolet said on 27-07-2019

    Your comment is awaiting moderation.

    Effectively expressed indeed. !

    alpha blockers viagra buy and purchase viagra online
    generic viagra online
    taking viagra – https://genericviagrantx.com

    KeithErype
    Richardabeby
    Ernestolet

  52. Ernestolet said on 27-07-2019

    Your comment is awaiting moderation.

    Beneficial forum posts. Thank you!

    online viagra generic quick generic viagra fast shipping
    viagra without a doctor prescription
    viagra controlled substance – https://genericviagrarcp.com

    KeithErype
    Richardabeby
    Ernestolet

Leave a Reply

Your email address will not be published. Required fields are marked *