Postgre Architecture

Started by Cláudia Morgadoover 22 years ago7 messagesgeneral
Jump to latest
#1Cláudia Morgado
claudia.morgado@widesoft.com.br

Hello!

We working currently with the Oracle and we would like to know if postgresql has some similar components as the concept of instance, buffer database cache, Redo log buffer, datafiles, background process, etc.

How postgre works? It works in memory?

There is some figure that ilustrates your architecture?

regards,
Carla Mello e Cláudia Morgado.

#2Rajesh Kumar Mallah
mallah@trade-india.com
In reply to: Cláudia Morgado (#1)
Re: Postgre Architecture

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
<br>
you may check<br>
<li><br>
</li>
<li><a
href="http://developer.postgresql.org/docs/pgsql/src/tools/backend/index.html&quot;&gt;Flowchart
of the
PostgreSQL backend</a>
</li>
<li><a href="http://developer.postgresql.org/pdf/internalpics.pdf&quot;&gt;Database
Internals Presentation</a>
</li>
<li><a href="http://developer.postgresql.org/osdn.php&quot;&gt;The
Implementation of PostgreSQL</a>
</li>
<br>
in the URL below<br>
<br>
<a class="moz-txt-link-freetext" href="http://developer.postgresql.org/&quot;&gt;http://developer.postgresql.org/&lt;/a&gt;&lt;br&gt;
<br>
<br>
Regds<br>
Mallah.<br>
<br>
Cl&aacute;udia Morgado wrote:<br>
<blockquote type="cite"
cite="mid00d701c3a84f$4965d8c0$15011aac@widesoft.com.br">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2600.0" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2"><strong><em>Hello!</em></strong></font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">We working currently with the Oracle
and we would like to know if&nbsp;postgresql has some similar components as
the&nbsp;concept of&nbsp;instance, buffer database cache, Redo log buffer,
datafiles, background process, etc. </font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">How&nbsp;postgre works? It works in
memory?</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">There is some figure that ilustrates
your architecture?</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">regards,</font></div>
<div><font face="Arial" size="2">Carla Mello e Cl&aacute;udia Morgado.</font></div>
<div>&nbsp;</div>
</blockquote>
<br>
</body>
</html>

#3Cláudia Morgado
claudia.morgado@widesoft.com.br
In reply to: Cláudia Morgado (#1)
Pass data of database Oracle to PostgreSQL

Hello!!
Somebody could help me to pass the data that are of a database Oracle 8i for my new database Postgre 7.3.4 (linux).
Regards,
Cláudia
-----------------------------------------------------------------------------------------
Cláudia Morgado cmorgado@widesoft.com.br
Banco de Dados
Fone: (19) 3451-6300 www.widesoft.com.br
-----------------------------------------------------------------------------------------

#4Dieter Fischer
dieter.fischer@grid-it.ch
In reply to: Cláudia Morgado (#3)
Re: Pass data of database Oracle to PostgreSQL

Hello Claudia

Have a look at http://www.samse.fr/GPL/ora2pg/

Regards

Dieter

-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org] On Behalf Of Cláudia Morgado
Sent: Monday, January 12, 2004 8:12 PM
To: pgsql-general@postgresql.org
Subject: [GENERAL] Pass data of database Oracle to PostgreSQL

Hello!!
Somebody could help me to pass the data that are of a database Oracle 8i
for my new database Postgre 7.3.4 (linux).
Regards,
Cláudia
------------------------------------------------------------------------
-----------------
Cláudia Morgado cmorgado@widesoft.com.br
Banco de Dados
Fone: (19) 3451-6300 www.widesoft.com.br
------------------------------------------------------------------------
-----------------

#5Thierry Missimilly
THIERRY.MISSIMILLY@BULL.NET
In reply to: Cláudia Morgado (#1)
Re: Pass data of database Oracle to PostgreSQL

Hi Claudia,

I have done a successuff schema and data migration from Oracle 8i to
PostgreSQL 7.4 by using the contrib :
postgresql-7.4/contrib/Oracle/ora2pg

Regards,
Thierry

Cláudia Morgado wrote:

Show quoted text

Hello!!
Somebody could help me to pass the data that are of a database Oracle
8i for my new database Postgre 7.3.4 (linux).
Regards,
Cláudia
------------------------------------
----------------------------------------------------
Cláudia Morgado cmorgado@widesoft.com.br
Banco de Dados
Fone: (19) 3451-6300 www.widesoft.com.br

----------------------------------------------------------------------------------------

#6Thierry Missimilly
THIERRY.MISSIMILLY@BULL.NET
In reply to: Cláudia Morgado (#1)
Re: Pass data of database Oracle to PostgreSQL

Hi,

I'm not sure to well understand your problem.
But, Ora2pg need 3 modules :
- Two of them : DBI-1.38 and DBD-Pg-1.22 have to be comile and install
from your Postgres environnement. For example /home/postgres.
- And DBD-Oracle-1.14 has to be compile and install in your Local Oracle
environment. For example : /home/oracle. With the Oracle Shell variables
set :
$ORACLE_BASE
$ORACLE_HOME

Futher more, the script ora2pg need in the first lines the setting of
your local host ORACLE_HOME, for example :
$ENV[ORACLE_HOME]='/home/oracle/product/9.2.0'

That means that if your Postgres Database is on serverA and you want to
migrate an Oracle database form serverB, you have to have an Oracle
client on ServerA and set the Perl variables as these :
my $dbsrc = 'dbi:Oracle:host=serverB;sid=advisor2; port=1521';
my $dbuser = 'system';
my $dbpswd = 'syspasswd'

If you don't have an Oracle Client Licence on serverA. It is more
complex. I think in that case, that a better idea is to install Postgres
on ServerB, do the migration, dump the Postgres migrate DB, and restore
the dump on ServerA.
One more thing, I have noted that a same DB takes at least twice disk
space on Postgres than on Oracle. I haven't still, dicovered why.

Thierry Missimilly

Cláudia Morgado wrote:

Show quoted text

Hi , We still don´t obtain to user the Ora2pg.pl. :( In the
installation of the requirement ones of the Ora2pg.pl a problem in the
compilation of module Perl DBD:Oracle occurred.
It sees the error below:
" The ORACLE_HOME environment variable must be set.
It must be set to hold the path to an Oracle installation directory
on this machine (or a machine with a compatible architecture).
See the README.clients file for more information.
ABORTED!" The migration that we are making is of the database
Oracle 8i for PostgreSQL 7.4.1, being that the database are installed
in different servers. How we can continue in this
installation? regards,Carla e Cláudia

----- Original Message -----
From: Thierry Missimilly
To: Cláudia Morgado
Cc: pgsql-general@postgresql.org
Sent: Monday, January 19, 2004 8:20 AM
Subject: Re: [GENERAL] Pass data of database Oracle to
PostgreSQL
Hi Claudia,

I have done a successuff schema and data migration from
Oracle 8i to PostgreSQL 7.4 by using the contrib :
postgresql-7.4/contrib/Oracle/ora2pg

Regards,
Thierry

Cláudia Morgado wrote:

Hello!!
Somebody could help me to pass the data that are of a
database Oracle 8i for my new database Postgre 7.3.4
(linux).
Regards,
Cláudia
-----------------------------------------------------------------------------------------

Cláudia Morgado cmorgado@widesoft.com.br
Banco de Dados
Fone: (19) 3451-6300 www.widesoft.com.br

----------------------------------------------------------------------------------------

#7Carla Mello
carla.mello@widesoft.com.br
In reply to: Cláudia Morgado (#1)
Executing dynamic queries (EXECUTE)

Hello!

I need to execute a dynamic query and capture your result in a integer variable.

I´m using the statement "EXECUTE string", but I don´t obtain to capture the result of dynamic query.

See the example:

======================================================
create or replace function f_population_check() returns bigint as
'
declare
v_tot bigint;
v_query varchar(4000);
v_count integer;
r record;
begin
v_tot:= 0;
for r in select * from pg_tables loop
v_count:= 0;
v_query := ''select count(*) from '' || r.tablename;
v_count:= EXECUTE v_query;
if v_count = 0 then
RAISE NOTICE ''Empty table % '',r.tablename;
end if;
v_tot:= v_tot + 1;
end loop;
return v_tot;
end;
'
language 'plpgsql';

======================================================
ERROR: parse error at or near "$1" at character 18
CONTEXT: PL/pgSQL function "f_population_check" line 11 at assignment

======================================================
Somebody could help me?
Thanks, Carla Mello.