标准版无法支持tts,所以替换/bin/oracle文件试试?

这篇具有很好参考价值的文章主要介绍了标准版无法支持tts,所以替换/bin/oracle文件试试?。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

之前我们确认了oracle标准版不支持tts-CSDN博客,那有没有办法绕过这个问题呢?

测试通过将$ORACLE_HOME/bin/oracle的企业版文件替换掉标准版的oracle文件之后,发现可以做tts操作。

缺点在线mv oracle会是alert日志大量告警,此时如果做expdp等操作可能失败,重启数据库后正常。如果停库操作,则cp和mv后,起库可正常。

注意此方法仅供测试使用。

xtts中最后一次的停机时间过程可以是:

  1. 源替换oracle后停库
  2. 源启动库后read only表空间
  3. 源最后一次增量备份导出
  4. 源导出传输表空间元数据
  5. 目标恢复增量
  6. 目标导入tts meta元数据
  7. 目标表空间可读写
  8. 目标停库,还原oracle,起库
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:22:11 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:23:24 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:23:24 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:23:25 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:23:25 2024
DM00 started with pid=28, OS id=12132, job SYS.SYS_IMPORT_TRANSPORTABLE_01
Tue Feb 20 12:23:25 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:23:25 2024
DW00 started with pid=29, OS id=12135, wid=1, job SYS.SYS_IMPORT_TRANSPORTABLE_01
Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x14] [PC:0x7E9E7E2, lstclo()+34] [flags: 0x0, count: 1]
Errors in file /home/db1/oracle/diag/rdbms/newrsb/newrsb/trace/newrsb_dw00_12135.trc  (incident=5038):
ORA-07445: exception encountered: core dump [lstclo()+34] [SIGSEGV] [ADDR:0x14] [PC:0x7E9E7E2] [Address not mapped to object] []
Incident details in: /home/db1/oracle/diag/rdbms/newrsb/newrsb/incident/incdir_5038/newrsb_dw00_12135_i5038.trc
Tue Feb 20 12:23:25 2024
Trace dumping is performing id=[cdmp_20240220122325]
Tue Feb 20 12:23:28 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:23:28 2024
Sweep [inc][5038]: completed
Sweep [inc2][5038]: completed
Tue Feb 20 12:23:28 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:25:16 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:28:36 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:28:36 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:28:36 2024
DM00 started with pid=28, OS id=12409, job SYS.SYS_IMPORT_TRANSPORTABLE_01
Tue Feb 20 12:28:36 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:28:36 2024
DW00 started with pid=29, OS id=12411, wid=1, job SYS.SYS_IMPORT_TRANSPORTABLE_01
Plug in tablespace JYC with datafile
  '/home/db1/oracle/oradata/newrsb/jyc01.dbf'
Tue Feb 20 12:29:16 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:30:16 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:31:37 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:31:37 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:32:01 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:32:11 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:32:12 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
[oracle@11g trace]$ tail -f alert_newrsb.log
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:32:11 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:32:12 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages






Tue Feb 20 12:34:35 2024
WARNING: Oracle executable binary mismatch detected.
 Binary of new process does not match binary which started instance
issue alter system set "_disable_image_check" = true to disable these messages
Tue Feb 20 12:34:52 2024
alter tablespace jyc read write
Completed: alter tablespace jyc read write

测试过程如下:

SQL> conn / as sysdba
Connected.
SQL> select name from v$datafile;

NAME
--------------------------------------------------------------------------------
/home/db1/oracle/oradata/newrsb/system01.dbf
/home/db1/oracle/oradata/newrsb/sysaux01.dbf
/home/db1/oracle/oradata/newrsb/undotbs01.dbf
/home/db1/oracle/oradata/newrsb/users01.dbf
/home/db1/oracle/oradata/newrsb/jyc01.dbf

SQL> select * from jyc.t;

        ID
----------
         1

