Sql "ALTER DATABASE DATAFILE x OFFLINE" not working??(solved)

Hi all,
I'm playing around with RMAN on a test instance, and am trying to just restore and recover a datafile. I can't see what I'm doing wrong.
I've renamed the users01.dbf file like it is lost...
I get RMAN going...I do a startup mount;
When I try:
RMAN> sql "alter database datafile '/data1/oradata/testdb5/users01.dbf' offline";
sql statement: alter database datafile '/data1/oradata/testdb5/users01.dbf' offline
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 04/06/2009 16:13:28
RMAN-10015: error compiling PL/SQL program
Now....I did this with the number of the datafile, and it let me do the offine that way
RMAN> sql "alter database datafile 4 offline";
sql statement: alter database datafile 4 offline
But, I want to try it with the file name, and I can't understand why it is giving me an error.
Any suggestions?
TIA,
cayenne
Edited by: cayenne on Apr 6, 2009 2:01 PM

bigdelboy wrote:
When I try:
RMAN> sql "alter database datafile '/data1/oradata/testdb5/users01.dbf' offline";
Try following, you need to put in the single quotes twice.
RMAN> sql "alter database datafile ''/data1/oradata/testdb5/users01.dbf'' offline";Rgds - bigdelboyWow...ok, that was NOT in the book. This did work with double quotes on the outside " but, the datafile quoting required me to use 2 SINGLE quotes around that.
RMAN> sql "alter database datafile ''/data1/oradata/testdb5/users01.dbf'' offline";
sql statement: alter database datafile ''/data1/oradata/testdb5/users01.dbf'' offline
Any explanation for this? Granted the oracle press example was for a windows machine...
cayenne

