Populating a Postgresql database?

Can anyone tell me the best way to populate a postgresql database? I already have the tables but i need to add lots of data.
Thank you

See if it has a tool to load it from a text file (this solution will not have any java in it.)

Similar Messages

  • Configuring DBAT 9.1.0.5 connector with PostgreSQL database in OIM 11g

    Hi,
    I am trying to configure the DBAT 9.1.0.5 connector with PostgreSQL database in OIM 11g (11.1.1.5.0), thou' in the connector document the suppot for this postgres is not mentioned.
    So, as mentioned for other databases that the JDBC driver has to be copied to $JAVA_HOME/jre/lib/ext, I have also copied the postgres driver to the specific folder but while trying to configure the connector, I am getting the error as 'No suitable driver found'. Following is the stacktrace snippet.
    SEVERE: Class/Method: DBFacade/getConnection encounter some problems: No suitable driver found for jdbc:postgres://funereus.stadi.sonera.fi:5432/DEV1_DIGSIG
    java.sql.SQLException: No suitable driver found for jdbc:postgres://funereus.stadi.sonera.fi:5432/DEV1_DIGSIG
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:154)
    at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:51)
    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
    at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)
    at com.thortech.xl.gc.impl.common.DBFacade.getConnection(Unknown Source)
    at com.thortech.xl.gc.impl.common.DBFacade.getMetadata(Unknown Source)
    at com.thortech.xl.gc.impl.common.DBFacade.getDBType(Unknown Source)
    at com.thortech.xl.gc.impl.common.DBFacade.getSchema(Unknown Source)
    at com.thortech.xl.gc.impl.recon.DBReconTransportProvider.detectMetadata(Unknown Source)
    at com.thortech.xl.gc.impl.recon.DBReconTransportProvider.getMetadata(Unknown Source)
    at com.thortech.xl.webclient.actions.CreateConnectorAction.getGenericAdapter(CreateConnectorAction.java:2202)
    at com.thortech.xl.webclient.actions.CreateConnectorAction.imageScreen(CreateConnectorAction.java:1196)
    at com.thortech.xl.webclient.actions.CreateConnectorAction.goNext(CreateConnectorAction.java:521)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    Caused by: java.sql.SQLException: No suitable driver found for jdbc:postgres://funereus.stadi.sonera.fi:5432/DEV1_DIGSIG
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:154)
    at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:51)
    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
    at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)
    ... 62 more
    SEVERE: Class/Method: CreateGenConnectorAction/imageScreen encounter some problems: Provider Exception
    java.lang.Exception: Provider Exception
    at com.thortech.xl.webclient.actions.CreateConnectorAction.getGenericAdapter(CreateConnectorAction.java:2265)
    at com.thortech.xl.webclient.actions.CreateConnectorAction.imageScreen(CreateConnectorAction.java:1196)
    at com.thortech.xl.webclient.actions.CreateConnectorAction.goNext(CreateConnectorAction.java:521)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    I am using postgresql-8.4-703.jdbc4.jar and Driver class as org.postgresql.Driver
    some suggestions on this would be highly appreciated.
    Thanks
    Sid

    Thanks guys for the quick responses.
    But I have tried both the options for putting the jar in Third Party and also by uploading using the OOTB utility UploadJar.sh.
    But it is giving the same error.
    I have tired rebouncing the server and also Purge cached, but no success.
    Just to mention again, I have tried with all the last 3 postgres JDBC4 driver available on the site (u mentioned).
    So, any other clue?
    Thanks in advance.

  • How to get the whole timestamp from a postgresql database

    Hello,
    Has anyone an idea on how I can get the timestamp from a PostgreSQL database with the fractional seconds information ? I'm using the database connectivity toolkit
    Thanks
    Salim

    and there was even an easier solution
    Why doing simple things when you can struggle for hours

  • Help!! How To Connect Java & PostgreSQL Database

    I'm final year student in comp sc. I'm doing java in my thesis.
    How to get/read data from postgresql using java?
    My thesis is "2 Dimensional Graph Statistics Online Viewing Using Java Applet". So i need a mechanism how to read data from postgresql database using java programming. Please Help!!

    Hi,
    getting started you need some basics on JDBC.
    Have a look at the tutorials, or look at this site (its german):
    http://www.furchur.de/de/informatik/laborberichte2.htm#dbswt
    Have a look at the java.sql package.
    First you need to build up a connection using
    java.sql.DriverManager.getConnection(...)
    The parameter for the PostgreSQL you must look somewhere.
    After you have a connection you can use Statements and PreparedStatements to get and set data in the database.
    At the end, make sure, the connection will be closed, otherwise data can be lost.
    Hope that will help you a little bit

  • Shifting data from PostgreSQL database to Oracle database

    hello folks,
    as i want to have an environment of many database servers of PostgreSQL databases on linux redhat 8.0 and one main database server of Oracle 8.1.7.0.0 on linux redhat 8.0;so that transections may go on PostgreSQL databases and Oracle database server would be used as a central repository to facilitate our data warehousing needs,I want to know how to shift data from PostgreSQL database to an Oracle database at the end of the day.What to do? From where can i get its documentation.
    Any suggestion would be highly appreciated.
    Regards.
    Muhammad Umar Liaquat.

    Since you're going to want to move the data regularly, I'd suggest looking into the Oracle Transparent Gateways (Heterogenous Services). This should let you create database links in Oracle that connect to each of the PostgreSQL databases. Then, you just have to write the appropriate select/insert statements.
    Justin

  • About populating a non-database item in a multi-records block

    Hi, all
    I have a problem about populating a non-database item in a
    multi-records block. This block is set to database block with a
    controlled item which needs to be populated after query. so I
    create a post-query trigger, but my problem is when the records
    listed in this block are less than 10 ( the record number is set
    to 10), the trigger fires no problem. but when the retrieved
    records are greater than 10, the error message is 'post query
    trigger raised unhandled exception ora 01403'. anyone can help me
    fix this problem?
    Thanks in advance
    Diana

    Diana,
    When you have an unbound item in a block and want to fetch
    some data into it you need to write a post-query trigger.What
    you have done is right.But it seems that u are getting a No data
    found error.I am sure about how u r populating data into that
    field.If u have written a select statement to fetch the data in
    post-query trigger, kindly handle an exception and find out the
    problem.Having a look at ur code(pos-query) would be much more
    helpful for giving a better solution.Try this a let me know.
    Thanks
    Vinod.

  • Images from PostgreSQL Database

    <p>It doesn&#39;t appear to be possible to display images stored in a PostgreSQL database on a report in the CR4E report designer.</p><p>PostgreSQL databases usually store images in a column of type "bytea".  The Field Explorer in CR4E shows this as a String[-1] type.  It allows the field to be dropped on a report but it behaves just like a text field.  When the report is previewed, the field is empty even if the column has an image stored in it.</p>

    Hi Peter,
    I can confirm that PostgreSQL is not an officially supported database for CR4E, which means that we have not done any tests with it. Still, I would assume that it could work fine with CR4E, though, and it&#39;s definitly worth giving it a try. However, it is highly possible that some of the specific features, like the way images are stored, will not be handled by CR4E.
    Thx for pointing this out, we might consider adding this in some future releases.
    Cheers.
    Thierry (Business Objects)Â
    PS : The list of the supported DB is in the Platform.txt file, and I copied below the DB section :
    Java Reporting Component Data Sources
    =====================================
    JDBC Report Data Source - Runtime and Design time           Â
    * DB2 8.2 FP 10 (DB2.8.2.3)
    * DB2 8.1.5
    * DB2 8.2 Express - latest
    * SQL Server 2000
    * Sybase 12.5
    * Sybase 15
    * Cloudscape 5.1
    * IBM Cloudscape 10.1(Derby)
    * Oracle 9
    * Oracle 10g
    * Informix 9.4
    * Informix 10
    * Generic JDBC
    * SQL Server 2005
    * Mysql 4.1.14
    * Liquid Data 8.5
    Report Data Source           Â
    * XML (Runtime only)
    * Javabean (Runtime only)
    * POJO (Design-time and Run-time)

  • MD5 passwords in PostgreSQL Database

    Hi!
    I have to store some MD5 hashed passwords in a table in a my PostgreSQL Database. The problem is that when I try to store those "hashed" Strings with an INSERT Statement I get the error: java.sql.SQLException: ERROR: parser: parse error at or near "��������h".
    This happens not always when I hash and store a clear text String with the MD5 algorithm. Some Strings work fine others not! I think it has something to do with the character encoding in my JDBC Driver. I use the ISO-8859-15 encoding.
    Please give me some hints to solve this problem!
    Thx

    I'm not an MD5 expert, but as far as I know the MD5 code is "binary" meaning, it can contain values below 32 which are non-printable characters (and even negativ values as they are bytes). I think you have to encode the MD5 checksum as e.g. Base64
    Thomas

  • PostgreSQL Database migration help

    I have table called TEST in postgreSQL database with some data and I want to migrate this to oracle. I am a newbie to oracle database and I dont know which is the suitable data types in oracle for my table. Below are the my table information. Can any one please help me with this scenario. This would be the greate help to me.
    CREATE TABLE TEST(id integer,data_tab text[])
    insert into TEST (1,'{DATA1,DATA2}')
    insert into TEST (2,'{DATA3,DATA4}')
    insert into TEST (3,'{DATA5,DATA6}')
    I am using Oracle 10.2 version for migration.
    Thanks

    891903 wrote:
    I am not worry about the normalizations rules at this point of time, I just need the solution. Please help me out.Neither now nor in the future! :-)
    The Postgre text data type is defined as unlimited
    http://www.postgresql.org/docs/8.3/interactive/datatype-character.html
    The closest I would suggest you can come to this is to use a CLOB data type in Oracle which can hold 4GB of data.
    I would suggest if you need more than 4GB of data in a single column of a single row, you might want to revisit the idea of normalisation!
    Seriously though, if you are doing a migration, don't expect things to work in the same way on Oracle. The way Oracle works is different in a great number of ways to PostgreSQL. Don't expect that if you faithfully copy every table and index that your system will perform and operate exactly as it did previously. You are going to need to refactor some things and you're going to need to make changes here and there. If there are glaring design issues, it might be a time to approach correcting them.
    Here's a link to the Oracle docs
    http://www.oracle.com/pls/db111/homepage
    I'd familiarise yourself with the concepts guide as a start...
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/toc.htm
    HTH
    David

  • Power Query Update breaks connection to PostgreSQL database

    After the update to Power Query 2.11.3625.144, we can't connect our PostgreSQL database anymore. 
    Error message is: 
    DataSource.NotFound: PostgreSQL: Unable to find a database provider with invariant name 'Npgsql'.
    This error may have been the result of provider-specific client software being required but missing on this computer.  To download client software for this provider, visit the following site and choose at minimum 'Npgsql version 2.0.12': http://go.microsoft.com/fwlink/?LinkID=282716
    Readding the Npgsql driver doesn't solve the issue. Has the version requirement changed with the Power Query update? Or is PostgreSQL connectivity completely broken?

    Hmm, 
    If I add the line, I get the following error message in Power Query: 
    'Npgsql' returned the error: 'Unrecognized element. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config line 169)'.
    This error may have been the result of provider-specific client software being required but missing on this computer.  To download client software for this provider, visit the following site and choose at minimum 'Npgsql version 2.0.12': http://go.microsoft.com/fwlink/?LinkID=282716
    The code in the machine config looks like this: 
      <system.data>
            <DbProviderFactories />
            <add description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.0.12.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" name="Npgsql Data Provider" invariant="Npgsql" support="FF"/>
        </system.data>
    The node seems to be empty by default. Can it be that the surrounding stuff has to be differently written in that case?

  • Want JTree e.g. of populating data from database.

    I want ur JTree example of populating data from database, can u plz give me that eg.?
    Awaiting 4 ur reply.

    Hi,
    AFAIK, there is no direct approach to populate a JTree directly from a resultset. However, JTree can use a DOM tree as its model by using the adapter pattern. The procedure to do this is well-documented in the SUN website and the link is provided below. The code to convert a resultset to XML is provided below:
    protected void resultSetToXML(OutputStream out,
    ResultSet rs,
    String stylesheet)
    throws IOException, ServletException {
    // Create reader and source objects
    SqlXMLReader sxreader = new SqlXMLReader();
    SqlInputSource sis = new SqlInputSource(rs);
    // Create SAX source and StreamResult for transform
    SAXSource source = new SAXSource(sxreader, sis);
    StreamResult result = new StreamResult(out);
    // Perform XSLT transform to get results. If "stylesheet"
    // is NULL, then use identity transform. Otherwise, parse
    // stylesheet and build transformer for it.
    try {
    // Create XSLT transformer
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t;
    if (stylesheet == null) {
    t = tf.newTransformer();
    } else {
    // Read XSL stylesheet from app archive and wrap it as
    // a StreamSource. Then use it to construct a transformer.
    InputStream xslstream = _config.getServletContext().
    getResourceAsStream(stylesheet);
    StreamSource xslsource = new StreamSource(xslstream);
    t = tf.newTransformer(xslsource);
    // Do transform
    t.transform(source, result);
    } catch (TransformerException tx) {
    throw new ServletException(tx);
    The classes SQLXMLReader and other classes used in this example are available in the following java packages.
    import java.sql.*;
    import javax.sql.DataSource;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.sax.*;
    import javax.xml.transform.stream.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.AttributesImpl;
    The following is the link that explains how to load a JTree from DOM.
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPDOM6.html
    Cheers,
    vidyut

  • ZLM Postgresql Database Issue

    Not sure if this forum is still live but here goes
    We have a legacy ZLM 7.3 IR4 primary server running on a SUSE 10.4 server with a local postgresql database.
    We are getting the following warning from the nightly vacuum cron script '/usr/bin/zlm-pg-vacuum'
    WARNING: database "postgres" must be vacuumed within 106755292 transactions
    HINT: To avoid a database shutdown, execute a full-database VACUUM in "postgres".
    From looking at the ZLM documentation we tried the following
    zlm-config --stop
    /usr/bin/zlm-pg-vacuum --full
    This ran but gave a similar warning all be it that the transactions count has gone down :-(
    We have also tried connecting to the database using 'psql' and running 'vacuum full' but with the same results
    We have subsequently tried running a 'zlm_db_cleanup.sh' (took 8 hours) and followed that with another '/usr/bin/zlm-pg-vacuum --full' but this also had no effect
    Does anyone have any ideas about what we can do to alleviate this issue? By our rough calculations we have around 90 days before the database will close to connections

    davidmscott,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • Compatibility of PostgreSQL database with Database Adapter OSB 10.3.1

    Hello,
    I'm having problems configuring a Database Adapter for a PostgreSQL database in OSB 10.3.1. Someone knows if this adapter supports PostgreSQL databases?
    Thank you,
    Regards
    Héctor

    I doubt. Drivers/DB support is at http://download.oracle.com/docs/cd/E11036_01/integrate.1013/b28994/adptr_db.htm#BDCIIDAE
    Manoj
    Edited by: mneelapu on Aug 18, 2009 4:18 PM

  • Error in Postgresql Database Restore

    Hello....All I am using postgre sql PgadminIII. Trying to restore my database but not restoring that data. I am putting image here to show the disabled restore option...Can anybody
    tell me how to restore in PostgreSql.

    Hello,
    This forum is for discussing issues with Microsoft SQL server. For issues regarding
    PostgreSQL, please post a question here
    http://www.dbforums.com/forumdisplay.php?81-PostgreSQL
    Satheesh
    My Blog | How to ask questions in technical forum

  • How to use Power BI designer preview to access a postgresql database

    We have a postgresql 9.1 database which we want to connect to Power BI Designer Preview. I’ve setup the machine according to the instructions given in support.office.com
    I am getting a error displaying:
    DataSource.Error: PostgreSQL: Failed to establish a connection to <IP>.

    Hi,
    Did you provide your username/password through the Power Query credential dialog?
    What authentication method is the database configured for?
    Tristan
    Hi Abhirich,
    Have you been able to successfully authenticate the user after considering the questions presented by Tristan?
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com, Twitter:
    @nimblelearn

Maybe you are looking for

  • Rare Problem with latest NVidia GeForce 8600m GT

    I downloaded apple's nvidia update from here for windows xp: http://docs.info.apple.com/article.html?artnum=306891 After installing it everything seemed to work fine, my dvi to video adapter was working like a charm. Now my problem was that after a f

  • TS1424 I can' t connect to iTunes using my iPhone and yet I can using my iPad

    I am unable to connect to iTunes with my iPhone and yet I can with my ipad

  • My screen resolution becomes small when I play any game

    Hi, I own a Toshiba Satellite M30X-113 with a atim mobility radeon 9700 graphics card. Lately, when I have been playing games, the screen resolution has shrunk ,and its become small. I try changing it from the menu (video options) but its still has n

  • LSMW for Recruitment

    Dear All, Just want to know, can we create LSMW for recruitment module? Incase if we have to do mass upload? Regard KKS

  • Create soap request with class "csoapdocument"

    Hi, i want to create a soap request with class "csoapdocument". The request looks like:      <SOAP-ENV:Body>         <m:SearchRequest xmlns:m="https://abcdefg">                     <Root>                  <MetaData>                <SourceID>ID1</Sour