How to add a log file to an MaxDB?
I see that we have only one log file there. I want to add more. Please help either the syntax or the GUI menu path. Thanks!
Hi Linda,
of course the topic is covered in the MaxDB documentation (e.g. here http://maxdb.sap.com/documentation/)
[Adding Log Volumes|http://maxdb.sap.com/doc/7_7/0c/b9bc43f7b24eef9afff1968bf4fcdc/content.htm]
However, you should be really sure that you actually need to add a volume to the log area.
Usually this is not the case.
Most often, people believe they should add a log volume when they should run a log backup.
regards,
Lars
Similar Messages
-
How do I add a log file to posts? (NT)
How do I add a log file to posts?
Thanks,here is the output of copy/paste:
I [17/Oct/2007:05:51:44 -0500] Configured for up to 100 clients.
I [17/Oct/2007:05:51:44 -0500] Allowing up to 100 client connections per host.
I [17/Oct/2007:05:51:44 -0500] Using policy "default" as the default!
I [17/Oct/2007:05:51:44 -0500] Full reload is required.
I [17/Oct/2007:05:51:45 -0500] Loaded MIME database from '/etc/cups': 35 types, 40 filters...
I [17/Oct/2007:05:51:46 -0500] Loading job cache file "/var/cache/cups/job.cache"...
I [17/Oct/2007:05:51:46 -0500] Full reload complete.
I [17/Oct/2007:05:51:46 -0500] Listening to :::631 on fd 2...
I [17/Oct/2007:05:51:46 -0500] Listening to 0.0.0.0:631 on fd 3...
I [17/Oct/2007:05:51:46 -0500] Listening to /var/run/cups/cups.sock on fd 4...
(The strikethrough is one of the many bugs in the Forum software...)
Use Console Utility to show you the log files, if that is what you need to know. -
Not able to add new log file to the 11g database.
Hi DBA's
I am not able to add the log file i am getting error while adding the database.
SQL> alter database add logfile group 3 ('/oracle/DEV/db/apps_st/data/log03a.dbf','/oracle/DEV/db/apps_st/data/log03a.dbf') size 50m reuse;
alter database add logfile group 3 ('/oracle/DEV/db/apps_st/data/log03a.dbf','/oracle/DEV/db/apps_st/data/log03a.dbf') size 50m reuse
ERROR at line 1:
ORA-01505: error in adding log files
ORA-01577: cannot add log file '/oracle/DEV/db/apps_st/data/log03a.dbf' - file
already part of database
SQL> select a.group#, member, a.status from v$log a, v$logfile b where a.group# = b.group# order by 1;
GROUP# MEMBER STATUS
1 /oracle/DEV/db/apps_st/data/log01a.dbf ACTIVE
1 /oracle/DEV/db/apps_st/data/log01b.dbf ACTIVE
2 /oracle/DEV/db/apps_st/data/log02a.dbf CURRENT
2 /oracle/DEV/db/apps_st/data/log02b.dbf CURRENT
Kindly help me to add the new log file to my database.
Thanks,
SGHi Sawwan,
V$LOGMEMBER was written in the document,
I query the log members as bellow
1)select a.group#, member, a.status from v$log a, v$logfile b where a.group# = b.group# order by 1;
GROUP# MEMBER STATUS
1 /oracle/DEV/db/apps_st/data/log01a.dbf INACTIVE
1 /oracle/DEV/db/apps_st/data/log01b.dbf INACTIVE
2 /oracle/DEV/db/apps_st/data/log02a.dbf CURRENT
2 /oracle/DEV/db/apps_st/data/log02b.dbf CURRENT
2)SQL> select group#,member,status from v$logfile;
GROUP# MEMBER STATUS
2 /oracle/DEV/db/apps_st/data/log02a.dbf
2 /oracle/DEV/db/apps_st/data/log02b.dbf
1 /oracle/DEV/db/apps_st/data/log01a.dbf
1 /oracle/DEV/db/apps_st/data/log01b.dbf
But i am littile bit confused that there is no group or datafile called " Group 3 and log03a.dbf" as per the above query, how can i drop tease group and datafile.
and i crossverified in the data top the files are exist or not but those are not existing. but still i am getting the same error that i can't create that already exist.
can issue the bellow queris to drop those group which i dont think so it will exist?
SQL>alter database drop logfile group 3;
Thanks in advance.
Regards,
SG -
How open and see Log File in Active Directory
Hello Friends.. ^-^
how i can open log files active directory and see this data files ?
Can export this logs ?
thanks for help.And adds a definition of edbxxxxx.log for completeness:
These are auxiliary transaction logs used to store changes if the main Edb.log file
gets full before it can be flushed toNtds.dit.
The xxxxx stands for a sequential number in hex. When the Edb.log file
fills up, an Edbtemp.log file
is opened. The original Edb.log file
is renamed to Edb00001.log, and Edbtemp.log is
renamed to Edb.log file,
and the process starts over again. Excess log files are deleted after they have been committed. You may see more than one Edbxxxxx.log file
if a busy domain controller has many updates pending.
Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable. This helps the community, keeps the forums tidy, and recognises useful contributions. Thank you! -
How to create different log files for each of web applications deployed in OC4J
Hi All,
I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
1. how to create different log files for each of my deployed web applications ?
2. what are the advantages in running multiple instances of oc4j and in what case we should run
multiple instances of OC4J ?
3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
Thanks and Regards,
Kumar.Hi Avi,
First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
Thanks and Regards,
Ravi. -
How to add an audio file to a link
I am working on a project using IWeb and I am trying to figure out if it is possible and then, if it is how to add an audio file to a link. I would really be glad of your help as I am having problems meeting the requirements of the project if I don't make it work.
Also, is it possible when having added a movie clip from quick time player to have the clip start as soon as the page is "opening", that is without pressing the play button?
I am waiting in great suspense to see if anybody can help me out. If you have the answers to my questions, please send me an email at [email protected] - thank you so much :o)Hi Maiken
Welcome to the discussion forums.
All you need is open iWeb, select text or image, open inspector, go to link, check the "enable as a hyperlink" box, in "link to" there's a teardown menu where you select "a file" and select the file you want to link to.
If you want to have it downloading look at [this|http://alyeska.altervista.org/en/iWeb_Downloads.html]
For the second question:
select the movie file in iWeb go to inspector, then to the last icon (showing the quicktime logo) and check the box that say "Autoplay".
Regards,
Cédric -
How to add a Java file from ejbModule to EJBCandidates ?
Hi,
In my java client proxy project, I have got the EJBCandidates generated. But I need to add one more java source file from ejbModule to EJBCandidates.
If I right click on the java file I need to add, am not getting that option for adding.
<b>Please help me how to add java source file from ejbModule to the EJBCandidates.</b>
Thank you.Great... :-)
Thank you very very much xHacker :-)
That what just what I needed. -
Hi All,
How to add the property file..ie(default.properties) to a webdynpro project.
I urgently require the solution. Kindly get it for me.
Regards
DKHi DK,
this is described in the second Web Dynpro Java Tutorial
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b1a3e990-0201-0010-aeb2-a2ef5bc3da8e">creating an Extended Web Dynpro Application</a>
Regards, Bertram -
How to add existing jsp file to a project?
I am trying out 10g developer preview. Looks like a lot of bugs are there in the tool. I would like to know how to add existing jsp file into a project. I tried the Import functionality, but it shows the option to create a project and include only Java files. Is there a way to do this? Thank you
Just copy the files in the directory where the rest of your source file is.
-
How to add an image file to Oracle db?
Need help urgently....Anybody knows how to add an image file (example: jpg)into one of the fields in Oracle database??
This will do the job..
package forum;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import oracle.jdbc.driver.*;
//import oracle.sql.*;
Wanneer een request.getInputStream wordt geconferteerd naar een "String" (zie later) dan ziet de output in tekstformaat er als volgt uit:
-----------------------------7d280152604f4 Content-Disposition: form-data; name="oploadfile"; filename="C:\WINNT\Profiles\mvo\Desktop\boodschap.txt" Content-Type: text/plain Deze boodschap dient te worden ge-insert in de database. -----------------------------7d280152604f4 Content-Disposition: form-data; name="StadID" 1234 -----------------------------7d280152604f4 Content-Disposition: form-data; name="SuccessPage" /forum/error.jsp -----------------------------7d280152604f4--
of opgesplitst
contentType........... multipart/form-data; boundary=---------------------------7d235ade00f0
filename.............. "C:\Documents and Settings\Administrator\Desktop\boodschap.txt"
MIME type............. text/plain
Wat in database moet.. Dit is de eigenlijke boodschap die moet worden ge-insert in de database.
Eind boundary......... -----------------------------7d235ade00f0 Content-Disposition: form-data; name="file1"; filename="" Content-Type: application/octet-stream -----------------------------7d235ade00f0--
We gaan achtereenvolgens:
1. Kijken of het van het "multipart/form-data" type is (uploaden) en strippen van eerste boundery.
1.a Geen "multipart/form-data" ? dan... error message
1.b Groter dan MAX_SIZE ?..dan .. error message
2. Filenaam van de te uploaden file uitlezen
3. Mimetype bepalen en bepalen in welke positie van de string het Mimetype ophoudt, cq waar te uploaden file begint
4. Bepalen waar eind boundery begint
5. De eigenlijke file uitlezen
6. Terug converteren naar bytes
public class WriteBlob extends HttpServlet {
public static final int MAX_SIZE = ParameterSettings.imageUpload;
String successMessage = "";
public void init(ServletConfig config) throws ServletException {
super.init(config);
* Process the HTTP Get request
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
DataInputStream in = null;
FileOutputStream fileOut= null;
PrintWriter out = response.getWriter();
int kb_size = 0;
boolean pass2 = true;
String message = "";
String responseRedirect = "/forum/uploaden.jsp?message="+" Uploaden geslaagd";
try
//get content type of client request
String contentType = request.getContentType();
// Start stap 1...content type is multipart/form-data
if(contentType != null && contentType.indexOf("multipart/form-data") != -1)
//open input stream
in = new DataInputStream(request.getInputStream());
//get length of content data
int formDataLength = request.getContentLength(); // totale lengte van de inputstream
//initieer een byte array om content data op te slaan
byte dataBytes[] = new byte[formDataLength];
//read file into byte array
int bytesRead = 0;
int totalBytesRead = 0;
int sizeCheck = 0;
while (totalBytesRead < formDataLength)
//kijken of de file niet te groot is
sizeCheck = totalBytesRead + in.available();
if (sizeCheck > MAX_SIZE)
pass2 = false;
message = "Sorry. U kunt slechts bestanden uploaden tot een grootte van 500KB";
responseRedirect = "/forum/uploaden.jsp?message="+message;
bytesRead = in.read(dataBytes, totalBytesRead,formDataLength);
totalBytesRead += bytesRead;
if (pass2==true)
kb_size = (int)(formDataLength/1024);
//create string from byte array for easy manipulation
String file = new String(dataBytes);
/*get boundary value (boundary is a unique string that separates content data)
contentType........... multipart/form-data; boundary=---------------------------7d235ade00f0
int lastIndex = contentType.lastIndexOf("=");
String boundary = contentType.substring(lastIndex+1, contentType.length());
// Stap 2.....bepaal de naam van de upload file
// filename.............. "C:\Documents and Settings\Administrator\Desktop\boodschap.txt"
String saveFile = file.substring(file.indexOf("filename=\"")+10);
saveFile = saveFile.substring(0,saveFile.indexOf("\n"));
saveFile = saveFile.substring(saveFile.lastIndexOf("\\")+1,saveFile.indexOf("\"")); //naam van de file...boodschap.txt
String saveFileName = saveFile;
// Stap 3..Bepaal MIME Type en de positie van eind mime type in string
voorbeeld: -----------------------------7d23d21220524 Content-Disposition: form-data; name="file0"; filename="C:\WINNT\Profiles\mvo\Desktop\z clob.txt" Content-Type: text/plain
String restant = "";
int pos; //position in upload file
// bijv .. filename="C:\Documents and Settings\Administrator\Desktop\boodschap.txt"
pos = file.indexOf("filename=\"");
//find position of content-disposition line
pos = file.indexOf("\n",pos)+1; // eing file naam + spatie
// onderstaand geeft bijv Content-Type: text/plain
restant = file.substring(pos,file.indexOf("\n",pos)-1);
restant = restant.substring(restant.indexOf(":")+2,restant.length()); // MIME type
String mimeType = restant;
//find position of eind content-type line
pos = file.indexOf("\n",pos)+1;
//find position of blank line
pos = file.indexOf("\n",pos)+1;
int start = pos;
// Stap 4 eind boundary
/*find the location of the next boundary marker (marking the end of the upload file data)*/
int boundaryLocation = file.indexOf(boundary,pos)-4; //waarom -4 ..? ziet er uit als linebreak spatie--boundary=-----------------------------7d21c9ae00f0
// Stap 5 en 6..de eigelijke te uploaden file in nieuwe byte file inserten
byte dataBytes2[] = new byte[boundaryLocation-start]; //declareren
for (int i=0;i<(boundaryLocation-start);i++) // inserten BELANGRIJK !!
dataBytes2=dataBytes[start+i];
String next_id = "0";
Statement statement = null;
Connection conn = null;
boolean pass = true;
ResultSet rs = null;
Statement stmt_empty = null;
oracle.sql.BLOB blb = null;
try
int vendor = DriverUtilities.ORACLE;
String username = ConnectionParams.userName;
String password = ConnectionParams.passWord;
String connStr = DriverUtilities.makeURL(vendor);
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection(connStr,username, password);
if (conn==null){pass=false;}
} catch (Exception e){out.println("<P>" + "There was an error establishing a connection:");}
if (pass==true)
try
String seq_nextval ="select forum_blob_seq.nextval from dual";
statement = conn.createStatement();
ResultSet rset = statement.executeQuery(seq_nextval);
while (rset.next())
next_id = rset.getString(1);
if (next_id.equals("0"))
message = "Uploaden mislukt !...Er ging wat fout tijdens de interactie met de database";
responseRedirect = "/forum/uploaden.jsp?message="+message;
pass = false;
} catch (Exception e1) { out.println("Error blob1 : "+e1.toString()); };
} // end pass
if (pass==true)
try
Statement stmt2 = conn.createStatement();
String insert_empty_blob = "INSERT INTO test_blob(id "+
",filename "+
",mimetype "+
",kb) "+
"VALUES("+Integer.parseInt(next_id) +
",'"+saveFileName+"'"+
",'"+mimeType+"'"+
","+kb_size+")";
stmt2.executeQuery(insert_empty_blob);
conn.commit();
if (stmt2!= null) {stmt2.close();}else{stmt2.close();pass = false;}
} catch (Exception e2){
message = "Uploaden mislukt !...Er ging wat fout tijdens de interactie met de database";
responseRedirect = "/forum/uploaden.jsp?message="+message;
out.println("<P>" + "2. There was an error inserting mime type:");}
} //end pass
if (pass==true)
try
conn.setAutoCommit(false);
} catch (Exception e3) { pass = false; out.println("Error blob 3: "+e3.toString()); };
} //end pass
if (pass==true)
try
String Query_blob ="Select test_blob FROM test_blob where id="+next_id+" FOR UPDATE";
stmt_empty = conn.createStatement();
rs=stmt_empty.executeQuery(Query_blob);
} catch (Exception e4) {
pass = false;
out.println("Error blob 4: "+e4.toString());
message = "Uploaden mislukt !...Er ging wat fout tijdens de interactie met de database";
responseRedirect = "/forum/uploaden.jsp?message="+message;};
} //end pass
if (pass==true)
try
if (rs.next())
blb = ((OracleResultSet)rs).getBLOB(1);
OutputStream stmBlobStream = blb.getBinaryOutputStream();
try {
int iSize = blb.getBufferSize();
byte[] byBuffer = new byte[iSize];
int iLength = -1;
ByteArrayInputStream stmByteIn = new ByteArrayInputStream(dataBytes2);
try {
// while ( (iLength = in.read(byBuffer, 0, iSize)) != -1 )
while ( (iLength = stmByteIn.read(byBuffer, 0, iSize)) != -1 )
stmBlobStream.write(byBuffer, 0, iLength);
stmBlobStream.flush();
} // end while
} catch (Exception e5) {
pass=false;
out.println("Error blob 5: "+e5.toString());
message = "Uploaden mislukt !...Er ging wat fout tijdens de interactie met de database";
responseRedirect = "/forum/uploaden.jsp?message="+message; }
finally { conn.commit(); }
} catch (Exception e6) { out.println("Error blob 6: "+e6.toString()); };
} //end if rs.next()
else { throw new SQLException("Could not locate message record in database."); }
} catch (Exception e7) { out.println("Error blob : "+e7.toString()); };
} // end pass
} // end pass2
else //request is not multipart/form-data
message = "Uploaden mislukt !...Gegevens niet verstuurd via multipart/form-data.";
responseRedirect = "/forum/error.jsp?message="+message;
out.println("Request not multipart/form-data.");
catch(Exception e)
try
//print error message to standard out
out.println("Error in doPost: " + e);
//send error message to client
out.println("An unexpected error has occurred.");
out.println("Error description: " + e);
}catch (Exception f) {}
response.sendRedirect(responseRedirect);
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
doPost(request,response);
Regards
Martin -
How to create the log file in remote system using log4j.
Hi,
How to create the log file in remote system using log4j. please give me a sample code or related links.The below example i used for create the log file in remote system but it return the below exception.Is there any authandication parameter for accessing the remote path? Please help.
public class Logging
Logger log=null;
FileAppender fileapp=null;
public Logging(String classname)
try
log = Logger.getLogger(classname);
String path=" [\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt|file://\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt]";
fileapp = new FileAppender(new PatternLayout("%r [%t] %-5p %c %x - %m%n"),path, true);
log.addAppender(fileapp);
log.info("Logger initilized");
}catch(Exception ex)
ex.printStackTrace();
java.io.FileNotFoundException: \\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt (The network path was not found)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
at org.apache.log4j.FileAppender.<init>(FileAppender.java:109)
at annwyn.logger.BioCapLogger.<init>(Logging.java:23)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Please help.
Thanks in advance.
Saravanan.KSorry path is missing for the above request.
path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
please help.
Saravanan.K -
How to add SDK jar file in NWDS
Dear Friends,
Currently i have an issue. I have to bring the BO favorite to my Portal Screen. My Portal is developed in PDK.
I have few links where the source code is writhen. Those link's are
/people/michael.nicholls/blog/2010/02/22/using-the-pdk-to-access-businessobjects-infoview
http://wiki.sdn.sap.com/wiki/display/Snippets/ReadInfoViewfavoritesfromthe+portal
I don't know more about BO. I have few points which i mentioned below.
1) How to add SDK jar file in NWDS.
2)DO i need any specific package for that.
Kindly help me with your Valuble suggestion and document.
Thanx in Advance.
Prashant KrishenHi,
for adding all the jar files in NWDS fallow below steps
windows >> preferences >>Java>>Java buildpath>>Libraries>>add external jars
Hope this helps
Edited by: polaka123 on Nov 13, 2010 12:44 PM -
How to rotate jserv log files?
Hi all,
We are using 9iAS 1.0.2.1, which has Apache 1.3.12/Jserv 1.1
How to rotate jserv log files? We have 'rotatelog' to rotate httpds_access_log etc.., but no such program for jserv log.
(Tomcat has extended rotatelog to jserv, but what about Jserv?)
Thanks in advance,
Rajidhar Etta798852 wrote:
Hi i am trying to see the archive files location...here is how i did
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination +LAWCRS_ARC1/lawcrsdb/
Oldest online log sequence 37264
Next log sequence to archive 37267
Current log sequence 37267
My question is how can I go to the location "+LAWCRS_ARC1/lawcrsdb/".....I am not able to find this location..can any one help...Perhaps you're looking for this...
http://download.oracle.com/docs/cd/E11882_01/server.112/e16102/asm_util001.htm#OSTMG01610
I'm not clear on what you're looking for so it's just a best guess. -
How To Generate Debug Log Files for ebs jsp?
hi How To Generate Debug Log Files for ebs r12 jsp?
and where i get the log .please help me thanks!Please check following MOS Document
Oracle Application Server Diagnostic Tools and Log Files in Applications Release 12 (Doc ID 454178.1) -
How to delete archive log files from ASM through Grid Control
Hi
Anybody suggest me how to delete archive log files from ASM through Grid Control.
ThanksIt is important to specify both, the oracle version and os version when posting, so confusions can be avoided.
In this particular case, since you are referring to asm and grid control you could be talking about either 10gR1, 10gR2 or 11gR1; but I strongly suggest you to avoid us to be guessing. In either case, you sould go to the maintenance tab of the target database and program a scheduled 'delete noprompt obsolete;' procedure. This will purge the information stored at the Flash recovery area, which I assume you have declared inside the ASM.
~ Madrid
http://hrivera99.blogspot.com/
Maybe you are looking for
-
Is there a way to remove your sim card if you don't have the tool that came with your phone?
Is there a way to remove your sim card if you don't have the tool that came with your phone? I wanted to see if I could upload my old information to the iCloud, by putting the new sim card into the old phone, since I didn't before I updated my new ph
-
Hyperlinks in illustrator work, export to pdf hyperlinks are gone...
I created some figures in illustrator, added hyperlinks to the figures using the 'attributes' menu, added url etc. When clicking the object, i can see the url is appearing in the attributes window in illustrator. But, i want to export / save the illu
-
Premiere Pro CS4 - Problem with the monitor program.
Hi. I'm not able solving problems with the monitor using PremiereProCS4. When I drag a photo (also only one photo) in the timeline and play it in the monitor program, vision in the monitor program doesn't run:black monitor or a little part of the pho
-
This episode gives an answer to a question Rufus hears very frequently: "Can I have page turns and animations created in Adobe InDesign in a PDF?" - The answer is yes. Find out how. http://adobe.ly/wmHCbl
-
Slowness problem of startup form using JRE 1.5 (IE freeze)
Hi, I am using Oracle Forms & Reports Services 10g on Windows Server 2003 to run my application. Initially it was working fine but few days back it became tremendous slow while starting startup form (CONSOLE_MAIN Form). But afterwards remaining trans