.bat to .sh syntax
Script on windows:
CD "C:\Program Files (x86)\Adobe\Flash Media Encoder 2.5"
start /affinity 80 /high FMEcmd.exe /p c:\fme\profile.xml
I've try to convert it to .sh to run on mac
cd "/Applications/Adobe/Flash Media Live Encoder 3.2/CommandLineFMLE"
start /affinity 80 /high FMLECmd /p /fme/profilexml
The problem is start /affinity 80 /high is not working in shell script.
Please give some help.
thx
I dont understand exactly what you are trying to do?? give some more details..
You need to pass the path to properties file while executing this batch file.
Similar Messages
-
Hi,
I try run visual administrator but sends the next message:
SAPERP:j2eadm 104> ./go.bat
: command not foundsetlocal
./go.bat: line 2: @title: command not found
./go.bat: line 3: syntax error near unexpected token `('
'/go.bat: line 3: `@if DEFINED JAVA_HOME (
Please Help me
Minerva ParedesHi,
The variable JAVA_HOME is set but the problem is the same, in the log find the next strings.
log generation timestamp : 2006_08_01_at_11_53_13
8/1/06 11:56 AM com.sap.engine.tools.launcher.Launcher Error : unable to invoke main class com.sap.engine.services.adminadapter.gui.AdminFrameView
com.sap.engine.tools.launcher.LauncherException
at com.sap.engine.tools.launcher.Launcher.launch(Launcher.java:340)
at com.sap.engine.tools.launcher.Launcher.main(Launcher.java:114)
caused by -
java.lang.reflect.InvocationTargetException
Caused by: java.lang.InternalError: Can't connect to X11 window server using '192.168.80.72:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:175)
at java.lang.Class.initializeImpl(Native Method)
at java.lang.Class.initialize(Class.java:339)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:115)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at java.awt.Window.init(Window.java:268)
at java.awt.Window.<init>(Window.java:312)
at java.awt.Frame.<init>(Frame.java:431)
at java.awt.Frame.<init>(Frame.java:396)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1668)
at javax.swing.JWindow.<init>(JWindow.java:189)
at javax.swing.JWindow.<init>(JWindow.java:141)
at com.sap.engine.services.adminadapter.gui.AboutWindow.<init>(AboutWindow.java:12)
at com.sap.engine.services.adminadapter.gui.AdminFrameView.main(AdminFrameView.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.sap.engine.tools.launcher.Launcher.launch(Launcher.java:336)
at com.sap.engine.tools.launcher.Launcher.main(Launcher.java:114)
please help me.
Minerva Paredes -
Syntax for download.sh (or download.bat)
Anybody knows the syntax (switches etc) for download.sh under $ORACLE_HOME/wireless/sample/?
I'd like to export the service tree only, not the entire repository. Looked for documentation everywhere...
Any help appreciated!
Per Fork, ValtechPer,
It should be possible to upload via the Enterprise Manager UI in the Wireless section - see Download/Upload Repository Objects.
For the syntax of the command line, run the java program wrapped by the upload.sh script with the -h option.
Regards,
Deepak -
How to call a java class in a bat file
Hi
I need to call a Test.java class in a bat files .It refer .DOM.jar
in C:/url; How do i call the java class i need the syntax
Thanks lotassuming lanch.bat, Test.class and DOM.jar are in c:\url
assuming %JAVA_HOME% is defined (else substitue it with your java installation directory)
here is the content of launch.bat:
cd C:/url (or cd c:\url ) (or cd c: followed by cd url)
%JAVA_HOME%\bin java -classpath .;DOM.jar Test
hop that'd help,
marvinrouge -
Hi,
I am using windows 7 professional(service pack 1) 64 bit operating system.
After installing the odi 12c (enterprise edition) by executing the odi_121200.jar file I am getting the following error while trying to run the ua.bat file.
[2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [UPGAST-00056] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] error initializing upgrade plug-in for ODI.ODI1
[2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Cause: An unexpected error occurred initializing an upgrade plug-in.
[2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Action: Contact Oracle Support Services. See the secondary error message for additional details.
[2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] [[
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at oracle.ias.update.plugin.Plugin.instantiatePlugin(Plugin.java:248)
at oracle.ias.update.plugin.Plugin.<init>(Plugin.java:229)
at oracle.ias.update.plugin.Plugin.getPlugin(Plugin.java:180)
at oracle.ias.update.plan.PlanStep.getPlugin(PlanStep.java:335)
at oracle.ias.update.plan.PlanString.<init>(PlanString.java:66)
at oracle.ias.update.plan.PlanCustom.<init>(PlanCustom.java:74)
at oracle.ias.update.plan.PlanStep.<init>(PlanStep.java:189)
at oracle.ias.update.plan.PlanComponent.<init>(PlanComponent.java:203)
at oracle.ias.update.plan.Template.load(Template.java:161)
at oracle.ias.update.plan.Template.loadAllTemplates(Template.java:102)
at oracle.ias.update.UpgradeDriver.loadConfiguration(UpgradeDriver.java:838)
at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:257)
at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:175)
Caused by: java.util.MissingResourceException: Can't find oracle.ias.update.plugin.odi.bundle.ODIResourceBundle bundle
at java.util.logging.Logger.setupResourceInfo(Logger.java:1518)
at java.util.logging.Logger.<init>(Logger.java:265)
at java.util.logging.Logger.<init>(Logger.java:260)
at oracle.ias.update.UpgradeLogger.<init>(UpgradeLogger.java:60)
at oracle.ias.update.UpgradeLogger.getLogger(UpgradeLogger.java:93)
at oracle.ias.update.LoggingManager.create(LoggingManager.java:249)
at oracle.ias.update.plugin.UpgradePlugin.createPluginLogger(UpgradePlugin.java:195)
at oracle.ias.update.plugin.UpgradePlugin.<init>(UpgradePlugin.java:181)
at oracle.ias.update.plugin.odi.ODIPlugin.<init>(ODIPlugin.java:136)
... 17 more
[2013-10-24T16:49:07.869+05:30] [Framework] [ERROR] [UPGAST-00259] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] The getInitialValue method for plug-in ODI.ODI1 will not be called due to a previous error.
[2013-10-24T16:49:07.869+05:30] [Framework] [ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Cause: An error occurred when loading or initializing the plug-in which prevents the getInitialValue method from executing.
[2013-10-24T16:49:07.869+05:30] [Framework] [ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Action: Review the log file for additional details.
[2013-10-24T16:49:07.870+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] UPGAST-00251: An error occured reading Upgrade Descriptor file ODI\INSTALLATION\odi12cInstallation_1\odi\plugins\upgrade\odi.xml
[2013-10-24T16:49:07.870+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] The file does not conform to the expected syntax.
[2013-10-24T16:49:07.870+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] See the secondary message for additional information. Contact Oracle Support.
[2013-10-24T16:49:07.871+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] UPGAST-00259: The getInitialValue method for plug-in ODI.ODI1 will not be called due to a previous error.
[2013-10-24T16:49:07.871+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] [[
oracle.ias.update.exception.UpgradeException: UPGAST-00259: The getInitialValue method for plug-in ODI.ODI1 will not be called due to a previous error.
at oracle.ias.update.plugin.Plugin.getInitialValue(Plugin.java:317)
at oracle.ias.update.plan.PlanString.<init>(PlanString.java:67)
at oracle.ias.update.plan.PlanCustom.<init>(PlanCustom.java:74)
at oracle.ias.update.plan.PlanStep.<init>(PlanStep.java:189)
at oracle.ias.update.plan.PlanComponent.<init>(PlanComponent.java:203)
at oracle.ias.update.plan.Template.load(Template.java:161)
at oracle.ias.update.plan.Template.loadAllTemplates(Template.java:102)
at oracle.ias.update.UpgradeDriver.loadConfiguration(UpgradeDriver.java:838)
at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:257)
at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:175)
Thanks and Regards
Sunilok - I think I've got it figured. Appears to be a known issue. You need to apply patch p17073913_121200.
I downloaded that and applied to my Linux version - then re-ran the UA. This time the GUI started and so now I'm going through the upgrade steps.
The patch is generic, so should work for your windows environment too. Good luck. -
This maxl script works perfectly when run within EAS maxl editor (minus the login and spool), when we run it via a .bat file the calculation will run but nothing else.
Any help please????? thanks!!!!!!!
Here's the maxl script:
login '*****' '******' on devhypeb01;
/*spool on to '\sacfs1\data\Apps\Hyperion\DEV\Logs\Clear_Build_Load.log';*/
/*Clear out Actual and Projection before loading new members and data*/
execute calculation 'DEV_Ace'.'AceRptg'.'clrAnP';
/*Load new members*/
import database Dev_Ace.AceRptg dimensions
connect as 'user1' identified by 'password' using server rules_file 'Both'
on error append to 'C:\memberload.err';
/*Load Data*/
import database 'Dev_Ace'.'AceRptg' data
connect as 'user1' identified by 'password' using server rules_file 'Both'
on error append to 'C:\dataload.err';
/*Load new member aliases*/
import database 'Dev_Ace'.'AceRptg' dimensions
connect as 'user1' identified by 'password' using server rules_file 'AliaBLD1'
on error append to 'C:\Aliasload.err';
spool off;
logout;
ERROR FILE:::::::::
MAXL> execute calculation 'DEV_Ace'.'AceRptg'.'clrAnP';
OK/INFO - 1012558 - Clearing all data blocks from [(ALL)] partition with fixed members [Scenario(Actual)].
OK/INFO - 1012675 - Commit Blocks Interval for the calculation is [3000].
OK/INFO - 1017018 - Removed [0] data blocks.
OK/INFO - 1012558 - Clearing all data blocks from [(ALL)] partition with fixed members [Scenario(Projection)].
OK/INFO - 1012675 - Commit Blocks Interval for the calculation is [3000].
OK/INFO - 1017018 - Removed [0] data blocks.
OK/INFO - 1012579 - Total Calc Elapsed Time for [clrAnP.csc] : [43.437] seconds.
OK/INFO - 1013274 - Calculation executed.
MAXL> import database 'Dev_Ace'.'AceRptg' dimensions
2> connect as 'user1' identified by 'password' using server rules_file 'Both'
3> on error append to 'C:\Hyperion\products\Essbase\eas\client\memberload.err';
ERROR - 1242021 - (2) Syntax error near ['"'].
MAXL> import database 'Dev_Ace'.'AceRptg' data
2> connect as 'user1' identified by 'password' using server rules_file 'Both'
3> on error append to 'C:\Hyperion\products\Essbase\eas\client\dataload.err';
ERROR - 1242021 - (2) Syntax error near ['"'].
MAXL> import database 'Dev_Ace'.'AceRptg' dimensions
2> connect as 'user1' identified by 'password' using server rules_file 'AliaBLD1'
3> on error append to 'C:\Hyperion\products\Essbase\eas\client\Aliasload.err';
ERROR - 1242021 - (2) Syntax error near ['"'].
MAXL> logout;MaxL quotes are a stinker and trip people up constantly. It wouldn't surprise me in the least if EAS' MaxL editor worked differently than "the real world".
I wrote a whole blog post on MaxL and quotes (who would have thought there was a subject there, but if you wade through the cutesy muck, there is value there):
http://camerons-blog-for-essbase-hackers.blogspot.com/2009/10/escaping-maxl-quotes.html
The two rules I follow are:
1) Use double quotes
2) Double escape backslashes
FWIW, you can also use single forward slashes.
The inconsistencies are confusing.
Regards,
Cameron Lackpour -
Use gvim to edit text areas and get it to use javascript.vim syntax file
I have had a lot of trouble with javascript and editting files via apex's "javascript" sections in the page.
The font in firefox did not distinguish various braces well enough for me. I kept accidentally mixing curly braces and parens... And I would now and then put the plsql concatenate operator || instead of the javascript +. Bleah! There are SO many ways to completely break javascript. And the whole javascript herd goes down when just one little function anywhere in there has an errant brace or quote. So I started resenting not using my customary text editor gvim. I have to have this stuff colorized and have showmatch turned on!
So anyway I found that you can edit textareas with gvim, I don't know if this is commonly known or not so
I thought I'd mention it. Or you can use whatever editor you want.
I only tried this on windows but theoretically it works on other operating systems modulo you
adjusting the shell details appropriately.
First of all install the"It's all text!' firefox extension and restart firefox.
then create a batch file something like this:
(NB: don't call a batch file the same name as an executable. That can cause pesky loops :-)
gvimrun.bat:
c:\vim\vim73\gvim.exe %1 -c "set filetype=javascript"
Note the pathname to gvim.exe needs to be customized. Note the parameter for passing the first argument along. (%1) The set filetype is telling it effectively to use the c:\vim\vim73\syntax\javascript.vim file.
so then when you bring up your page in apex , when you put the mouse cursor right below the
down arrow of the vertical scrollbar on the rhs of the textarea, you should see a little blue button
that says "edit". Then right click and choose preferences. Direct it to your batch file.
And if all is well it will work and invoke gvim with syntax coloring. Which makes it just a tiny bit less likely to really flub it.
Now if anyone else wants to pick up the baton and figure out how to get more than one syntax
in effect such as javascript and jquery? I did find a jquery.vim file out there. ...
Now that we know how to do this if someone knows some really super great javascript /jquery
editor that might be way better than gvim I would definitely consider that! Javascript is easy to screw up
Edited by: lake on Jan 2, 2011 11:34 AMHi Mathan. Here is something i have trying to do. This vi does not write it correct... and have I done something wrongly or "stupidly" in code
Problems:
-Second row is inroccet
-If i know that device returns array where is 10 elements. Can I trust that and just return 10 elements from array and changed it to string?
-Can I trust queue in this way?
I think hardest in labview coding is that you dont know what kind component you should use and what is the right way to use them.
Attachments:
array to file.vi 21 KB -
Can not run business rule with bat file
Hi all,
I've problem with using *.bat file to run business rule. My Essbase version is 11.1.1.3 and the syntax within
*.bat is simple, but I always got the Usage message and can not execute the rule.
The error result as blow(I already execute the syntax in command panel directly):
C:\Hyperion\products\Essbase\eas\console\bin>CmdLnLauncher -SWILSON -Usynadmin -P111111 -r0004_COPYDATA
Usage: CmdLineLauncher [-p:<passwordFile>] -Sservername -Uusername [-rBusiness R
ule Name | -sSequence Name] [-fRun Time Prompts file] [-validate]
My *.bat file content as below:
cd c:\Hyperion\products\Essbase\eas\console\bin
call CmdLnLauncher -SWILSON -Usynadmin -P1111111 -r0004_COPYDATA
Is there something wrong? If anyone know about this problem, please help,thanks!!Hi,
Here is a brief overview on how to use the command line launcher.
You can create a file and put the following information into it filling in the servername,app name and db name
ExecDB::"Planning/servername/appname/dbname"
Save it as .xml file (don’t think it has to be an xml, could be .txt), so something like connect.xml
Then when you run your command line do exactly like before Cmdlnlauncher -Sservername -Uusername -p:password.txt -rrule -fconnect.xml
If you have variables in your rule you can
In EAS right click over the rule and select "Automate Launch Variables", fill in the details and then save it is as an xml.
You just need to reference the xml in the batch script as described above using the -f parameter, for sequences remove -rrule and use –sSequence
update password.txt to the name of your password file.
Cheers
John
http://john-goodwin.blogspot.com/
Edited by: JohnGoodwin on Apr 30, 2010 8:17 AM -
When I run my startup.bat file I receive the following errors LRM-00116 syntax error 'undo_tablespace' following '=' and ORA-01078.
rem startup bat
@echo on
echo startup:
date/t
echo sys/world9 as sysdba
echo startup
echo startup pfile=e:\oracle\admin\V9\pfile\init.ora
)| sqlplus -s
# Copyright (c) 1991, 2001 by Oracle Corporation
# Cache and I/O
db_block_size=4096
db_cache_size=33554432
# Cursors and Library Cache
open_cursors=300
# Diagnostics and Statistics
background_dump_dest=E:\oracle\admin\v9\bdump
core_dump_dest=E:\oracle\admin\v9\cdump
timed_statistics=TRUE
user_dump_dest=E:\oracle\admin\v9\udump
# Distributed, Replication and Snapshot
db_domain=world
remote_login_passwordfile=EXCLUSIVE
# File Configuration
control_files=("E:\oracle\oradata\v9\CONTROL01.CTL", "E:\oracle\oradata\v9\CONTROL02.CTL", "E:\oracle\oradata\v9\CONTROL03.CTL")
# MTS
dispatchers="(PROTOCOL=TCP)(SER=MODOSE)", "(PROTOCOL=TCP)(PRE=oracle.aurora.server.GiopServer)", "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)", "(PROTOCOL=TCP)"
# Miscellaneous
compatible=9.0.0
db_name=v9
# Network Registration
instance_name=v9
# Pools
java_pool_size=33554432
large_pool_size=1048576
shared_pool_size=33554432
# Processes and Sessions
processes=150
# Redo Log and Recovery
fast_start_mttr_target=300
# Sort, Hash Joins, Bitmap Indexes
sort_area_size=524288
# System Managed Undo and Rollback Segments
undo_management=#AUTO
undo_tablespace=#UNDOTBS
Thank you in advanceMy tablespace name is UNDOTBS01.DBF. This is the name of datafile. Are you sure that you are using right pfile while starting the instance. Can you post the whole steps with error you are getting here.
Daljit Singh -
Cannot integrate JWSDP1.6 WITH TOMCAT50-JWSDPontomcat.bat won't run!
Hi!
I have JWSDP1.6 WITH TOMCAT50-JWSDP INSTALLED with the "no Web Container" option.Tried to run jwsdpontomcat.bat but get a "Bad command or file name" message.
Problem seems to have something to do with setenv.bat.This is the result....
C:\Sun\jwsdp-1.6\jwsdp-shared\bin>set ANT_OPTS=
-Djava.endorsed.dirs=C:\Sun\jwsdp-1.6\jaxp\lib\endorsed;C:\Sun\jwsdp-1.6\jaxp\lib
Syntax error
It gets stuck at lis line in setenv.bat.
Pls help
SteveI am modifying the correct httpd.conf file on the server, it just doesn't seem to work. - If I put the rewrite rules in the <Directory /> the rewrite works but it adds /Library/WebServer/Documents to the URL.
I also tried putting the rewrite rules in <IfModule mod_rewrite.c> but that did not work either.
mod_rewrite is enabled and running on the server.
I will post the rewrite rules again in the code brackets. Sorry for the long post. - If some one can try them out on their Leopard Server to see if they can get them to work, it would be much appreciated. Again, these work on my Leopard Client but I can't get them to work on Server.
-- The httpd.conf file posted above is just the default conf file found in /private/etc/apache2/
<code>
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301, L]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.php(.*)\ HTTP
RewriteRule (.+)\.php(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.asp(.*)\ HTTP
RewriteRule (.+)\.asp(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.aspx(.*)\ HTTP
RewriteRule (.+)\.aspx(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.htm.(.)\ HTTP
RewriteRule (.+)\.htm.(.)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.cfm(.*)\ HTTP
RewriteRule (.+)\.cfm(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.bak(.*)\ HTTP
RewriteRule (.+)\.bak(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.inc(.*)\ HTTP
RewriteRule (.+)\.inc(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\..(.)\ HTTP
RewriteRule (.+)\..(.)$ $1$2 [R, L]]
<code> -
Creating .bat for analyzing the Database.
Hi Experts,
I am having a doubt in scheduling database analysis process windows 2003 server.
Every Sunday, we have to schedule the database analysis. just view the below example
sysuser login id : testlogin
sysuser password: demotest
connection string: demotest
file - demo.sql is available in d:\
Now i need to create a .bat file for scheduling purpose.
in the bat file, i want to connect as sysuser and then execute the above mentioned sql file. please suggest me how to give the syntax for connecting to oracle database as sysuser through a .bat file.
One more doubt: we have to analyze the database in sysuser mode only or also in local user mode???
suggest me about this...
Thanks in Advance.oracle recommends generation of statistics using dbms_stats package with
dbms_jobs package.
You can use following procedure as sys user
variable jobno number;
variable instno number;
begin
select instance_number into :instno from v$instance;
dbms_job.submit(:jobno, 'dbms_stats.GATHER_SCHEMA_STATS(ownname=>'<schema Name>,OPTIONS=>''GATHER'',cascade=>TRUE);', TO_DATE('18-JUN-05--21','DD-MON-YY--HH24'), '(SYSDATE+1)', TRUE, :instno);
commit;
end;
/ -
Error running setupvirtualdirectories.bat during install
Hello Everyone,
I am trying to install an addtional copy of Agile PLM for Process 6.1 for testing.
When I get to the point of creating the virtual directories through the command line I get several errors.
Errnumber: -2147221020 <0x800401E4>
Error Accessing the object: w3svc/2/root/drl
Im using:
Windows 7
IIS 7.5
SQL Server 2005
any ideas?
has anyone else experienced this?syntax is correct. what happens if you run
SetupCoreVirtualDirectories.bat c:\Prodika_Home 2 PLM4P_MAIN ?
if that doesn't work, either, then maybe you don't have the IIS6 Management Compatability installed or it's a permissions issue. -
Is it possible to execute .bat file located in package ?
Hi,
in my application i execute a print.bat file using Runtime.exec(), i'd like to place this .bat in package, let's say com.me.testpackage. How is it possible to execute the batch file from that location?
thanksjschell wrote:
sabre150 wrote:
jschell wrote:
>Simple 'for' loops seem to work OK but still more research needed.
There is escaping in the for loops which is necessary in a bat file and not needed at the command line.
It seem to be that any command spanning more than one line fails. Fail? The example that gave shouldn't fail. It should simply run both echos.As I understand it, the command sequence
@echo off
goto XXX
echo out
:XXX
echo last
should just output 'last' and not 'out so if it prints both 'out' and 'last' then in my view it 'fails'. Am I missing something?
>
>>
Makes me even more pleased that I work mainly with Linux.Looking up syntax - what about getopts (bourne and korn)? You can also create 'functions', which can be defined later (if I recall correctly) in the script and called multiple times. I don't know how that would work streaming it in.I don't know about consequences of the streaming approach forward definitions in 'bourne' and 'korn' though I was not aware that 'bourne' allowed them. For 'bash' where forward definitions do not seem to be allowed (could I be mistaken in this?) then using Process process = Runtime.getRuntime().exec("bash", null, new File(System.getProperty("user.home")));the following very simple 'bash' script (which contains loops, if statements and functions but no goto or forward definitions) can be executed without problems - # Simple bash script
function sayHello {
echo "Hello" $1
sayHello "World" ;
for i in $( ls /tmp ); do
echo file - $i
done
for i in `seq 1 10`;
do
echo "seq" $i
done
i=0
while [ $i -lt 6 ]; do
if [ $i -eq 4 ]; then
echo "then" $i
else
echo "else" $i
fi
let i=i+1
done
i=12
until [ $i -lt 10 ]; do
echo "until" $i
let i-=1
doneIn the past, I have also published examples of how to run Perl scripts using the same basic approach. The heart of the examples is final String perlScript = "#!/bin/perl\n" +
"print \"PID $$\\n\";\n" +
"print \"UID $<\\n\";\n" +
"print \"EUID $>\\n\";\n" +
"print \"GID $(\\n\";\n" +
"print \"\\nProcessing the command line arguments\\n\";\n" +
"foreach (@ARGV) {\n" +
" $n = factorial($_);\n" +
" print \" $_! = $n\\n\";\n" +
"}\n" +
"print \"\\n\".'@INC'.\"\\n\";\n" +
"foreach (@INC) {\n" +
" print \" $_\\n\";\n" +
"}\n" +
"print \"\\n\".'%ENV'.\"\\n\";\n" +
"foreach (keys %ENV) {\n" +
" print \" $_==$ENV{$_}\\n\";\n" +
"}\n" +
"$x = theAnswerToTheUltimateQuestion();\n" +
"print \"\\nThe answer to the ultimate question is ... '$x'\\n\";\n" +
"sub theAnswerToTheUltimateQuestion()\n" +
"{\n" +
" return 3*2*7;\n" +
"}\n" +
"sub factorial()\n" +
"{\n" +
" my ($n) = @_;\n" +
" return ($n > 1) ? $n * factorial($n-1) : 1;\n" +
"}\n";
System.out.println(perlScript);
* The perl source can be from any InputStream. Here I use a
* ByteArrayInputStream just as a demonstration.
final InputStream perlSource = new ByteArrayInputStream(perlScript.getBytes());
* The '-' indicates that the Perl script comes from stdin. The "a","b","c" etc
* are the command line arguments passed to the Perl script.
final String[] command =
"perl", "-", "5", "6", "7", "8", "9", "10"
final Process process = Runtime.getRuntime().exec(command);piping the 'perlSource' stream to the process stdin.
This runs as expected on both Linux (FC9 and Ubuntu 8.04) and on Windows using Active Perl.
Please don't take my use of a String to hold the Perl script to mean that I in any way endorse this approach - I just wanted a simple means to create a self-contained example.
>
And the c shell has a goto also.One day I might find some time and investigate 'c' shell goto in this context - since I have not used csh for at least 8 years I am very rusty.
I can't say that the 'streaming' approach will work with all Linux shells but I can say that on Linux I have had no problem with Perl and Bash. If anyone needs to use the 'streaming' approach with another shell then it takes just a few minutes to setup a test harness. If any problems are found then people can always resort to the 'Plan B' approach.
I am still pleased I work mainly with Linux and Unix. -
Problems invokin j2ee.bat
setenv.bat in the bin directory of the j2sdkee1.3 installation tries to set execute
following lines of code:
set JAAS_OPTIONS=-Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy
set SSL_OPTIONS=-Djavax.net.ssl.trustStore=%J2EE_HOME%\lib\security\cacerts.jks
set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
Each line produces a syntax error. Besides the file jaas.policy can't be found in the
%J2EE_HOME%\lib\security directory.
Furthermore setenv.bat tries to set the following environment variables:
set SYSTEM_LIB_DIR=%LIBDIR%\system
set JMS_RI_JDBC=%SYSTEM_LIB_DIR%\cloudscape.jar;%SYSTEM_LIB_DIR%\tools.jar
but in %SYSTEM_LIB_DIR% a file namde "tools.jar" can't be found after installation.
Is this a failure from Sun during creation of the setup package?
This causes three syntax error when trying to run j2ee.bat!!
What can I do to make it run?
Please notify me using [email protected]By the way: I'm have installed Windows98 on my system.
-
Its not a really java question (its a bat file question)
hi all,
I created one bat file like below
start java.exe -mx50m -classpath ".\SerialConnection.jar" spc.SerialConnection.SECSConnection
its working
but I would like to want if I open the bat file I want to disappear the dos window..
if anyone knows please send the solution
thanksDoes :
java -mx50m -classpath ".\SerialConnection.jar"
spc.SerialConnection.SECSConnection &
work ?No because that's Unix shell syntax which does not work in Windows.
Jesper
Maybe you are looking for
-
What is wrong with Safari?! Spam central all of a sudden.
Been using Safari for years and years now. It's been wonderful. Since I've updated to 6.0.1 (running 10.8.2), I can be browsing my usual favorite sites (Mac Rumors, News Sites, Professional Sport team sites), and for no reason at all, audio adds wi
-
This is not the first time I am installing SCCM 2012 :) , however stuck at this one for some time now. I have a lab where SCCM 2012 pre-reqs were downloaded during setup and SCCM 2012 has been installed fine. We are doing another install for this cli
-
Mail app crashes with large mailbox (25k+ messages)
When connected to an exchange account, large mailboxes, whether split across multiple folders or all in the inbox, cause the mail app to crash occasionally. Nothing is lost, but it is not behavior I am comfortable with and I want to know if there is
-
Query about multi record block
Abdetu Please clarify this I have a multi record group on the canvas, which displays 5 records at a time. The block is based on a table. All the items, except 3 items are displayed items.Now in the block I have a list item, in which I have two values
-
hey, i have used skype before, and i found this problem after i signed out before i updated, but whenever i want to sign in. i takes forever to sign. i know's not a wireless poblem as i am attempting to use skype about 2M away from the wireless. and