siebel Failed to start Core Services, Failed to create watchdog termination file

siebel Failed to start Core Services – This can occur when sourcing the siebenv.sh as root then trying as the oracle user:

[oracle@devtwo siebsrvr]$ . ./siebenv.sh
Failed to start Core Services: Failed to create watchdog termination file.
Aborted

It may be best to reboot the VM prior to doing the steps below.

  1. Backup the regss15: files in the /tmp directory, Example:
    cd /tmp
    mv regss15:123483357904896 regss15:123483357904896.bak
    mv regss15:123483357904896.pid regss15:123483357904896.pid.bak
    
  2. Login as root, change the ownership of watchdog.keepalive (or just do the entire directory)
    cd /u01/app/ses/siebsrvr/mw/.mw/core_data/devtwosblsrvr/
    chown -R oracle:oinstall .
    
  3. Try to source siebenv.sh again as oracle
    [oracle@devtwo siebsrvr]# . ./siebenv.sh

Permanent link to this article: http://devnumbertwo.com/siebel-failed-to-start-core-services/

too many open files weblogic

too many open files weblogic

too many open files weblogic

by default webLogic configures 1024 file descriptors. webLogic limits the number of open file descriptors by checking the OS limit in a shell script. 

use the following to check or increase the file descriptor limit;

get the weblogic process id

ps –ef |grep java

display the current file desc limit

pfiles processId | grep rlimit

display the hard limit (i.e. cannot be exceeded)

ulimit -Hn

display the soft limit (this can be increased up to the hard limit)

ulimit -Sn

the following can be used to increase the soft limit.

ulimit -S -n 4096

what’s weird is this doesn’t always work for me – alternatively, you can increase the soft (and hard) limit by just editing the file /etc/security/limits.conf
might look something like this

*               soft    core            4096
*               hard    nofile          4096
@student        hard    nproc           20
@faculty        soft    nproc           20
@faculty        hard    nproc           50
ftp             hard    nproc           0
@student        -       maxlogins       4
:123            hard    cpu             5000
@500:           soft    cpu             10000
600:700         hard    locks           10

Permanent link to this article: http://devnumbertwo.com/too-many-open-files-weblogic/

log your @$$ off

 

Permanent link to this article: http://devnumbertwo.com/log/

wholly cow… this skit is genius

this skit describes how i feel 5 days a week…

Permanent link to this article: http://devnumbertwo.com/wholly-cow-skit-genius/

coding drunk

it’s thursday and i’m tempted to get a head start on this practice…

 

Permanent link to this article: http://devnumbertwo.com/coding-drunk/

php…

 

Permanent link to this article: http://devnumbertwo.com/944/

how to install Oracle Weblogic Server 11gR1 (10.3.6) ZIP Distribution on Linux

some notes and $h!t on how to install weblogic on linux…

Oracle Weblogic Server 11gR1 (10.3.6) ZIP Distribution – Linux

 

  1. As root run the following to create the oracle user and orainstall group
    groupadd orainstall
    useradd -g orainstall oracle
  2. Login as user oracle
  3. Make sure you got JAVA on your server
    type the following to see what version you got

    java -version

    You might just have the JRE versus the JDK which is what you want to run weblogic with. So if you don’t have it, get it!
    http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

    download_jdk

    Put the file on your server (I put mines in /softwaretmp), and run the following to get that bad boy installed:

    mkdir -p /u01/jdk
    cd /u01/jdk
    tar -zxvf /softwaretmp/jdk-7u51-linux-i586.gz
    ln -s jdk1.7.0_51 jdk7
  4. create the MW_HOME and weblogic server directories
    mkdir -p /u01/oracle/fmw/wlserver_10.3
  5. Now let’s download weblogic
    Go to: http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
    weblogic_10.3.6_download_licenseweblogic_10.3.6_download
  6. Put the ZIP file in your weblogic server directory, which (if you’re following) is
    /u01/oracle/fmw/wlserver_10.3
  7. Update the ~/.bash_profile (it’ll make things easier)
    MW_HOME=/u01/oracle/fmw/wlserver_10.3; export MW_HOME
    JAVA_HOME=/u01/jdk/jdk7; export JAVA_HOME
    PATH=$JAVA_HOME/bin:$PATH; export PATH
  8. Make sure you pickup the environment variables in your session by sourcing the .bash_profile
    cd ~
    . ./.bash_profile

    Now chiggity check it, if you run java -version it should pick up the JDK you installed (it’ll return the following):

    java version "1.7.0_51"
    Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
    Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode)
  9. unzip the contents of the weblogic zip file
    cd /u01/oracle/fmw/wlserver_10.3
    unzip wls1036_dev.zip
  10. Run the configuration
    ./configure.sh
  11. Setup the WLS environment in the current shell
    . $MW_HOME/wlserver/server/bin/setWLSEnv.sh
  12. Now lets Create the Weblogic Domain yaahhyuuhh!
    create the domains directory

    mkdir -p /u01/oracle/wlsdomains
  13. Run the configuration wizard
    cd /u01/oracle/fmw/wlserver_10.3/wlserver/common/bin
    ./config.sh

    Weblogic Configuration Wizard Create Domain
    Weblogic Configuration Wizard Create Domain
    Weblogic Configuration Wizard Create Domain
    Weblogic Configuration Wizard Create Domain
    In the below image, I selected “Production Mode” – one thing I like about production mode is that you have to explicitly redeploy items rather than apps auto-redeploying as soon as you upload a new version. But you can also select Development Mode if you want the auto-deploy and other features of the Deployment Mode… up to you…
    Weblogic Configuration Wizard Create Domain
    Weblogic Configuration Wizard Create Domain
    The image below shows “All Local Addresses” selected. I actually recommend using the FQDN of the machine you are dealing with so that things like IP changes don’t require you to change any configuration. Additionally, selecting “All Local Addresses” can mess you up if you have multiple IPs assigned to this machine and you need to use the ports you select on the different IPs. But for simplicity, I’m selecting “All Local Addresses”…
    Weblogic Configuration Wizard Create Domain
    Weblogic Configuration Wizard Create Domain
    Weblogic Configuration Wizard Create Domain
    Weblogic Configuration Wizard Create Domain
    Note in the below image, you should be on the “Unix Machine” tab since we are on Linux
    Weblogic Configuration Wizard Create Domain
    Assign the AdminServer and Managed Server to a machine, we’re only dealing with 1 machine so guess what – both just get assigned to the same machine
    Weblogic Configuration Wizard Create Domain
    We’re almost done!
    Weblogic Configuration Wizard Create Domain
    Weblogic Configuration Wizard Create Domain
    Tada! Finished creating the domain…
    Weblogic Configuration Wizard Create Domain

  14. Create the boot.properties file so that you won’t have to input the login you created in the configuration wizard every time you startup
    cd /u01/oracle/wlsdomains/devnumbertwo_domain/
    mkdir -p servers/AdminServer/security
    mkdir -p servers/managedServer_1/security
    vi servers/AdminServer/security/boot.properties
    vi servers/managedServer_1/security/boot.properties

    Put the login you created in the configuration wizard into your boot.properties file

    username=weblogic
    password=password123
  15. Let’s Start the Weblogic Admin Server!
    cd /u01/oracle/wlsdomains/devnumbertwo_domain/
    ./startWebLogic.sh

    it will ask you to .
    When it’s started, it will show the following lines:

    <BEA-000365> <Server state changed to RUNNING>
    <BEA-000360> <Server started in RUNNING mode>
  16. Let’s Start the Managed Server
    cd /u01/oracle/wlsdomains/devnumbertwo_domain/bin
    ./startManagedWebLogic.sh managedServer_1

    same thing here, it will ask you to input the username and password you inputted into the configuration wizard.
    When it’s started, it will show the following lines:

    <BEA-000365> <Server state changed to RUNNING>
    <BEA-000360> <Server started in RUNNING mode>
  17. You can also check that your Managed Server is running by Logging to the Weblogic Administration Console by going to
    http://localhost:7001/console OR http://serverip:7001/console
    on the left nav go to Servers –> on the main pane it should show your your servers and in the status it will say RUNNING

