Unable to create a Postgre Datasource from windows With Databaseinstalled in RHEL 5.3

Unable to create a Postgre Datasource from windows With Databaseinstalled in RHEL 5.3

am 15.07.2010 12:57:11 von Ravi Katkar

--_004_46AC8D44F3AE1F4888F137837D0DF63508853ED287INHYWEXMB2i nf_
Content-Type: multipart/alternative;
boundary="_000_46AC8D44F3AE1F4888F137837D0DF63508853ED287INH YWEXMB2inf_"

--_000_46AC8D44F3AE1F4888F137837D0DF63508853ED287INHYWEXMB2i nf_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable



________________________________
From: Ravi Katkar
Sent: Thursday, July 15, 2010 2:45 PM

Hi List ,

I have installed PostgreSQL server in RHEL 5.3. I can able to start the dat=
abase and also able to work on the DB by creating tables etc. When I am try=
ing to connect thru ODBC from windows machine to the database server instal=
led in Linux its giving the following error:

No connection could be made because the target machine actively refusedit.



For resolving the same issue I changed the configuration file by adding the=
host machine and listen_address =3D '*', but the problem is I am unable to=
restart the server. Getting the below errors, Can anyone help me regarding=
this?

/etc/init.d/postgresql restart
Stopping postgresql service: [FAILED]

/var/lib/pgsql/data is missing. Use "service postgresql initdb" to initiali=
ze the cluster first.
[FAILED]

service postgresql initdb
Initializing database: mkdir: cannot create directory `/var/lib/pgsql/data/=
pg_log': File exists
[FAILED]



Thanks and regards,

Sanjeeb Rath | Technical Consultant | [cid:image001.jpg@01CB243A.93CBEF30] =
| Tel: +91 40 4444 1000 Extn: 3458 | Mobile: +91 994 947 0774 | Sanjeeb.R=
ath@Infor.com|Q-City, 4th Floor | Nanakramguda Village, Serilingampally Man=
dal | Hyderabad-500032 | INDIA


--_000_46AC8D44F3AE1F4888F137837D0DF63508853ED287INHYWEXMB2i nf_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" xmlns=3D"http://ww=
w.w3.org/TR/REC-html40">




namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" name=3D"countr=
y-region"/>
name=3D"PlaceType"/>
name=3D"PlaceName"/>
name=3D"place"/>









=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 



=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 





e=3D3
face=3D"Times New Roman">








ze:10.0pt;
font-family:Tahoma;font-weight:bold'>From:
face=3DTahoma> Ravi Kat=
kar

Sent: Thursday, July 15, 201=
0 2:45
PM





:10.0pt;
font-family:Verdana'>Hi List =
,



:10.0pt;
font-family:Verdana'> 



:10.0pt;
font-family:Verdana'>I have installed PostgreSQL server in RHEL 5.3. I can =
able
to start the database and also able to work on the DB by creating tables et=
c.
When I am trying to connect thru ODBC from windows machine to the database =
server
installed in Linux its giving the following error:
>



=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 



=3D'font-size:
10.0pt;font-family:Arial;color:navy'>No connection could be made because th=
e
target machine actively refusedit.



:10.0pt;
font-family:Verdana'> 



:10.0pt;
font-family:Verdana'> 



:10.0pt;
font-family:Verdana'> 



:10.0pt;
font-family:Verdana'>For resolving the same issue I changed the configurati=
on
file by adding the host machine and listen_address =3D ‘*’, but=
the
problem is I am unable to restart the server. Getting the below errors, Can
anyone help me regarding this?



:10.0pt;
font-family:Verdana'> 



:10.0pt;
font-family:Verdana'>/etc/init.d/postgresql restart
>



:10.0pt;
font-family:Verdana'>Stopping postgresql
service:           &=
nbsp;           &nbs=
p;      
[FAILED]



:10.0pt;
font-family:Verdana'> 



:10.0pt;
font-family:Verdana'>/var/lib/pgsql/data is missing. Use "service
postgresql initdb" to initialize the cluster first.
<=
/font>



:10.0pt;
font-family:Verdana'>         =
            
            &nb=
sp;            =
            [FA=
ILED]



:10.0pt;
font-family:Verdana'> 



:10.0pt;
font-family:Verdana'>service postgresql initdb



:10.0pt;
font-family:Verdana'>Initializing database: mkdir: cannot create directory
`/var/lib/pgsql/data/pg_log': File exists



:10.0pt;
font-family:Verdana'>         =
            &nb=
sp;            =
            &nb=
sp;           
[FAILED]



:10.0pt;
font-family:Verdana'> 



:10.0pt;
font-family:Verdana'> 



:10.0pt;
font-family:Verdana'> 



:8.0pt;
font-family:Verdana'>Thanks and regards,



:8.0pt;
font-family:Verdana'> 



=3D'font-size:
8.0pt;font-family:Verdana;color:gray'>Sanjeeb Rath | Technical Consultant
src=3D"cid:image001.jpg@01CB243A.93CBEF30">| Tel: +91 40 4444 1000 Extn:
3458  | Mobile: +91 994 947 0774 |  Sanjeeb.Rath@Infor.com|Q-City=
,
4th Floor |  PlaceName
w:st=3D"on">Nanakramguda
PLACETYPE u2:st=3D"on"> w:st=3D"on">Village, Serilingampally
Mandal | Hyderabad-500032 | =
dInsAuthor=3D"rganotra" w:insDate=3D"2010-06-24T10:15:00Z" w:insAuthor=3D"r=
ganotra"> uthor=3D"rganotra" w:insDate=3D"2010-06-24T10:15:00Z" w:insAuthor=3D"rganot=
ra"> w:st=3D"on">INDIA
LACE>
<=
/o:p>



'font-size:
12.0pt'> 









--_000_46AC8D44F3AE1F4888F137837D0DF63508853ED287INHYWEXMB2i nf_--

--_004_46AC8D44F3AE1F4888F137837D0DF63508853ED287INHYWEXMB2i nf_
Content-Type: image/jpeg; name="image001.jpg"
Content-Description: image001.jpg
Content-Disposition: inline; filename="image001.jpg"; size=1140;
creation-date="Thu, 15 Jul 2010 16:27:12 GMT";
modification-date="Thu, 15 Jul 2010 16:27:12 GMT"
Content-ID:
Content-Transfer-Encoding: base64

/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL DBkSEw8UHRofHh0a
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgN DRgyIRwhMjIyMjIy
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/ wAARCAARAEEDASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgc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