Set executable permission on file in AIR on OS-X
Hi,
Is there a way to set the executable bit on a file in an AIR
app on OS-X?
If your question is is there an actionscript API to set the
bit, then the answer is no.
-ted
Similar Messages
-
How to execute one .exe file with as3 in air ?
Hi
How to execute one .exe file with as3 in air?
I want do this work without fscommand .
plize help me .itsdhanasaraa wrote:
But as this a web application ... By using Runtime i'm getting some probs ..
Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
Ain't gonna happen.
its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
1) it's not "taking more time to execute", whatever that's supposed to mean.
2) there's no other way to execute something. Not that you should every use even that way anyway
3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place. -
Can AIR execute Windows .EXE files?
Can AIR execute Windows .EXE files?
hi
you can now implement a standard windows installer (ie a native installer, rather than the AIR installer) when users install your AIR app. Not sure if there's an option to do this in flex/flash builder but it can be done via command line.
eg:
adt -package -storetype pkcs12 -keystore myCert.p12 -target native NativeProcessTest.exe NativeProcessTest-app.xml NativeProcessTest.swf NativeApps/Windows/bin/echoTestWindows icons
or try this handy packager:
http://www.webkitchen.be/package-assistant-pro/ -
Set Folder Permission with CSV File
I currently have a batch file that I use to set the folder permission on a users folder. The batch file of course requires me to manually set two variables. I'd like to have a master csv file containing this info and a powershell script to allow
me to set these permission much more quickly. Here's my current batch file:
Set User=123A
Set Folder=123
icacls C:\Data\%folder% /grant %user%:(OI)(CI)F
My csv file would appear as 123A,123
I did do a search and found a few posts on this subject, but couldn't wrap my head around how to modify them to fit my needs.
KevinFOR /F "eol=; tokens=1,2* delims=, " %%i in (myfile.txt) do icacls C:\Data\%%j /grant %%i:(OI)(CI)F
¯\_(ツ)_/¯ -
The purpose of the executable permission
Hi,
What is the purpose behind the execute permission of Unix? Because if you can read it, you can always find a way to execute it anyway.
The read and write are pretty obvious.
If you can read a file, even if its execute permission isn't set and you don't have the rights to change the file permissions, you just copy it to your own machine, make it executable, and run it.
What does execute even mean? If it's Brainfuck code, then with read permissions your typical Brainfuck interpreter can execute it, no execute permission needed. Isn't running a Turing complete esoteric programming language considered executing? Or displaying an HTML file with JavaScript code in it...
There's probably something behind the execute permission that I don't know. The only way I come into contact with this permission, is in an annoying way: to enable it because it wasn't enabled already while I want to run it. What good (security) purpose does it serve in practice?
Thanks!It isn't solely about security. You can execute anything you can read, it's always been this way.
s1gma is right in that it 'helps' shells etc. figure out what to execute
The 2 security aspects I can think of are:
a) You want an executable to be setuid for some user, but you only want people from a specific group to be able to execute it as setuid.
They can still execute it by copying, but the setuid flag gets lost, so they'll be executing it as themselves, rather than the user who owned the original file.
b) Help against "accidental" execution.
For instance, a good reason to mount something 'noexec' is because it might contain binaries from other machines, where you don't know what's going on.
So if you want to execute, you want to specifically get a snapshot of the file at your machine, then check if it's really what you want (sha1/md5 sum etc), then finally execute it - most likely by setting the execute permission, then running it.
Another use for it - in a completely different manner - is for example an init script directory, like you have it in slackware (or at least when I used slackware it worked that way).
Where all init scripts you wanted to start at boot time where simply marked executable, and the others you had to execute by hand using a shell (sh /etc/rc.d/foo start or whatever it used to be.)
Last edited by Blµb (2012-03-24 20:09:10) -
How to set permissions to a file ?
hi,
i have a requirement to set file permissions and also to get the current permission mode on the file. PLease let me know if there are any inbuilt functions to set permissions to a file. (eg: CHMOD in unix) .
canRead() and canWrite() are only to get the permission. what about methods to set the permission for a file ? If there are no methods whats the possible way...
Thanks,
SaratMay be I am not sure but try this
Runtime.getRuntime().exec("EXecute chmod command here"); -
Nable to change permission of file system node / WAS 6.2
During WAS 6.2 Installation (Step: Create SAP Program Icons - post processing) I receive the following message:
FSL-02007 Unable to set access rights of E:/usr. SetNamedSecurityInfo: Diese Sicherheitskennung kann nicht als Besitzer des Objekts zugeordnet werden.
ERROR 2004-10-21 13:25:20
MOS-01085 Unable to change permission of file system node E:\usr\sap/.. with type DIRECTORY to (dg\SAP_LocalAdmin,GROUP,=rwx) (SYSTEM,GROUP,=rwx) (Administrators,GROUP,=orwx).
ERROR 2004-10-21 13:25:20
MOS-01105 Processing of one or more file system node operations of table Content of table: t_SAPComponent_Permission_Action_SHARED Row[0] WapsSystemName="S01" WapsInstanceName="DVEBMGS10" WapsInstanceHost="dg" Key="WAPS_FilePermission_100" Condition="true" OpMode="SETPERMISSION" NodeName="E:\usr\sap/.." NodeType="DIRECTORY" NodePermission="(dg\SAP_LocalAdmin,GROUP,=rwx) (SYSTEM,GROUP,=rwx) (Administrators,GROUP,=orwx)" Recursive="YES" Row[1] WapsSystemName="S01" WapsInstanceName="DVEBMGS10" WapsInstanceHost="dg" Key="WAPS_FilePermission_101" Condition="true" OpMode="SETPERMISSION" NodeName="E:\usr\sap" NodeType="DIRECTORY" NodePermission="(dg\SAP_LocalAdmin,GROUP,=rwx) (SYSTEM,GROUP,=rwx) (Administrators,GROUP,=orwx)" Recursive="YES" Row[2] WapsSystemName="S01" WapsInstanceName="DVEBMGS10" WapsInstanceHost="dg" Key="WAPS_FilePermission_102" Condition="true" OpMode="SETPERMISSION" NodeName="E:\usr\sap/S01" NodeType="NODE" NodePermission="(dg\SAP_S01_LocalAdmin,GROUP,=rwx) (SYSTEM,GROUP,=rwx) (Administrators,GROUP,=orwx)" Recursive="YES" failed.
ERROR 2004-10-21 13:25:20
FJS-00012 Error when executing script.
Environment:
W2K, Local Installation
DieterDas Dateisystem muß auf NTFS konvertiert werden. Dann klappts.
-
How to execute a jar file which has an applet, without using a html file ?
I have a jar file which contains a set of class files. iam able to execute the jar file by using this html code
<html>
<applet code="file.class" archive="file.jar" width="500" height="300">
<param name="name" value="value">
</applet>
</html>
I want to know how to execute this class file without using the html tags.
pls help me out in this.
AnkiHi,
You can make an executable jar file such that when you double click on that it starts running. Just follow the steps.
1. Open a notepad and write the following
Main-Class: XXXXXXXX
XXXXXXX means Your Main Class name. Don't forget to press Enter after you write your class name.
2. Save the file as Mani.mf
3. In the commant prompt ( your directory ) type following lines.
jar cmf Mani.mf Demo.jar *.*
4. This will make a jar file which is executable jar file
Hope this will help you.
Deepak -
In Adobe Acrobat Pro XI, is there a way to set defaults when combining files?
My specific problem; When I combine files, Adobe creates the bookmarks (which is desirable). These bookmarks however, always seem to default on "page width" view. I would prefer to have the bookmarks set to "fit page". It is very cumbersome to edit each bookmark to reset the view. (this is another issue which should be addressed as well).
My preferences already are set to view the files in fit page, single page, however this setting does not seem to transfer to the combined file.
Is there a way to globally set the preferences for this? Even the settings during the combining function do not give options for the page view settings.There isn't a way to set this during the Combine process but it's easy to change all the bookmarks in one go using the following technique:
Open the bookmark navigation pane and select all the bookmarks (be sure to expand all subbookmarks).
Right-click and choose Properties from the context-sensitive menu.
Click the Actions tab and choose Execute a menu item from the dropdown.
Click the Add button and choose View > Zoom > Zoom to Page Level and click OK. -
Error message while executing a SWF File
Hi All,
Iam trying to execute a SWF file which has its actionscript
written in AS3. When i execute this, I am getting an error message
which is as follows
Verify Error 1030# Stack Depth unbalanced 1 != 0.
Can anyone tell me what could be the root cause?
Thanks in advance,
Prabakaran Srinivasan.Hi All,
I am able to find the root cause for this. For AS 3 classes,
while parsing the ABC code, every method body will be a set of
instructions in which each instruction will have an offset to it.
This offset will be useful to mark the target for branching
instructions like if, while etc.... Because, these instructions
contains targetoffset as a parameter to which the instruction has
to jump when the condition becomes true or false. The process what
i am doing is i do some code injection to replace the URLRequest
calls. The flash file in which i got this error, i did replace the
URLRequest call to my own method call and this code was being
wrapped up by an IF block. Because of the code injection, i need to
update the offset of the instructions with the difference offset
value. I did this, but i missed the jumpoffset parameter of the if
block wrapping my injected code which was the root cause. I did fix
this...
Thanks,
Prabakaran Srinivasan. -
Urgent : Executing a batch file in a JSP file
Hi;
I need help in executing a batch file within a jsp page, ive the following codes but it doesnt seem to work...
These are the codes :
<%@ page import="java.util.*,java.io.*,java.net.*" %>
<%@ page import="java.sql.*" %>
<%
Process p = Runtime.getRuntime().exec("Ratio.bat");
p.waitFor();
int i = p.exitValue();
%>
The following is the error :
ype Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.io.IOException: CreateProcess: Ratio.bat error=2
java.lang.Win32Process.create(Native Method)
java.lang.Win32Process.<init>(Win32Process.java:63)
java.lang.Runtime.execInternal(Native Method)
java.lang.Runtime.exec(Runtime.java:550)
java.lang.Runtime.exec(Runtime.java:416)
java.lang.Runtime.exec(Runtime.java:358)
java.lang.Runtime.exec(Runtime.java:322)
org.apache.jsp.invRatio_jsp._jspService(invRatio_jsp.java:52)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Anyone can tell me why it doesnt work ?... ThanksAside from removing the "start" or adding the title ...
Does your batfile really say "SET PATH=%PATH%;%JAVA_HMOE%\bin"? If so, I rather expect you meant to say "JAVA_HOME" and not "JAVA_HMOE".
Also, I'd be cautious about those relative paths that you're passing in to the Java program. Of course I don't know what you're doing with those in the program, but if you try to just pass those paths to a File or InputStream constructor, they're going to be relative to the current directory. And if you execute a batfile using cmd from an exec that's within a JSP ... I'm not sure what your current directory would be when the bat runs. Maybe you've checked this out and it's the right place, but if not, perhaps you have a misconception there. -
Setting folder permission in windows 8.1
setting folder permission in windows 8.1
Hi,
You can set the share and NTFS permissions on a file\folder, I'd like to share the following links with you:
(Permissions in Windows 8.1 are similiar to Windows 7)
http://windows.microsoft.com/en-in/windows/what-are-permissions#1TC=windows-7
https://technet.microsoft.com/en-in/library/cc772196.aspx?f=255&MSPPError=-2147217396
https://technet.microsoft.com/en-us/library/cc770962.aspx
Yolanda Zhu
TechNet Community Support -
I'm trying to create a new subscriptions on an existing report and get the following error.
An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help
Get Online Help
EXECUTE permission denied on object 'xp_sqlagent_notify', database 'mssqlsystemresource', schema 'sys'.
I ran the following that was suggested in http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=17774&SiteID=1. But still I get the same error. Do I need a reboot or restart of the services?
The only log file information I can find contains the following.
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: An internal error occurred on the report server. See the error log for more details. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---> System.Data.SqlClient.SqlException: EXECUTE permission denied on object 'xp_sqlagent_notify', database 'mssqlsystemresource', schema 'sys'.
--- End of inner exception stack trace ---
at Microsoft.ReportingServices.WebServer.ReportingService2005.ListSchedules(Schedule[]& Schedules)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.SqlServer.ReportingServices2005.ReportingService2005.ListSchedules()
at Microsoft.SqlServer.ReportingServices2005.RSConnection.ListSchedules()
at Microsoft.ReportingServices.UI.SharedScheduleDropDown.EnsureSchedulesAreLoaded()
at Microsoft.ReportingServices.UI.SharedScheduleDropDown.SharedScheduleDropDown_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
aspnet_wp!ui!1!17/10/2006-08:44:26:: e ERROR: Exception in ShowErrorPage: System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg) at at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
aspnet_wp!extensionfactory!e!17/10/2006-09:35:13:: w WARN: The extension Report Server Email does not have a LocalizedNameAttribute.
aspnet_wp!extensionfactory!e!17/10/2006-09:35:13:: w WARN: The extension Report Server FileShare does not have a LocalizedNameAttribute.
aspnet_wp!ui!e!17/10/2006-09:35:13:: e ERROR: System.Web.Services.Protocols.SoapException: An internal error occurred on the report server. See the error log for more details. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---> System.Data.SqlClient.SqlException: EXECUTE permission denied on object 'xp_sqlagent_notify', database 'mssqlsystemresource', schema 'sys'.
--- End of inner exception stack trace ---
at Microsoft.ReportingServices.WebServer.ReportingService2005.ListSchedules(Schedule[]& Schedules)
aspnet_wp!ui!e!17/10/2006-09:35:13:: e ERROR: HTTP status code --> 200
I cannot find any other error log.
Can anybody help?
Tuesday, October 17, 2006 8:49 AM
Reply
|
Quote
All replies
0
Sign in to vote
Sorry for the late reply. Try this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=662319&SiteID=1
Thursday, November 16, 2006 2:51 AM
Reply
|
Quote
Answerer
0
Sign in to vote
GRANT EXECUTE ON master.dbo.xp_sqlagent_notify TO RSExecRole
GO
solved my problem.
Proposed as answer by
Christopher D. Stover
Monday, September 16, 2013 6:52 PM
Monday, September 16, 2013 6:51 PM
Reply
|
Quote
0
Sign in to vote
Tried that but no joy. Found this post on SQLServerCentral, solved our issue which mimic's the posters issue. Just adding here as this is the first result in our search.
Look for Topic452669-150-1
There are a number of places I found with the information in the following
link:
http://phew-meme.blogspot.com/2007/10/reporting-service-on-report.html
In
my specific case, the RsExecRole role in both the "master" and "msdb" databases
had had both the "NT Authority\Network Service" and "NTAuthority\System" logins
removed from its members (the RSExecRole had had all its members removed by
someone doing some maintenance). I compared another Reporting Services
installation on another server after reading information in the above
link.
Steps:
1. In Mangement Studio connect to the SQL Server instance
on which Reporting Services runs.
2. Databases > system Databases
3.
master > Security > Roles > RSExecRole (then add whatever logins are
required... check in the ReportServer or ReportServerTempDB databases if you're
not sure)
4. msdb > Security > Roles > RSExecRole (add the same
logins you did to the master DB)
In the end you need the same logins in
RSExecRole role for the master, msdb, ReportServer, and ReportServerTempDB
databases. ("ReportServer" is the default Reporting Services database name, in
case that's not clear ;)
Monday, March 31, 2014 1:24 PM
Reply
|
Quote
if (!$.Microsoft) $.Microsoft = {};
if (!$.Microsoft.Mtps) $.Microsoft.Mtps = {};
if (!$.Microsoft.Mtps.NetReflectorInit)
$.Microsoft.Mtps.NetReflectorInit = {
surveyUrl: 'http://support.microsoft.com/common/survey.aspx?scid=sw%3ben%3b3763&altstyle=narrow&renderoption=overridedefault&theme=tech&url=http://social.technet.microsoft.com/Forums/en-US/3fcc7b54-ce84-48c2-9004-baaac07f2515/execute-permission-denied-on-object-xpsqlagentnotify-database-mssqlsystemresource-schema?forum=sqlreportingservices&P0=055ccfc1-78f5-46ff-8171-33f8ff760a7c',
throttleRate: "5.00",
privacyStatementText: "Privacy statement",
trackerWindowText: "Please do not close this window.Thank you! The survey will appear here when you've completed your visit, so please do not close this window.",
logoUrl: 'https://www.microsoft.com/library/svy/sto/technet_logo.gif',
closeButtonUrl: 'https://www.microsoft.com/library/svy/sto/technet-close.gif',
topBarUrl: 'https://www.microsoft.com/library/svy/sto/top-stripe.gif',
bottomBarUrl: 'https://www.microsoft.com/library/svy/sto/bottom-stripe.gif',
blankPage: 'https://social.technet.microsoft.com/forums/blank.htm',
showSurveyToComscoreUser: 'no'
setTimeout("Forums.loadScript('https://i1.social.s-msft.com/Forums/resources/NetReflector/NetReflector.js?cver=0%0d%0a')", 1000);
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.
Would you like to participate?
Privacy statement
© 2015 Microsoft. All rights reserved.
Newsletter|Contact Us|Privacy Statement|Terms of Use|Trademarks|Site Feedback
TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Internet Explorer
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Lync
See all products »
Resources
Curah! curation service
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Subscriptions
TechNet Video
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Microsoft Update
Trials
Windows Server 2012 R2
System Center 2012 R2
Microsoft SQL Server 2012 SP1
Windows 8.1 Enterprise
See all trials »
Related Sites
Microsoft Download Center
TechNet Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
e-Learning overview
Certifications
Certification overview
MCSA: Windows 8
Windows Server Certification (MCSE)
Private Cloud Certification (MCSE)
SQL Server Certification (MCSE)
Other resources
TechNet Events
Second shot for certification
Born To Learn blog
Find technical communities in your area
Support options
For small and midsize businesses
For enterprises
For developers
For IT professionals
From partners
For technical support
Support offerings
For home users
More support
Microsoft Premier Online
Microsoft Fix It Center
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
International support solutions
Log a support ticket
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
var railItems = ["/Forums/en-US/rightrailannouncement/Technet/1794d07f-9d4e-4dc0-8c1c-8bfe9d5e0bce"];
var pageData = {"validUser":false,"autoSubscribe":false};
var userEmailConfigured = false;
$(document).ready(function () {
Forums.ThreadPage.wirePageElements('Search forum questions');Tried that but no joy. Found this post on SQLServerCentral, solved our issue which mimic's the posters issue. Just adding here as this is the first result in our search.
Look for Topic452669-150-1
There are a number of places I found with the information in the following
link:
http://phew-meme.blogspot.com/2007/10/reporting-service-on-report.html
In
my specific case, the RsExecRole role in both the "master" and "msdb" databases
had had both the "NT Authority\Network Service" and "NTAuthority\System" logins
removed from its members (the RSExecRole had had all its members removed by
someone doing some maintenance). I compared another Reporting Services
installation on another server after reading information in the above
link.
Steps:
1. In Mangement Studio connect to the SQL Server instance
on which Reporting Services runs.
2. Databases > system Databases
3.
master > Security > Roles > RSExecRole (then add whatever logins are
required... check in the ReportServer or ReportServerTempDB databases if you're
not sure)
4. msdb > Security > Roles > RSExecRole (add the same
logins you did to the master DB)
In the end you need the same logins in
RSExecRole role for the master, msdb, ReportServer, and ReportServerTempDB
databases. ("ReportServer" is the default Reporting Services database name, in
case that's not clear ;) -
How to execute a .sql file from a batch file
Hi all
I've to take backup of a database weekly twice on every wednesday & Friday @ 5pm IST. I've written a hot backup script, which works every well.
now i want to automate the script. ie i want this script to run on wednesday & friday @ 5pm without any human interfearance ie with out actually any1 executing this script.
i created a batch file prod.bak with the following lines
@echo off
set oracle_sid=testdb
set oracle_home=d:\oracle\ora92
sqlplus /nolog
connect sys as sysdba/oracletest@testdb
this batch file when eexecuted connects me to sql prompt.
Now i want to execute my backup script bkp.sql automatically when it is connected to sql prompt.
(i tried with these lines in the above batch file...
call bkp.sql---it just opens the bkp.sql file in notepad & displays the script
start bkp.sql---same as call
connect / as sysdba/pwd@[email protected] --- does not work simply remains a the sql prompt.
At 17:00 /Every:w,f "d:\bkp.sql"---does not work simply remains at the sql promt.)
Can any1 let me know what should i write in the batch file that will execute the bkp.sql file automatically after it gets connected to sql prompt. M using oracle 9i.
I'll manage he time through windows utility of scheduling task.. Let me know how to execute the .sql file from a batch file.
Thanks
TriptiTry
sqlplus "sys/oracletest as sysdba" @bpk.sql
Working locally, and having set the ORACLE_SID, you don't need to specify the SqlNet alias (@testdb).
Remember to put an exit at the end of the bpk.sql script. -
How to set the permission of RMAN in Linux?
I have installed oracle XE in Centos, however, when I try to access to RMAN by
rman target /
it shows the error message
[root@localhost bin]# rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Oct 11 17:50:34 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN-00571: ================================================
RMAN-00569: ========== ERROR MESSAGE STACK FOLLOWS ========
RMAN-00571: ================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-09925: Unable to create audit trail file
Linux Error: 13: Permission denied
Additional information: 9925
ORA-01031: insufficient privileges
I would like to ask how to set the permission for root to use rman ?
Thank you very much ~!!Check first if the directory where you save the auditing information is owned by oracle:dba.
Regards
Aron
Maybe you are looking for
-
How to Create authorization WAD template for BW3.5?
Hi All How To create Authorization for a Web template in Bw 3.5 ? I have a requirement to restrict a particular Web templated in bw 3.5 So that all the end users should not be able to access that template only a particular user should be allowed to v
-
Need to function module to clear Subscreen contents
Hi. can anyone say Function module which clears the contents of Subscreen when navigated from subscreen to subscreen. MY Problem: i have 6 subscreen.(A,B,C,D,E,F) each subscreen has 100 checkboxes. i checked some checkboxes of subscreen A. And naviga
-
Clarification Request on New Solaris Cert Exam Requirements.
Regarding: Important Changes to Java, and Oracle Solaris Certifications Beginning August 1, 2011, Java Architect, Java Developer, Solaris System Administrator and Solaris Security Administrator certification path requirements will include a new manda
-
Where is the "print" tab when I right click album artwork?
Would love to print out cd covers like I have been doing for the past 8 years. Did it go away when I updated?
-
What is the significance of Quantity reduced in confirmation tab of a PO
I have a PO created for a foreign vendor. after creating a PO ibd is done and then GRN. after GRN user found that he prepared grn against wrong IBD so he cancelled all the GRN he preapred and creates new grn. Now in po The open quantity showing as 85