Similar Messages

  • Sql developer database diff - generate script not working

    Using SQL devleloper 2.1. Database diff generate script gives errors making it completely non-usable
    ORA-31600: invalid input value 0 for parameter SEGMENT_ATTRIBUTES in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 8150
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 9270
    ORA-06512: at "SYS.DBMS_METADATA", line 4757
    ORA-06512: at line 1
    and
    Illegal Lock State: executeOracleQuery requires connection lock to be held. oracle.dbtools.raptor.diff.oracle.table.DiffTableRefConstraints.setup(DiffTableRefConstraints.java:215) called oracle.dbtools.db.DBUtil.executeQuery(DBUtil.java:681) without it
    I do get the differences visually (yes, I am bugged that constraints are not smart enough to compare on content of the constraint....problem when the contstraint names are sys-nnnnnn generated). Just cannot create the script.
    Any ideas to solve this issue? Thanks in advance, Kelly

    Can reproduce same issue in 11gR1.. DIFF works fine in 10gR2.
    I noticed that 10gR2 allows something like:
    DBMS_METADATA.SET_TRANSFORM_PARAM(th,'SEGMENT_ATTRIBUTES',0);
    and 11GR2 returns error similar to error SQLNAVIGATOR returns while running diff:
    DBMS_METADATA.SET_TRANSFORM_PARAM(th,'SEGMENT_ATTRIBUTES',0);
    end;
    Error report:
    ORA-31600: invalid input value 0 for parameter SEGMENT_ATTRIBUTES in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 8424
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 9484
    ORA-06512: at "SYS.DBMS_METADATA", line 3950
    Its safe to assume that this is SQLDEVELOPER bug. Hope it will be addressed sometime.
    Edited by: user5420304 on Jun 15, 2010 10:29 AM

  • Alter database datafile online:

    I wanted to do an online backup of a datafile.
    This is what happened (in archive mode):
    alter database datafile <filename> offline
    copied file with O/S command
    alter database datafile <filename> online
    ERROR at line 1:
    ORA-01113: file 5 needs media recovery
    so then I had to do this:
    recover datafile <filename>
    Then I was able to proceed.
    Why this error? Is it normal?
    DA
    And now, when I try to backup the control file, this is what happens:
    alter database backup controlfile to 'C:\control_file_backups'
    ERROR at line 1:
    ORA-01580: error creating control backup file C:\control_file_backups
    ORA-27038: skgfrcre: file exists
    OSD-04010: <create> option specified, file already exists
    Message was edited by:
    Dan A
    Just changed it to
    alter database backup controlfile to trace;
    no problem now.
    Message was edited by:
    Dan A

    I wanted to do an online backup of a datafile.
    This is what happened (in archive mode):
    alter database datafile <filename> offline
    copied file with O/S command
    alter database datafile <filename> online
    ERROR at line 1:
    ORA-01113: file 5 needs media recovery
    so then I had to do this:
    recover datafile <filename>
    Then I was able to proceed.
    Why this error? Is it normal?
    its normal whenver a datfile is taken offline either by you or automatically by oracle you need media recovery.
    >
    And now, when I try to backup the control file, this
    is what happens:
    alter database backup controlfile to
    'C:\control_file_backups'
    ERROR at line 1:
    ORA-01580: error creating control backup file
    C:\control_file_backups
    ORA-27038: skgfrcre: file exists
    OSD-04010: <create> option specified, file already
    exists
    check at c there probably control_file_backups exist?
    Khurram

  • SQL DEVELOPER cut and paste does not work, slow and cannot work fast.

    I have lots of difficulties using SQL Developer, the cut/paste does not work properly, when I type search in he code editor it just paste or type the test in the source code not in the serach box. Very hectic I'm pallning to swicth to TOAD until they a a good version.

    Hello Aukhez,
    I'm sorry to hear that you're having problems with SQLDeveloper - personally, I've never had any problems with cut/copy/paste and searching, and I've been using SQLDeveloper from v1.0 to the current version, on practically every version of the JDK from 1.5-1.6u16 on both Windows and Linux.
    Sorry to state the obvious, but perhaps if you could provide a bit more specific information - such as platform, version, etc - and details of what you tried to do, someone here might be able to help...? Regarding speed, there are quite a few things you can do to make this better, but again, without knowing your setup, it's hard to give you proper directions. Plus, you'll find numerous threads here and on google about what you can do to improve speed.
    Regards,
    John

  • ALTER DATABASE COMMAND ON OFFLINE SQL SERVER

    My server is not ciming up as it doesnot have tempdb files on the drive correctly. I nned to use ALTER database command to rectify the files. How can I do this on offline sql server???

    As Prashanth mentioned, use SQLCMD.  Problem with SSMS is that the object explorer grabs the first and the only connection that is available in single user mode. However, if you still want to use SSMS (many are comfortable with GUI), right click the
    SQL instance name and select "disconnect" and also close all other query windows and open File menu --> New --> "Query with Current Connection" menu item and this should now take the one and only available connection in single user
    mode
    Satish Kartan www.sqlfood.com

  • 4.0 EA3 -- SQL Server Drag and drop still not working

    My clients love SQLD D because they can access SQL Server and Access as well as Oracle of course.
    Drag and Drop of tables  from the table view have not worked in a while.
    appear to only see things in the Master Database. Even if you retrieve the list of databases and set you still en up only in the MASTER.
    You then have to fully qualify to retrieve a table.

    What exactly is your question here?

  • Oracle 9i Database Software Registraton Does Not Work

    The link http://www.oracle.com/technology/software/registration/index.html?9ibooks does not work and shows the messgae, "An error occurred while processing the request. Try refreshing your browser. If the problem persists contact the site administrator."
    Please fix the link or give instructions to get the registration key.
    Thank you,
    Robert Hunter
    [email protected]

    This program is defunct. We suggest that you download Oracle Database 10g Express Edition:
    http://www.oracle.com/technology/products/database/xe/index.html
    ...which is free, with no reg key required.
    Cheers, OTN

  • Database querry & attempted update not working as expected????

    Hi All,
    I am posting my question here because it is related to a web application that I am developing. However as this question is database related I may not be posting in the correct location, please forgive me if this is the case.
    I recently developed a web application that uses JSP on the front end, servlets for processing, and a mysql database on the back end.
    I am using the Tomcat 5 software container, and instead of developing complex database pooling classes I am using the "DataSource" aspect of Tomcat. A relevant section of web.xml follows;
    <!-- Database Connection Pool Resources Defined -->
    <resource-ref>
          <res-ref-name>jdbc/craftstampindexes</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
          <res-ref-name>jdbc/stampData</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
          <res-ref-name>jdbc/craftsurvey</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
          <res-ref-name>jdbc/currencyconversion</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
    </resource-ref>I then access the contents of the databases defined above through a servlet, and then use the results (saved into JavaBeans from the Servlet) to build a JSP.
    I have had this code fully functional before. However recently I changed development computers and now the code does not appear to be functional.
    When I last had the code functioning information was correctly read from database tables and the tables were also successfully updated (where required).
    However now that I have changed development computers, tables are not updating. Strangely enough I am able to querry database tables, however I am not able to update them. Even though my servlet code tries to update the database tables I am not seeing any error messages, all I am seeing is the old contents of the database table, which are not being updated. I thought that I would have seen an error through Tomcat itself if Servlet code failed to update a table, however this is not happening.
    The only thing that I can think of which could be contributing to this error is the fact that on my old computer I had mysql installed onto a data patition called "D:\" drive, now I have installed mysql onto the standard Windows root directory "C:\" drive. This doesn't make it any easier for me to understand why tables are being read but not updated!!!
    Any help with this will be greatly appreciated, as I am truly at a loss. If I can provide further information which could be of assistance please don't hesitate to let me know.
    Thanks for your time.
    Kind Regards
    David Dartnell

    Hi Everyone,
    Thanks again for all of your assistance. I have not yet invested the time required to learn Log4j, however I did "lace" my code with println() statements to see what was going on through the console. This is my code as it looks now..
    package craftsurvey;
    import java.io.*;
    import java.sql.*;
    import javax.naming.*;
    import javax.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    public class CraftSurveyServlet extends HttpServlet
         private DataSource dataSource;
         public void init(ServletConfig config) throws ServletException
              super.init(config);
              try{
                   Context init = new InitialContext();
                   Context ctx = (Context) init.lookup("java:comp/env");
                   dataSource = (DataSource) ctx.lookup("jdbc/craftsurvey");
                   System.out.println("Finished looking up DataSource.");
              }catch (NamingException ex){
                   throw new ServletException("Cannot retrieve java:comp/env/jdbc/craftsurvey",ex);
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              doPost(request, response);
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              String surveyVote = request.getParameter("surveybutton");
              System.out.println("Entered doPost() method.");
              String[] finalSurveyResults = new String[5];
              String[] initialSurveyResults = new String[5];
              String newTableValue = "";
              int noOfBears = 0;
              int noOfCountry = 0;
              int noOfFloral = 0;
              int noOfHearts = 0;
              int noOfWording = 0;
              int totalVotes = 0;
              /* Printwriter included for testing purposes */
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              Connection con = null;
              Statement stmt = null;
              ResultSet rs1 = null;
              ResultSet rs2 = null; 
              System.out.println("Database access code should be accessed now.");
              /* Database Query performed */
              try {
                   synchronized (dataSource) {
                       con = dataSource.getConnection();
                   String initialFetch = "SELECT bears, country, floral, hearts, wording FROM survey";           
                   stmt = con.createStatement();
                   System.out.println("Database Statement created.");
                   rs1 = stmt.executeQuery(initialFetch);
                   System.out.println("First Database querry performed.");
                   while(rs1.next())
                        initialSurveyResults[0] = rs1.getString("bears");
                        initialSurveyResults[1] = rs1.getString("country");
                        initialSurveyResults[2] = rs1.getString("floral");
                        initialSurveyResults[3] = rs1.getString("hearts");
                        initialSurveyResults[4] = rs1.getString("wording");
                   noOfBears = Integer.parseInt(initialSurveyResults[0]);
                   noOfCountry = Integer.parseInt(initialSurveyResults[1]);
                   noOfFloral = Integer.parseInt(initialSurveyResults[2]);
                   noOfHearts = Integer.parseInt(initialSurveyResults[3]);
                   noOfWording = Integer.parseInt(initialSurveyResults[4]);
                   if(surveyVote.equals("bears"))
                        noOfBears++;
                        Integer noOfBearsInt = new Integer(noOfBears);
                        newTableValue = noOfBearsInt.toString();
                   else
                   if(surveyVote.equals("country"))
                        noOfCountry++;
                        Integer noOfCountryInt = new Integer(noOfCountry);
                        newTableValue = noOfCountryInt.toString();
                   else
                   if(surveyVote.equals("floral"))
                        noOfFloral++;
                        Integer noOfFloralInt = new Integer(noOfFloral);
                        newTableValue = noOfFloralInt.toString();
                   else
                   if(surveyVote.equals("hearts"))
                        noOfHearts++;
                        Integer noOfHeartsInt = new Integer(noOfHearts);
                        newTableValue = noOfHeartsInt.toString();
                   else
                   if(surveyVote.equals("wording"))
                        noOfWording++;
                        Integer noOfWordingInt = new Integer(noOfWording);
                        newTableValue = noOfWordingInt.toString();
                   System.out.println("Survey table update about to be attempted.");
                   String updateSurvey = "UPDATE survey SET " + surveyVote + "= " + newTableValue;
                   stmt.executeUpdate(updateSurvey);
                   System.out.println("Survey table updated.");
                   String finalFetch = "SELECT bears, country, floral, hearts, wording FROM survey";
                   rs2 = stmt.executeQuery(finalFetch);
                   System.out.println("Final querry performed.");
                   while(rs2.next())
                        finalSurveyResults[0] = rs2.getString("bears");
                        finalSurveyResults[1] = rs2.getString("country");
                        finalSurveyResults[2] = rs2.getString("floral");
                        finalSurveyResults[3] = rs2.getString("hearts");
                        finalSurveyResults[4] = rs2.getString("wording");
                 catch(Exception ex)
                     out.println("<H2>Exception Occurred</H2>");
                     out.println(ex);
                   if (ex instanceof SQLException)
                        SQLException sqlex = (SQLException) ex;
                        out.println("SQL state: "+sqlex.getSQLState()+"<BR>");
                        out.println("Error code: "+sqlex.getErrorCode()+"<BR>");
                 finally{
                   try{
                        rs1.close();
                        rs2.close();
                   }catch(Exception ex){}                
                   try{
                        stmt.close();
                   }catch(Exception ex){}
                   try{
                        con.close();
                   }catch(Exception ex){}
              System.out.println("All table querries should have been performed now.");
              totalVotes = noOfBears + noOfCountry + noOfFloral + noOfHearts + noOfWording;
              SurveyBean surveyResultsBean = new SurveyBean();
              surveyResultsBean.setBearVotes(noOfBears);
              surveyResultsBean.setCountryVotes(noOfCountry);
              surveyResultsBean.setFloralVotes(noOfFloral);
              surveyResultsBean.setHeartVotes(noOfHearts);
              surveyResultsBean.setWordingVotes(noOfWording);
              surveyResultsBean.setTotalVotes(totalVotes);          
              request.setAttribute("surveyResults", surveyResultsBean);
              /* Control forwarded to JSP for display */
              String url = "/ferngully/surveyResults";
              ServletContext servCont = getServletContext();
              RequestDispatcher reqDispatch = servCont.getRequestDispatcher(url);
              System.out.println("Request dispatched to surveyResults.jsp.");
              reqDispatch.forward(request, response);          
    }The output I receive at the console as a result of running this code is the following:
    Finished looking up DataSource
    Entered doPost() method
    Database access code should be accessed now
    All table querries should have been performed now
    Request dispatched to surveyResult.jsp
    It looks as though the entire synchronized block of code is being completely skipped!
    If anybody could offer further assistance it will be greatly appreciated.
    Thanks for your time.
    Kind Regards
    David

  • Xrandr -o left not working[SOLVED]

    I try to rotate my monitor with this command and I get this error:
    [duncan@duncan-i7 ~]$ xrandr -o left
    X Error of failed request: BadMatch (invalid parameter attributes)
    Major opcode of failed request: 152 (RANDR)
    Minor opcode of failed request: 2 (RRSetScreenConfig)
    Serial number of failed request: 14
    Current serial number in output stream: 14
    [duncan@duncan-i7 ~]$
    running gnome, and the proprietarty nvidia drivers. Resolution is 1680x1050.
    Last edited by Raccoon1400 (2010-03-05 04:34:08)

    mh... had to add
    Option      "RandRRotation" "on"
    to the Monitor section for rotation to work. Adding it to the device section did not work. Can any1 confirm that, cause arch-wiki still says to add it to the device section.

  • Usb stick not working (solved)

    I copied some files to my usb stick and made sure it was working. Then I copied a open office file from my wifes computer running vista. After placing the usb stick back into my computer I got the following message
    A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
    I went to xsessions and got the following message.
    kded: ERROR: mount failed for /org/freedesktop/Hal/devices/volume_uuid_709E_ED39: org.freedesktop.DBus.Error.AccessDenied - A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
    kded: ERROR: mounting /org/freedesktop/Hal/devices/volume_uuid_709E_ED39 returned A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
    Seeing as the stick worked before I copied a file from vista, did the vista change something in the usb so it will not work in anything but windows? Is there anything I can do?
    changed /dev/sdc1 /mnt/usb vfat noauto,users 0 0
    to /dev/sdc1 /mnt/usb auto noauto,users 0 0
    and now everything works fine
    Last edited by smcsw2000 (2008-02-03 11:56:28)

    Try gparted to see what is loaded into your usb device partitions.....

  • IPod Buttons not working - Solved

    I have a 60G iPod that wasn't working and I resolved it. I don't know what generation iPod I have but I bought it in 2005. Anyways I was recently having issues where the buttons just weren't responding no matter what I did, it was just unusable. I couldn't play music adjust the volume or even reset it. I solved my problem by plugging it in to charge, toggled the lock button and then the buttons worked. I reset it (menu center for about 10 secs.) I was on this forum looking for an answer and couldn't find one. I just hope this helps someone else.
    Thanks,
    ThomerD
    HP nc8000 Windows XP Pro

    Thanks!My fast-forward was not working.I could skip to the next song but not skip through to a desired section.Thankfully your advice worked!Thanks for posting the information....

  • Gnome-online-accounts in gnome 3.2 not working[SOLVED]

    gnome-online-accounts in gnome 3.2 is not working.it gives a bad token request.are other arch users experiencing this problem.
    Last edited by PranavG (2011-10-02 15:52:33)

    There are issues with the proxy settings, and I had weird situations depending the network I was connecting...
    When I use my wireless network I can use the online accounts correctly.
    When I use a foreign wireless, mostly sure I can't.
    And when I set a local proxy (e.g. pivoroxy) for https protocol, I get this error while adding the account:
    http://www.mail-archive.com/desktop-pac … 25738.html
    That could be solved just by issuing:
    $ export https_proxy=
    $ gnome-control-center
    Hope this could be useful for you,
    Regards,
    EDIT: for some reason I wrote "I get this error will adding the account" instead of "I get this error *while* adding the account".
    Last edited by lapacho (2011-10-10 20:58:32)

  • Kernel requirements for HPLIP (not working) [SOLVED]

    My printer (connected to the network through my router with a static ip address) used to work fine with HPLIP and CUPS. When I last tested, I was (and am) using a custom-compiled zen kernel; the relevant modules that I compiled (separately, not into the kernel) are plip, ppdev, and parport. I am guessing that it is a combination of package upgrades and my custom kernel that is causing the problem below:
    My printer is detected by CUPS, and I can see it on localhost:631. When I send jobs to it, it begins "processing" them, then hangs on a (to-print) page and I see the message
    /usr/lib/cups/backend/hp failed
    I deleted the printer from CUPS and re-added using
    sudo hp-setup
    The process goes just fine, with hp-setup only throwing a warning about how dbus must be running for the PC to fax (with which I am not concerned).
    When I run hp-testpage, I get this:
    redscare:~> hp-testpage
    warning: python-dbus not installed.
    HP Linux Imaging and Printing System (ver. 3.9.12)
    Testpage Print Utility ver. 6.0
    Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
    This software comes with ABSOLUTELY NO WARRANTY.
    This is free software, and you are welcome to distribute it
    under certain conditions. See COPYING file for more details.
    Using printer: Officejet_6500_E709n
    warning: Qt/PyQt 4 initialization failed.
    error: hp-testpage -u/--gui requires Qt4 GUI support. Entering interactive mode.
    error: Unable to communicate with device (code=12): hp:/net/Officejet_6500_E709n <-- This line is important?
    error: Unable to print to printer. Please check device and try again.
    note: If an error occured, or the test page failed to print, refer to the HPLIP website
    note: at: http://hplip.sourceforge.net for troubleshooting and support.
    Thanks in advance for your help
    Last edited by RedScare (2010-01-08 01:27:28)

    I didn't have python-dbus installed, which I did. hp-check -t still throws some errors, but I don't see how they are related to the printer not working (more scanning-related issues). Here's the new output of hp-check -t:
    Initializing. Please wait... \
    | SYSTEM INFO |
    Basic system information:
    Linux redscare 2.6.32-ZEN #1 ZEN SMP PREEMPT Tue Jan 5 20:30:35 EST 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T9500 @ 2.60GHz GenuineIntel GNU/Linux
    Distribution:
    unknown 0.0
    Checking Python version...
    OK, version 2.6.4 installed
    Checking PyQt 4.x version...
    error: NOT FOUND OR FAILED TO LOAD!
    Checking for CUPS... Status: scheduler is running Version: 1.4.2
    error_log is set to level: warn
    Checking for dbus/python-dbus... dbus daemon is running.
    python-dbus version: 0.83.0
    | COMPILE AND RUNTIME DEPENDENCIES |
    note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
    note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
    Checking for dependency: CUPS - Common Unix Printing System...
    OK, found.
    Checking for dependency: CUPS devel- Common Unix Printing System development files...
    OK, found.
    Checking for dependency: CUPS image - CUPS image development files...
    OK, found.
    Checking for dependency: DBus - Message bus system...
    OK, found.
    Checking for dependency: gcc - GNU Project C and C++ Compiler...
    OK, found.
    Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
    OK, found.
    Checking for dependency: libcrypto - OpenSSL cryptographic library...
    OK, found.
    Checking for dependency: libjpeg - JPEG library...
    OK, found.
    Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
    OK, found.
    Checking for dependency: libpthread - POSIX threads library...
    OK, found.
    Checking for dependency: libtool - Library building support services...
    OK, found.
    Checking for dependency: libusb - USB library...
    OK, found.
    Checking for dependency: make - GNU make utility to maintain groups of programs...
    OK, found.
    Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    Checking for dependency: PolicyKit - Administrative policy framework...
    OK, found.
    Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
    error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
    Checking for dependency: Python DBus - Python bindings for DBus...
    OK, found.
    Checking for dependency: Python devel - Python development files...
    OK, found.
    Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    Checking for dependency: Python XML libraries...
    OK, found.
    Checking for dependency: Python 2.3 or greater - Required for fax functionality...
    OK, found.
    Checking for dependency: Python 2.2 or greater - Python programming language...
    OK, found.
    Checking for dependency: Reportlab - PDF library for Python...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    Checking for dependency: SANE - Scanning library...
    error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
    Checking for dependency: SANE - Scanning library development files...
    error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
    Checking for dependency: scanimage - Shell scanning program...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    Checking for dependency: xsane - Graphical scanner frontend for SANE...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    | HPLIP INSTALLATION |
    Currently installed HPLIP version...
    HPLIP 3.9.12 currently installed in '/usr/share/hplip'.
    Current contents of '/etc/hp/hplip.conf' file:
    # hplip.conf. Generated from hplip.conf.in by configure.
    [hplip]
    version=3.9.12
    [dirs]
    home=/usr/share/hplip
    run=/var/run
    ppd=/usr/share/ppd/HP
    ppdbase=/usr/share/ppd
    doc=/usr/share/doc/hplip-3.9.12
    icon=/usr/share/applications
    cupsbackend=/usr/lib/cups/backend
    cupsfilter=/usr/lib/cups/filter
    drv=/usr/share/cups/drv/hp
    # Following values are determined at configure time and cannot be changed.
    [configure]
    network-build=yes
    pp-build=no
    gui-build=yes
    scanner-build=yes
    fax-build=yes
    dbus-build=yes
    cups11-build=no
    doc-build=yes
    shadow-build=no
    hpijs-install=yes
    foomatic-drv-install=yes
    foomatic-ppd-install=yes
    foomatic-rip-hplip-install=yes
    hpcups-install=yes
    cups-drv-install=yes
    cups-ppd-install=no
    internal-tag=3.9.12.29
    restricted-build=no
    ui-toolkit=qt4
    qt3=no
    qt4=yes
    policy-kit=no
    hpijs-only-build=no
    lite-build=no
    udev-acl-rules=no
    hpcups-only-build=no
    hpijs-only-build=no
    Current contents of '/var/lib/hp/hplip.state' file:
    # hplip.state - HPLIP runtime persistent variables.
    [plugin]
    installed=0
    eula=0
    Current contents of '~/.hplip/hplip.conf' file:
    [last_used]
    printer_name = BlackPrinter
    device_uri = hp:/net/Officejet_6500_E709n?zc=PRINTER
    [installation]
    version = 3.9.8.36
    date_time = 10/15/09 23:29:55
    | DISCOVERED USB DEVICES |
    No devices found.
    | INSTALLED CUPS PRINTER QUEUES |
    BlackPrinter
    Type: Printer
    Device URI: hp:/net/Officejet_6500_E709n?zc=PRINTER
    PPD: /etc/cups/ppd/BlackPrinter.ppd
    PPD Description: HP Officejet 6500 e709n, hpcups 3.9.12 Printer status: printer BlackPrinter is idle. enabled since Wed 06 Jan 2010 04:26:39 PM EST
    error: Unable to communicate with device (code=12): hp:/net/Officejet_6500_E709n?zc=PRINTER
    error: unable to open channel
    error: Communication status: Failed
    BlackPrinterFax
    Type: Fax
    Device URI: hpfax:/net/Officejet_6500_E709n?zc=PRINTER
    PPD: /etc/cups/ppd/BlackPrinterFax.ppd
    PPD Description: HP Fax hpcups Printer status: printer BlackPrinterFax is idle. enabled since Wed 06 Jan 2010 04:26:57 PM EST
    error: Unable to communicate with device (code=12): hpfax:/net/Officejet_6500_E709n?zc=PRINTER
    error: unable to open channel
    error: Communication status: Failed
    | SANE CONFIGURATION |
    'hpaio' in '/etc/sane.d/dll.conf'...
    error: '/etc/sane.d/dll.conf' not found. Is SANE installed?
    | PYTHON EXTENSIONS |
    Checking 'cupsext' CUPS extension...
    OK, found.
    Checking 'pcardext' Photocard extension...
    OK, found.
    Checking 'hpmudext' I/O extension...
    OK, found.
    Checking 'scanext' SANE scanning extension...
    error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of scanext.
    |
    | USER GROUPS |
    root bin daemon sys adm disk wheel log
    | SUMMARY |
    error: 13 errors and/or warnings.
    Please refer to the installation instructions at:
    http://hplip.sourceforge.net/install/index.html
    Done.

  • Adobe PDF iFilter SQL Server 2008 R2 Full Text not working

    Unable to get the SQL Server 2008 R2 to index PDF files for full-text searching.
    Environment: Windows 7 SP1 Enterprise 64-bit, SQL Server 2008 R2 Express SP3 64-bit, Adobe Reader 11.x
    Installed PDF iFilter 64 (11.0.01) from
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5542
    Added its folder (C:\Program Files\Adobe\Adobe PDF iFilter 11 for 64-bit platforms\bin\;) to the PC system Path variable. Rebooted PC.
    Confirmed SQL Server sees the Adobe PDF iFilter ..... SELECT * from sys.fulltext_document_types where document_type = '.pdf' 
    Inserted PDF files to my table (see below for CREATE statement).
    The SQLFT log says  ... Warning: No appropriate filter was found during full-text index population for table or indexed view '[TestDB].[dbo].[pdfifiltertable]' (table or indexed view ID '2105058535', database ID '7'), full-text key value '1'.
    Some columns of the row were not indexed.
    Installed other filters for Office. Added files of type DOC, XPS. Confirmed the search query works for those file types. So as such SQL Full-Text is enabled and working.
    Below my T-SQL commands:
    Exec sp_fulltext_service 'load_os_resources', 1
    Exec sp_fulltext_service 'verify_signature', 0
    Exec sp_fulltext_database 'enable'
    CREATE TABLE pdfifiltertable(
    PdfID INT IDENTITY NOT NULL,
    PdfFileName VARCHAR(MAX),
    Ext VARCHAR(10) ,
    PdfText VARBINARY(MAX),
    CONSTRAINT PK_PdfID PRIMARY KEY (PdfID)
    GO
    CREATE FULLTEXT CATALOG pdfCatalog AS DEFAULT
    GO
    CREATE FULLTEXT INDEX ON pdfifiltertable([PdfText] Type column [Ext]
    ) KEY INDEX PK_PdfID with change_tracking auto
    GO
    SELECT pdfFileName FROM pdfifiltertable WHERE CONTAINS(pdftext, 'payment')

    What edition are you using? Like is it SQL-Express or SQL-Standard etc.
    Adding files using C# desktop application.
    Tested in another PC SQL-Server Express 2008 with Windows 7 64-bit. Same issue.
    C# source code ... add a button called uploadPDF and a datagridview called datagridview to the form.
    using System;
    using System.IO;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    namespace UploadPDF
    public partial class Form1 : Form
    #region Properties
    protected static string ConnectionString {
    get {return "Integrated Security=SSPI;database=Testdb;Data Source=localhost\\SQLEXPRESS;Workstation ID=localhost;";}
    protected static SqlConnection Connection {
    get {return new SqlConnection(ConnectionString);}
    protected DataTable pdfDataTable;
    #endregion
    public Form1()
    InitializeComponent();
    populateDataGrid();
    protected void populateDataGrid()
    SqlConnection con = Connection;
    con.Open();
    try
    pdfDataTable = new DataTable();
    SqlCommand cmd = new SqlCommand( "select * from pdfifiltertable", con);
    SqlDataAdapter adapter = new SqlDataAdapter(cmd);
    adapter.Fill(pdfDataTable);
    dataGridView.DataSource = pdfDataTable;
    dataGridView.Columns[3].Visible = false;
    finally {
    con.Close();
    private void uploadPDF_Click(object sender, EventArgs e) {
    if (DialogResult.Cancel == fileOpenDialog.ShowDialog()) return;
    try {
    byte[] content = FileToByteArray(fileOpenDialog.FileName);
    uploadPDFBlob2DataBase(fileOpenDialog.FileName,content);
    populateDataGrid();
    } catch (Exception ex) {
    MessageBox.Show(ex.Message, "PDFiFilter11", MessageBoxButtons.OK, MessageBoxIcon.Error);
    public byte[] FileToByteArray(string _FileName) {
    byte[] pdfBuffer = null;
    try {
    System.IO.FileStream _FileStream = new System.IO.FileStream(_FileName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
    System.IO.BinaryReader _BinaryReader = new System.IO.BinaryReader(_FileStream);
    long TotalNumberOfBytes = new System.IO.FileInfo(_FileName).Length;
    pdfBuffer = _BinaryReader.ReadBytes((Int32)TotalNumberOfBytes);
    _FileStream.Close();
    _FileStream.Dispose();
    _BinaryReader.Close();
    } catch (Exception _Exception) {
    Console.WriteLine("Exception caught in process: {0}", _Exception.ToString());
    return pdfBuffer;
    public void uploadPDFBlob2DataBase(String fName, byte[] content) {
    SqlConnection con = Connection;
    con.Open();
    String ext,filename;
    ext = Path.GetExtension(fName);
    filename = Path.GetFileName(fName);
    try {
    SqlCommand insert = new SqlCommand( "insert into pdfifiltertable ([PdfFileName],[Ext],[PdfText]) values ((@pdfFileName),(@extension),(@pdfcontent))", con);
    SqlParameter pdffilenameParameter = insert.Parameters.Add("@pdfFileName", SqlDbType.NText);
    pdffilenameParameter.Value = filename;
    pdffilenameParameter.Size = filename.Length;
    SqlParameter extParam = insert.Parameters.Add("@extension", SqlDbType.NVarChar);
    extParam.Value = ext;
    extParam.Size = ext.Length;
    SqlParameter pdfcontentParameter = insert.Parameters.Add("@pdfcontent", SqlDbType.Binary);
    pdfcontentParameter.Value = content;
    pdfcontentParameter.Size = content.Length;
    insert.ExecuteNonQuery();
    } finally {
    con.Close();
    } //class
    } //namespace

  • Database Adapter Logical Delete Not Working....

    Hi,
    I have an issue with the DB Adapter under BPEL GA 10.1.3.1. I'm trying to do a logical delete on a table however the logical delete isn't updating the records to show that they've been processed.
    I've created a simple test case with a 3 column table sitting in Oracle XE DB with the third column containing the logical delete flag. I've created a new process consisting of a DB Adapter partnerlink and a receive. In the logs (below) I can see the Select statement followed by the Update (logical delete) occurring but the Update statement just actually run against the DB. I can copy the update statement and run this through SQL as the same DB user and it updates the records.
    Has anyone seen this before?
    Thanks.
    <2006-11-13 15:06:30,901> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> client acquired
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> SELECT A, B, C FROM F_TABLE WHERE (C = ?)
         bind => [IN]
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> client acquired
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> TX beginTransaction, status=NO_TRANSACTION
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> TX Internally starting
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> external transaction has begun internally
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.DBAdapterConstants isElementFormDefaultQualified> Element is FTABLE namespace is http://xmlns.oracle.com/pcbpel/adapter/db/top/ReadTABLE
    <2006-11-13 15:06:30,933> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.ox.O_XParser parse> Transforming the row(s) [<FTABLE Record A />, <FTABLE Record B />, <FTABLE Record C />] read from the database into xml.
    <2006-11-13 15:06:30,933> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> [Read_TABLE_ptt::receive(FTABLECollection)]Posting inbound JCA message to BPEL Process 'Read_TABLE' receive activity:
    <FTABLECollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/ReadTABLE">
    <FTABLE>
    <a>Record</a>
    <b>A</b>
    <c>IN</c>
    </FTABLE>
    <FTABLE>
    <a>Record/a>
    <b>B</b>
    <c>IN</c>
    </FTABLE>
    <FTABLE>
    <a>Record</a>
    <b>C</b>
    <c>IN</c>
    </FTABLE>
    </FTABLECollection>
    <2006-11-13 15:06:30,933> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Delivery Thread 'JCA-work-instance:Database Adapter-6 performing unsynchronized post() to localhost
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> Begin batch statements
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> UPDATE F_TABLE SET C = ? WHERE ((A = ?) AND (B = ?))
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log>      bind => [OUT, Record, A]
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log>      bind => [OUT, Record, B]
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log>      bind => [OUT, Record, C]
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> End Batch Statements
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> TX commitTransaction, status=STATUS_ACTIVE
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> TX Internally committing
    <2006-11-13 15:06:31,323> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> external transaction has committed internally
    <2006-11-13 15:06:31,323> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> client released
    <2006-11-13 15:06:31,323> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> onBatchBegin: Batch 'bpel___localhost_default_Read_TABLE_1_4__1163389596916.ReadTABLE.FTABLE1163394391323' (bpel___localhost_default_Read_TABLE_1_4__1163389596916.ReadTABLE.FTABLE1163394391323) starting...
    <2006-11-13 15:06:31,323> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> onBatchComplete: Batch 'bpel___localhost_default_Read_TABLE_1_4__1163389596916.ReadTABLE.FTABLE1163394391323' (bpel___localhost_default_Read_TABLE_1_4__1163389596916.ReadTABLE.FTABLE1163394391323) has completed - final size = 3
    <2006-11-13 15:06:31,323> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> client released
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELExecution::Read_TABLE> entering <scope> at line [no line]
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELExecution::Read_TABLE> entering <scope> at line [no line]
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELExecution::Read_TABLE> entering <sequence> at line 55
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELExecution::Read_TABLE> entering <sequence> at line 55
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELEntryReceiveWMP::Read_TABLE> executing <receive> at line 58
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELEntryReceiveWMP::Read_TABLE> set variable 'Read_TABLE_receive_InputVariable' to be readOnly, payload ref {FTABLECollection=108e2d22815529ac:-3067a9ff:10edf296212:-78da}
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELEntryReceiveWMP::Read_TABLE> variable 'Read_TABLE_receive_InputVariable' content {FTABLECollection=oracle.xml.parser.v2.XMLElement@1303465}
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELInvokeWMP::Read_TABLE> executing <invoke> at line 61

    Hi,
    I haven't yet used 10.1.3, but we had a number of issues under 10.1.2.0.2 around caching and upd/ins/del.
    A number of things we changed were
    - set usesBatchWriting to false in oc4j-ra.xml file
    - set identityMap to NoIdentityMap via toplink work bench
    - set should-always-refresh-cache-on-remote,should-disable-cache-hits,should-disable-cache-hits-on-remote to true in toplink mappings.xml file (note this last one is only if toplink was not used to insert the source data).
    Ashley

Maybe you are looking for

  • Visio 2010 - Shape Data Fields Are Not Saving

    I am having a problem with a number of shape data fields which are not saving data that has been entered into it, whether by entering it through the "shape data" or "define shape data" dialog boxes, or by editing the "shape sheet".  All data fields a

  • PsCS6  won't open. Error Message 213:19. Need Help.

    PsCS6  won't open. Error Message 213:19. Need Help.

  • Recovering files from a dead HD?

    Hey all... Yesterday I tried burning an Audio CD with cdrecord, and since it was a 90min CD-R I had a lot of songs there. cdrecord failed the burning and said I could use -ignsize if I'm sure my drive is capable to burn this kind of CD. I guess it wa

  • Attaching a text/pdf file in report builder

    i have develop account package for that i want to attach a text file in report builder. each account have its seprate text file.should it is possible? How? please give me reply on [email protected] thank you Message was edited by: user561602

  • Subcontract process (57F4 challan)

    Dear SAP Guru, I implement a scenerio of subcontracting. A new requiremnt is come under subcontracting. i.e A plant send a Material X to subcontractor through 57F4 Challan. And soncontracotr process that material and add some material with X (i.e. Ex