sequence id overflow ERROR using timescaledb Postgresql - postgresql
I am using timescaledb version 2.7.2, and PostgreSQL 12.11 (Ubuntu 12.11-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit
I tried to compress a chuck using the compress_chunk function and running job as well, and I got "sequence id overflow" message ERROR.
Any idea how to fix it or why I got this error?
Note: I compressed other chucks without problem.
SELECT 'set temp_file_limit =-1; SELECT compress_chunk(''' || chunk_schema|| '.' || chunk_name || ''');'
FROM timescaledb_information.chunks
WHERE is_compressed =false;
?column?
-------------------------------------------------------------------------------------------
set temp_file_limit =-1; SELECT compress_chunk('_timescaledb_internal._hyper_1_2_chunk');
set temp_file_limit =-1; SELECT compress_chunk('_timescaledb_internal._hyper_1_3_chunk');
set temp_file_limit =-1; SELECT compress_chunk('_timescaledb_internal._hyper_1_4_chunk');
set temp_file_limit =-1; SELECT compress_chunk('_timescaledb_internal._hyper_1_5_chunk');
set temp_file_limit =-1; SELECT compress_chunk('_timescaledb_internal._hyper_1_8_chunk');
SELECT compress_chunk('_timescaledb_internal._hyper_1_2_chunk');
DEBUG: building index "pg_toast_29929263_index" on table "pg_toast_29929263" serially
DEBUG: building index "compress_hyper_3_12_chunk__compressed_hypertable_3_ivehicleid__" on table "compress_hyper_3_12_chunk" serially
DEBUG: building index "compress_hyper_3_12_chunk__compressed_hypertable_3_gid__ts_meta" on table "compress_hyper_3_12_chunk" serially
DEBUG: building index "compress_hyper_3_12_chunk__compressed_hypertable_3_irowversion_" on table "compress_hyper_3_12_chunk" serially
DEBUG: building index "compress_hyper_3_12_chunk__compressed_hypertable_3_gdiagnostici" on table "compress_hyper_3_12_chunk" serially
DEBUG: building index "compress_hyper_3_12_chunk__compressed_hypertable_3_gcontrolleri" on table "compress_hyper_3_12_chunk" serially
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.58", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.86", size 103432192
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.85", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.84", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.83", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.82", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.81", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.80", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.79", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.78", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.77", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.76", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.75", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.74", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.73", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.72", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.71", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.70", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.69", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.68", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.67", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.66", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.65", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.64", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.63", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.62", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.61", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.60", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.59", size 1073741824
ERROR: sequence id overflow
Time: 1105092.862 ms (18:25.093)
SET client_min_messages TO DEBUG1; CALL run_job(1000);
SET
Time: 1.120 ms
DEBUG: Executing policy_compression with parameters {"hypertable_id": 1, "compress_after": "28 days"}
DEBUG: building index "pg_toast_29929276_index" on table "pg_toast_29929276" serially
DEBUG: building index "compress_hyper_3_13_chunk__compressed_hypertable_3_ivehicleid__" on table "compress_hyper_3_13_chunk" serially
DEBUG: building index "compress_hyper_3_13_chunk__compressed_hypertable_3_gid__ts_meta" on table "compress_hyper_3_13_chunk" serially
DEBUG: building index "compress_hyper_3_13_chunk__compressed_hypertable_3_irowversion_" on table "compress_hyper_3_13_chunk" serially
DEBUG: building index "compress_hyper_3_13_chunk__compressed_hypertable_3_gdiagnostici" on table "compress_hyper_3_13_chunk" serially
DEBUG: building index "compress_hyper_3_13_chunk__compressed_hypertable_3_gcontrolleri" on table "compress_hyper_3_13_chunk" serially
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.87", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.115", size 103432192
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.114", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.113", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.112", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.111", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.110", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.109", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.108", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.107", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.106", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.105", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.104", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.103", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.102", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.101", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.100", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.99", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.98", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.97", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.96", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.95", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.94", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.93", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.92", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.91", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.90", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.89", size 1073741824
LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp713.88", size 1073741824
ERROR: sequence id overflow
CONTEXT: SQL statement "SELECT public.compress_chunk( chunk_rec.oid )"
PL/pgSQL function _timescaledb_internal.policy_compression_execute(integer,integer,anyelement,integer,boolean,boolean) line 35 at PERFORM
SQL statement "CALL _timescaledb_internal.policy_compression_execute(
job_id, htid, lag_value::INTERVAL,
maxchunks, verbose_log, recompress_enabled
)"
PL/pgSQL function _timescaledb_internal.policy_compression(integer,jsonb) line 51 at CALL
Time: 1113429.153 ms (18:33.429)
Related
Archiving not works
I've setup the WAL archiving already and when I'm running the following query, SELECT * FROM pg_stat archiver; The system gives me back this: Archived count 0, last_archived_wal (empty), last_archived_time (empty), failed_count, 40 (keep growing), last_failed_wal (lot of numbers, always same), and the fail time and stat reset. The log file: 2023-01-13 00:01:37.846 JST [5456] LOG: archive command failed with exit code 1 2023-01-13 00:01:37.846 JST [5456] DETAIL: The failed archive command was: copy "pg_wal\000000010000002300000063" "C:\server\archivedir\000000010000002300000063" 2023-01-13 00:01:37.848 JST [5456] WARNING: archiving write-ahead log file "000000010000002300000063" failed too many times, will try again later The system cannot find the path specified. The psql create the files, 16 MB each and also create the .ready files. Bit when I like to check the status ( SELECT * FROM pg_stat_archiver; )
Postgreql wal archive keeps failing: archive command failed with exit code 1
I have a file that keeps failing to archive. The failed archive command was: test ! -f /mnt/wal_archive/archivedir/00000001000003F000000072 && cp pg_wal/00000001000003F000000072 /mnt/wal_archive/archivedir/00000001000003F000000072 As instructed in other questions, I already manually deleted the file manually on the archivedir, and the file was copied again automatically, once that occurs, I start seeing the fail command again. At the moment the file is in the pg_wal and in the archivedir. Once the file is in the archivedir shouldn't it be removed from from the pg_wal? I'm a bit lost and out of ideas, any help would be appreciated. thanks UPDATE: This is all I get from the logs DETAIL: The failed archive command was: test ! -f /mnt/wal_archive/archivedir/00000001000003F000000072 && cp pg_wal/00000001000003F000000072 /mnt/wal_archive/archivedir/00000001000003F000000072 Error 2022-05-12 09:54:29.207 CEST2022-05-12 07:54:29.206 UTC [18] LOG: archive command failed with exit code 1 Error 2022-05-12 09:54:29.207 CEST2022-05-12 07:54:29.206 UTC [18] DETAIL: The failed archive command was: test ! -f /mnt/wal_archive/archivedir/00000001000003F000000072 && cp pg_wal/00000001000003F000000072 /mnt/wal_archive/archivedir/00000001000003F000000072 Error 2022-05-12 09:54:29.207 CEST2022-05-12 07:54:29.207 UTC [18] WARNING: archiving write-ahead log file "00000001000003F000000072" failed too many times, will try again later 2nd Update: Furthermore the wal_keep_segments and the max_wal_size settings are being ignored.
Cannot Install Postgresql 14 on my windows server 2019 - post install errors
I have PgAmin 4.6 running with PostgreSQL 12 on my windows 2019 server. I want to install postgreSQL 14. I have tried installing it using the latest EDB .exe file a few times: Each attempt I wind up with a post installation error. I've tried logged in as an administrator. I've adjusted the postgresql folder security privileges to allow 'all application packages', 'all restricted application packages', users in the administrator group and my own user account with full control... and I have even tried adding postgres as a local administrator account and installing from an elevated cmd-prompt. Any way I have sliced it - I continue to get the post-installation error. The installer finishes, but no postgresql 14 service installed, and the only folder in the postgreSQL 14 directory is Data. What am I missing? What gives? Can I use pgAdmin to create a new postgresql 14 server? How do I initialize a postgreSQL 14 database? Wywould it matter if I already have pdAdmin 4.6 and postgreSQL 12 installed?I'd appreciate a little help. Many thanks! Log started 01/21/2022 at 18:20:18 Preferred installation mode : qt Trying to init installer in mode qt Mode qt successfully initialized Setting variable whoami from C:\WINDOWS\System32\whoami Script exit code: 0 Script output: dn\USER Script stderr: Executing C:\WINDOWS\System32\icacls "C:\Users\USER\AppData\Local\Temp/postgresql_installer_631f935164" /inheritance:r Script exit code: 0 Script output: processed file: C:\Users\USER\AppData\Local\Temp/postgresql_installer_631f935164 Successfully processed 1 files; Failed processing 0 files Script stderr: Executing C:\WINDOWS\System32\icacls "C:\Users\USER\AppData\Local\Temp/postgresql_installer_631f935164" /T /Q /grant "dn\USER:(OI)(CI)F" Script exit code: 0 Script output: Successfully processed 1 files; Failed processing 0 files Script stderr: Executing C:\WINDOWS\System32\cscript //NoLogo "C:\Users\USER\AppData\Local\Temp\postgresql_installer_631f935164\prerun_checks.vbs" Script exit code: 0 Script output: The scripting host appears to be functional. Script stderr: [18:20:30] Using branding: PostgreSQL 14 Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14 SB_Version. Setting variable sb_version to empty value Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14 pgAdmin_Version. Setting variable pgadmin_version to empty value Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14 Data Directory. Setting variable server_data_dir to empty value Executing C:\Users\USER\AppData\Local\Temp/postgresql_installer_631f935164/temp_check_comspec.bat Script exit code: 0 Script output: Active code page: 1252 Active code page: 1252 "test ok" Script stderr: Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14 Data Directory. Setting variable iDataDirectory to empty value Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14 Service ID. Setting variable iServiceName to empty value Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14 Service Account. Setting variable iServiceAccount to empty value Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14 Super User. Setting variable iSuperuser to empty value Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14 DisableStackBuilder. Setting variable iDisableStackBuilder to empty value [18:20:31] Existing base directory: C:\Program Files\PostgreSQL\14 [18:20:31] Existing data directory: [18:20:31] Using branding: PostgreSQL 14 [18:20:31] Using Super User: postgres and Service Account: NT AUTHORITY\NetworkService [18:20:31] Using Service Name: postgresql-x64-14 Executing C:\Users\USER\AppData\Local\Temp\postgresql_installer_631f935164\getlocales.exe Script exit code: 0 Script output: EnglishxxCOMMAxxxxSPxxAustralia=English, Australia EnglishxxCOMMAxxxxSPxxBelize=English, Belize EnglishxxCOMMAxxxxSPxxCanada=English, Canada EnglishxxCOMMAxxxxSPxxCaribbean=English, Caribbean EnglishxxCOMMAxxxxSPxxHongxxSPxxKongxxSPxxSAR=English, Hong Kong SAR EnglishxxCOMMAxxxxSPxxIndia=English, India EnglishxxCOMMAxxxxSPxxIndonesia=English, Indonesia EnglishxxCOMMAxxxxSPxxIreland=English, Ireland **_TRUNCATED_** Script stderr: [18:21:45] Data Directory exists and is empty. Removing it Preparing to Install Preparing to Install Directory already exists: C:\Program Files\PostgreSQL\14\installer Unpacking files Unpacking C:\Program Files\PostgreSQL\14\installer\prerun_checks.vbs Unpacking C:\Program Files\PostgreSQL\14\installer\vcredist_x86.exe Directory already exists: C:\Program Files\PostgreSQL\14\installer Unpacking files Unpacking C:\Program Files\PostgreSQL\14\installer\vcredist_x64.exe Directory already exists: C:\Program Files\PostgreSQL\14 Directory already exists: C:\Program Files\PostgreSQL\14\..._***TRUNCATED** Unpacking files Unpacking C:\Program Files\PostgreSQL\14\bin\pg_regress_ecpg.exe Unpacking C:\Program Files\PostgreSQL\14\bin\..._***TRUNCATED UNPACK A BOATLOAD OF FILES FOR INSTALLATION***_ Directory already exists: C:\Program Files\PostgreSQL\14 Directory already exists: C:\Program Files\PostgreSQL\14\bin Directory already exists: C:\Program Files\PostgreSQL\14\lib Directory already exists: C:\Program Files\PostgreSQL\14\installer Directory already exists: C:\Program Files\PostgreSQL\14\installer\server Directory already exists: C:\Program Files\PostgreSQL\14\scripts Directory already exists: C:\Program Files\PostgreSQL\14\scripts\images Unpacking files Unpacking C:\Program Files\PostgreSQL\14\lib\libecpg_compat.dll ...**TRUNCATED*** Unpacking C:\Program Files\PostgreSQL\14\installer\vcredist_x64.exe Setting variable whoami from C:\WINDOWS\System32\whoami Script exit code: 0 Script output: dn\USER Script stderr: Executing C:\WINDOWS\System32\icacls "C:\Users\USER\AppData\Local\Temp/postgresql_installer_3f464cf94c" /inheritance:r Script exit code: 0 Script output: processed file: C:\Users\USER\AppData\Local\Temp/postgresql_installer_3f464cf94c Successfully processed 1 files; Failed processing 0 files Script stderr: Executing C:\WINDOWS\System32\icacls "C:\Users\USER\AppData\Local\Temp/postgresql_installer_3f464cf94c" /T /Q /grant "dn\USER:(OI)(CI)F" Script exit code: 0 Script output: Successfully processed 1 files; Failed processing 0 files Script stderr: [18:24:34] Removing the existing ldconfig setting - set during the previous installation. [18:24:34] Running the post-installation/upgrade actions: [18:24:34] Write the base directory to the ini file... [18:24:34] Write the version number to the ini file... Initialising the database cluster (this may take a few minutes)... Executing C:\WINDOWS\System32\cscript //NoLogo "C:\Program Files\PostgreSQL\14/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Users\USER\AppData\Local\Temp/postgresql_installer_3f464cf94c" "C:\Program Files\PostgreSQL\14" "D:\pgData14" 5433 "DEFAULT" 0 Script exit code: 1 Script output: WScript.Shell Initialized... Scripting.FileSystemObject initialized... Called CreateDirectory(D:\pgData14)... Called CreateDirectory(D:\)... Called ClearAcl (D:\pgData14)... Executing batch file 'radEA2DE.bat'... D:\pgData14 DN\USER:(I)(OI)(CI)(F) BUILTIN\Administrators:(I)(F) CREATOR OWNER:(I)(OI)(CI)(IO)(F) NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F) BUILTIN\Administrators:(I)(OI)(CI)(IO)(F) BUILTIN\Users:(I)(CI)(S,WD) BUILTIN\Users:(I)(CI)(S,AD) BUILTIN\Users:(I)(OI)(CI)(RX) Successfully processed 1 files; Failed processing 0 files Removing inherited ACLs on (D:\pgData14) Executing batch file 'radEA2DE.bat'... processed file: D:\pgData14 Successfully processed 1 files; Failed processing 0 files WScript.Network initialized... strParentOfDataDirD:\ logged in userDN\USER Called AclCheck(D:\pgData14) Called IsVistaOrNewer()... 'winmgmts' object initialized... Version:10. MajorVersion:10 Executing icacls to ensure the DN\USER account can read the path D:\pgData14 Executing batch file 'radEA2DE.bat'... processed file: D:\pgData14 Successfully processed 1 files; Failed processing 0 files Called IsVistaOrNewer()... 'winmgmts' object initialized... Version:10. MajorVersion:10 Ensuring we can write to the data directory (using icacls) to DN\USER: Executing batch file 'radEA2DE.bat'... processed file: D:\pgData14 Successfully processed 1 files; Failed processing 0 files Called IsVistaOrNewer()... 'winmgmts' object initialized... Version:10. MajorVersion:10 Granting full access to (NT AUTHORITY\NetworkService) on (D:\pgData14) Executing batch file 'radEA2DE.bat'... processed file: D:\pgData14 Successfully processed 1 files; Failed processing 0 files Called IsVistaOrNewer()... 'winmgmts' object initialized... Version:10. MajorVersion:10 Granting full access to CREATOR OWNER on (D:\pgData14) Executing batch file 'radEA2DE.bat'... processed file: D:\pgData14 Successfully processed 1 files; Failed processing 0 files Called IsVistaOrNewer()... 'winmgmts' object initialized... Version:10. MajorVersion:10 Granting full access to SYSTEM on (D:\pgData14) Executing batch file 'radEA2DE.bat'... processed file: D:\pgData14 Successfully processed 1 files; Failed processing 0 files Called IsVistaOrNewer()... 'winmgmts' object initialized... Version:10. MajorVersion:10 Granting full access to Administrators on (D:\pgData14) Executing batch file 'radEA2DE.bat'... processed file: D:\pgData14 Successfully processed 1 files; Failed processing 0 files Executing batch file 'radEA2DE.bat'... initdb: error: The program "postgres" was found by "C:/Program Files/PostgreSQL/14/bin/initdb.exe" but was not the same version as initdb. Check your installation. Called Die(Failed to initialise the database cluster with initdb)... Failed to initialise the database cluster with initdb Script stderr: Program ended with an error exit code Error running C:\WINDOWS\System32\cscript //NoLogo "C:\Program Files\PostgreSQL\14/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Users\USER\AppData\Local\Temp/postgresql_installer_3f464cf94c" "C:\Program Files\PostgreSQL\14" "D:\pgData14" 5433 "DEFAULT" 0: Program ended with an error exit code Problem running post-install step. Installation may not complete correctly The database cluster initialisation failed. Setting variable whoami from C:\WINDOWS\System32\whoami Script exit code: 0 Script output: dn\USER Script stderr: Executing C:\WINDOWS\System32\icacls "C:\Users\USER\AppData\Local\Temp/postgresql_installer_4701618998" /inheritance:r Script exit code: 0 Script output: processed file: C:\Users\USER\AppData\Local\Temp/postgresql_installer_4701618998 Successfully processed 1 files; Failed processing 0 files Script stderr: Executing C:\WINDOWS\System32\icacls "C:\Users\USER\AppData\Local\Temp/postgresql_installer_4701618998" /T /Q /grant "dn\USER:(OI)(CI)F" Uninstalling C:\Program Files\PostgreSQL\14\...**__TRUNCATED UNINSTALLED THE BOATLOAD THAT WAS INSTALLED__** Uninstalling C:/Program Files/PostgreSQL/14/bin... Skipping C:/Program Files/PostgreSQL/14 Uninstallation completed Exiting with code 1
There seems to be some conflict between running as an underprivileged user and administrator. You have to run as an underprivileged user to create the database cluster and then an administrator to register the service. To get around this, first run initdb in some other directory, rather than the postgres data directory eg: \apps\server\postgres\bin\initdb.exe -A md5 -Upostgres -Eutf8 -W -D"data" --no-locale then you copy the data directory created to the postgres data dir specified in the failed install, and then register the service manually like: pg_ctl -N postgres -D your_postgres_data_dir Then you will be able to start/manage the postgres service in windows services as normal.
archive command failed with exit code 1
WAL files are not archiving to archive location, even space is available on mount point. Please find below errors. cp: write error: No space left on device 2021-11-29 11:27:08.672 UTC [3725060] LOG: archive command failed with exit code 1 2021-11-29 11:27:08.672 UTC [3725060] DETAIL: The failed archive command was: cp pg_wal/000000010000096B00000011 /home/ericsson/Backup/postgresql/pgbackup/wals/000000010000096B00000011 Please can any one provide the solution for this issue..
error while backing up oracle database using rman
I have a RMAN backup of 11G Release 1; the backup is full backup mean it includes control file, datafiles and archivelogs. The database name is ORCL and OS is windows XP. Now I want to restore this backup on new machine, the new machine is also windows XP and the directory structure is 100% same as on old machine. What I do on new machine; I install the 11 G R1 and create database with name of ORCL and copy the rman backup folder on new machine in same directory as it was on old machine. I got the problem (RMAN-03002) while recover the database. Below the following steps. C:\> sqlplus sys/kris#orcl as sysdba Sql> shutdown immediate; Sql> exit; C:\> set oracle_sid = orcl C:\> rman RMAN> connect target orcl RMAN> startup nomount; RMAN> restore controlfile from autobackup; Starting restore at 16-DEC-12 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=152 device type=DISK recovery area destination: D:\app\administrator\flash_recovery_area database name (or database unique name) used for search: ORCL channel ORA_DISK_1: AUTOBACKUP D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\AUT OBACKUP\2012_12_12\O1_MF_S_801849930_8DJQHTTW_.BKP found in the recovery area AUTOBACKUP search with format "%F" not attempted because DBID was not set channel ORA_DISK_1: restoring control file from AUTOBACKUP D:\APP\ADMINISTRATOR\ FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_12_12\O1_MF_S_801849930_8DJQHTTW_.BKP channel ORA_DISK_1: control file restore from AUTOBACKUP complete output file name=D:\APP\ADMINISTRATOR\ORADATA\ORCL\CONTROL01.CTL output file name=D:\APP\ADMINISTRATOR\ORADATA\ORCL\CONTROL02.CTL output file name=D:\APP\ADMINISTRATOR\ORADATA\ORCL\CONTROL03.CTL Finished restore at 16-DEC-12 RMAN> alter database mount; database mounted released channel: ORA_DISK_1 RMAN> catalog recovery area; Starting implicit crosscheck backup at 16-DEC-12 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=152 device type=DISK Crosschecked 5 objects Finished implicit crosscheck backup at 16-DEC-12 Starting implicit crosscheck copy at 16-DEC-12 using channel ORA_DISK_1 Finished implicit crosscheck copy at 16-DEC-12 searching for all files in the recovery area cataloging files... cataloging done List of Cataloged Files ======================= File Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_12_12\O 1_MF_1_1450_8DK6YO0M_.ARC File Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_12_13\O 1_MF_1_1451_8DLPSYDY_.ARC File Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_12_13\O 1_MF_1_1452_8DLVBJZ7_.ARC File Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_12_13\O 1_MF_1_1452_8DM0LM1L_.ARC File Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_12_13\O 1_MF_1_1453_8DM0LM1L_.ARC File Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_12_13\O 1_MF_1_1454_8DM0NQ8X_.ARC File Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_12_12\O 1_MF_S_801849930_8DJQHTTW_.BKP searching for all files in the recovery area List of Files Unknown to the Database ===================================== File Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_12_13\O 1_MF_1_1453_8DLXCJOB_.ARC Do you really want to catalog the above files (enter YES or NO)? Y cataloging files... no files cataloged List of Files Which Where Not Cataloged ======================================= File Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_12_13\O 1_MF_1_1453_8DLXCJOB_.ARC RMAN-07517: Reason: The file header is corrupted RMAN> list backup; List of Backup Sets =================== BS Key Size Device Type Elapsed Time Completion Time ------- ---------- ----------- ------------ --------------- 512 245.35M DISK 00:00:39 12-DEC-12 BP Key: 512 Status: AVAILABLE Compressed: NO Tag: TAG20121212T160059 Piece Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012 _12_12\O1_MF_ANNNN_TAG20121212T160059_8DJQ7OF3_.BKP List of Archived Logs in backup set 512 Thrd Seq Low SCN Low Time Next SCN Next Time ---- ------- ---------- --------- ---------- --------- 1 1440 487654314 09-DEC-12 487695982 10-DEC-12 1 1441 487695982 10-DEC-12 487719639 10-DEC-12 1 1442 487719639 10-DEC-12 487741536 10-DEC-12 1 1443 487741536 10-DEC-12 487741634 10-DEC-12 1 1444 487741634 10-DEC-12 487771824 10-DEC-12 1 1445 487771824 10-DEC-12 487803737 12-DEC-12 1 1446 487803737 12-DEC-12 487810247 12-DEC-12 1 1447 487810247 12-DEC-12 487819910 12-DEC-12 1 1448 487819910 12-DEC-12 487837944 12-DEC-12 BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 513 Full 1.94G DISK 00:03:18 12-DEC-12 BP Key: 513 Status: AVAILABLE Compressed: NO Tag: TAG20121212T160150 Piece Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012 _12_12\O1_MF_NNNDF_TAG20121212T160150_8DJQ92L5_.BKP List of Datafiles in backup set 513 File LV Type Ckp SCN Ckp Time Name ---- -- ---- ---------- --------- ---- 1 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\SYSTEM01.D BF 2 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\SYSAUX01.D BF 3 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\UNDOTBS01. DBF 4 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\USERS01.DB F 5 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\EXAMPLE01. DBF 6 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_SMILE. DBF 7 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_GENERA L.DBF 8 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_EMR.DB F 9 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_DIAGNO STICS.DBF 10 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_PHARMA CY.DBF 11 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_PATIEN T.DBF 12 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_ACCOUN T.DBF 13 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_INVENT ORY.DBF 14 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_HR.DBF 15 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_DUMMY. DBF 16 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_AUDIT. DBF 17 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_FACILI TIES.DBF 19 Full 487837993 12-DEC-12 D:\APP\ADMINISTRATOR\ORADATA\ORCL\HMS_COMMON .DBF BS Key Size Device Type Elapsed Time Completion Time ------- ---------- ----------- ------------ --------------- 514 222.00K DISK 00:00:06 12-DEC-12 BP Key: 514 Status: AVAILABLE Compressed: NO Tag: TAG20121212T160520 Piece Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012 _12_12\O1_MF_ANNNN_TAG20121212T160520_8DJQHGS1_.BKP List of Archived Logs in backup set 514 Thrd Seq Low SCN Low Time Next SCN Next Time ---- ------- ---------- --------- ---------- --------- 1 1449 487837944 12-DEC-12 487838190 12-DEC-12 BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 515 Full 12.17M DISK 00:00:00 12-DEC-12 BP Key: 515 Status: AVAILABLE Compressed: NO Tag: TAG20121212T160530 Piece Name: D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\201 2_12_12\O1_MF_S_801849930_8DJQHTTW_.BKP SPFILE Included: Modification time: 12-DEC-12 SPFILE db_unique_name: ORCL Control File Included: Ckp SCN: 487838210 Ckp time: 12-DEC-12 RMAN> run { Set until 1450 …. [sequence number taking from list backup command] Restore database; Recover database; } executing command: SET until clause Starting restore at 16-DEC-12 using channel ORA_DISK_1 channel ORA_DISK_1: starting datafile backup set restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set channel ORA_DISK_1: restoring datafile 00001 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\SYSTEM01.DBF channel ORA_DISK_1: restoring datafile 00002 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\SYSAUX01.DBF channel ORA_DISK_1: restoring datafile 00003 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\UNDOTBS01.DBF channel ORA_DISK_1: restoring datafile 00004 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\USERS01.DBF channel ORA_DISK_1: restoring datafile 00005 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\EXAMPLE01.DBF channel ORA_DISK_1: restoring datafile 00006 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_SMILE.DBF channel ORA_DISK_1: restoring datafile 00007 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_GENERAL.DBF channel ORA_DISK_1: restoring datafile 00008 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_EMR.DBF channel ORA_DISK_1: restoring datafile 00009 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_DIAGNOSTICS.DBF channel ORA_DISK_1: restoring datafile 00010 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_PHARMACY.DBF channel ORA_DISK_1: restoring datafile 00011 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_PATIENT.DBF channel ORA_DISK_1: restoring datafile 00012 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_ACCOUNT.DBF channel ORA_DISK_1: restoring datafile 00013 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_INVENTORY.DBF channel ORA_DISK_1: restoring datafile 00014 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_HR.DBF channel ORA_DISK_1: restoring datafile 00015 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_DUMMY.DBF channel ORA_DISK_1: restoring datafile 00016 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_AUDIT.DBF channel ORA_DISK_1: restoring datafile 00017 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_FACILITIES.DBF channel ORA_DISK_1: restoring datafile 00019 to D:\APP\ADMINISTRATOR\ORADATA\ORC L\HMS_COMMON.DBF channel ORA_DISK_1: reading from backup piece D:\APP\ADMINISTRATOR\FLASH_RECOVER Y_AREA\ORCL\BACKUPSET\2012_12_12\O1_MF_NNNDF_TAG20121212T160150_8DJQ92L5_.BKP channel ORA_DISK_1: piece handle=D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\B ACKUPSET\2012_12_12\O1_MF_NNNDF_TAG20121212T160150_8DJQ92L5_.BKP tag=TAG20121212 T160150 channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:04:55 Finished restore at 16-DEC-12 Starting recover at 16-DEC-12 using channel ORA_DISK_1 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of recover command at 12/16/2012 14:13:39 ORA-19698: D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO01.LOG is from different databa se: id=1329913169, db_name=ORCL
Yes, I know it's a bit too late, but it looks like that redolog (as well as its probably neighbours from the same directory) just left stalled from your previous experiments from other database there.