Running the script
I have to run a script file with 150 sql commands to test the integrity of the database and output into an outfile.Is there any way to send the output results with sql syntax and its corresponding number.Thanks in advance for help.
Modify the script to add something like
PROMPT Statement 1before each SQL statement. Prior to running the script, issue
SPOOL <path>/outfile.lsand after the script is done, do
SPOOL OFF
Similar Messages
-
Powershell Change date to the first day of last month whenever i run the script.
If I run the script on 2/4/2013 or any other day in February I want the date to be change to 1/1/2013. I am replacing date on line 59 with this value.
Get the content of the CMS Script.
$CMSReport = Get-content C:\reports\CMSReport.acsauto
Go to line 59 and replace the date for Last Month date.
$CMSReport[58] = $CMSReport[58] -replace "([1-9]|0[1-9]|1[012])- /.- /.\d\d", [datetime]::Today.ToShortDateString() $CMSReport | Set-Content C:\reports\testCMS.acsauto
Run the CMS script
Invoke-Expression -command "c:\reports\testCMS.acsauto"PS C:\> $lastMonth = (get-date).AddMonths(-1)
PS C:\> $firstDayOfLastMonth = get-date -year $lastMonth.Year -month $lastMonth.Month -day 1
PS C:\> "{0:yyyy-MM-dd}" -f $firstDayOfLastMonth
2013-01-01
Bill
Hello AbqBill,
Thanks for getting me there. I am a lot closer to the final goal. I input what you suggested and I am getting different results as you. here what I did.
$LastMonth = (Get-Date).AddMonths(-1)
$FirstDayofLastMonth = Get-Date -year $LastMonth.year -month $LastMonth.month -day 1
$CMSReport = Get-content C:\reports\CMSReport.acsauto
$CMSReport[58] = $CMSReport[58] -replace "([1-9]|0[1-9]|1[012])[- /.]([1-9]|0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d", "{0:dd/MM/yyyy}" -f $FirstofLastMonth
$CMSReport | Set-Content C:\reports\testCMS.acsauto
I get 12/1/2013. Which bring me to 2 questions. How will this solve when it is January and it has to put last month last year? and why is it going back two month instead of 1? -
Data access error while running the script in fdm workbench script editor
Hello Experts,
I have been getting the error when i run the script in script editor of fdqm workbench client.this is the error
-2147467259 Data access error and it is navigating the error at line 30 about this script "Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)"
Please revert me asap where i should load the data from peoplesoft to one of my planning database through fdm.
Thanks in advance...Hi,
Thanks for your suggestion's here i am going to run the datapump script so while i am running in workbench it is throwing data access error.So as you guy's suggested i created one import format and added this script to that import format which is added to one of my location even it is throwing the same error.I am getting the error at this sentence "strWorkTableName" I want to know what is this where it reflect's?So my question is Is there any difference while running data pump or integration script.Please let me know a detailed navigation steps to run this script's with out data access error to run these kind of scripts.
Note:Again my target is to load the data to planning database through fdqm which i am doing through sql statement's.
Suggest your valuable suggestion's
Thanks in advance...
I am getting the error at this sentence "strWorkTableName" I want to know what is this where it reflect's? -
I get a window pop up after every click into a new site that reads : Safari is no longer responding because of a script on the webpage " ". Do you want to stop running the script, or let it continue? If I click on continue it just continues, stop, it stops. How to correct this annoying message?
Disable Javascript for those webpages. Note, your Javascript is probably antiquated by now. Try a different web browser, or contact the website and let them know they aren't as accessible as they could be*:
http://www.macmaps.com/browser.html -
Oracle 11gR2 RAC: Running the script root.sh problem
Folks,
Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer and according to the tutorial
http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
I have been installing Grid Infrastructure using runInstaller from step 1 to step 9 of 10 in both VM rac1 and rac2.
Now, I am running the script root.sh in VM rac1 and rac2 as below:
[root@rac1 /]# /u01/app/grid/root.sh
Output:
CRS-4123: ohasd is starting
FATAL: Module oracleoks not found
FATAL: Module oracleadvm not found
FATAL: Module oracleacfs not found
ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
ACFS-9310: ADVM/ACFS installation failed.
ACFS-9311: not all components were detected after installation
'UpdateNodeList' was successful.
[root@rac1 /]#
[root@rac2 /]# /u01/app/grid/root.sh
Output:
CRS-4123: ohasd is starting
FATAL: Module oracleoks not found
FATAL: Module oracleadvm not found
FATAL: Module oracleacfs not found
ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
ACFS-9310: ADVM/ACFS installation failed.
ACFS-9311: not all components were detected after installation
Start of resource "ora.asm_init" failed.
Failed to start ASM.
Failed to start Oracle Clusterware Stack.
[root@rac2 /]#
As we see the output above, rac1 and rac2 get the same problems. in addition, rac2 fails to start ASM and Clusterware stack. Thus, I have 2 questions:
First, the common problem for rac1 and rac2 :
1)Module "oracleoks, oracleadvm, oracleacfs" not found
2)/dev/asm/.asm_ctl_spec not detected
3)ADVM/ACFS installation failed
Do the above 3 factors affect Grid and DataBase Installation later ? If yes, how to solve these problems ?
Second, how to start ASM and Clusterware stack in rac2 ?
Thanks.you have 2 options:
1. OEL 5.6 comes with 2 kernels, the original Red Hat, and Oracle UEK, you can choose not to use UEK
or the one i would recommend:
2. Upgrade Grid Infrastructure,
*11.2.0.3.1* (patch 13348650, released about a 1 month ago) supports ACFS on UEK (starting with 2.6.32.200 IIRC) -
Do you want to run the script? Yes.
I'd like to be able to run a script without having to confirim that I want to run the script.
"You are about to run a script in Adobe InDesign CS5. You should only run scripts from a trusted source.
Do you want to run the script?"
Is there a way to execute the script without having to click this?I should have clarified that I want to execute the file externally, through a BAT file. I'm trying to eliminate all GUI steps. Essentially I have a set of routines I'd like run once a day, it would be ideal to run them outside of office hours as I'm dealing with the files and InDesign in other ways throughout my workday.
However as you pointed out if you run the script through the Script Panel there is no dialog asking for confirmation, so it must be possible to execute a script without the dialog. -
Could not run the script. This command requires an active document.
Hi,
I'm receiving a confusing glitch running a batch process in
FW MX 2004.
I want to resize images in one folder and export them to
another. I step through the batch wizard and on commencement of the
batch receive an error:
quote:
Could not run the script. This command requires an active
document.
FW is telling me it can't run the commands on empty
documents, yet the batch is running on all images selected using
Add All during the batch wizard. Confusing. Similar batches have
worked fine in recent days.
Any ideas?
Thxtkatcher wrote:
> Thank you. Some of them had brackets and percentage
marks.
You are welcome.
E. Michael Brandt
www.divahtml.com
www.divahtml.com/products/scripts_dreamweaver_extensions.php
Standards-compliant scripts and Dreamweaver Extensions
www.valleywebdesigns.com/vwd_Vdw.asp
JustSo PictureWindow
JustSo PhotoAlbum, et alia -
Why MicroSoft 2000 SR needed while running the script using test manager???
hi all,
whenever I trying to run a script using test manager,one POP-UP comes which starts installing MICROSOFT 2000 SR.
and in few seconds it complaining for some missing component,
can any body tell me why it is happening.
what is the need of Microsoft 2000 SR while running the script in test manager.
tnx
USOniUSoni
I have seen that problem happening before, even that i was never able to figure out why, something that you can try is changing the service log in credentials for both:
Oracle Application Testing Suite Agent Service
Oracle Application Testing Suite Application Service
and use a proper user with admin rights.
let me know if that helped
Regards
Alex -
JQuery UI MultiSelect Widget--error like Stop running the script
Hi
i have imported CSS and JS into APEX Application from the below url and multiselection is working fine but the issue is , when i click on other items which have nearly 5000 records then its displaying pop up box like "Stop running the script.A script in this page causes IE to run slowly.If its continues to run your computer may become unresponsive"
http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/
Can i get selected records shoul appear first in lov?
Please help me to solve this issue.
Regards
Narender BNarender,
The problem is due to the volume of items in your multiselect. The error you reference is not coming from APEX but, rather from the browser. In Chrome, you would get a slightly different message. As a safety precaution, browsers will start a timer when a script is executing and raise the warning you reference if said scripts are taking too long. This is usually a good thing. For example, the script might contain an infinite loop.
There really is not going to be a way to use a mutli-select in this manner with 5K items. I would encourage you to think about the usability of this control for your end user. Are they realy expected to scroll through 5K items to find individual ones that they wish to select?
You could consider switching to a tabular form and using the check box in a similar manner. You can sort on this so that the selected ones appear first.
-Joe -
I created a script to add logos to photos at a club and now when I run the script, the script runs but does not actually place anything on the photo itself. What's going on?
He meant post it here, of course, Louie! How on Earth would you post it "on Photoshop" ?
Thank you for the belly laugh. -
Fireworks (cs3) could not run the script
When I choose in adobe dreamweaver: command->create web
photo album fireworks (fw) is launched. The problem is that when fw
is launched I got the following message: "Could not run the script.
The file was not found." So the result is a webpage without
pictures and thumbnails.
What can I do?
Thank you for your answer in advance,
sz.g.[AM] I wonder if this could be related to your InteliMac?
I'll try and repro the problem you are experiening.
Alan I do believe the problem is directly related to the
IntelMac issue with DW & FW having to run in Rosetta.
Unfortunatly the Adobe document FAQ Adobe Support for
Intel®-based Mac computers
http://www.adobe.com/products/pdfs/intelmacsupport.pdf#search=%22adobe%20studio%208%20not% 20supported%20intel%22.
in the section "Are there any known issues with running Adobe
Creative Suite 2, Studio 8, or After Effects 7.0 under Rosetta?"
doesn't say anything about the Web Photo Album command not working.
I upgraded to Studio 8 in mid August because when I upgraded
to an InteliMac I found that the FTP in my older DW MX application
would crash the application and obviously that would make working
on any websites sort of difficult. So I upgraded to Studio 8 and
everything was running fine (albeit slow at times) until about
three weeks ago now when a web site I was working on for a client
called for Web Photo Album and I discovered this problem.
It also turns out that I happen to like using the JustSo
Photo Album extension but it failed in the same way so it must call
on Fireworks in the same way that Web Photo Album does.
[AM] You could try this Slideshow Creator extension for
Fireworks:
Thanks for that tip. Is the Slideshow Creator your creation?
Unfortunalty I needed a "Photo Album" and not a slide show so I
ended up using Galerie (
http://www.myriad-online.com/en/products/galerie.htm)
but I like the idea of a slideshow too.
I downloaded and tested your Slideshow Creator Extension and
ran a quick test and I like it but for one thing. The album page it
created had all the thumbnail images bunched up in the upper left
hand corner. I don't know whether that was something I did or
failed to do in setting up the output or is it another InteliMac
with Fireworks? I'll have to take another look at it this weekend
when I have some extra time.
Thanks again for the tip. -
How to find the missing fonts while running the script?
hi,
I need to create a script to find the missing font. not only for that. Actually i created a script to read the file properties. but i have a problem while running the script.
I have put "User Interation Level" to never interact. Even i need to check wheather each file have "missing fonts". mean time i never stop the script.
Is It Possible???
Regards,
SubhaOviyaHere's a shot of the Find Font Dialog:
Papyrus (highlighted in the list) is missing, and there's a yellow warning triangle to show that. Fonts that ar not missing have an icon to show the type of font. You'll also see it shown as missing in the "Info" box at the bottom of the dialog.
If you use the Replace With dropdown you will only see fonts listed that are installed on the system. In order to actually use the missing font, rather than substitute a different font in its place, you must obtain and install the missing font on the system.
Are you seeing something different when you open Find Font? -
Here is my scenario - I have SCOM 2007 R2 and on certain agents I want to execute a script. One of the actions of that script is to access a secured web page using a username and password via integrated authentication (IE pop-up for auth).
The username and password that I need to use are unrelated to the Windows domain that the servers run in, meaning you can think of the website as if it were a public site (it isn't, but it has no security sharing with the domain where the agents run - no trust,
no nothing).
I can easily accomplish this by hard-coding the username and password within the script (powershell), however, I don't want to do this for security reasons. Here's a rough example of the relevant code:
$targetURL = "https://somehost.somewhere.something/filename.zip"
$path = "c:\downloads\filname.zip"
$wclient = New-Object System.Net.WebClient
$wclient.Credentials = New-Object System.Net.Networkcredential($uname, $pword)
$wclient.DownloadFile( $url, $path )
What I want is a way to pass the $uname and $pword variables to this script securely, with the script running on a schedule under SCOM. The SCOM agents run as localsystem and need to remain that way.
I currently use Run-As accounts and profiles for other functions where the entire script runs under the run-as profile, but I can't figure out how to extract the username and passwords, and doubt it's even possible.
To be clear, I cannot run the script under the given credentials as a Run-As account as those credentials are not known to the local server. I need to somehow pass the credentials to the script (other than hardcoding) or extract them from the run-as accounts.
I've looked at the get-runasaccount cmdlet and can see some of the info there, but don't see a way to re-use, pass-through, or extract the password for use in my scenario.
Any guidance? Can I get there from here?Hi, check this
http://social.technet.microsoft.com/Forums/windowsserver/en-US/ebfc706d-93be-4ca0-83e0-33d9e072fb97/powershell-script-monitor-with-encrypted-password?forum=operationsmanagerauthoring
But you should not specify runas account for your workflow, just reference Runas Username and Password from Profile and use simple authentication. (The same way as in article above)
So in the end your script will be executed by default action account but you'll pass username and password securely to your script. -
Running the Scripts of Essbase in Server rather than in Client
Hi,
We have Scripts which run for different Loads like INK/TONER/FAST etc. The Essbase Version we use is 11.1.2.2.
The content of the Scripts are as below.
INK.cmd
del U:\FAST\Logs\Ink_Assumpt_Extract.log
call C:\Hyperion\products\Essbase\EssbaseClient\bin\startEsscmd.bat U:\FAST\sub\sub\Ink_Assumpt_Extract_FAST.cmd
cd U:\FAST\data\
del Ink_Decay_Rates.OUT
move Ink_Decay_Rates.dat Ink_Decay_Rates.OUT
del Ink_Pen_Price.OUT
move Ink_Pen_Price.dat Ink_Pen_Price.OUT
del INKASM10.OUT
move Assum10.dat INKASM10.OUT
To run the above Script the User will install the Essbase Client in his PC and startEsscmd.cmd is executed as they will map the Folder to their PC using U Drive Version. This folder exists in Server.
Now the requirement is to change the Script running with User depending on Essbase Client. We need change the Script to run in Server itself when the users runs the script.
I want to execute this StartEsscmd.bat with the one available in Server as the below one
call F:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\essbaseserver1\bin\startEsscmd.bat U:\FAST\sub\sub\Ink_Assumpt_Extract.cmd . Rather than users installing Client.
Is this how we can make the script to run in Server itself. Or any other process. Please help on this.
Regards,
NaveenHello Experts,
These batch scripts are dependent on Informatica Environment as well. Once all the Essbase batch files runs there will be data files in DAT Folder and using the timestamp of current month these data files will be send to Informatica Env and there one Job runs which will convert all the .OUT files into a .DAT file and load into DB. Its the Process.
Now we cant change the entire process but need to get rid of Essbase Client dependency.
All i want to know is if we change the path of the files from
call C:\Hyperion\products\Essbase\EssbaseClient\bin\startEsscmd.bat
to
call F:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\essbaseserver1\bin\startEsscmd.bat
or
call %ARBORTPATH%\bin\startEsscmd.bat
will the files runs in server side. I tried with this but getting an error saying
System cannot find the path specified. Please help.
Regards,
Naveen -
"Stop running the script?" error after power-up and before starting Firefox
I have a Windows 7 x64 Enterprise system with Firefox 10.0.02. I'm getting the error
''''''Stop running this script?'''
'''A script on this page is causing your web browser to run slowly. If it continues to run, your computer may become unresponsive''''''
after I power up my PC, but before I open Firefox.
The error message, of course, does not identify what "this page" is, or tell anything about the script. The error message doesn't even say it's from Firefox (or Internet Explorer, for that matter).
I've done a virus scan, a spyware scan, and an adware scan, but the error keeps popping up.
Everything I've found on the web about this error assumes the problem is with Internet Explorer, but I don't use IE.
Suggestions?
Thanks.Start/All programs/Startup has only McAfee Security Scan Plus. After power-up, clicking on Show Hidden Icons lists Sound Effect, McAfee Total Protection, Spybot-SD Resident, Ad-Aware, and a flag labeled "Solve PC issues: 1 message".
If I click the flag, it opens Windows Backup Troubleshooting Options. The message is "Check your backup settings. Windows cannot find the disk or network location where your backups are being saved". There are two options -- Change backup settings and Try to run backup again.
This is because I do not usually have the external herd drive I use for backup attached. I ignore this message.
Also, Sql Server 2008 R2 and Oracle 11gR2 start up, along with IIS. I use this PC for various courses.
FWIW, I've attached screen grabs of the Services and Processes from Windows Task Manager.
Thanks.
Maybe you are looking for
-
DV7T quad core fan on and off on and off repeatly
Hi everyone, I was wondering if anyone experience this fan problem. Just today, I opened quite a few chrome tabs, maybe like 50 or so. And after a few hours of usage, suddenly the fan started to turn on and off on and off at every 1 second interval.
-
Problems with integracao of the JDeveloper with Software Configuration Management (S
1) Error with JDeveloper 9i and Software Configutarion Management (SCM) I have a problem with the JDeveloper 9i integrated with the repositorio 6i (SCM). When I make checkout of a source in java of the repositorio, after that I make the alteration an
-
Greetings. towards Support. of the this flash Program. forgiven me, for asking.. I know. The flash player is, made for a large amount, different users. around the world, and also. made for. different functions. but I, keep seeing, ( as what I know fr
-
Reg Authorisation presence in a role
I have an authorisation called S_RS_HIER to be given to a person. Is there any SAP created roles which contains this authorisation so that i can assign it to him Where can i see the SAP created roles and authorisation(any document) .Please let me kn
-
How to use Portal Navigation to redirect to the URL
Hi , I have a requirement where i need to log off the user which will invalidate the session and redirect the user to the Portal Login Page. <b>The logoff.jsp is in a path like /web/logoff.jsp in the server.</b> As there is a Problem with exit plug,