How to run .pdb file
we using Oracle 10g on AIX 6 server. In our server, have 3 different Database namely Test, training and production. I want to run a patch file extension PDB. But how can I run PDB file in Test database.
Hello people,
is anybody here who can give an example without
refering to instruction how to run jar file?java -jar yourJarFile.jar
in case if you want to be refered to instructions later during the day, [url http://java.sun.com/docs/books/tutorial/jar/basics/index.html] here it is
Similar Messages
-
How to run ear file in java application server
i want how to run .ear file in java application server
1. i m created ear file
2. i m created jar file (bean,home,remote)
3.i m created war file(in the form of jsp)
but till now i couldnt run ear file
how to run
please hel meYou must create :
1.Jar file
2.War file
And then put them into an ear file
Exemple : myapp.ear contains
myappEJB.jar
myappWEB.war
META-INF/application.xml
and application.xml looks like this :
<application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
<display-name>myapp</display-name>
<description>Demo application</description>
<module>
<ejb>myappEJB.jar</ejb>
</module>
<module>
<web>
<web-uri>myappWAR.war</web-uri>
<context-root>/myapp</context-root>
</web>
</module>
</application>Good luck -
How to run .exe files with Virtual PC for Mac
Hey Guys, I'm new around here and with mac technology as well. Anyway, I have an iMac OS X 10.5.1 Leopard and I've recently purchased the Virtual PC for Mac 7.0.2 software. So I'd like to know how to use this program properly, because I need to run some executable files in my computer. It is confusing for me because I don't know how to get started, and I only get to the part when it says "OS not found, Install an OS on this hard drive".
Honestly I've no idea of what an OS is or where do I get that. So I'd really appreciate if one of you guys could tell me, step by step, what to do to use Virtual PC properly, and finally learn how to run .exe files on mac.
Thanks in advance!
Have a nice day!Always nice to see new faces
Honestly I've no idea of what an OS is or where do I get that.
This brings up the second part of your problem. The first part is setting up either a proper Virtual Machine program like Parallels or VMfusion, or setting up a Boot Camp partition on your drive.
http://www.parallels.com/
http://www.vmware.com/products/fusion/
OS stands for Operating System. You are running Leopard 10.5.7 as an operating system on your Mac (MacOS X).
The second part of your problem - You will need a copy of Windows XP or Vista if you want to run Windows on your Mac.
There is at least one other solution for running Windows programs on a Mac. It's called "CrossOver" by a company named 'Codeweavers'. It's based on a project for "Wine" to be able to run PC programs on a Mac or Linux, without having to buy or install Windows. It works with a narrow subset of Windows programs so you would want to make sure the program you want to run is compatible with CrossOver before you buy it.
http://www.codeweavers.com/products/cxmac/
In addition to all the above information, you need to upgrade your Mac to the latest 10.5.7 from 10.5.1. "Software Update" is located under the black Apple icon in the Menu Bar at the top left corner of your monitor. After you are updated you will want to update your Profile here so that it shows the proper OS version.
With your level of experience with MacOS X and the Windows OS's you should probably get some help from a local Apple store. They have an appointment system and do offer many types of help and training, and they can offer assistance with choosing the proper programs for you to purchase for your machine.
You are also welcome to continue to ask questions here, of course. You will want to ask your questions with different issues that come up in different threads so that the answers stay focused on the title of the thread.
Message was edited by: dechamp to try to be more accurate with a fairly complicated issue... -
How to run .exe files in mac pro?
how to run .exe files in mac pro?
i am looking for this to play games in my mac pro.
if someone got a answer, just let me know
cheers.mailking wrote:
And I fail to see why you are attacking me...
My comment is Valid... " .exe files will not run natively on Mac OS X..."
I am sorry. I had the false impression that it was commonly known that .exe files did not run on Mac OSX natively and failed to see any constructive critique you were bringing. Maybe I am wrong. Again deepest apologies.
Unfortunately... these days... not every one is aware of this .exe fact..
Apology accepted.. and Thank You.. -
How to run script file ( unix script file like ksh or sh file) using Java
How to run script file ( unix script file like ksh or sh file) using Java Program?.
I am using the following code snippet to run the simple commands like top or ls ,etc....
Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec("top");
Thanks In Adavance
-SivaString [] { "ksh" , "-c" , "script", "arg 1", "arg 2", "arg 3"}
-
How to run .sql file in tsql or powershell
Hi All,
HOw to run .sql file inside the TSQL or powershell using with IF else condition. This below query works fine but when i executing through the SQL Agent it's geeting an error.Please could help how to run through the SQL agent already using execution type
in agent as 'Operating system(CmdExec)'
Declare @computerName varchar(100), @InstanceName varchar(50)
SET @ComputerName = REPLACE(CAST(SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS varchar),'\','$')
SET @InstanceName = REPLACE(CAST(SERVERPROPERTY('instancename') AS varchar),'\','$')
IF (@InstanceName = 'SQL2008R2')
Begin
:r C:\BackupFolder\Test1.sql
:r C:\BackupFolder\Test2.sql
End
IF (@InstanceName = 'SQLINS2')
BEGIN
:r C:\BackupFolder\Test3.sql
END
IF (@InstanceName = 'SQL2012')
BEGIN
:r C:\BackupFolder\Test4.sql
END
Thansk in Advance
A-ZSQLIn T-SQL, you can try using sqlcmd to invoke sql file
if @@SERVERNAME='abcd'
begin
Master..xp_cmdshell 'sqlcmd -S <ServerName> -i BackupDetails.sql -E'
end
OR
PowerShell
Load the snapins
Add-PSSnapin SqlServerCmdletSnapin100
Add-PSSnapin SqlServerProviderSnapin100
Function Get-SqlInstances {
Param($ServerName = '.')
$localInstances = @()
[array]$captions = gwmi win32_service -computerName $ServerName | ?{$_.Name -match "mssql*" -and $_.PathName -match "sqlservr.exe"} | %{$_.Caption}
foreach ($caption in $captions) {
if ($caption -like "MSSQLSERVER") {
$localInstances += $ServerName
} else {
$temp = $caption | %{$_.split(" ")[-1]} | %{$_.trimStart("(")} | %{$_.trimEnd(")")}
$localInstances += "$ServerName\$temp"
$localInstances
$instance=Get-SqlInstances -ServerName HQDBSP17
foreach($i in $instance)
if($i -like 'CRM2011')
write-host 'CRM Database'
invoke-sqlcmd -inputfile 'F:\PowerSQL\test.sql' -ServerInstance 'abcd'
if( $i -like 'SQL2012')
write-host 'SQL 2012 instance'
invoke-sqlcmd -inputfile 'F:\PowerSQL\test.sql' -ServerInstance 'abcd'
--Prashanth -
How to run media file after Runtime.exc the real player?
Hi
How to run media file after Runtime.exc the real player applicationString command = "cmd /c start videotest.rm";
Runtime.getRuntime().exec(command); -
How to run batch file from oracle forms 9i
Hi everyone.
i have a data in csv file. i want to upload it to my database. i am using sql loader for it.
i have made a batch file which run the sql loader and transfer my data to database.
How to run batch file from oracle forms 9i.
when i press the button, nothing uploads in my database. (when i simply run the batch file it works).
here is my code
Begin
HOST('C:\temp\batchfile.bat');
message('done');
end;
Thanks in advance
regards
sajidthis is my log file, when i run manually.
SQL*Loader: Release 10.2.0.1.0 - Production on Thu Jul 1 23:27:53 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: file_to_upload.ctl
There are 2 data files:
Data File: sk.csv
Bad File: sk.bad
Discard File: none specified
(Allow all discards)
Data File: sk1.csv
Bad File: sk1.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table KHAN, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
SR FIRST * , O(") CHARACTER
DATES NEXT * , O(") CHARACTER
AGENT NEXT * , O(") CHARACTER
COUNTRY NEXT * , O(") CHARACTER
TRANSACTIONS NEXT * , O(") CHARACTER
PKR NEXT * , O(") CHARACTER
USD NEXT * , O(") CHARACTER
BANK NEXT * , O(") CHARACTER
Table KHAN:
11088 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 132096 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 11088
Total logical records rejected: 0
Total logical records discarded: 0
Run began on Thu Jul 01 23:27:53 2010
Run ended on Thu Jul 01 23:27:54 2010
Elapsed time was: 00:00:00.63
CPU time was: 00:00:00.17 -
How to run .java file in windows ?
How to run .java file in windows without installing any program? Thx!
First, U must make sure that there is JDK on your computer
Then, set the envionment variables which the os can find your compiler and interpreter: javac java
after those, you must complie your .java file to .class file, then you can excute it by java, for example " java helloworld" -
How to run SQL files from Java?
Hi,
Can someone point me towards a link on how to run sql files in Java? Thanks.
P.S...if I've been completely blind please go easy on me!Sorry forgot the formating code thingy
public static boolean executeScript(File script, Connection conn){
boolean success = true;
success = script.exists();
if(success){
DEBUG.print("ES::READING SCRIPT:" + script.getAbsolutePath());
StringBuffer buffer = new StringBuffer();
success=readScript(script,buffer);
if(success){
try{
String creationScript = buffer.toString();
Statement st = conn.createStatement();
int start = 0;
int end = 0;
while (end != -1 && start < creationScript.length()) {
end = creationScript.indexOf("GO", start);
if (end != -1) {
DEBUG.print(creationScript.substring(start, end));
st.executeUpdate(creationScript.substring(start, end));
start = end + 2; //2 is the length of "GO"
st.close();
}catch(Exception e){
success=false;
DEBUG.printStackTrace(e);
}else{
DEBUG.print("ES::SCRIPT FILE DOES NOT EXISTS");
success=false;
return success;
public static boolean readScript(File script, StringBuffer buffer){
boolean success = true;
DEBUG.print("RS:: reading file :" + script.getAbsolutePath());
try{
InputStreamReader isr = new InputStreamReader(new FileInputStream(script),"UTF16");
int ch;
while ( (ch = isr.read()) > -1) {
buffer.append( (char) ch);
if (isr != null)
isr.close();
}catch(Exception e){
success=false;
DEBUG.printStackTrace(e);
return success;
} -
[CS4:JS] How to run ".sh" file through Javascript
Dear All,
How to run the ".sh" file through Adobe InDesign Javascript, I used the below coding:
//================== Code =============================//
var myFile = File("xxx/xxx/xxx/Test.sh");
var Exec = "sh" + " "+ "\""+myFile+"\"";
File(Exec).execute();
//================== End =========================//
the above coding is not working, I checked before without "sh" also, It is not working.
Please anyone can give me the solutions & suggestion, and I will appreciate.
Thanks & Regards
T.R.Harihara SudhaN.,Dear Hawkinson,
Many thanks for this quick reply, I'm really very happy, but unfortunately the script is return the "Permission denied" value.
I used the below code, Please kindly change if anything is wrong.
//====================== Script Source =====================//
var myFile ="/Applications/MacXinPro/IDMLExportparse.sh";
shell(myFile);
function shell(cmd) {
var
rv,
call ='do shell script "'+ cmd.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"';
try {
rv = app.doScript(call,ScriptLanguage.APPLESCRIPT_LANGUAGE);
} catch(e0) {
rv = e0+"\n"+(rv?"":rv);
return rv;
//====================== End : Script Source =====================//
//=========== Output ================//
Execution finished. Result: Error: sh: /Applications/MacXinPro/IDMLExportparse.sh: Permission denied
undefined.
Please kindly help me...
Thanks & Regards
T.R.Harihara SudhaN -
How to run jsp file in Apache Tomcat 5.0?
hi,
i'm using jdk1.5,jsp1.2 & Apache Tomcat 5.0 as a web server.in my application i have 2 jsp files,1 html file & 1 javabean class.where i must place the html,jsp files and the .java file & .class file for a bean class.how to run this application.
bean class:
public class Userdata {
private String username;
private String email;
private int age;
public void setUsername( String value )
username = value;
public void setEmail( String value )
email = value;
public void setAge( int value )
age = value;
public String getUsername() { return username; }
public String getEmail() { return email; }
public int getAge() { return age; }
getname.html file:
<HTML>
<BODY>
<FORM METHOD=POST ACTION="Savename.jsp">
What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
<P><INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
savename.jsp file:
<jsp:useBean id="user" class="Userdata" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<HTML>
<BODY>
Continue
</BODY>
</HTML>
nextpage.jsp file:
<jsp:useBean id="user" class="Userdata" scope="session"/>
<HTML>
<BODY>
You entered<BR>
Name: <%= user.getUsername() %><BR>
Email: <%= user.getEmail() %><BR>
Age: <%= user.getAge() %><BR>
</BODY>
</HTML>
refer these source code and plz,give the result at the earliest.
whether i want to write a web.xml file for this jsp file.
if yes,means plz present the web.xml file for this application.
plz,if anybody knows give me detailed description for this application.create a dir under webapps dir
place your .html and .jsp files here
also create WEB-INF dir here
Under WEB-INF create classes and lib dir
under classes dir put your .class file
You also need to put web.xml under your WEB-INF dir.
You ca keep your java file any where u want on your computer. -
How to run .html file from .java file..?
Hi All,
I was just trying as mentioned in the subject of how to run an html file from a java file.We have runtime class which inturn is having exec method which returns process but it supports only .exe as an argument .Is there any way to do this???
Thanks in advance.viswa07 wrote:
You mean to say Desktop class in java...???I'm so sorry, I thought you knew enough Java to look up the API.
[This link|http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html] might be more at your level.
db -
How to run .cmd file from a Powershell script
Hi,
I would like to know how I run commands from a powershell script? how to use the invoke-command?
This powershell script doesnt work for me
Invoke-Command C:\setup.cmd -ArgumentList install-setupforcedTo run a batch file from powershell, just type its name with arguments. I'd recommend explicitly including the .CMD file type and, if it is located in the current folder, powershell rules require you to explicitly say so, i.e.:
./mybatch.cmd inputfile.txt outputfile.txt
To run a single cmd.exe command, just prefix it with cmd.exe /c as Mike says:
cmd.exe /c color 48
to run a series of "&"- separated cmd.exe commands you need to enclose the complete command string in double quotes:
cmd.exe /c "color 37 & dir"
Beyond that it can get complicated due to various characters that are special to powershell and those special to cmd.exe. If you need to run a series of cmd.exe commands, your best short term bet is to put them in a batch file. The best long-term bet is
to move more completely to the powershell way of doing things...
Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate. -
How to run two files with same url- urgent
hi,
i created two servlet page and both are working very fine.but at same time i only able to run one file with same url. Is possible to run two or more file at same time with same url name..
if you r not understanding what i want to ask then, i have two file names under helloWeb directory
1) helloWorld.java(servletname s1, url /man)
2) helloWeb.java (servletname s2,url /man)
to run - http://localhost:7001/helloWeb/man - it runs very first file which is added to deployment module.
so i want to know how i can run both file with same url, for this what i have to pass on my address bar.
plz help me i m wating
<b></b>Hi,
We can give same url mapping to both Servlets but we can access the servlet which is entered first in web.xml because whenever we send a request to the webserver then webserver look at the elements in web.xml file one by one.
When it finds the corresponding url mapping then immediately sends the response to the client.The same url mapping for the next element will be ignored.
I think there is no possibility to access both servlets with same url.
Regards
Anilkumar kari
Maybe you are looking for
-
How do I enlarge the font in messages received and sent? I have the font set at "13", but the appearance on my screen is very, very small. When I try to "customize the toolbar" to look like the tool bar above this message, I am unable to do so. Pl
-
Accounts Payable - Tracking of Advances & Partial payment against Invoice
I want to co-relate the advance payment and various partial payments made to one vendor with the specific Invoice. Can you please suggest the wayout? Suppose I have made down payment to Mr. A. Then I have booked the invoice against which various part
-
Counting the number of pixels in a certain range within an ROI
I am using Vision 6.0 for Visual Basic. I would like to get a count of the number of pixels within a particular region whose value falls within a certain range (e.g., the number of pixels with values between 86 and 255). Can anyone tell me how I can
-
My new Skype Number is already in use!
I have purchased a skype number, but that number is already in use. HELP!! This post was transferred from its previous location to create its own new topic here; its subject and/or title has been edited to differentiate the post from other inquiries
-
Can I run Photoshop CS4 and CS5 on the same system?
I read somewhere a zillion years ago (right?) that you coould run CS4 and CS5 on the same system but at the time I wasn't even considering it. Run on the same system - not ness to run at the same time Or should I install it on a seperate drive (boota