PreparedStatement not updating Oracle database

I have wriiten a PreparedStatement to insert rows into a table that I have previously created but insert doesn't seem to be working. The program isn't reporting any exceptions but when do a select * on the table, no new rows have been inserted. Here is my code...
import java.sql.*;
import java.io.*;
import java.util.*;
public class VideoStore {
     static Properties props;
     static Connection conn;
     static String driver, url, dbname, userName, password;
     // constructor
     VideoStore() {
          // load the database properties file
          try {
               props = new Properties();
               FileInputStream in = new FileInputStream("database1.properties");
               props.load(in);
               driver = props.getProperty("jdbc.driver");
               url = props.getProperty("jdbc.url");
               dbname = props.getProperty("jdbc.dbname");
               userName = props.getProperty("jdbc.username");
               password = props.getProperty("jdbc.password");
          } catch (FileNotFoundException e) {
               System.err.println("Caught FileNotFoundException: " + e.getMessage());
          } catch (IOException e) {
               System.err.println("Caught IOException: " + e.getMessage());
          // load the JDBC driver
          try {
               Class.forName(driver);
          } catch (ClassNotFoundException e) {
               System.err.println("Caught ClassNotFoundException: " + e.getMessage());
          // establish a connection to the database
          try {
               conn = DriverManager.getConnection(url + ":" + dbname,userName,password);
          } catch (SQLException e) {
               System.err.println("Caught SQLException: " + e.getMessage());
     } // end constructor
     // member function to signup a new member
     void addMember() {
          String last, first, address;
          PreparedStatement stmt = null;
          try {
               stmt = conn.prepareStatement("INSERT INTO members values (?, ?, ?, ?, ?)");
          } catch (SQLException e) {
               System.err.println("Caught SQLException: " + e.getMessage());
          last = readEntry("Enter last name: ");
          first = readEntry("Enter first name: ");
          address = readEntry("Enter address: ");
          try {
               stmt.setInt(1, 15);
               stmt.setString(2, last);
               stmt.setString(3, first);
               stmt.setString(4, address);
               stmt.setInt(5, 0);
          } catch (SQLException e) {
               System.err.println("Error adding member");
          try {
               stmt.close();
          } catch (SQLException e) {
               System.err.println("Caught SQLException: " + e.getMessage());
     } // end addMember()
     // function to read an input String. taken from page 217 of the text          
     static String readEntry(String prompt) {
          try {
               StringBuffer buffer = new StringBuffer();
               System.out.print(prompt);
               System.out.flush();
               int c = System.in.read();
               while(c != '\n' && c != -1) {
                    buffer.append((char)c);
                    c = System.in.read();
               return buffer.toString().trim();
          } catch (IOException e) {
               return "";
     } // end readEntry()
        public static void main( String[] args ) {
               VideoStore test = new VideoStore();
               test.addMember();
     } // end main
} // end VideoStore

As an unrelated aside, you should consider putting your statement close in a finally block, to guarantee that it is closed even if you get exceptions executing your SQL. While it won't matter much in this simple program, it's good technique.
          try {
               stmt.setInt(1, 15);
               stmt.setString(2, last);
               stmt.setString(3, first);
               stmt.setString(4, address);
               stmt.setInt(5, 0);
                        stmt.executeUpdate();
          } catch (SQLException e) {
               System.err.println("Error adding member");
                finally {
              try {
                   stmt.close();
              } catch (SQLException e) {
                   System.err.println("Caught SQLException: " + e.getMessage());
          }And it's also good practice to explicitly close your connection
Also, by default, JDBC executes with autocommit, which when you get to bigger projects is what you don't want, although here it's fine...

Similar Messages

  • Data not updating in database

    Friends i have table and i have created a sequence on basis of that table.
    For 1st page i have created an html region and made few items there and a save button.
    I am filling data to the fields in page 1 and clicking the save button. In save button i have passed the address of the items of 1st page to items of 2nd page which contains the same field of page 1 and few more additional field.
    the 2nd page which i have made is on basis of form on a table or view and taken exsisting sequence there. When i clicking the submit button in page 2 it is not updating my database and throwing error called unable to fetch row. Any suggestions on this?

    Lev addition to this i wanted when my create button in 2nd page get clicks my database gets updated and also a query runs which checks the same data of combination variant_type,model_code,year_manuafacture. It means if i have 2 records in database with same variant_type,model_code,year_manufacture then in the field how_many in page 2 count of 3 gets updated and the other field solution avaiable get updated with Y.
    For this in my local system in page 2 i created a plsql process and wrote this code and applied it with create button but its not working. Any idea where i am failing?
    Declare
    l_how_many Number;
    l_sol_av Varchar2(1):= NULL;
    Begin
    select count(*)
    into l_how_many
    from quality
    where 1=1
    and variant_type= :P2_VARIANT_TYPE --'Road Bike'
    and model_code = :P2_MODEL_CODE --'6'
    and year_manufacture= :P2_YEAR_MANUFACTURE  ; --'2000'
    If l_how_many=null then
        l_sol_av := 'N' ;
    else
        l_sol_av := 'Y';
    end If ;
    :P2_SOLUTION_AVAILABLE := l_sol_av;
    :P2_HOW_MANY_RAISED       := l_how_many;
    Exception
        when no_data_found then
        null;
    end;

  • Application Compatibility does not update the database.

    Hi,
     I am using application compatibility manager 6.1, and SQL server 2012 as database. ACT run ok and it create the XML file but it does not update the database at "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA" location.
    I can see the valid XML file but somehow the MDF file of database is not updated so my ACT windows does not showing anything on it.
    Any Help would be appreciated.
    Thanks
    Rakesh Patel
    rakesh patel

    Hi Rakesh,
    I am not sure if you have resloved your issue.
    But for helping others to know what to do if they meet the same issue as yours, I consider to mark the post as answered.
    If you would like further assistance, please post back and we will be always here to help you.
    Any concern about this mark behavior, you can just unmark it.
    Thanks for your understanding.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • How to know a utility is installed or not in oracle database?

    hi,
    how to know a utility is installed or not in oracle database?
    thanks
    raju

    To list the number of DBMS packages
    SQL> select * from dba_objects where object_name like '%DBMS%';This will only return DBMS packages (not other packages like UTL_FILE, UTL_ENCODE, ..etc).

  • Cachedrowset acceptchanges()  NOT updating to database

    i wrote this code so that "cachedrowset -- crs" (i got from the "resultset -- rs") can be changed according to the condn specified and the modified cachedrowset will be updated in the oracle database.
    condn. is when " name=sanjiv" it will change it to "rajiv" both in cachedrowset and database , it is changed in the cachedrowset (according to output below) but NOT changed in the database.
    the output is
    //start
    tushar--100000
    sanjiv--890000
    rajesh--790000
    tushar--100000
    rajiv--7900
    rajesh--790000
    //end
    // code start
    import java.sql.*;
    import javax.sql.RowSetMetaData;
    import javax.sql.rowset.RowSetMetaDataImpl;
    import com.sun.rowset.CachedRowSetImpl;
    public class rowsetter {
    public static void main(String[] args) throws Exception {
    Connection conn=null;
    Statement stmt=null;
    ResultSet rs=null;
    CachedRowSetImpl crs = new CachedRowSetImpl();
    try{
    conn = DriverManager.getConnection("jdbc:odbc:mydatasource","scott","tiger");
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    rs=stmt.executeQuery("select * from salary");
    ResultSetMetaData rsmd = rs.getMetaData();
    int rsmdcolcount = rsmd.getColumnCount();
    crs.populate(rs);
    RowSetMetaData rsmd1 = (RowSetMetaData)crs.getMetaData();
    int rsmd1colcount = rsmd1.getColumnCount();
    crs.setMetaData(rsmd1);
    rsmd1.setColumnName(1,"name"); rsmd1.setColumnType(1,Types.VARCHAR);
    rsmd1.setColumnName(2,"salary"); rsmd1.setColumnType(2,Types.VARCHAR);
    crs.setTableName("salary");
    while(crs.next()){
    System.out.println(crs.getString(1)+"--"+crs.getInt(2));
    if(crs.getString(1).trim().equals("sanjiv")){
    crs.moveToCurrentRow(); crs.updateString(1,"rajiv"); crs.updateInt(2,7900);
    crs.acceptChanges(conn);
    crs.beforeFirst();
    while(crs.next()){
    System.out.println(crs.getString(1)+"--"+crs.getInt(2));
    conn.close();
    catch(SQLException sqle){
    System.out.println("Exception Occured SQLE"+sqle);
    catch(Exception ex){
    System.out.println("Exception Occured "+ex);
    //code end

    Hi Marc,
    In EXIT_SAPMM06E_018 do as follows:
    e_ci_ekpo = ekpo_ci.
    The append structure CI_EKPODB is included in ekpo_ci. Moreover the screen fields should be created with reference to ekpo_ci.
    This will update the database table with values for the custom field.
    Hope this helps.
    Regards,
    Abhisek.

  • Crystal Report Viewer Not Releasing Oracle Database Connections

    I have a very simple vb.net 3.5 web application that uses the Crystal Report viewer 2008 to open a report. My requirements are as follows:
    1. Reports are built by another company and provided to us and used in a web environment
    2. All reports contain parameter fields
    3. The web application must be generic enough that a report can be added to a list and the user simply selects the report and provides database login information. The Crystal report viewer with handle the request for parameter values and prompt the user for their values.
    4. All reports connect to an Oracle 10g server.
    The above requirements have been meet and we have an extremely simple web application that runs the reports. It is working very well other than the crystal report viewer is not releasing the database connections. This is bad because the credentials are on a per user basis and that same user must login to a different oracle application simultaneously. They are being denied access because the credentials are already in use. We do not have control nor influence over the policies in use on the Oracle server. Ideally we would like to control the Crystal Report viewer so that it closes connections after use.
    The web application code is:
    Private Sub viewReports_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
    If Not IsPostBack Then
    ConfigureCrystalReport()
    End If
    End Sub
    Private Sub ConfigureCrystalReport()
    'Load the Crystal Report viewer with a report.
    Try
    Dim reportPath As String = Server.MapPath(Session("reportname"))
    crViewer.ReportSource = reportPath
    Catch ex As Exception
    Response.Write(Server.MapPath(Session("reportname")) & "
    " & ex.Message.ToString & "
    " & ex.StackTrace.ToString)
    End Try
    End Sub
    Can anyone shed some light on this topic? Thank you

    Hello, Timothy;
    By default, having the report in session will hold it open for 20 minutes.
    If you create the report as a ReportDocument object you can take it out of session and release it more efficiently. That will release the connection.
        Private Sub ConfigureCrystalReports()
            If (Session("hierarchicalGroupingReport") Is Nothing) Then
                hierarchicalGroupingReport = New ReportDocument()
                hierarchicalGroupingReport.Load(Server.MapPath("Hierarchical Grouping.rpt"))
                Session("hierarchicalGroupingReport") = hierarchicalGroupingReport
            Else
                hierarchicalGroupingReport = CType(Session("hierarchicalGroupingReport"), ReportDocument)
            End If
            myCrystalReportViewer.ReportSource = hierarchicalGroupingReport
        End Sub
    In the Form Unload of the Viewer:
                'Take the report out of session
                Session("hierarchicalGroupingReport")  = Nothing
                Session.Contents.Remove("hierarchicalGroupingReport")
                'Clean up the ReportDocument object
                hierarchicalGroupingReport.Close
                hierarchicalGroupingReport.Dispose()
                hierarchicalGroupingReport = Nothing
                GC.Collect()
    Elaine

  • ERROR  IN  FILE--XI--RFC SCENARIO.  BAPI  did not UPDATE the DATABASE TABLE

    Hi
    I have created a scenario  FILE -XI- RFC
    File is picked by file adapter  - Its working fine
    I have used BPM
    In RFC side  i used BAPI_INCOMINGINVOICE_CREATE
    Its working fine and return an Invoice Number and Fisical year .
    When i Check this in the R/3 System , in Invoice no Does not Exist .
    Message mapping is ok
    SXMB_MONI all are ok
    Receiver file i got the invoice no and fisical year .
    The Problem is " DATABASE TABLE DID NOT UPDATED "
    So  should i do BAPI_COMMIT seperately ........
    Any solution ................
    VERY VERY URGENT .....
    thanks in advance
    B.Jude

    hi jude,
    Commit Control for Single BAPI Calls
    If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
    If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
    The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values “”, “S”, “I”, and “W” are displayed. All other values are regarded as errors.
    To change this setting, set the indicator BAPI Advanced Mode.
    <b>In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution.</b>
    Regards,
    Mandeep Virk

  • Subscreen data not updating to database

    Hi,
    I have created a subscreen in transaction code ME41/ME42/ME43. Whenever I put data on the custom subscreen, table ekpo is not getting updated with the input data. I have checked EXIT_SAPMM06E_013 and I did passed the new table to XEKPO. But it is still not working. Kindly advice.
    Thanks and regards,
    Marc

    Hi Marc,
    In EXIT_SAPMM06E_018 do as follows:
    e_ci_ekpo = ekpo_ci.
    The append structure CI_EKPODB is included in ekpo_ci. Moreover the screen fields should be created with reference to ekpo_ci.
    This will update the database table with values for the custom field.
    Hope this helps.
    Regards,
    Abhisek.

  • Which API need to call to update oracle database

    Hi,
    Does anybody know which APIs should be called in which order to update the oracle database base on the payroll run result conducted by 3rd party payment system?
    reply to [email protected] will be highly appreciated!
    Thankss

    Hi,
    Sorry for misleading. The scenario is client only install HR, payroll be run by third party system . they need me to handle the backfeed the payroll data to oracle system. Can I use API to do that ? What is the whole procedure?
    Thanks a lot for help me out!
    S

  • Update: Oracle Database 11g OCM Exam

    If you've been waiting to become an Oracle Database 11g Certified Master, you'll be pleased to hear that we are starting our alpha testing now… http://bit.ly/9vNjSU

    Naveen Kumar C wrote:
    Hi,
    y
    I want to take the certification Oracle Database 11g: Performance Tuning exam 1Z0-054 and want to write the exam.
    To earn the OCE credentials, I know that we need to take training from Oracle University. I am not an OCP currently.
    Can I write the exam now and later take the course to meet the certification requirements? I know it is not the right way, but I can not pay $3000 for the course as of now. I can write the exam through self study. I want to check if I can take the exam now and later take the course.
    Is it mandatory to take the course before taking the exam?
    Thanks,
    naveen.Indeed you can take the exam now, and subsequently earn the 11g PERFTUNE OCE credential when you either:
    1) complete, submit and get verified the OU authorised 11g perftune course (possible but seems a little cart before horse).
    or
    2) Become 11g DBA OCP.

  • Console Application not updating the database

    Dear all,
    I am new to c# development. I have a console application front end in program.cs
    I have a local database on visual studio.
    When I execute the stored procedure locally on the database the data is getting updated in the database.
    When I update the same through Console Application - the data is not appearing in the database.
    Can somebody throw light on this? Where I am missing
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Data;
    using System.Data.SqlClient;
    namespace AssetApp
    class Program
    static void Main(string[] args)
    bool value = true;
    while (value)
    value = getdisplay();
    //Console.ReadLine();
    //value = false;
    private static bool getdisplay()
    Console.WriteLine("-------------------------------------- ");
    Console.WriteLine("---------------------------------------");
    Console.Clear();
    Console.WriteLine("----------Asset Application------------");
    Console.WriteLine(" 1 Company Asset ");
    Console.WriteLine(" 2 Standby Laptop Register ");
    Console.WriteLine(" 3 Scrap Register ");
    Console.WriteLine(" 4 Purchase Register ");
    Console.WriteLine(" 5 Service Call Report ");
    Console.WriteLine(" 6 IT Helpdesk ");
    Console.WriteLine(" 7 Exit ");
    Console.WriteLine("---------------------------------------");
    string input = Console.ReadLine();
    switch (input)
    case "1":
    CompanyAsset();
    break;
    case "2":
    Console.WriteLine("Standy Laptop Register");
    break;
    case "3":
    Console.WriteLine("Scrap Register");
    break;
    case "4":
    Console.WriteLine("Purchase Register");
    break;
    case "5":
    Console.WriteLine("Service call Report");
    break;
    case "6":
    Console.WriteLine("IT Helpdesk");
    break;
    case "7":
    return false;
    default:
    break;
    return true;
    private static void CompanyAsset()
    Console.WriteLine("------Company Asset------------------------");
    Console.WriteLine("Type the Department Name");
    string departmentName = Console.ReadLine();
    Console.WriteLine("Type the First Name");
    string firstName = Console.ReadLine();
    Console.WriteLine("Type the Last Name");
    string lastName = Console.ReadLine();
    Console.WriteLine("Type the User Name");
    string userName = Console.ReadLine();
    Console.WriteLine("Type the Model Number");
    string modelNumber = Console.ReadLine();
    Console.WriteLine("Type the AssetTypeID");
    string assetTypeID = Console.ReadLine();
    Console.WriteLine("Type the SerialNumber");
    string serialNumber = Console.ReadLine();
    Console.WriteLine("Type the WarrantyStartDate");
    DateTime warrantyStartDate = Convert.ToDateTime(Console.ReadLine());
    Console.WriteLine("Type the WarrantyEndDate");
    DateTime warrantyEndDate = Convert.ToDateTime(Console.ReadLine());
    Console.WriteLine("Company");
    string company = Console.ReadLine();
    Console.WriteLine("EngineerID");
    string engineerID = Console.ReadLine();
    Console.WriteLine("ITHelpdeskID");
    string itHelpdeskID = Console.ReadLine();
    Console.WriteLine("EmpID");
    string empID = Console.ReadLine();
    //Handshake
    SqlConnection myNewConnection = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\AssetApp.mdf;Integrated Security=True");
    //open the database
    myNewConnection.Open();
    //create command
    SqlCommand myCommand = myNewConnection.CreateCommand();
    //using the stored procedue to update the database using parameters add
    myCommand.CommandText = "InsertAsset";
    myCommand.CommandType = CommandType.StoredProcedure;
    myCommand.Parameters.Add(new SqlParameter("@DepartmentName", departmentName));
    myCommand.Parameters.Add(new SqlParameter("@FirstName", firstName));
    myCommand.Parameters.Add(new SqlParameter("@LastName", lastName));
    myCommand.Parameters.Add(new SqlParameter("@UserName", userName));
    myCommand.Parameters.Add(new SqlParameter("@ModelNumber", modelNumber));
    myCommand.Parameters.Add(new SqlParameter("@AssetTypeID", int.Parse(assetTypeID)));
    myCommand.Parameters.Add(new SqlParameter("@SerialNumber", serialNumber));
    myCommand.Parameters.Add(new SqlParameter("@WarrantyStartDate", warrantyStartDate));
    myCommand.Parameters.Add(new SqlParameter("@WarrantyEndDate", warrantyEndDate));
    myCommand.Parameters.Add(new SqlParameter("@Company", company));
    myCommand.Parameters.Add(new SqlParameter("@EngineerID", int.Parse(engineerID)));
    myCommand.Parameters.Add(new SqlParameter("@ITHelpdeskID", int.Parse(itHelpdeskID)));
    myCommand.Parameters.Add(new SqlParameter("@EmpID", int.Parse(empID)));
    int recordsAffected = myCommand.ExecuteNonQuery();
    if (recordsAffected == 1)
    Console.WriteLine("Successful your entry");
    else
    Console.WriteLine("Your entry is not successful");
    myNewConnection.Close();
    Console.WriteLine("");
    Console.WriteLine("Press Enter to continue");
    Console.ReadLine();
    public static void StandbyLaptopRegister()
    Console.WriteLine("-------------------------------");
    Console.WriteLine("Select the Date & Time");
    string DateTime = Console.ReadLine();
    Console.WriteLine("");
    ALTER PROCEDURE dbo.InsertAsset
    @DepartmentName NVARCHAR(50),
    @FirstName NVARCHAR(50),
    @LastName NVARCHAR(50),
    @UserName NVARCHAR(50),
    @ModelNumber NVARCHAR(50),
    @AssetTypeID INT,
    @SerialNumber NVARCHAR(50),
    @WarrantyStartDate SMALLDATETIME,
    @WarrantyEndDate SMALLDATETIME,
    @Company NVARCHAR(50),
    @EngineerID INT,
    @ITHelpdeskID INT,
    @EmpID INT
    @parameter1 int = 5,
    @parameter2 datatype OUTPUT
    AS
    /* SET NOCOUNT ON */
    BEGIN
    INSERT CompanyAsset(DepartmentName,
    FirstName,
    LastName,
    UserName,
    ModelNumber,
    AssetTypeID,
    SerialNumber,
    WarrantyStartDate,
    WarrantyEndDate,
    Company,
    EngineerID,
    ITHelpdeskID,
    EmpID)
    VALUES(@DepartmentName,
    @FirstName,
    @LastName,
    @UserName,
    @ModelNumber,
    @AssetTypeID,
    @SerialNumber,
    @WarrantyStartDate,
    @WarrantyEndDate,
    @Company,
    @EngineerID,
    @ITHelpdeskID,
    @EmpID)
    /*RETURN @@IDENTITY*/
    END
    Cheers
    Sathya

    Hello,
    Usually when I see
    AttachDbFilename=|DataDirectory| ...
    The database was added into the project via the IDE add new data source and if so make sure under the property window for the database that "Copy to Output Directory" is set to either the first or last option as the default "Copy always"
    copies the database each time you build the project thus overwrites the last time you ran the project.
    I would recommend the "Copy if Newer" which means the database is only copied if you make changes to the database. Set "Copy if newer", build run check results.
    Of course this may not be the issue but may very well be too.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Could not see oracle database homepage in oracle 10g version

    hi ,
    i am trying to open database home page option of oracle 10g software, but could not do it.
    i have started the services ORACLEXETNS listener,oracle service XE, and could not see the database home page.
    i am new to oracle 10g,
    i am getting the error 'page cannot be displayed' .
    could some one help me regarding this.

    Are you taking about enterprise manager .Type a correct address in address bar to run web base enterprise manager.you can check whether enterprise manager is running or not by using command >emctl status dbconsole .Or you have some other issue.please write if there is any error.
    Regards

  • Mpc/gmpc will not update mpd database

    As per thread title. I've installed mpc following the single user setup instructions. All the clients I've tried seem to connect to it normally, but I can't get them to update the database.
    mpc output:
    [jewdozer@OKW ~]$ mpc update / --wait
    Updating DB (#4) ...
    volume:100% repeat: off random: off single: off consume: off
    gmpc appears to update normally, but the files don't show up in the database. ncmpcpp puts the last update at hours ago, presumably when mpd was first started.
    This is my /etc/mpd.conf file:
    [jewdozer@OKW ~]$ cat /etc/mpd.conf
    music_directory "/home/jewdozer/Musik"
    playlist_directory "/var/lib/mpd/playlists"
    db_file "/var/lib/mpd/db"
    log_file "/var/log/mpd/mpd.log"
    error_file "/var/lib/mpd/mpd.error"
    pid_file "/var/run/mpd/mpd.pid"
    state_file "/var/lib/mpd/mpdstate"
    user "mpd"
    The files never show up in the db file, and the log and error files are empty.
    Ideas?
    Last edited by jewdozer (2010-01-22 14:01:26)

    Did you try to change the permissions of the directory or to put the files in your "home"?, for example my config file :
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    ######################## REQUIRED PATHS ########################
    # You can put symlinks in here, if you like. Make sure that
    # the user that mpd runs as (see the 'user' config parameter)
    # can read the files in this directory.
    music_directory "/home/mich/Musique"
    playlist_directory "/home/mich/.mpd/playlists"
    db_file "/home/mich/.mpd/mpd.db"
    log_file "/home/mich/.mpd/mpd.log"
    error_file "/home/mich/.mpd/mpd.error"
    #sticker_file "/home/mich/.mpd/mpd.db"
    ######################## OPTIONAL PATHS ########################
    # If you wish to use mpd --kill to stop MPD, then you must
    # specify a file here in which to store MPD's process ID.
    pid_file "/home/mich/.mpd/mpd.pid"
    # If specified, MPD will save its current state (playlist,
    # current song, playing/paused, etc.) at exit. This will be
    # used to restore the session the next time it is run.
    state_file "/home/mich/.mpd/mpd.state"
    ######################## DAEMON OPTIONS ########################
    # If started as root, MPD will drop root privileges and run as
    # this user instead. Otherwise, MPD will run as the user it was
    # started by. If left unspecified, MPD will not drop root
    # privileges at all (not recommended).
    user "mich"
    # The address and port to listen on.
    #bind_to_address "archlinux"
    port "6600"
    # If the address is a path, then a UNIX domain socket will be
    # created instead of listening on a TCP port.
    #bind_to_address "/var/run/mpd/sock"
    # Controls the amount of information that is logged. Can be
    # "default", "secure", or "verbose".
    #log_level "default"
    ########################### ZEROCONF ###########################
    # If yes, service information will be published with Zeroconf.
    #zeroconf_enabled "yes"
    # The service name to publish. This name should be unique on
    # your local network.
    #zeroconf_name "Music Player"
    ########################## PERMISSIONS #########################
    # MPD can require that users specify a password before using it.
    # You may specify one ore more here, along with what users who
    # log in with that password are allowed to do.
    #password "password@read,add,control,admin"
    # Specifies what permissions a user who has not logged in with a
    # password has. By default, all users have full access to MPD
    # if no password is specified above, or no access if one or
    # more passwords are specified.
    default_permissions "read,add,control,admin"
    ########################## AUDIO OUTPUT ########################
    # MPD supports many audio output types, as well as playing
    # through multiple audio outputs at the same time. You can
    # specify one or more here. If you don't specify any, MPD will
    # automatically scan for a usable audio output.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
    # for examples of other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    # device "hw:0,0" # optional
    # format "44100:16:2" # optional
    # use_mmap "yes"
    # PulseAudio
    audio_output {
    type "pulse"
    name "My MPD PulseAudio Output"
    #server "localhost" # optional
    #sink "alsa_output" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    # device "/dev/dsp" # optional
    # format "44100:16:2" # optional
    #audio_output {
    # type "jack"
    # name "my jack device"
    # format "44100:16:2"
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    # user "source" # optional
    # description "My Stream Description" # optional
    # genre "jazz" # optional
    # public "no" # optional
    # timeout "2" # optional
    # An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # Force all decoded audio to be converted to this format before
    # being passed to the audio outputs.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this
    # specifies the sample rate converter to use. Possible
    # values can be found in the mpd.conf man page or the
    # libsamplerate documentation.
    #samplerate_converter "Fastest Sinc Interpolator"
    samplerate_converter "Best Sinc Interpolator"
    ############################# MIXER ############################
    # MPD needs to know what mixer settings to change when you
    # adjust the volume. If you don't specify one here, MPD will
    # pick one based on which ones it was compiled with support for.
    # An example for controlling an ALSA mixer:
    #mixer_type "alsa"
    #mixer_device "default"
    #mixer_control "PCM"
    # An example for controlling an OSS mixer:
    #mixer_type "oss"
    #mixer_device "/dev/mixer"
    #mixer_control "PCM"
    # If you want MPD to adjust the volume of audio sent to the
    # audio outputs, you can tell it to use the software mixer:
    mixer_type "software"
    ######################### NORMALIZATION ########################
    # Specifies the type of ReplayGain to use. Can be "album" or
    # "track". ReplayGain will not be used if not specified. See
    # <http://www.replaygain.org> for more details.
    #replaygain "album"
    # Sets the pre-amp used for files that have ReplayGain tags.
    #replaygain_preamp "0"
    # Enable on the fly volume normalization. This will cause the
    # volume of all songs played to be adjusted so that they sound
    # as though they are of equal loudness.
    #volume_normalization "no"
    ########################### BUFFERING ##########################
    # The size of the buffer containing decoded audio. You probably
    # shouldn't change this.
    #audio_buffer_size "2048"
    # How much of the buffer to fill before beginning to play.
    # Increase this if you hear skipping when changing songs.
    #buffer_before_play "10%"
    # Similar options for the HTTP stream buffer. If you hear
    # skipping while playing HTTP streams, you may wish to increase
    # these.
    #http_buffer_size "128"
    #http_prebuffer_size "25%"
    ########################### HTTP PROXY #########################
    # Specifies the HTTP proxy to use for playing HTTP streams.
    #http_proxy_host "proxy.isp.com"
    #http_proxy_port "8080"
    #http_proxy_user "user"
    #http_proxy_password "password"
    ############################# LIMITS ###########################
    # These are various limits to prevent MPD from using too many
    # resources. You should only change them if they start
    # restricting your usage of MPD.
    #connection_timeout "60"
    #max_connections "5"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    ###################### CHARACTER ENCODINGS #####################
    # If file or directory names do not display correctly, then you
    # may need to change this. In most cases it should be either
    # "ISO-8859-1" or "UTF-8". You must recreate your database
    # after changing this (use mpd --create-db).
    filesystem_charset "UTF-8"
    # The encoding that ID3v1 tags should be converted from.
    id3v1_encoding "UTF-8"
    ######################### OTHER OPTIONS ########################
    # Try disabling this if you have MP3s which appear to end
    # abruptly. If this solves the problem, it is highly
    # recommended that you fix your MP3s with vbrfix (available from
    # <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point you can re-enable support for gapless MP3 playback.
    #gapless_mp3_playback "yes"
    # Enable this if you wish to use your MPD created playlists in
    # other music players.
    #save_absolute_paths_in_playlists "no"
    # A list of tag types that MPD will scan for and make available
    # to clients.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    Last edited by Drexya (2010-01-23 09:09:58)

  • Can not Install Oracle Database 11g Release 2

    This will be my second time trying to install Oracle Database 11g Release 2 on my Computer. I have Windows 7 x64 and when go through the setup phase, I receive numerous errors stating that files are missing and it will never get past that stage. I downloaded both folders for the database:
    Oracle Database 11g Release 2 (11.2.0.1.0) for Microsoft Windows (x64)
    win64_11gR2_database_1of2.zip (1,213,501,989 bytes) (cksum - 3906682109)
    win64_11gR2_database_2of2.zip (1,007,988,954 bytes) (cksum - 1232608515)
    Can anyone tell me what I am doing wrong?

    Pl post the complete error message. Have you unzipped the two files into the same directory ?
    Oracle 11g R2 Windows Installation issue
    Re: 11g R2 install failure
    Srini

  • Data is not updating in database when workflow is completed........

    Hi all,
       I am working on ESS leave request workflow.
       After the approval is being made by the agent, the relevant data is not getting updated in the database. There is no entry regarding the leave period in PA20.
    Is it a workflow issue???  
    Is it something related with commit work???

    Hi
    Did you try to run and check, the report RPTARQPOST report from the back end.  This report is resposnible to post the data into the workflow and complete the workflow. But as you mentioend that the workflow is getting completed then in this case I think you might be already scheduled the above report. Did you check with any kind of authorizations with the user under which the background job or the user who is runnig the report.
    There could also be a possibility that the applied user might not have right authorizations to manupulate Absences Infotype 2001. PLease check teh roles associated with the users in PFCG txn.
    Regards
    Pavan

Maybe you are looking for

  • How can I use two different Yahoo mail accounts ion Firefox?

    I have two Yahoo mail IDs. How can I use them both simultaneously on Firefox? Right now I am running Firefox and Internet Explorer so I can have the two accounts open at the same time. I would prefer to have both accounts running on Firefox, but I ca

  • Using directory alias with a wanboot installation

    I have setup a Jumpstart server and have been using it for a while without issues. Now I want to incorporate wanboot into the process so that I do not need boot servers in each of our subnets. Since the jumpstart directory structure is already in pla

  • BPM 11.1.1.6 workspace help

    Hi , I am just trying to understand the tasks tabs in Oracle BPM workspace, and from Oracle's documentation "Administrative Taks" tab should only be visible to a user who belongs to a BPMProcessAdmin Or ProcessOwner role. But When I create a BPM doma

  • MS Dynamics CRM

    Hi Guys, I'm pretty new to BC and I'm looking at going for a project but would like to know it there is a way of integrating MS Dynamics CRM in to a BC built website and also Realex payment processing. These are key points for this project and would

  • Mavericks and iWork- how can I download iWork for free?

    I recently just purchased the MacBook Air. I have downloaded Mavericks TWICE and still the iWork does not show up as a free Apple app in the "Purchases" tab. Does anyone have any suggestions of how to get it? When I locate it in the App store all 3 p