473,656 Members | 2,921 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

When I try to connect to a database, I get the following error : psql teleflowdb8

3 New Member
When I try to connect to a database, I get the following error :

psql teleflowdb8

psql: FATAL: database is not accepting commands to avoid wraparound data loss in database "teleflowdb 8"
HINT: Stop the postmaster and use a standalone backend to vacuum database "teleflowdb 8".

Then I try to go to standalone mode:

$./postgresql-8.2 stop
$su postgres
$cd /usr/lib/postgresql/8.2/bin

$./postgres --single -D /var/lib/postgresql/8.2/main/ teleflowdb8

I got the following error :
--single cannot access the server configuration file "/var/lib/postgresql/8.2/main/postgresql.conf ": No such file or directory

When to check the postgresql.conf file is located at /etc/postgresql/8.2/main

$ls

environment
log
pgdata
pg_hba.conf
pg_ident.conf
postgresql.conf
start.conf


So I did :

$./postgres --single -D /etc/postgresql/8.2/main teleflowdb8

But error as follows.
2012-02-24 19:04:28 SGT FATAL: "/etc/postgresql/8.2/main" is not a valid data directory
2012-02-24 19:04:28 SGT DETAIL: File "/etc/postgresql/8.2/main/PG_VERSION" is missing.

I do not have the /var/lib/pgsql/data directory.

Can anyone help on this issue. TQ
Feb 24 '12 #1
2 2041
wan fasiha
3 New Member
Please someone respond to this issue. tq
Feb 25 '12 #2
r035198x
13,262 MVP
Do you have a database initialized through the initdb command?
Feb 27 '12 #3

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

Similar topics

0
1651
by: bob .net | last post by:
Server exploI have recently installed Visual Studio .Net 2002 on my workstation running XP Professional. I can connect to local Access and MSDE databases successfully using ADO .Net. I can also setup ODBC dsn's that I can use from Access to browse my MSDE databases. When I try to add a new MSDE data connection from within Visual Studio's server exployer, I get as far as successfully executing the connection test. However, when I close...
1
1693
by: zelzel.zsu | last post by:
What is php's behavior when connect to a db? I've been told that php was once a dominant web programing language. I've read a few chapters of a php book. I was wonder what's php's performance. Perl was once for a while a popular programming language for cgi. But start very process per one web visit cause serioius problem to system performance.
1
7728
by: timVerizon | last post by:
Hoping someone can help here.. Our application (C#.Net) was receiving IBM.Data.DB2.DB2Exceptions ERROR SQL0904N Unsuccessful execution caused by an unavailable resource. Reason code: '', type of resource: '', and resource name: ''. SQLSTATE=57011 . When looking in db2diag.log, we found the following that seemed to correspond to each exception: 2005-05-03-08.58.57.470000 Instance:DB2 Node:000
4
3627
by: Alpha | last post by:
I have a window Application. this.close(); doesn't stop and close my application when I get an error. Instead it continues trying to execute the following codes. What code do I need to the application to exit where it catches the exception and close down the application? Thanks, Alpha conDB = new SqlConnection(conStr); try
1
2023
by: Ranjan as usual | last post by:
Dear folks I wrote a small snippet in VB .NET to connect to the exchange store, the code is below, however I get the following error message. Any solutions , or pointers would be appreciated. My store is located in exchange server 2003 and I'm developing from a testbox Here is the error An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in ExchangeServer.ex Additional information: Provider cannot be...
4
5207
by: Phil Campaigne | last post by:
Hi All, I just installed postgresql 7.3.4 as an upgrade to 7.3.2 and all went well untill I tried to log into a database that I successfully created. Here are the steps in question: bash-2.05b$ psql -h localhost -U postgres hardwoodthunder Welcome to psql 7.3.2, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands
2
5514
by: mike_li | last post by:
On Window 2000 Professional Server DB2 UDB Level: DB2 code release "SQL07029" with level identifie "030A0105" and informational tokens "DB2 v7.1.0.98", "n040510" and "WR21337". In the db2diag.log, ---------------------------------------------------- 2005-12-20-10.05.43.278000 Instance:MC Node:000
21
28022
by: Peter Nurse | last post by:
I have just upgraded to SQL Server 2005 from SQL Server 2000. In Microsoft SQL Server Management Studio, when I click on database properties, I receive the following error:- Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. (Microsoft SQL Server, Error: 468)
3
2348
by: venkatesh | last post by:
hai to everybody I need to know how to connect database ms access or oracle with c or c++? please if u know tell I am interested in doing project with c thanks in advance....
3
1493
by: jeenajos | last post by:
Hi all, Im new to .net. When i tried to connect database using the below code an error came as Instance Failure. Pls Help Me. con = New SqlConnection("Data source=.\\SQLEXPRESS;AttachDbFilename=\C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Classif.mdf\;Integrated Security=True;User Instance=True") Thank U Jeen
0
8382
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8498
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8600
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7311
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1600
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.