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

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:

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-channel-0/

linux unzip gives checkdir error

if you’re trying to unzip something and you’re getting a checkdir error 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/linux-unzip-gives-checkdir-error/

list directories and their total sizes in linux

want to list directories and their sized in linux d’ya??
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

Permanent link to this article: http://devnumbertwo.com/list-directories-total-sizes-linux/

linux: remove files older than a certain number of days

want the command to remove files (on linux) that are older than a certain number of days? shazam! here you go:

the below command will:

  • remove files (note the rm in the command)
  • located in the current directory (note the ./ in the command)
  • that are older than 30 days (note the +30 in the command)
find ./ -mtime +30 -exec rm {} \;

here’s another example, the below command will:

  • remove files (note the rm in the command)
  • located in any directory in /home whose name starts with oracle (note the /home/oracle* in the command)
  • that are older than 5 days (note the +5 in the command)
find /home/oracle* -mtime +5 -exec rm {} \;

Permanent link to this article: http://devnumbertwo.com/linux-remove-files-older-certain-number-days/

create a java web service client from a wsdl

you want to create a java client from a wsdl online?

boom! here you go:

  1. Ensure you have the JDK installed
  2. Create a new eclipse java project
    eclipse_java_project
  3. Add wsimport (located in the JDK bin) to your path
    Example:

    set PATH=%PATH%;C:\Program Files\Java\jdk1.6.0_41\bin
  4. Use wsimport to generate the Java files from the WSDL
    Change directory to your Eclipse project directory, run wsimport:

    C:\Users\devnumbertwo\Desktop\Projects\workspace\WSClient>wsimport -s src -d bin http://devnumbertwo.com/webservice-server/server/soap?wsdl
    parsing WSDL...
    
    generating code...
    
    compiling code...
    
    C:\Users\devnumbertwo\Desktop\Projects\workspace\WSClient>
  5. Refresh your Eclipse project then create a class file using the generated code to hit the web service. Something like:
    public class MainContainer {
    
    	public static void main(String args[]) {
    		MainContainer main = new MainContainer();
    			main.run();
    	}
    
    	public void run() {
    		System.out.println("--- start ----");
    
    		WSServer os = new WSServer();
    		WSServerType osType = os.getWSServer();
    
    		// ======= Get Server Info =======
    		GetServerInfoRequest srvrInfoReq = new GetServerInfoRequest();
    
    		GetServerInfoResponse srvrInfoResp = osType.getServerInfo(srvrInfoReq);
    
    		String timez = srvrInfoResp.getWSEngineTimezone();
    		String engVersion = srvrInfoResp.getWSEngineVersion();
    		String srvrVersion = srvrInfoResp.getWSServerVersion();
    
    		StringBuffer strPrint = new StringBuffer("Listing Server Info: \n");
    		strPrint.append("\tTimezone: " + timez + "\n");
    		strPrint.append("\tEngine Version: " + engVersion + "\n");
    		strPrint.append("\tServer Version: " + srvrVersion + "\n");
    
    		System.out.println(strPrint.toString());
    
    	}
    }

Permanent link to this article: http://devnumbertwo.com/create-java-web-service-client-wsdl/

SBL-SVR-00026: Unable to allocate shared memory

Siebel server complaining?

SBL-SVR-00026: Unable to allocate shared memory

This can be seen in the log files when the Siebel server fails to start up.

In most cases, one or more additional error messages also accompany this one, for example SBL-SVR-00005.

There is a shared memory file that is maintained by each Siebel server under the “admin” directory of its root installation ($SIEBEL_ROOT\admin on both UNIX and windows). This file follows the naming convention [<$EnterpriseName>.<$ServerName>.shm]. It is built upon server startup, and destroyed upon shutdown. If this file cannot be created successfully upon server startup, the above error message can be reported.

After verifying that you have adequate disk space and permissions for this file to be created, Try this:

  1. Make sure the Siebel Server service(s) are shutdown completely before shutting down the Siebel Gateway Server service.
  2. Check if the above .shm file is still present in spite of a successful Siebel server shutdown.
  3. Make a copy of the *.shm file (if it was left behind after a server shutdown) or delete it
  4. Restart the siebel server, and verify whether a new *.shm file is created and if that allowed the server to start up properly.

Permanent link to this article: http://devnumbertwo.com/sbl-svr-00026-unable-allocate-shared-memory/

Error: CLUSTER_NODES doesn’t contain the LOCAL_NODE. Correct the CLUSTER_NODES and start the DeInstall tool again

trying to deinstall clusterware and getting the following error?

Caused by: oracle.ops.util.FatalException: Exited from Program.
[ Error: CLUSTER_NODES doesn't contain the LOCAL_NODE. Correct the CLUSTER_NODES and start the DeInstall tool again ]
        at oracle.install.db.deinstall.core.NodeLivlinessCheck.setRemoteNodes(NodeLivlinessCheck.java:242)
        at oracle.install.db.deinstall.core.CheckInstall.checkConfig(CheckInstall.java:414)
        ... 6 more

deinstall clusterware manually:

n all remote nodes, as root execute:

  $GRID_HOME/crs/install/rootcrs.pl -deconfig -force -verbose

Once the above command finishes on all remote nodes, on local node, as root execute:

  $GRID_HOME/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode

reference: How to Deinstall Oracle Clusterware Home Manually [ID 1364419.1]

Permanent link to this article: http://devnumbertwo.com/error-cluster_nodes-doesnt-contain-local_node-correct-cluster_nodes-start-deinstall-tool/

SEVERE: This repository requires DAC Server running in Web Server mode!

the issue: when trying to start the dac server (startserver.sh) you get:

Feb 8, 2013 9:03:09 PM com.siebel.analytics.etl.conf.RepositoryPropertiesManager refresh
INFO: Reading repository properties
Feb 8, 2013 9:03:09 PM com.siebel.etl.net.QServer 
SEVERE: This repository requires DAC Server running in Web Server mode!

fix it: you probably forgot to change the settings in the dac client. you don’t need the dac server running in order to make the following changes in the dac client:

Tools -> DAC Server Management -> Repository Configuration -> Select standalone mode -> Set the host & port

on the dac server:

execute StandaloneServersetup.sh in DAC Server and set the correct information (if you haven’t don so already)
shutdown and restart the dac Server (startserver.sh) — it should start fine now

Permanent link to this article: http://devnumbertwo.com/severe-repository-requires-dac-server-running-web-server-mode/

update or reset the dac admin password for the dac client

how to reset the dac admin password for the oracle dac client:

  1. Log into the DAC repository database (using sql)
  2. Locate the table W_ETL_USER and delete all records
  3. Log on DAC client with default user/password as Administrator/Administrator

Re-create the dac admin user again by performing the following:

  1. modifying the existing connection by clicking on Configure in the dac client login screen
  2. Modify Connection -> Test Connection (just to test to see if you need to change the table owner login)
  3. Go back to the dac client login screen, login as the table owner
  4. Confirm the login on the Creating default Administrator account… screen
  5. Create the dac admin account on the next screen
    dacadmin

Permanent link to this article: http://devnumbertwo.com/update-dac-admin-password-dac-client/

Older posts «

» Newer posts