ORA-02143: invalid STORAGE option --DSG oracle 11g 复制数据到oracle 10g

ORA-02143: invalid STORAGE option
ORA-02143: invalid STORAGE option
SQL: alter table "user"."table_name" ADD CONSTRAINT "table_PK" PRIMARY KEY ("ID")
  USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE test ENABLE

 

报错原因:oracle 11g新增了一个存储选项  FLASH_CACHE,oracle 10g不支持此选项

FLASH_CACHE

The FLASH_CACHE clause lets you override the automatic buffer cache policy and specify how specific schema objects are cached in flash memory. To use this clause, Database Smart Flash Cache (flash cache) must be configured on your system. The flash cache is an extension of the database buffer cache that is stored on a flash disk, a storage device that uses flash memory. Because flash memory is faster than magnetic disks, the database can improve performance by caching buffers in the flash cache instead of reading from magnetic disk.

KEEP SpecifyKEEP if you want the schema object buffers to remain cached in the flash cache as long as the flash cache is large enough.

NONE SpecifyNONE to ensure that the schema object buffers are never cached in the flash cache. This allows you to reserve the flash cache space for more frequently accessed objects.

DEFAULT SpecifyDEFAULT if you want the schema object buffers to be written to the flash cache when they are aged out of main memory, and then be aged out of the flash cache with the standard buffer cache replacement algorithm. This is the default if flash cache is configured and you do not specifyKEEP orNONE.

Note:

Database Smart Flash Cache is available only in Solaris and Oracle Linux.
 
 
解决办法:
 
在源端oracle 11g抽取sql语句是去掉存储选项,
在源端 config 下编辑 session_prev.sql 文件
配置如下:
declare
  sql_str       varchar2(500);
begin
  DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'STORAGE',false);
end;
 
重新发起全同步问题解决
 
 
当在CMD中登录Oracle 11g时出现"ERROR: ORA-01017: invalid username/password; logon denied"的错误,这表明提供的用户名或密码不正确。该错误可能有以下几个原因: 1. 用户名或密码错误:首先,请确保您输入的用户名和密码是正确的。检查是否有任何拼写错误或大小写错误。您可以尝试重新输入用户名和密码,确保它们与数据库中的凭据匹配。 2. 用户被锁定:如果您多次尝试登录失败,用户可能会被锁定。可以通过使用管理员用户(例如sysdba)登录到数据库,然后解锁被锁定的用户来解决此问题。您可以使用以下命令解锁用户: ALTER USER username ACCOUNT UNLOCK; 其中,username是被锁定用户的名称。 3. 用户权限不足:在某些情况下,用户可能没有足够的权限登录到数据库。确保您使用的用户名具有正确的权限,并且已被授予登录到数据库的权限。 4. 数据库连接问题:此错误还可能由于数据库连接问题引起。请确保数据库服务器正在运行,并且您的网络连接正常。 总结:当在CMD中登录Oracle 11g时出现"ERROR: ORA-01017: invalid username/password; logon denied"的错误,请检查用户名和密码是否正确,用户是否被锁定,用户是否具有足够的权限,并确保数据库连接正常。如果问题仍然存在,请参考引用和引用中的解决方案,或者阅读引用中的附件资源获取更多帮助。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值