Running scripts from windows
How to run sql/batch scripts if they are located on some window directory.
like
SQL>@'C:\<path>' for sqlscripts
C:\script.bach for batch jobs
right, send me some link to study scripting on windows plz
Did you try it?
I think you could get a quicker answer by trying it yourself (or heaven forbid, reading the SQL Plus manual).
Similar Messages
-
Run Scripts from windows command line
Hi, We're creating a test enviroment and we need to "rebuild" our Database (Tablespace) from scratch everytime we run a test.
What we need is to run all scripts files from windows command line, there is any command or application we can use here?
thanks.
Fernando.Create a scripts.bat file with something like this in it:
@sqlplus -S username/password@connect @scriptname.sql -
Script Alert "You should only run scripts from a trusted source."
I created a small javascript which opens Photoshop and resizes some images.
I want to be able to double-click the .JSX file from Windows Explorer, and have Photoshop execute the script. Likewise, I want to be able to run the .JSX file from the command line.
The script runs perfectly. However, the problem is that I don't want any user interaction. I want to be able to run the script from the command line without the user having to click anything. What happens now when I try to run the file from Windows Explorer of the command line is, I get a Script Alert with the following text:
You are about to run a script in Adobe Photoshop CS3. You should only run scripts from a trusted source. Do you want to run the script? Yes/No
Is there any possible way to bypass this message or to answer in the affirmative?
Thanks,
Jamie L.Hi... Sorry to revive such an old thread,
Does anyone know the "trusted source" folder for MAC CS4.
EDIT!
My bad. "The /users/<user_name>/documents/Adobe Scripts" folder is working for this purpose for me. I needed a path to it and forgot that the ~ resolves to the current user. Sweet.
-Bill -
Cannot prevent ExtendScript debugging while running scripts from After Effects
Hi,
I am facing this issue while running scripts from within After Effects. Whenever I am trying to run a script in After Effects, the script opens up in ESTK in the debug mode. The execution waits at the starting point of the script as if there is breakpoint even though there is none. I am not sure whether what I am missing, whether some debug flag needs to be reset etc. I am using After Effects CC on Windows 7 OS. Any help would be highly appreciated.
Thanks.I tried running the script after removing all $.writeln() statements, but unfortunately that does not resolve the problem. For testing the issue, I am trying with the simple script given below :
var window = new Window ("palette", "My Window", undefined);
var panel = window.add("panel", undefined, "Panel");
var text = panel.add("statictext", undefined, "Testing AE");
window.show();
But executing even this one from AE opens up ESTK. I am absolutely stuck with this odd behaviour . -
Error when running script from OTM
Hi team,
Customer is trying to run script from OTM but is getting a "JWG file does not exist" error. I found the following metalink note and the customer has verified that the repositories are defined with exactly the same names & paths in OTM & Openscript.
Scripts Failing To Play Back From OATS Test Manager (OTM) (Doc ID 1587941.1)
I've also checked the following post in the forums but this doesn't apply to the customer because both the OTM & agent are on Windows:
https://forums.oracle.com/message/10707963
Appreciate any pointers
Thanks,
KrishnaHi Krishna
Is the agent running as a windows service or started from an interactive batch?
What kind of script is that? Web, Forms, Siebel, other?
Are they different repositories or the same? If different, how do you copy scripts from one to the other one?
Cheers
JB -
hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package “mzps6175750011235388779.pkg”
can you please advise me what should i do to fix thisSome ideas.
https://discussions.apple.com/message/20034600#20034600 -
Hi! I have problems downloading and installing OS X Yosemite.
While downloading this message pops up:
An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.
and in /var/log/install.log i can see:
MacBook-Pro installd[1086]: PackageKit: Install Failed: PKG: pre-install scripts for "com.apple.pkg.InstallMacOSX"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x100193c00 "An error occurred while running scripts from the package “wct8079783343594854923.pkg”." {\n NSFilePath = preinstall;\n NSLocalizedDescription = "An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.";\n NSURL = "#InstallMacOSX.pkg -- file://localhost/Users/username/Library/Application%20Support/AppStore/91504108 2/wct8079783343594854923.pkg#Distribution";\n PKInstallPackageIdentifier = "com.apple.pkg.InstallMacOSX";\n}
does anyone have an idea about this?
thank you very muchMucked up installation. If the installer app is still in /Applications, delete it and start over.
27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.2), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2 -
An error occurred while running scripts from the package "ztb343812063996219254.pkg
i tried to upgrade my os lion 10.7.5 to os x yosemite on my macbook pro and in the middele of downloading I'm getting this notice: an error occurred while running scripts from the package "ztb343812063996219254.pkg
help me please…..
i think i have problem with the app store cause sometimes I'm getting more errors like error no 13 or 100
what should i do? -
An error occurred while running scripts from the package "mzm,stuhjljp.pkg".
I hope someone can help, I have now tried downloading Lion OSx 4 times and I keep getting this message: An error occurred while running scripts from the package "mzm,stuhjljp.pkg".
I go back to the app store and it kindly tells me it's installed. It's not quite simply it is nowhere to be found.
Nice one Apple for moving away from those reliable discs and causing pain, wasted productivity and a **** of a lot of frustration. $29.99 to annnoy the **** out of me, thanks.
Anyone have a solution that may be of assistance.Mj, I can't offer much help but you may be able to use this method to "find" Lion OS X in the App Store again.
Hold down the "option" key while clicking on the App Store icon. Keep holding down the option key, then click on the "Purchased" tab at the top of the page.
With any luck the button to the right of Lion OS X will now say "install."
I'm having a similar problem reinstalling Lion, so don't be surprised if you try to reinstall and get the same error.
Good luck,
Contender -
"An error occurred while running scripts from the package "DeveloperTools.pkg"
I'm trying install my xcode 4.2 and check log and this where there is problem
"An error occurred while running scripts from the package “DeveloperTools.pkg”II found the answer elsewhere. I logged in from a diffent admin acount and the install went fine.
-
ScriptUI run script from dialog button
Here is what I have right now. It is a little clunky in the way it works, and I would just like to make it a bit slicker.
I have a script on startup that creates a Menu item with a dropdown submenu item. when you click on the submenu item, it starts a script.
The first thing the script does is pop up a message box that tells them that two dialog boxes are going to popup. The first one asking them to choose the location of an xml file and the second dialog box that ask them to choose the location of their image folder. After they finish choosing their folder in the second dialog, the script takes those two values, makes them variables, and continues to run the rest of the script.
Here is what I would like it to do..
1. open a dialog window with two input fields, two "browse" buttons, and OK and CANCEL buttons
2. when you click the first browse button next to the first input field, it will open a file dialog window. You select your file and the file string will populate the input field
3. when you click the second button next to the second input field, it opens a folder dialog window. You select the folder and the string populates the second input field.
4. when you click OK, it feeds the values in the input fields to a script.
I already have scripts to that open the file and folder dialogs, but what I can't figure out how to do is to start and run a script from a button press, in this case, when the OK button is pressed. It is probably an onClick, but I haven't been able to find any examples of what the syntax would be.
The closest I have found is in the Beginning ScriptUI document that was on Jongware's site, in the section on Communication between windows. But that opens each of the windows with a different script and not using a button press to call a script.
As always, any point in the right direction is very much appreciated. thanks.Thanks Gotterman, but the issue I was having was that the dialogs I was opening were not being created by me. They were more like OS generated windows. So I am not able to give the window a name, or the input field a name in order to reference it.
Peters response was actually correct, although I did have to open the folder dialog a bit differently to get it to work. I had to use a style that I got from Jongware in a previous thread, but the concept that Peter showed in the last post pointed me in the right direction.
I just have one more piece to figure out, how I am going to pass the variables to another script, but I think that is something i will have to work out on my own.
For anyone who is curious, here is the code I came up, modifying and combining some of Peters examples from the book plus the help he gave me in this thread. The alert after closing the dialog is just for testing to show that the values are being held by the variables so I can use them else where.
function mySnippet(){
//<fragment>
#target indesign;
#targetengine "session";
var w2 = new Window("palette", "Window 2", undefined, {resizeable: true});
var e2 = w2.add ("edittext"); e2.characters = 30;
var e3 = w2.add ("edittext"); e3.characters = 30;
var f2 = w2.add ("button", undefined,"Browse XML");
var f3 = w2.add ("button", undefined,"Browse Folder");
var f4 = w2.add ("button",undefined,"SAVE AND RUN");
var tf
var tfo
f2.onClick = function() {
tf = File.openDialog("Select your XML File","*.xml");
if (tf != null)
e2.text = tf;
f3.onClick = function() {
var tfol = new Folder("~/My Documents")
tfo = tfol.selectDlg("Get Folder");
if (tfo != null)
e3.text = tfo;
f4.onClick = function()
w2.close();
alert ("xml value: " + tf + "\nfolder value: " + tfo);
w2.show();
//</fragment> -
Issues in running scripts from OTM
Hi ,
I have created an endtoend scenario where the script starts from creating requistion, approval, PO creation approval , receipt creation then Invoice and payment.
My script failing with different reason for different runs. Mailnly its failing whenever the steps are referrred to Standard Oracle Forms.(Eg: Invoice Batch, Receipt Form etc).
I am running this from machine where Openscript and OTM is installed.
I tried the command line arugment like " -delayPercentage -1 -delayMin 1 -delayMax 20 " while running the script from OTM. Still issue is same. If I am not using this commad the script steps deviates and failing. I mean in script the step is to choose some responsibility A it is choosing B. To override think times recorded I have used thread.sleep(2000) after every thinktime entry to run it from openscript.
and to run it from OTM I am using above command.
Now can anyone suggest me is anyother way that we can overcome these timeout errors. Am I using command line argument in correct way ? Please helpHi,
First try your playback from OpenScript.
Before play back go to View -> OpenScript Preferences -> PlayBack -> Oracle EBS/Forms Functional
Increase timeouts in Event Timeout. Also Increase timeout in Web Functional (Object timeout)
Then Apply and OK
Now try play back from OpenScript
Regards,
Deepu M
[email protected] -
I'm having a problem playing some ItunesU videos, some play okay, some just show black screen and don't play, others show a still image but then doesn't play when trying to view them from itunes store. The audio files play with no issues.
I am using windows 7.
However, if I download the videos that don't play to the laptop's drive and run them from the windows directory they play okay. I don't want to have to download videos to see if they are something I'd like to watch.
Just for reference, an example of a video that plays okay is by UC Berkeley Math 16A 001, Fall 2011. Another is Introduction to Robotics by MIT.
An example that just shows blank screen is Stanford's Iphone & Ipad development, Fall 2011, both HD and SD versions.
While an example of a video that just shows the initial image but doesn't play is Harvard's Statistics 110. If you adjust the time of the video, the video moves to that part of the video but only shows the image at that time, ex. at 13:02, but doesn't play.
I've tried reinstalling quicktime first, then itunes. I've also tried putting directdraw in safe mode, but the problem videos still won't play.
Could it be some setting, since it plays when the file is downloaded but won't play straight from itunes store online (ie. pressing the play button beside the video in the itunes list).
Help pls.You might have more luck asking on a general Windows troubleshooting site, but my guess would be an invalid or old audio or CD driver (or firmware in the drive). You might try checking those to make sure you have the correct and most current drivers.
-
Launching scripts from windows task
Hi group
I need to launch some scripts from a Windows Task, they are included on .bat file but when I execute it, it only stay on the first line (SQL> connected). Please help
sqlplus sys/********@MERIDIAN as sysdba;
column date_column new_value today_var
select to_char(sysdate,'YYYYMMDDHH24MM') date_column
from dual
spool E:\object\BD_Meridian\ks_&today_var.txt
/* I need to
execute oracle packages here */
disconnect;
spool off
exit
---------------------------------------Hi,
it only stay on the first line (SQL> connected). Please helpYeah, you cannot wrap!
The solution is to encapsulate it into a xxx.sql file and invoke it from the prompt:
ECHO spool %LOG%OraCall.log > %LOG%OraCall.sql
ECHO set linesize 132 >> %LOG%OraCall.sql
ECHO COL x_tns NEW_VALUE v_tns NOPRINT >> %LOG%OraCall.sql
ECHO COL x_dbid NEW_VALUE v_dbid NOPRINT >> %LOG%OraCall.sql
ECHO COL x_dbname NEW_VALUE v_dbname NOPRINT >> %LOG%OraCall.sql
ECHO SELECT '%DBTNS%' x_tns FROM dual; >> %LOG%OraCall.sql
ECHO SELECT dbid x_dbid FROM v$database; >> %LOG%OraCall.sql
ECHO SELECT name x_dbname FROM v$database; >> %LOG%OraCall.sql
ECHO @SQLSelect.sql >> %LOG%OraCall.sql
ECHO spool off >> %LOG%OraCall.sql
ECHO exit >> %LOG%OraCall.sql
sqlplusw -s "%DBUser%/%DBPass%@%DBTNS%" @%LOG%OraCall.sql > %LOG%OraCall.lst
Jeff Hunter has some great example here:
http://www.dba-oracle.com/t_interface_oracle_windows_bat_file_script.htm
Hope this helps . . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference"
http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm
Edited by: burleson on Dec 22, 2008 11:32 AM -
Running scripts from the catalog
If you run a backup script from the catalog and you lose your connection, does the script continue to run (like if it were run with nohup) or does it fail?
When we connect to RMAN we use TARGET parameter to connect to the oracle instance and if that instance is on some other machine then we use TNS to make the remote connection, its as same as making a connection to the database using sqlplus where RMAN/SQLPLUS is a client program and a corresponding server process get spawned at the server end. After that we allocate channels which are the actual streams where data flows and maintained by the server process and if you kill the client program the corresponding server process will also die, it doesn't matter whether that client is RMAN or sqlplus and you know what it means.
Daljit Singh.
Maybe you are looking for
-
I recently tried to import a cd that I got into itunes. When it imported, instead of being one album by one artist, it created multiple ablums by the same artist. Does anyone know how to fix this problem to bring all the files into one album by the
-
Load balancing on Integrated ITS
Hi How do I setup load balancing on Integrated ITS. Windows 2003 server. Thanks
-
Photoshop Elements and Photoshop Elements Premiere serial numbers
Hi, I just purchased Photoshop Elements Premiere bundle off Amazon (PC download). They weren't clear which serial number was for which programme. It seems that the serial number for PSE Premiere was accept for PSE. Now the other serial number isn't b
-
My ipad has suddenly stopped automatically backing up to icloud, my iphone is syncing fine, just the ipad is having issues. Any suggestions?
-
Duplicate Apps during latest sync...
I have duplicate apps in my iTunes (but not on my iPhone) after the first sync with Snow Leopard. Please help. Thanks