Script for filesystem- report on windows
Hello experts,
i have to create every week a filesystem- Report (Excel- Sheet) of several Windows- Server. Now I'm looking for a method how i can automate this task.
It is possible to create a report from Central- Monitoring system for all this systems?
I have the following ideas to do this:
Using function module like GET_FSYS_SINGLE and integrate this in a java- program ... Export data of ccms- Monitoring data into a report...
I appreciate any hint!
Thanks in advance!
Regards
Lutz
ok
Similar Messages
-
Standar progarms and scripts for SD reports
hi experts,
Can any one list all the standard driver programs,output types ,scripts,smartforms for SD reports like deliveery order ,sales order,invoice etc
maniSmartforms for Invoice-- LB_BIL_INVOICE
Delivery Note-- LE_SHP_DELNOTE
Purchase Order MEDRUCK
Sales Order RVORDER01
Standard form for PO Smartforms is /SMB40/MMPO_L
Also,
Goto NACE tcode-> choose the application u want( like billing for invoice, PO)->output type->output type->processing routineon left side
Here u will find the standard program name and smartform .
Also chec k this thread for field addition.
SmartForms - output field of type Quan
Regards -
Logon Scripts for copying files in Windows 7
Issues using Logon scripts to copy files in windows 7. Its default is to append the file rather than copy and replace, which is what XP did. How can I achieve the same results using
logon scripts in W7 to copy any files to specified folders and replacing old files. The reason for this is that we use a software that performs offsite/onsite updates and the only way all the users can have the correct version/tables is to either manually
update each user in a 90+ user environment or use a logon script to perform the coping of the updates. Unfortunately the software support won’t create a (while logging in to software) patch for this. So we have to force it during the user logon.Hi Novice,
It should depend on your script content. it's recommended you ask in the official scripting guys forum for professional help:
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
Karen Hu
TechNet Community Support -
Script for cold backup on windows
looking for a script that can be scheduled nightly to perform
a cold backup to disk of a 8.1.7 database on windows.
while i've seen many, i'm looking for one that will keep 3 days worth
of backups... then write over the oldest etc...
thanks
dgset term off
set head off
set feedback off
set verify off
spool c:\coldbackup.bat
select 'copy '||name||' c:\DBBACKUP' from v$datafile;
select 'copy '||name||' c:\DBBACKUP' from v$controlfile;
select 'copy '||name||' c:\DBBACKUP' from v$tempfile;
select 'copy '||member||' c:\DBBACKUP' from v$logfile;
spool off
shutdown IMMEDIATE
host c:\coldbackup.bat
startup
host del c:\coldbackup.bat
set term on
set head on
set feedback on
set verify on -
Scripts for availability reports
Hello,
I am looking for scripts to check if my databases meet the Uptime of our Service Level Agreement.
With the GUI i select Reports, but i can only select a period of days, not between hours in a day.
For example: out criteria is to have the db available between 7:00 and 19:00 hours.
Hope anyone can help me
Thanks in advance.
carlSmartforms for Invoice-- LB_BIL_INVOICE
Delivery Note-- LE_SHP_DELNOTE
Purchase Order MEDRUCK
Sales Order RVORDER01
Standard form for PO Smartforms is /SMB40/MMPO_L
Also,
Goto NACE tcode-> choose the application u want( like billing for invoice, PO)->output type->output type->processing routineon left side
Here u will find the standard program name and smartform .
Also chec k this thread for field addition.
SmartForms - output field of type Quan
Regards -
Start up and shutdown scripts for Oracle R12 in Windows XP
I succesfully installed R12.1.1 in Windows XP and logged onto the Vision without any issues. But after restarting my PC, I am unable to restart (I dont know how to restart) the services.
I see the other threads that talk about the same scripts in Linux environment.
If anyone knows - how to start and shutdown R12 services in Windows environment, Plz share.
Thanks.
Edited by: SanDan on Jul 13, 2012 10:08 AMSanDan wrote:
I succesfully installed R12.1.1 in Windows XP and logged onto the Vision without any issues. But after restarting my PC, I am unable to restart (I dont know how to restart) the services.
I see the other threads that talk about the same scripts in Linux environment.
If anyone knows - how to start and shutdown R12 services in Windows environment, Plz share.Managing Server Processes
http://docs.oracle.com/cd/E18727_01/doc.121/e13675/T530130T530133.htm#5274555
Thanks,
Hussein -
SAP Add On for Crystal Reports - no window for account setup
Already installed the add on: windows server 2008 64 bit / SAP Business One 8.8 PL 12.
Crystal Runtime is installed too.
After activating the add on, we tried to do the 'account setup'.
But there was a error: ' Item - could not commit action because the item is currently in focus [66000-23].
Anyone there to help us solving ?
thxTo solve the issue you must launch the following queris on SQL Server Manager:
CREATE TABLE [dbo].[SAP_CR_REPORT_GROUP](
[GroupName] [nvarchar](50) NULL,
[RowId] [numeric](18, 0) IDENTITY(1,1) NOT NULL
) ON [PRIMARY]
CREATE TABLE [dbo].[SAP_CR_REPORT_GROUPUSER](
[UserId] [numeric](5, 0) NULL,
[GroupId] [char](10) NULL,
[RowId] [numeric](18, 0) IDENTITY(1,1) NOT NULL
) ON [PRIMARY]
CREATE TABLE [dbo].[SAP_CR_REPORT_REPORT](
[ReportName] [nvarchar](50) NULL,
[ReportDescription] [nvarchar](100) NULL,
[ReportPath] [nvarchar](1000) NULL,
[IsPublic] [char](1) NULL,
[ModuleUID] [char](20) NULL,
[RowId] [numeric](18, 0) IDENTITY(1,1) NOT NULL
) ON [PRIMARY]
CREATE TABLE [dbo].[SAP_CR_REPORT_REPORTGROUP](
[ReportId] [numeric](18, 0) NULL,
[GroupId] [numeric](18, 0) NULL,
[RowId] [numeric](18, 0) IDENTITY(1,1) NOT NULL
) ON [PRIMARY] -
Start up script for EPM 11.1.2 in Unix or Windows...
Is there a sample start up script for starting required services in EPM 11.1.2 ?
I saw that the Program Files item for EPM, has a link to some start up script but
it starts everything and it seems to refer to many scripts and seem complicated.
Is there a simple script for EPM 11 ? In System 9, I used Net Start to start services in a batch file and
used Sleep command between commands to give enough time for the services. But it would be nice
if there is a script which automatically checks to make sure to start the next service only after a dependent service has started.
cheers
ZSimple examples for EPM11.1.2.1 on Windows env.
epmStart.bat
@ECHO OFF
ECHO EPM 11.1.2.1 STARTING / Batch EPM full start script by Antun Kulkov, 2011
ECHO See more at http://silw.blogspot.com
ECHO SQL Server Starting
sc start "MSSQLSERVER"
waitfor NONEXISTINGSIGNAL /T 5
ECHO Oracle Process Manager (ohsInstance)
sc start "OracleProcessManager_ohsInstance1649849633"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle Process Manager (EPM_epmsystem1)
sc start "opmn_EPM_epmsystem1"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle Process Manager (ConfigurationManager)
sc start "OracleEpmSystem_Administratord_oracle_middleware_user_projects_epmsystem1ConfigurationManager"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Hyperion RMI Registry
sc start "Hyperion RMI Registry"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Hyperion Foundation Services - Managed Server
sc start HyS9FoundationServices
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Administration Services - Web Application
sc start HyS9eas
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Integration Services
sc start "Essbase Integration Server"
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Provider Services - Web Application
sc start HyS9aps
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Studio Service BPMS
sc start "Hyperion Studio Service BPMS bpms1"
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion EPM Architect - Process Manager
sc start EPMA_Server
waitfor NONEXISTINGSIGNAL /T 30
ECHO Hyperion EPMA Data Synchronizer - Web Application
sc start HyS9EPMADataSynchronizer
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion EPMA Web Tier - Web Application
sc start HyS9EPMAWebTier
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion CALC Manager - Web Application
sc start HyS9CALC
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Planning - WebHyS9Planning Application
sc start HyS9Planning
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Web Analysis - Web Application
sc start HyS9WebAnalysis
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Reporting and Analysis Framework
sc start HyS9RaFrameworkAgent
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Financial Reporting - Web Application
sc start HyS9FRReports
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Reporting and Analysis Framework - Web Application
sc start HyS9RaFramework
waitfor NONEXISTINGSIGNAL /T 5
ECHO ALL DONE!
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle EPM System has been started.
epmStop.bat
@ECHO OFF
ECHO EPM 11.1.2.1 STOPPING / Batch EPM full stop script by Antun Kulkov, 2011
ECHO See more at http://silw.blogspot.com
ECHO Hyperion Web Analysis - Web Application
sc stop HyS9WebAnalysis
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Reporting and Analysis Framework
sc stop HyS9RaFrameworkAgent
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Financial Reporting - Web Application
sc stop HyS9FRReports
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Reporting and Analysis Framework - Web Application
sc stop HyS9RaFramework
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Planning - WebHyS9Planning Application
sc stop HyS9Planning
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion CALC Manager - Web Application
sc stop HyS9CALC
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion EPMA Web Tier - Web Application
sc stop HyS9EPMAWebTier
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion EPMA Data Synchronizer - Web Application
sc stop HyS9EPMADataSynchronizer
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion EPM Architect - Process Manager
sc stop EPMA_Server
waitfor NONEXISTINGSIGNAL /T 30
ECHO Hyperion Studio Service BPMS
sc stop "Hyperion Studio Service BPMS bpms1"
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Provider Services - Web Application
sc stop HyS9aps
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Integration Services
sc stop "Essbase Integration Server"
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Administration Services - Web Application
sc stop HyS9eas
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion Foundation Services - Managed Server
sc stop HyS9FoundationServices
waitfor NONEXISTINGSIGNAL /T 5
ECHO Hyperion RMI Registry
sc stop "Hyperion RMI Registry"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle Process Manager (ConfigurationManager)
sc stop "OracleEpmSystem_Administratord_oracle_middleware_user_projects_epmsystem1ConfigurationManager"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle Process Manager (ohsInstance)
sc stop "OracleProcessManager_ohsInstance1649849633"
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle Process Manager (EPM_epmsystem1)
sc stop "opmn_EPM_epmsystem1"
waitfor NONEXISTINGSIGNAL /T 10
ECHO SQL Server Stopping
sc stop "MSSQLSERVER"
waitfor NONEXISTINGSIGNAL /T 5
ECHO ALL DONE!
waitfor NONEXISTINGSIGNAL /T 10
ECHO Oracle EPM System has been stopped. -
Shell script for Automatic Awr Report
Hi Good Morning,
I have a requirement to generate the AWR report daily between (10AM - 06PM , 10AM - 01PM , 01PM - 10PM) . I have the below script for this . But the issue is this script is working only when i run it two times and before running i have to delete snap_list.lst file. Please let me know what is the problem in this script and how to resolve it.
Script :
dt=`date +%d%m%Y`
cd /orabkp/awr_report
chmod 777 *
rm -rf snap_list.lst
touch snap_list.lst
#rm -rf snap_list.lst
#rm -rf snap_list.lst
sqlplus -s " /as sysdba " <<EOF > snap_list.lst
host sleep 10
@/oracle/scripts/cron_scripts/rpt1.sql;
@?/rdbms/admin/awrrpt.sql
HTML
1
`cat snap_list.lst | grep "10:0" | awk '{print $1}'`
`cat snap_list.lst | grep "13:0" | awk '{print $1}'`
awrrpt\_$dt\_10AM\-01PM.html
prompt 2
@?/rdbms/admin/awrrpt.sql
HTML
1
`cat snap_list.lst | grep "13:0" | awk '{print $1}'`
`cat snap_list.lst | grep "18:0" | awk '{print $1}'`
awrrpt\_$dt\_01PM\-06PM.html
@?/rdbms/admin/awrrpt.sql
HTML
1
`cat snap_list.lst | grep "10:0" | awk '{print $1}'`
`cat snap_list.lst | grep "18:0" | awk '{print $1}'`
awrrpt\_$dt\_10AM\-06PM.html
@?/rdbms/admin/addmrpt.sql
`cat snap_list.lst | grep "06:0" | awk '{print $1}'`
`cat snap_list.lst | grep "12:0" | awk '{print $1}'`
ADDM_REPORT\_$dt\_10AM\-06PM.txt
EOF
exit
cat /oracle/scripts/cron_scripts/rpt1.sql
host echo 1
host sleep 10
@?/rdbms/admin/awrrpt.sql
HTML
1
`cat snap_list.lst | grep "10:0" | awk '{print $1}'`
`cat snap_list.lst | grep "13:0" | awk '{print $1}'`
awrrpt\_$dt\_10AM\-01PM.html
Regards
RajasekarHi,
Modify & Try this script used for rac awr ..
#!/bin/ksh
set -x
ORACLE_SID=DBSID
ORACLE_HOME=/u01/app/ora11g/product/11.2.0/db_1
export ORACLE_HOME
TERM=vt100
export TERM
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/local/bin:/usr/bin/X11:/bin:/sbin:.
PATH=$ORACLE_HOME/bin:$PATH
export DT=`date '+%d_%b_%Y_%HH_%MM'`
export ORACLE_BASE ORACLE_SID ORACLE_HOME PATH DT
echo $DT
MAIL="[email protected]"
CMAIL="[email protected]"
AWRR="/u01/DBA_Scripts/AWR_REPO"
sqlplus -s "/ as sysdba"<<EOFSQL
set head off
set feed off
spool /tmp/bsnap.lst
select max(SNAP_ID)- 3 from dba_hist_snapshot;
spool off
spool /tmp/esnap.lst
select max(SNAP_ID) from dba_hist_snapshot;
spool off
spool /tmp/iname.lst
select instance_name from v\$instance;
spool off
spool /tmp/dname.lst
select database_name from v\$database;
spool off
spool /tmp/inum.lst
select instance_number from v\$instance;
spool off
spool /tmp/dbid.lst
select dbid from v\$database;
spool off
EOFSQL
BSNAP=`cat /tmp/bsnap.lst | tail -1 | awk '{ print $1}'`;export BSNAP
ESNAP=`cat /tmp/esnap.lst | tail -1 | awk '{ print $1}'`;export ESNAP
INAME=`cat /tmp/iname.lst | tail -1 | awk '{ print $1}'`;export INAME
DNAME=`cat /tmp/dname.lst | tail -1 | awk '{ print $1}'`;export DNAME
INUM=`cat /tmp/inum.lst | tail -1 | awk '{ print $1}'`;export INUM
DID=`cat /tmp/dbid.lst| tail -1 | awk '{ print $1}'`;export DID
echo "Begin Snap : $BSNAP"
echo "End Snap : $ESNAP"
#echo "InstanceName: $INAME"
echo "DB Name : $DNAME"
#echo "InstanceId : $INUM"
echo "DB ID : $DID"
sqlplus -s "/ as sysdba"<<EOFSQL
define inst_num = $INUM;
define num_days = 12;
define inst_name = 'ALL';
define db_name = '$DNAME';
define dbid = $DID;
define begin_snap = $BSNAP;
define end_snap = $ESNAP;
define report_type = 'html';
define report_name = $AWRR/Awr_report_$DT.html
@@?/rdbms/admin/awrgrpti
EOFSQL
cat /u01/DBA_Scripts/mail_body.txt | mailx -a $AWRR/Awr_report_$DT.html -c $CMAIL -s "DB Report - DB " $MAILThanks,
Ajay More
http://www.moreajays.com -
Standard driver programs,output type ,scripts,smartforms for SD reports
hi experts,
Can any one list all the standard driver programs,output types ,scripts,smartforms for SD reports.
maniHi,
Check this out
NACE
You can track the form and the print program used for that form
The Tcode NACE is used to link the Standard SAP forms (SCRIPTFORM or SMARTFORM) or the customized form or the new form to its respective print programs. Also the output types, Form entry are linked with their forms and print programs. In short term, i can tell u that configuration or customization of forms to print programs, assigning output types, form entry to the forms are done using this Tcode.
NACE is used to create output type while creating the output type you will mention forms, and driver program.
that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
so check in NAST, TNAPR table
http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
Condition records in NACE?
and
NACE is used for message control customizing.
Take a look at the following link
http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
and also
NACE is used for message control customizing.
Take a look at the following link
http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
If it helps reward with points.. -
FIM Reporting ETLScript PowerShell Script for SCSM 2012?
Hi,
The FIM Reporting Deployment Guide is great, however on a few occasions it forgets to mention where you meant to execute things (http://technet.microsoft.com/en-us/library/jj133855(v=ws.10).aspx) .
For example, if it wasn't for the screenshot in the article, we would not have known that we need to run the ETLScript from the FIM Service/Portal server.
Everything until the ETLScript has thus far worked; and we have deployed the Service Manager 2012 console on the FIM Service/Portal server (since we are using SCSM 2012 for FIM Reporting).
However, it appears that the ETLScript (in the deployment guide) has been written for SCSM 2010.
So, has Microsoft or anyone published an updated SCSM 2012 ETLScript script?
Thanks,
SKCould this be it?
http://gallery.technet.microsoft.com/PowerShell-Script-to-Run-a4a2081c -
Apple script for Message box when Mail app Compose Window Opens
Hi there
I'm trying to make mail app remind me to choose the right emaill address to send from since I have several email addresses. Is there a way I can make or write an apple script for a message box to pop up whenever mail app's compose window opens up.
I can do for the case when I actally click the compose button when I'm on mail app by using UI scripting. But when it comes to hyperlinks which opens up the compose window, it fails.
I just want a script to see whether the compose window is open and if open pop up a message box.
Thanks
Best regards
Zam Shabeer ThahirTaoChitpol wrote:
By the way, the problem happens with the account of MS Exchange service, I don't know if this is the cause of the problem.
I think yes. The encoding is being corrupted somewhere, probably Exchange. There is nothing you can change on the iPad other than the OS languagel, to see if that helps. You can also tell Apple at
http://www.apple.com/feedback/ -
Hi Experts,
We have Goldengate environment and replicating the data between on source to Many target environments , both source and target environments are Oracle only, To monitor the process and exceptions we have used shell scripts on both the environments,
now we have new requirment for replicating the data between oracle to sql server , we have install goldengate on windows NT server for target environment , But in source we are using shell script for monitirong manger process and extract process , like if mgr or extract process is abended immediatly we will get the alert mail through mailx functionality, Now we need to use the same approach for windows sql serer as well , can any one please guide how to achive the monitoring requirment in windows environment as like unix/solaris, is there any option available in windows to writing the scritps like shell also sending the alert mails, Kindly suggest on this.
Thanks in Advance.
ATI get the scheduler to run this batch file, dbcgen.bat
rem Set Correct Starting Directory
D:
cd \gw8\admin\utility\dbcopy\win32
cscript //NoLogo dbcgen.vbs > dbcrun.bat
dbcrun.bat
and the dbcgen.vbs does the rest
' Script to generate DBCRun.Bat file
' Result needs to be something like this
' D:\gw8\admin\UTILITY\DBCOPY\WIN32\dbcopy.exe /i 12-01-2010 /w n:\gw5po
c:\gw5back
Dim cDate
cDBCPath = "D:\GW8\Admin\Utility\DBCopy\Win32\DBCopy.exe"
cSrcPath = "N:\GW5PO"
cTgtPath = "C:\GW5Back"
dDate = Now() - 1
'WScript.Echo dDate
cDay = cStr(Day(dDate))
if Len(cDay) = 1 then
cDay = "0" & cDay
end if
'WScript.Echo cDay
cMonth = cStr(Month(dDate))
if Len(cMonth) = 1 then
cMonth = "0" & cMonth
end if
'WScript.Echo cMonth
cYear = cStr(Year(dDate))
'WScript.Echo cYear
cDate = cMonth & "-" & cDay & "-" & cYear
'WScript.Echo cDate
WSCript.Echo cDBCPath & " /i " & cDate & " /w " & cSrcPath & " " & cTgtPath
set cDate = Nothing
You can add/alter the various startup flags to suit yourself
Cheers Dave
Dave Parkes [NSCS]
Occasionally resident at http://support-forums.novell.com/ -
Adobe CS3Clean Script for Windows
I have downloaded and unzipped the file located at:
http://www.adobe.com/support/contact/cs3clean.html
English/Japanese
Download the Adobe CS3Clean Script for Windows (ZIP, 978 KB)
Each time I extract the files, the
AdobeCS3CleanReadMe.pdf
will not open because it is corrupt.
There is an additional file named:
âNâèü[âôâAâbâvâXâNâèâvâgé+é-éóé-.pdf
which I have not attempted to open for obvious reasons....I don't know for sure, but a good guess is that it's the same
readme in
Japanese. I don't have Japanese characters installed so
perhaps that's why
the gobbletygook?
However, the AdobeCS3CleanReadMe.pdf in the download I just
got is fine.
Try downloading again .. if that doesn't help .. and your
Adobe Reader is
updated .. drop me a line and I'll send you the PDF from my
download.
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: Dreamweaver CS3: The Missing Manual,
DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide
Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"sbuck415" <[email protected]> wrote in
message
news:fg5q7a$l0s$[email protected]..
>I have downloaded and unzipped the file located at:
>
>
http://www.adobe.com/support/contact/cs3clean.html
>
> English/Japanese
> Download the Adobe CS3Clean Script for Windows (ZIP, 978
KB)
>
> Each time I extract the files, the
> AdobeCS3CleanReadMe.pdf
> will not open because it is corrupt.
>
> There is an additional file named:
> ?N???[???A?b?v?X?N???v?g?+?-???-.pdf
> which I have not attempted to open for obvious
reasons....
>
>
> -
Cold Backup Script for windows
Hi,
I have the following script for windows
set pages 0 lines 500;
set heading off echo off feedback off verify off pagesize 0;
select 'copy ' || name || ' c:\BACKUP\COLD_BACKUP\ORADATA\' from v$datafile
union all
select 'copy ' || name || ' c:\BACKUP\COLD_BACKUP' from v$controlfile
union all
select 'copy ' || member ||' c:\BACKUP\COLD_BACKUP' from v$logfile
union all
select 'copy ' || name || ' c:\BACKUP\COLD_BACKUP' from v$tempfile;
exit;
In the above script I have given COLD_BACKUP directory for Backup....But what i want is Dynamically it should create the Directory with timestamp in COLD_BACKUP Directory and copy the files to that directory..
for example
script should create like this
c:\BACKUP\COLD_BACKUP\ORCL_11112007
Like that..it should create the ORCL_11112007 directory and copy the files....
how can i acheive this...I know we can do it in UNIX..
But in windows..how we can acheive this...please help meYou can try to adapt the following SQL*Plus script to create a directory:
set echo on
alter session set nls_date_format = 'DDMMYYYY';
var dd varchar2(10);
begin
:dd := trunc(sysdate);
end;
set echo off
spool mkd.sql
set heading off
select 'host mkdir ' || :dd from dual;
spool off
set echo on
@mkd.sqlOutput is:
dev001> alter session set nls_date_format = 'DDMMYYYY';
Session altered.
dev001> var dd varchar2(10);
dev001>
dev001> begin
2 :dd := trunc(sysdate);
3 end;
4 /
PL/SQL procedure successfully completed.
dev001>
dev001> set echo off
host mkdir 08112007
dev001> @mkd.sql
dev001>
dev001> host mkdir 08112007
dev001>
dev001>
[pre]
Maybe you are looking for
-
Supressing the parameter form when calling report from form...
Hi everybody I call a report from a form passing a parameter. After pressing the button, the runtime parameter from appears. How do I suppress it so that the report appears right after pressing the button??? Thanks Serguei
-
Hello as mentionned before I cannot get my macbook pro to switch on. when it is not plugged as I press the power button nothing happens, when the computer is power plugged, it gives me the white blackground with the apple centered and the loading but
-
Problem in Connection Polling? Plz Help Me
This is the Error i got..... weblogic.jdbc.extensions.ConnectionDeadSQLException: weblogic.common.resourcepool.ResourceDeadException: 0:Could not create pool connection. The DBMS driver exception was: [BEA][Oracle JDBC Driver]Error establishing socke
-
Need help: Debeating updating from 3GS to iPhone 4
Hello, all. I'm sure I'm not the first to have asked for help on this but I am debating upgrading from my iPhone 3GS (1 yr old this month) to the iPhone 4. I checked and I am eligible for the early upgrade so the cost for the 16GB is not much of an i
-
Creating a pdf for web viewing and printing
I need to create files in pdf format from indesign cs6. They are educational units will go up on a website to be downloaded for good quality printing. Which options do I have? I am not too familiar with this process. Thank you for your expert suggest