<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-32107367</atom:id><lastBuildDate>Tue, 17 Jun 2025 06:19:30 +0000</lastBuildDate><category>datafile</category><category>move</category><category>10g</category><category>CSV</category><category>DBMS_JOB</category><category>Export</category><category>Export to CSV</category><category>Greek encoding</category><category>Java Server Faces</category><category>Note 115424</category><category>ORA-02262</category><category>Oracle Application Server</category><category>R3</category><category>SSO</category><category>Single Sign-On</category><category>alter</category><category>broken</category><category>bug</category><category>character</category><category>character set</category><category>database</category><category>encoding</category><category>firewall</category><category>hard disk drive</category><category>host</category><category>jDeveloper</category><category>jsf</category><category>mark</category><category>next_day</category><category>oracle</category><category>question</category><category>remove</category><category>rename</category><category>set</category><category>submit</category><category>sysdate</category><category>virtual</category><title>Seeking Oracle out of the matrix</title><description></description><link>http://aboutoracle.blogspot.com/</link><managingEditor>noreply@blogger.com (Admin)</managingEditor><generator>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-8855114792701362840</guid><pubDate>Mon, 10 Oct 2011 04:39:00 +0000</pubDate><atom:updated>2011-10-10T07:55:06.737+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">broken</category><category domain="http://www.blogger.com/atom/ns#">DBMS_JOB</category><category domain="http://www.blogger.com/atom/ns#">next_day</category><category domain="http://www.blogger.com/atom/ns#">remove</category><category domain="http://www.blogger.com/atom/ns#">submit</category><category domain="http://www.blogger.com/atom/ns#">sysdate</category><title>DBMS_JOB Cheat sheet</title><description>I recently wanted to schedule jobs on my Oracle 9i (9.2.0.8) database so i refreshed my memory on how to do it based on the Oracle&#39;s job engine.&lt;br /&gt;&lt;br /&gt;I will note down a quick reference post for you to check out:&lt;br /&gt;&lt;br /&gt;View all running jobs:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;select * from user_jobs&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Submit a job (this example analyzes a table every 24 hrs:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;VARIABLE jobno NUMBER &lt;br /&gt;BEGIN&lt;br /&gt;   DBMS_JOB.SUBMIT(:jobno, &lt;br /&gt;      &#39;DBMS_DDL.ANALYZE_OBJECT(&#39;&#39;TABLE&#39;&#39;,&lt;br /&gt;      &#39;&#39;HR&#39;&#39;, &#39;&#39;EMPLOYEES&#39;&#39;, &lt;br /&gt;      &#39;&#39;ESTIMATE&#39;&#39;, NULL, 50);&#39;, &lt;br /&gt;      SYSDATE, &#39;SYSDATE + 1&#39;);&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;jobno is returned by the system.&lt;br /&gt;Assuming 14144  for this example.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Remove a job from the job queue:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DBMS_JOB.REMOVE(14144);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Change a job:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DBMS_JOB.CHANGE(14144, NULL, NULL, &#39;SYSDATE + 3&#39;);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Alter the definition of a job:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DBMS_JOB.WHAT(14144, &lt;br /&gt;      &#39;DBMS_DDL.ANALYZE_OBJECT(&#39;&#39;TABLE&#39;&#39;,&lt;br /&gt;      &#39;&#39;HR&#39;&#39;, &#39;&#39;DEPARTMENTS&#39;&#39;, &lt;br /&gt;      &#39;&#39;ESTIMATE&#39;&#39;, NULL, 50);&#39;);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Alter the next execution day of a job:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DBMS_JOB.NEXT_DATE(14144, SYSDATE + 4);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Alter execution interval:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DBMS_JOB.INTERVAL(14144, &#39;NULL&#39;);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Brake a scheduled job:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DBMS_JOB.BROKEN(14144, TRUE);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Continue to run a previously broken job:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DBMS_JOB.BROKEN(14144, FALSE, NEXT_DAY(SYSDATE, &#39;MONDAY&#39;));&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Forcing a job to execute:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DBMS_JOB.RUN(14144);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Working with intervals:&lt;br /&gt;&#39;SYSDATE + 7&#39;           Exactly seven days from the last execution&lt;br /&gt;&lt;br /&gt;&#39;SYSDATE + 1/48&#39;        Every half hour&lt;br /&gt;&lt;br /&gt;&#39;NEXT_DAY(TRUNC(SYSDATE), &#39;&#39;MONDAY&#39;&#39;) + 15/24&#39;   Every Monday at 3PM&lt;br /&gt;&lt;br /&gt;&#39;NEXT_DAY(ADD_MONTHS(TRUNC(SYSDATE, &#39;&#39;Q&#39;&#39;), 3), &#39;&#39;THURSDAY&#39;&#39;)&#39;     First Thursday of each quarter&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/jobq.htm</description><link>http://aboutoracle.blogspot.com/2011/10/dbmsjob-cheat-sheet.html</link><author>noreply@blogger.com (Admin)</author><thr:total>11</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-4755764671215953526</guid><pubDate>Sun, 06 Jan 2008 10:45:00 +0000</pubDate><atom:updated>2008-01-14T07:55:10.388+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">character set</category><category domain="http://www.blogger.com/atom/ns#">CSV</category><category domain="http://www.blogger.com/atom/ns#">Export</category><category domain="http://www.blogger.com/atom/ns#">Export to CSV</category><category domain="http://www.blogger.com/atom/ns#">Greek encoding</category><category domain="http://www.blogger.com/atom/ns#">Java Server Faces</category><category domain="http://www.blogger.com/atom/ns#">jDeveloper</category><category domain="http://www.blogger.com/atom/ns#">jsf</category><title>Java Server Faces - Export any IteratorBinding to a CSV format file</title><description>Due to a large amount of requests regarding data extraction from JSF, i have compiled a small java class which you can embed in jDeveloper, that allows you to extract any IteratorBinding to a CSV format file.&lt;br /&gt;&lt;br /&gt;The file is named according to the current date/time where the request was made.&lt;br /&gt;&lt;br /&gt;This class can be used for the Greek character set as well. &lt;br /&gt;&lt;br /&gt;Below follows the complete source code. Enjoy :)&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.io.PrintWriter;&lt;br /&gt;&lt;br /&gt;import java.text.SimpleDateFormat;&lt;br /&gt;&lt;br /&gt;import java.util.Calendar;&lt;br /&gt;import java.util.Date;&lt;br /&gt;import java.util.Locale;&lt;br /&gt;&lt;br /&gt;import javax.faces.context.ExternalContext;&lt;br /&gt;import javax.faces.context.FacesContext;&lt;br /&gt;&lt;br /&gt;import javax.servlet.http.HttpServletResponse;&lt;br /&gt;&lt;br /&gt;import oracle.adf.model.binding.DCIteratorBinding;&lt;br /&gt;&lt;br /&gt;import oracle.jbo.AttributeDef;&lt;br /&gt;import oracle.jbo.AttributeHints;&lt;br /&gt;import oracle.jbo.LocaleContext;&lt;br /&gt;import oracle.jbo.Row;&lt;br /&gt;import oracle.jbo.RowSetIterator;&lt;br /&gt;&lt;br /&gt;import oracle.jbo.common.DefLocaleContext;&lt;br /&gt;&lt;br /&gt;public class ExportDataClass {&lt;br /&gt;    public ExportDataClass() {&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    public void exportToCSV(DCIteratorBinding tableContent) throws IOException {&lt;br /&gt;&lt;br /&gt;    ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();&lt;br /&gt;    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();    &lt;br /&gt;    Date now = Calendar.getInstance().getTime();&lt;br /&gt;    SimpleDateFormat formatter = new SimpleDateFormat(&quot;yyyyMMdd-hhmmss&quot;);&lt;br /&gt;    String filename = formatter.format(now.getTime()) + &quot;file.csv&quot;;&lt;br /&gt;    String label = &quot;&quot;;&lt;br /&gt;    String strBuffer = &quot;&quot;;&lt;br /&gt;&lt;br /&gt;   //define the encoding of the returned data. Critical for proper Greek Language exported data.&lt;br /&gt;    String contentType = &quot;text/csv; charset=windows-1253&quot;;&lt;br /&gt;    &lt;br /&gt;    try {&lt;br /&gt;         response.setContentType(contentType);&lt;br /&gt;         response.setHeader(&quot;Content-disposition&quot;, &quot;attachment; filename=&quot; + filename); &lt;br /&gt;         &lt;br /&gt;         &lt;br /&gt;         RowSetIterator rsi = tableContent.getRowSetIterator();        &lt;br /&gt;         String[] attNames = rsi.getRowAtRangeIndex(0).getAttributeNames(); &lt;br /&gt;         AttributeDef[] attr = tableContent.getAttributeDefs(attNames);       &lt;br /&gt;        for(int i=0; i &lt; attr.length; i++){  &lt;br /&gt;            AttributeHints hints = attr[i].getUIHelper();&lt;br /&gt;            label = hints.getLabel(this.getLocaleContext());&lt;br /&gt;            strBuffer = strBuffer + label + &quot;;&quot;;   &lt;br /&gt;            &lt;br /&gt;        }       &lt;br /&gt;         strBuffer = strBuffer + &quot;\n&quot;;&lt;br /&gt;            &lt;br /&gt;        rsi.first();&lt;br /&gt;        &lt;br /&gt;        for (int i = 0; i &lt; rsi.getFetchedRowCount() ; i++)            &lt;br /&gt;        {&lt;br /&gt;        Row currentRow = rsi.getRowAtRangeIndex(i); &lt;br /&gt;        Object[] attValues = currentRow.getAttributeValues(); &lt;br /&gt;            for (int j = 0; j &lt; attValues.length; j++)&lt;br /&gt;                {                      &lt;br /&gt;&lt;br /&gt;                      strBuffer = strBuffer + attValues[j] + &quot;;&quot;;                                     &lt;br /&gt;                } &lt;br /&gt;            strBuffer = strBuffer + &quot;\n&quot;;&lt;br /&gt;        }                              &lt;br /&gt;            &lt;br /&gt;    Row[] ArrayRows = rsi.getNextRangeSet() ;&lt;br /&gt;    &lt;br /&gt;    while (ArrayRows.length != 0){    &lt;br /&gt;    &lt;br /&gt;        for (int i = 0; i &lt; ArrayRows.length; i++)&lt;br /&gt;            {&lt;br /&gt;             Row currentRow = ArrayRows[i];              &lt;br /&gt;             Object[] attVals = currentRow.getAttributeValues( );          &lt;br /&gt;             for (int j = 0; j &lt; attVals.length; j++){   &lt;br /&gt;                        strBuffer = strBuffer + attVals[j] + &quot;;&quot;;                     &lt;br /&gt;                } &lt;br /&gt;               strBuffer = strBuffer + &quot;\n&quot;;&lt;br /&gt;             }&lt;br /&gt;       &lt;br /&gt;            ArrayRows = rsi.getNextRangeSet() ;&lt;br /&gt;      }&lt;br /&gt;      &lt;br /&gt;    PrintWriter out = response.getWriter();   &lt;br /&gt;    response.setContentLength(strBuffer.length() + 1);&lt;br /&gt;    out.write(strBuffer);&lt;br /&gt;    out.flush();    &lt;br /&gt;    out.close();   &lt;br /&gt;      if (response.isCommitted() == false){&lt;br /&gt;          response.reset();&lt;br /&gt;       }&lt;br /&gt;     }&lt;br /&gt;     catch(IOException ex){ &lt;br /&gt;           ex.printStackTrace(); &lt;br /&gt;           throw ex;&lt;br /&gt;      }&lt;br /&gt;      finally {&lt;br /&gt;          FacesContext.getCurrentInstance().responseComplete();          &lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    private LocaleContext getLocaleContext(){&lt;br /&gt;        Locale locale = FacesContext.getCurrentInstance().getViewRoot().getLocale();&lt;br /&gt;        LocaleContext myLocale = new DefLocaleContext(locale);    &lt;br /&gt;     return myLocale;&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;</description><link>http://aboutoracle.blogspot.com/2008/01/java-server-faces-export-any.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-7205623472377038627</guid><pubDate>Tue, 11 Dec 2007 08:03:00 +0000</pubDate><atom:updated>2007-12-11T10:03:23.742+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">firewall</category><category domain="http://www.blogger.com/atom/ns#">host</category><category domain="http://www.blogger.com/atom/ns#">Single Sign-On</category><category domain="http://www.blogger.com/atom/ns#">SSO</category><category domain="http://www.blogger.com/atom/ns#">virtual</category><title>A typo can knock you out</title><description>While trying to implement Note:270160.1 Single Sign-On Accessibility Through a Firewall&lt;br /&gt;Oracle Application Server 10g (9.0.4), i realized that a simple typo can make your mood for the day.&lt;br /&gt;&lt;br /&gt;To be more specific, in the part where the author of the Note writes :&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;Listen 8001&lt;br /&gt;NameVirtualHost *:8001 # You may prefer IP Address instead of *&lt;br /&gt;&amp;lt;VirtualHost *:8001&amp;gt; # You may prefer IP Address instead of *&lt;br /&gt;ServerName portal.&amp;lt;yourname&amp;gt;.com&lt;br /&gt;# Network entry-point/webcache:&lt;br /&gt;Port 80&lt;br /&gt;# IMPORTANT - Must inherit any Portal rewrites&lt;br /&gt;RewriteEngine on&lt;br /&gt;RewriteOptions inherit&lt;br /&gt;# Other rewrites optional, but may improve functionality&lt;br /&gt;# To send direct requests on this virtual host to Portal&lt;br /&gt;RewriteCond %{HTTP_HOST} !^portal\.&amp;lt;yourname&amp;gt;\.com [NC]&lt;br /&gt;RewriteRule ^/$ http://portal.&amp;lt;yourname&amp;gt;/pls/portal/$1 [L,R]&lt;br /&gt;LogLevel error&lt;br /&gt;ErrorLog &quot;|/path/to/oracle/904mid/Apache/Apache/bin/rotatelogs /path/to/oracle/904mid/Apache/Apache/logs/portal_error_log 43200&quot;&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Did you see it? Me either&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;RewriteRule ^/$ http://portal.&amp;lt;yourname&amp;gt;/pls/portal/$1 [L,R]&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The [R] is after the [L] meaning that the redirection will not occur!&lt;br /&gt;&lt;br /&gt;The line should be&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;RewriteRule ^/$ http://portal.&amp;lt;yourname&amp;gt;/pls/portal/$1 [R,L]&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;I simply lost a server with a k.o.</description><link>http://aboutoracle.blogspot.com/2007/12/typo-can-knock-you-out.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-3602323924639384267</guid><pubDate>Thu, 10 May 2007 20:39:00 +0000</pubDate><atom:updated>2007-05-10T23:54:13.228+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ORA-02262</category><title>Resolution to the ORA-02262 error</title><description>If you have ever faced this error message&lt;br /&gt;&lt;br /&gt;ORA-02262: ORA-%05d occurs while type-checking column default value expression&lt;br /&gt;&lt;br /&gt;while trying to alter the column definition of a table to NVARCHAR2 with Default Value just remember :&lt;br /&gt;&lt;br /&gt;A &#39;string&#39; literal is of type VARCHAR2&lt;br /&gt;A N&#39;string&#39; literal is of type NVARCHAR2 !!&lt;br /&gt;&lt;br /&gt;So now, you can correct your syntax and alter your table properly like this :&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;ALTER TABLE mytbl MODIFY mycolumn NVARCHAR2(3) DEFAULT N&#39;A&#39;;&lt;br /&gt;&lt;/div&gt;</description><link>http://aboutoracle.blogspot.com/2007/05/resolution-to-ora-02262-error.html</link><author>noreply@blogger.com (Admin)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-5856801242010466621</guid><pubDate>Thu, 10 May 2007 19:19:00 +0000</pubDate><atom:updated>2007-05-10T23:03:58.179+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">10g</category><category domain="http://www.blogger.com/atom/ns#">bug</category><category domain="http://www.blogger.com/atom/ns#">character</category><category domain="http://www.blogger.com/atom/ns#">encoding</category><category domain="http://www.blogger.com/atom/ns#">mark</category><category domain="http://www.blogger.com/atom/ns#">Oracle Application Server</category><category domain="http://www.blogger.com/atom/ns#">question</category><category domain="http://www.blogger.com/atom/ns#">R3</category><category domain="http://www.blogger.com/atom/ns#">set</category><title>Oracle Application Server 10.1.3 Bug when submitting Greek characters the result returns question marks</title><description>I remember back in the good old days of Oracle Application Server 10g R2 when i faced the same problem while developing in struts with jDeveloper 10g R2. It was indeed very difficult to finaly realize that a simple addition to orion-web.xml of the default-charset=&quot;windows-1253&quot; would solve the problem so easily.&lt;br /&gt;&lt;br /&gt;Now with the latest version of Oracle Application Server 10g R3 (10.1.3) i came across the same issue and i thought that i could easily solve the problem by simply doing the same thing.&lt;br /&gt;&lt;br /&gt;I was wrong :-)&lt;br /&gt;&lt;br /&gt;People, unfortunately i must warn you that this workaround doesn&#39;t apply to the R3 family.  What you have to do now is to include&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;request.setCharacterEncoding(&quot;Windows-1253&quot;);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;in all your JSP pages.&lt;br /&gt;&lt;br /&gt;For those of you still developing in struts, i will show you a smarter way to automatically include this in all your pages without modifying any of these pages at all.&lt;br /&gt;&lt;br /&gt;Have you ever &quot;played&quot; with the RequestProcessor ?  The RequestProcessor has the ability to execute code before it goes to the Action Servlet. What you need to do here is extend the RequestProcessor so that it includes&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;request.setCharacterEncoding(&quot;Windows-1253&quot;);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;in every call.&lt;br /&gt;&lt;br /&gt;In jDeveloper 10g R3, create a new java class and write the following code :&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;package testgreek.view;  //don&#39;t forget to change the name of the package to the &lt;br /&gt;                         //one that you are using&lt;br /&gt;&lt;br /&gt;import  javax.servlet.http.HttpServletRequest;&lt;br /&gt;import  javax.servlet.http.HttpServletResponse;&lt;br /&gt;import  org.apache.struts.action.RequestProcessor;&lt;br /&gt;&lt;br /&gt;public class CustomRequestProcessor extends RequestProcessor {&lt;br /&gt;      protected boolean processPreprocess  (HttpServletRequest request, HttpServletResponse response) {&lt;br /&gt;                &lt;br /&gt;        &lt;br /&gt;      try{&lt;br /&gt;            request.setCharacterEncoding(&quot;Windows-1253&quot;);&lt;br /&gt;         }&lt;br /&gt;       catch(Exception ex){&lt;br /&gt;          //.....&lt;br /&gt;         }&lt;br /&gt;        &lt;br /&gt;       return true;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  protected void processContent(HttpServletRequest  request,&lt;br /&gt;              HttpServletResponse response) {&lt;br /&gt;      try{&lt;br /&gt;           request.setCharacterEncoding(&quot;Windows-1253&quot;);&lt;br /&gt;         }&lt;br /&gt;       catch(Exception ex){&lt;br /&gt;          //........&lt;br /&gt;         }&lt;br /&gt;       super.processContent(request, response);&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Then, go to your  struts-config.xml and add the following property to your controller :&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;&amp;lt;controller&amp;gt;&lt;br /&gt;   &amp;lt;set-property property=&quot;processorClass&quot; value=&quot;testgreek.view.CustomRequestProcessor&quot;&amp;gt;&lt;br /&gt;&amp;lt;/controller&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;That&#39;s it.  Now every time you submit a page to the servlet, it includes the character encoding that you have selected. &lt;br /&gt;That means no more ????</description><link>http://aboutoracle.blogspot.com/2007/05/oracle-application-server-1013-bug-when.html</link><author>noreply@blogger.com (Admin)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-4039682061942296015</guid><pubDate>Sat, 24 Feb 2007 07:32:00 +0000</pubDate><atom:updated>2008-03-12T17:30:29.743+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">datafile</category><category domain="http://www.blogger.com/atom/ns#">hard disk drive</category><category domain="http://www.blogger.com/atom/ns#">move</category><category domain="http://www.blogger.com/atom/ns#">Note 115424</category><title>TIP: How to move a datafile from one hard disk to another (quick way)</title><description>If you want a newer, fresher and quicker method to move a datafile from one disk to another here is the way to do it : Make sure the tablespaces are read-only and then&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;alter tablespace users offline;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;copy c:\mydb\users01.dbf e:\mydb\users01.dbf&lt;/li&gt;&lt;br /&gt;&lt;li&gt;alter database rename file &#39;c:\mydb\users01.dbf&#39; to &#39;e:\mydb\users01.dbf&#39;;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;alter tablespace users online; &lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;then make your tablespaces read write again,&lt;br /&gt;and you&#39;re done :-)&lt;br /&gt;&lt;br /&gt;More information : Note:115424.1 on Metalink</description><link>http://aboutoracle.blogspot.com/2007/02/tip-how-to-move-datafile-from-one-hard_24.html</link><author>noreply@blogger.com (Admin)</author><thr:total>33</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-5387810059343636256</guid><pubDate>Thu, 22 Feb 2007 11:28:00 +0000</pubDate><atom:updated>2007-02-24T09:46:44.554+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">alter</category><category domain="http://www.blogger.com/atom/ns#">database</category><category domain="http://www.blogger.com/atom/ns#">datafile</category><category domain="http://www.blogger.com/atom/ns#">move</category><category domain="http://www.blogger.com/atom/ns#">oracle</category><category domain="http://www.blogger.com/atom/ns#">rename</category><title>TIP: How to move a datafile from one hard disk to another (safe way)</title><description>I had a test server with 60Gb Hard disk drive. Database was updated thoroughly and space run out quickly. What i did was to install a second hard disk drive and create there another folder to store my moved datafile.&lt;br /&gt;So in order to move c:\mydb\users.dbf to e:\mydb\users.dbf here are the steps to do it safely :&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;open sql worksheet and connect to the database as sysdba with the sys account,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;make sure that all users are out of the database and that no pending transactions are taking place, then run &lt;div class=&quot;code&quot;&gt;shutdown immediate;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;execute &lt;div class=&quot;code&quot;&gt;start mount;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;copy-paste the datafile you wish to move, to the new location,&lt;/li&gt;&lt;br /&gt;&lt;li&gt;execute &lt;div class=&quot;code&quot;&gt;ALTER DATABASE RENAME FILE &#39;C:\MYDB\USERS.DBF&#39; TO &#39;E:\MYDB\USERS.DBF&#39;;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;then execute &lt;div class=&quot;code&quot;&gt;ALTER DATABASE OPEN;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;...and you&#39;re done.&lt;br /&gt;&lt;br /&gt;Easy, isn&#39;t it? :)</description><link>http://aboutoracle.blogspot.com/2007/02/tip-how-to-move-datafile-from-one-hard.html</link><author>noreply@blogger.com (Admin)</author><thr:total>8</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-117075581019475567</guid><pubDate>Tue, 06 Feb 2007 09:50:00 +0000</pubDate><atom:updated>2007-02-22T13:55:23.961+02:00</atom:updated><title>Get the SSO user id in Oracle Forms and JSP - JSF</title><description>If you use SSO authentication for your applications and you need to grab the SSO User from your applications here is how you do it:&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;&lt;strong&gt;Oracle Forms&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;&lt;div class=&#39;code&#39;&gt;&lt;br&gt;&lt;/br&gt;GET_APPLICATION_PROPERTY(SSO_USERID);&lt;br&gt;&lt;/br&gt;&lt;/div&gt;&lt;br&gt;&lt;/br&gt;&lt;strong&gt;jDeveloper project that uses JSP and java beans&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;&lt;div class=&#39;code&#39;&gt;&lt;br&gt;&lt;/br&gt;request.getHeader(&quot;OSSO_SUBSCRIBER&quot;)&lt;br&gt;&lt;/br&gt;or&lt;br&gt;&lt;/br&gt;request.getRemoteUser();&lt;br&gt;&lt;/br&gt;&lt;/div&gt;&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;&lt;strong&gt;jDeveloper that uses Java Server Faces (JSF)&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;In your AppModuleImpl.java you can get the SSO user by calling&lt;br&gt;&lt;/br&gt;&lt;div class=&#39;code&#39;&gt;&lt;br&gt;&lt;/br&gt;this.getUserPrincipalName();&lt;/div&gt;&lt;br&gt;&lt;/br&gt;</description><link>http://aboutoracle.blogspot.com/2007/02/get-sso-user-id-in-oracle-forms-and.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-117026402273016863</guid><pubDate>Wed, 31 Jan 2007 17:15:00 +0000</pubDate><atom:updated>2007-02-23T00:59:56.361+02:00</atom:updated><title>Can and Could be accessed</title><description>Just another funny little spot of Oracle&#39;s help file.&lt;br /&gt;&lt;br /&gt;This one was located on Oracle Application Server 10.1.3 help file while digging for some information on how to connect Oracle SSO 10g R2 with a 10.1.3 middle-tier installation.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://photos1.blogger.com/x/blogger/7125/3183/1600/656419/oraerr.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;http://photos1.blogger.com/x/blogger/7125/3183/400/270487/oraerr.jpg&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;</description><link>http://aboutoracle.blogspot.com/2007/01/can-and-could-be-accessed.html</link><author>noreply@blogger.com (Admin)</author><thr:total>9</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-116692982747779908</guid><pubDate>Sun, 24 Dec 2006 03:10:00 +0000</pubDate><atom:updated>2007-02-24T08:05:41.685+02:00</atom:updated><title>Honey, you missed a spot</title><description>Just a humourous mood here... something that catched my attention ;-)&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;&lt;a onblur=&#39;try {parent.deselectBloggerImageGracefully();} catch(e) {}&#39; href=&#39;http://photos1.blogger.com/x/blogger/7125/3183/1600/749160/err.jpg&#39;&gt;&lt;img style=&#39;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&#39; src=&#39;http://photos1.blogger.com/x/blogger/7125/3183/320/78229/err.jpg&#39; alt=&#39;&#39; border=&#39;0&#39;&gt;&lt;/img&gt;&lt;/a&gt;The above, was retrieved from the help file of jDeveloper 10g R2. This error was corrected on jDeveloper 10.1.3 as you can see below:&lt;a onblur=&#39;try {parent.deselectBloggerImageGracefully();} catch(e) {}&#39; href=&#39;http://photos1.blogger.com/x/blogger/7125/3183/1600/677485/err1.jpg&#39;&gt;&lt;img style=&#39;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&#39; src=&#39;http://photos1.blogger.com/x/blogger/7125/3183/320/927268/err1.jpg&#39; alt=&#39;&#39; border=&#39;0&#39;&gt;&lt;/img&gt;&lt;/a&gt;&lt;br&gt;&lt;/br&gt;A funny little break; now get back to work.</description><link>http://aboutoracle.blogspot.com/2006/12/honey-you-missed-spot.html</link><author>noreply@blogger.com (Admin)</author><thr:total>11</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-116569186141910414</guid><pubDate>Sat, 09 Dec 2006 19:04:00 +0000</pubDate><atom:updated>2006-12-10T18:37:34.240+02:00</atom:updated><title>TIP: Use exp.exe to export specific rows from a table, with command-line SQL</title><description>If you ever need to export specific records from your table to a .dmp file using exp.exe here is an example :&lt;br /&gt;&lt;br /&gt;Suppose we have a table Orders and we want to export that table to a dmp file - not the whole table but today&#39;s orders.&lt;br /&gt;&lt;br /&gt;from the prompt you write :&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;exp.exe &#39;sys/mypass@mydb as sysdba&#39; file=c:\orders.dmp log=c:\orders.log tables=(ORDERS) QUERY=\&quot; WHERE ORDER_DATE = &#39;11/08/2006&#39;\&quot;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Remember&lt;/strong&gt;&lt;/u&gt; :&lt;br /&gt;query=\&quot; \&quot; or else you get an error !</description><link>http://aboutoracle.blogspot.com/2006/12/tip-use-expexe-to-export-specific-rows.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-116567404059044369</guid><pubDate>Sat, 09 Dec 2006 14:14:00 +0000</pubDate><atom:updated>2006-12-09T16:20:40.670+02:00</atom:updated><title>INFO : Aggregator for Oracle jDeveloper</title><description>There is an  an aggregator for all Oracle JDeveloper related blogs. Visit &lt;a href=&quot;http://thepeninsulasedge.com/adfblog/&quot;&gt;http://thepeninsulasedge.com/adfblog/&lt;/a&gt; . This blog has every recent post found on blogs about Oracle JDeveloper issues.&lt;br /&gt;You can find a related link in the [Oracle Blogs of Interest] in this blog as well :-)</description><link>http://aboutoracle.blogspot.com/2006/12/info-aggregator-for-oracle-jdeveloper.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-116543800879427480</guid><pubDate>Wed, 06 Dec 2006 20:42:00 +0000</pubDate><atom:updated>2006-12-06T23:11:40.356+02:00</atom:updated><title>TIP: Upload a file using struts (includes jdeveloper 10g complete example)</title><description>Struts simplify the file uploading process really easy.&lt;br /&gt;You dont need third party stuff; just a few lines of code and a couple of tricks&lt;br /&gt;will do the job :)&lt;br /&gt;&lt;br /&gt;I have included a sample project for you to download and experiment with.&lt;br /&gt;&lt;br /&gt;Key parts are :&lt;br /&gt;&lt;br /&gt;1. Your form that will include the &amp;lt;html:file&amp;gt; tag, must be configured to handle multipart/form-data and to POST the data to the server, eg :&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;&amp;lt;html:form enctype=&quot;multipart/form-data&quot; method=&quot;POST&quot; action=&quot;upload.do&quot;&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;2. The form bean that will handle the uploading, must have a property for the file been uploaded set like this :&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;&amp;lt;form-property name=&quot;filename&quot; type=&quot;org.apache.struts.upload.FormFile&quot;&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After that, coding is really simple. I have included a complete project for uploads at the end of this post.&lt;br /&gt;Here follows the java source part for the upload file process:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;package fileuploader.view;&lt;br /&gt;import java.io.File;&lt;br /&gt;import java.io.FileOutputStream;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;&lt;br /&gt;import java.text.DecimalFormat;&lt;br /&gt;&lt;br /&gt;import javax.servlet.ServletException;&lt;br /&gt;import javax.servlet.http.HttpServletRequest;&lt;br /&gt;import javax.servlet.http.HttpServletResponse;&lt;br /&gt;&lt;br /&gt;import org.apache.struts.action.Action;&lt;br /&gt;import org.apache.struts.action.ActionForm;&lt;br /&gt;import org.apache.struts.action.ActionForward;&lt;br /&gt;import org.apache.struts.action.ActionMapping;&lt;br /&gt;import org.apache.struts.action.DynaActionForm;&lt;br /&gt;import org.apache.struts.upload.FormFile;&lt;br /&gt;&lt;br /&gt;public class UploadAction extends Action&lt;br /&gt;{&lt;br /&gt;/**&lt;br /&gt;* This is the main action called from the Struts framework.&lt;br /&gt;* @param mapping The ActionMapping used to select this instance.&lt;br /&gt;* @param form The optional ActionForm bean for this request.&lt;br /&gt;* @param request The HTTP Request we are processing.&lt;br /&gt;* @param response The HTTP Response we are processing.&lt;br /&gt;* @throws javax.servlet.ServletException&lt;br /&gt;* @throws java.io.IOException&lt;br /&gt;* @return&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, Exception&lt;br /&gt;{&lt;br /&gt;String toPage = &quot;&quot;;&lt;br /&gt;DynaActionForm df = null;&lt;br /&gt;FormFile webFile = null;&lt;br /&gt;FileOutputStream ServerFileStream = null;&lt;br /&gt;File SaveToFile = null;&lt;br /&gt;int FILE_SIZE_LIMIT = 5000000;&lt;br /&gt;double filesize = 0 ;&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;//convert to a DynaActionForm&lt;br /&gt;df = (DynaActionForm) form;&lt;br /&gt;//class cast to a struts type FormFile filename&lt;br /&gt;webFile = (FormFile) df.get(&quot;filename&quot;);&lt;br /&gt;&lt;br /&gt;//get the size of the file that user wants to upload&lt;br /&gt;filesize = webFile.getFileSize();&lt;br /&gt;&lt;br /&gt;//i have included a file size limitation in this version&lt;br /&gt;if (filesize &gt; FILE_SIZE_LIMIT )&lt;br /&gt;{&lt;br /&gt;//format the size of the file to return two decimals&lt;br /&gt;String pattern = &quot;####.##&quot;;&lt;br /&gt;DecimalFormat dblFormat = new DecimalFormat(pattern);&lt;br /&gt;//file size returned to megabytes&lt;br /&gt;String strFileSize = dblFormat.format((filesize / 1024) / 1024);&lt;br /&gt;&lt;br /&gt;//redirect to the page that informs the user that there is a&lt;br /&gt;//file size limitation&lt;br /&gt;toPage = &quot;filesizepage&quot;;&lt;br /&gt;request.setAttribute(&quot;fsize&quot;, strFileSize);&lt;br /&gt;return mapping.findForward(toPage);&lt;br /&gt;}&lt;br /&gt;//get the real path of the project&lt;br /&gt;String strFilePath = getServlet().getServletContext().getRealPath(&quot;/&quot;);&lt;br /&gt;//we want to upload to UploadedFiles directory&lt;br /&gt;strFilePath = strFilePath + &quot;UploadedFiles&quot;;&lt;br /&gt;&lt;br /&gt;//initialize a file to write to&lt;br /&gt;SaveToFile = new File(strFilePath, webFile.getFileName());&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//in this version, if the file to upload already exists on the server&lt;br /&gt;//i delete the server-side one and reupload it&lt;br /&gt;if(SaveToFile.exists())&lt;br /&gt;{&lt;br /&gt;//delete the file&lt;br /&gt;SaveToFile.delete();&lt;br /&gt;}&lt;br /&gt;//save the file to server&lt;br /&gt;ServerFileStream = new FileOutputStream(SaveToFile);&lt;br /&gt;ServerFileStream.write(webFile.getFileData());&lt;br /&gt;ServerFileStream.flush();&lt;br /&gt;ServerFileStream.close();&lt;br /&gt;ServerFileStream = null;&lt;br /&gt;&lt;br /&gt;toPage=&quot;success&quot;;&lt;br /&gt;}&lt;br /&gt;catch(Exception e)&lt;br /&gt;{&lt;br /&gt;//just print the trace&lt;br /&gt;e.printStackTrace();&lt;br /&gt;//and redirect to an error page&lt;br /&gt;toPage = &quot;error&quot;;&lt;br /&gt;}&lt;br /&gt;finally&lt;br /&gt;{&lt;br /&gt;//release resources&lt;br /&gt;df = null;&lt;br /&gt;webFile = null;&lt;br /&gt;ServerFileStream = null;&lt;br /&gt;SaveToFile = null;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;return mapping.findForward(toPage);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href=&quot;http://photos1.blogger.com/x/blogger/7125/3183/320/263647/renameit.jpg&quot;&gt;&lt;br /&gt;Download the full jdeveloper sample project &lt;br /&gt;(right-click and select &quot;save target as&quot;)&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;just remember to rename it to .rar&lt;/b&gt;</description><link>http://aboutoracle.blogspot.com/2006/12/tip-upload-file-using-struts-includes.html</link><author>noreply@blogger.com (Admin)</author><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-116525092112843109</guid><pubDate>Mon, 04 Dec 2006 16:47:00 +0000</pubDate><atom:updated>2006-12-10T18:39:53.956+02:00</atom:updated><title>TIP: Grant select on all user tables to another user</title><description>&lt;span style=&quot;font-family:lucida grande;&quot;&gt;This is one of the number one issues for a DBA. Well, the good news is that it has become really easy to do this.&lt;br /&gt;&lt;br /&gt;My methodology is to create public synonyms for the user tables and grant access to the user tables underlying those synonyms.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;User : Tom&lt;br /&gt;Table : Products, PriceList&lt;br /&gt;Purpose : Grant access to user Bob&lt;br /&gt;&lt;br /&gt;Here is how to do it:&lt;br /&gt;&lt;br /&gt;Create public synonyms for tables Products, PriceList&lt;br /&gt;Normally User Tom sees them as Products and PriceList. Even if you grant access to those tables to user Bob, he still gonna access them as Tom.Products and Tom.PriceList&lt;br /&gt;To allow user Bob to access those tables as Products and PriceList, you must create public synonyms. Public synonyms can be created under SYS so log in to your SQL Worksheet as SYS and type the following:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;SET SERVEROUTPUT ON&lt;br /&gt;begin&lt;br /&gt;dbms_output.enable(1000000);&lt;br /&gt;for x in ( select table_name from DBA_ALL_TABLES where owner=&#39;TOM&#39; )&lt;br /&gt;loop&lt;br /&gt;dbms_output.put_line(&#39;CREATE OR REPLACE PUBLIC SYNONYM &#39; x.table_name &#39; FOR Tom.&#39; x.table_name);&lt;br /&gt;EXECUTE IMMEDIATE (&#39;CREATE OR REPLACE PUBLIC SYNONYM &#39; x.table_name &#39; FOR Tom.&#39; x.table_name);&lt;br /&gt;end loop;&lt;br /&gt;end;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You will find this piece of source code really useful when you will apply it in a production system with hundreds or thousands of tables.&lt;br /&gt;What it does is apply for every table belonging to user Tom a public synonym which is the name of the table (but ommiting the Tom. part).&lt;br /&gt;&lt;br /&gt;Now what you must do is grant access to user Bob on those tables&lt;br /&gt;&lt;br /&gt;In the following piece of code i will grant select on a role. It&#39;s better to work with roles because they can be easily implemented to a user and then you can customize user rights independently&lt;br /&gt;&lt;br /&gt;Here is the source :&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;SET SERVEROUTPUT ON&lt;br /&gt;begin&lt;br /&gt;dbms_output.enable(1000000);&lt;br /&gt;for x in ( select table_name from DBA_ALL_TABLES where owner=&#39;Tom&#39; )&lt;br /&gt;loop&lt;br /&gt;dbms_output.put_line(&#39;grant select on &#39; x.table_name &#39; to myrole&#39;);&lt;br /&gt;execute immediate &#39;grant select on &#39; x.table_name &#39; to myrole&#39;;&lt;br /&gt;end loop;&lt;br /&gt;end;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After that, you will assign the role to your user(s) and that&#39;s it.&lt;br /&gt;&lt;br /&gt;You have granted access to those tables to your second user with a few lines of code. &lt;/span&gt;</description><link>http://aboutoracle.blogspot.com/2006/12/tip-grant-select-on-all-user-tables-to.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-116435663864285059</guid><pubDate>Fri, 24 Nov 2006 08:02:00 +0000</pubDate><atom:updated>2006-11-24T10:26:33.933+02:00</atom:updated><title>Info: Oracle DBA Toolbar (wishlist)</title><description>&lt;span style=&quot;font-family:lucida grande;font-size:85%;&quot;&gt;Oracle released a tool for the DBA. It&#39;s a cool freebie where you can download &lt;/span&gt;&lt;a href=&quot;http://www.oracle.com/technology/toolbar/OracleDBAToolbarSetup.exe&quot;&gt;&lt;span style=&quot;font-family:lucida grande;font-size:85%;&quot;&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:lucida grande;font-size:85%;&quot;&gt;.&lt;br /&gt;It features :&lt;br /&gt;- Pop-up Blocker&lt;br /&gt;- Integrated RSS Manager&lt;br /&gt;- OTN Search&lt;br /&gt;- One-click access to SQL*Plus install, Downloads, MetaLink, and more&lt;br /&gt;- Online Support FAQ&lt;br /&gt;&lt;br /&gt;It&#39;s available for Microsoft Windows Platforms and Internet Explorer.&lt;br /&gt;&lt;br /&gt;The Oracle DBA Toolbar Wishlist:&lt;br /&gt;I wish it had a few more buttons like :&lt;br /&gt;- Oracle Enterprise Manager&lt;br /&gt;- Performance Manager&lt;br /&gt;- Top Sessions&lt;/span&gt;</description><link>http://aboutoracle.blogspot.com/2006/11/info-oracle-dba-toolbar-wishlist.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-116404895632722583</guid><pubDate>Mon, 20 Nov 2006 18:55:00 +0000</pubDate><atom:updated>2006-11-23T00:04:16.713+02:00</atom:updated><title>Tip : recovering from problems after performing remote deployment from jDeveloper to Oracle Application Server</title><description>&lt;div align=&quot;justify&quot;&gt;Those of you who develop on Oracle jDeveloper 10.x.x and deploy on Oracle Application Server 10g might face the following situation :&lt;br /&gt;&lt;br /&gt;During remote deployment, a power failure occurs or something else goes wrong and the deployment interrupts leaving you with an incomplete process and a bunch of files - other deployed and other not deployed.&lt;br /&gt;&lt;br /&gt;If, God forbids, you come across to such a situation, you cannot even perform a backup/restore of your Oracle Application Server (using it&#39;s internal backup/restore facility) leaving you with an error message that says that you cannot proceed with backup while another process is performing file operations.&lt;br /&gt;&lt;br /&gt;You cannot deploy your project again either. Oracle AS thinks that another deployment is actually taking place and cannot perform another task.&lt;br /&gt;&lt;br /&gt;To overcome this situation perform the following steps:&lt;br /&gt;&lt;br /&gt;1. go to your oracle directory where the bi (business intelligence) is located (eg : c:\oracle\bi)&lt;br /&gt;2. find the folder dcm\bin (eg: c:\oracle\bi\dcm\bin )&lt;br /&gt;3. execute the following command : dcmctl resetFileTransaction&lt;br /&gt;&lt;br /&gt;The file operations will reset and you will be able to perform deployments or any other operation under your Oracle Application Server.&lt;br /&gt;&lt;/div&gt;</description><link>http://aboutoracle.blogspot.com/2006/11/tip-recovering-from-problems-after.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-116336678076173327</guid><pubDate>Sun, 12 Nov 2006 21:17:00 +0000</pubDate><atom:updated>2006-11-23T21:06:32.773+02:00</atom:updated><title>TIP : request.getRemoteAddr() and request.getRemoteHost() return the Server names, not the client&#39;s host name and ip (on Oracle Application Server)</title><description>&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family:lucida grande;&quot;&gt;Well, this is a known issue since Oracle Application Server 9i. I have found a solution in Oracle Application Server 10g release 2. I know it applies to the 10g product family but i didn&#39;t test it on 9i. If anyone knows if this also applies on 9i, don&#39;t hesitate to leave a comment here :-)&lt;br /&gt;&lt;br /&gt;Goto your Oracle Business Intelligence platform (not infrastructure) and click on Http Server-&gt; Administration-&gt; Advanced Server Properties-&gt; httpd.conf &lt;/div&gt;&lt;p align=&quot;justify&quot;&gt;&lt;img style=&quot;FLOAT: left; MARGIN: 0px 0px 10px 10px; CURSOR: hand&quot; height=&quot;160&quot; alt=&quot;Oracle Application Server 10g bug request.getRemoteAddr request.getRemoteHost&quot; src=&quot;http://photos1.blogger.com/blogger/7125/3183/200/application_server_hardware.jpg&quot; width=&quot;210&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family:lucida grande;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:lucida grande;&quot;&gt;   and uncomment the line :&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:lucida grande;&quot;&gt;&lt;strong&gt;   UseWebCacheIp On&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family:lucida grande;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family:lucida grande;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family:lucida grande;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family:lucida grande;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family:lucida grande;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When webcache is forwarding requests to OHS, the clientIP becomes the IP of the originating webcache server and the real client IP is stored in the ClientIP header.&lt;br /&gt;Instead of modifying the header with more java source code, just uncomment the UseWebCacheIp and you will have the Client&#39;s IP recorded in the log files and also your source code : request.getRemoteAddr() request.getRemoteHost() will work properly. &lt;/span&gt;&lt;/div&gt;</description><link>http://aboutoracle.blogspot.com/2006/11/tip-requestgetremoteaddr-and.html</link><author>noreply@blogger.com (Admin)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-115503045303779718</guid><pubDate>Tue, 08 Aug 2006 09:47:00 +0000</pubDate><atom:updated>2006-08-08T14:02:44.870+03:00</atom:updated><title>TIP : Collection of tips and tricks from Oracle Magazine (2003 - 2006)</title><description>There is a huge amount of tips and tricks from many Oracle DBAs out there which can help DBA&#39;s everyday burden more easier to beary.&lt;br /&gt;These were selected and posted by Oracle magazine for all of us to use.&lt;br /&gt;You can view and save this valuable information at these links.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.oracle.com/technology/oramag/code/tips2003&quot; target=&quot;_blank&quot;&gt;Year 2003&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.oracle.com/technology/oramag/code/tips2004&quot; target=&quot;_blank&quot;&gt;Year 2004&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.oracle.com/technology/oramag/code/tips2005&quot; target=&quot;_blank&quot;&gt;Year 2005&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.oracle.com/technology/oramag/code/tips2006&quot; target=&quot;_blank&quot;&gt;Year 2006&lt;/a&gt;</description><link>http://aboutoracle.blogspot.com/2006/08/tip-collection-of-tips-and-tricks-from_08.html</link><author>noreply@blogger.com (Admin)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-115493354145815280</guid><pubDate>Mon, 07 Aug 2006 06:39:00 +0000</pubDate><atom:updated>2006-08-07T10:05:01.636+03:00</atom:updated><title>INFO : Oracle TimesTen 6.04</title><description>Having an Indiana Jones mood for the weekend, i downloaded Oracle TimesTen 6.04 to take a look at what it has to offer to a developer and a DBA. Is this another database system? What it means by going in-memory?&lt;br /&gt;Well the results might be surprising:&lt;br /&gt;Oracle TimesTen can be used as a primary DBMS for storing data by applications that want to do it real time.&lt;br /&gt;It can be used for storing data from multiple data sources playing a role of the central repository, combining multiple data sources together. &lt;br /&gt;It can accelerate stuff by providing a memory-persistant data model.&lt;br /&gt;Collaboration between in-memory tasks with disk-based RDBMS.&lt;br /&gt;&lt;a href=&quot;http://www.oracle.com/technology/software/products/timesten/index.html&quot; target=&quot;_blank&quot;&gt;Downloaded it here.&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.oracle.com/technology/documentation/timesten_doc.html&quot; target=&quot;_blank&quot;&gt;Download the documentation here.&lt;/a&gt;</description><link>http://aboutoracle.blogspot.com/2006/08/info-oracle-timesten-604.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-115467900760979773</guid><pubDate>Fri, 04 Aug 2006 08:09:00 +0000</pubDate><atom:updated>2006-08-04T11:10:08.250+03:00</atom:updated><title>INFO : Oracle Application Server Security</title><description>Security, Security, Security! This word is in everyone&#39;s mouth either a developer or a dba or a user; this word dominates the internet world. &lt;br /&gt;&lt;br /&gt;Servers hosting internet applications need to be very well maintained and tested for intrusions and hacking attempts. &lt;br /&gt;&lt;br /&gt;Oracle Application server 10g is a good solution for a corporate web server.  It combines a powerful user interface through Oracle Enterprise Manager that allows admins to control the entire farm remotely with minimum effort.&lt;br /&gt;If you already have such an installation in your servers, i recommend spending a little more time on security.&lt;br /&gt;&lt;br /&gt;If you seek guidance on that matter, take a look at &lt;a href=&quot;http://www.spidynamics.com/assets/documents/Securing%20Oracle%20Application%20Server.pdf&quot; target=&quot;_blank&quot;&gt;SPI Dynamic&#39;s : Securing Oracle Application Server&lt;/a&gt;&lt;br&gt; and &lt;a href=&quot;http://www.ngssoftware.com/papers/hpoas.pdf&quot; target=&quot;_blank&quot;&gt;NGSSoftware:Hackproofing Oracle Application Server&lt;/a&gt; where you can also find a very usefull list with all &lt;b&gt;default Oracle UserIDs and Passwords!!&lt;/b&gt;</description><link>http://aboutoracle.blogspot.com/2006/08/info-oracle-application-server.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-115460315051716482</guid><pubDate>Wed, 02 Aug 2006 20:45:00 +0000</pubDate><atom:updated>2006-08-04T10:19:19.613+03:00</atom:updated><title>INFO : Oracle Database XE</title><description>Those of you that build retail applications and seek for a database storage solution that is free to distribute, might want to take a look at Oracle Database 10g Release 2 (10.2.0.1)Express Edition for Microsoft Windows or Linux.&lt;br /&gt;&lt;br /&gt;Now, hold your horses there because Oracle database XE comes with some limitations :&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;it can utilize only 1GB of RAM&lt;/li&gt;&lt;br /&gt;&lt;li&gt;it can utilize only one CPU&lt;/li&gt;&lt;br /&gt;&lt;li&gt;it can utilize only 4GB disk space&lt;/li&gt;&lt;br /&gt;&lt;li&gt;no more than one installations may exist in a computer&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;It is ment to be for the DBA who wishes to create some testcase for the production database, and for the developer who builts small scale applications that do not demand a tera of disk capacity to store data.&lt;br /&gt;&lt;br /&gt;Its free to use and distribute.&lt;br /&gt;&lt;br /&gt;Version available for&lt;br /&gt;&lt;a href=&quot;http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html&quot; target=&quot;_blank&quot;&gt;Linux fans&lt;/a&gt;&lt;br /&gt;and&lt;br&gt;&lt;a href=&quot;http://www.oracle.com/technology/software/products/database/xe/htdocs/102xewinsoft.html&quot; target=&quot;_blank&quot;&gt;Windows fans.&lt;/a&gt;</description><link>http://aboutoracle.blogspot.com/2006/08/info-oracle-database-xe.html</link><author>noreply@blogger.com (Admin)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-115459567176562648</guid><pubDate>Wed, 02 Aug 2006 20:45:00 +0000</pubDate><atom:updated>2006-08-03T12:01:11.766+03:00</atom:updated><title>TIP: ORA-01843 Not a valid month error</title><description>Those of you developing applications that utilize Oracle Databases, might have face the ORA-01843 Not a valid month error. This is a major problem because most of us develop applications that use dates as part of their WHERE clause.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solution : &lt;/strong&gt;Before executing any SQL statement though code, you must execute the following SQL statement :&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;em&gt;&lt;span style=&quot;color:#336666;&quot;&gt;ALTER SESSION SET NLS_DATE_FORMAT = &#39;DD/MM/YYYY&#39;&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;Note that date format may vary depending on your location. This directive for example is used in Greece.</description><link>http://aboutoracle.blogspot.com/2006/08/tip-ora-01843-not-valid-month-error.html</link><author>noreply@blogger.com (Admin)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-115459458037722524</guid><pubDate>Wed, 02 Aug 2006 20:45:00 +0000</pubDate><atom:updated>2006-08-03T11:43:00.383+03:00</atom:updated><title>TIP: Beware of the HOME</title><description>I recently faced an issue regarding a Visual Basic application trying to connect to an Oracle Database 9i through an ODBC DSN.  While everything seemed to work fine, applications could not connect to the Oracle Database and the error referred to some dlls that were missing from the installation.&lt;br /&gt;&lt;br /&gt;After a little reseach i did, i found out that the default home (which was of Oracle Client 9i) has changed because of a recent installation of Oracle Discoverer Desktop 9.0.4&lt;br /&gt;&lt;br /&gt;The default home changed and due to the incompatibility of the libraries the application couldn&#39;t connect to the database.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solution :&lt;/strong&gt; Go to Start-&gt;Programs-&gt; Oracle Installation products-&gt; Home Selector and switch back to your Oracle Client home.  This will solve the problem and Oracle Discoverer will continue to function.</description><link>http://aboutoracle.blogspot.com/2006/08/tip-beware-of-home.html</link><author>noreply@blogger.com (Admin)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-115459332998973115</guid><pubDate>Wed, 02 Aug 2006 20:45:00 +0000</pubDate><atom:updated>2006-08-03T11:28:06.906+03:00</atom:updated><title>Oracle Critical Patch Update July 2006</title><description>Oracle has sent an email regarding a new update for some of its products like Oracle Database 9i release 1, Oracle Application Server 9i and 10g, Oracle Database 10g etc.&lt;br /&gt;&lt;br /&gt;Those of you who didn&#39;t receive this email should take action a.s.a.p. as this patch includes security updates and fixes as well.&lt;br /&gt;&lt;br /&gt;Next date of Patch update would propably be October 17, 2006&lt;br /&gt;&lt;br /&gt;More information &lt;a href=&quot;http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpujul2006.html&quot; target=&quot;_blank&quot;&gt;here.&lt;/a&gt;</description><link>http://aboutoracle.blogspot.com/2006/08/oracle-critical-patch-update-july-2006.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-32107367.post-115458855411319070</guid><pubDate>Wed, 02 Aug 2006 18:45:00 +0000</pubDate><atom:updated>2007-02-22T13:28:09.883+02:00</atom:updated><title>~~ Let there be blog</title><description>Hello all! I welcome each an everyone of you in this small effort of sharing thoughts and experience about Oracle tools.&lt;br /&gt;&lt;br /&gt;In the company i work for, i am a DBA in an Oracle 9i database.&lt;br /&gt;I also do web development using Oracle jDeveloper 10.1.2 and i use Oracle Application Server 10g R2.&lt;br /&gt;&lt;br /&gt;Feel free to post your thoughts, any tips or solutions to problems that may have arise during work. Share your experience for the benefit of all of us.</description><link>http://aboutoracle.blogspot.com/2006/08/let-there-be-blog.html</link><author>noreply@blogger.com (Admin)</author><thr:total>1</thr:total></item></channel></rss>