SQL> drop tablespace jyc including contents and datafiles;

Tablespace dropped.

SQL> select TABLESPACE_NAME,STATUS from dba_tablespaces;

TABLESPACE_NAME                STATUS
------------------------------ ---------
SYSTEM                         ONLINE
SYSAUX                         ONLINE
UNDOTBS1                       ONLINE
TEMP                           ONLINE
USERS                          ONLINE

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@11g bak]$ ll $ORACLE_HOME/bin/oracle
-rwsr-s--x 1 oracle oinstall 210704056 Dec 15 10:06 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
[oracle@11g bak]$ ll $ORACLE_HOME/bin/impdp*
-rwxr-x--x 1 oracle oinstall 179136 Feb 19 17:00 /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdp
-rwxr-x--x 1 oracle oinstall 179144 Feb 19 14:15 /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdp.bak
-rwxr-x--- 1 oracle oinstall      0 Aug 15  2009 /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdpO
[oracle@11g bak]$ ll $ORACLE_HOME/bin/oracle*
-rwsr-s--x 1 oracle oinstall 210704056 Dec 15 10:06 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
-rwsr-s--x 1 oracle oinstall 199558504 Feb 19 14:15 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.bak
-rwxr-x--- 1 oracle oinstall         0 Aug 15  2009 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracleO
[oracle@11g bak]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 20 12:10:08 2024

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 3256942592 bytes
Fixed Size                  2217752 bytes
Variable Size            1811941608 bytes
Database Buffers         1426063360 bytes
Redo Buffers               16719872 bytes
Database mounted.
Database opened.
SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

SQL> show parameter name;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert                 string
db_name                              string      newrsb
db_unique_name                       string      newrsb
global_names                         boolean     FALSE
instance_name                        string      newrsb
lock_name_space                      string
log_file_name_convert                string
service_names                        string      newrsb
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@11g bak]$ impdp \'/ as sysdba\' dumpfile=se-tts.dmp logfile=tts-imp1.log directory=dmp transport_datafiles='/home/db1/oracle/oradata/newrsb/jyc01.dbf'

