By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,650 Members | 812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,650 IT Pros & Developers. It's quick & easy.

FATAL ERROR on Solaris 10

P: 12
Hi All


I am trying to run my C sample code on Solaris machine ,that internally interacts with postgres database ,and its job is to print the result by retriving the data from table.


But when i run it iam getting the following error message.
$./odbc
Connection to database failed.
FATAL: role "pce" does not exist
$

I tried in su mode also, but the same message repeated with "root" does not exist.

Please some body let me know is there any mechanism to link the user with the database.

Thanks in Advance\
Pradi
Jan 4 '07 #1
Share this Question
Share on Google+
2 Replies


P: 17
Hi All


I am trying to run my C sample code on Solaris machine ,that internally interacts with postgres database ,and its job is to print the result by retriving the data from table.


But when i run it iam getting the following error message.
$./odbc
Connection to database failed.
FATAL: role "pce" does not exist
$

I tried in su mode also, but the same message repeated with "root" does not exist.

Please some body let me know is there any mechanism to link the user with the database.

Thanks in Advance\
Pradi
Hi pradeep... this is Madhu. In search of my problem I saw u posted the same question. plz help me if u got the solution in ur case.

Thanks & Regards.
Oct 16 '07 #2

Expert 100+
P: 700
Hi All


I am trying to run my C sample code on Solaris machine ,that internally interacts with postgres database ,and its job is to print the result by retriving the data from table.


But when i run it iam getting the following error message.
$./odbc
Connection to database failed.
FATAL: role "pce" does not exist
$

I tried in su mode also, but the same message repeated with "root" does not exist.

Please some body let me know is there any mechanism to link the user with the database.

Thanks in Advance\
Pradi
Hey, I don't know solaris but did you create pce user on postgres.
Oct 16 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.