Run the emca in linux shell script command
Hello everyone,I would like to launch emca to create dbconsole in my Production database, so I have to run this command in the script, because this command causes the base of data either in passive mode.
my gaze of script like:
#/ bin/sh
Su - oraprod-c"sh /oraprod/db/tech_st/10.2.0/bin/emca - config dbcontrol db-rest create" > > /backora/log.log "
but the problem is how to interact with this command (provide the parameters of database SID, Port of the database, sys password...)
And the MAIL_SERVER_NAME too. But using "" can do the trick.
Eric
Tags: Enterprise Manager
Similar Questions
-
The work of the Disqualification of Linux Shell Script
Hello
We are the 11.1.1.7.3 with Weblogic Web server and Linux App Server Disqualification.
I want to know how we can carry out the work of the Disqualification of the Linux and write these commands in the shell script.
(1) present the task (run)
(2) check the employment status to see if the work is in working condition or supplement
I know that on Windows, it utility jmxtools.jar of command line operations in dnDirector/Tools folder. But I'm not able to find the jmxtools.jar file in one of the edq.home or edq.local.home of the directories under Linux install.
Can you guide me to the location where the jmx utility will be available under Linux and also the command to check the status of the job?
Thank you
Ravi
It's him!
Jobs called via the command line interface return an exit status when finished.
Monitor the precise status of the long-term work requires the use of the server of the Disqualification Console user interface.
-
Hi everyone;
Basics:
Our vmware environment is vmware esxi 4.0 on an IBM x 3650, double quad-core processors, 32 GB RAM, 6 x 450 GB 15 k RPM WHAT drives (local). There is a single guest from vmware that is inactive except for this test. The guest is a RHEL 5.3 x86_64 only fully patched host. Best practice: current version of vmware tools is installed, vmxnet3 driver is used, the kernel startup params are notsc divisor = 10, all 6 discs are in a raid10 table, elevator is set to noop.
The above, vmware environment with regard to performance, is facing a 5 year, IBM x 336, who has a copy of RHEL installed.
Scenario:
We have shell scripts which runs a software installation rather complicated. Without getting too inside, scripts to make a ton of calls of subroutines (e.g. VAR = $(écho $line | cut-f1-d:)). This script works horribly slow in the new vmware and vmware environment otherwise slow (less than 1/2 the speed, perhaps only 1/3 the speed) 5 year old physical server. Because the operation is an operation of 15 minutes in the best of times, it takes 30-60 minutes to complete, on a new server.
As a test case, I made this script (yes I know 'let i = i + 1' would be faster, but do not reflect the actual workload.)
#! / bin/sh
I have = 0
While------[$i - lt 1000]
do
I have = $(echo "$i + 1" | bc)
fact
I then run this script (which basically incriments I from 0 to 1000) and time. I the time using an external timer because I know that vmware can distort a bit sometimes. However, the results represent the picture. The script above takes about 8.5 seconds on the guest operating system and about 2.25 seconds on the physical host computer. Basically, it is considerably slower.
I have read the 3 VI and vSphere 4 practices better performance... I read that potentially binary translation and VMware could cause a problem, or the fork then the/bin/sh is slow on vmware (some article strange re Zap?) ... but I'm curious to know if anyone has had similar experiences or recommendations? For the guys out there linux, RHEL and other suppliers, the above script gives also a second 8-10 response?
For the people of vmware, y at - it something on bash (/ bin/sh) which makes it slow... especially on iterations () $ who call/bin/sh and more? I tried to replace the above $i = with 'I = i + 1' and it ends in less than a second and I tried to add a true/bin/in the mixture of execution, and he had a minimal impact on the speed (currently testing the forkO / exit() combo - and re - write this particular program/script I know is an option, do not write say to do)
Any comments welcome, thank you
MMU operations-hungry as fork/exec run a lot faster on processors AMD with IVR, that we support with ESX 3.5 and Intel processors with EFA, requiring vSphere.
Scott
More information on my blog of the communities and on Twitter:
-
Stop the Service Console and shell scripts
Now that VMware announced ESX 4.1 is their last hypervisor with a service console, I was wondering-
What are the options to make what is now a large number of Linux shell scripts perform the same functions on ESXi - i.e. PowerCLI, Host Profiles, etc. and how long we have until officially support chips for the ESX service console?
Thank you
PowerCLI does not rely on a service console. However, you must have paid the ESXi version for them to work. With respect to the profiles of the host, which is a characteristic of vCenter and has more no dependencies on the COS. You can start watching to convert all of your shell scripts PowerCLI and use scripts.
What about when VMware will stop support for ESX, I do not anticipate happening any time soon.
-
Error running the cron under Linux
I'm trying to run a procedure from a shell script.
My script is like this
#! / bin/sh
ORA_USER = plsql
ORA_PASS = oracle
/usr/lib/Oracle/XE/app/Oracle/product/10.2.0/Server/bin/sqlplus s/nolog < < EOF
connect to $ORA_USER / $ORA_PASS
exec insert_cron_test;
"exit";
EXPRESSIONS OF FOLKLORE;
When I run this script from terminal, it works very well. But when I add it in a cron it gives the following error:-
Error Initializing SQL 6 * more
SP1 file < lang > .msb not found message
SP2-0750: you may need to set ORACLE_HOME in your Oracle software directory
My
$ORACLE_HOME is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
$ORACLE_SID is XE
$LD_LIBRARY_PATH is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib
I can connect to sqlplus prompt without any problem.
Help, please. Thanks in advance.#! / bin/sh
ORA_USER = plsql
ORA_PASS = oracle
/usr/lib/Oracle/XE/app/Oracle/product/10.2.0/Server/bin/sqlplus s/nolog<>
connect to $ORA_USER / $ORA_PASS
exec insert_cron_test;
"exit";
EXPRESSIONS OF FOLKLORE;Try
#!/bin/sh . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh ORA_USER=plsql ORA_PASS=oracle /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus -s /nolog << EOF connect $ORA_USER/$ORA_PASS exec insert_cron_test; exit; EOF;
-
Hi Experts,
We load data from .txt files in Linux server into a table.
Scenario runs perfectly when running Windows ODI GUI (on linux agent.we have two agents who perform one is windows and Linux).When we try to run it from the command line using startscen.bat getting following error.
ODI-1227: SrcSet0 (load) task fails on the source FILES FILE_SERVER connections.
Caused by: java.sql.SQLException: ODI-40438: file not found: /loadfiles/Test/xyz.txt
By this mistake if we conclude that this file may not exist... But it works well to GUI.
Infact we have given 777 permissions to file.
Ideas please share...
Concerning
PrakashV
Hi all
It works very well by adding the URL of the AGENT in a syntax such as startsen
StartScen.bat FILE_TO_ORACLE 001 GLOBAL-NAME = OracleDIAgent3-AGENT_URL =http://10.64.165.73:20912 / oraclediagent
-
Run the plug-in with a script?
Does anyone know if it is possible to run a plug-in by using a script? For example, if I click on a button in the user interface, the script will run a plug-in?
Quentin
Please clarify then. Are you talking to a menu command in the drop-down menus? If so, you can also use:
app.executeCommand (app.findMenuCommandId ("the MENU COMMAND NAME"));
This will run a menu command, but keep in mind that it is not always stable. Simply place the name of the menu item that is case-sensitive in double quotes.
-
The BCC ETPM Linux database scripts?
I recently worked with BCC and ETPM on Linux platforms and the only linux script, I found the cdxdba.plx allows to create the database. I was wondering if there is a Linux version of Windows database scripts to export/upgrade/etc. tasksI've used this successfully:
-Source operations
Log on as oracle
(Make sure your ora env is set with the associated database)
Export NLS_LANG = AMERICAN_AMERICA. AL32UTF8
expdp DUMPFILE DUMP_DIR = DIRECTORY = expdp_CISADM_ (mydb) _ (today) .dmp LOGFILE = expdp.log patterns = EXCLUDE = STATISTICS CISADM
(enter the credentials of the manager/system)-Target operations
Log on as oracle
(Make sure your ora env is set with the associated database)
Export NLS_LANG = AMERICAN_AMERICA. AL32UTF8
Impdp DIRECTORY = DUMPFILE DUMP_DIR = expdp_CISADM_ (mydb) _ (today) .dmp LOGFILE = impdp.log patterns = CISADM
(enter the credentials of the manager/system) -
PowerShell to execute the shell script in Linux guest
Is there a way of powershell to access a Linux VM in a domain environment and then run a Linux shell script to a guest Linux OS - for example to set the network settings of the virtual machine?
Thank you!
You can use the Invoke-VMScript cmdlet. It allows you to run a script bash inside the Linux guests supported.
There is also the Set-VMGuestNetworkInterface cmdlet to configure NETWORK card. It is based in fact on the same technique as the Invoke-VMScript cmdlet, but PowerCLI Dev team provided the bash script to you.
____________
Blog: LucD notes
Twitter: lucd22
-
Unable to verify the State of Null in a Shell Script
Hello
When I use to check the Null Condition to check for a running Java process his failure to check.
I use the variable in a shell script
DPID = $(ps-ef | grep-i java | grep-v grep)
If ["$DPID '='" ']; then
on the other
FI
If the DPID is null, then executed obtaining but if the DPID value her not to enter the other part of the loop
Thanks and greetingsYou could try - c do grep returns a number of matches, and then check if this counter is zero or not.
DPID=`ps -ef |grep - i java|grep -vc grep` if [[ $DBID -ne 0 ]]; then else fi
-
Call the OBIEE Unix Shell Script
Hi all
Is it possible to make a call to a Unix Shell Script with the framework of the Action of OBIEE.
Thanks in advanceI don't think, but we can go for it instead side BI. Try to transfer the same features side shell script so that the script can identify your report using the tail of the log nqquery and execute the rest of your lines in shell script.
This can done and works as expected. If you identify your report instead of this long logical query at all with my suggestion that you can go for a little keyword.
Score pls help if
-
Executes the DDL statement via ksh script
I need execute a DDL statement (for example, ALTER USER) using ksh script and capture the result to be able to verify whether the statement succeeded or failed.
I wrote a script below:
SQL = "test ALTER USER...;"
If sqlplus / as sysdba < < EOF > $MYFILE
whernever sqlerror exit 1 rollback
$sql
commit;
"exit";
EXPRESSIONS OF FOLKLORE
When I run the above script, I get 'modified by the user. Commit complete. "written in a file.
Is there an easy way to check the contents of the file for the result to a variable instead of an output file or program to see if the ALTER USER statement was successful?
There is no need to check the contents of the file, just check for the error in your shell script. Something like:
Oracle > cat t.sh
Export ORALCE_SID = dev2
SQL = "select 1/0 from dual;"
sqlplus-s /t.log
whenever sqlerror exit 1
$sql
output
EXPRESSIONS OF FOLKLORE
If [$?-no 0]; then
echo "an error has occurred."
FIOracle >. t.sh
An error has occurredJohn
-
RC-50014: Fatal: failed to run the auto configuration service
Hi all
We are cloning Oracle 11i production applications. It is a 3-tier application that DB is hosted on a node, simultaneously on other applications on 3rd node.
The database has cloned successfully during the operation of the adconfig to the node at the same time we are facing problem.
We get below error.
RC-50014: Fatal: failed to run the auto configuration service
script gave:
****************************************************igccmprf.sh started at Wed Jan 28 03:27:44 CST 2014
The environment settings are...ORACLE_HOME: /phdfci/oracle/phdfciora/8.0.6
ORACLE_SID:
TWO_TASK: PHDFCI
Path: /phdfci/oracle/phdfciora/iAS/Apache/perl/bin:/phdfci/oracle/phdfciora/8.0.6/bin:/phdfci/oracle/phdfciappl/fnd/11.5.0/bin:/phdfci
/Oracle/phdfciappl/ad/11.5.0/bin:/usr/java14/bin:/phdfci/Oracle/phdfcicomn/util/unzip/unzip::/phdfci/Oracle/phdfciora/8.0.6/bin:/usr/bin:/usr/ccs/bin
: / usr/sbin: / phdfci/oracle/phdfcicomn/clone/bin /... /JRE/JRE/bin:/phdfci/Oracle/phdfciora/IAS/apache/perl/bin:/phdfci/Oracle/phdfciora/8.0.6/bin:/usr/ja
VA14/bin:/phdfci/Oracle/phdfcicomn/util/unzip/unzip:/phdfci/Oracle/phdfciora/8.0.6/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/java14_64/bin:/usr/VAC/bi
n: / usr/bin: / etc: / usr/sbin: / usr/ucb: / home/apchdfci/bin: / usr/bin / X 11: / sbin:
LD_LIBRARY_PATH: /phdfci/oracle/phdfciora/8.0.6/network/jre11/lib/aix/native_threads:/phdfci/oracle/phdfciappl/cz/11.5.0/bin:/phdfci/oracle/phdfc
IOra/8.0.6/lib:/usr/DT/lib:/usr/openwin/libExecutable: /phdfci/oracle/phdfciora/8.0.6/bin/sqlplus
SQL * more: version 8.0.6.0.0 - Production on Tue Jan 28 03:27:45 2014(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter the value 1: enter the value 2: enter the value 3: enter the value of 4: connected.
Cannot create a hold file.
Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
igccmprf.sh out with status 1
ERRORCODE = 1 ERRORCODE_END
.end std out.
The o/s message: no such file or directory.end err out.
****************************************************
Product Top pilots executed: AD_TOP FND_TOP ICX_TOP IEO_TOP ABM_TOP ECX_TOP BIS_TOP GL_TOP AMS_TOP CCT_TOP WSH_TOP CLN_TOP OKE_TOP OKL
_TOP OKS_TOP CSF_TOP XNC_TOP IGS_TOP IBY_TOP PA_TOP JTF_TOP MWA_TOP CN_TOP CSI_TOP WIP_TOP CSE_TOP EAM_TOP IMT_TOP FTE_TOP ONT_TOP HAS
R_TOP AHL_TOP OZF_TOP IES_TOP CSD_TOP IGC_TOP
[AutoConfig error report]
The following report lists the errors autoconfig met in each
execution phase. Errors are grouped by directory and by phase.
The format of the report is:
< file name > < phase > < eventually return code >[INSTALLATION STAGE]
AutoConfig could not successfully run the following scripts:
Directory: / phdfci/oracle/phdfcicomn/admin/install/PHDFCI_fnclclcn1
adgendbc.sh INSTE8_SETUP 1afcpnode.sh INSTE8_SETUP 1
txkWfClone.sh INSTALL_SETUP 1[PROFILE PHASE]
AutoConfig could not successfully run the following scripts:
Directory: / phdfci/oracle/phdfcicomn/admin/install/PHDFCI_fnclclcn1
adadmprf.sh INSTE8_PRF 1
afadmprf.sh INSTE8_PRF 1
afcpgsm.sh INSTE8_PRF 1
ahladmprf.sh INSTE8_PRF 1
amscmprf.sh INSTE8_PRF 1
aradmprf.sh INSTE8_PRF 1
clnadmprf.sh INSTE8_PRF 1
cnadmprf.sh INSTE8_PRF 1
cncmprf.sh INSTE8_PRF 1
csdadmprf.sh INSTE8_PRF 1
cseadmprf.sh INSTE8_PRF 1
csfagprf.sh INSTE8_PRF 1
csiadmprf.sh INSTE8_PRF 1
eamadmprf.sh INSTE8_PRF 1
fteadmprf.sh INSTE8_PRF 1
gladmprf.sh INSTE8_PRF 1
igccmprf.sh INSTE8_PRF 1
jtfadmprf.sh INSTE8_PRF 1
okeadmprf.sh INSTE8_PRF 1
okladmprf.sh INSTE8_PRF 1
ontadmprf.sh INSTE8_PRF 1
paadmprf.sh INSTE8_PRF 1
txkJavaMailerCfg.sh INSTE8_PRF 1
txkWebServicescfg.sh INSTE8_PRF 1
wipadmprf.sh INSTE8_PRF 1
wshadmprf.sh INSTE8_PRF 1
xnccmprf.sh INSTE8_PRF 1[APPLY PHASE]
AutoConfig could not successfully run the following scripts:
Directory: / phdfci/oracle/phdfciora/iAS/Apache/perl/bin/perl-I /phdfci/oracle/phdfciora/iAS/Apache/perl/lib/5.00503-I/phdfci/oracle/phdfciora.
iAS/Apache/perl/lib/site_perl/5.005-je /phdfci/oracle/phdfciappl/au/11.5.0/perl/phdfci/oracle/phdfcicomn/admin/install/PHDFCI_fnclclcn1
adadmat.pl INSTE8_APPLY 1
adupdlobs.pl INSTE8_APPLY 1
Fate of 32 stateful auto-configurationRC-50014: Fatal: failed to run the auto configuration service
Asked by oracle.apps.ad.clone.ApplyApplTop
Env details-
Apps 11i version
Version of DB - 11.2.0.1
Help, please.
Thank you
Thanks for the update.
Problem is solved now.
In fact, is copies on PROD that did not exist on the server to clone.
-
Run the automator script in a shell command
Hello
I would like to start an automator script in a command shell with the automator command (see automator man).
I would like to pass an argument to the script (such as a list of files) too much with the i - settings but my syntax has failed. This is my test written in AppleScript script:
on run tell application "Finder" set theSelection to selection set theFile to theSelection's item 1 as alias set thePath to quoted form of POSIX path of theFile log thePath set theWorkflow to quoted form of "/Users/conmeubonailleuco/Library/Mobile Documents/com~apple~Automator/Documents/Encode Audio Files.workflow" set theAutomatorScript to "automator " & theWorkflow & " -i (" & thePath & ")" do shell script theAutomatorScript end tell end run
theAutomatorScript the value "-i «& path & space & theWorkflow» automator
-
Hello
Can you tell me how I can run the scrip .mxl on the Linux server?
Should I create the .sh file? What command can I use? r an another way to call the .mxl file?
Thank youYes, you can create a shell script. You would use essmsh call followed the mxl file. A number of things
1. you need to import the paths of library (on unix, you can bring in the .profile of the Essbase id).
2. you need to path both essmsh and .mxl files. Since linux is case-sensitive, and I do not have a practical installation, you must check the box of their names.
Under windows, there is a bat file in the Essbaseserver/bin directory to start Essmsh with the correct variables on Windows is startEssmsh.cmd. There is probably one on Linux as well
Published by: GlennS_3 on July 19, 2010 13:45
Maybe you are looking for
-
EliteBook 8440p: increase the dedicated vram
Hello I would really appreciate if someone could tell me how to increase my vram dedicated on my laptop. I have a 8440p with windows installed 10 EliteBook. He and card Intel(r) HD Graphics (Core i5). I know it's a memory shared, and I can't change,
-
V6.1 LV driver for Tektronix 2440 &; Keithley 485 Picoammeter necessary
Does anyone have the driver 6.0 or 6.1 for the oscilloscope Tektronix 2440 and the 485 Keithley Picoammeter? Only drivers that appear currently available are for V7 or V8. Thank you
-
using the color laserjet 3600n - I want to print in black and white, but it prints black and white negative. * beep *.
-
Want 5660: Software HP "patches" changed my setup without warning or explanation
All trying to solve a problem with my printer series HO want 5660, I ran the HP Print application and doctor Scan and him allowed to update my software. The behavior of the application behind my icon 'Series HP Envy 5660' is now different. Prior to t
-
Cisco 5320 MCU layout / view
We recently converted a MPS200 bridge to a microcontroller of 5320 Cisco. We have multipoint Conference with 8 participants. The new 5320 MCU automatically selected a layout component 9. It is that some of the participants in this appeal cannot see