Direct RMAN output to UNIX file
How i could direct RMAN output to a file
How, indeed? Hmm.....
Wouldn't it be great if Oracle compiled information about their various software products and published it? Even better, what if they published it online, and made it available for free??
Wouldn't that be great?
Oh, wait, what's this?
http://tahiti.oracle.com/
http://www.oracle.com/pls/db102/to_URL?remark=ranked&urlname=http:%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB19306_01%2Fbackup.102%2Fb14191%2Frcmarchi002.htm%23sthref48
http://www.oracle.com/pls/db102/to_URL?remark=ranked&urlname=http:%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB19306_01%2Fbackup.102%2Fb14191%2Frcmcnctg006.htm%23sthref462
-Mark
Similar Messages
-
Urgent : Doubt on Output in UNIX FIle
HI Friends,
I have downloaded the output from my program into a text file.
In which i have 1matnr,1tab,1price.
it coming perfectly. I am using constant
constant: c_a type x value '09'.
this is giving a tab in text file.When i checked the output in Unix file, In the place of Tab a
Hash(#) is replaced there.
Can anybody help me to get only a material numer one tab and then a Date.
or Is it like a Hash is the denotion for a Tab in unix.Hi gokul
I think you need to change File type in FM: WS_DOWNLOAD as 'DAT' or 'ASC' .
Regards
wiboon -
Saving RMAN output to os file..
Dear Rman Gurus!
I'd like to save an RMAN output to os file.. for example this would be terrific:
RMAN> list backup; > /home/oralce/os_user/list.txt ???
is this possible? how do you have this solved in your env? I cannot find the right solution..
I am using version 8 and 9.. so spool log is not quite good as it doesn't work with v. 9..
Many thanks for your suggestions!
agat81RMAN v. 8Are you talking about 8i or 8.0?
The LOG option is available in 8i, but I don't believe the SPOOL LOG option is available. I have no idea about 8.0. -
Redirect SM50 output on unix file
Hello,
how can we execute daily SM50 daily and redirect html output on unix file?
I Tried SE38, execute SM50 succefully, but no way to redirect output of this transaction on a unix file ?
Thanks in advance.Hi majda,
Hope you are doing good.
Maybe check /nSM49 and create a OS command using ">>" operator Divyanshu mentioned:
Restrict Authorizations for Executing External Commands - SAP NetWeaver Application Server ABAP Security Guide - SAP Lib…
Thank you!
Kind Regards,
Hemanth
SAP AGS -
Output device - printing in unix file - where do I define the UNIX path?
Hi,
We use an special Output Device to print spool requests directly in Unix. These Output Devices are defined as Local Unix File. When those spool requests are printed, a file is created in certain path in UNIX.
The question is where this link is defined?, I dont see where in the Output Device (trn SPAD) is defined the path in UNIX.
Thanks!
AaronHi,
Might be the unix path would have been defined in the SPAD only under the Access method of the output device, in the field Destination host.
Regards,
Aditya -
How to resend the RMAN output to a text file
Hi ,
I am using RMAN for backup purpose.
How should we send the output of RMAN to a text file.
For Example If we issue the following command then how should we send the results of that command into a text file:
RMAN> report obsolete device
type 'sbt_tape';
result:
RMAN-03022: compiling command: report
RMAN-06147: no obsolete backups found
Any ideas will be great for me.
Thanks
KumarExample:
[oracle@ozawa oracle]$ sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Thu Mar 4 09:38:40 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> spool my_output.txt
SQL>
SQL> host rman target /
Recovery Manager: Release 9.2.0.1.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database: LQACNS1 (DBID=1237456636)
RMAN>
RMAN>
RMAN> quit
Recovery Manager complete.
SQL>
SQL> spool off
SQL>
SQL> quit
Joel Pérez -
We have decided to abandon user managed hot backups and go with RMAN. Could you critizize the following approach and see if we are missing anything? I am making whole database backup and controlfile and archivelogs. I am using RMAN catalog.
In a Unix script setting all of the environment variables and then
connect target ********
connect catalog *********
configure snapshot controlfile to '${ORACLE_HOME}/snapshot_${ORACLE_SID}_${TIMESTAMP}_ctl';
run {
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup database plus archivelogs;
release channel c1;
release channel c2;
p.s. control file autobackup is on
Also, I have these questions:
1. How do I direct the output of this backup to a file?
2. Is there a way to check for errors within this file to see if the backup went ok?
3. Would anyone have a unix shell script example of the above?
4. How do I make sure that catalog is synched with control file and what is on the file system?
5. Is it customary to delete archive logs via RMAN script if, say, my policy is to keep it on the file system for 7 days?
thank you for any input!Hi,
You didnot mention the db version, assumed it's 10g.
If you planned to schedule this job at os level, you might use crontab (unix). The snapshot controlfile config can set with catalog once, so it's not needed to include in your backup script. Like wise your retention can set as "recovery window of 7 days".
1. How do I direct the output of this backup to a file?
==> inside rman script you might use the following command,
set log to '/home/oracle/rmanbkp.log';
2. Is there a way to check for errors within this file to see if the backup went ok?
==> you might check in the logfile for ORA- and RMAN- errors.
3. Would anyone have a unix shell script example of the above?
I use to schedule this job either by OEM or crontab using rman script file.
4. How do I make sure that catalog is synched with control file and what is on the file system?
RMAN will do auto sync with controlfile.
5. Is it customary to delete archive logs via RMAN script if, say, my policy is to keep it on the file system for 7 days?
Upon successful backup you may delete the archivelogs or you might decide to keep it for 7 days and then delete by applying "delete obsolete" command.
Thanks,
Nirmal -
UNIX files pc download (AL11, ...)
Hi,
I generate a unix file (output as file), for example for EC Sales List, and I want to know how to access such file with a user transaction or something similar. If I access to the file directly in the server the file is absolutely correct, but I want the user to be able to access the file. I am trying to use transaction AL11 to save such file in local pc unconverted, but I have problems because it includes a header and each line of the file end after the last character not blank and it should not do that. The file in the server do not end after the last character not blank, because it has characters ' ' at the end of each line. That is why I would like to know if there is another way to access to unix files.
Thanks,
ArianaThank you very much for your answers. Finally, using CG3Y I can obtain my file without problems.
Message was edited by:
Ariana Landaluce -
DBA Colleagues,
I have a quick question concerning leveraging the NSR_RMAN_ARGUMENTS parameter with the new version of EMC Networker & NMDA. In past EMC Networker versions, when the EMC Scheduler was used to initiate the backup jobs, there was a shell script called nsrnmo that could leverage unix variables and os commands to construct the path/filename for all rman output files such as:
NSRMMO defintion(/usr/bin/nsrnmo--shell script):
NSR_RMAN_ARGUMENTS="msglog '/nsr/applogs/${ORACLE_SID}_msglog_`date +%Y-%m-%d_%H:%M:%S`.log' append"
NSRNMO output which would produce an rman output logfile of(this was able to used OS vars and commands):
/nsr/applogs/MYDB_msglog_2012-06-04_11:43:02.log
Now in the latest version of EMC Networker, there are config files that are not shell scripts, but still use the same definition:
NMDA config file (/nsr/apps/config/MYDB.cfg)
ORACLE_SID=MYDB
NSR_RMAN_ARGUMENTS="msglog '/nsr/applogs/${ORACLE_SID}_msglog_`date +%Y-%m-%d_%H:%M:%S`.log' append"
MNDA Output which produce rman output logifle(no translation of the varaibles...no MYDB or date format returned in logfile name):
/nsr/applogs/${ORACLE_SID}_msglog_`date +%Y-%m-%d_%H:%M:%S`.log
Has anyone converted from Networker 7.5(NMO) or ealier to Networker 7.6(NMDA)..and what specification was useful for rman output logfile naming??
Kind Regards,
. . . Todd . . .Hi Todd,
I implemented the nmda module after using the nmo module for some of my databases.
Sadly enough the old nmo had much more options to push environment settings compared to the new nmda.
Also the translation of variables seems to be lost as well.
The only way for me was to create an nmda file per database having hard coded values in it.
I use cron to rotate the log to a logfile with a date format just before midnight.
Regards,
Tycho -
Unable to Open unix file in UNICODE system which created NON-UNICODE system
Unable to Open unix file in UNICODE system which created in NON-UNICODE system
We have two SAP systems both are ECC6.0 but System 1 is NON-Unicode and System2 is Unicode system.
There is a common unix directory/folder for both system.
Our requirement is to create one file on unix common folder and write the data to file from system1 .
In system2 open the same file for appending mode to write the data .
The file in system 1 created with below sentence.
OPEN DATASET g_unix_file FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
Now I have to append the data from system 2 to same file.
I have tried to used below statement in system 2 to open the file but sy-subrc value comes as '8'.
1> OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING UTF-8.
2>OPEN DATASET g_unix_file FOR APPENDING IN legacy TEXT MODE CODE PAGE
cdp IGNORING CONVERSION ERRORS .
3>OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING Default.
4>OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING NON-UNICODE.
Tried out all the possibilities as per F1 help given for open dataset , but still there is problem with opn file in appending as well output mode.However the file successfully open in Input mode(Read).
Please advice suggestion to resolve this issue.
Thanks.Messgae captured as 'Permission Denied". The program gets triggered with system user Id PPID.
How to check the security access of the User ID. -
Using File Adapter to transfer files from directories on unix file server.
I have this scenario. I have a PI server on hpus45 and I want to use it to transfer files from a source directory to a destination directory on a unix file server. The unix file server is on a different box eg hpus30.
What do I configure in SLD and Integration Directory? All the examples I have seen is transfering files from directories on the PI server but none on a different box.'
Is it possible? I need help asap. I need to determine what the best approach is by today.Hi Agasthuri Doss,
I'm using PI 7.1. I'm not seeing your instructions in ID.
The objects in PI 71. are in this order
Unassigned Objects
Party
communication component
communication channel
receiver determination
interface determination
sender agreement
receiver agreement
direct connection
integrated configurations
configuration scenario
value mapping group. -
How to upload pdf file format in unix file directory?
how to upload pdf file format in unix file directory?
Hi Karthikeyan,
If you have PDF internal table with you, You can follow the below method to upload into Unix directory.
DATA:file_path TYPE char100 VALUE '/usr/sap/tmp/rep_out.PDF'.
OPEN DATASET file_path FOR OUTPUT IN BINARY MODE.
IF sy-subrc EQ 0.
LOOP AT it_pdf.
TRANSFER it_pdf TO file_path.
ENDLOOP.
ENDIF.
CLOSE DATASET file_path.
Thanks
Venkat.O -
Allowing user to submit unix file on selection screen.
how to allow the user to submit the unix file on selection screen.
based on that file data ,the selection screen shd be populated automatically.Refer Sample Code:
constants: c_split TYPE c
VALUE cl_abap_char_utilities=>horizontal_tab,
c_path TYPE char100
VALUE '/local/data/interface/A28/DM/OUT'.
Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : rb_pc RADIOBUTTON GROUP r1 DEFAULT 'X'
USER-COMMAND ucomm, "For Presentation
p_f1 LIKE rlgrap-filename
MODIF ID rb1, "Input File
rb_srv RADIOBUTTON GROUP r1, "For Application
p_f2 LIKE rlgrap-filename
MODIF ID rb2, "Input File
p_direct TYPE char128 MODIF ID abc DEFAULT c_path.
"File directory
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_f1.
*-- Browse Presentation Server
PERFORM f1000_browse_presentation_file.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_f2.
*-- Browse Application Server
<b>PERFORM f1001_browse_appl_file.</b>
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF rb_pc = 'X' AND screen-group1 = 'RB2'.
screen-input = '0'.
MODIFY SCREEN.
ELSEIF rb_srv = 'X' AND screen-group1 = 'RB1'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'ABC'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
*& Form f1000_browse_presentation_file
Pick up the filepath for the file in the presentation server
FORM f1000_browse_presentation_file .
CONSTANTS: lcl_path TYPE char20 VALUE 'C:'.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_path = lcl_path
mask = c_mask "',.,..'
mode = c_mode
title = text-006
IMPORTING
filename = p_f1
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
flg_pre = c_x.
ENDIF.
ENDFORM. " f1000_browse_presentation_file
*& Form f1001_browse_appl_file
Pick up the file path for the file in the application server
FORM f1001_browse_appl_file .
DATA: lcl_directory TYPE char128.
lcl_directory = p_direct.
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = lcl_directory
filemask = c_mask
IMPORTING
serverfile = p_f2
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000(zmm) WITH text-039.
flg_app = 'X'.
ENDIF.
ENDFORM. " f1001_browse_appl_file
*& Form f1003_pre_file
Upload the file from the presentation server
FORM f1003_pre_file .
DATA: lcl_filename TYPE string.
lcl_filename = p_f1.
IF p_f1 IS NOT INITIAL.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lcl_filename
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = i_input
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE s000 WITH text-031.
EXIT.
ENDIF.
ELSE.
PERFORM populate_error_log USING space
text-023.
ENDIF.
ENDFORM. " f1003_pre_file
*& Form f1004_app_file
upload the file from the application server
FORM f1004_app_file .
REFRESH: i_input.
OPEN DATASET p_f2 IN TEXT MODE ENCODING DEFAULT FOR INPUT.
IF sy-subrc EQ 0.
DO.
READ DATASET p_f2 INTO wa_input_rec.
IF sy-subrc EQ 0.
*-- Split The CSV record into Work Area
PERFORM f0025_record_split.
*-- Populate internal table.
APPEND wa_input TO i_input.
CLEAR wa_input.
IF sy-subrc <> 0.
MESSAGE s000 WITH text-030.
EXIT.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDDO.
ENDIF.
ENDFORM. " f1004_app_file
Move the assembly layer file into the work area
FORM f0025_record_split .
CLEAR wa_input.
SPLIT wa_input_rec AT c_split INTO
wa_input-legacykey
wa_input-bu_partner
wa_input-anlage.
ENDFORM. " f0025_record_split
Thanks
Seshu -
Hi Gurus,
I am converting data in an internal table (consisting of 5000 records) into XML string using CALL TRANSFORMATION. All data is stored in XML format in a variable of type STRING.
I am trying to write this data in a Unix file using TRANSFER statement.
The problem is all data is not copied into the file!
Can anyone suggest a suitable solution so that complete data in the string variable will be reflected in the file?
Regards,
JackHi,
If you are opening the file in text mode, your itab fields have to be character type fields. So define another itab with fields of character type with lengths defined as per your output requirements.
You have understand that if you have floating, decimal fields, currency or quantity fields in your itab, they are know to SAP only, once you try to download such records, converting them into character form needs to happen.
Did you try the binary mode with your 'open dataset' statement?
Srinivas -
Unix file to be converted to proper excel format
Hi Ima writing data to unix file but when i want to download from there in excel format i data is not not aligned in excel format
please let me know the seperator to be used to upload to unix which can be converted to excel with good alignment.
i tried seperator '09' but didn't work and my version is 4.6 c so i can not use the encoding command or the classes.
pls guide
OPEN DATASET p_unix FOR OUTPUT IN TEXT MODE MESSAGE v_message .
IF NOT sy-subrc IS INITIAL.
MESSAGE e398(00) WITH text-008 p_unix v_message space.
ENDIF.
** Write header to unix file
LOOP AT gt_fieldcat1 INTO st_fieldcat1.
CONCATENATE st_rec st_fieldcat1-seltext_l
INTO st_rec
SEPARATED BY ','.
ENDLOOP.
CONDENSE st_rec.
TRANSFER st_rec TO p_unix.
** Write data to unix file
LOOP AT <fs_table> ASSIGNING <fs_struc>.
CLEAR: st_rec.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <fs_struc> TO
<field>.
IF sy-subrc NE 0.
EXIT.
ENDIF.
v_field = <field>.
IF v_field IS INITIAL.
CONCATENATE st_rec v_field ','
INTO st_rec .
ELSE.
CONCATENATE st_rec v_field ','
INTO st_rec.
ENDIF.
ENDDO.
TRANSFER st_rec TO p_unix.
ENDLOOP.
Close unix file
CLOSE DATASET p_unix.Although I dislike MPEG-1 because of the large file size those .mpg files are commonly used on the Web. They can be played by nearly any computer and are not "Player" dependent like WMP or QuickTime so each user can decide how to view them.
As a bonus they are a "playback" format which makes editing and repurposing them a bit more difficult so your media is a bit more "secure".
I'll stick to QuickTime formats (avoiding H.264 video codec) and force QuickTime down their WiMPy throats. Millions of PC's have QuickTime installed (because of iTunes) and others can easily download the free Player and browser plug-in. By avoiding H.264 my files can be viewed on Mac's and PC's that can't install QuickTime 7.
Maybe you are looking for
-
IMac late 2006, OSX Lion 10.7.5 upgrade to Mountain Lion 10.8
I am running OSX Lion 10.7.5 on a late 2006 iMac with Intel. Can I upgrade to Mountain Lion 10.8? If so where do I find the download for the upgrade? Thanks.
-
Installed Itunes 11.0 on Windows 7 64-bit / Itunes store crashes app completely
Hello I Installed Itunes 11.0 on Windows 7 64-bit and I can download podcasts and it will sync, but after downloading app updates and clicking done, Itunes crashes immediately when it tries to access the itunes store. If I try to access the Itun
-
How to retain internal hyperlinks (figure/table cross references) from Word to InDesign. Any help? Thanks Sam
-
When I try to update my ipad it says that my icloud is too full. I have an iphone and ipad. My daughter has an ipod touch. I have changed her icloud and itunes to her own account. Why is it saying I'm exceeding my free amount? Do I need separate
-
How can we set two events in a single button ???
HI I created a button named bold , when i click it first time the textarea texts will became as bold.. I created another button bold cancel when i click at that button textarea texts will became plain... But how can i set that controls in a single bu