Oracle VM Server 2.2 Linux Guest cannot ntp to server properly
Hi All,
I have installed a VM guest Oracle Linux Enterprise 5U6 in Oracle VM server 2.2. I follow below procedure to config NTP in VM server.
https://blogs.oracle.com/virtualization/entry/configuring_ntp_services_for_oracle
However, when I apply the NTP configuration with VM server itself on the Guest, it detects the NTP server in high jitter value. Even though the stratrum is lower than the local host, It still cannot use that server as NTP source. Here is some information about the NTP debug and IP address.
IP Address:
Oracle VM Server: 172.16.8.100
VM Guest: 172.16.8.102
Debug on VM Guest:
# ntpdate -d 172.16.8.100
26 Mar 13:54:18 ntpdate[697]: ntpdate [email protected] Tue Dec 8 20:30:45 UTC 2009 (1)
Looking for host 172.16.8.100 and service ntp
host found : 172.16.8.100
transmit(172.16.8.100)
receive(172.16.8.100)
transmit(172.16.8.100)
receive(172.16.8.100)
transmit(172.16.8.100)
receive(172.16.8.100)
transmit(172.16.8.100)
receive(172.16.8.100)
transmit(172.16.8.100)
server 172.16.8.100, port 123
stratum 3, precision -20, leap 00, trust 000
refid [172.16.8.100], delay 0.02585, dispersion 0.00037
transmitted 4, in filter 4
reference time: d31a8fd0.c06d7d27 Mon, Mar 26 2012 13:48:48.751
originate timestamp: d31a9168.774cbbe0 Mon, Mar 26 2012 13:55:36.466
transmit timestamp: d31a911b.138bdec5 Mon, Mar 26 2012 13:54:19.076
filter delay: 0.02725 0.02614 0.02585 0.02626
0.00000 0.00000 0.00000 0.00000
filter offset: 77.38879 77.38864 77.38926 77.38931
0.000000 0.000000 0.000000 0.000000
delay 0.02585, dispersion 0.00037
offset 77.389261
26 Mar 13:54:19 ntpdate[697]: step time server 172.16.8.100 offset 77.389261 sec
High jitter to the server but actualyl they are on the single box
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
172.16.8.100 172.16.90.1 3 u 47 64 3 0.265 2704.42 2488.59
LOCAL(0) .LOCL. 10 l 44 64 3 0.000 0.000 0.004
Thanks.
Rgds,
Jacky
Hi Avi,
Thanks for your reply. Due to we do not have Oracle VM Manager, I did configure the VM guest to point the internal NTP server (172.16.90.1) which is mapped by Oracle VM server, but the high jitter is still existed while the guest can ntpq the NTP server. Thanks.
Oracle VM Server
#ntpstat
synchronised to NTP server (172.16.90.1) at stratum 3
time correct to within 56 ms
polling server every 1024 s
#ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*172.16.90.1 10.1.22.230 2 u 551 1024 377 0.355 0.292 0.065
172.16.190.1 .INIT. 16 u - 1024 0 0.000 0.000 0.000
LOCAL(0) .LOCL. 10 l 46 64 377 0.000 0.000 0.001
VM Guest Oracle Linux
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
172.16.90.1 10.1.22.230 2 u 61 64 3 0.432 252.261 3169.53
172.16.190.1 .INIT. 16 u - 64 0 0.000 0.000 0.000
LOCAL(0) .LOCL. 10 l 34 64 7 0.000 0.000 0.008
# ntpstat
synchronised to local net at stratum 11
time correct to within 448 ms
polling server every 64 s
# ntpdate -d 172.16.90.1
26 Mar 15:47:15 ntpdate[27478]: ntpdate [email protected] Tue Dec 8 20:30:45 UTC 2009 (1)
Looking for host 172.16.90.1 and service ntp
host found : 172.16.90.1
transmit(172.16.90.1)
receive(172.16.90.1)
transmit(172.16.90.1)
receive(172.16.90.1)
transmit(172.16.90.1)
receive(172.16.90.1)
transmit(172.16.90.1)
receive(172.16.90.1)
transmit(172.16.90.1)
server 172.16.90.1, port 123
stratum 2, precision -20, leap 00, trust 000
refid [172.16.90.1], delay 0.02594, dispersion 0.00052
transmitted 4, in filter 4
reference time: d31aa515.a637fc1e Mon, Mar 26 2012 15:19:33.649
originate timestamp: d31aabaf.06173915 Mon, Mar 26 2012 15:47:43.023
transmit timestamp: d31aaba2.61117b52 Mon, Mar 26 2012 15:47:30.379
filter delay: 0.02631 0.02605 0.02594 0.02594
0.00000 0.00000 0.00000 0.00000
filter offset: 12.64269 12.64337 12.64397 12.64443
0.000000 0.000000 0.000000 0.000000
delay 0.02594, dispersion 0.00052
offset 12.643971
26 Mar 15:47:30 ntpdate[27478]: step time server 172.16.90.1 offset 12.643971 sec
Rgds,
Jacky
Similar Messages
-
Ever since we migrated to terminal services (remote desktop) this problem has plagued us.
We are a terminal services environment with 25 users.
Our version of Adobe is 11.0.10
I've believe I have traced the issue to temp files in \users\username\appdata\local\temp\XX
There are [email protected] files that the system locks.
Once those files are written out and the server locks them down the user cannot print .pdf files any longer.
ALL OTHER APPLICATIONS WORK PERFECTLY!
The only way to clear the situation is to reboot the server (not optimal).
And even then the problem reappears within a day.
I have read many different versions of this problem and tried many different solutions.
I have tried having the users go the advanced tab when printing and choose "print as image"
FAIL!
I have put a acroct.ini with the following parameters in the windows directory
[WinFntSvr]
TTToSysPrintDisabled=1
T1ToTTDisabled=1
FAIL!
I have tried to remove Microsoft security updates related to this issue and 3rd party fonts.
FAIL!
I've tried the "Disable Protected Mode at Startup"
FAIL!
I have rebuilt our print server with the latest drivers.
FAIL!
Since we deal with thousands of .pdf files on a daily basis this has become CRITICAL!
Please Help!Please see this thread: No Pages Selected RDS Server 2012r2
-
Flash media server Admin Console 3.5 cannot connect to server
Hi to every one
I am new in FMS and installed FMS Development version 3.5
When i put server addess localhost OR 127.0.0.1 and other information username and password
then i press ok button it says worng information to login
Please tell me the correct information about the login server address.
Do any one have an idea what might have went wrong..
Regards
Sheeraz KaleemThe username and password you entered when you installed the server are stored in the {RootInstallation}/conf/fms.ini file.
Let me know if that doesn't solve it.
Jody -
Cannot start weblogic server anymore after conf. jena for oracle database
Hi,
My weblogic server 10.3.4.0 installed in oracle developer days in oralce linux guest was able to start before using the oracle user account. Following the seman. tech. dev. guide, I set up jena adapter for oracle in my guest linux system. Since the oracle user doesn't have permission to copy folders into the autodeploy directory in weblogic server, so I login as root to copy the joseki.war folder into the autodeploy directory. However, after that, I am not able to start the weblogic server console anymore using the oracle user account. Any suggestions will be much appreciated. Thanks a lot in advance.
HongPl do not post duplicates - cannot start weblogic server anymore in oracle user after config. in root
-
Cannot start weblogic server anymore in oracle user after config. in root
Hi all,
My weblogic server 10.3.4.0 installed in oracle developer days in oralce linux guest was able to start before using the oracle user account. However, after I copied a folder into the autodeploy directory in weblogic server under the root account, I am not able to start the weblogic server anymore using the oracle user account. The folder I copied into the autodeploy directory is called Joseki.war which is used to access Sparql service and semantic techonologies in Jena. Can anybody pls give some advice to fix the issue? Thank you very much in advance.Wrong forum - your post has nothing to do with the Oracle database. You wanted a WLS forum.
-
IPP Printing from Linux or Mac to Windows server
I have windows server 2003 R2 ent with ipp printing installed. All windows clients are ale to connect, install and print to a shared printer via ipp. When connecting via a linux or mac machine, I am not able to print. I am asked for the creditionals to print but it does nothing.
The ipp server is set to accept authentication via Intergrated Windows Authentication. I had read this is compatible with firefox and other browsers.
Is there any particular settings I am missing on this one?
The goal is to require only domain users access to the printers.Hi,
Thank you for posting here.
Since we can print from Windows clients properly, it indicates Windows Printing Server is working OK. Base on my research, we may have to setup a CUPS server so that Linux client communicate with CUPS Server and CUPS communicate with Windows Printer Server using IPP. For your reference:
HowTo: Print to a Windows Print Server from a Linux Client.
http://en.opensuse.org/Print_to_Windows_printer
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
If you have problem when setting up CUPS server, you can get help from the link below:
http://www.cups.org/
Thanks.
This posting is provided "AS IS" with no warranties, and confers no rights. -
PRVF-5408 : NTP Time Server is common only to the following node
Hi all,
i found the following errors in $GRID_HOME/log/`hostname`/alert`hostname`.log :
2011-12-21 01:24:26.854
[client(18213)]CRS-10051:CVU found following errors with Clusterware setup : PRVF-5408 : NTP Time Server "193.204.114.233" is common only to the following nodes "e1dbp01na"
PRVF-5408 : NTP Time Server "193.204.114.232" is common only to the following nodes "e1dbp01nb"
2011-12-27 13:25:49.410
[client(20522)]CRS-10051:CVU found following errors with Clusterware setup : PRVF-5408 : NTP Time Server "193.204.114.233" is common only to the following nodes "e1dbp01na"
2011-12-29 01:26:10.541
[client(18799)]CRS-10051:CVU found following errors with Clusterware setup : PRVF-5408 : NTP Time Server "193.204.114.232" is common only to the following nodes "e1dbp01na"
The weird thing is that ntp configuration is symmetrical between both nodes and the ntp server "193.204.114.232" does not appear in /etc/ntp.conf
Why ntpd should use a server which is not listed in /etc/ntpd.conf ?
thanks,
AndreaYes, that IP is a valid hostname: 193.204.114.232 is ntp1.inrim.it, the "official" italian ntp server.
193.204.114.232 and ntp1.inrim.it do not appear in /etc/hosts, /etc/resolve.conf Ntp configuration is :
[oracle@e1dbp01na ~]$ cat /etc/sysconfig/ntpd
# Drop root to id 'ntp:ntp' by default.
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=no
# Additional options for ntpdate
NTPDATE_OPTIONS=""
[oracle@e1dbp01na ~]$ grep ^server /etc/ntp.conf
server 127.127.1.0
server 172.18.1.7
server 172.18.1.70
and cluvfy comp clocjsync shows:
NTP common Time Server Check started...
NTP Time Server "193.204.114.232" is common to all nodes on which the NTP daemon is running
NTP Time Server ".INIT." is common to all nodes on which the NTP daemon is running
NTP Time Server ".LOCL." is common to all nodes on which the NTP daemon is running
Check of common NTP Time Server passed
... -
Oracle 9i on LINUX Transparent Gateway for SQL Server
Does anybody know if there is a Transparent Gateway available for Oracle 9i on LINUX to connect to SQL Server? I have run the installer and cannot seem to find the install options for any Transparent Gateways. I am familiar with their location in the universal installer as I have installed the Oracle/SQL Server Transparent Gateway with Oracle in WinNT. Perhaps Transparent Gateways for Oracle/LINUX are not available?
Thanks in advance.I have the same issue - we want to upgrade our 9.2 to 10g Linux, and need to maintain connectivity to some legacy sqlserver databases. I can't find any mention of tg4msql for linux. What gives? Anyone know the answer to this? thanks, michael
-
I installed Oracle database 10g on SuSE Linux Enterprise Server 8 edition.
I installed Oracle database 10g on SuSE Linux Enterprise Server 8 edition.
But this massage pop up when I used my browser first time before start database.
Actually when I clicks on yes to start database.
The web browser you are using is not optimized for this release of Oracle enterprise manager. It is recommended that you use one of the following:
* Microsoft Internet Explorer version 5.5, 6.0 or higher
* Netscape Navigator version 7 and higher
*Mozilla version 1.3.1 and higher
Dose any one know hoe to upgrade mozilla or install internet explorer 5.5, 6.0 or higher or SLES 8.
Regards,
DYou can download package for your distribution (for example) from http://www.mozilla.org or directly from SuSE ftp server ftp://ftp.suse.com/pub/suse/i386/9.1/suse/i586
IE for linux does not exist. -
Create dblink in Oracle/Linux (RHEL4) to MS SQL Server/Windows?
Hi,
Can anyone share me the procedure to Create dblink in Oracle/Linux (RHEL4) to MS SQL Server/Windows?
ThanksHi,
to access non-Oracle systems you must use Oracle Heterogeneous Services.
You have to follow the instructions from Heterogeneous Connectivity Administrator's Guide to perform it.
Regs,
Acr -
Oracle VM 3.1.1 using Kickstart to install Linux Guests
Up till this point in my experience with Oracle VM.... I've always used templates to create VM guests. However, I have a need to greatly customize a OEL installation and I have traditionally done this via "kickstart scripts". From what I understand, "kickstart" is not supported for installing Linux guests via PXE. If it is... I certainly can't get it to work. I have read a few things here and there about the situation but I must admit I am a little confused.
Does anyone have any insight on how to install a Linux guest via a "kickstart" script called via PXE? If you can't use PXE, then how do you do it?
Thanks
Edited by: user12273962 on Jul 17, 2012 2:09 PMSalut,
kickstart installations work for us. You don't say whether you're using HVM or PVM guests so I'll assume the latter.
Note that this works for tftp and http based installation - I've not tried nfs and I seem to recall that it doesn't work for PVM systems. At present we are using exactly the same infrastructure to install VMs as for our physical systems (tftp) to keep things simple but the original tests were with http exported images.
In the manager set the network boot path to be something like
kernel=vmlinuz ramdisk=initrd --args="ksdevice=eth0 network bootproto=dhcp ks=http://myksserver/ks.cgi" tftp://mypxeserver/boot/RHES_5_U7_X86_64_XEN
The kernel and ramdisk locations are relative to the URL given at the end so if you've exported the ISO then they will be a little different.
One way to check that the first stage works is to connect to a hypervisor and run
/usr/bin/xenpvboot <entire boot path as given above>
If this returns something bootable then you will see
linux (kernel /var/run/xend/boot/xenpvboot.vmlinuz.KYBNus)(ramdisk /var/run/xend/boot/xenpvboot.initrd.img.hKHQLg)(args 'ksdevice=00:16:3E:XX:XX:XX network bootproto=dhcp ks=http://myksserver/ks.cgi')
Ewan -
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 -
Error message with install of Oracle 9.2 on Mandrake Linux 9.0
Hi,
I hope somebody can help with this. I'm getting an error message during the installation for oracle 9.2 on mandrake linux 9. An error get thrown saying the IP address of a host cannot be determined.
Here is what is in the log:
*** Database Configuration Page***
TitleLabel = Database Configuration
Prompt = Select a database suited to your needs.
ConfigList = General Purpose,Installs a pre-configured database optimized for general purpose usage,Transaction Processing,Installs a pre-configured database optimized for transaction processing,Data Warehouse,Installs a pre-configured database optimized for data warehousing,Customized,Allows you to create a customized database. This option takes longer than the pre-configured options,Software Only,Installs software only and does not create a database at this time,
Selection = s_cfgtyperet = General Purpose
Setting value of s_dbcaProgressOnly to -progress_only
Setting value of b_autoStartApache to true
Setting value of b_launchNETCA to true
Calling query netQueries2.2.0.7.0 getHostIPAddress
Query Exception: UnknownHostException
Query Exception Class: class oracle.sysman.oii.oiil.OiilQueryException
Anyone know how to resolve this error and whether or not it is very critical to the oracle installation?
Cheers
JohnnyHi johnny,
You should first check the hosts file to see if the correct hostname and the IP address are shown. You can also check if the "hostname" command returns the correct result. If everything looks good so far, then next check if command "nslookup" returns the correct IP address. If the nslookup <hostname> command returns error, you will need to talk to the Domain Name Server (DNS) administrator to correct this network configuration problem.
Yogi -
Java connection to oracle 8.0.5 on linux
I'm trying to run the TestInstallJDBC program off of your site
on a RedHat Linux 5.1 box with Oracle 8.0.5 for linux installed.
However it cannot seem to find the following classes when trying
to import them:
import oracle.sqlj.runtime.Oracle;
import sqlj.runtime.ref.DefaultContext;
How do I solve this problem?
Do I need to download them separately from sun?
thanks,
there is no $ORACLE_HOME/jdbc directory on my installation, I
think that's where it should be...
Ahbaid.
nullAhbaid Gaffoor (guest) wrote:
: I'm trying to run the TestInstallJDBC program off of your site
: on a RedHat Linux 5.1 box with Oracle 8.0.5 for linux
installed.
: However it cannot seem to find the following classes when
trying
: to import them:
: import oracle.sqlj.runtime.Oracle;
: import sqlj.runtime.ref.DefaultContext;
: How do I solve this problem?
: Do I need to download them separately from sun?
: thanks,
: there is no $ORACLE_HOME/jdbc directory on my installation, I
: think that's where it should be...
: Ahbaid.
Just to confirm for u. U should have
$ORACLE_HOME/jdbc/lib/classes111.zip or classess102.zip. There is
also a README there which show how to connect, sample code etc.
If these files already installed, then i don't know what is the
problem. U have to have these files, dirs.
Nathan Phan
null -
A lot of problem for an error: Cannot start Managed Server through NM
Hi, all. Thank for coming here.
My main problem is cannot start Manager server through Node Manager. I've configured with the same way on my friend's network and It's works but It's wrong with mine.
my weblogic domain:
Machine 1: Administration Server + 1 Managed server
Machine 2: 1 Managed server
all of these servers communicate through SSL protocol. When I try to start Managed Server on remote machine:
output from console which was invoked startWebLogic.sh
+<Sep 9, 2010 12:09:53 PM> <INFO> <devdomain> <MS01> <Server failed during startup so will not be restarted>+
Sep 9, 2010 12:09:53 PM weblogic.nodemanager.server.ServerManager log
INFO: Server failed during startup so will not be restarted
+<Sep 9, 2010 12:09:53 PM> <WARNING> <Exception while starting server 'MS01'>+
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:619)
Sep 9, 2010 12:09:53 PM weblogic.nodemanager.server.Handler handleStart
WARNING: Exception while starting server 'MS01'
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:619)
And this is MS01 log:
starting weblogic with Java version:
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
+JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]+
The application has requested the JVM to exit with an fatal error from JNI. Error message:
JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
Starting WLS with line:
+/opt/Oracle/Middleware/jrockit_160_14_R27.6.5-32/bin/java -jrockit -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms512m -Xmx512m -Dweblogic.Name=MS01 -Djava.security.policy=/opt/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.system.BootIdentityFile=/opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.ReverseDNSAllowed=false -Xrs -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=/opt/Oracle/Middleware/wlserver_10.3 -Dwls.home=/opt/Oracle/Middleware/wlserver_10.3/server -Dweblogic.home=/opt/Oracle/Middleware/wlserver_10.3/server -Dweblogic.wsee.bind.suppressDeployErrorMessage=true -Dweblogic.wsee.skip.async.response=true -Dweblogic.management.discover=false -Dweblogic.management.server=http://192.168.1.35:7001 -Dwlw.iterativeDev=true -Dwlw.testConsole=true -Dwlw.logErrorsToConsole=true -Dweblogic.ext.dirs=/opt/Oracle/Middleware/patch_wls1032/profiles/default/sysext_manifest_classpath:/opt/Oracle/Middleware/patch_wlp1032/profiles/default/sysext_manifest_classpath:/opt/Oracle/Middleware/wlportal_10.3/p13n/lib/system:/opt/Oracle/Middleware/wlportal_10.3/light-portal/lib/system:/opt/Oracle/Middleware/wlportal_10.3/portal/lib/system:/opt/Oracle/Middleware/wlportal_10.3/info-mgmt/lib/system:/opt/Oracle/Middleware/wlportal_10.3/analytics/lib/system:/opt/Oracle/Middleware/wlportal_10.3/apps/lib/system:/opt/Oracle/Middleware/wlportal_10.3/info-mgmt/deprecated/lib/system:/opt/Oracle/Middleware/wlportal_10.3/content-mgmt/lib/system -Dweblogic.alternateTypesDirectory=/opt/Oracle/Middleware/wlportal_10.3/portal/lib/security weblogic.Server+
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
+JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]+
The application has requested the JVM to exit with an fatal error from JNI. Error message:
JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
Stopping PointBase server...
PointBase server stopped.
And this is output from console which node manager runs on:
+<Sep 9, 2010 12:09:53 PM> <INFO> <devdomain> <MS01> <Server failed during startup so will not be restarted>+
Sep 9, 2010 12:09:53 PM weblogic.nodemanager.server.ServerManager log
INFO: Server failed during startup so will not be restarted
+<Sep 9, 2010 12:09:53 PM> <WARNING> <Exception while starting server 'MS01'>+
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:619)
Sep 9, 2010 12:09:53 PM weblogic.nodemanager.server.Handler handleStart
WARNING: Exception while starting server 'MS01'
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:619)
I tried to start Managed server some times again, but I face up to strange issue, this is output from console which Admin Server runs on (these exception messages throws continuously):
+<Sep 9, 2010 12:42:53 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "portalDataSourceNeverXA": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
+<Sep 9, 2010 12:42:57 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "cgDataSource": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
+<Sep 9, 2010 12:42:58 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "cgDataSource-nonXA": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
+<Sep 9, 2010 12:42:58 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "p13nDataSource": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
+<Sep 9, 2010 12:42:58 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "portalDataSource": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
+<Sep 9, 2010 12:42:58 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "portalDataSourceAlwaysXA": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
I can ensure that all of these connection pool has configured to run on 9093 port already. Then I view the DOMAIN_NAME/pointbase.log, it said:
Unable to start the server. start server error: java.net.BindException: Address already in use
I cannot understand what's run on pointbase address ?
All of these error make me angry, because I've configured with the same way on other system and It's work. I've spent all of week to fix these bug, but I'm having nothing :((
Please help me.Thank Jay SenSharma.
I've looked for these JAVA_OPTION values you said, but I cant found them. That value is content of JAVA_DEBUG option, not JAVA_OPTION. In my situation, JAVA_DEBUG=" " (it's not set by default).
Please re-view my error log:
Node Manager output:
+<Sep 9, 2010 11:32:44 PM> <WARNING> <Exception while starting server 'MS01'>+
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:619)
Sep 9, 2010 11:32:44 PM weblogic.nodemanager.server.Handler handleStart
WARNING: Exception while starting server 'MS01'
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:619)
Managed server MS01's log:
+<Sep 9, 2010 11:45:05 PM> <INFO> <NodeManager> <Server output log file is '/opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/logs/MS01.out'>+
+<Sep 9, 2010 11:45:07 PM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32 from BEA Systems, Inc.>+
+<Sep 9, 2010 11:45:09 PM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 9216172 Tue Jan 12 02:07:27 PST 2010+
WebLogic Server 10.3.2.0 Tue Oct 20 12:16:15 PDT 2009 1267925 >
+<Sep 9, 2010 11:45:13 PM EDT> <Error> <Management> <BEA-141244> <Schema validation errors while parsing /opt/Oracle/Middleware/user_projects/domains/devdomain/config/config.xml - Invalid xsi:type qname: 'wsrp:wsrp-identity-asserterType' in element realm@http://xmlns.oracle.com/weblogic/domain>+
+<Sep 9, 2010 11:45:13 PM EDT> <Error> <Management> <BEA-141244> <Schema validation errors while parsing /opt/Oracle/Middleware/user_projects/domains/devdomain/config/config.xml - /opt/Oracle/Middleware/user_projects/domains/devdomain/<unknown>:11:9: error: failed to load java type corresponding to t=wsrp-identity-asserterType@http://www.bea.com/ns/wlp/90/security/wsrp>+
+<Sep 9, 2010 11:45:14 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>+
+<Sep 9, 2010 11:45:14 PM EDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>+
+<Sep 9, 2010 11:45:14 PM EDT> <Notice> <LoggingService> <BEA-320400> <The log file /opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/logs/MS01.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>+
+<Sep 9, 2010 11:45:14 PM EDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/logs/MS01.log00002. Log messages will continue to be logged in /opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/logs/MS01.log.>+
+<Sep 9, 2010 11:45:14 PM EDT> <Notice> <Log Management> <BEA-170019> <The server log file /opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/logs/MS01.log is opened. All server side log events will be written to this file.>+
+<Sep 9, 2010 11:45:17 PM EDT> <Error> <Security> <BEA-090870> <The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory". See the nested exception for details..+
weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory". See the nested exception for details.
+ at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:342)+
+ at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:221)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1783)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:442)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840)+
+ Truncated. see log file for complete stacktrace+
Caused By: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory". See the nested exception for details.
+ at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)+
+ at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)+
+ at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)+
+ at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)+
+ at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:47)+
+ Truncated. see log file for complete stacktrace+
Caused By: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory". See the nested exception for details.
+ at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:95)+
+ at com.bea.common.security.storeservice.util.StoreServiceDelegate$StoreSerivceHelper.getPersistenceManagerFactory(StoreServiceDelegate.java:347)+
+ at com.bea.common.security.storeservice.util.StoreServiceDelegate.initJDO(StoreServiceDelegate.java:145)+
+ at com.bea.common.security.storeservice.util.StoreServiceDelegate.<init>(StoreServiceDelegate.java:98)+
+ at com.bea.common.security.internal.service.StoreServiceImpl.init(StoreServiceImpl.java:76)+
+ Truncated. see log file for complete stacktrace+
Caused By: java.lang.RuntimeException: There were errors initializing your configuration: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal store error> org.apache.openjpa.util.StoreException: com.pointbase.jdbc.jdbcUniversalDriver
+ at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:123)+
+ at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:776)+
+ at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:683)+
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
+ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
+ at java.lang.reflect.Method.invoke(Method.java:597)+
+ at org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(ConfigurationImpl.java:288)+
+ at org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(OpenJPAConfigurationImpl.java:1409)+
+ at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:646)+
+ at org.apache.openjpa.kernel.AbstractBrokerFactory.pool(AbstractBrokerFactory.java:131)+
+ at kodo.jdbc.kernel.KodoJDBCBrokerFactory.getInstance(KodoJDBCBrokerFactory.java:43)+
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
+ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
+ at java.lang.reflect.Method.invoke(Method.java:597)+
+ at org.apache.openjpa.kernel.Bootstrap.invokeFactory(Bootstrap.java:124)+
+ at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:90)+
+ at com.bea.common.security.storeservice.util.StoreServiceDelegate$StoreSerivceHelper.getPersistenceManagerFactory(StoreServiceDelegate.java:347)+
+ at com.bea.common.security.storeservice.util.StoreServiceDelegate.initJDO(StoreServiceDelegate.java:145)+
+ at com.bea.common.security.storeservice.util.StoreServiceDelegate.<init>(StoreServiceDelegate.java:98)+
+ at com.bea.common.security.internal.service.StoreServiceImpl.init(StoreServiceImpl.java:76)+
+ at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:363)+
+ at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)+
+ at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)+
+ at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)+
+ at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:47)+
+ at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:300)+
+ at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:221)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1783)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:442)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealms(CommonSecurityServiceManagerDelegateImpl.java:869)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1028)+
+ at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)+
+ at weblogic.security.SecurityService.start(SecurityService.java:141)+
+ at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)+
+ at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)+
+ at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)+
Caused by: java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
+ at java.lang.Class.forName0(Native Method)+
+ at java.lang.Class.forName(Class.java:169)+
+ at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:85)+
+ ... 38 more+
+ at org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(ConfigurationImpl.java:302)+
+ at org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(OpenJPAConfigurationImpl.java:1409)+
+ at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:646)+
+ at org.apache.openjpa.kernel.AbstractBrokerFactory.pool(AbstractBrokerFactory.java:131)+
+ at kodo.jdbc.kernel.KodoJDBCBrokerFactory.getInstance(KodoJDBCBrokerFactory.java:43)+
+ Truncated. see log file for complete stacktrace+
+>+
+<Sep 9, 2010 11:45:17 PM EDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>+
+<Sep 9, 2010 11:45:17 PM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:+
There are 1 nested errors:
+weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services Unavailable+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:916)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)+
+ at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)+
+ at weblogic.security.SecurityService.start(SecurityService.java:141)+
+ at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)+
+ at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)+
+ at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)+
+>+
+<Sep 9, 2010 11:45:17 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>+
+<Sep 9, 2010 11:45:17 PM EDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>+
+<Sep 9, 2010 11:45:17 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>+
+<Sep 9, 2010 11:45:17 PM> <FINEST> <NodeManager> <Waiting for the process to die: 16443>+
+<Sep 9, 2010 11:45:17 PM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>+
+<Sep 9, 2010 11:45:18 PM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>+
ps:
I've come your weblog and found alot of tips for debugging WebLogic Server exceptions. It's really helpful. Thanks.
Edited by: Doubt_Man on Sep 10, 2010 10:49 AM
Edited by: Doubt_Man on Sep 10, 2010 3:54 PM
Maybe you are looking for
-
My ipod touch shows 10.1 gb of memory, but when I try to transfer a movie from my computer to ipod touch I get a error message that says "Cannot be synced because there is not enough free space to hold all of the items in the itunes library, addition
-
Hi Experts, Sometimes i'm getting below error msg while executing powershell commands.. is there any way to avoid this error msg by extending the timeout? Regards, Nidhin.CK
-
Error in activating data source
Hi Gurus, I'm facing error when generating data source stating "THE OLTP SOURCE STILL HAS ERRORS" when i activate my structure in "se11" it is activating . could you tell me how to get rid of this error............ Regards, Vijay.
-
One User ID with 2 BPs and 2 CPs
Hi, 1) I have created an User ID U1 using users_gen. So system created CP1 and BP1 . I could logon. 2) Deleted the user assignment and position 3) Again created an user ID U1 using users_gen. So system created CP2 and BP2. I could logon. Now I want t
-
Can I change the background on the loginscreen?
I mean the one where you select an account and enter the password, not the lock screen. Would be nice if I could have a picture there instead of a color as I do not like the colors that I can choose from. Thanks in advance!