Professional Documents
Culture Documents
CONTENIDO
1.
2.
3.
4.
5.
6.
7.
8.
6.
1. ESTRUCTURAS DE MEMORIA Y
PROCESOS DE LA INSTANCIA.
10
11
12
13
14
15
PARA
En Mac OS se debe de editar el archivo .bash_profile que est
en el home del usuario
PGHOME=/Library/PostgreSQL/9.2/
PGDATA=${PGHOME}/data
PGLIB=${PGHOME}/lib
PGHOST=localhost
PATH=${PATH}:${PGHOME}/bin
16
PARA
En Linux se debe de editar el archivo (.profile | .bashrc
| .bash_profile) que est en el home del usuario
PGHOME=/usr/lib/postgresql
PGDATA=/var/lib/postgresql/9.1/main
PGLIB=${PGHOME}/lib
PGHOST=localhost
PATH=${PATH}:${PGHOME}/bin
17
18
6 PROCEDIMIENTO GENERAL DE
INSTALACIN
19
PARA
Ubuntu:
Instalar PostgrSQL
$ sudo apt-get update
Fedora:
Instalar Postgres
20
PARA
21
http://www.enterprisedb.com/products-services-training/
pgdownload#osx
22
7 PROCEDIMIENTO PARA
CONFIGURACIN DE UN DBMS
23
$ sudo su
# 5 login a psql
$ psql
# 6 comprobar base de datos
psql # \l
psql #
psql #
psql #
24
\q
$ psql -h localhost U us us
$ psql -h localhost U wo wo
25
$ psql -h localhost -U hr hr
\i /ruta_al_archivo/HR_pgsql.sql;
psql #
\i /ruta_al_archivo/usda.sql;
psql #
\i /ruta_al_archivo/word.sql;
26
psql # \d
27
28