Does RMAN Generate a Log/Text File ?
Hi Oracle experts,
I run Oracle 9i on Windows.
The lovely auditors wnat to see some evidence that our RMAN LVL0 backups ran for certain dates of last month. They are going back beyond our recovery window so the actual (obsolete) backup files have been deleted from the server's disk.
Before I go thru all that's involved in finding the backup tapes, I want to know if there is a log, etc that would indicate when the RMAN task ran? These backup jobs were ran by the Windows Task Scheduler :(
Again, Oracle 9i on Windows.
Thanks much!
John
If you have created a Log file for Task schedular on Windows , then you can use that but other than that i dont think that there is any other option for this.
Regards
Similar Messages
-
Hello everyone!
I would like to write Error Logs appearing in the Runtime Workbench of XI written on a text file eg. Logs.txt (via FTP) and saved in a folder. Does anyone have an idea how I can go about this?
Warm regards,
GlennHi,
Probably you could use the below links for the logs
XI: Why don't start searching for all errors from one place?
/people/michal.krawczyk2/blog/2005/09/07/xi-why-dont-start-searching-for-all-errors-from-one-place
SLAW, a New Logging & Tracing Framework for XI.
reading the log file generated by Integration Server of SAP XI
Or May be developing the Wrraper class to log the messages in XI server.
With the use of Wrraper class probably you could create the xml file in Integration Server and then by useing NFS system for file adapter you could read and post it as per our normal file to file scenario.
Developing the Wrapper class to log the message in XI server
Thanks
Swarup -
How to generate reports in text file without totals
Hi!!!
Does anybody knows how can I generate a report in text file
(separated by |), but without the lines with totalizations ?
In my application, the user can choose if he wants the output
in HTML,PDF or a text file. So, the solution to this question
must be implemented in code.
Thanks a lot,
Anderson.If you put a formatting trigger on any item or frame and return FALSE, it will disappear.
So the totals need to be within a frame which has a trigger which returns false if text file is chosen. -
File name to be generated from outbound text file data
Hi Experts,
I am collecting IDOCs and generating IDOC-XML(for IDOCS) file and sending it to PI 7.0 using sender file adapter.
This is File to File scenario.
IDOC-XML file picked by sender file adapter gets transformed using XSL mapping in to .dat(text) file.
Sample Output of .dat file (target file)
STR SE 2008-10-3011:13:00$SEQ
EIH21148862 D2008102820081127SEK000000894800000000894800000000000000 0000XYZ co Ltd KL25533781 2114886209 335592 2508867
EIL21148862 0000000000000000100000000000020081021 335592 20081010KILLL899 Operating System
Now I want output file name to be: ABC_DEF_cc_yyyymmdd_segno.dat
ABC_DEF is constant
cc - means country code, in this case it should be "SE", which is marked in bold immediately after STR.
yyyymmdd - date format
segno - which means no of records like number of lines in text file, (say three records: STR, EIH, EIL)
Please feel free for any clarifications required.
I hope I am able to explain scenario.
I would really appreciate if you can help me with your valuable inouts.
Thanks,
Divyeshhi,
just put one more mapping as the last mapping in your interface mapping
it can be abap or java mapping
then as per this blog fill out Filename attribute which will set the file name
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
you can parse the whole IDOC structure in tthose mappings to get all the data you need for the filename
this is the easiest way I'd say
Regards,
Michal Krawczyk -
Need to format a vpn log text file into a format that can be written directly to a SQL table
I am trying to do two thing inside of powershell
1. Take a vpnlog text file "C:\temp\ps3\vpnlogs\testlog.txt" formatted as such and be able to directly add the columns to a sql table
"Number" "Date" "Time" "Interface" "Origin" "Type" "Action" "Service" "Source Port" "Source" "Destination" "Protocol" "Rule"
"Rule Name" "Current Rule Number" "User" "Information" "Product" "Source Machine Name" "Source User Name"
"291" "29Nov2013" "23:59:00" "" "A*****" "Log" "Log In" "" "" "111.*.*.* " "A*****" "" "" "" "" "pet*******"
"VPN internal source IP: 192.*.*.*; reason: disconnected from gateway" "Security Gateway/Management" "" ""
2. Remove the empty colums in this text file so that I can then find a way to upload only colums that have a column name directly up to the sql table via a powershell script .
SO basically import txt file format it into colums that have data that can then be directly written to a sql table without me having to manually create the columns in the table. if this worked correctly the sql table would be uploaded with the colums and
data from sql.
I can do the upload portion with the below listed powershell command however when I import the following file into powershell I have to manually import the testlog.txt into excel then save as a csv to upload... not to mention I had to
manually create the columns in the sql table so that it imports correctly.
get-content "C:\temp\ps3\vpnlogs\testlog.txt" I can not get the data to format correctly without manually importing it into the logfiledata.csv.
$dt=Import-Csv-Path"C:\temp\ps3\vpnlogs\logfiledata.csv"|Out-DataTable
Write-DataTable -ServerInstance"myserver"-Database"mydata"-TableName"dbo.VPNLOGS"-Data$dt
I also have tried this to format the text file but it's not working the way I thought it should, but I don't want to have to create the .CSV file if I can avoid it I would rather take the data in powershell formatted and use the colums to
get-content"C:\temp\ps3\vpnlogs\testlog.txt"|Foreach-Object{
($_
-replace'"',',')
} |Set-Content"C:\temp\ps3\vpnlogs\testlog2.csv"
| Import-Csv
"C:\temp\ps3\vpnlogs\testlog2.csv"|selectNumber,date,time,interface,origin,type,action,service,"source
port",source,destination,protocol,rule,"rule
name","current
rule number",user,information,product,"source
machine name","source
user name"
"Number" "Date" "Time" "Interface" "Origin" "Type" "Action"
"Service" "Source Port" "Source" "Destination" "Protocol" "Rule" "Rule Na
me" "Current Rule Number" "User" "Information" "Product" "Source Machine Name" "Source User Name"
"473" "4Dec2013" "23:59:01" "" "AAMESXF604" "Log" "Log In" "" "" "ip72-198-30-53.ok.ok.cox.net" "AAMESXF604" "" "" ""
"" "usthompst"Thank you Mjolinor this seems to have given me a good output, now do you know of a method using the out-datable and write-datatable that I can use to directly upload the objects and data. Really I do not want to have to create another file at this
point I would like to take all of this info and now write it directly to my SQL-Table...
TypeName: Selected.System.Management.Automation.PSCustomObject
Name MemberType Definition
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
Action NoteProperty System.String Action=Log In
Current Rule Number NoteProperty System.String Current Rule Number=
Date NoteProperty System.String Date=4Dec2013
Destination NoteProperty System.String Destination=******
Information NoteProperty System.String Information=VPN internal source IP: *.*.*.*; reason: disconnected from gateway
Interface NoteProperty System.String Interface=
Number NoteProperty System.String Number=473
Origin NoteProperty System.String Origin=********
Product NoteProperty System.String Product=Security Gateway/Management
Protocol NoteProperty System.String Protocol=
Rule NoteProperty System.String Rule=
Rule Name NoteProperty System.String Rule Name=
Service NoteProperty System.String Service=
Source NoteProperty System.String Source=ip*-*-*-*.ok.ok.cox.net
Source Machine Name NoteProperty System.String Source Machine Name=
Source Port NoteProperty System.String Source Port=
Source User Name NoteProperty System.String Source User Name=
Time NoteProperty System.String Time=23:59:01
Type NoteProperty System.String Type=Log
User NoteProperty System.String User=******* -
Config event generator to log when file didn't arrive at certain time?
hi everyone
is it possible to configure a file event generator to write a log if certain files did not arrive at pre-defined time? or any event generator to log if certain events did not happen at specified time? thanks in advance.
Message was edited by chendongtom at Sep 13, 2004 10:23 AMHi,
I don't think, it is possible.
What you can do is:
Don't use file EG, but a timer EG, which kicks off a workflow, using a file control to look for/read in/.. the file and do some reporting afterwards.
You do not have to kick-off the workflow at the exact time, but also can do it 2 hours (for example) before and use a timer inside the workflow for watching a time period for the arrival of the file.
Keep in mind that WLI timers are not 100% exact because they are JMS based, so it is guranteed not to be started before, but can start a little bit later than start-time.
If you are using already a scheduling system like Control-
M, you can also leverage this to start the workflow.
-Kai -
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 -
How i can enforce to generate a UNICODE text file
Hi,
Every body
I am trying to generate text files in UNICODE formate with the following code.
Writer out = new OutputStreamWriter(new FileOutputStream(filePath1),"UTF-8");
I am fetching the contents of text file from the postgres database(8.1) and pushing it into text file.Databe is also created in UNICODE formate.
But problem is that if a database field have conents except english(english also) then its generating in UNICODE formate.But if database field dont have contents other than english then its creating the text file in ASCII formate.I wants to create text files in UNICODE formate whatever data is in the database
Help me plzzzzzzzzzz
azizMutliple post
http://forum.java.sun.com/thread.jspa?threadID=767882&tstart=0 -
Page faults trying to generate results to text file
I am on Developer 6.0 and when I click on the menu > FILE > Generate to file > Text -- I get an illegal operation message box Stating "RWRBE60 caused an invalid page fault in module CA60.dll at 017f:67f30cb3." Friends in other companies also experience the same problem.
Robert,
You should start by upgrading to a newer version of Reports.
You should be using Reports 6i with at least patch 1 (6.0.8.8.3). Patch 4 is the latest.
Next time you post here, please tell us which version you are using, and in which operating system. Doing that, it's easier for us to help you.
Pedro. -
Does rman backup an init.ora file?
i read where there is a command to back up an spfile, but didn't see anything about how to backup an init.ora. is this not possible in rman -- do you have to back it up manually? or did i just miss something?
thanks.As the others have indicated, there is NO specific RMAN command to back up the init file. However, as was mentioned, you can simply copy the file from the O/S or to ensure that the init file has the same parameter/values as the spfile, you can issue the following command while in RMAN:
sql "create pfile=''d:\oracle_backup\initORCL9.ora'' from spfile"; -
Labview generated error & logs a file. No log file found
I get this error on the director. I check "LabVIEW_Failure_Log.txt" & the data is old (10-31-2004)& only 1 occurrance. THeis error happens about 5 times a day.
The file that you are referring to was created in older versions of LabVIEW. If the version of LabVIEW that you are using is 7 or later, then the error log file will be present at
"C:\Documents and Settings\[your username]\My Documents\LabVIEW Data\lvfailurelog"
You can search for the error information in this file on our website, but if you can't find any information please let me know and I will investigate the error.
- Philip Courtois, Thinkbot Solutions -
XML Publisher does not create a valid XML file when I try to 'generate '
I am working through an Oracle document that walks you through creating an XML Pub report. I am using HCM 8.9, Tools 8.49.15 and it has XML Pub installed and I have the Microsoft plug-in installed
I have created a query and have downloaded an rtf template and now am on a page where you enter your data source and then click ‘Generate’ for the sample data file. I did it and it created ‘PERSONAL_DATA_PAY.XML’ which is created from a PS Query. However if I click on ‘PERSONAL_DATA_PAY.XML’ it generates a blocky text file that is not an XML file and I can’t go any further.
Do you know why it’s not generating a valid XML file when I click on 'generate'?
Thanks
Allen H. Cunningham
Data Base Administrator - Oracle/PeopleSoft
Sonoma State UniversityOn the right click on HD under video quality to filter it.
-
Generating an XML formated text file
Hi all
I am a PL/SQL programmer and have no idea about XML :-(
I am using ORACLE 10g and my application generates atleast 100 text files a day for customers. These files are manipulated using Utl_File package and gets data from the DB.These files are tab or comma delimeted. Now company wants to give an option to customers to get the same output in XML format. My understanding is that I need to get information from customers first to make the report template for them and then use some XML parser to get data from DB and give an output using that customer's specific template.
I wanna know, if there is any whitepaper or manual that can guide me step by step. I just need to make an idea how the things can go togather and the sequence of operation. I also wanna use only PL/SQL and not Java at this time.
Rashid
Message was edited by:
rashid68check it out at http://www.orafaq.com/faqxml.htm
-
Generate a text file using Portal
Hello Everyone,
I need to generate a flat text file from a portal screen. I have no idea as
to what is the best way to do this. I have a screen on which i will have a
push button which when pressed needs to run a procedure which generates a
text file.
I don't know whether this is possible also or not.
Any help in the matter would be great.
Thanks.Hi,
You can create a procedure like this.
create or replace procedure op1
as
begin
htp.init;
owa_util.mime_header('plain/text', false);
htp.p('Content-Disposition: attachment; filename='||'output.txt');
owa_util.http_header_close;
htp.p('My output is text...');
exception
when others then
null;
end;
This will direct the ouput to a file called output.txt.
Thanks,
Sharmila -
Generating Text Files from reports
Hi all,
Could anyone help me to generate reports to text files using command line. I could do this using the menus but I need to do it by command line.
I tried to use the DESFORMAT parameter but the values for this parameter do not include a value for a text file. I could find PDF, HTML, RTF and.....
Thanks in advanceHi,
Try using DESFORMAT=DELIMITED eg.
rwrun60.exe REPORT="XXXXX.RDF" USERID=userid/passwordf@databaseid DESTYPE=FILE DESFORMAT=DELIMITED DELIMITER=TAB DESNAME="XXX.TXT" BATCH=YES
I think the default delimiter is TAB but you can specify your own delimiter. There is a list of command line options and delimiter options on the Reports Runtime Help.
I hope this helps !
regards
Warren
Maybe you are looking for
-
PC computers do not recognize Ipod touch
All the USB ports are fine and the cable work perfectly. When I plug in my Ipod it shows that its charging but the computers dont do anything. I checked devices and even fiddled with some third party softwares that might be blocking it but nothing is
-
I'm trying to update my ipod, but when I plug it and it starts to update mssage appears saying : itunes:iTunes.exe-corrupt file the file or directory\ipod_control\iTunes\iTunesprefs is corrupt and unreadable-please run the chkdsk utiliy. Though there
-
Hi all I want to setup ftp in my G5 running Tiger 10.4.4 ,with user name password for ftp & define a particular folder or drive(local ,firewire etc.) to be publish over network(local or internet) PowerMac G-5(DP,1GB RAM,160 GB HDD)
-
2 user accounts want to use the same program
Unfortunately when I downloaded firefox I didnt specify at install that it was for both user accounts. How can I without downloading the whole program set it so it opens in both accounts the admin where it does now and my standard account? kihei Mess
-
Seems a bug in forums posting time
Please follow the discussions in this thread. Seems a bug in forums posting time: Re: SQL query help