Shell script for running obiee 11g services in linux
Hi
We have a requirement to create a shell script inorder to run OBIEE 11G services in Linux OS. It would be very helpful and greatly appreciated if any pointer(s)/documentation on this is provided.
Thanks
we had run the scripts using nohup "nohup ./startWeblogicServer.sh &" and reopened putty to run other nodemanager and opmnctl scripts, now everything has started and working fine.
Thanks all..
Similar Messages
-
Automation of OBIEE 11G services in Linux OS
Hi
We have a requirement for the automation of OBIEE 11G services in Linux OS whenever system reboots. I came to know that this can be achieved by a shell script, however, not certain about it. It would be grateful if any workaraound/pointers/documentation to achieve this is shared.
Thanks.HI
The mentioned link has scripts for linux, but I need for windows and I tried some script which I found online but I am getting some errors which are in bold below
C:\Oracle\Middleware\wlserver_10.3\server\bin>installAdminServer.cmd
C:\Oracle\Middleware\wlserver_10.3\server\bin>SETLOCAL
C:\Oracle\Middleware\wlserver_10.3\server\bin>set OBI_HOME=C:\Oracle\Middleware
C:\Oracle\Middleware\wlserver_10.3\server\bin>set DOMAIN_NAME=bifoundation_domai
n
C:\Oracle\Middleware\wlserver_10.3\server\bin>set USERDOMAIN_HOME=C:\Oracle\Midd
leware\user_projects\domains\bifoundation_domain
C:\Oracle\Middleware\wlserver_10.3\server\bin>set SERVER_NAME=AdminServer
C:\Oracle\Middleware\wlserver_10.3\server\bin>set PRODUCTION_MODE=true
C:\Oracle\Middleware\wlserver_10.3\server\bin>set JAVA_HOME=C:\Oracle\Middleware
\Oracle_BI1\jdk
C:\Oracle\Middleware\wlserver_10.3\server\bin>cd C:\Oracle\Middleware\user_proje
cts\domains\bifoundation_domain
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>call C:\Oracle\Mi
ddleware\user_projects\domains\bifoundation_domain\bin\setDomainEnv.cmd
SVR_GRP =
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>set CLASSPATH=C:\
Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_p
atch.jar;C:\Java\JDK16~1.0_3\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\
lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Ora
cle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MID
DLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.
1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:
\Oracle\MIDDLE~1\oracle_common\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDL
E~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\Middleware\Oracl
e_BI1\bifoundation\jdbc\jdk16\bijdbc.jar;;C:\Oracle\MIDDLE~1\patch_wls1035\profi
les\default\sys_manifest_classpath\weblogic_patch.jar;C:\Java\JDK16~1.0_3\lib\to
ols.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDL
E~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblo
gic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webserv
ices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~
1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\oracle_common\modu
les\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\webl
ogic.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.dms_11.1.1\dms.jar;C:
\Oracle\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;C:\O
racle\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;C:\Oracle\Mi
ddleware\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;C:\Oracle\MIDDLE~1\ORA
CLE~1\soa\modules\commons-cli-1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1\soa\modules\or
acle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\orac
le.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient
.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
* To start WebLogic Server, use the password *
* assigned to the system user. The system *
* username and password must also be used to *
* access the WebLogic Server console from a web *
* browser. *
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>rem *** Set Comma
nd Line for service to execute within created JVM
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>set CMDLINE="-ser
ver -Xms512m ûXmx512m -XX:MaxPermSize=512m -XX:+UseSpinning -Dweblogic.Producti
onModeEnabled=true -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.hom
e=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV
~1.3\server -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=
11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Log
ger -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\BIFOUN~1 -Djrockit.optfile
=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Dora
cle.server.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\BIFOUN~1\config\FMWCON
~1\servers\AdminServer -Doracle.domain.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\do
mains\BIFOUN~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=C:\Oracle\MIDDLE~1\US
ER_P~1\domains\BIFOUN~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Oracle\
MIDDLE~1\USER_P~1\domains\BIFOUN~1\config\FMWCON~1\arisidprovider -Doracle.secur
ity.jps.config=C:\Oracle\MIDDLE~1\USER_P~1\domains\BIFOUN~1\config\fmwconfig\jps
-config.xml -Doracle.deployed.app.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\BIFOUN
~1\servers\AdminServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alte
rnateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:
\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.hand
ler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dbi.oracl
e.home=C:\Oracle\Middleware\Oracle_BI1 -DEPM_ORACLE_HOME=C:\Oracle\Middleware\Or
acle_BI1 -Dweblogic.MaxMessageSize=50000000 -DEPM_ORACLE_HOME=C:\Oracle\Middlewa
re\Oracle_BI1 -DHYPERION_HOME=C:\Oracle\Middleware\Oracle_BI1 -DEPM_ORACLE_INSTA
NCE=novalue -Dhyperion.home=C:\Oracle\Middleware\Oracle_BI1 -DEPM_REG_PROPERTIES
_PATH=C:\Oracle\MIDDLE~1\USER_P~1\domains\BIFOUN~1\config\fmwconfig -Depm.useApp
licationContextId=false -Doracle.biee.search.bisearchproperties=C:\Oracle\Middle
ware\Oracle_BI1\bifoundation\jee\BISearchConfig.properties -Dweblogic.management
.clearTextCredentialAccessEnabled=true -Doracle.notification.filewatching.interv
al=2000 -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.secur
ity.SSL.enableJSSE=true -Dfile.encoding=utf-8 -Doracle.ecsf.security.service=ora
cle.biee.search.security.BISearchSecurityService -Doracle.ecsf.configuration.cla
ss=oracle.biee.search.services.BISearchServiceConfiguration -Dxdo.server.config.
dir=C:\Oracle\Middleware\user_projects\domains\bifoundation_domain\config\bipubl
isher -DXDO_FONT_DIR=C:\Oracle\Middleware\Oracle_BI1\common\fonts -Drtd.instanc
eName=RTD_AdminServer -Dem.oracle.home=C:\Oracle\Middleware\oracle_common -Djava
.awt.headless=true -Dweblogic.management.discover=true -Dwlw.iterativeDev=false
-Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=C:\O
racle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath -classpa
th @C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin\classpath.txt -Dweblogic.Name=Admin
Server -Dweblogic.management.username= -Dweblogic.ProductionModeEnabled=true -Dj
ava.security.policy=\"C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy\"
weblogic.Server"
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>rem *** Set up ex
trapath for win32 and win64 platform separately
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>if "true" == "tru
e" set EXTRAPATH=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MI
DDLE~1\WLSERV~1.3\server\bin;C:\Java\JDK16~1.0_3\jre\bin;C:\Java\JDK16~1.0_3\bin
;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>if "false" == "tr
ue" set EXTRAPATH=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\64\;C:\Oracle\
MIDDLE~1\WLSERV~1.3\server\bin;C:\Java\JDK16~1.0_3\jre\bin;C:\Java\JDK16~1.0_3\b
in;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\64\oci920_8
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>if "false" == "tr
ue" set EXTRAPATH=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\;C:\Oracle
\MIDDLE~1\WLSERV~1.3\server\bin;C:\Java\JDK16~1.0_3\jre\bin;C:\Java\JDK16~1.0_3\
bin;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>rem *** Install t
he service
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>"C:\Oracle\MIDDLE
~1\WLSERV~1.3\server\bin\beasvc" -install
BEA Default Service installed.
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>-svcname:"Oracle_
bifoundation_domain_AdminServer"
The filename, directory name, or volume label syntax is incorrect.
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>-javahome:"C:\Jav*
a\JDK16~1.0_3"
The filename, directory name, or volume label syntax is incorrect.
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>-execdir:"C:\Orac
le\Middleware\user_projects\domains\bifoundation_domain" -maxconnectretries:"" -
host:"" -port:"" -extrapath:"C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;
C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Java\JDK16~1.0_3\jre\bin;C:\Java\JDK
*16~1.0_3\bin;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8" -passw*
*ord:"" -cmdline:"-server -Xms512m ûXmx512m -XX:MaxPermSize=512m -XX:+UseSpinning*
-Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=C:\Oracle\MIDDLE~1
*\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\O*
racle\MIDDLE~1\WLSERV~1.3\server -Dcommon.components.home=C:\Oracle\MIDDLE~1\OR
ACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.
logging.impl.Jdk14Logger -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\BIFOU
N~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jroc
ket_optfile.txt -Doracle.server.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\B
IFOUN~1\config\FMWCON~1\servers\AdminServer -Doracle.domain.config.dir=C:\Oracle
*\MIDDLE~1\USER_P~1\domains\BIFOUN~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=*
C:\Oracle\MIDDLE~1\USER_P~1\domains\BIFOUN~1\config\FMWCON~1\carml -Digf.arisid
stack.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\BIFOUN~1\config\FMWCON~1\arisidpr
ovider -Doracle.security.jps.config=C:\Oracle\MIDDLE~1\USER_P~1\domains\BIFOUN~1
*\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\Oracle\MIDDLE~1\US*
ER_P~1\domains\BIFOUN~1\servers\AdminServer\tmp\_WL_user -Doracle.deployed.app.e
xt=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\ora
cle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1
-Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEna
bled=false -Dbi.oracle.home=C:\Oracle\Middleware\Oracle_BI1 -DEPM_ORACLE_HOME=C:
*\Oracle\Middleware\Oracle_BI1 -Dweblogic.MaxMessageSize=50000000 -DEPM_ORACLE_HO*
ME=C:\Oracle\Middleware\Oracle_BI1 -DHYPERION_HOME=C:\Oracle\Middleware\Oracle_B
I1 -DEPM_ORACLE_INSTANCE=novalue -Dhyperion.home=C:\Oracle\Middleware\Oracle_BI1
-DEPM_REG_PROPERTIES_PATH=C:\Oracle\MIDDLE~1\USER_P~1\domains\BIFOUN~1\config\f
mwconfig -Depm.useApplicationContextId=false -Doracle.biee.search.bisearchproper
ties=C:\Oracle\Middleware\Oracle_BI1\bifoundation\jee\BISearchConfig.properties
-Dweblogic.management.clearTextCredentialAccessEnabled=true -Doracle.notificatio
n.filewatching.interval=2000 -Dweblogic.security.SSL.ignoreHostnameVerification=
true -Dweblogic.security.SSL.enableJSSE=true -Dfile.encoding=utf-8 -Doracle.ecsf
*.security.service=oracle.biee.search.security.BISearchSecurityService -Doracle.e*
csf.configuration.class=oracle.biee.search.services.BISearchServiceConfiguration
-Dxdo.server.config.dir=C:\Oracle\Middleware\user_projects\domains\bifoundation
domain\config\bipublisher -DXDOFONT_DIR=C:\Oracle\Middleware\Oracle_BI1\common*
*\fonts -Drtd.instanceName=RTD_AdminServer -Dem.oracle.home=C:\Oracle\Middleware*
*\oracle_common -Djava.awt.headless=true -Dweblogic.management.discover=true -Dw*
lw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dw
eblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manife
st_classpath -classpath @C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin\classpath.txt
-Dweblogic.Name=AdminServer -Dweblogic.management.username= -Dweblogic.Productio
nModeEnabled=true -Djava.security.policy=\"C:\Oracle\MIDDLE~1\WLSERV~1.3\server\
lib\weblogic.policy\" weblogic.Server"
The filename, directory name, or volume label syntax is incorrect.
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>-log:"C:\Oracle\M
iddleware\wlserver_10.3\..\\user_projects\domains\bifoundation_domain\servers\Ad
minServer\logs\service_start.log"
The filename, directory name, or volume label syntax is incorrect.
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>ENDLOCAL
C:\Oracle\Middleware\user_projects\domains\bifoundation_domain>ENDLOCAL
I don't know how to solve those errors, this is highly important for me can anyone please help me on this.
Thanks -
Running OBIEE 11g services for Linux
Hi everybody,
I would like to know the way to start OBIEE 11g services in a Linux (Red Hat) machine.
As far as I have seen in the web, there are four main steps to perform in order to make OBIEE running:
Run WebLogic.
Run NodeManager.
Run ManagedServer.
Run OBI Components (using OPMN).
The problem I have is that in our installation there is no ManagedServer (bi_server1). Therefore I deduce that OBIEE was installed as simple version (actually I don’t know where I can see whether it is simple or enterprise version). So the question in my case is: how to run OBIEE services without ManagedServer? Otherwise, is there any way to upgrade from simple to enterprise version, or I should just uninstall and then install the enterprise version?
Thanks in advance,
Hibai.Thanks for the reply Sasi. Now I know that we have a Simple Installation.
Anyway, I'm still not able to make OBIEE available. If I execute the commands you provided me, I see some errors in corresponding created files. However, running them without nohup option and without any other parameter (just the .sh file), WebLogic appears available and OBI components seem to be running as well:
Processes in Instance: instance1
---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
coreapplication_obiccs1 | OracleBIClusterCo~ | 11313 | Alive
coreapplication_obisch1 | OracleBIScheduler~ | 11312 | Alive
coreapplication_obijh1 | OracleBIJavaHostC~ | 11314 | Alive
coreapplication_obips1 | OracleBIPresentat~ | 11315 | Alive
coreapplication_obis1 | OracleBIServerCom~ | 11311 | Alive
Am I doing something wrong? In principle the steps you mentioned (which are also those ones that I was executing the previous days) have been executed properly, so I'm a bit confused.
Thanks again,
Hibai. -
Starting OBIEE 11g services in Linux
Hi Gurus,
I have installed OBIEE 11g on Linux 32 bit machine, Procedure i used to follow to start the services, using putty:
1. Run ./startWeblogic.sh after it comes to running mode, it comes back to $
2. After it returns to $, i start nodeManager.sh
but now, after i do the first step from putty, though running mode has come, it is not coming back to $ where i can start the node manager, hence i am unable to start node manager from the $ console
Is this a server problem? pls help..
I did Ctrl+c and tried starting startWeblogic.sh again, but its again stopping at running mode and not returning to $
Kindly advice what can be done
Thanks,
Sree.we had run the scripts using nohup "nohup ./startWeblogicServer.sh &" and reopened putty to run other nodemanager and opmnctl scripts, now everything has started and working fine.
Thanks all.. -
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 {} \; -
Document for OBIEE 11g services
Hi Gurus,
I have a requirement wherein we need to run the OBIEE 11g services(Weblogic server and node manager) in background in AIX instance. If anyone has a document or step by step procedure for that, please share it.
Thanks in Advance.
RaghuHey guys..
I got solution for the above post from my ofc Techhelp. Below is the proceedure to start the Obiee11g services on background-AIX.
Consider the below steps to run the services in background.
To start the Weblogic Server:
Go to the below directory location
$OBIEE_HOME /user_projects/domains/bifoundation_domain
Command:
$nohup sh ./startWebLogic.sh -Dweblogic.management.username=weblogic -Dweblogic.management.password=<Password> > wls_start.log &
$tail –f wls_start.log
To start the Node Manager:
Go to the below directory location
$OBIEE_HOME/wlserver_10.3/server/bin
Command:
$nohup ./nodemanager.sh &
To Start OPMNCTL:
Go to the below directory location
$OBIEE_HOME /instances/instanceN/bin
Command:
./opmnctl startall
./opmnctl stopall
./opmnctl status
Thanks,
Raghu Nagadasari -
Hi,
I have written shell script for below scenarios, can you please guide me to write this as correct way, requirment is,
1. i need to connect the database which is on unix server , but before connecting the DB some of the files needs to be removed from \tmp directory.
2. once removed the script need to connect the database and call the sql file which is in \tmp directory.
3. the output files will be stored in \tmp directory start with DB name.
4. finally csv files needs to be transferred to local windows with help of FTP. please find below the script
#!/bin/sh
rm -f /tmp/dbmon/DB1*
CONNSTRING=username/PASSWORD@service
sqlplus -s $CONNSTRING @/tmp/STATS.sql << EOF
EXIT;
EOF
HOST='xxxxx'
USER='xxxxx'
PASSWD='xxxxxx'
FILE='E:\STATS\DB1.*'
cd /tmp/dbmon
ftp -n -v $HOST << EOT
user $USER $PASSWD
prompt
mput $FILE
bye
EOT
EXIT;
EOF
Thanks
Edited by: ASP on Nov 18, 2011 4:45 PMHi ASP
It's always a good idea to write entries to timestamped log file without which you will never know where the script went wrong or failed.
This is not tested but just a small example
#!/bin/sh
export LOG_DIR=/tmp/log
export LOGFILE=$LOG_DIR/`basename $0`_${TIMESTAMP}.log
if [ ! -d $LOG_DIR ]
then
mkdir $LOG_DIR
fi
echo "Removing the temporary files from /tmp/dbmon at `date +%Y%m%d_%H:%M:%S`" | tee -a $LOG_FILE
rm -f /tmp/dbmon/DB1*
CONNSTRING=username/PASSWORD@service
echo "Run SQLPlus file" | tee -a $LOG_FILE
sqlplus -s $CONNSTRING @/tmp/STATS.sql << EOF
EXIT;
EOF
echo "Now FTP the files to windows box " | tee -a $LOG_FILE
HOST='xxxxx'
USER='xxxxx'
PASSWD='xxxxxx'
cd /tmp/dbmon
ftp -vn $HOST <<EOF
quote USER $USER
quote PASS $PASSWD
ascii
cd E:\STATS
mput DB1.*
bye
EOF -
Need Help in creating Unix Shell Script for database
Would be appreciable if some one can help in creating unix shell script for the Oracle DB 10,11g.
Here is the condition which i want to implement.
1. Create shell script to create the database with 10GB TB SPACE and 3 groups of redo log file(Each 300MB).
2. Increase size of redolog file.
3. Load sample schema.
4. dump the schema.
5. Create empty db (Script should check if db already exists and drop it in this case).
6. Create backup using rman.
7. restore backup which you have backed up.This isn't much of a "code-sharing" site but a "knowledge-sharing" site. Code posted me may be from a questioner who has a problem / issue / error with his code. But we don't generally see people writing entire scripts as responses to such questions as yours. There may be other sites where you can get coding done "for free".
What you could do is to write some of the code and test it and, if and when it fails / errors, post it for members to make suggestions.
But the expectation here is for you to write your own code.
Hemant K Chitale -
HI,
i have written some java code Database backup but there are some problems with that so now i need to write shell script for db backup.
what i was doing in java code i was running command like that
/usr/local/bin/tar cvzf /export/home/monitor/FILE_20091005.tar.gz FILES/*20091005.*which compress the all *20091005* files (myisam table files)
but after compression file doesn't extract
so i have to write shell script for that ..... can any body guide me how can i write that kind of script and put it in cron job.
thankssoundar wrote:
Hi all,
I have migrated database from 8i to 10gr2.For Backup in 8i, we used a RMAN shell script (scheduled uding cron tab) to backup the database to Tape.(VERITAS BACKUP).
I am new to 10G.I checked out the options to backup the database using Oracle Enterprise manager DB console.
http://www.oracle.com/technology/obe/10gr2_db_single/ha/rman/rman_otn.htm#t1d
I am planning to take a test backup using the steps mentioned inthe above url.Could any one suggest whcih is the best option for database backup,eiether to use Oracle Enterprise manager DB console or thru RMAN shell script for backup..?
Edited by: soundar on Mar 9, 2010 10:53 PMDear soudar
I woudn't suggest you to work with EM if you want to be a professional DBA. Start learning RMAN and use CLI instead of GUI
Those who live by the GUI, die by the GUI -
Shell Script for Startup and Shutdown the database
Hi,
i want Shell Script for Startup and Shutdown the database in Solaries.
could any one can hep me where i can get this script. or send to me to [email protected]
Thanks & Regards,
Gangi reddySHUTDOWN
SHUTDOWN ABORT]
Shuts down a currently running Oracle instance, optionally closing and dismounting a database.
Terms
Refer to the following list for a description of each term or clause:
ABORT
Proceeds with the fastest possible shutdown of the database without waiting for calls to complete or users to disconnect.
Uncommitted transactions are not rolled back. Client SQL statements currently being processed are terminated. All users currently connected to the database are implicitly disconnected and the next database startup will require instance recovery.
You must use this option if a background process terminates abnormally.
IMMEDIATE
Does not wait for current calls to complete or users to disconnect from the database.
Further connects are prohibited. The database is closed and dismounted. The instance is shutdown and no instance recovery is required on the next database startup.
NORMAL
NORMAL is the default option which waits for users to disconnect from the database.
Further connects are prohibited. The database is closed and dismounted. The instance is shutdown and no instance recovery is required on the next database startup.
TRANSACTIONAL [LOCAL]
Performs a planned shutdown of an instance while allowing active transactions to complete first. It prevents clients from losing work without requiring all users to log off.
No client can start a new transaction on this instance. Attempting to start a new transaction results in disconnection. After completion of all transactions, any client still connected to the instance is disconnected. Now the instance shuts down just as it would if a SHUTDOWN IMMEDIATE statement was submitted. The next startup of the database will not require any instance recovery procedures.
The LOCAL mode specifies a transactional shutdown on the local instance only, so that it only waits on local transactions to complete, not all transactions. This is useful, for example, for scheduled outage maintenance.
Usage
SHUTDOWN with no arguments is equivalent to SHUTDOWN NORMAL.
You must be connected to a database as SYSOPER, or SYSDBA. You cannot connect via a multi-threaded server. For more information about connecting to a database, see the CONNECT command earlier in this chapter.
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1013607
Joel Pérez -
Automation of OBIEE 11G services in Windows OS
Hi
I had put in lot of effort to find a way to automate the OBIEE 11G services in Windows OS whenever the system reboots but to no avail. Any workaround to achieve this would be very helpful and greatly appreciated.
ThanksHey, You can check this out.... It works for me - OBIEE on system startup for windows machine | iSimplyShare.com</title>--> <title>OBIEE on system startup …
-
Need Shell Script for picking the files
Hi,
I want to write a shell script for piking the files in a sequence order (according to filename with time stamp) from the sorce FTP server ..
Requirement is in the source directory I'm getting files (Jain_1.xml , Jjain_2.xml, Jain_3.xml .. ect..) at present my file adapter is picking all the files at a time but i want to pick one by one... that to first i want to Jain_1.xml after finish the processing of the file then only my file adapter should pick the next file ( Jain_2.xml ) .
so.. all the forum mates suggest me to write a shell script.. but where i have to write the s hell script. and where i have to deploy this script.... my Xi is running on UNIX ... so please sugest me the procedure ...
Regards
JainHi,
Why dont you use the option EOIO in which files will be picked up in order and will be proccessed in sequence....one after another....
Regards,
Sreeni. -
Shell script for archive log transfer
hi
I dont want to reinvent the wheel.
I am looking for shell script for log shipping to provide standby db.
What I want to do is, get the last applied archived log number from alert.log
Copy the files from archive destination according to this value.
CheersIf you don't want to re-invent the wheel you use Dataguard, no scripts.
And your script should use the dictionary, instead of some bs method to read the alert.
v$archived_log has all information!
Also as far as I know, the documentation describes manual standby.
So apparently you not only don't want to reinvent the wheel, but you want the script on a silver plate on your doorstep!
Typical attitude of most DBAs here. Use OTN for a permanent vacation.
Sybrand Bakker
Senior Oracle DBA -
Shell script for below pl/sql script dbms_file_transfer
Please let me know how tt write the shell script for below pl/sql script dbms_file_transfer it is
I have trasfer the files from asm into filesystem .
it is working . but i have to put in the loop
begin
dbms_file_transfer.copy_file(
source_directory_object => 'src',
source_file_name => 'ncsn',
destination_directory_object => 'dest',
destination_file_name => 'ncsn');
end;
Edited by: user8680248 on 27/10/2009 20:55user8680248 wrote:
Please let me know how tt write the shell script for below pl/sql script dbms_file_transfer it is
I have trasfer the files from asm into filesystem .
it is working . but i have to put in the loop
begin
dbms_file_transfer.copy_file(
source_directory_object => 'src',
source_file_name => 'ncsn',
destination_directory_object => 'dest',
destination_file_name => 'ncsn');
end;What database version?
What are you trying to do exactly?
It's working but you have to put it in a loop. Fine, what's the problem you are having?
begin
loop
exit when ... whatever the exit condition is ...
dbms_file_transfer.copy_file(
source_directory_object => 'src',
source_file_name => 'ncsn',
destination_directory_object => 'dest',
destination_file_name => 'ncsn');
end loop;
end; -
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
Maybe you are looking for
-
Phone crashes every time i try to update software
ok so from the very first day i got my phone when i tried to do the first software update it gets to the screen that says "preparing iphone for software update" and never goes anywhere i left it like that for hours and nothing was happening. so i tri
-
Log Archive Failed via dbacockpit
Hi, I've scheduled Oracle db log archive via dbacockpit. It failed at 1am, but it completed successfully later at 1pm as scheduled. So far, had 2 such occurences. Any where to diagnose the intermittent error ? Please enlighten. TIA ! 05.05.2009 0
-
Servlet error: Error loading filter 'ADFBindingFilter'
I use JDeveloper 10g (9.0.5.2 build 1618) and deploy my application to standalone oc4j 10g. I got the following internal error when I access dataAction. So I could not show any page. Servlet error: Error loading filter 'ADFBindingFilter', filter-clas
-
Problem with audio sample rate when exporting
I am having an issue with my audio sample rate. For some reason it is set at 8 khz by defualt when I am exporting. This was not an issue until the latest update (2 weeks ago). I'll try and give all the info I can up front. Also I tried customer suppo
-
SCOM 2012 URL monitoring for IIS 6 & IIS7.5
Hi, Could someone pls guide me how to create url monitoring for iis 6 & 7.5 windows servers. Regards, Rajeev Parambil