Oracle 11gr2 in Oracle Enterprise Linux 64 bit
Hi,
I am installing Oracle 11G(11.2.0.1) in Oracle Enterprise Linux 64 bit(VM ware workstation). I have installed all the rpm's and prerequsites but when i run ./runInstaller and start the installation the GUI screen is very slow in response and screens are flickering. What could be the possible reason for this?
Regards,
007
Hi Srini,
plz find the install log below
oracle_install_db_LoadExampleSchemas false
oracle_install_db_MountPointLocation
oracle_install_db_QuickInstallOption false
oracle_install_db_ReceiveEmailNotification false
oracle_install_db_RecoveryBackUpLocation
oracle_install_db_RecoveryBackUpPassword Protected value, not to be logged
oracle_install_db_RecoveryBackUpUsername
oracle_install_db_SID
oracle_install_db_SecureConfigDisabled false
oracle_install_db_SetOracleBase false
oracle_install_db_StarterDatabaseType GENERAL_PURPOSE
oracle_install_db_StorageType 0
oracle_install_db_SuperAdminPasswords Protected value, not to be logged
oracle_install_db_SuperAdminSamePasswdForAll Protected value, not to be logged
oracle_install_db_SystemClass DESKTOP_CLASS
oracle_install_db_Type 1
oracle_install_db_UseDBControl true
oracle_install_db_UseFileSystemForRecovery false
oracle_install_db_UseSamePassword false
INFO: Launching Oracle Database 11g Release 2 Installer
INFO: Started executing the flow in INTERACTIVE mode
INFO: Waiting for completion of background operations
INFO: Finishing all forked tasks at state prepInstall
INFO: Waiting for completion all forked tasks at state prepInstall
INFO: All forked task are completed at state prepInstall
INFO: Completed background operations
INFO: Executing action at state prepInstall
INFO: Completed executing action at state <prepInstall>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <prepInstall>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating view at state <prepInstall>
INFO: Completed validating view at state <prepInstall>
INFO: Validating state <prepInstall>
WARNING: Validation disabled for the state prepInstall
INFO: Completed validating state <prepInstall>
INFO: Verifying route success
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state decideOCMInstall
INFO: Completed executing action at state <decideOCMInstall>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <decideOCMInstall>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating view at state <decideOCMInstall>
INFO: Completed validating view at state <decideOCMInstall>
INFO: Validating state <decideOCMInstall>
WARNING: Validation disabled for the state decideOCMInstall
INFO: Completed validating state <decideOCMInstall>
INFO: Verifying route requireOCM
INFO: Get view named [OCMDetailsUI]
INFO: View for [OCMDetailsUI] is oracle.install.ivw.common.view.OCMDetailsGUI@2dd1282d
INFO: Initializing view <OCMDetailsUI> at state <getOCMDetails>
INFO: Completed initializing view <OCMDetailsUI> at state <getOCMDetails>
INFO: Displaying view <OCMDetailsUI> at state <getOCMDetails>
INFO: Completed displaying view <OCMDetailsUI> at state <getOCMDetails>
INFO: Loading view <OCMDetailsUI> at state <getOCMDetails>
INFO: Completed loading view <OCMDetailsUI> at state <getOCMDetails>
INFO: Localizing view <OCMDetailsUI> at state <getOCMDetails>
INFO: Completed localizing view <OCMDetailsUI> at state <getOCMDetails>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state getOCMDetails
INFO: Completed executing action at state <getOCMDetails>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <getOCMDetails>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating view at state <getOCMDetails>
INFO: Completed validating view at state <getOCMDetails>
INFO: Validating state <getOCMDetails>
SEVERE: You have not provided an email address.
Do you wish to remain uninformed of critical security issues in your configuration?
INFO: Completed validating state <getOCMDetails>
INFO: Verifying route success
INFO: Get view named [InstallOptionsUI]
INFO: InstallOptionsUI Entering Constructor
INFO: InstallOptionsUI Exiting Constructor
INFO: View for [InstallOptionsUI] is oracle.install.ivw.db.view.InstallOptionsUI@62892cc5
INFO: Initializing view <InstallOptionsUI> at state <installOptions>
INFO: Completed initializing view <InstallOptionsUI> at state <installOptions>
INFO: Displaying view <InstallOptionsUI> at state <installOptions>
INFO: Completed displaying view <InstallOptionsUI> at state <installOptions>
INFO: Loading view <InstallOptionsUI> at state <installOptions>
INFO: Completed loading view <InstallOptionsUI> at state <installOptions>
INFO: Localizing view <InstallOptionsUI> at state <installOptions>
INFO: Completed localizing view <InstallOptionsUI> at state <installOptions>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state installOptions
INFO: Completed executing action at state <installOptions>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <installOptions>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: InstallOptions UI Entering & Exiting processInput
INFO: Validating view at state <installOptions>
INFO: Completed validating view at state <installOptions>
INFO: Validating state <installOptions>
INFO: Completed validating state <installOptions>
INFO: InstallOptionsAction Actions.transition called
INFO: selectedInstallOption is :INSTALL_DB_AND_CONFIG
INFO: launchNETCA = true
INFO: Verifying route system_class
INFO: Get view named [SystemClassUI]
INFO: SystemClassUI Entering Constructor
INFO: SystemClassUI Exiting Constructor
INFO: View for [SystemClassUI] is oracle.install.ivw.db.view.SystemClassUI@1e38d900
INFO: Initializing view <SystemClassUI> at state <getSystemClass>
INFO: Completed initializing view <SystemClassUI> at state <getSystemClass>
INFO: Displaying view <SystemClassUI> at state <getSystemClass>
INFO: Completed displaying view <SystemClassUI> at state <getSystemClass>
INFO: Loading view <SystemClassUI> at state <getSystemClass>
INFO: Completed loading view <SystemClassUI> at state <getSystemClass>
INFO: Localizing view <SystemClassUI> at state <getSystemClass>
INFO: Completed localizing view <SystemClassUI> at state <getSystemClass>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state getSystemClass
INFO: Completed executing action at state <getSystemClass>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <getSystemClass>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: SystemClassUI Entering & Exiting processInput
INFO: Validating view at state <getSystemClass>
INFO: Completed validating view at state <getSystemClass>
INFO: Validating state <getSystemClass>
INFO: Completed validating state <getSystemClass>
INFO: selectedSystemClass is :SERVER_CLASS
INFO: Verifying route server_class_yes
INFO: Get view named [NodeSelectionUI]
INFO: NodeSelectionUI Entering Constructor
INFO: strColHeader[0]:
INFO: strColHeader[1]:Node Name
INFO: View for [NodeSelectionUI] is oracle.install.ivw.db.view.NodeSelectionUI@1777f5b2
INFO: Initializing view <NodeSelectionUI> at state <nodeSelectionPage>
INFO: Completed initializing view <NodeSelectionUI> at state <nodeSelectionPage>
INFO: Displaying view <NodeSelectionUI> at state <nodeSelectionPage>
INFO: Completed displaying view <NodeSelectionUI> at state <nodeSelectionPage>
INFO: Loading view <NodeSelectionUI> at state <nodeSelectionPage>
INFO: Completed loading view <NodeSelectionUI> at state <nodeSelectionPage>
INFO: Localizing view <NodeSelectionUI> at state <nodeSelectionPage>
INFO: strColHeader[0]:
INFO: strColHeader[1]:Node Name
INFO: Completed localizing view <NodeSelectionUI> at state <nodeSelectionPage>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state nodeSelectionPage
INFO: Completed executing action at state <nodeSelectionPage>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <nodeSelectionPage>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating view at state <nodeSelectionPage>
INFO: Completed validating view at state <nodeSelectionPage>
INFO: Validating state <nodeSelectionPage>
INFO: Completed validating state <nodeSelectionPage>
INFO: NodeSelectionAction Actions.transition called
INFO: selectedInstallOption is :INSTALL_DB_AND_CONFIG
INFO: Verifying route create_and_configureDB
INFO: Get view named [installTypeUI]
INFO: View for [installTypeUI] is oracle.install.ivw.db.view.InstallTypeGUI@141ba1f1
INFO: Initializing view <installTypeUI> at state <installType>
INFO: Completed initializing view <installTypeUI> at state <installType>
INFO: Displaying view <installTypeUI> at state <installType>
INFO: Completed displaying view <installTypeUI> at state <installType>
INFO: Loading view <installTypeUI> at state <installType>
INFO: Completed loading view <installTypeUI> at state <installType>
INFO: Localizing view <installTypeUI> at state <installType>
INFO: Completed localizing view <installTypeUI> at state <installType>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state installType
INFO: Completed executing action at state <installType>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <installType>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating view at state <installType>
INFO: Completed validating view at state <installType>
INFO: Validating state <installType>
WARNING: Validation disabled for the state installType
INFO: Completed validating state <installType>
INFO: Verifying route basic_yes
INFO: Get view named [QuickInstallUI]
INFO: inventory location is/data/u01/app/oraInventory
INFO: inventory location is/data/u01/app/oraInventory
WARNING: SRVCTL not found as there is no Grid Infrastructure home on the box
WARNING: KFOD not found at
INFO: inventory location is/data/u01/app/oraInventory
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
INFO: View for [QuickInstallUI] is oracle.install.ivw.db.view.QuickInstallUI@211fc4dd
INFO: Initializing view <QuickInstallUI> at state <quickInstallPage>
INFO: Completed initializing view <QuickInstallUI> at state <quickInstallPage>
INFO: Displaying view <QuickInstallUI> at state <quickInstallPage>
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for SEinstall is 4324.242483139038
INFO: Completed displaying view <QuickInstallUI> at state <quickInstallPage>
INFO: Loading view <QuickInstallUI> at state <quickInstallPage>
INFO: Completed loading view <QuickInstallUI> at state <quickInstallPage>
INFO: Localizing view <QuickInstallUI> at state <quickInstallPage>
INFO: Completed localizing view <QuickInstallUI> at state <quickInstallPage>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state quickInstallPage
INFO: Completed executing action at state <quickInstallPage>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <quickInstallPage>
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
INFO: size estimation for SEinstall is 4324.242483139038
INFO: size estimation for EEinstall is 4397.013998031616
regards,
007
Similar Messages
-
Oracle 11gR2 on Oracle Linux 6 64 bit
Hi all,
I am a newbie on oracle so i posted this thread because i needed some help installing oracle 11gR2 on Oracle Linux using command line
This is for testing purposes.
I did all the prerequisites by oracle for the operating system.
I finished installing the database software from the setup ./runinstaller using x-terminal
I think i configured well the listener, because i can access the database using simple with pl/sql
The problem i have is with the dbconsole wich is accessed from the browser. I can't open it. from google chrome is says : This webpage is not available
Any help would be appreciated
Sorry for my english
It's not my native language
Be kind to check my site:
http://lajm-shqip.com/Pl identify exact version of "11gR2"
Currently only 11.2.0.3 is certified to be installed on Linux 6 - http://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm#CHDFHIEA
If you are installing 11.2.0.1 or 11.2.0.2, you will need to use Linux 5.x
Has database control been configured ?
HTH
Srini -
Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
h1. Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
Author: Dude
Version: D
Last modified: 14-Jan-2012
You are welcome to add comments, but please do not discuss your installation issues in this thread. If you have a question about the instructions, please add a simple note to the link of your own thread. The instructions are the result of my own research and development. If you would like to use any of the information for your own blog or website, please include a link to this reference to include future changes.
Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
h2. Purpose
This document outlines instructions how to install Oracle XE under Ubuntu 11.10.
Ubuntu or Debian based Linux is not on the list of supported operation systems according to the Oracle documentation at http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm. You may want to consider virtualization software like Oracle Virtualbox and install Oracle Enterprise Linux as a free and professional alternative to installing XE under Ubuntu. You can also download pre-build virtual machines that include Oracle XE. You can browse http://otn.oracle.com/community/developer-vm for more information.
h2. Topics
h4. 1) Install Linux Ubuntu
h4. 2) Remote Terminal
h4. 3) Install Additional Software
h4. 4) Managing Swap Space
h4. 5) Modify Kernel Parameters
h4. 6) Oracle Home Directory
...a) Resize the Root Partition
...b) Setup External Storage
h4. 7) ORA-00845: MEMORY_TARGET
h4. 8) Installing Oracle 11gR2 Express Edition
h4. 9) Post-Installation
h4. 10) Tips and Troubleshooting
...a) Port 1521 appears to be in use by another application
...b) cannot touch `/var/lock/subsys/listener': No such file or directory
...c) ORA-00845: MEMORY_TARGET
...d) Apex ADMIN password
...e) SYS and SYSTEM password
...f) Uninstall Oracle 11g XE
...g) Reconfigure Oracle 11g XE
...h) Gnome Classic desktop
...i) Unix vi cursor keys
...j) Backup Database
h4. 11) History
h4. 12) References
h2. 1) Install Linux Ubuntu
The following assumes you have installed Ubuntu 11.10 Desktop Edition for AMD 64-bit, or upgraded from a previous version. Keep in mind that Oracle 11gR2 Express Edition is only available for 64-bit architecture. It is not necessarily a requirement, but I would not bother to install Oracle 11gR2 XE on a system with less than 2 GB of RAM installed. You can download Ubuntu for free at: http://www.ubuntu.com/download/ubuntu and install it using the default settings provided.
You can apply the latest OS patch-sets by clicking the power button icon in the upper right hand corner of the screen and selecting "Updates available..."
h2. 2) Remote Terminal
You will need command line access to perform the installation tasks. Select the top "Dash Home" button of the Unity toolbar and enter the word "terminal", or use CTRL-ALT-t. If you prefer to open a remote terminal session use SSH. Ubuntu does not come with a secure shell login by default. To install it, use the following command:
sudo apt-get install openssh-serverYou cannot login as root unless you set a root password using the "sudo passwd root" command. However, you can get root user access using the "sudo" command, which requires only to re-enter the password of your personal account. Access to "sudo" is controlled by the /etc/sudoers file.
The best way to establish a remote command line session as root is to login with your personal account, e.g.: ssh [email protected], and then type "sudo su -" to become root, or use "sudo <command>" to execute individual commands. If your account does not have "sudo" access you can login as root using "su - root", but will need to know the root password.
h2. 3) Install Additional Software
Oracle 11g Express Edition requires additional software that is not installed by default:
sudo apt-get install alien libaio1 unixodbch2. 4) Managing Swap Space
Oracle demands that the minimum swap space for Oracle Database XE is 2 GB (2095100 KB) or twice the size of RAM, whichever is lesser. Enter the following shell command to verify your swap space:
cat /proc/meminfo | grep -i swap
SwapCached: 0 kB
SwapTotal: 2095100 kB
SwapFree: 2095100 kBYou can increase available swap space by using a swap file as long as disk space permits. The advantage of a swap file versus a swap partition is flexible space management because you can add or delete swap space on demand as necessary. The following will create and enable an additional 1 GB swap file at system startup, located in the /home directory:
Login as root:
sudo su -Enter the following commands:
dd if=/dev/zero of=/home/swapfile bs=1024 count=1048576
mkswap /home/swapfile
swapon /home/swapfile
swapon -aCreate a backup of the original "fstab" file and add the new swap file:
cp /etc/fstab /etc/fstab.backup_`date +%N`
echo '/home/swapfile swap swap defaults 0 0' >> /etc/fstabExit from root and verify the new swap space:
exit
swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 2095100 0 -1
/home/swapfile file 1048572 0 -2Swap space is not a substitute for installed RAM. Swap space is a safeguard that allows the system to move idle processes to disk before the OOM killer will begin to terminate processes in order to free up enough real memory to keep the system operational. The general rule for sizing the swap space depends on the size of installed RAM. If your system has less then 4 GB of RAM the swap space should usually be at least twice this size. If you have more than 8 GB of RAM installed you may consider to use an equal size as swap space. The more RAM you have installed, the less likely you are going to run into memory starvation, and the less likely you are going to need swap space, unless you have a bad process.
h2. 5) Modify Kernel Parameters
Oracle 11gR2 Express Edition requires the following Kernel parameters. Enter the commands exactly as shown:
Login as root:
sudo su -Cut & paste the following directly into a command shell (not a text editor):
cat > /etc/sysctl.d/60-oracle.conf <<-EOF
# Oracle 11g XE kernel parameters
fs.file-max=6815744
net.ipv4.ip_local_port_range=9000 65500
kernel.sem=250 32000 100 128
# kernel.shmmax=429496729
kernel.shmmax=107374183
EOFLoad and verify the new kernel parameters:
service procps start
sudo sysctl -q fs.file-max
sudo sysctl -q kernel.shmmax
sudo sysctl -q net.ipv4.ip_local_port_range
sudo sysctl -q kernel.sem The SHMMAX kernel parameter defines the upper memory limit of a process. It is a safeguard to stop a bad process from using all memory and causing RAM starvation. The Linux default is 32 MB. The official Oracle XE installation documentation suggests a value of 4 GB -1 bytes (429496729). Since Oracle 11g XE has a 1 GB memory limit, a smaller footprint will be a better safeguard for the complete system. Setting the SHMMAX parameter to 107374183 will be sufficient.
h2. 6) Oracle Home Directory
At the time of this writing, Enterprise Linux 6 is not supported for Oracle database yet. It is therefore not possible to confirm Oracle ext4 filesystem compatibility, which is default in Ubuntu 11. According to various information, ext4 may cause a performance problem for Oracle 11g database. The following will show you how to add a ext3 partition to your existing setup.
h3. 6.a) Resize the Root Partition
Provided you have sufficient free disk space, you should be able to resize the root partition to create an extra ext3 filesystem. Considering the 11 GB user datafile limit of the Express Edition, 18 GB should be more than enough.
You can use the free Gparted Live CD to shrink your startup volume. Gparted downloads are available at http://sourceforge.net/projects/gparted/files/gparted-live-stable. When burning the CD, pay attention to burn the raw .iso image and not the possibly "mounted" image. If you are using a virtual machine like Oracle Virtualbox, you can mount the .iso image directly. There are going to be a few prompts when the system starts from the CD, but you can press Return to accept the defaults.
When the Gparted window appears:
- Select your ext4 root partition, usually /dev/sda1
- Select the "Resize/Move" button from the toolbar.
- Enter 18000 into the "Free space following" field and press the Return key.
Be careful not not change the start of the partition!
- Click the "Resize/Move" of the dialog and then then the "Apply" toolbar button.
The process may take several minutes - do not abandon it!
- Select the new unallocated free space of ~ 18 GB and push the "New" button.
- Set the file system to "ext3" and label it "oraclexe" and click the "Add" button.
Be sure to label it oraclexe, otherwise the follow-up instructions will fail.
- Finally select "Apply from the toolbar to apply the changes.
- Quit "Gparted", select "Exit" from the desktop and choose "Reboot" to restart the system.
{code}
After the system has restarted, open a terminal command shell.
Login as root:
{code}
sudo su -
{code}
Backup "fstab" and add the UUID of the partition. The "tr" command remove the quotes:
{code}
cp /etc/fstab /etc/fstab_`date +%N`
uuid=`blkid | grep oraclexe | awk '{print $3}'`
uuid=`echo $uuid | tr -d '\042'`
echo $uuid
echo "$uuid /u01 ext3 errors=remount-ro 0 1" >> /etc/fstab
{code}
The UUID is a unique number and should look similar to:
{code}
UUID=d1db753e-b5dd-4a4c-a61e-259c69867b58
{code}
Restart the system:
{code}
reboot
{code}
Verify the success:
{code}
df -h /u01
{code}
h3. 6.b) Setup External Storage
If you prefer to setup an external drive to install Oracle XE, beware that it can be a fatal mistake to make an entry in /etc/fstab to automount your external storage device. An unavailable device in /etc/fstab will prevent a system startup and prompt for appropriate actions at the console.
The following is an example of how to prepare an external storage device to be used for Oracle 11g, including a script to automatically mount an external drive at system startup without the disadvantages of /etc/fstab. The script will also take into consideration that a device name might shift if you attach additional devices.
To find out which USB devices are connected:
{code}
sudo parted -l
{code}
Look for the device that matches your USB storage. For example: /dev/sdb1
{code}
Model: USB 2.0 Flash Disk (scsi)
Disk /dev/sdb: 2064MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 20.5kB 1929MB 1929MB hfs+ mystick
{code}
Initialize the device using ext3 filesystem - this will erase all data. The "-c" option will check for bad blocks (read-only), "-L" is the volume label:
{code}
sudo umount /dev/sdb1
sudo mkfs.ext3 -c -L oraclexe /dev/sdb1
{code}
Install the pmount distribution package:
{code}
sudo apt-get install pmount
{code}
Login as root:
{code}
sudo su -
{code}
Cut & paste the following into the command prompt (not a text editor):
{code}
cat > /etc/init.d/oracle-mount <<-EOF
#! /bin/sh
# /etc/init.d/oracle-mount
VOL_UUID=alphanumeric
VOL_LABEL=oraclexe
VOL_SYMLINK=/u01
mount=/usr/bin/pmount
uuid2dev() {
VOL_DEVICE="\`blkid | grep \$VOL_UUID | awk '{print \$1}'\`"
VOL_DEVICE="\`echo \$VOL_DEVICE | tr -d ':'\`"
echo \$VOL_DEVICE
case "\$1" in
start)
echo "Starting script /etc/init.d/oracle-mount"
uuid2dev
\$mount \$VOL_DEVICE \$VOL_LABEL
if [ -d /media/\$VOL_LABEL ]; then
echo "Mount \$VOL_DEVICE success"
ln -sf /media/\$VOL_LABEL \$VOL_SYMLINK
else
echo "Error mouting \$VOL_DEVICE"
fi
stop)
echo "Stopping script /etc/init.d/oracle-mount"
uuid2dev
/bin/umount \$VOL_DEVICE 2>/dev/null
if [ "\`/usr/bin/pmount | /bin/grep \$VOL_DEVICE\`" ]; then
echo "Error unmounting \$VOL_DEVICE"
else
rm -f \$VOL_SYMLINK
fi
echo "Usage: /etc/init.d/oracle-u01 {start|stop}"
exit 1
esac
### BEGIN INIT INFO
# Provides: oracle-mount
# Required-Start: \$remote_fs \$syslog
# Required-Stop: \$remote_fs \$syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Mount hotplug-usb drive and create symlink
### END INIT INFO
EOF
{code}
Install the oracle-mount init script:
{code}
chmod 755 /etc/init.d/oracle-mount
update-rc.d oracle-mount defaults 01 99
{code}
Get the UUID of the volume "oraclexe" and update the VOL_UUID in the init script accordingly:
{code}
uuid=`blkid | grep oraclexe | awk '{print $3}'`
echo $uuid
sed -i "s/^VOL_UUID=.*/VOL_$uuid/g" /etc/init.d/oracle-mount
{code}
The UUID of your device will be a unique number, but should be similar to:
{code}
UUID="3f5e9963-b328-49f3-b3e8-a3561ae34106"
{code}
Logout of root and test the init script:
{code}
exit
sudo /etc/init.d/oracle-mount stop
ls /u01
sudo /etc/init.d/oracle-mount start
ls /u01
{code}
Your output should look like:
{code}
Stopping script /etc/init.d/oracle-mount
/dev/sdb1
ls: cannot access /u01: No such file or directory
Starting script /etc/init.d/oracle-mount
/dev/sdb1
Mount /dev/sdb1 success
lost+found
{code}
h2. 7) ORA-00845: MEMORY_TARGET
Oracle 11gR2 XE under Ubuntu 11.10 will result in "ORA-00845: MEMORY_TARGET not support on this system" either at Oracle database startup or during the initial installation. Ubuntu 11.10 uses a new version of the "systemd" system and session manager and has migrated away from /dev/shm and other common directories in favor of /run.
There are several ways how to address the problem. You can either enable /dev/shm shared memory, or change the default memory management of Oracle 11g from AMM (Automatic Memory Management) to ASMM (Automatic Shared Memory Management) as it was in used the previous 10g version. Since AMM is one of the new features of 11g, the following will show you how to make to make AMM work.
Login as root:
{code}
sudo su -
{code}
Cut & paste the following into the command prompt (not a text editor):
{code}
cat > /etc/init.d/oracle-shm <<-EOF
#! /bin/sh
# /etc/init.d/oracle-shm
case "\$1" in
start)
echo "Starting script /etc/init.d/oracle-shm"
# Run only once at system startup
if [ -e /dev/shm/.oracle-shm ]; then
echo "/dev/shm is already mounted, nothing to do"
else
rm -f /dev/shm
mkdir /dev/shm
mount -B /run/shm /dev/shm
touch /dev/shm/.oracle-shm
fi
stop)
echo "Stopping script /etc/init.d/oracle-shm"
echo "Nothing to do"
echo "Usage: /etc/init.d/oracle-shm {start|stop}"
exit 1
esac
### BEGIN INIT INFO
# Provides: oracle-shm
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Bind /run/shm to /dev/shm at system startup.
# Description: Fix to allow Oracle 11g use AMM.
### END INIT INFO
EOF
{code}
Install the oracle-shm init script:
{code}
chmod 755 /etc/init.d/oracle-shm
update-rc.d oracle-shm defaults 01 99
{code}
Restart the system:
{code}
reboot
{code}
Verify the success:
{code}
sudo cat /etc/mtab | grep shm
{code}
{code}
none /run/shm tmpfs rw,nosuid,nodev 0 0
/run/shm /dev/shm none rw,bind 0 0
{code}
The upper limit of shared memory under Linux is set to 50 % of the installed RAM by default. If your system has less than 2 GB of RAM installed, there is still a chance to run into ORA-00845 error if your shared memory is used by other software.
The verify available shared memory, type the following commands:
{code}
sudo df -h /run/shm
{code}
h2. 8) Installing Oracle 11gR2 Express Edition
The final release version of Oracle 11gR2 Express Edition can be downloaded for free at http://otn.oracle.com/database/express-edition/downloads. The software should automatically downloaded into the "Downloads" folder of your home directory.
Enter the following commands to unpack the installer:
{code}
cd ~/Downloads
unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
rm oracle-xe-11.2.0-1.0.x86_64.rpm.zip
{code}
The Debian Linux based package management of Ubuntu is not compatible with the Red Hat package manager. The Oracle installer needs to be converted using the following commands:
{code}
cd ~/Downloads/Disk1
sudo alien --to-deb --scripts oracle-xe-11.2.0-1.0.x86_64.rpm
(This may take a few minutes)
rm oracle-xe-11.2.0-1.0.x86_64.rpm
{code}
The following needs to be set for compatibility:
{code}
sudo ln -s /usr/bin/awk /bin/awk
sudo mkdir /var/lock/subsys
{code}
Ubuntu uses different tools to manage services and system startup scripts. The "chkconfig" tool required by the Oracle installer is not available in Ubuntu. The following will create a file to simulate the "chkconfig" tool.
Login as root:
{code}
sudo su -
{code}
Copy & paste the following *directly* into the command prompt to create a file:
{code}
cat > /sbin/chkconfig <<-EOF
#!/bin/bash
# Oracle 11gR2 XE installer chkconfig hack for Debian based Linux (by dude)
# Only run once.
echo "Simulating /sbin/chkconfig..."
if [[ ! \`tail -n1 /etc/init.d/oracle-xe | grep INIT\` ]]; then
cat >> /etc/init.d/oracle-xe <<-EOM
### BEGIN INIT INFO
# Provides: OracleXE
# Required-Start: \\\$remote_fs \\\$syslog
# Required-Stop: \\\$remote_fs \\\$syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Oracle 11g Express Edition
### END INIT INFO
EOM
fi
update-rc.d oracle-xe defaults 80 01
EOF
{code}
Exit root:
{code}
exit
{code}
Set execute privileges:
{code}
sudo chmod 755 /sbin/chkconfig
{code}
Install Oracle 11gR2 Express Edition entering the following commands:
{code}
cd ~/Downloads/Disk1
sudo dpkg --install ./oracle-xe_11.2.0-2_amd64.deb
(This may take a couple of minutes)
{code}
Run the configuration script to create (clone) the database and follow the screen. Accept the default answers, including "y" to startup the database automatically, or modify as required.
{code}
sudo /etc/init.d/oracle-xe configure
(This can take a few minutes - the installation completed successfully.)
{code}
To verify success, the procedure should end showing:
{code}
Starting Oracle Net Listener...Done
Configuring database...Done
Starting Oracle Database 11g Express Edition instance...Done
Installation completed successfully.
{code}
Set a password for the Oracle account:
{code}
sudo passwd oracle
{code}
h2. 9) Post-Installation
In order to use sqlplus and other tools, the Oracle account requires specific environment variables. The following will set these variables automatically at every Oracle login:
Login as the Oracle user:
{code}
su - oracle
{code}
Copy the default account skeleton files and add the Oracle env script to .profile:
{code}
cp /etc/skel/.bash_logout ./
cp /etc/skel/.bashrc ./
cp /etc/skel/.profile ./
echo "" >>./.profile
echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profile
{code}
By default, the Oracle Database XE graphical user interface is only available at the local server, but not remotely. The following will enable remote logins:
Login as the Oracle user:
{code}
su - oracle
{code}
Login as SYSDBA and execute the following:
{code}
sqlplus / as sysdba
SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
exit
{code}
See http://download.oracle.com/docs/cd/E17781_01/admin.112/e18585/toc.htm for more information.
h3. a) Unity desktop configurations
The Oracle XE menu under the previous Gnome Classic desktop shows several useful scripts to backup the database, start and stop the database, etc. Under the Unity based desktop this menu is not available. You can either switch to the Gnome Classic desktop as outlined in chapter 2, or perform the following steps to modify and copy the scripts as outlined below. The start and stop database scripts will also be modified to perform a progress feedback.
Login as user root:
{code}
sudo su -
{code}
Convert desktop files:
{code}
cd /usr/share/applications
sed -i 's/Categories.*/Categories=Database;Office;Development;/g' oraclexe*
sed -i 's/MultipleArgs/X-MultipleArgs/g' oraclexe*
sed -i 's/MimeType.*/MimeType=application\/x-database/g' oraclexe*
sed -i 's/.png//g' oraclexe*
sed -i 's/Terminal=false/Terminal=true/g' oraclexe-startdb.desktop
sed -i 's/Terminal=false/Terminal=true/g' oraclexe-stopdb.desktop
{code}
Exit root:
{code}
exit
{code}
Login as user Oracle:
{code}
su - oracle
{code}
Modify database start and stop scripts:
{code}
cd /u01/app/oracle/product/11.2.0/xe/config/scripts
cp startdb.sh start.sh_orig
cp stopdb.sh stopdb.sh_orig
sed -i 's/>.*//g' startdb.sh
sed -i 's/>.*//g' stopdb.sh
{code}
You will need SYSDBA privileges and set Oracle environment variables in order to use your regular user account.
Login to your regular user account:
{code}
su - dude
{code}
Enter the folowing command:
{code}
sudo usermod -a -G dba dude
{code}
Then update your profile to automatically set the necessary Oracle environment variables:
{code}
echo "" >>./.profile
echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profile
{code}
Update your Desktop folder to contain useful Oracle XE scripts:
{code}
cp /usr/share/applications/oraclexe* ~/Desktop
chmod 750 ~/Desktop/oraclexe*
{code}
To verify success re-login and try "sqlplus":
{code}
su - oracle
sqlplus / as sysdba
{code}
h2. 10) Tips and Troubleshooting
h3. 10. a) Port 1521 appears to be in use by another application
Error: Port 1521 appears to be in use by another application. Specify a different port.This error happens after a previously unsuccessful configuration attempt using /etc/init.d/oracle-xe configure script. The script was able to start the Listener process, but most likely failed to continue to clone the database, e.g. ORA-00845. The following should correct the problem:
Determine the oracle listener process that is already running:
{code}
$ ps -ef | grep oracle
{code}
Your output should be similar to:
{code}
oracle 19789 1 0 19:46 ? 00:00:00 /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr
{code}
Then kill the process, using the appropriate process id, for instance:
{code}
$ sudo kill -9 19789
{code}
h3. 10.b) cannot touch `/var/lock/subsys/listener': No such file or directory
Starting Oracle Net Listener...touch: cannot touch `/var/lock/subsys/listener': No such file or directoryThis error occurs when you run /etc/init.d/oracle-xe configure, but failed the preinstallation step to create the /var//lock/subsys directory as outlined in chapter 8.
h3. 10.c) ORA-00845: MEMORY_TARGET
ORA-00845: MEMORY_TARGET not supported on this system See chapter 7 to enable /dev/shm and verify free space available in /run/shm
h3. 10.d) Apex ADMIN password
According to the Oracle documentation, the password for the INTERNAL and ADMIN Oracle Application Express user accounts is initially the same as the SYS and SYSTEM administrative user accounts. Well, I tried several times without success. To reset the Apex Admin password:
Login as user oracle:
{code}
su - oracle
{code}
Login as SYSDBA and type the following:
{code}
sqlplus / as sysdba
{code}
At the SQL prompt, type the following to be prompted to change the password:
{code}
SQL> @?/apex/apxxepwd.sql
exit
{code}
When done, open your browser and go to http://127.0.0.1:8080/apex
Workspace: Internal
Username: ADMIN
Password: password you set with apxxepwd.sql
I will prompt you to reset the password:
old password: password you set with apxxepwd.sql
new password: final_password
You can also login as the Apex Admin using http://127.0.0.1:8080/apex/apex_admin
h3. 10.e) SYS and SYSTEM password
Use the following commands to reset the SYS and SYSTEM passwords if necessary:
Login as the Oracle user:
{code}
su - oracle
{code}
Login as SYSDBA and type the following at the SQL prompt:
{code}
sqlplus / as sysdba
SQL> alter user sys identified by "password" account unlock;
SQL> alter user system identified by "password" account unlock;
SQL> exit
{code}
h3. 10.f) Uninstall Oracle 11g XE
The following will completely uninstall and remove Oracle 11g XE:
Open a terminal seesion and login as user root:
{code}
sudo su -
{code}
Enter the following:
{code}
/etc/init.d/oracle-xe stop
dpkg --purge oracle-xe
rm -r /u01/app
rm /etc/default/oracle-xe
update-rc.d -f oracle-xe remove
update-rc.d -f oracle-mount remove
update-rc.d -f oracle-shm remove
{code}
h3. 10.g) Reconfigure Oracle 11g XE
Type the following commands in a terminal window:
{code}
sudo /etc/init.d/oracle-xe stop
sudo rm /etc/default/oracle-xe
sudo /etc/init.d/oracle-xe configure
{code}
h3. 10.h) Gnome Classic desktop
Ubuntu 11 moved from the Gnome Classic desktop to Unity and removed the "Ubuntu Classic" login option. Unity was designed to make more efficient use of space given a limited screen size and touch screens. If you prefer to use the Gnome Classic desktop, enter the following into a terminal window:
{code}
sudo apt-get install gnome-panel
{code}
To log into the Gnome Classic desktop, select the "Gearwheel" at the login screen and select "Gnome Classic".
h3. 10.i) Unix vi cursor keys
The instructions in this tutorial do not require the use of any text editor. However, if you would like use the backspace and cursor keys in the "vi-editor", the following needs to be installed:
{code}
sudo apt-get install vim
{code}
h3. 10.j) Backup Database
In order to perform an online database backup using the supplied "Backup Database" script, the database needs to run in Archive-Log mode. This can be setup using the following commands:
Login as the Oracle user:
{code}
su - oracle
{code}
Login as SYSDBA and type the following:
{code}
sqlplus / as sysdba
SQL> shutdown immediate
SQL> startup mount
SQL> alter database archivelog;
SQL> alter database open;
SQL> exit
{code}
h2. 11) History
Version: A, 24-Oct-2011
- first release
Version: B, 25-Oct-2011
- reduced instructions.
- corrected errors in 6a and 8.
- new strategy addressing ORA-00845 error.
- rework of chapter 10.
Version: C, 30-Nov-2011
- corrected typo in 6a
- new procedures in 9a.
- added progress feedback to database scripts.
Version D, 14-Jan-2012
- corrected presentation errors.
- reorganized instructions.
h3. 12) References
http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm
http://askubuntu.com/questions/57297/why-has-var-run-been-migrated-to-run
http://lwn.net/Articles/436012/
https://forums.oracle.com/forums/thread.jspa?threadID=2300750&tstart=0
Kind regards and best of luck!
Dude.Excellent Blog. Thank You
Small clarification on Step **6) Oracle Home Directory, ...a) Resize the Root Partition**
Ubuntu 11.10 has Gparted available as a Ubuntu software download, DONT use that while trying the above step, instead download the ISO file from http://sourceforge.net/projects/gparted/files/gparted-live-stable/ gparted-live-0.12.0-5.iso (124.6 MB)
Burn that ISO file on a Blank DVD, reboot the Ubuntu , during startup select Boot from DVD Option if not already selected. this will take to Boot Menu Options of Gparted Live then select the first menu option, and this allows to do further action such as Re-sizing .
and once you have chosen and executed step a) . do NOT run step b) also that is "Setup External Storage"
I hope this minor clarification can avoid some confusion
Regards
Madhusudhan Rao
Edited by: MadhusudhanRao on Mar 24, 2012 11:30 PM -
Oracle 11gR2 on Oracle Enterprise Linux 6
Hi,
I have recently reconfigured by old PC as a Linux box use OEL 6 and have installed Oracle 11gR2 database on it. I can access the database control via firefox on this PC. I also have a laptop running 64-bit Windows 7.
On this laptop I have installed putty, Oracle 11g Client, SQLDeveloper 3 and JDeveloper 11g. I have added an entry for my linux box to the hosts file in the c:\windows\system32\drives\etc directory.
I can connect to the linux box using putty and the hostname value from the hosts file, however when I try to create a database connection in SQLDeveloper or Jdeveloper using the hostname, port and service name for my database I get the following error:
"The Network Adapter could not establish the connection".
Also when I try to access the database control via Google Chrome on my laptop it times out.
Cheer,
Cameron.barney wrote:
Hey Ed,
I proceeded to add the entry to the /etc/hosts file on the server and deinstalled oracle. The hosts file now looks like :
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.2.3 ol6-112.localdomain ol6-112
Once the deinstallation process completed I restarted the server added the following to the .bash_profile of the oracle user - "ORACLE_HOSTNAME=ol6-112.localdomain; export ORACLE_HOSTNAME" and then proceeded to run the oracle installer again reinstall oracle and create a database.
The listener is now using the new entry in the hosts file but I still can't connect to the database via SQL Developer or JDeveloper on my laptop.
And what - exactly - is the error message now?
The listener.ora file now looks like:
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/$
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = ol6-112.localdomain)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
Regards,
Cameron.from the db server:
lsnrctl statusfrom your laptop
ping ol6-112
tnsping orcl -
Has anyone tried to install Oracle 11gR2 on Red Hat Linux 6 64bit?
The Oracle Universal Installer is checking for some Red Hat packages which are not the ones in Linux 6. Does anyone know how to resolve this issue?
Hi;
I'm aware that RHE6 is not certified yet. Someone was able to install it according to this link http://server.billhamilton.com:84/wp/oracle/installing-oracle-11gr2-on-
rhel6-in-4-long-steps/ but I'm not sure on how he got around the packages requirement.
I suggest see Tim's site
http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnOracleLinux6.php
Regard
Helios -
Oracle 11gr2 Software Installation on Linux Using Shell Script
Hi,
I have requirement to install Oracle Software on Linux Using shell script, with out any manual entries.
Thanks,
loganathanSrini_Chavali wrote:
Pl identify exact version of database and OS.
Ed - not sure where you looked :-) but response files can certainly be used for an automated installation (which is what I think OP is referring to)
http://docs.oracle.com/cd/E11882_01/install.112/e24321/app_nonint.htm#BABFEECI
HTH
Srini
You are right. I must be losing it. My failure rate lately has been abnormally high. I don't remember exactly how I searched before .. I thought I opened the Installation Guide an searched for 'silent' in "this document only" -- but all I came up with was references to dbca and emca ... nothing for OUI itself. Now that I go back and do the same search, there it is. -
ORA-01843: not a valid month - Oracle 11gR2 vs Oracle 10gR2
Hi,
We have two database servers one running on 10g and another running on 11g. Application written in Java (We are using Top link to connect oracle).
Insert query on timestamp works fine on database 10g where as same query fail on 11g and raise error ORA-01843.
If query executed with sqlplus on database 11g it works fine. i
INSERT INTO CAMP (CAMP_PK, TSTAMP_CREATED) VALUES (1, '2010-02-22 06:07:18.008')
Below parameters set on DB:
SQL> select * from nls_database_parameters;
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET WE8MSWIN1252
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 11.2.0.1.0
SQL > show parameter nls_
nls_date_format string YYYYMMDD HH24:MI:SS
nls_timestamp_format string YYYY-MM-DD HH24:MI:SS.FF3
nls_timestamp_tz_format string YYYYMMDD HH24:MI:SS.FF3 TZD
Got below session data from application, both are identical.
"11g"
NLS_LANGUAGE=> AMERICAN
NLS_TERRITORY=> AMERICA
NLS_CURRENCY=> $
NLS_ISO_CURRENCY=> AMERICA
NLS_NUMERIC_CHARACTERS=> .,
NLS_CALENDAR=> GREGORIAN
NLS_DATE_FORMAT=> DD-MON-RR
NLS_DATE_LANGUAGE=> AMERICAN
NLS_SORT=> BINARY
NLS_TIME_FORMAT=> HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT=> DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT=> HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT=> DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY=> $
NLS_COMP=> BINARY
NLS_LENGTH_SEMANTICS=> BYTE
NLS_NCHAR_CONV_EXCP=> FALSE
"10g"
NLS_LANGUAGE=> AMERICAN
NLS_TERRITORY=> AMERICA
NLS_CURRENCY=> $
NLS_ISO_CURRENCY=> AMERICA
NLS_NUMERIC_CHARACTERS=> .,
NLS_CALENDAR=> GREGORIAN
NLS_DATE_FORMAT=> DD-MON-RR
NLS_DATE_LANGUAGE=> AMERICAN
NLS_SORT=> BINARY
NLS_TIME_FORMAT=> HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT=> DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT=> HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT=> DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY=> $
NLS_COMP=> BINARY
NLS_LENGTH_SEMANTICS=> BYTE
NLS_NCHAR_CONV_EXCP=> FALSE
Does DBTIMEZONE make any impact on nls ?
"11g"
SQL> SELECT DBTIMEZONE, SESSIONTIMEZONE, SYSDATE FROM DUAL;
DBTIMEZONE SESSIONTIMEZONE SYSTIMESTAMP
+00:00 -05:00 20100222 05:07:25.343
"10g"
SQL> SELECT DBTIMEZONE, SESSIONTIMEZONE, SYSDATE FROM DUAL;
DBTIMEZONE SESSIONTIMEZONE SYSTIMESTAMP
-05:00 -05:00 20100222 05:07:34.771I am agree we can resolve this issue with to_timestamp but i need to defend on why it was working on 10g and not on 11g.A timestamp in the form '2010-02-22 06:07:18.008' should have never been accepted with NLS_TIMESTAMP_TZ_FORMAT='DD-MON-RR HH.MI.SSXFF AM TZR'. So there are three possibilities:
1) The NLS_TIMESTAMP_TZ_FORMAT session format (NLS_SESSION_PARAMETERS) in force during the INSERT is not really the one you listed.
2) The column CAMP.TSTAMP_CREATED is of type VARCHAR2 and not TIMESTAMP in the 10g database.
3) There is a bug in the JDBC driver you use with 10g that allows this strange conversion.
4) The SQL issued in the 10g database is really:
INSERT INTO CAMP (CAMP_PK, TSTAMP_CREATED) VALUES (1, TIMESTAMP '2010-02-22 06:07:18.008')-- Sergiusz -
Oracle 11gR2 certification for Oracle Linux 6
Hello,
According to Oracle documentation, database certification and support for Oracle 11gR2 under Oracle Linux starts with 11.2.0.3.
I was wondering if this might have anything to do with the i386 software prerequisites. Speaking of Oracle 11gR2 x86_64, the need for i386 libraries was removed with 11gR2 11.2.0.2. Or in other words, one can go straight to 11.2.0.2 without the need to install any 32-bit libraries.
Under Oracle Linux 5 x86_64, the "oracle-validated" package triggers the installation of several i386 packages. Under Oracle Linux 6 x86_64, the oracle-rdbms-server-11gr2-preinstall package uses x86_64 only. Under Oracle Linux 6, i386 changed to i686.
For what it's worth, I have installed Oracle 11gR2 database 11.2.0.1 under Oracle Linux 6.1 to 6.3, both x86_64, simply by using the oracle-rdbms-server-11gr2-preinstall package, and so far have not noticed any problems. Is there some information available, why 11.2.0.1 (x86_64) should not be used or is not certified for Oracle Linux 6 (x86_64)?
Thanks.I was afraid of that. Since the question is Oracle Linux 6 specific, I thought I'd try my luck here, thinking that if I get an answer, then probably here. Maybe it was not very realistic to get an answer anyway.
For what it's worth. Using "oracle-validated" under Oracle Linux 5, and "oracle-rdbms-server-11gR2-preinstall" under Oracle Linux 6, I was able to install Oracle 11gR2 11.2.0.1 just fine, both platforms x86_64 and 32-bit. I have not found any operational issues yet and it seems to run perfectly well.
The only trouble I had was with Grid Infrastructure 11.2.0.1, and here 11.2.0.3 is indeed required for it to install. I made a custom patch, just a few lines and after that 11.2.0.1, both x86_64 and 32-bit installed just fine and is fully operational.
I'm though I could post the patch. I guess it might make those people happy who do not have access to Oracle support and download 11.2.0.3. The patch will allow them to use the 11gR2 OTN version and install it under Oracle Linux 6. It won't be certified, but it is good enough for the purpose of education.
I'm closing the thread. -
How to install Oracle 11gR2 Enterprise Ed. DBCA side by side with stand ed
I currently have an installation of Oracle11gR2 standard edition on linux red hat. I needed to have a side-by-side oracle 11gR2 install with enterprise edition on the same server. I installed the database components successfully. I tried running DBCA but it created the new database as standard edition even though the database was created in the new 11gR2 enterpsie edtion directory. I'm a newbie at this, but I'm assuming this is because the DBCA is the standard edition DBCA. So, my questions are: do I need to install the client components for 11gR2 enterprise edition? Will the DBCA created override the standard edition version even if I put it in the new 11gR2 enterprise edition home? Thanks in advance.
I currently have an installation of Oracle11gR2 standard edition on linux red hat. I needed to have a side-by-side oracle 11gR2 install with enterprise edition on the same serverSteps:
Copy the installer files at /tmp/database/ directory.
Note: You already have installed SE, let say the home is /u01/app/product/11.2.0/db_home1
Now create a new oracle home, let say /u01/app/product/11.2.0/db_home_ee
Now $cd /tmp/database
$./runInstaller ORACLE_HOME_NAME="Ora11gR2_EE"
It starts the installer, pass through all the checks and Select Database Edition, EE.
How after the database binaries are installed correctly;
Run
$export ORACLE_SID=<NEW SID>
$export ORACLE_HOME=/u01/app/product/11.2.0/db_home_ee
$export PATH=$ORACLE_HOME/bin:$PATH
$dbca
HTH -
Missing packages while installing 11gr2 on oracle linux 6 os
hi,
i am installing Oracle 11gR2 on oracle Linux 6 OS via a vmware.
i bum into this problem of not able to install the required packages:
glibc-2.3.4-2.41
compat-libstdc++-33-3.2.3 (64bit)
elfutils-libelf-devel-0.97
libaio-devel-0.3.105
libgcc-3.4.6
libstdc++-3.4.6
unixODBC-2.2.11 (64bit)
unixODBC-deve-2.2.11
pdksh-5.2.14
i try to rpm -qa | grep <packges name>
[root@rcat lib64]# rpm -qa | grep glibc
glibc-devel-2.12-1.132.el6.x86_64
glibc-common-2.12-1.132.el6.x86_64
glibc-2.12-1.132.el6.x86_64
glibc-headers-2.12-1.132.el6.x86_64
[root@rcat lib64]# rpm -qa | grep libaio
libaio-0.3.107-10.el6.x86_64
libaio-devel-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6.x86_64
[root@rcat lib64]# rpm -qa | grep compat-libstdc++
[root@rcat lib64]# rpm -qa | grep elfutils
elfutils-libs-0.152-1.el6.x86_64
elfutils-0.152-1.el6.x86_64
elfutils-libelf-0.152-1.el6.x86_64
[root@rcat lib64]# rpm -qa | grep libaio-devel
libaio-devel-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6.x86_64
[root@rcat lib64]# rpm -qa | grep libgcc
libgcc-4.4.7-4.el6.x86_64
[root@rcat lib64]# rpm -qa | grep libstdc
libstdc++-4.4.7-4.el6.x86_64
libstdc++-devel-4.4.7-4.el6.x86_64
[root@rcat lib64]# rpm -qa | grep unixODBC
[root@rcat lib64]# rpm -qa | grep pdksh
it seem like the packages i have on my oracle linux 6 os is of higher version compared to what oracle 11gR2 database installer is asking for which is of lower version.
i can't seem to find/download those packages individually from any website.
I am trying to download the oracle linux 5 os iso with the hope i can find the lower version packages from the iso disc.
Appreciate if there is any help here. pointing to any website i can quickly download the packages cos trying to download the iso takes me more then 13 hour!.>>it seem like the packages i have on my oracle linux 6 os is of higher version compared to what oracle 11gR2 database installer is asking for which is of lower version.
i can't seem to find/download those packages individually from any website.
I am trying to download the oracle linux 5 os iso with the hope i can find the lower version packages from the iso disc.
You should find all rpms and their right version (as required by installer) onto linux 6 iso.
For some rpms the installer can like higher versions but not for all. For some rpms installer requires the exact version.
HTH
Pradeep -
Starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact
Hi Guys!
Thanks for your advises. I still working toward a resolution.
But I encountered another issue from Enterp Manager :
ERROR : Please correct the following error: Connection string must be specified.
My connection has this format:
//using connection string attributes to connect to Oracle Database
con.ConnectionString = "User Id=scott;Password=tiger;Data Source=oracle";
con.Open();
Console.WriteLine("Connected to Oracle" + con.ServerVersion);
Please tell me what is wrong here. Thanks. Dan.
Hi all !
I need help please for resolving the following :
Problem:
Im having frequent disconnection after abnormal shutdown due to power failure.
starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact
Im on Laptop running Linux Centos 6.3 Host.
and Im running Oracle 11gr2 on Oracle Enterprise Linux in VMware (Guest).
When attempting login from the Oracle Enterprise Manager Database Control
I got Error: "Your username and/or password are invalid."
The alert.log is at the bottom
[test@localhost ~]$ xhost +
access control disabled, clients can connect from any host
[test@localhost ~]$
[test@localhost ~]$ su - root
Password:
[root@localhost ~]#
[root@localhost ~]# su - oracle
[oracle@localhost ~]$
[oracle@localhost ~]$ export ORACLE_SID=db11gr2
[oracle@localhost ~]$
[oracle@localhost ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/db_1
[oracle@localhost ~]$
[oracle@localhost ~]$ echo $ORACLE_BASE
/u01/app/oracle
[oracle@localhost ~]$
[oracle@localhost ~]$ echo $ORACLE_SID
db11gr2
[oracle@localhost ~]$
[oracle@localhost ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 04-DEC-2013 12:23:07
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 04-DEC-2013 12:23:08
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Services Summary...
Service "db11gr2" has 1 instance(s).
Instance "db11gr2", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@localhost ~]$
[oracle@localhost ~]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://localhost.localdomain:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ............... started.
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_db11gr2/sysman/log
[oracle@localhost ~]$
[oracle@localhost ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:26:38 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> shutdown abort;
ORACLE instance shut down.
SQL>
SQL> startup;
ORACLE instance started.
Total System Global Area 799313920 bytes
Fixed Size 1339484 bytes
Variable Size 318771108 bytes
Database Buffers 473956352 bytes
Redo Buffers 5246976 bytes
Database mounted.
ORA-00600: internal error code, arguments: [4194], [: no
SQL> startup;
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SQL>
SQL>
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost ~]$
[oracle@localhost ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:59:23 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 799313920 bytes
Fixed Size 1339484 bytes
Variable Size 318771108 bytes
Database Buffers 473956352 bytes
Redo Buffers 5246976 bytes
Database mounted.
Database opened.
SQL>
SQL>
ERROR at line 1:
ORA-03135: connection lost contact
Process ID: 8973
Session ID: 1 Serial number: 5
SQL> startup;
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SQL>
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost ~]$
[oracle@localhost ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:12:03 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 799313920 bytes
Fixed Size 1339484 bytes
Variable Size 318771108 bytes
Database Buffers 473956352 bytes
Redo Buffers 5246976 bytes
Database mounted.
Database opened.
SQL>
SQL> select STATUS, DATABASE_STATUS from v$instance;
STATUS DATABASE_STATUS
OPEN ACTIVE
SQL>
SQL> SELECT * FROM v$instance;
ERROR:
ORA-03114: not connected to ORACLE
[oracle@localhost ~]$
[oracle@localhost ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:17:37 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 799313920 bytes
Fixed Size 1339484 bytes
Variable Size 318771108 bytes
Database Buffers 473956352 bytes
Redo Buffers 5246976 bytes
Database mounted.
Database opened.
SQL>
SQL> SELECT * FROM v$instance;
INSTANCE_NUMBER INSTANCE_NAME
HOST_NAME
VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE LOG_SWITCH_WAIT
LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO
1 db11gr2
localhost.localdomain
11.2.0.1.0 04-DEC-13 OPEN NO 1 STOPPED
ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
SQL>
alert log file
[oracle@localhost ~]$
[oracle@localhost ~]$ adrci
ADRCI: Release 11.2.0.1.0 - Production on Wed Dec 4 17:09:47 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
ADR base = "/u01/app/oracle"
adrci> set editor emacs
adrci> show alert
Choose the alert log from the following homes to view:
1: diag/rdbms/unknown/DB11G
2: diag/rdbms/db11gr2/db11gr2
3: diag/tnslsnr/localhost/listener
Q: to quit
Please select option: 2
*** glibc detected *** adrci: malloc(): memory corruption: 0x09de7160 ***
======= Backtrace: =========
/lib/libc.so.6[0x1d42dd]
/lib/libc.so.6(__libc_malloc+0x67)[0x1d5e97]
/lib/ld-linux.so.2[0x331f8a]
/lib/ld-linux.so.2[0x33215a]
/lib/ld-linux.so.2[0x32e3ce]
/lib/libc.so.6[0x272550]
/lib/libc.so.6(_dl_sym+0x1a)[0x2728fa]
/lib/libdl.so.2[0x110e08]
/lib/ld-linux.so.2[0x331e66]
/lib/libdl.so.2[0x1112cc]
/lib/libdl.so.2(dlsym+0x63)[0x110d93]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(sskgds_save_text_start_end+0x47)[0xa0fb37]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(skgdsinit+0xb7)[0xa0a909]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x15edea8]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(kgdsdsts+0x26)[0x15ef8c2]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStackWFlag+0x102)[0x198961a]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStack+0x2d)[0x198950d]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1989250]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdFillIncCtx+0x72)[0x1989088]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexPopulateIncCtx+0x67)[0x1994d25]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexProcessError+0x75)[0x1996437]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x19601c5]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgePostErrorDirect+0x650)[0x1960b3c]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c58fb6]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x183c44e]
[0x3bb440]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1cf7966]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrlrReadAlertMsg+0x562)[0x1cf7126]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrxae_alert_ext+0x2d4)[0xbbcf44]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb9f25c]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch_real+0x23f)[0xb9bc1f]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch+0xee)[0xb9b520]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb53c3e]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrip_relation_iterator+0x16c)[0xb531bc]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripricm_rltniter_wcbf_mt+0x1f7)[0xb52709]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripritc_rltniter_wcbf+0xe6)[0xb585f2]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query+0x3f2)[0x1abe62c]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query_wcmd+0x36f)[0x1abf053]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3e116]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3f5b7]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c4e2ae]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvciec_exec_cmd+0x4a2)[0x1c4d640]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvci_main_int+0x43b)[0x1c59e61]
adrci[0x8048c5b]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmcall+0x363)[0x1496ec3]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmpmai+0x15c)[0x1497904]
adrci[0x8048aa5]
/lib/libc.so.6(__libc_start_main+0xdc)[0x17fe9c]
adrci[0x8048811]
======= Memory map: ========
00110000-00112000 r-xp 00000000 08:03 5925240 /lib/libdl-2.5.so
00112000-00113000 r-xp 00001000 08:03 5925240 /lib/libdl-2.5.so
00113000-00114000 rwxp 00002000 08:03 5925240 /lib/libdl-2.5.so
00114000-00139000 r-xp 00000000 08:03 5925284 /lib/libm-2.5.so
00139000-0013a000 r-xp 00024000 08:03 5925284 /lib/libm-2.5.so
0013a000-0013b000 rwxp 00025000 08:03 5925284 /lib/libm-2.5.so
0013b000-0014f000 r-xp 00000000 08:03 5925246 /lib/libpthread-2.5.so
0014f000-00150000 r-xp 00013000 08:03 5925246 /lib/libpthread-2.5.so
00150000-00151000 rwxp 00014000 08:03 5925246 /lib/libpthread-2.5.so
00151000-00153000 rwxp 00151000 00:00 0
00153000-00166000 r-xp 00000000 08:03 5925301 /lib/libnsl-2.5.so
00166000-00167000 r-xp 00012000 08:03 5925301 /lib/libnsl-2.5.so
00167000-00168000 rwxp 00013000 08:03 5925301 /lib/libnsl-2.5.so
00168000-0016a000 rwxp 00168000 00:00 0
0016a000-002a9000 r-xp 00000000 08:03 5925233 /lib/libc-2.5.so
002a9000-002aa000 --xp 0013f000 08:03 5925233 /lib/libc-2.5.so
002aa000-002ac000 r-xp 0013f000 08:03 5925233 /lib/libc-2.5.so
002ac000-002ad000 rwxp 00141000 08:03 5925233 /lib/libc-2.5.so
002ad000-002b0000 rwxp 002ad000 00:00 0
002b0000-002b1000 r-xp 00000000 08:03 3905250 /usr/lib/libaio.so.1.0.1
002b1000-002b2000 rwxp 00000000 08:03 3905250 /usr/lib/libaio.so.1.0.1
002b2000-002bb000 r-xp 00000000 08:03 5925256 /lib/libnss_files-2.5.so
002bb000-002bc000 r-xp 00008000 08:03 5925256 /lib/libnss_files-2.5.so
002bc000-002bd000 rwxp 00009000 08:03 5925256 /lib/libnss_files-2.5.so
002bd000-002c8000 r-xp 00000000 08:03 5925425 /lib/libgcc_s-4.1.2-20080825.so.1
002c8000-002c9000 rwxp 0000a000 08:03 5925425 /lib/libgcc_s-4.1.2-20080825.so.1
00324000-0033e000 r-xp 00000000 08:03 5925219 /lib/ld-2.5.so
0033e000-0033f000 r-xp 00019000 08:03 5925219 /lib/ld-2.5.so
0033f000-00340000 rwxp 0001a000 08:03 5925219 /lib/ld-2.5.so
003bb000-003bc000 r-xp 003bb000 00:00 0 [vdso]
003bc000-01fc3000 r-xp 00000000 08:03 4984633 /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
01fc3000-020a7000 rwxp 01c07000 08:03 4984633 /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
020a7000-020c1000 rwxp 020a7000 00:00 0
025b1000-027ce000 r-xp 00000000 08:03 5006042 /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
027ce000-027fc000 rwxp 0021d000 08:03 5006042 /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
027fc000-027fe000 rwxp 027fc000 00:00 0
08048000-08049000 r-xp 00000000 08:03 1407670 /u01/app/oracle/product/11.2.0/db_1/bin/adrci
08049000-0804a000 rw-p 00000000 08:03 1407670 /u01/app/oracle/product/11.2.0/db_1/bin/adrci
09d62000-09e0d000 rw-p 09d62000 00:00 0 [heap]
b7e00000-b7e21000 rw-p b7e00000 00:00 0
b7e21000-b7f00000 ---p b7e21000 00:00 0
b7f68000-b7f90000 rw-p b7f68000 00:00 0
bfc54000-bfc6d000 rwxp bffe5000 00:00 0 [stack]
bfc6d000-bfc6e000 rw-p bfffe000 00:00 0
starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact
Im on Laptop running Linux Centos 6.3 Host.
and Im running Oracle 11gr2 on Oracle Enterprise Linux in VMware (Guest).
Im having frequent disconnection after abnormal shutdown due to power failure.
When attempting login from the Oracle Enterprise Manager Database Control
I got Error: "Your username and/or password are invalid."
[test@localhost ~]$ xhost +
access control disabled, clients can connect from any host
[test@localhost ~]$
[test@localhost ~]$ su - root
Password:
[root@localhost ~]#
[root@localhost ~]# su - oracle
[oracle@localhost ~]$
[oracle@localhost ~]$ export ORACLE_SID=db11gr2
[oracle@localhost ~]$
[oracle@localhost ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/db_1
[oracle@localhost ~]$
[oracle@localhost ~]$ echo $ORACLE_BASE
/u01/app/oracle
[oracle@localhost ~]$
[oracle@localhost ~]$ echo $ORACLE_SID
db11gr2
[oracle@localhost ~]$
[oracle@localhost ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 04-DEC-2013 12:23:07
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 04-DEC-2013 12:23:08
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Services Summary...
Service "db11gr2" has 1 instance(s).
Instance "db11gr2", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@localhost ~]$
[oracle@localhost ~]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://localhost.localdomain:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ............... started.
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_db11gr2/sysman/log
[oracle@localhost ~]$
[oracle@localhost ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:26:38 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> shutdown abort;
ORACLE instance shut down.
SQL>
SQL> startup;
ORACLE instance started.
Total System Global Area 799313920 bytes
Fixed Size 1339484 bytes
Variable Size 318771108 bytes
Database Buffers 473956352 bytes
Redo Buffers 5246976 bytes
Database mounted.
ORA-00600: internal error code, arguments: [4194], [: no
SQL> startup;
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SQL>
SQL>
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost ~]$
[oracle@localhost ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:59:23 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 799313920 bytes
Fixed Size 1339484 bytes
Variable Size 318771108 bytes
Database Buffers 473956352 bytes
Redo Buffers 5246976 bytes
Database mounted.
Database opened.
SQL>
SQL>
ERROR at line 1:
ORA-03135: connection lost contact
Process ID: 8973
Session ID: 1 Serial number: 5
SQL> startup;
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SQL>
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost ~]$
[oracle@localhost ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:12:03 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 799313920 bytes
Fixed Size 1339484 bytes
Variable Size 318771108 bytes
Database Buffers 473956352 bytes
Redo Buffers 5246976 bytes
Database mounted.
Database opened.
SQL>
SQL> select STATUS, DATABASE_STATUS from v$instance;
STATUS DATABASE_STATUS
OPEN ACTIVE
SQL>
SQL> SELECT * FROM v$instance;
ERROR:
ORA-03114: not connected to ORACLE
[oracle@localhost ~]$
[oracle@localhost ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:17:37 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 799313920 bytes
Fixed Size 1339484 bytes
Variable Size 318771108 bytes
Database Buffers 473956352 bytes
Redo Buffers 5246976 bytes
Database mounted.
Database opened.
SQL>
SQL> SELECT * FROM v$instance;
INSTANCE_NUMBER INSTANCE_NAME
HOST_NAME
VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE LOG_SWITCH_WAIT
LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO
1 db11gr2
localhost.localdomain
11.2.0.1.0 04-DEC-13 OPEN NO 1 STOPPED
ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
SQL>
alert log file
[oracle@localhost ~]$
[oracle@localhost ~]$ adrci
ADRCI: Release 11.2.0.1.0 - Production on Wed Dec 4 17:09:47 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
ADR base = "/u01/app/oracle"
adrci> set editor emacs
adrci> show alert
Choose the alert log from the following homes to view:
1: diag/rdbms/unknown/DB11G
2: diag/rdbms/db11gr2/db11gr2
3: diag/tnslsnr/localhost/listener
Q: to quit
Please select option: 2
*** glibc detected *** adrci: malloc(): memory corruption: 0x09de7160 ***
======= Backtrace: =========
/lib/libc.so.6[0x1d42dd]
/lib/libc.so.6(__libc_malloc+0x67)[0x1d5e97]
/lib/ld-linux.so.2[0x331f8a]
/lib/ld-linux.so.2[0x33215a]
/lib/ld-linux.so.2[0x32e3ce]
/lib/libc.so.6[0x272550]
/lib/libc.so.6(_dl_sym+0x1a)[0x2728fa]
/lib/libdl.so.2[0x110e08]
/lib/ld-linux.so.2[0x331e66]
/lib/libdl.so.2[0x1112cc]
/lib/libdl.so.2(dlsym+0x63)[0x110d93]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(sskgds_save_text_start_end+0x47)[0xa0fb37]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(skgdsinit+0xb7)[0xa0a909]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x15edea8]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(kgdsdsts+0x26)[0x15ef8c2]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStackWFlag+0x102)[0x198961a]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStack+0x2d)[0x198950d]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1989250]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdFillIncCtx+0x72)[0x1989088]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexPopulateIncCtx+0x67)[0x1994d25]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexProcessError+0x75)[0x1996437]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x19601c5]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgePostErrorDirect+0x650)[0x1960b3c]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c58fb6]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x183c44e]
[0x3bb440]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1cf7966]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrlrReadAlertMsg+0x562)[0x1cf7126]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrxae_alert_ext+0x2d4)[0xbbcf44]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb9f25c]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch_real+0x23f)[0xb9bc1f]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch+0xee)[0xb9b520]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb53c3e]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrip_relation_iterator+0x16c)[0xb531bc]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripricm_rltniter_wcbf_mt+0x1f7)[0xb52709]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripritc_rltniter_wcbf+0xe6)[0xb585f2]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query+0x3f2)[0x1abe62c]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query_wcmd+0x36f)[0x1abf053]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3e116]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3f5b7]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c4e2ae]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvciec_exec_cmd+0x4a2)[0x1c4d640]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvci_main_int+0x43b)[0x1c59e61]
adrci[0x8048c5b]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmcall+0x363)[0x1496ec3]
/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmpmai+0x15c)[0x1497904]
adrci[0x8048aa5]
/lib/libc.so.6(__libc_start_main+0xdc)[0x17fe9c]
adrci[0x8048811]
======= Memory map: ========
00110000-00112000 r-xp 00000000 08:03 5925240 /lib/libdl-2.5.so
00112000-00113000 r-xp 00001000 08:03 5925240 /lib/libdl-2.5.so
00113000-00114000 rwxp 00002000 08:03 5925240 /lib/libdl-2.5.so
00114000-00139000 r-xp 00000000 08:03 5925284 /lib/libm-2.5.so
00139000-0013a000 r-xp 00024000 08:03 5925284 /lib/libm-2.5.so
0013a000-0013b000 rwxp 00025000 08:03 5925284 /lib/libm-2.5.so
0013b000-0014f000 r-xp 00000000 08:03 5925246 /lib/libpthread-2.5.so
0014f000-00150000 r-xp 00013000 08:03 5925246 /lib/libpthread-2.5.so
00150000-00151000 rwxp 00014000 08:03 5925246 /lib/libpthread-2.5.so
00151000-00153000 rwxp 00151000 00:00 0
00153000-00166000 r-xp 00000000 08:03 5925301 /lib/libnsl-2.5.so
00166000-00167000 r-xp 00012000 08:03 5925301 /lib/libnsl-2.5.so
00167000-00168000 rwxp 00013000 08:03 5925301 /lib/libnsl-2.5.so
00168000-0016a000 rwxp 00168000 00:00 0
0016a000-002a9000 r-xp 00000000 08:03 5925233 /lib/libc-2.5.so
002a9000-002aa000 --xp 0013f000 08:03 5925233 /lib/libc-2.5.so
002aa000-002ac000 r-xp 0013f000 08:03 5925233 /lib/libc-2.5.so
002ac000-002ad000 rwxp 00141000 08:03 5925233 /lib/libc-2.5.so
002ad000-002b0000 rwxp 002ad000 00:00 0
002b0000-002b1000 r-xp 00000000 08:03 3905250 /usr/lib/libaio.so.1.0.1
002b1000-002b2000 rwxp 00000000 08:03 3905250 /usr/lib/libaio.so.1.0.1
002b2000-002bb000 r-xp 00000000 08:03 5925256 /lib/libnss_files-2.5.so
002bb000-002bc000 r-xp 00008000 08:03 5925256 /lib/libnss_files-2.5.so
002bc000-002bd000 rwxp 00009000 08:03 5925256 /lib/libnss_files-2.5.so
002bd000-002c8000 r-xp 00000000 08:03 5925425 /lib/libgcc_s-4.1.2-20080825.so.1
002c8000-002c9000 rwxp 0000a000 08:03 5925425 /lib/libgcc_s-4.1.2-20080825.so.1
00324000-0033e000 r-xp 00000000 08:03 5925219 /lib/ld-2.5.so
0033e000-0033f000 r-xp 00019000 08:03 5925219 /lib/ld-2.5.so
0033f000-00340000 rwxp 0001a000 08:03 5925219 /lib/ld-2.5.so
003bb000-003bc000 r-xp 003bb000 00:00 0 [vdso]
003bc000-01fc3000 r-xp 00000000 08:03 4984633 /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
01fc3000-020a7000 rwxp 01c07000 08:03 4984633 /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
020a7000-020c1000 rwxp 020a7000 00:00 0
025b1000-027ce000 r-xp 00000000 08:03 5006042 /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
027ce000-027fc000 rwxp 0021d000 08:03 5006042 /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
027fc000-027fe000 rwxp 027fc000 00:00 0
08048000-08049000 r-xp 00000000 08:03 1407670 /u01/app/oracle/product/11.2.0/db_1/bin/adrci
08049000-0804a000 rw-p 00000000 08:03 1407670 /u01/app/oracle/product/11.2.0/db_1/bin/adrci
09d62000-09e0d000 rw-p 09d62000 00:00 0 [heap]
b7e00000-b7e21000 rw-p b7e00000 00:00 0
b7e21000-b7f00000 ---p b7e21000 00:00 0
b7f68000-b7f90000 rw-p b7f68000 00:00 0
bfc54000-bfc6d000 rwxp bffe5000 00:00 0 [stack]
bfc6d000-bfc6e000 rw-p bfffe000 00:00 0Hi,
Please check Oracle support id : Troubleshooting ORA-3135 Connection Lost Contact (Doc ID 787354.1) -
Guide to installing XE and Apex on Oracle Enterprise Linux 5.3 (64 bit)
I have just been through a time consuming and frustrating process of installing Oracle XE 10gR2 on Oracle Enterprise Linux 5.3 x86-64 and I want to share my experience so that others can benefit from it and overcome the same problems more quickly.
Prior to starting I had installed OEL 5.3 and been using it for a few days. The system I am using is a home built box with an AMD Phenom X4 955 Black Edition, 8 Gb RAM, Highpoint RR2680 RAID controller with 4 1TB disks in a RAID5 array and an additional 320Gb HDD storing the OS. I am using KDE3.5 on the desktop.
The main problem I encountered was with SELinux. As I eventually intend to have this system exposed on the Internet I was reluctant to switch it off despite having read extensively about the issues surrounding it and Oracle. I had several failed attempts at the installation process before succumbing to the reality that SELinux and Oracle are not happy bedfellows. I decided to switch SELinux to permissive mode having followed the advice here.
I found a very helpful guide to installing XE on Linux here as part of the installation of an application called Spacewalk. Note that you do not need to complete the whole Spacewalk installation, but just follow the instructions in the linked page.
Before you start you need to ensure that the UID of your oracle user is less than 500. Mine was 500, so I used the following commands to fix this:
usermod -u 250 oracle
find / -uid 500 -exec chown oracle {} \;
These change the oracle UID to 250 (but check that isn't already used first!) and the find command searches for all files that were owned by oracle (but weren't after the usermod cmd) and changes them back to oracle's ownership.
Now follow the Spacewalk instructions until you reach the Server Setup section. Before you do this you need to make a couple of changes to the script /etc/init.d/oracle-xe. I found these changes in various places, such as [link(1)|http://forums.oracle.com/forums/thread.jspa?messageID=1345771�] and [link(2)|http://dbataj.blogspot.com/2008/08/lblibrarypath-is-not-set-on-startup.html].
Note that in link(1) the oracle-xe-selinux packages installed have the same effect as the chcon command on the shared libraries so it isn't necessary to perform this step.
Open /etc/init.d/oracle-xe in vi (or your favourite editor) and do the following:
line 49: change /bin/su to /sbin/runuser
after line 52 (export PATH...) add the following lines:
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
There are further changes recommended to /etc/init.d/oracle-xe in [this post|http://forums.oracle.com/forums/thread.jspa?messageID=3201491�] but I haven't done them yet.
Having done the above changes you can now configure Oracle XE by running /etc/init.d/oracle-xe configure (as root!). As I have Apache Tomcat running on port 8080 I changed the default HTTP port to 8500 but kept the listener on its default port of 1521. Once the confuration script is done you will need to change the ports SELinux uses for Oracle as follows:
semanage port -d -t oracle_port_t -p tcp 9000 - deletes port 9000, which is the SELinux default port for Apex
semanage port -a -t oracle_port_t -p tcp 1521 - ensure that listener port is OK (assuming you used default of 1521, change accordingly if you didn't)
semanage port -a -t oracle_port_t -p tcp 8500 - add the new Apex HTTP port to SELinux
After all this running:
semanage port -l | grep oracle
should show you:
oracle_port_t tcp 1521, 8500
I ignored the TNSNAMES.ORA part of the Spacewalk instructions and proceeded with the 'Client setup on 64bit platform' and 'Configuring sqlplus' sections.
For the latter I created a bash script which I have made available in the oracle user and my own user's home directories:
cat > configure_oracle_10g_xe.sh
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
PATH=$PATH:$ORACLE_HOME/bin
ORACLE_SID=XE
export ORACLE_HOME ORACLE_SID PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
I did this as I intend to install other Oracle databases, e.g. 11gR2, on this box later so I didn't want to put the above in .bashrc.
Having done the above you should be able to log into the database using sqlplus and the XE setup is complete.
The upgrade of Apex 2.2 to Apex 3.2.1 was fairly painless so I won't go into much detail about it - just follow the instructions provided by Oracle.
The only issue I had was right at the end of the process and is documented and answered in [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=958611&tstart=0].
That's it - I hope somebody will find this useful.On Oracle Metalink site, there are many documents which says that Oracle 32 bit software works on 32 bits OS and 64 bits software works on 64 bits OS. Official support is only in those combination....
So there is no good way to help you in your case-XE is 32 bit application with hard codded compiled libraries which most of them would not work on 64 bit OS.
Sorry
8(
Hope this helps -
Installing Oracle 11g R 2 on Oracle Enterprise Linux 5.0 32 bit
Hello All,
I am installing the oracle 11g on Oracle Enterprise Linux 5.0 32 bit, when i modified the bash_profile. i am facing the below error:
Please can you help to solve the issue
the error i am facing while trying to switch to oracle user (su - oracle) is
-bash: ulimit: open files: cannot modify limit: Operation not permitted
new bash_profile:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
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
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
# Oracle Settings
#TMP=/tmp; export TMP
#TMPDIR=$TMP; export TMPDIR
#ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
#ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
#ORACLE_SID=TSH1; export ORACLE_SID
#ORACLE_TERM=xterm; export ORACLE_TERM
#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/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
export PATHHi;
Please check below link, and compare your steps wiht it
http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnEnterpriseLinux5.php
By the way did you try to put only this to your .bash_profile
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=oel5-11gr2.localdomain; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
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
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
Regard
Helios -
Install Oracle 11gR2 Express Edition on Ubuntu Linux 11.04 (64-bit) Howto
h2. Install Oracle 11gR2 Express Edition on Ubuntu Linux 11.04 (64-bit) Howto
Version: B
Author: Dude, 24. May 2011
The following are step by step instructions how to install Oracle 11gR2 Express Edition (Beta) under Linux Ubuntu 11.04, 64-bit.
Access to the Internet is required.
The instructions cover the following additional topics:
- Converting Red Hat based Oracle XE installer to Ubuntu.
- Work-around for missing /sbin/chkconfig tool.
- Install Oracle XE into a different directory or disk volume.
- Relocate and configure the Oracle user and default login directory.
- Uninstall, reconfigure and perform first database backup.
- Notes and web links.
- Troubleshooting
h3. A) System Setup and Prerequisites
h4. A.1. System Access
You will need terminal command line, root and system console access to perform the setup tasks.
To open a Terminal at the system console:
Menu Applications > Accessories > TerminalThe following commands will enable remote ssh login with root access:
sudo apt-get install openssh-server
sudo passwd root
Verify:
ssh root@xe_server_host_nameh4. A.2. Software Prerequisites
The following is required in order to install Oracle 11gR2 XE:
sudo apt-get install alien libaio1 unixodbcThe following is not required, but it will fix backspace and arrow keys in case you prefer using the vi-editor:
sudo apt-get install vimh4. A.3. System Swap space
Minimum swap space required is 2 GB. You can increase swap space if necessary using a swap file:
To analyze current swap space and memory configuration:
sudo cat /proc/meminfo
To install a 1 GB swapfile named swapfile in /, for example:
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
(this may take a while)
sudo mkswap /swapfile
sudo swapon /swapfile
sudo cp /etc/fstab /etc/fstab.orig
sudo echo '/swapfile swap swap defaults 0 0' >> /etc/fstab
Verify:
sudo swapon -a
sudo swapon -sh4. A.4. Kernel Parameters
Oracle 11g XE requires the following additional kernel parameters:
sudo nano /etc/sysctl.d/60-oracle.conf
(Enter the following)
# Oracle 11g XE kernel parameters
fs.file-max=6815744
net.ipv4.ip_local_port_range=9000 65000
kernel.sem=250 32000 100 128
kernel.shmmax=536870912
(Save the file)
Note: kernel.shmmax = max possible value, e.g. size of physical RAM.
Verify: sudo cat /etc/sysctl.d/60-oracle.conf
Load new kernel parameters:
sudo service procps start
Verify:
sudo sysctl -q fs.file-max
-> fs.file-max = 6815744h4. A.5. Oracle Installation Directory
The current Oracle Installation Guide uses the same directory like in previous versions: /usr/lib/oracle/xe/app/oracle/product/11.2.0/server. However, the current Beta installation uses Oracle Flexible Architecture (OFA) and installs into /u01/app/oracle/product/11.2.0/xe. Due to size limitations of Oracle XE it may not be necessary to store the installation to a specific directory or separate volume, but it is possible:
Install Oracle XE to separate disk volume:
From the system console menu: System > Administration > Disk Utility
Select "ext3" filesystem for Oracle compatibility and specify a Volume label, e.g. Oracle.
Notice the device name e.g. /dev/sdb
Get the drive UUID:
sudo blkid
e.g. /dev/sdb: UUID="d19a2d8f-da43-4802-8bdb-0703c855e23a"
Modify /etc/fstab to automatically mount the volume at system startup:
sudo cp /etc/fstab /etc/fstab.original
sudo nano /etc/fstab
(Add the following, using determined UUID, for exmple)
UUID=d19a2d8f-da43-4802-8bdb-0703c855e23a /u01 ext3 defaults,errors=remount-ro 0 1
(Save the file)
Create the mount-point, mount the new volume and set ownership and privileges:
sudo mkdir /u01
sudo mount -a
sudo chown root:root /u01
sudo chmod 755 /u01
Verify:
df -h
or restart the systemYou can also install Oracle XE into a specific directory:
Create a symbolic link to store the installation into an existing directory, for instance:
sudo mkdir /home/oracle-xe
sudo ln -s /home/oracle-xe /u01h3. C) Oracle 11g XE Download and Installation
h4. C.1. Download and convert the Installer from Red Hat to Ubuntu
Please see section E.3. to download the Oracle 11gR2 XE installer.
Select the version listed for Linux x64.
sudo unzip linux.x64_11gR2_OracleXE.zip
sudo alien --to-deb --scripts oracle-xe-11.2.0-0.5.x86_64.rpm
(This may take a while)h4. C.2. Create a special chkconfig script
The Red Hat based installer of Oracle XE 11gR2 beta relies on +/sbin/chkconfig+, which is not used in Ubuntu. The chkconfig package available for the current version of Ubuntu produces errors and my not be safe to use. Below is a simple trick to get around the problem and install Oracle XE successfully:
Create /sbin/chconfig:
sudo nano /sbin/chkconfig
(Cut and paste the following)
#!/bin/bash
# Oracle 11gR2 XE installer chkconfig hack for Debian by Dude
file=/etc/init.d/oracle-xe
if [[ ! `tail -n1 $file | grep INIT` ]]; then
echo >> $file
echo '### BEGIN INIT INFO' >> $file
echo '# Provides: OracleXE' >> $file
echo '# Required-Start: $remote_fs $syslog' >> $file
echo '# Required-Stop: $remote_fs $syslog' >> $file
echo '# Default-Start: 2 3 4 5' >> $file
echo '# Default-Stop: 0 1 6' >> $file
echo '# Short-Description: Oracle 11g Express Edition' >> $file
echo '### END INIT INFO' >> $file
fi
update-rc.d oracle-xe defaults 80 01
(Save the file)
Set appropriate execute privileges:
chmod 755 /sbin/chkconfig
Note: You should remove the /sbin/chkconfig file after successful installation of Oracle XE.
h4. C.3. Install and configure Oracle XE
sudo dpkg --install ./oracle-xe_11.2.0-1.5_amd64.deb
/etc/init.d/oracle-xe configure
(This will take a while)
Remove the /sbin/chkconfig script, which is no longer needed.
sudo rm /sbin/chkconfigh4. C.4. Relocate and Configure the Oracle user login
The Oracle XE installer specifies /u01/app/oracle as the login directory for the Oracle user. Although not really necessary, the following will relocate the Oracle user $HOME to a standard location and create standard /etc/skel login files:
Exit all Oracle user sessions:
sudo /etc/init.d/oracle-xe stop
sudo kill -9 `ps -ef | grep oracle | grep -v grep | awk '{print $2}'`
sudo userdel oracle
sudo useradd -s /bin/bash -G dba -g dba -m oracle
sudo passwd oracle
Verify:
sudo id oracle
-> uid=1001(oracle) gid=1001(dba) groups=1001(dba)h4. C.5. Setup Oracle environment variables
In order to use sqlplus and other tools, the Oracle account requires certain environment variables. The following will set these variables automatically at every interactive Oracle login:
sudo echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >> /home/oracle/.bashrch4. C.6. Oracle sudo root access
It is not essential to allow the Oracle user to use sudo, but it is convenient:
usermod -G admin oracle
Verify:
id oracle
-> uid=1001(oracle) gid=1001(dba) groups=1001(dba),120(admin)
sudo su -
-> Enter Oracle account passwordh4. C.7. Oracle 11g XE Post-installation
After you install Oracle Database XE, its graphical user interface is only available from the local server, but not remotely.
The following will correct the problem if necessary:
Login as user Oracle or use:
su - oracle
sqlplus / as sysdba
At the SQL prompt, enter the following command:
EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
exith3. D) Unintstall, Reconfigure and Troubleshooting
h4. D.1. Uninstall Oracle 11g XE
The following will completely uninstall and remove Oracle 11g XE:
Login as user root:
sudo su -
/etc/init.d/oracle-xe stop
dpkg --purge oracle-xe
rm -r /u01/app
rm /etc/default/oracle-xe
update-rc.d -f oracle-xe removeh4. D.2. Reconfigure Oracle 11g XE
Type the following in a terminal window:
/etc/init.d/oracle-xe stop
sudo rm /etc/default/oracle-xe
/etc/init.d/oracle-xe configureh4. D.3. Enable Archivelog mode and perform a database backup
Login as user Oracle:
su - oracle
sqlplus / as sysdba
At the SQL prompt, enter the following commands:
shutdown immediate
startup mount
alter database archivelog;
alter database open;
exit
Login to system console of the Oracle user account:
Select Applications > Oracle Database 11g Express Edition > Backup Databaseh3. E) Notes
h4. E.1. Oracle 11g XE limitiations overview
- It will consume, at most, processing resources equivalent to one CPU.
- Only one installation of Oracle Database XE can be performed on a single computer.
- The maximum amount of user data in an Oracle Database XE database cannot exceed 11 GB.
- The maximum amount of RAM that Oracle XE uses cannot exceed 1 GB, even if more is available.
- HTTPS is not supported natively with the HTTP listener built into Oracle Database XE.
h4. E.2. Documentation and Links
Official documentation for Oracle 11gR2 XE can be found at:
http://www.oracle.com/pls/xe112/homepage
h4. E.3. Oracle 11g XE downloads
The Installer is available from the Oracle Technology Network at:
http://www.oracle.com/technology/products/database/xe
http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
h4. E.4 APEX links and archives
The APEX archives can be found at:
http://www.oracle.com/technetwork/developer-tools/apex/application-express/all-archives-099381.html
The APEX download site is:
http://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html
h3. F) Troubleshooting
... in progress
Regards and best of luck!
Edited by: Dude on May 25, Version B: various corrections. chkconfig package (A.2.) not required.even though I am admin user.Admin user is a MS Windows term, that does not apply to Linux or Unix in the same fashion.
The configuration script tells you "You must be root user to run the configure script. Login as root user and
then run the configure script."
This is most likely correct because your account is not root and does not have UID 0. What you can do is to login as root e.g. sudo su -, as the message suggest, or use "sudo /etc/init.d/oracle-xe configure", provided your account is defined in the /etc/sudoers file to perform root/admin actions.
Btw, do not modify /etc/passwd and /etc/group to give you admin privileges or try to create a another root account under a different name. That's not the way it works and usually leads to nasty problems. -
Connecting Excel 2010 64 bit on Windows 7 64 bit to Oracle 11gR2 on Linux
Using:
Excel 2010 64 bit
Windows 7 64 bit
Oracle instant client 11.2.0.1 64 bit
connecting to Oracle 11gR2 64 bit on Linux 5.8 64 bit
I have created a User DSN in Windows called "NITRO Oracle 11gR2 DB" using the Oracle 64 bit instant client driver 11.2.0.1. Configured as so
http://i.imgur.com/2a3MZ.png
Connection test is successful.
In Excel 2010, I go to Data ribbon, From Data Connection Wizard
http://i.imgur.com/han3u.png
I then choose Other/Advanced, and then Oracle Provider for OLE DB.
http://i.imgur.com/w3P1c.png
I click next and then put in the data source, user name and password and click test, and it fails with Micosoft Data Link Error. http://i.imgur.com/zuv41.png
Do you know what I'm doing wrong?12154 means the client couldn't resolve what you filled in for Data Source. What did you fill in for Data Source when configuring the OLEDB connection? It looks like "nitro" should be the correct thing to fill in, based on your statement that the ODBC DSN you configured works with it.
Greg
Maybe you are looking for
-
Blue sceen appeared after low disk space warning
Hi Everyone, just seen a message stating a low disk space on my Mac pro bought last November and tried plugging in an external hard drive to remove some pictures to free up some space but it seems that the computer did not have enough space left to s
-
Where can I find the install code from when I purchased Mountain Lion?
Going to get a new hard drive, my local store said if I could provide the install code for Mountain Lion that they would only charge me $20 to install the OS on the HD. How can I find the install code when I purchased it. I bought it Nov. 2012.
-
I just wonder if anybody had a chance to use or evaluate prebuild portlets in the WebLogic Portal 8.1. I would like to buy WebLogic to build our internal portal but I need some functionality to be out-of-the-box like calendar, news, msg board, hopefu
-
i have tiger on my Powerbook g4, just put it on and my capturing will not show signes of capturing footage from my camera.... the sound waves dont even show up on the side. what could be wrong with the final cut after loading Tiger?
-
HT1695 I have no wifi address and wifi button greyed out not functioning
No wifi address and no wifi function button is visible but not responding iPhone 4S have tried network reset but still no change ... Appreciate your help Neeeeeeed wifi