$ pg_lsclusters Ver Cluster Port Status Owner Data directory Log file 11 main 5432 online postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log
客户端连接失败,提示ORA-19815,alert.log有以下提示: Errors in file /u01/app/oracle/admin/orcl/bdump/orcl_arc0_2734.trc: ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available. Wed Jun 24 09:02:21 2020
You have following choices to free up space from flash recovery area:
Consider changing RMAN RETENTION POLICY. If you are using Data Guard, then consider changing RMAN ARCHIVELOG DELETION POLICY.
Back up files to tertiary device such as tape using RMAN BACKUP RECOVERY AREA command.
Add disk space and increase db_recovery_file_dest_size parameter to reflect the new space.
Delete unnecessary files using RMAN DELETE command. If an operating system command was used to delete files, then use RMAN CROSSCHECK and DELETE EXPIRED commands.
seed_provider: # Addresses of hosts that are deemed contact points. # Cassandra nodes use this list of hosts to find each other and learn # the topology of the ring. You must change this if you are running # multiple nodes! - class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters: # seeds is actually a comma-delimited list of addresses. # Ex: "<ip1>,<ip2>,<ip3>" - seeds: "59.206.31.152,10.160.4.196,10.160.4.197"
debian系统安装jigdo-file使用jigdo-lite命令,输入iso的jigdo文件url即可下载制作iso镜像。debian 10.1.0 dvd iso的jigdo下载地址在此。 因为需要安装的包postgresql-11-postgis-2.5不在前三张dvd,所以使用jigdo下载了第四张dvd镜像。
然后,将四张dvd iso分别挂载到/media目录的挂载点:
1 2 3 4
# mount /path/to/debian-10.1.0-amd64-DVD-1.iso /media/cdrom1/ # mount /path/to/debian-10.1.0-amd64-DVD-2.iso /media/cdrom2/ # mount /path/to/debian-10.1.0-amd64-DVD-3.iso /media/cdrom3/ # mount /path/to/debian-10.1.0-amd64-DVD-4.iso /media/cdrom4/
deb \[ trusted=yes \] file:/media/cdrom1/ buster main contrib deb \[ trusted=yes \] file:/media/cdrom2/ buster main contrib deb \[ trusted=yes \] file:/media/cdrom3/ buster main contrib deb \[ trusted=yes \] file:/media/cdrom4/ buster main contrib
使用rman convert database将oracle 10g 10.2.0.4 for windows x64环境下的数据库转换到oracle 10g 10.2.0.4 for linux x64环境下。
**注意:**无法使用standby备库来进行转换。
1、以只读方式打开数据库
1 2 3
SQL> shutdown immediate SQL> startup mount SQL> alter database open read only;
2、检查可转换性和标示外部对象。
使用DBMS_TDB.CHECK_DB检查数据库状态,是否可以顺利转换到目标平台:
1 2 3 4 5 6 7 8 9
SQL> set serveroutput on SQL> declare db_ready boolean; begin /* db_ready is ignored, but with SERVEROUTPUT set to ON any * conditions preventing transport will be output to console */ db_ready := dbms_tdb.check_db('Linux x86 64-bit', dbms_tdb.skip_none); end; /
SQL> set serveroutput on SQL> declare external boolean; begin /* value of external is ignored, but with SERVEROUTPUT set to ON * dbms_tdb.check_external displays report of external objects * on console */ external := dbms_tdb.check_external; end; /
CONVERT DATAFILE 'E:\\ORACLE\\PRODUCT\\10.2.0\\DB_1\\DATABASE\\DIGITALSCANDATA.DAT' FROM PLATFORM 'Microsoft Windows x86 64-bit' FORMAT 'D:\\RMAN\\DATA_D-ORCL_I-1276927241_TS-DIGITALSCANDATA_FNO-38_HDV216EA';
CONVERT DATAFILE 'E:\\ORACLE\\PRODUCT\\10.2.0\\DB_1\\DATABASE\\DIGITALSCANDATA01.DAT' FROM PLATFORM 'Microsoft Windows x86 64-bit' FORMAT 'D:\\RMAN\\DATA_D-ORCL_I-1276927241_TS-DIGITALSCANDATA_FNO-39_HEV216EA'; ...
根据目标平台文件系统布局,修改为:
1 2 3 4 5 6 7 8 9 10 11
RUN {
CONVERT DATAFILE '/mnt/data/database/DIGITALSCANDATA.DAT' FROM PLATFORM 'Microsoft Windows x86 64-bit' FORMAT '/u01/oradata/orcl/DATA_D-ORCL_I-1276927241_TS-DIGITALSCANDATA_FNO-38_HDV216EA';
CONVERT DATAFILE '/mnt/data/database/DIGITALSCANDATA01.DAT' FROM PLATFORM 'Microsoft Windows x86 64-bit' FORMAT '/u01/oradata/orcl/DATA_D-ORCL_I-1276927241_TS-DIGITALSCANDATA_FNO-39_HEV216EA'; ...
-- The following commands will create a new control file and use it -- to open the database. -- Data used by Recovery Manager will be lost. -- The contents of online logs will be lost and all backups will -- be invalidated. Use this only if online logs are damaged.
-- After mounting the created controlfile, the following SQL -- statement will place the database in the appropriate -- protection mode: -- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT PFILE='D:\\RMAN\\INIT_00V216EA_1_0.ORA' CREATE CONTROLFILE REUSE SET DATABASE "ORCL" RESETLOGS FORCE LOGGING ARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 14616 LOGFILE GROUP 1'D:\\RMAN\\ARCH_D-ORCL_ID-1276927241_S-517_T-1_A-1017328065_00V216EA' SIZE 50M, GROUP 2'D:\\RMAN\\ARCH_D-ORCL_ID-1276927241_S-515_T-1_A-1017328065_00V216EA' SIZE 50M, GROUP 3'D:\\RMAN\\ARCH_D-ORCL_ID-1276927241_S-516_T-1_A-1017328065_00V216EA' SIZE 50M DATAFILE 'D:\\RMAN\\DATA_D-ORCL_I-1276927241_TS-SYSTEM_FNO-1_IKV216EF', ...
相应修改为:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
STARTUP NOMOUNT PFILE='/u01/app/oracle/admin/orcl/pfile/INIT_00V216EA_1_0.ORA' CREATE CONTROLFILE REUSE SET DATABASE "ORCL" RESETLOGS FORCE LOGGING ARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 14616 LOGFILE GROUP 1'/u01/oradata/orcl/ARCH_D-ORCL_ID-1276927241_S-517_T-1_A-1017328065_00V216EA' SIZE 50M, GROUP 2'/u01/oradata/orcl/ARCH_D-ORCL_ID-1276927241_S-515_T-1_A-1017328065_00V216EA' SIZE 50M, GROUP 3'/u01/oradata/orcl/ARCH_D-ORCL_ID-1276927241_S-516_T-1_A-1017328065_00V216EA' SIZE 50M DATAFILE '/u01/oradata/orcl/DATA_D-ORCL_I-1276927241_TS-SYSTEM_FNO-1_IKV216EF', ...