Permanent link to this article: http://devnumbertwo.com/how-to-install-weblogic-on-linux/

X11 forwarding request failed on channel 0 mac

attempting to remedy my X11 forwarding request failed on channel 0 mac error I came across a great article on X11 forwarding on OS X

unfortunately when i tried to connect to my server, i still received the following error on my mac

X11 forwarding request failed on channel 0

best thing to do is use the -v command when you try to connect to your server.

ssh -X -v username@remote.server.name

it’ll give you hints as to why you’re still getting this error. what i got was:

debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Remote: No xauth program; cannot forward with spoofing.
X11 forwarding request failed on channel 0

note the “Remote: No auth program” line.

all i had to do after that was install xauth on my remote server and it was all good. booyah!

 

Permanent link to this article: http://devnumbertwo.com/x11-forwarding-request-failed-on-channel-0-mac/

checkdir error cannot create

if you’re trying to unzip something and you’re getting a ‘checkdir error cannot create’ on Linux, check the error again:

checkdir error:  cannot create server123
                 Permission denied
                 unable to process server123/linux/s390x/libmuxer.so.

note that it says Permission denied. Check that you have write permission on the folder you are trying to unzip to! seems obvious, but it happens…

Permanent link to this article: http://devnumbertwo.com/checkdir-error-cannot-create/

linux list directory size, list directories and their sizes

linux list directory size – list directories and their sizes
shazam! here you go:

du -sh *

For example:

[dnumtwo@yomamasvm targets]$ ls -al
total 65
drwxr----- 16 dnumtwo dnumtwo 16 Aug  7  2013 .
drwx------  3 dnumtwo dnumtwo 57 Apr  1 09:22 ..
drwxr-----  3 dnumtwo dnumtwo  3 Aug  7  2013 host
drwxr-----  6 dnumtwo dnumtwo  6 Aug  7  2013 application
drwxr-----  4 dnumtwo dnumtwo  4 Aug  7  2013 repository
drwxr-----  3 dnumtwo dnumtwo  3 Aug  7  2013 dnumtwo_apache
drwxr-----  3 dnumtwo dnumtwo  3 Aug  7  2013 dnumtwo_console
drwxr-----  3 dnumtwo dnumtwo  3 Aug  7  2013 weblogic_domains

[dnumtwo@yomamasvm targets]$ du -sh *
23K     host
893K    application
49K     repository
232K    dnumtwo_apache
256K    dnumtwo_console
17K     weblogic_domains

the du command parameter breakdown:

-h, --human-readable
	      print sizes in human readable format (e.g., 1K 234M 2G)
-s, --summarize
	      display only a total for each argument

here’s the man page for the du command if you’re interested.

 

linux_dev2 linux list directory size

Permanent link to this article: http://devnumbertwo.com/linux-list-directory-size/

Older posts «

» Newer posts