Validate command syntax
Hello,
I need to validate if a database has been backed up succesfully so I want to execute rman validates command.
I checked oracle manuals and I found validates command is a parameter of restore command:
http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10770/rcmsynta65.htm#86797
http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10770/rcmsynta51.htm#85191
I already duplicated databases using rman, but I'm not sure about syntax for validating. Is the following code right if I want just to validate database backup?
rman rcvcat rman/rman@rman target sys/password@database auxiliary / cmdfile /home/oracle/restore_dup.sh
Where restore_dup.sh is:
run {
allocate auxiliary channel 'dev_0' type 'sbt_tape';
allocate auxiliary channel 'dev_1' type 'sbt_tape';
allocate auxiliary channel 'dev_2' type 'sbt_tape';
allocate auxiliary channel 'dev_3' type 'sbt_tape';
restore target database validates;
Note that...
- OS is HP-UX 11.00
- Database is Oracle 8.1.7
- I CANNOT recover anything as database I want to validate is a production environment.
Thanks in advance for your help.
Regards,
Carles
I never worked with RMAN 8.1.7 (only newer versions)
According the documentation you can validate only a backupset in RMAN 8.1.7:
- validate backupset <bs_number>;
http://download-east.oracle.com/docs/cd/A87860_01/doc/server.817/a76990/rmansy50.htm#6148
http://download-east.oracle.com/docs/cd/A87860_01/doc/server.817/a76990/preparer.htm#435378
The validation for the full DB in a new feature in RMAN 9i.
Bye, Aron
Similar Messages
-
Problem with 'LS' command syntax for generating 'recursive' files list
I'm having trouble getting a recursive (-R) directory listing of the contents of a flash drive --
-- i.e., when I run the 'ls' command with the -R switch (in Terminal), I get either a recursive directory of what appears to be 'all volumes' (i.e., a very large file) or a zero-byte (empty) file.
Terminal also keeps reporting "No such file or directory" but I don't know what it's referring to (it reports it with both the 'zero byte' listing and the 'large file' listing).
Obviously, I'm making some 'syntax error' but I don't know what it is.
Assuming the following . . .
User = MK
Flash drive = NO NAME
. . . what is the correct command syntax to list only the contents of the flash drive (not 'all volumes')?
My last try (it doesn't work) was:
*ls -RTlp /Users/MK/Volumes/NO\ NAME > /Users/MK/Documents/flashdrive.dir*
Thanks.Re: the original post, I should clarify that what I'm looking for is the syntax that will generate the recursive list of the flash drive's files +without first logging the flash drive+ (NO\ NAME) +as the working folder+.
If I do the latter, I can get the recursive listing easily enough.
What I haven't been able to do is generate the listing without first logging NO\ NAME as the working folder.
Thanks. -
Error when creating or updating command syntax in an ODI procedure
Hi - I'm new to ODI and trying to create/update a procedure. It doesn't seem like it matters whether the sql statement is correct or not a generic message always seems to be displayed when the command syntax is modified. On a different machine, this is not a problem and procedures can be created or modified. I've compared the setup of the two machines and they appear to be the same. Outside of ODI, I can connecting or executing sql statements without any issues.
Any suggestions?
Oracle version Oracle9i Enterprise Edition Release 9.2.0.2.0 - 64bit Production
Oracle Data Integrator 10.1.3.5.5
JRE version 1.6.0_17
OS version Windows XP
ODI error
java.sql.BatchUpdateException: com.microsoft.sqlserver.jdbc.SQLServerException: sp_cursoropen/sp_cursorprepare: The statement parameter can only be a batch or a stored procedure with a single select, without FOR BROWSE, COMPUTE BY, or variable assignments.
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeBatch(Unknown Source)
at com.sunopsis.sql.SnpsQuery.executeBatch(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpTxt.setString(SnpTxt.java)
at com.sunopsis.dwg.dbobj.SnpTxt.a(SnpTxt.java)
at com.sunopsis.dwg.dbobj.SnpTxt.setStringWithXRefs(SnpTxt.java)
at com.sunopsis.graphical.frame.a.iw.a(iw.java)
at com.sunopsis.graphical.frame.a.iw.g(iw.java)
at com.sunopsis.graphical.frame.a.iw.bH(iw.java)
at com.sunopsis.graphical.frame.bo.r(bo.java)
at com.sunopsis.graphical.frame.bo.bv(bo.java)
at com.sunopsis.graphical.frame.bo.z(bo.java)
at com.sunopsis.graphical.frame.bo.b(bo.java)
at com.sunopsis.graphical.frame.w.actionPerformed(w.java)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)Good point - In my case, these are single executable statements. These have been saved in ODI and executed successfully. Just no using my machine.
EXAMPLE 1------------
DECLARE
RetVal ;
I_STRING VARCHAR2(200);
BEGIN
I_STRING := '';
RetVal := XXX.PKG_XXX.SF_COMMA_TO_TABLE ( I_STRING );
COMMIT;
END;
EXAMPLE 2------------
SELECT C.COL1, B.COL2, B.COL3,TO_CHAR(B.EFFDT,'YYYY-MM-DD') COL4,B.COL5,B.COL6
FROM TABLE1 A, TABLE2 B, TABLE3 C
WHERE
and A.ID = 'XXX'
and a.setcntrlvalue = ' '
AND A.NAME = 'XXX'
AND A.EFFDT =
(SELECT MAX(A_ED.EFFDT) FROM TABLE1 A_ED
WHERE A.SETID = A_ED.SETID
AND A_ED.EFFDT <= SYSDATE)
AND B.EFFDT =
(SELECT MAX(B_ED.EFFDT) FROM TABLE2 B_ED
WHERE B.SETID = B_ED.SETID
AND B.ACCOUNT = B_ED.ACCOUNT
AND B_ED.EFFDT <= SYSDATE)
AND A.SETID = B.SETID
AND A.RANGE_FROM = A.RANGE_TO
AND B.ACCOUNT = A.RANGE_FROM
AND A.SETID = C.SETID
AND A.TREE_NAME = C.TREE_NAME
AND A.TREE_NODE_NUM = C.TREE_NODE_NUM
AND C.EFFDT =
(SELECT MAX(C_ED.EFFDT) FROM TABLE3 C_ED
WHERE C.SETID = C_ED.SETID
AND C_ED.EFFDT <= A.EFFDT)
------------------ -
I have few questions to clear my confusion.Can anyone please clarify it.
1)Does Backup validate check logical database plus archivelog all takes same time as real backup?
2)does database needs to be in archivelog mode?
3)can this validate command run mount state?
ThanksHere is a simple illustration for you;
RMAN> BACKUP VALIDATE DATABASE ARCHIVELOG ALL;
Starting backup at 17-AUG-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00002 name=/db/OPTIMA/oradata/opttest/opttest/UNDOTBS1.dbf
input datafile fno=00341 name=/db/OPTIMA/oradata/opttest/data/NORS_OWCTTS_D_02.dbf
input datafile fno=00369 name=/db/OPTIMA/oradata/opttest/data/NORS_ISUP_GROUP_D_03.dbf
input datafile fno=00307 name=/db/OPTIMA/oradata/opttest/data/NORS_TONES_D_02.dbf
input datafile fno=00311 name=/db/OPTIMA/oradata/opttest/data/NORS_SINGLE_UNIT_PM_D_02.dbf
input datafile fno=00313 name=/db/OPTIMA/oradata/opttest/data/NORS_PM_D_02.dbf
input datafile fno=00318 name=/db/OPTIMA/oradata/opttest/data/NORS_RTLTSUM_D_02.dbf
input datafile fno=00319 name=/db/OPTIMA/oradata/opttest/data/NORS_SOTS_D_02.dbf
input datafile fno=00320 name=/db/OPTIMA/oradata/opttest/data/NORS_SYSPERF_D_02.dbf
input datafile fno=00328 name=/db/OPTIMA/oradata/opttest/data/NORS_TREATMENT_D_02.dbf
input datafile fno=00329 name=/db/OPTIMA/oradata/opttest/data/NORS_TRUNK_MODULES_D_02.dbf
input datafile fno=00123 name=/db/OPTIMA/oradata/opttest/data/NORS_SINGLE_UNIT_PM_D_01.dbf
input datafile fno=00129 name=/db/OPTIMA/oradata/opttest/data/NORS_TONES_D_01.dbf
input datafile fno=00147 name=/db/OPTIMA/oradata/opttest/data/NORS_C7LKSET_D_01.dbf
input datafile fno=00149 name=/db/OPTIMA/oradata/opttest/data/NORS_C7MTP_D_01.dbf
input datafile fno=00151 name=/db/OPTIMA/oradata/opttest/data/NORS_C7ROUTE_D_01.dbf
input datafile fno=00155 name=/db/OPTIMA/oradata/opttest/data/NORS_CALL_CONTROL_D_01.dbf
input datafile fno=00157 name=/db/OPTIMA/oradata/opttest/data/NORS_CDIVGRP_D_01.dbf
input datafile fno=00159 name=/db/OPTIMA/oradata/opttest/data/NORS_COMPUTING_MODULE_D_01.dbf
input datafile fno=00163 name=/db/OPTIMA/oradata/opttest/data/NORS_DTSRPM_D_01.dbf
input datafile fno=00165 name=/db/OPTIMA/oradata/opttest/data/NORS_EXND_CALL_CONTROL_D_01.dbf
input datafile fno=00167 name=/db/OPTIMA/oradata/opttest/data/NORS_ISUP_GROUP_D_01.dbf
input datafile fno=00169 name=/db/OPTIMA/oradata/opttest/data/NORS_ISUP_STATS_D_01.dbf
input datafile fno=00171 name=/db/OPTIMA/oradata/opttest/data/NORS_ISUP_TRAFFIC_D_01.dbf
input datafile fno=00173 name=/db/OPTIMA/oradata/opttest/data/NORS_IWUCGRP_D_01.dbf
input datafile fno=00179 name=/db/OPTIMA/oradata/opttest/data/NORS_MPCLINK3_D_01.dbf
input datafile fno=00183 name=/db/OPTIMA/oradata/opttest/data/NORS_OFFICE_TRAFFIC_ROUT_D_01.dbf
input datafile fno=00185 name=/db/OPTIMA/oradata/opttest/data/NORS_OWCTTS_D_01.dbf
input datafile fno=00349 name=/db/OPTIMA/oradata/opttest/data/NORS_LINE_ACCESS_D_02.dbf
input datafile fno=00011 name=/db/OPTIMA/oradata/opttest/opttest/OPTIMA_ALARMS_I.dbf
input datafile fno=00012 name=/db/OPTIMA/oradata/opttest/opttest/SAMPLE_VENDORD.dbf
input datafile fno=00013 name=/db/OPTIMA/oradata/opttest/opttest/SAMPLE_VENDORI.dbf
input datafile fno=00110 name=/db/OPTIMA/oradata/opttest/system/DEF_NORTEL_SWITCHING_S_01.dbf
input datafile fno=00115 name=/db/OPTIMA/oradata/opttest/data/NORS_PM_D_01.dbf
input datafile fno=00177 name=/db/OPTIMA/oradata/opttest/data/NORS_LINE_TRAFFIC_D_01.dbf
input datafile fno=00347 name=/db/OPTIMA/oradata/opttest/data/NORS_MPCLINK3_D_03.dbf
input datafile fno=00350 name=/db/OPTIMA/oradata/opttest/data/NORS_EXND_CALL_CONTROL_D_03.dbf
input datafile fno=00351 name=/db/OPTIMA/oradata/opttest/data/NORS_OWCTTS_D_03.dbf
input datafile fno=00354 name=/db/OPTIMA/oradata/opttest/data/NORS_ISUP_STATS_D_03.dbf
input datafile fno=00355 name=/db/OPTIMA/oradata/opttest/data/NORS_SYSPERF_D_03.dbf
input datafile fno=00357 name=/db/OPTIMA/oradata/opttest/data/NORS_TRUNK_MODULES_D_03.dbf
input datafile fno=00358 name=/db/OPTIMA/oradata/opttest/data/NORS_TREATMENT_D_03.dbf
input datafile fno=00359 name=/db/OPTIMA/oradata/opttest/data/NORS_SOTS_D_03.dbf
input datafile fno=00360 name=/db/OPTIMA/oradata/opttest/data/NORS_RTLTSUM_D_03.dbf
input datafile fno=00362 name=/db/OPTIMA/oradata/opttest/data/NORS_OFFICE_TRAFFIC_ROUT_D_03.dbf
input datafile fno=00363 name=/db/OPTIMA/oradata/opttest/data/NORS_C7ROUTE_D_03.dbf
input datafile fno=00365 name=/db/OPTIMA/oradata/opttest/data/NORS_CDIVGRP_D_03.dbf
input datafile fno=00368 name=/db/OPTIMA/oradata/opttest/data/NORS_CALL_CONTROL_D_03.dbf
input datafile fno=00370 name=/db/OPTIMA/oradata/opttest/data/NORS_COMPUTING_MODULE_D_03.dbf
input datafile fno=00371 name=/db/OPTIMA/oradata/opttest/data/NORS_C7MTP_D_03.dbf
input datafile fno=00372 name=/db/OPTIMA/oradata/opttest/data/NORS_IWUCGRP_D_03.dbf
input datafile fno=00376 name=/db/OPTIMA/oradata/opttest/data/NORS_C7LKSET_D_03.dbf
input datafile fno=00377 name=/db/OPTIMA/oradata/opttest/data/NORS_ISUP_TRAFFIC_D_03.dbf
input datafile fno=00378 name=/db/OPTIMA/oradata/opttest/data/NORS_DTSRPM_D_03.dbf
input datafile fno=00352 name=/db/OPTIMA/oradata/opttest/data/NORS_ANN_D_03.dbf
user interrupt received
Finished backup at 17-AUG-10
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03099: job cancelled at user request
RMAN> --> It was validating with the archivelog mode
RMAN> exit
Recovery Manager complete.
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Tue Aug 17 16:29:12 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 1375731712 bytes
Fixed Size 2056088 bytes
Variable Size 704643176 bytes
Database Buffers 654311424 bytes
Redo Buffers 14721024 bytes
Database mounted.
SQL> alter database noarchivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> exit;
SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ rman target /
Recovery Manager: Release 10.2.0.4.0 - Production on Tue Aug 17 16:30:00 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: OPTTEST (DBID=750193206)
RMAN> BACKUP VALIDATE DATABASE ARCHIVELOG ALL;
Starting backup at 17-AUG-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=1461 devtype=DISK
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:07
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:08
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:09
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:09
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:10
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:11
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:11
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:12
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:13
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:13
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:14
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:15
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:15
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:16
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/17/2010 16:30:17
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting compressed archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=297 recid=7633 stamp=727146412
input archive log thread=1 sequence=298 recid=7634 stamp=727221971
input archive log thread=1 sequence=299 recid=7635 stamp=727222952
input archive log thread=1 sequence=300 recid=7636 stamp=727281385Regards.
Ogan -
Restore database validate command
Hey Guys..
Is there a way to attempt to run the "restore database validate" command specifying a different location for the backup?
Lets say i have a backup in the following location: C:\SimpleBackup
How can i run the restore validate command to that location instead of the default flash recovery?We always use the :
set newname for datafile 1 to '/opt/dbsid/db01/system.dbf';
set newname for datafil 2 to '/opt/dbsid/db01/temp01.dbf';
to restore backup files to another location.
Is that useable here ?
Edit: I just re-read the question. Is the c:\simplebackup a destination to put restored files to, or is it the location of the rman archive ?
if the first is true, then the above can't be used.
Edited by: orafrf on Mar 16, 2009 4:37 PM -
Hello,
I want to backup server from powershell script:
wbadmin
start
backup
-backuptarget:\\?\Volume{3651776b-fc60-4ccb-af2b-48b702256f55}
-hyperv:"ComputerName1,Host
Component" -vssfull
-quiet
but I am gettting following error:
ERROR - Command syntax incorrect. Error: Component'. See the command
syntax below.
In CMD it works fine but I am unable to get it working in PS. Can anyone help? Thank you.
Pete
sfsPlease see the following article for how to pass arguments for executables in PowerShell:
Windows IT Pro: Running Executables in PowerShell
Basically all you should need to do is quote the entire argument to the -backuptarget parameter, as in:
"-backuptarget:\\?\Volume{3651776b-fc60-4ccb-af2b-48b702256f55}"
You probably also need to quote the entire -hyperv argument as well:
"-hyperv:ComputerName1,Host Component"
You can use the ShowArgs.exe tool in the article download to see the actual command line that PowerShell is really passing to the executable.
-- Bill Stewart [Bill_Stewart] -
OS command syntax to run RPG program (FTP Adapter)
Hi All,
I try to run RPG program from File Adapter OS command, I do not know correct OS syntax.
RPG program will create sales order in JD, PI and JD is on IBM i5 OS.
I am able to run OS command like "mkdir" but i do not know correct syntax to run RPG program.
I try few OS command but doesn't work like:
CALL PGM(Library Name/Program Name) PARM(xx,yyy,zzz)
CALL Library Name.Progran Name(param)
With regards
SunilHi,
Please check with the link:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/morewiththeFileAdapter
Hope it will throw some light to your solution.
Thanks.
Regards,
Vineetha. -
UPDATE command syntax for mulitple checkbox update
Hi,
I intend update the checkboxes by id in bulk.
My table is below. I want to update the selected form_id
checkboxe and their
values accordingly. That, I click the checkboxes (containin
form_id
information) of 1, 3, and 6; and I check their respective
fields for column
check01 and check02.
form_id check01 check02
1 1 0
2 0 1
3 0 0
4 1 1
5 1 1
6 1 0
I am using below code for deleting. I can do insert into. But
I could not
figure out the correct syntax for UPDATE command similar to
below example.
Sample for deleting:
DELETE FROM ADS
WHERE AD_ID IN (varCheckBox)
Thank you
HakanCheck here for SQL UPDATE syntax..
http://www.w3schools.com/sql/sql_update.asp
Regards,
..Trent Pastrana
www.fourlevel.com
"Hakan834" <[email protected]> wrote in message
news:e9tdd8$ppk$[email protected]..
> Hi,
>
> I intend update the checkboxes by id in bulk.
>
> My table is below. I want to update the selected form_id
checkboxe and
> their values accordingly. That, I click the checkboxes
(containin form_id
> information) of 1, 3, and 6; and I check their
respective fields for
> column check01 and check02.
>
> form_id check01 check02
> 1 1 0
> 2 0 1
> 3 0 0
> 4 1 1
> 5 1 1
> 6 1 0
>
> I am using below code for deleting. I can do insert
into. But I could not
> figure out the correct syntax for UPDATE command similar
to below example.
>
> Sample for deleting:
> DELETE FROM ADS
> WHERE AD_ID IN (varCheckBox)
>
>
> Thank you
>
> Hakan
> -
Export command syntax for OA page in R12
Hi,
Can any one let me know the syntax for export command for an OA page in R12.
I have tried with the 11i export command, but could not get the page.
Thanks,
DivyaHi,
sorry, wrong forum (its about JDeveloper and ADF) - See: OA Framework
Frank -
Applescript: "execute menu command" syntax
Greetings,
Anyone know the syntax for using:
execute menu command v : executes a menu command using the menu shortcut string
execute menu command
menu command string text : menu command shortcut
I can't figure out what string to use for the "menu command string" argument.
Thanks!Hi,
I’m not an applescript guy, but the following link may help you with the concept: http://kasyan.ho.com.ua/open_menu_item.html . You may think I’ve lost my mind in that 1) it isn’t applescript and 2) it’s for InDesign, but my thoughts are that it may serve as basis for you to google what you need.
TT -
Find command syntax to perform an audio conversion
Hi there,
I have to navigate through a tree of directories in which I have some .flac files and for each one I find launch a command to convert them to an iTunes recognized format (around 4000 files and a few hundred directories) possibly in the same directory where the flac file is found.
I can find the flac with the find "/Volumes/Qmultimedia/rjamusic -iname \*\.flac" command, what next ?
Thank you very much
Rob
Mac OS X Lion, iTunes 10.5.2From the man file:
-exec utility [argument ...] ;
True if the program named utility returns a zero value as its exit status. Optional arguments may be
passed to the utility. The expression must be terminated by a semicolon (``;''). If you invoke find
from a shell you may need to quote the semicolon if the shell would otherwise treat it as a control
operator. If the string ``{}'' appears anywhere in the utility name or the arguments it is replaced by
the pathname of the current file. Utility will be executed from the directory from which find was exe-
cuted. Utility and arguments are not subject to the further expansion of shell patterns and constructs.
EXAMPLE
find / -type f -exec echo {} \;
Use the echo(1) command to print out a list of all the files.
Add whatever audio conversion utility you are using instead of echo. -
Run Object command syntax in Lookout
In my application I want to move the CSV files saved in Lookout folder to another place in the network when a button is pressed. The command line for the run object is:
"cmd /c move /y C:\Program Files\National Instruments\Lookout 5.1\2004\*.* \\leo-2k1\Groups\Film\Data\2004"
It doesn't give an error, but it doesn't move the folders to the other place.
Questions:
-Is the command line text too long?
-Can Lookout move the folder while the Spreadsheet object is dumping data into it?Hi 23r23,
While there might be a finite limit to the number of characters in the command for the Run object, it is definitely more than your current command.
The problem in your case sems to be the path of your files. Since you have spaces in the folder names, you will have to enclose this in two sets of double-qoutes as below:
"cmd /c move /y ""C:\Program Files\National Instruments\Lookout 5.1\2004\*.*"" \\leo-2k1\Groups\Film\Data\2004"
Normally, as with the DOS command prompt, you would need only one set of double qoutes with paths that have spaces. However, Lookout expects two sets of double-quotes because one set of double-qoute is part of the command.
About moving the file while Spreadsheet object is writing to it, I don't think doing th
is is a good idea even if the cmd allowed it. Anyways, you can try it out to see if it does.
Regards,
Khalid -
How to validate command line arguments
Hi good programmer.Can anyone help me with this problem.I want want to control my program which accept values from command line,in such a way that when I run it without entering arguments in the command line, it must display message that i must pass argument from command line instead of display the runtime error.
please help...
victorThen you can check that you have the right number of args and print out a message and exit if you don't
e.g.
if (args.length != 2)
System.out.println("This program needs two arguments");
return;
Answer provided by Friends of the Water Cooler. Please inform forum admin via the 'Discuss the JDC Web Site'
forum that off-topic threads should be supported. -
Help for Delete command syntax
1. When i use command:
select * from families f, type_family t where f.family_name = t.family and f.type_id != t.type_id
I get the output successfully.
2. But I want to run a command like:
Delete from families f, type_family t where f.family_name = t.family and f.type_id != t.type_id
then it is giving me error....
Any solution for this Delete command??????????????delete from families where family_name=(select family from type_family) and type_id 1=(select type_id from type_family)
this query :-
select family from type_family returs more than one more row
you should use "In" operator. Hey study the ORACLE Basic Documents you doubts will be clear..
Thanks & Regards,
Pavan Kumar N -
Windows Server 2008 DNS command syntax to set All zones to Dynamic Secure updates
Hello,
Am I trying to configure all of my 150 dns zones to dynamic updates from "none" to "secure"
What is the command I should run to update all my zones. I ran "dnscmd myservername /config ALLZones /AlowUpdate 1" and I keep on receiving this error message
"DNS_ERROR_ZONE_DOES_NOT_EXIST"
What should be the exact command/argument I should run to propagate this on all my zones ?
is "..allzones" or "allzones" a valid argument ?
Thanks
RobertHi Robert,
Even add the two dots, I also get the same result.
Here is the screenshot of my lab,
As Kumar has mentioned, you need to write a script.
I have tried to modify the script provided by Kumar. It works on my lab server.
Here is the script,
$a = get-dnsServerZone
foreach ( $zone in $a)
if ($zone.ZoneType -eq "Primary")
if ($zone.IsDsIntegrated -eq "True")
{ set-dnsServerPrimaryZone -DynamicUpdate Secure -ZoneName $zone.zonename }
Best Regards.
Steven Lee
TechNet Community Support
Maybe you are looking for
-
How to generate Top sales report from SAP data ?
Hello experts, I am completely a newbie to SAP BO , can any one guide me how to generate TOP sales of the year report from SAP data ?
-
Error: starting satellite services
Hi all, When I install Ops Center on Linux CentOS 5.10 for management Sun Oracle Server. I have issue with last step of installation script ". I have error messsage below : Ops Center Enterprise Controll
-
Hi, When is GDR3 update for lumia 822 expected? Any tentative timelines?If any one knows any information about it.
-
Seeking a clear answer...
Hi, I have a new Extreme (n) base station, but am running on a 12' PB G4. I have my external HD set up and am able to access it wirelessly. My problem is, I want to watch the movies I have on my hard drive, and it seems the data transfer is too slow
-
Pesonlization in CRMD_ORDER
Hi gurus Does anybody know how to apply personalization in CRMD_ORDER to all users? (Personalization object CRM_ONEORDER) I want to uncheck "Open last transaction processed" and set "minimized" as defult setting for all users. But It seems that I nee