Import: Release 11.2.0.1.0 - Production on Tue Feb 20 12:10:39 2024

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_TRANSPORTABLE_01":  "/******** AS SYSDBA" dumpfile=se-tts.dmp logfile=tts-imp1.log directory=dmp transport_datafiles=/home/db1/oracle/oradata/newrsb/jyc01.dbf 
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
ORA-39123: Data Pump transportable tablespace job aborted
ORA-01565: error in identifying file '/home/db1/oracle/oradata/newrsb/jyc01.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3

Job "SYS"."SYS_IMPORT_TRANSPORTABLE_01" stopped due to fatal error at 12:10:41

[oracle@11g bak]$ ll /home/db1/oracle/oradata/newrsb/jyc01.dbf
ls: cannot access /home/db1/oracle/oradata/newrsb/jyc01.dbf: No such file or directory
[oracle@11g bak]$ rman target /

Recovery Manager: Release 11.2.0.1.0 - Production on Tue Feb 20 12:11:19 2024

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

connected to target database: NEWRSB (DBID=3070027563)

RMAN> exit


Recovery Manager complete.
[oracle@11g bak]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 20 12:13:37 2024

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> show parameter name;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert                 string
db_name                              string      newrsb
db_unique_name                       string      newrsb
global_names                         boolean     FALSE
instance_name                        string      newrsb
lock_name_space                      string
log_file_name_convert                string
service_names                        string      newrsb
SQL> @r0.sql

PL/SQL procedure successfully completed.

SQL> 
SQL> 
SQL> @r1_1.sql
Entering RollForward
After applySetDataFile
Done: applyDataFileTo
Done: RestoreSetPiece
Done: RestoreBackupPiece

PL/SQL procedure successfully completed.

SQL> @r1_2.sql
Entering RollForward
After applySetDataFile
Done: applyDataFileTo
Done: RestoreSetPiece
Done: RestoreBackupPiece

PL/SQL procedure successfully completed.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@11g bak]$ impdp \'/ as sysdba\' dumpfile=se-tts.dmp logfile=tts-imp2.log directory=dmp transport_datafiles='/home/db1/oracle/oradata/newrsb/jyc01.dbf'

Import: Release 11.2.0.1.0 - Production on Tue Feb 20 12:16:14 2024

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_TRANSPORTABLE_01":  "/******** AS SYSDBA" dumpfile=se-tts.dmp logfile=tts-imp2.log directory=dmp transport_datafiles=/home/db1/oracle/oradata/newrsb/jyc01.dbf 
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
Job "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully completed at 12:16:15

[oracle@11g bak]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 20 12:16:45 2024

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select TABLESPACE_NAME,STATUS from dba_tablespaces;

TABLESPACE_NAME                STATUS
------------------------------ ---------
SYSTEM                         ONLINE
SYSAUX                         ONLINE
UNDOTBS1                       ONLINE
TEMP                           ONLINE
USERS                          ONLINE
JYC                            READ ONLY

6 rows selected.

SQL> drop tablespace jyc including contents and datafiles;

Tablespace dropped.

SQL> select TABLESPACE_NAME,STATUS from dba_tablespaces;

TABLESPACE_NAME                STATUS
------------------------------ ---------
SYSTEM                         ONLINE
SYSAUX                         ONLINE
UNDOTBS1                       ONLINE
TEMP                           ONLINE
USERS                          ONLINE

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@11g bak]$ ll $ORACLE_HOME/bin/oracle*
-rwsr-s--x 1 oracle oinstall 210704056 Dec 15 10:06 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
-rwsr-s--x 1 oracle oinstall 199558504 Feb 19 14:15 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.bak
-rwxr-x--- 1 oracle oinstall         0 Aug 15  2009 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracleO
[oracle@11g bak]$ ll $ORACLE_HOME/bin/impdp*
-rwxr-x--x 1 oracle oinstall 179136 Feb 19 17:00 /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdp
-rwxr-x--x 1 oracle oinstall 179144 Feb 19 14:15 /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdp.bak
-rwxr-x--- 1 oracle oinstall      0 Aug 15  2009 /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdpO
[oracle@11g bak]$ cp /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdp /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdp.ee
[oracle@11g bak]$ cp /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdp.bak /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdp.se
[oracle@11g bak]$ mv /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdp.bak /home/db1/oracle/product/11.2.0/dbhome_1/bin/impdp
[oracle@11g bak]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 20 12:18:25 2024

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> @r0.sql

PL/SQL procedure successfully completed.

SQL> @r1_1.sql
Entering RollForward
After applySetDataFile
Done: applyDataFileTo
Done: RestoreSetPiece
Done: RestoreBackupPiece

PL/SQL procedure successfully completed.

SQL> @r1_2.sql
Entering RollForward
After applySetDataFile
Done: applyDataFileTo
Done: RestoreSetPiece
Done: RestoreBackupPiece

PL/SQL procedure successfully completed.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@11g bak]$ impdp \'/ as sysdba\' dumpfile=se-tts.dmp logfile=tts-imp2.log directory=dmp transport_datafiles='/home/db1/oracle/oradata/newrsb/jyc01.dbf'

Import: Release 11.2.0.1.0 - Production on Tue Feb 20 12:18:50 2024

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_TRANSPORTABLE_01":  "/******** AS SYSDBA" dumpfile=se-tts.dmp logfile=tts-imp2.log directory=dmp transport_datafiles=/home/db1/oracle/oradata/newrsb/jyc01.dbf 
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
Job "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully completed at 12:18:51

[oracle@11g bak]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 20 12:19:05 2024

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> drop tablespace jyc including contents and datafiles;

Tablespace dropped.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@11g bak]$ ll $ORACLE_HOME/bin/oracle*
-rwsr-s--x 1 oracle oinstall 210704056 Dec 15 10:06 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
-rwsr-s--x 1 oracle oinstall 199558504 Feb 19 14:15 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.bak
-rwxr-x--- 1 oracle oinstall         0 Aug 15  2009 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracleO
[oracle@11g bak]$ cp /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee
[oracle@11g bak]$ cp /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.bak /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.se
[oracle@11g bak]$ mv /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.bak /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
[oracle@11g bak]$ ps -ef|grep ora_smon
oracle    11268      1  0 12:10 ?        00:00:00 ora_smon_newrsb
oracle    11943   4940  0 12:20 pts/1    00:00:00 grep --color=auto ora_smon
[oracle@11g bak]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 20 12:20:06 2024

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production

SQL> @r_0.sql
SP2-0310: unable to open file "r_0.sql"
SQL> @r0.sql

PL/SQL procedure successfully completed.

SQL> @r1_1.sql
Entering RollForward
After applySetDataFile
Done: applyDataFileTo
Done: RestoreSetPiece
Done: RestoreBackupPiece

PL/SQL procedure successfully completed.

SQL> @r1_2.sql
Entering RollForward
After applySetDataFile
Done: applyDataFileTo
Done: RestoreSetPiece
Done: RestoreBackupPiece

PL/SQL procedure successfully completed.

SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

SQL> exit
Disconnected from Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
[oracle@11g bak]$ impdp \'/ as sysdba\' dumpfile=se-tts.dmp logfile=tts-imp2.log directory=dmp transport_datafiles='/home/db1/oracle/oradata/newrsb/jyc01.dbf'

Import: Release 11.2.0.1.0 - Production on Tue Feb 20 12:20:46 2024

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
ORA-39006: internal error

[oracle@11g bak]$ impdp \'/ as sysdba\' dumpfile=se-tts.dmp logfile=tts-imp1.log directory=dmp transport_datafiles='/home/db1/oracle/oradata/newrsb/jyc01.dbf' TRACE=480300

Import: Release 11.2.0.1.0 - Production on Tue Feb 20 12:23:24 2024

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
ORA-39006: internal error

[oracle@11g bak]$ cp /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
cp: cannot create regular file ‘/home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle’: Text file busy
[oracle@11g bak]$ cp -p /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
cp: cannot create regular file ‘/home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle’: Text file busy
[oracle@11g bak]$ ll $ORACLE_HOME/bin/oracle*
-rwsr-s--x 1 oracle oinstall 199558504 Feb 19 14:15 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
-rwxr-x--x 1 oracle oinstall 210704056 Feb 20 12:19 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee
-rwxr-x--- 1 oracle oinstall         0 Aug 15  2009 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracleO
-rwxr-x--x 1 oracle oinstall 199558504 Feb 20 12:19 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.se
[oracle@11g bak]$ chmod 6751 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee
[oracle@11g bak]$ chmod 6751 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.se
[oracle@11g bak]$ ll $ORACLE_HOME/bin/oracle*
-rwsr-s--x 1 oracle oinstall 199558504 Feb 19 14:15 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
-rwsr-s--x 1 oracle oinstall 210704056 Feb 20 12:19 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee
-rwxr-x--- 1 oracle oinstall         0 Aug 15  2009 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracleO
-rwsr-s--x 1 oracle oinstall 199558504 Feb 20 12:19 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.se
[oracle@11g bak]$ cp -p /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
cp: cannot create regular file ‘/home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle’: Text file busy
[oracle@11g bak]$ cp -p /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee.bak
[oracle@11g bak]$ mv /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
[oracle@11g bak]$ ll $ORACLE_HOME/bin/oracle*
-rwsr-s--x 1 oracle oinstall 210704056 Feb 20 12:19 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
-rwsr-s--x 1 oracle oinstall 210704056 Feb 20 12:19 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.ee.bak
-rwxr-x--- 1 oracle oinstall         0 Aug 15  2009 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracleO
-rwsr-s--x 1 oracle oinstall 199558504 Feb 20 12:19 /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.se
[oracle@11g bak]$ impdp \'/ as sysdba\' dumpfile=se-tts.dmp logfile=tts-imp2.log directory=dmp transport_datafiles='/home/db1/oracle/oradata/newrsb/jyc01.dbf'

Import: Release 11.2.0.1.0 - Production on Tue Feb 20 12:28:36 2024

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_TRANSPORTABLE_01":  "/******** AS SYSDBA" dumpfile=se-tts.dmp logfile=tts-imp2.log directory=dmp transport_datafiles=/home/db1/oracle/oradata/newrsb/jyc01.dbf 
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
Job "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully completed at 12:28:37

[oracle@11g bak]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 20 12:32:01 2024

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@11g bak]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 20 12:34:35 2024

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> alter tablespace jyc read write;

Tablespace altered.

SQL> conn jyc/jyc
Connected.
SQL> create table j (id int);

Table created.

SQL> insert into j values(1);

1 row created.

SQL> commit;

Commit complete.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@11g bak]$ cp -p /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.se /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.se.bak
[oracle@11g bak]$ mv /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle.se /home/db1/oracle/product/11.2.0/dbhome_1/bin/oracle
[oracle@11g bak]$ sqlplus jyc/jyc

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 20 12:36:54 2024

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production

SQL> drop table j;

Table dropped.

SQL> create table j (id int);

Table created.

SQL> insert into j values(1);

1 row created.

SQL>  commit;

Commit complete.

SQL> drop table j;

Table dropped.

SQL> create table j (id int);

Table created.

SQL> select TABLESPACE_NAME,STATUS from dba_tablespaces;

TABLESPACE_NAME                STATUS
------------------------------ ---------
SYSTEM                         ONLINE
SYSAUX                         ONLINE
UNDOTBS1                       ONLINE
TEMP                           ONLINE
USERS                          ONLINE
JYC                            ONLINE

6 rows selected.

SQL> 
最后重启一遍标准版oracle,这样alert就不再报错了。
[oracle@11g bak]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 20 12:43:01 2024

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 3256942592 bytes
Fixed Size                  2217752 bytes
Variable Size            1811941608 bytes
Database Buffers         1426063360 bytes
Redo Buffers               16719872 bytes
Database mounted.
Database opened.
SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

恢复的脚本如下:文章来源地址https://www.toymoban.com/news/detail-834850.html

[oracle@11g bak]$ more r0.sql
set serveroutput on;
DECLARE
devtype varchar2(256);
done Boolean;
BEGIN
Devtype:=sys.dbms_backup_restore.deviceAllocate (type=>'',ident=>'t1');
sys.dbms_backup_restore.restoreSetDatafile;
sys.dbms_backup_restore.restoreDatafileTo(dfnumber=>5,toname=>'/home/db1/oracle/oradata/newrsb/jyc01.dbf');
sys.dbms_backup_restore.restoreBackupPiece(done=>done,handle=>'/bak/rsb0_012jhonj_1_1',params=>null);
sys.dbms_backup_restore.deviceDeallocate;
END;
/
[oracle@11g bak]$ more r1_1.sql
set serveroutput on;
DECLARE
outhandle varchar2(512) ;
outtag varchar2(30) ;
done boolean ;
failover boolean ;
devtype VARCHAR2(512);
BEGIN
DBMS_OUTPUT.put_line('Entering RollForward');
devtype := sys.dbms_backup_restore.deviceAllocate;
sys.dbms_backup_restore.applySetDatafile(check_logical => FALSE, cleanup => FALSE) ; 
DBMS_OUTPUT.put_line('After applySetDataFile');
sys.dbms_backup_restore.applyDatafileTo(dfnumber=>5,toname=>'/home/db1/oracle/oradata/newrsb/jyc01.dbf',fuzziness_hint=>0,max_corrupt=>0,islevel0=>0,recid=>0,st
amp=>0);
DBMS_OUTPUT.put_line('Done: applyDataFileTo');
sys.dbms_backup_restore.restoreSetPiece(handle =>'/bak/rsb1_1',tag => null,fromdisk => true, recid => 0,stamp => 0) ;
DBMS_OUTPUT.put_line('Done: RestoreSetPiece');
sys.dbms_backup_restore.restoreBackupPiece(done => done,params => null,outhandle => outhandle,outtag => outtag, failover => failover);
DBMS_OUTPUT.put_line('Done: RestoreBackupPiece');
sys.dbms_backup_restore.restoreCancel(TRUE);
sys.dbms_backup_restore.deviceDeallocate;
END;
/
[oracle@11g bak]$ more r1_2.sql
set serveroutput on;
DECLARE
outhandle varchar2(512) ;
outtag varchar2(30) ;
done boolean ;
failover boolean ;
devtype VARCHAR2(512);
BEGIN
DBMS_OUTPUT.put_line('Entering RollForward');
devtype := sys.dbms_backup_restore.deviceAllocate;
sys.dbms_backup_restore.applySetDatafile(check_logical => FALSE, cleanup => FALSE) ; 
DBMS_OUTPUT.put_line('After applySetDataFile');
sys.dbms_backup_restore.applyDatafileTo(dfnumber=>5,toname=>'/home/db1/oracle/oradata/newrsb/jyc01.dbf',fuzziness_hint=>0,max_corrupt=>0,islevel0=>0,recid=>0,st
amp=>0);
DBMS_OUTPUT.put_line('Done: applyDataFileTo');
sys.dbms_backup_restore.restoreSetPiece(handle =>'/bak/rsb1_2',tag => null,fromdisk => true, recid => 0,stamp => 0) ;
DBMS_OUTPUT.put_line('Done: RestoreSetPiece');
sys.dbms_backup_restore.restoreBackupPiece(done => done,params => null,outhandle => outhandle,outtag => outtag, failover => failover);
DBMS_OUTPUT.put_line('Done: RestoreBackupPiece');
sys.dbms_backup_restore.restoreCancel(TRUE);
sys.dbms_backup_restore.deviceDeallocate;
END;
/

到了这里,关于标准版无法支持tts,所以替换/bin/oracle文件试试?的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • MathType7中文标准版数学公式编辑工具

    MathType 是一款专业的数学公式编辑工具,提供交互式编辑器, 让你在编辑数学试卷、书籍、报刊、论文、幻灯演示等文档轻松输入各种复杂的数学公式和符号。当您准备坐下来撰写科学或技术论文,测试,幻灯片演示文稿或任何想要包括数学符号的地方时, MathType便可为您提

    2024年02月10日
    浏览(55)
  • Linux下TongRDS标准版2.2.1.2安装、配置及启动

    Java 环境要求:jdk1.8及以上。 1. TongRDS标准版2.2.1.2安装 1.1 解压TongRDS-2.2.1.2_P3.MC.tar.gz、TongRDS-2.2.1.2_P3.Node.tar.gz 在/opt目录创建文件夹,将TongRDS-2.2.1.2_P3.MC.tar.gz、TongRDS-2.2.1.2_P3.Node.tar.gz上传至该文件目录,并执行解压命令。 中心节点: tar -zxvf TongRDS-2.2.1.2_P3.MC.tar.gz 服务节点:

    2024年03月17日
    浏览(43)
  • 阿里云RDS标准版(x86) vs 经济版(ARM)性能对比

    阿里云数据库在去年云栖大会上发布了基于阿里倚天芯片(ARM架构)的RDS实例,后正式命名为经济版。本文通过标准的sysbench测试,来看看相比与标准版,经济版是否更加“经济”,以帮助开发者选择适合自己的规格。 这里选择了用户较为常用的4c16g的规格进行测试,测试工

    2024年02月02日
    浏览(41)
  • 阿里云企业邮箱免费版、标准版、集团版和尊享版区别

    阿里云企业邮箱版本分为免费版、标准版、集团版和尊享版,除了价格区别,功能方面有什么差异?如何选择企业邮箱版本? 免费版0元适合初创型企业,标准版适合大、中、小型企业使用,涉及子公司之间邮箱通讯可以选择集团版,需要更大附件、更大网盘选择尊享版 ,阿

    2024年02月11日
    浏览(114)
  • Windows Server 2022 Standard标准版和Datacenter数据中心版的区别

    微软就 Windows Server 2022 功能提供了相当完整的描述,早在去年 6 月份。微软就对所有版本的 Windows Server 2022 预置了核心和桌面安装选项。该产品遵循微软传统的固定生命周期策略,提供五年的“主流”支持和五年的“扩展”支持。 Windows Server 2022 的产品更新周期遵循长期服务

    2023年04月27日
    浏览(166)
  • C语言中的字符串操作函数自定义实现:标准版与限定长度版

            目录 1. 标准字符串操作函数自定义实现 (a) 自定义strcpy函数 (b) 自定义strcat函数 (c) 自定义strcmp函数 2. 限定长度字符串操作函数自定义实现 (a) 自定义strncpy函数 (b) 自定义strncat函数 (c) 自定义strncmp函数  对字符串的操作是不可或缺的一部分。标准库提供了如strcpy、

    2024年01月21日
    浏览(59)
  • VMware ESXi 8.0 macOS Unlocker & OEM BIOS (标准版和厂商定制版)

    ESXi 8.0.0 GA (General Availability) 请访问原文 https://sysin.org/blog/vmware-esxi-8-oem/,查看最新版。原创作品,转载请保留出处。 作者主页:www.sysin.org 2022-12-08 更新:Inspur (浪潮) 定制版现已发布。 2022-11-21 更新:使用新版的 ROM 文件,新增 EFI20-64 支持。 今天(2022-11-11),vSphere 8.0 IA 已

    2024年01月16日
    浏览(36)
  • VMware ESXi 8.0U1 macOS Unlocker & OEM BIOS (标准版和厂商定制版)

    ESXi 8.0U1 标准版,Dell HPE 联想 浪潮 定制版 请访问原文链接: https://sysin.org/blog/vmware-esxi-8-u1-oem/,查看最新版。原创作品,转载请保留出处。 作者主页:sysin.org 2023-04-18, VMware vSphere 8.0U1 发布。 详见:VMware vSphere 8 Update 1 新增功能 VMware vSphere 是 VMware 的虚拟化平台,可将数据中

    2024年02月04日
    浏览(80)
  • Xcode安装特定版本系统的模拟器(不支持断点下载所以总是下载失败)

    Xcode里下载太慢就算了,他不支持断点下载,一直一直一直下载失败,根本就装不上嘛!!! 添加模拟器 没有要的iOS版本则点击Download more 然而因为Xcode不支持断点下载,我在这就没成功下载过= = 所以我们找出下载地址,换个下载器(支持断点速度也快多了),用safari下都比

    2024年02月14日
    浏览(49)
  • 浏览器原生JavaScript离线文字转语音TTS播放,支持Windows自带TTS语音和移动端(安卓、IOS)

    JS已经可以实现语音合成(文字转语音)和语音识别(语音转文字),各个浏览器支持列表如下所示: 语音识别支持列表: 因此,浏览器上面使用语音合成非常简单。 页面效果示例: 1、支持速度,音调设置 2、支持下拉选择语音模板 3、文字转语音 该文件可直接保存成htm

    2024年02月04日
    浏览(58)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包