public static void main(String[] args) {
        // Log configuration based on standard log4j.properties file
    	@SuppressWarnings("unused")
		PropertyConfigurator log4jConfig = new PropertyConfigurator();
        LOGG.info("Key data comparer starts");

        if (args.length != 1 && args.length != 2) {
            LOGG.fatal("Argumentem jest nazwa pliku z tabelami do porównania i opcjonalnie nazwa pliku z raportem");
            throw new RuntimeException("Podaj argument[y]");
        }
        
        if (args.length == 2) {
        	outputFile = new File(args[1]);
        } else {
        	outputFile = new File("output.txt");
        }
        
        for (int ii = 0; ii < args.length; ii++) {
            LOGG.debug("arg[" + ii + "]: " + args[ii]);
        }

        try {
            ObsluzPliki obspli = new ObsluzPliki(args[0]);
            // nazwaBazy, nazwaHosta, numerPortu, schemat, haslo
            bazaWzorcowa = new OracleDB(obspli.getSourcedatabase(),
                    obspli.getSourcehostname(),
                    obspli.getSourceportnumber(),
                    obspli.getSourceusername(),
                    obspli.getSourceuserpassword());
            bazaPorownywana = new OracleDB(obspli.getCompdatabase(),
                    obspli.getComphostname(),
                    obspli.getCompportnumber(),
                    obspli.getCompusername(),
                    obspli.getCompuserpassword());
            
            porownajIZapisz(obspli);
            
        } catch (SQLException ex) {
            LOGG.error("SQLException !! ", ex);
        } catch (IOException ex) {
            LOGG.error("IOException: " + ex.getMessage(), ex);
        } catch (SAXException ex) {
            LOGG.error("SAXException: " + ex.getMessage(), ex);
        } catch (ParserConfigurationException ex) {
            LOGG.error("ParserConfigurationException: " + ex.getMessage(), ex);
        } catch (Exception ex) {
            LOGG.error("Błędny błąd", ex);
        } finally {
            LOGG.info("Key data comparer ends");
        }
    }