Weblogic script for aix
hi guys
i am using weblogic on aix and oracle forms reports in frontend.now i want a script to automatically start and stop weblogic on aix.
as i dont have much of scripting idea please help for same.
rgds
Please close your thread here and Post it in Below section of forum.
{forum:id=570}
Similar Messages
-
Oracle Startup Scripts for AIX
Does anyone have experience setting up automatic Oracle startup scripts for AIX?
Any help would be greatly appreciated!
Thanks,
MikeSome recommandation here :
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b15658/strt_stp.htm#sthref255
Nicolas. -
WebLogic 6.1 Oracle Driver for AIX size
Can someone tell me the correct file size for the WebLogic 6.1 AIX driver
for Oracle - oci816_8/libweblogicoci37.so ?
I ask because our oci816_8 driver fails to load when making a connection
pool, giving an UnsatisfiedLinkError, although all the paths are correct,
but if I replace it with the oci817_8 driver, the oci817_8 driver loads OK,
but gives (as expected) a DBMS driver exception. This suggests our oci816_8
driver may be corrupt. The huge difference in the file sizes reinforces that
idea:
The file size on disk of our oci816_8 driver, which fails to load, is 197
kb.
The file size on disk of out oci817_8 driver, which loads OK, is 2.76 MB
DaveThanks to Kesava for the information we wanted. Looks like the driver is
probably OK. However, no joy getting it to load. We will now try the Oracle
drivers instead of the WebLogic drivers.
Dave
"Dave Lorde" <[email protected]> wrote in message
news:3c4be979$[email protected]..
Thanks Deepak, but we already have aixpatch.jar in our startup classpath.
It would be quite helpful if someone could answer my question on thecorrect
file size for the AIX oci816_8/libweblogicoci37.so
Dave
"Deepak Vohra" <[email protected]> wrote in message
news:[email protected]..
Dave
WebLogic AIX Platform Support
WebLogic 6.1 users who do not have Service Pack 1 must add the
$WL_HOME/lib/aix/aixpatch.jar to the beginning of the classpath in the
startWeblogic.sh start-up script.
http://www.weblogic.com/platforms/aix/index.html#top
Deepak
Dave Lorde wrote:
Can someone tell me the correct file size for the WebLogic 6.1 AIX
driver
for Oracle - oci816_8/libweblogicoci37.so ?
I ask because our oci816_8 driver fails to load when making a
connection
pool, giving an UnsatisfiedLinkError, although all the paths arecorrect,
but if I replace it with the oci817_8 driver, the oci817_8 driver
loads
OK,
but gives (as expected) a DBMS driver exception. This suggests ouroci816_8
driver may be corrupt. The huge difference in the file sizes
reinforces
that
idea:
The file size on disk of our oci816_8 driver, which fails to load, is197
kb.
The file size on disk of out oci817_8 driver, which loads OK, is 2.76
MB
>>>
Dave -
Error in shutdown script for bea weblogic
We have this error in the shutdown script of our bea weblogic:
./stopWebLogic.sh[33]: -Xms256m: not found.
using the Oracle OCI database driver
Shutdown initiated
The shutdown sequence has been initiated.the script is as follows:
echo "using the Oracle OCI database driver"
export ORACLE_HOME=/opt/oracle/product/8.1.7
export NLS_LANG=AMERICAN_AMERICA.UTF8
export ORACLE_CLIENT_VERSION=817
export ORACLE_API_VERSION=8
PATH=$PATH:$ORACLE_HOME/bin
SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
_HOME/lib
PATH=$JDK_HOME/bin:$PATH
export PATH
# Set application specific variables
DOMAIN_NAME=eGovStarters
SERVER_NAME=MyServer
WLS_PW=weblogic
# change to domain directory
cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
# Allow other users in group to see created files - i.e. logfiles
umask 027
# Set system classpath initially to contain WebLogic product JARs
CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
#!/bin/sh
# Weblogic start script for egovernment
# Based on Colin Brick's initial version
# Modified 02/04/03 - Colin Brick
# - included settings for Oblix from using SSO Assembly Test as example
# Set General environment variables (Should normally not be changed)
#Java settings
JDK_HOME=/opt/bea/jdk131/
export JDK_HOME
JAVACMD=java
JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""
export JAVA_OPTIONS
WEBLOGIC_PORT=51080
#Bea settings
BEA_HOME=/opt/bea
export BEA_HOME
WEBLOGIC_HOME=/opt/bea/wlserver6.1
export WEBLOGIC_HOME
BEA_SECURITY_POLICY=/opt/bea/wlserver6.1/lib/weblogic.policy
export BEA_SECURITY_POLICY
#Oracle settings
echo "using the Oracle OCI database driver"
export ORACLE_HOME=/opt/oracle/product/8.1.7
export NLS_LANG=AMERICAN_AMERICA.UTF8
export ORACLE_CLIENT_VERSION=817
export ORACLE_API_VERSION=8
PATH=$PATH:$ORACLE_HOME/bin
SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
_HOME/lib
PATH=$JDK_HOME/bin:$PATH
export PATH
# Set application specific variables
DOMAIN_NAME=eGovStarters
SERVER_NAME=MyServer
WLS_PW=weblogic
# change to domain directory
cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
# Allow other users in group to see created files - i.e. logfiles
umask 027
# Set system classpath initially to contain WebLogic product JARs
CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
domain_NAME=eGovStarters
SERVER_NAME=MyServer
WLS_PW=weblogic
# change to domain directory
cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
# Allow other users in group to see created files - i.e. logfiles
umask 027
# Set system classpath initially to contain WebLogic product JARs
CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
#Set the shared library path
if [ -n "$SHLIB_PATH" ]; then
SHLIB_PATH=$SHLIB_PATH:$SHARED_LIBRARY_PATH
else
SHLIB_PATH=$SHARED_LIBRARY_PATH
fi
export SHLIB_PATH
# Start weblogic
# change to weblogic home
cd $WEBLOGIC_HOME
PATH=$WL_HOME/bin:$JAVA_HOME/jre/bin:$JAVA_HOME/bin:$PATH
$JAVACMD -classpath $CLASSPATH -Dbea.home=$BEA_HOME -Dweblogic.Domain=$DOMAIN_NAME -Dweblogic.Name=MyServer weblogic.Admin -ur
l t3://localhost:$WEBLOGIC_PORT -username system -password $WLS_PW SHUTDOWNIt has obviously something to do with the line
JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""I googled for this Xms1024m, Xmx1024m and it turns out to be for memory management for the java virtual machine.
I don't know why it sais it can't find "-Xms256m" since it's not in the script.
Anyone with some experience in this field who can help me out?./stopWebLogic.sh[33]: -Xms256m: not found.
this can be produced by something like this:
javaoptions="-Xms256m" // or other option too
$javacmd $javaoptions
Now if javacmd has not been set, then $javacmd will be evaluated to the empty string, and the program to look for is the first part in $javaoptions, -Xms256m in our case. -
Shell script for batch compilation of forms 10g on AIX 5.3L AS
Hi All,
Can anybody provide me the Shell script for batch compilation of forms 10g and reports 10g on AIX 5.3L AS?
Regards,
SAMHi Alex,
I tried with the below script as well as the one you had posted.
ORACLE_HOME=/opt/oracle/OraHome_3
export ORACLE_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN
LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/jdk/jre/bin:$ORACLE_HOME/jdk/jre/bin/cla
ssic:$LIBPATH
export LIBPATH
cd ../forms
for i in `ls *.pll`
do
echo Compiling Library $i ....
$ORACLE_HOME/bin/frmcmp module=$i userid=mydbuser/mydbuser@mydb
batch=yes module_type=library
compile_all=yes window_state=minimize
done
export ORACLE_HOME=/opt/oracle/OraHome_3
export ORACLE_TERM=vt220
export LD_LIBRARY_PATH=/opt/oracle/OraHome_3/lib:/opt/oracle/OraHome_3/jdk/jre/l
ib:/opt/oracle/OraHome_3/jdk/jre/lib/i386:
cd ../forms
for i in `ls *.pll`
do
echo "Compiling Library $i ...."
/opt/oracle/OraHome_3/bin/frmcmp module_type=form userid=mydbuser/mydbuser@mydb
module=$i batch=yes compile_all=no
window_state=minimize upgrade=no
done
echo "PLL Compilation done"
But there was a same kind of error thst turning up all the time.
Compiling Library Agf.pll ....
Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
Forms 10.1 (Form Compiler): Release - Production
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
FRM-10043: Cannot open file.
Form not created
I hence updated the permissions on the pll as below
-rwxrwxrwx 1 oracle oinstall 335872 May 19 16:31 Agf.pll
But the problem is still persisting.
My environment details are as below.
I am working on Win XP machine. Connected to my AS via telnet and xmanager. I have set my DISPLAY to my local IP.
Is there any thing more that I need to do? If so then let me know.
Regards,
SAM -
Maven scripts for deploying WAR into Weblogic
Hello Folks,
I would need some help in deploying EAR/WAR into weblogic server.
I already have maven scripts for building but not for deploying. your help is appreciated.
Thanks.Hi Ank2cool,
Please see my findings, I have tested the Same "build.xml" again...My AdminServer
UserName is weblogic
and
password is weblogic
<project name="webservices-hello_world" default="deploy">
<property name="wls.username" value="weblogic" />
<property name="wls.password" value="weblogic" />
<property name="wls.hostname" value="localhost" />
<property name="wls.port" value="7001" />
<property name="wls.server.name" value="AdminServer" />
<target name="deploy">
<wldeploy action="deploy" name="PlanDemoEAR" source="PlanDemoEAR" user="${wls.username}"
password="${wls.password}1" verbose="true" adminurl="t3://${wls.hostname}:${wls.port}" targets="${wls.server.name}" />
</target>
</project>
Now when i run the AANT task ant deploy
OUTPUT:
Buildfile: build.xml
deploy:
[wldeploy] weblogic.Deployer -verbose -noexit -name PlanDemoEAR -source C:\JavaTest\PlanDemo\PlanDemoEAR -targets Admin
Server -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
[wldeploy] weblogic.Deployer invoked with options: -verbose -noexit -name PlanDemoEAR -source C:\JavaTest\PlanDemo\Pla
nDemoEAR -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -deploy
[wldeploy] <Dec 21, 2009 2:08:33 PM IST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for app
lication, PlanDemoEAR [archive: C:\JavaTest\PlanDemo\PlanDemoEAR], to AdminServer .>
[wldeploy] Task 1 initiated: [Deployer:149026]deploy application PlanDemoEAR on AdminServer.
[wldeploy] Task 1 completed: [Deployer:149026]deploy application PlanDemoEAR on AdminServer.
[wldeploy] Target state: deploy completed on Server AdminServer
[wldeploy]
[wldeploy] Target Assignments:
[wldeploy] + PlanDemoEAR AdminServer
BUILD SUCCESSFUL
========================TO REPRODUCE YOUR ISSUE I JUST CHANGED THE Password from weblogic to "*weblogic1*" or *"weblogic "* (i added a Single Space at the end of password) in the ANT script....But Server's Actual Password is still "weblogic"=======
OUTPUT:
[wldeploy] Caused by: java.lang.SecurityException: User: weblogic, failed to be authenticated.
[wldeploy] at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
[wldeploy] at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke(Unknown Source)
[wldeploy] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
[wldeploy] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
[wldeploy] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
[wldeploy] at weblogic.security.service.SecurityManager.runAs(Unknown Source)
[wldeploy] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
[wldeploy] at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
[wldeploy] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
[wldeploy] at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
BUILD FAILED
C:\JavaTest\PlanDemo\build.xml:12: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerExcep
tion: Unable to connect to 't3://localhost:7001': User: weblogic, failed to be authenticated.. Ensure the url represents
a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server.
Total time: 0 seconds
Above is exactly the same error what u are getting...
So please recheck the password provideed in the "build.xml" is correct..or any space added before or after the Password.....
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic Wonders Are Here) -
Shutdown script for Weblogic?
Hi,
I am looking for weblogic shutdown script?
Can anybody point me to the script if one is available.
Thanks in advance
Subba Reddyjust use the admnin utility from a shell and bat/cmd file. here's the
command:
java weblogic.Admin <url> SHUTDOWN system <password>
you may get the usage by just typing:
java weblogic.Admin
jason
Original Message <<<<<<<<<<<<<<<<<<On 3/10/00, 9:42:47 PM, subba reddy <[email protected]> wrote
regarding shutdown script for Weblogic?:
Hi,
I am looking for weblogic shutdown script?
Can anybody point me to the script if one is available.
Thanks in advance
Subba Reddy -
Ant scripts for weblogic 10.3
can any one send me antscripts for weblogic 10.3 for creating,configuring the domains
and deploying applications(stage,nostage and external_stage)
thanks & regards
abhi
Edited by: user10759597 on Jan 6, 2009 3:23 AMhi john,
firstly thanks for ur reply...
i tried ant scripts to deploy the applications but when i deploy the in any modes (stage,nosatge and external_stage) i'm getting errors...
kindly pls send me some ant scripts for deployments in all modes
or
send the syntax to deploy the application in stage, no stage and external_stage modes
i think u got my request right?
thanks in advance
abhi -
Can anybody provide AIX shell script for Oracle Apps R12 instance backup
Hi
Can anybody provide AIX shell script for Oracle Apps R12 instance backup? Manually, i am able to backup but i donot have shell script to schedule through crontab.
Help me please.
ThanksRman can be used for Database, not for Application tier. Again, I assumed you are looking for a script to backup the database. For the application tier, you can simply do a filesystem backup.
I still do not understand your concern? Is it about using crontab? If so, then check here --> man crontab <-- -
Ant build script for WebLogic Portal 10.3 projects
Hi Friends,
I am going thru this document http://download.oracle.com/docs/cd/E12840_01/wlw/docs103/guide/ideuserguide/build/conUseCustomAntBuild.html#metadata about building ant script for my portal project. The document does not state few things clearly. Can you please help me to understand.
It says:
To Build an EAR File Using the Ant Script:
1. Generate the Ant script for each project in the EAR.
2. Generate the Ant script for the EAR project.
3. Configure the execution environment of your shell by executing wl.home/common/bin/commEnv.sh
4. Change to the Eclipse directory for the EAR project.
5. Execute the desired target in the EAR project's Ant script as follows:
ant build archive -Dworkspace=workspacepath
A) When I generate ant script, workshop generates build.xml file in each project directory and that includes EAR project as well. Then, point 2 is not clear, how do I generate another ant script (build.xml) for the EAR project?
B) I do not understand, "change to the eclipse directory for the EAR project". Does it mean, change to the directory of EAR project folder which has build.xml?
C) in step-5, execute the desired target, when I execute it, how it will know where are other build.xml files for other projects?
Regards,
JTHi Greg,
I moved little bit but then got stuck with new kind of error.
a. First of all, my application has a 'data' project (.usr) file. When I try to generate ant scripts (build.xml), it says that 'data' project is not compatible with Workshop ant scripts. However, Workshop inbuilt EXPORT->EAR is able to build the projects without any error.
b. So, I thought, let's put a dummy build.xml file under 'data' project directory. This let ant build to proceed further. However, now it fails with error that <web project>/build.xml (line no. 122). Which is nothing but memory declaration (memoryMaximumSize="1024m"). The error says, 'unable to launch apt compiler', I am not able to understand what is it? The other projects' (ejb, controls etc.) build.xml has this declaration but they did not give this error, they built fine.
<web project>/build.xml
<target name="build" depends="init" description="compiles the source files; does not package the results">
<if>
<isreference refid="apt.factory.path"/>
<then>
<mkdir dir="${apt.src.output.dir}"/>
<for-each-java-src-path>
<if>
<available file="${.java.src.dir}"/>
<then>
<mkdir dir="${.java.src.output}"/>
<apt
sourcepath="${java.sourcepath}"
srcdir="${.java.src.dir}"
includes="${.java.src.include}"
excludes="${.java.src.exclude}"
destdir="${.java.src.output}"
preprocessdir="${apt.src.output.dir}"
classpathref="java.classpath"
factorypathref="apt.factory.path"
options="${apt.options}"
compile="false"
memoryMaximumSize="1024m"/>
</then>
</if>
</for-each-java-src-path>
</then>
</if>
Regards,
JT
Edited by: user6917422 on Apr 1, 2009 9:29 PM
Edited by: user6917422 on Apr 1, 2009 9:57 PM -
Shell script for online table redefinition
Hi,
Could someone help me out in building a script for online table redefinition in AIX 11g, moving the table into a new table space.
ThanksYou are embarking upon a voyage in which you will expend a substantial effort reinventing the wheel.
Look at Oracle DBMS_REDEFINITION built-in package.
http://www.morganslibrary.org/reference/pkgs/dbms_redefinition.html
and never do something outside the database, in a proprietary language, that can be done far more efficiently inside the RDBMS in a platform independent language.
In other words, inside the database, I could code your entire project with error handling, in far less than an 15 minutes including testing.
With a simple DDL statement, issued at the command prompt in SQL*Plus ... I could do it in less than 15 seconds: Your choice.
ALTER TABLE <table_name> MOVE TABLESPACE <new_tablespace_name>; -
Shell script for export backup in oracle 11g
Hi,
Oracle version 11.2.0..
O/S-AIX
How to write shell script for export full backup in oracle 11g and also need to remove 2 days of old backup.
Regards,
RajuHow to write shell script for export full backup in oracle 11g
Do you mean that export is your backup strategy ? is your database running in noarchivelog mode ? if so, then why ? if not so, then why not RMAN ?
need to remove 2 days of old backup.
If that mean remove files older than 2 days, you can use something like this :
$ find <absolute directory path> -mtime +2 -exec rm {} \; -
Script for getting mail if database is down
Hi Friends,
OS Version : IBM AIX 5,2
Oracle version : 9.2.0.7
I am executing the following script for getting mail alert if database is down. some how the script is not working
check_stat=`ps -ef|grep ${ORACLE_SID}|grep pmon|wc -l`;
oracle_num=`expr $check_stat`
if [ $oracle_num -lt 1 ]
then
exit 0
fi
# Test to see if Oracle is accepting connections
$ORACLE_HOME/bin/sqlplus -s "/as sysdba" > /tmp/check_$ORACLE_SID.ora
select name from v$database;
exit
# If not, exit and e-mail . . .
check_stat=`cat /tmp/check_$ORACLE_SID.ora|grep -i error|wc -l`;
oracle_num=`expr $check_stat`
if [ $oracle_num -ne 0 ]
then
mailx -s "$ORACLE_SID is down!" [email protected] < /tmp/check_$ORACLE_SID.ora
exit 16
fi
I am saving this as .sh file and executing at command prompt. It is just hanging, but not throwing any error.
I would like to know if there is anything to be modified in the script or please provide me any such script. Thanks in advanceHI there.
I have a script I use that works really well. It sends out an email only if the database is down and also reads an ini file to process a blackout period and a priority level of the database... High priority databases are monitored every 5 minutes and Medium priority databases every hour.
There are two scripts, the shell script and the .ini file and I have two cron entries...
Check script:_
#!/bin/ksh
# check_oracle_status.sh
# Script to check if Oracle db's are up and running.
# Script is passed a priority field and reads check_oracle_status.ini
# to determine which db's to check. If db is down an email is sent.
# Priority Levels:
# H - Checks db's with "H"igh Priority every 5 minutes (cron)
# M - Checks db's with "M"edium Priority every hour (cron)
# L - db's with "L"ow Priority currently not checked
# Script Change History:
# ======================
# October 29th, 2009 - Initial Creation
# Set environment
export SCRIPTHOME=/opt/oracle/admin/scripts
export INIFILE=$SCRIPTHOME/check_oracle_status.ini
export PRIORITY=$1
. $HOME/.profile
db=`grep -i ":$PRIORITY" $INIFILE | cut -d":" -f1`
check_database()
sqlplus <<! > $SCRIPTHOME/check.out
/ as sysdba
select * from dba_data_files;
exit
grep ORA- $SCRIPTHOME/check.out > $SCRIPTHOME/error.out
if (( $? )); then
echo ""
else
mailx -s "Oracle instance $i is currently UNAVAILABLE" +<email address>+ < $SCRIPTHOME/error.out
fi
for i in $db ; do
fields=`grep $i $INIFILE | awk -F':' '{ total = total + NF }; END {print total}'`
export ORACLE_SID=$i
if [ $fields -gt 2 ]; then
BLACKOUT_START=`grep -i "$ORACLE_SID" $INIFILE | cut -d":" -f3`
BLACKOUT_END=`grep -i "$ORACLE_SID" $INIFILE | cut -d":" -f4`
CURRENT_HOUR=`date +%H`
CHECK_BASE=YES
if [ $BLACKOUT_START -gt $BLACKOUT_END ]; then
(( $CURRENT_HOUR >= $BLACKOUT_START || $CURRENT_HOUR <= $BLACKOUT_END )) && CHECK_BASE=
else
(( $CURRENT_HOUR >= $BLACKOUT_START && $CURRENT_HOUR <= $BLACKOUT_END )) && CHECK_BASE=
fi
if [ -n "$CHECK_BASE" ]; then
check_database
fi
else
check_database
fi
done
rm $SCRIPTHOME/check.out $SCRIPTHOME/error.out
INI File:_
oracle1:L
oracle2:M:17:08
oracle3:M
oracle5:M:17:08
oracle6:H
oracle7:M:17:08
oracle8:M
oracle9:M
Where oracle1,2,3 etc is your sid
L M and H your priority level
17 is blackout start (5 PM)
08 is blackout end (8 AM)
Note: Blackout is just a start hour and an end hour and must contain both or none and my script can only process one blackout per database. I guess if you
needed a second blackout you could add another line with different times for that sid
Cron entries:_
# Check Oracle Status
# The check_oracle_status.sh script monitors "H"igh priority databases every 5 minutes
# and "M"edium priority databases every hour
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /opt/oracle/admin/scripts/check_oracle_status.sh H > /dev/null 2>&1
0 * * * * /opt/oracle/admin/scripts/check_oracle_status.sh M > /dev/null 2>&1
Not sure if you require blackouts or priority levels but this setup works great at our site.
Hope this helps. -
Hello,
does anyone know sample wlst scripts for creating domain for soa suite 11.1.1.4 on top of weblogic 10.3.4?
I try to create a domain having a cluster with two managed servers in two linux machines.
Any help appreciated.
regards, MattiPlease refer -
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13715/domains.htm
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13715/intro.htm#WLSTG112
Regards,
Anuj -
Anyone tried the new Weblogic Scripting Tool (WLST)?
Has anyone tried using the new WebLogic Scripting Tool (WLST) that was recently
posted on the dev2dev WebLogic Utilities site: http://dev2dev.bea.com/resourcelibrary/utilitiestools/adminmgmt.jsp
It looks to be a handy tool that is built upon jython and enables you to easily
navigate, inspect and manipulate the WebLogic MBean tree on a running server.
It also has a nice scripting tool which allows you to convert a config.xml file
into a script that can be run to recreate a domain or specific resources within
the domain. This is exactly something I have been looking for because we occasionally
recreate domains or subsets of a domain for testing and POC purposes.
The utility is fairly well documented and works well for the most part. The only
issue I have run into so far is that is does not seem to understand JMS Distributed
Destinations. When I try to convert a config.xml that contains a DD to a script
it throws a null pointer exception. I have not tried a cluster yet.
I noticed the utility was authored by someone at BEA. Is there potential that
BEA will support this in the future if it catches on? Has anyone had experience
with WLST or jython that would cause you to reccomend (or not) using it?
Thanks.Darryl,
Thanks for the valuable feedback. My comments are inline.
Darryl Stoflet wrote:
As a fairly long time wlshell user who recently started testing wlst there are
few features I have found lacking in wlst.
1. For monitoring purposes I am frequently using the -g and -r options to wlshell's
get command for graphing and repeating respectivelyI haven't looked at -g and -r options in wlshell, but will do so.
Although there is no graphical monitoring of attributes in wlst, but
there is certainly some monitoring capability (which will be enhanced
further in the coming version). Please take a look at the
monitorAttribute() function.
wls:/(offline)> help('monitorAttribute')
Description:
Monitors the specified attribute every by polling every interval.
Syntax:
monitorAttribute(attributeName, interval, monitorFile)
attributeName = Name of the attribue that you would like to monitor.
interval = Time (in seconds) to wait before the next fetch
monitorFile=[optional] File path where the monitored data will be
written to.
Example:
wls:/mydomain/runtime/ServerRuntimes/myserver/ExecuteQueueRuntimes/weblogic.kernel.Default>
monitorAttribute("ServicedRequestTotalCount",10)
Press Return to quit monitoring
Monitoring started for attribute ServicedRequestTotalCount
wls:/(offline)>
>
2. wlshell 2.0 adds the option when connecting to the admin server to also connect
to all managed servers in that domain. This is a nice feature for monitoring because
you then have access to all the runtime mbeans in each managed serverYes, this indeed seems to be a very nice feature. We will consider this
for our next release.
>
3. There is not a good way to pass cmd line options(variables) to wlst. In wlshell
I can send cmd line options via -v. I have tried something similar with wlst using
-loadProperties but this is a little laborious because I do not necessarily want
to create a properties file when a passing in only one or two variables. Also
I find loadProperties lacking somewhat (see 4 below)ok, I just realised that there is indeed a bug in wlst where the command
line arguments are not being honored. In Jython one can access the
command line arguments from the sys.argv variable. For example,
java weblogic.WLST -i foo.py var1 var2 var3
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to Weblogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> print sys.argv
['foo.py', 'var1', 'var2', 'var3']
wls:/offline>
But this isn't working properly, please keep using the loadProperties
untill this has been fixed.
>
4) loadProperties treats all created variables as strings. While this is understandable
from the perspective that getProperty returns a string, it would be nice if wlst
was smart enough that when a property is numbers only its an int, otherwise a
string etc.
wlshell does this logic/conversion for you which really simplifies calling methods
that expect the particular datatype. To get around this problem you can create a script file say,
variables.py which would look like,
# variables that will be used
theInterpreter.set('var1',10)
theInterpreter.set('var2','i am a string')
java weblogic.WLST variables.py
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to Weblogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/(offline)> print var1
10
wls:/(offline)> print var2
'i am a string'
>
5. I'd like to be able to send cmd output etc to a file while running within wlst.
In wlshell its a simple as adding >> filename to the end of the command. In wlst it is not as simple as doing >>, it is more than that. You can
choose any output stream to direct your output to. In your case you can
create a FileOutputStream and route the output to this stream for any
particular command.
Example,
# create a file output stream say fos
from java.io import FileOutputStream
fos = FileOutputStream("output.txt")
# save the default output stream to a variable to
# switch it back
sys.stdout=fos
# Now all output for any function will go to output.txt
ls()
cd('foo')
# after done with your functions switch it back
sys.stdout=origOutput
This is the right Jython way to do it. This works for all output streams
, very useful when you embed an interpreter in a servlet and would like
to display the output via a PrintStream etc.
>
>
All in all wlst is a nice tool. Personally if the above features were added it
would be much easier to transistion to wlst for good.
Also I really like the wlst offline tool. Its nice to be able to do the whole
create and configure domain process with one tool. Will this be supported. Yes indeed. We are working on merging both the tools into one.
I do
not want to rely on it too much if it will not work in future weblogic versions.It will be supported in future release of weblogic.
Thanks,
-satya
>
Thanks,
Darryl
"Steve Hess" <[email protected]> wrote:
Hello,
I am the BEA Product Manager behind WLST.
WLST, as it appears today on dev2dev, is an early release version of
a tool that
BEA does intend to support as part of our next major release. We decided
to issue
early versions of the tool because of the demand for a supported scripting
solution,
and to generate feedback from our user community. I encourage you to
work with
WLST, and assure you that this tool represents our current direction
in management
scripting.
Also note, this newsgroup can be used to issue questions, concerns and
feedback
about WLST. The engineering and PM team will monitor this group and
respond to
your questions as quickly as we can. While we will not be able to respond
to
every feature request, we really value your suggestions, and will endeavor
to
improve the tool in ways that meet your real-world needs.
Cheers,
Steve Hess
Director, WLS PM
"George Lupanoff" <[email protected]> wrote:
Has anyone tried using the new WebLogic Scripting Tool (WLST) that was
recently
posted on the dev2dev WebLogic Utilities site: http://dev2dev.bea.com/resourcelibrary/utilitiestools/adminmgmt.jsp
It looks to be a handy tool that is built upon jython and enables you
to easily
navigate, inspect and manipulate the WebLogic MBean tree on a running
server.
It also has a nice scripting tool which allows you to convert a config.xml
file
into a script that can be run to recreate a domain or specific resources
within
the domain. This is exactly something I have been looking for because
we occasionally
recreate domains or subsets of a domain for testing and POC purposes.
The utility is fairly well documented and works well for the most part.
The only
issue I have run into so far is that is does not seem to understandJMS
Distributed
Destinations. When I try to convert a config.xml that contains a DDto
a script
it throws a null pointer exception. I have not tried a cluster yet.
I noticed the utility was authored by someone at BEA. Is there potential
that
BEA will support this in the future if it catches on? Has anyone had
experience
with WLST or jython that would cause you to reccomend (or not) using
it?
Thanks.
Maybe you are looking for
-
HT1329 How do I move music from one iPod to another?
I just bought an iPhone and want to move music from my old iPod to my new phone. Any suggestions?
-
No authorization on HANA cloud platform odata and UI5
Hi there, I'm building a SAPUI5 app on the trial cloud. I have a local table in the xs application, which i present via odata. In my SAPUI5 app i have a list showing the content of this table. I currently have the whole app working, but with authoriz
-
My iBook is in Chinese how do I change it to English?
I down loaded an iBook which had the language as Chinese and English - it down loaded in Chinese -how do I change this to English?
-
WM Putaway (LM03 + Change Bin at confirmation)
Im trying to use standard radio frequency transaction for <u>Putaway by TO</u> (LM03 *) to change the destination bin for a single-step confirmation TO during confirmation, but I only get <u>Selection not possible</u> message. Is there any funct
-
Dear all, One of my client have a scenario in purchase invoice payment #They are purchasing from the suppliers for 120 days payment terms. but they need to pay a certain % of interest on that( For Ex: 5 %). May be they make monthly payments and inter