How to make Oracle program executed through windows XP command line.
I know this thread may not be appropriate to be posted here. However, I couldn't find place to post this question. However, the question is related to Oracle program execution. So I post here for help.
I creted a windows XP shell program to execute a few oracle program to refresh data on database. All oracle programs work very well. But the windows shell program is not working properly. I seek your input to solve this problem. Here is the basic windows shell script:
set oracle_sid=mydb
set MyDir=C:\refresh
sqlplus -s username_1/password_1@mydb @%MyDir%\updt_table.sql
exit
sqlldr username_2/password_2@mydb control=C:\refresh\control_file_1.ctl
sqlldr username_2/password_2@mydb control=C:\refresh\control_file_2.ctl
sqlldr username_2/password_2@mydb control=C:\refresh\control_file_3.ctl
sqlldr username_2/password_2@mydb control=C:\refresh\control_file_4.ctl
sqlldr username_2/password_2@mydb control=C:\refresh\control_file_5.ctl
set oracle_sid=mydb
set MyDir=C:\refresh
sqlplus -s username_2/password_2@mydb @%MyDir%\refresh_table.sql
exit
The problem is: The first sqlplus is to connect to username_1. after windows shell execute and finish updt_table.sql as well as exit from that db schema, it suppose to go to next sql loader command line to login as username_2 to start sql loader control file to load data. The actual situation is: command line hang on at first "exit" and didn't login username_2 to do sql loader work. Please advise me where the problem is and how to fix it. Thanks for your kind help.
krystian:
I have tried this before I post for help. If I moved "exit" after updt_table.sql, the shell only finish the first part of command to update one table. Then windows shell hang on there and do nothing. It didn't go to login as username_2 to execute sql loader control files. This is where the problem is. How to force the windwos shell log into as username_2 to do next step? Thanks again.
Similar Messages
-
How TO Make my program executable?
please list steps to make my program executable jar ??
please write steps from 0 ot the end?
thank ujar cvfm MyJar.jar MyManifest.txt -C . *.javawhere do you type that? I tried in a command console
but it didnt work...Make sure jar.exe is in your path.
and what do u mean by com.acme.MyMainClass? do I have to put the com.acme?No, you would replace it with the fully qualified name of your own class of course. You are allowed to use your own brains too. -
I need to switch off "home sharong" option to all company users
via active directoy or command lineI need to switch off "home sharong" option to all company users
via active directoy or command line -
How to make SAP B1 connection with Windows Sharepoint Service 3.0
how to make SAP B1 connection with Windows Sharepoint Service 3.0 through asp.net web part code.. I get the security error when i run that web part......
public bool ConnectToCompany()
oCompany = new SAPbobsCOM.Company();
oCompany.Server = "192.168.1.58";
oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005;
oCompany.CompanyDB = "SBODemoUS";
oCompany.DbUserName = "sa";
oCompany.DbPassword = "abc";
//oCompany.UseTrusted = true;
oCompany.UserName = "manager";
oCompany.Password = "manager";
oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English;
oCompany.LicenseServer = "192.168.1.58:30000";
int i = oCompany.Connect();
if (i != 0)
return false;
return true;
protected override void RenderContents(HtmlTextWriter writer)
if (conn.ConnectToCompany() == true)
writer.Write("Hello" + this.Context.User.Identity.Name);
Edited by: bikalg on Nov 28, 2010 9:43 AMHi.......
Welcome to SAP Business One Forum.....
Unfortunately this is the wrong forum you posted here.
I would suggest you post it in SDK or System Administration Forum and definitely you get the solution and close this thread from here......
Regards,
Rahul -
How to make my program forcefully errror
hi 2 all
how to make my program forcefully error out even i have to get data
regards
sivaHi Mate,
Just remove the quries which you execute
Thanks
Kash
www.mkashu.blogspot.com -
How to schedule multiple backup job through windows server backup in windows server 2008 R2
hi expert,
need your help, In my small environment I am using windows 2008 R2 as a domain controller. and installed windows server feature for backup.
Now i want to create backup at a different time.
1. System state backup at 5.00 PM on saturday only
2. finance and hr data backup on daily basis at 5.00 PM.
so how i create different job schedule through windows server backup.
Regards,
Triyambak
Regards, TriyambakScenario #1
The following command will create a Task Scheduler task named
DailyFolder1Backup with the start time of 23:00.
This task will run DAILY with the HIGHESTprivileges. It will run the Windows Server Backup CLI to backup
g:\folder1 to target volume
F:.
SCHTASKS /Create /SC DAILY /TN
DailyFolder1Backup /RL HIGHEST /ST 23:00/TR
"wbadmin start backup –backupTarget:F: -include:g\folder1
-vsscopy -quiet"
Scenario #2
The following command will create a Task Scheduler task named
DailyFolder2Backup with the start time of 24:00.
This task will run DAILY with the HIGHESTprivileges. It will run the Windows Server Backup CLI to backup
h:\folder2 to target volume
F:.
SCHTASKS /Create /SC DAILY /TN
DailyFolder2Backup/RL HIGHEST /ST 24:00/TR
"wbadmin start backup –backupTarget:F: -include:h:\folder2
-vsscopy -quiet"
Please feel free to let us know if you have any question or concern.
Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
the thread. -
Hello
How to make labview program to get average value of 200 reading from multimeter (I using using loop) to read voltage from mulmeter but I like to get average value of all of 200 reding how can I do that?
Thanks
Wee
Solved!
Go to Solution.Another idea with less programming - take advantage of the "free" array that comes with a Chart - i.e. the History Data.
1) Wire your DMM data to a Chart. (You can set the chart to invisible if you don't plan on using it in the GUI).
2) Set the Chart History Length to 200 (right click on the chart, click on Chart History Length...)
3) On the block diagram, use the History Data Property Node, wire it to Mean.vi, and you're done.
Easiest running average ever.
Message Edited by Broken Arrow on 04-07-2010 11:36 AM
Richard
Attachments:
EasyAvg.jpg 8 KB -
How to make a program for backgroung processing used servlet
how to make a program for backgroung processing used servlet
well i need the coding part written in servlet ,in which servlet is always ready for accepting a client request.
-
How to make Oracle HTTP server a proxy server...
I need a proxy server for Google Mini search Appliance. I have Oracle 9iAS on AIX 5.2; can someone tell me how to make Oracle HTTP server function as Proxy server?
Thanks,
JessMaybe check the below link:-
http://httpd.apache.org/docs/1.3/mod/mod_proxy.html -
How to make oracle is case insentive ( not case sensitive)
SqlServer by default is NOT case sensitive (data content) while Oracle by default is case sensitive (data content).
please help me to give the solution
How to make oracle is case insentive ( not case sensitive)
if there is anyway to make Oracle behave like SqlServer changing NLS settings or any other Oracle settings?
I have solution for application level . it is working fine
Possible solutions:
1. You want to store data case insensitive: do an 'insert...
values(upper('Abcd'))...'.
This will put your data in upper case into the tables.
2. Your data will be mixed-case and you want to select them case
insensitive:
create 'function based indexes' on every column you want to use in
your where-clauses.
Then 'select ... where <column_name> = 'ABCD'.What version of Oracle? Oracle 10g has a capability that can toggle this feature on and off at the session level. Prior versions do not.
For prior versions you usually have to make use of the upper and/or lower functions in your queries. Sometimes a function based index, FBI, is used to handle this.
HTH -- Mark D Powell -- -
How to make phone phone vibrate through j2me code
how to make phone phone vibrate through j2me code
thanks in advanceSome like this
Display.getDisplay(this).vibrate(800); -
How to make the GL account discription possible in FAGLL03 line item display?
Dear Experts,
Could you tell me how to make the GL account discription possible in FAGLL03 line item display?
I checked the layout, there is no account discription.
How should I do?
Thanks!
Xinling ZhangHi
One you execute FAGLL03, go to Settings>Layout>Current Header Rows
You can add some predefine characteristics here.
I am not sure why the hyperlink is not working at your end. But you can search the SDN for special fields in FAGLL03 and you can get lot of posts for this document.
Regards
Sanil Bhandari -
Executing jar file on command line [windows]
Hi,
I am trying to run .jar file "senthil.jar" . It catures systems screenshot.
http://sensaran.wordpress.com/2010/06/04/screen-shot-utility-using-air-2-0/
I am using it in AIR application. I want to execute this file from command line. I am not sure how to pass command line arguments.
Currently i am trying to do it like : java -jar senthil.jar
I need to provide a parameter as "Print Screen"
Its corresponding Flex Code is :
var arg:Vector.<String> = new Vector.<String>;
arg.push("-jar");
arg.push(File.applicationDirectory.resolvePath("senthil.jar").nativePath);
var file:File = new File();
file = file.resolvePath(javaPath.replace(/\//g, File.separator));
var npInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
npInfo.executable = file;
npInfo.arguments = arg;
nativeProcess = new NativeProcess();
nativeProcess.start(npInfo);
nativeProcess.standardInput.writeMultiByte("Print Screen" + "\n", "utf-8");
ThanksDid you give the -jar option with javaw? And the "%1"? See the file associations of some other extensions for example of how to do this
For example on my machine,
W:\>assoc .mp3
.mp3=Winamp.File
W:\>ftype Winamp.File
Winamp.File="C:\Program Files\Winamp\Winamp.exe" "%1"Now I can
start song.mp3Or doubleclick on mp3 file in explorer to open it in winamp. -
How to make the vendor column have figure in GRIR line item with RE document type?
Dear Experts,
Could you tell me how to make the vendor column have figure in GRIR line item whose document type is RE?
Thanks!
Xinling ZhangHi ,
You are using FAGLL03 .
FAGLL03 report vendor code is blank
vendor number in new FAGLL03 tcode (offsetting account information)
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b96fed-eb5d-2e10-1792-f3ff9f65df8a?QuickLink=index&…
Also check OSS note
Note 112312 - Line item: Display of offsetting a/c information
Note 1034354 - FAGLL03: Display of offsetting account information
Many Thanks -
How to execute IDC services from command line
Hey Guys,
is there some way we can execute IDC Services from command prompt.
your any pointers will be highly appriciated.
regards,
sapan
Edited by: sapan on Mar 9, 2009 7:26 AMHey sapan,
You can use IdcCommand to execute services from the command line. The process is as follows:
1. Create a text file with the services calls you want to make, the definitions are in hda format:
@Properties LocalData
IdcService=UPDATE_DOCINFO
dID=1
dDocName=000001
dDocType=MyType
dSecurityGroup=Public
dRevLabel=1
dDocAuthor=sysadmin
dDocTitle=My Title
@end
<<EOD>>
(Note: for multiple entries in the file <<EOD>> is very important)
2. Execute IdcCommand from the <content server install>/bin directory:
IdcCommand -f image_update.hda -u sysadmin -l c:\idccommand.log
Options:
-f = file with service definitions
-u = user to run as
-l (lowercase L) = location for log of execution
More detailed documentation can be found in the Idc Command Reference (idc_command_reference_10en.pdf).
Hope that helps,
Andy Weaver - Software Consultant
Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw >
Maybe you are looking for
-
Is there a utility to list the new T Codes in ECC 6.0 compared with 4.7
Hello: I am aware of using SCMP and comparing the TSTC table for new Transactions. Is there any OTHER utility provided ? Thanks
-
Networking between Oracle vm machines
hi, I am using Oracle vm virtual box manager and create two machines on it. One is Centos and other is solaris 10 with dhcp configuration, internet is working on both machines also access base operating system but cant access each other. I want to ac
-
What is best way to start up to secure processes with encrypted passwords
Please redirect me if this should be in another Java forum ... I want to have 2 Java applications running on a secure server. Both contain a password in memory that needs to be kept highly secure. Also, I want each application to be able to restart t
-
How to enable syslog error logging in CF801? Its old & documented bug #47314 [http://www.adobe.com/support/coldfusion/releasenotes/mx/knownissues_mx_j2ee_p2.html] In the ColdFusion MX Administrator,on the Debugging & Logging > Logging Settings page,
-
Wrong dataproviders in web items
hi experts I am trying to create one webtemplate.Here I added some webitems in template(in WAD3.5) and trying to execute it in Browser.Its showing wrong data.Then I came back to WAD and observed that for all my webitems ,the dataprovider is changed t